Repository navigation
fix: cruise hint skip condition — enumeration-recall test, not content-in-context - #32
Merged
Merged
Conversation
…t-in-context A presence check cannot distinguish skill content from a summary's paraphrase of it after a compaction, so the old condition misjudged and skipped the reload. The cruise hint now asks for enumeration recall of the skill's "Safety rules" section (count included, source-excluded, doubt-default invoke); SKILL.md numbers the rules 1-6 as the count anchor. Wording + docs + tests only, no interface change. Signed-off-by: zheng-weihao <zheng-weihao@outlook.com>
zheng-weihao
force-pushed
the
cruise-hint-recall
branch
from
August 12, 2026 16:39
e3448ce to
aa33e59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The cruise hint's skip condition — "skip only if its content is already in your context" — is unreliable after a compaction. A compaction summarizes the head of the conversation, and the summary typically preserves paraphrases of the skill (goal / workflow / rules). Asked whether the skill content is "in context", the model sees those paraphrases and misjudges presence — so it skips the reload and keeps working without the actual rules. A presence check cannot distinguish content from a summary's paraphrase of content.
Change
The skip condition becomes an enumeration-recall test:
Design points:
To make the count a first-class anchor, the Safety rules in SKILL.md are now numbered 1–6 (content unchanged).
No interface or mechanism change — hint wording, docs, and tests only.
Surfaces
hooks/session-resume.sh— hint + header comment (shared by Claude / Qoder / Codex).opencode-plugin/plugin.ts—CRUISE_HINT.opencode-plugin/plugin.test.ts— assertions pin the four design points (named section / count / source exclusion / doubt default), plus a negative assertion against the old conditionskills/orbit/evals/evals.json— cruise-tier expectation updated to the new semanticsdocs/spec-hooks.md— hint contract section quotes the new hint verbatim; auto-approve section gains a boundary bullet (auto-approve cuts confirmation friction; it is not a security boundary — allow-only, never deny)USAGE.md— same one-line boundary noteskills/orbit/SKILL.md— Safety rules numbered 1–6 (content unchanged)Plugin tests: 16/16 green.