Skip to content

fix(compaction): strip glued spine sentinel from long standing tokens - #1248

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/spine-sentinel-long-token
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/spine-sentinel-long-token

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Strips a spine cut sentinel glued onto a start-at-0 standing token longer than 160 characters so a without-file re-fold keeps one Output token
  • Leaves an already-capped Goal that ends with ... uncut so a 159-character spaceless prefix does not grow a fourth dot
  • Keeps short operator-authored Goal ellipsis and exact-token harvest

Verification

  • bun run check passes (7866 tests, 0 fail)

cutSpineGoal glues "..." onto a start-at-0 token longer than the
cap. outputFormatTokenRe eats that sentinel, so Goal and Output
harvests diverge and a without-file re-fold duplicates the token.
Strip the glued sentinel when restoring Output, and do not recut a
cap-length prefix that already ends with the sentinel.
@TheGreatAxios
TheGreatAxios merged commit ec8bf3a into main Sep 30, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the fix/spine-sentinel-long-token branch September 30, 2026 00:38
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