Skip to content

fix(compaction): keep standing output-format tokens whole on the spine - #1236

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9501-compaction-spine-truncates-the-operator-goal-and-output
Sep 29, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9501-compaction-spine-truncates-the-operator-goal-and-output

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • The compaction spine cuts the operator goal at a token boundary instead of mid-token.
  • Standing output-format tokens such as FILES_DONE=... ride an uncut Output line, and the Handoff pointer tells the next turn to re-read the full operator ask.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check — 7794 pass, 0 fail

Fixes CL-9501

A hard 160-character slice was splitting reply-contract tokens
(FILES_DONE became FILES_DO), so a fold-then-continue run no
longer saw the original reply contract. Cut the live goal at a
token boundary, echo output-format tokens uncut, and point the
spine at the handoff for the full operator ask.
@linear-code

linear-code Bot commented Sep 29, 2026

Copy link
Copy Markdown

CL-9501

@TheGreatAxios
TheGreatAxios merged commit 0333c14 into main Sep 29, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant