feat(session): verify compaction spine and record adopted handoffs - #1154
Merged
TheGreatAxios merged 11 commits intoSep 22, 2026
Merged
TheGreatAxios merged 11 commits into
TheGreatAxios merged 11 commits into
Conversation
TheGreatAxios
force-pushed
the
cl-8741-compaction-verify-pass-so-the-goal-survives-many-folds
branch
from
September 22, 2026 15:11
60d4aee to
530405f
Compare
TheGreatAxios
enabled auto-merge (squash)
September 22, 2026 15:17
A repaired summary spine changes bytes, so the evidence gate reads the next fold's dropped spine as uncovered and rejects every later fold. Score the spine against continuation facts, repair or abort, and record each adopted handoff for the archive to certify.
A cap that slices the repair tail used to ship a spine that still missed exact names, and the scorer treated auth as present inside authored. Abort any residual after the cap, and match tokens on word boundaries.
A tight cap used to slice exact names off the repair tail. Put goal, next action, and exact names first so truncation keeps the facts the next agent needs, and restore real verify coverage on the truncation path.
Re-scoring the aborted original summary was tautological. Assert the outcome misses, add a roomy-cap repair control, abort on a constraint-only residual, and reject author/preauth as auth hits.
Substring includes let oauth.ts cover auth.ts. Match names on token boundaries, emit only missed constraint/blocker/verification lines, and assert a real verify signal after folds.
Interior dots join filenames and hostnames so vite.config.ts does not cover config.ts. HTTP URLs lowercase before hostname scoring. Drop unused ContinuationFacts.state.
`new URL` keeps a trailing period in the hostname, so a summary that names api.com misses Call HTTP://API.COM. as an exactName.
Bun-hosted ts-prune under-reports unused exports on Linux, so CI treats a still-valid allowlist as stale. Launch the CLI with node.
TheGreatAxios
force-pushed
the
cl-8741-compaction-verify-pass-so-the-goal-survives-many-folds
branch
from
September 22, 2026 15:26
530405f to
592049e
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.
Summary
Compaction verify pass so the goal survives many folds: after each fold the spine is scored against continuation facts (goal, state, next action, constraints, verification, blockers, exact names). Missing facts are repaired deterministically; contradicting summaries abort the fold instead of shipping a lying spine. Adopted handoffs are recorded in the evidence archive so later folds can drop the spine, and the summarizer excerpt pins the initiating goal ahead of the recency window.
Target release: 0.3.31.
Verification
Fixes CL-8741