Repository navigation
fix(mcp): demote stale prime items, drop stub handoffs, widen pool - #252
Open
christopherkarani wants to merge 1 commit into
Open
christopherkarani wants to merge 1 commit into
christopherkarani wants to merge 1 commit into
Conversation
SessionStart primes surfaced stale-flagged items at full rank and rendered
teardown-residue handoffs ("transport idleExpiry"), teaching agents Wax is
noise. Rank stale-hinted items below fresh items within their type (kept as
backfill, never dropped); suppress taskless handoffs under 32 chars; close
the checkpoint stub write ("checkpoint" literal now closes with
record_handoff=false, mirroring transport teardown); widen the project probe
pool 8->12 so assembly has room to filter and demote.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This branch has not been deployed
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.
SessionStart primes surfaced stale-flagged items at full rank and rendered teardown-residue handoffs, teaching agents Wax is noise (an agent rated the primed context 35/100 with zero tool calls).
Changes
MCPPrimeAssembly.projectOrder: stale-hinted items sort below fresh items within their type rank; still render as backfill, never dropped.MCPPrimeAssembly.boundedHandoff: new 32-char minimum for taskless handoffs (pending-tasks exemption preserved); suppresses residue liketransport idleExpiry.MCPCheckpointRunner: checkpoint without a content file now closes with empty content +record_handoff:falseinstead of recording the literal stubcheckpoint(mirrors transport teardown; removesdefaultHandoffContent).MCPPrimeRunner: project probe pool 8→12 so assembly has room to filter and demote.Verification
StalenessSignalsTests, handoff bar inMCPPrimeAssemblyTests, checkpoint record behavior inMCPCheckpointTests.--traits MCPServer.public_repo_hygiene.shexits 0.Known residual
Strict type-rank can still let stale-heavy lanes fill all 5 slots and squeeze out fresh decisions; the 8→12 pool makes this more visible. Follow-up: global freshness demotion or a stale-render cap — needs a product call, deliberately not in this diff.