Repository navigation
fix: show the context notice to the user, not the model (0.0.74) - #94
Merged
Merged
Conversation
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.
summary
systemMessageon all three paths (fleet-posture.mjsat the prompt, and the peer and worker dispatch paths inlifecycle/tools.mjs), so the user sees one line and the model context gets nothing.claimParentContextAdvisoryreturns the tagged notice, and a first reading past both the threshold and 800,000 tokens shows one line instead of the same line twice.orchestration.mdno longer says a new goal prefers a fresh session. that sentence sat in context every turn, outside the once per threshold claim, so the model could raise it at any goal boundary. it now says the decision is the user's and the main session never recommends either unasked.tests/codex-jobs-monitor.test.mjswaits for the grok observer state file before reading it. it read the file as soon as the sidecars appeared and failed 3 of 5 full suite runs with ENOENT.rules-manifest.jsonis generated.test plan
already verified
npm teston this head: 1967 pass, 0 fail, 3 skipped, three runs in a row after the monitor test fixnode --test tests/codex-jobs-monitor.test.mjs: 62 pass, 0 failclaude plugin validatepasses for codex, grok, cursor, devin, fusion, and the marketplace rootreviewer should verify
notes
FUSION_PARENT_CONTEXT_ADVISORY_TOKENSthreshold stay. no invariant inCONTRIBUTING.mdchanges.~/.claude/rules/orchestration.mdpicks up the new sentence on the next/fusion:setup.