Skip to content

fix(ci): align transcript reuse accounting expectations - #203091

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ci-transcript-accounting-fixture-20261121
Nov 21, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ci-transcript-accounting-fixture-20261121

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Main CI's transcript reuse test still counts saved model-state entries after #203008 deliberately excluded them from model-context accounting. The cold read returns 504 bytes and 3 events, while the stale fixture expects 681 bytes and 4.

User Impact

No runtime behavior changes. This restores the existing CI check for durable and resident transcript accounting, writes, and resets.

Why This Change Was Made

Count only the fixture's messages and custom messages in its expected byte size, and exclude both model snapshots from the initial and post-append event counts. Hydration assertions still require the full transcript, including the saved model state. The change is three added and three removed test lines; production code is unchanged.

Evidence

  • Reproduced on main c949daa031c6ea961c4cf39bae8ba3df50a0e73e: the reuse test failed with the exact 504/3 versus 681/4 mismatch; the other two tests passed.
  • Fixed tree a91a086c911414891924cae40003e1172f369dca: all 3 tests passed on Linux, Node 24.22.1, via pnpm test src/config/sessions/session-actor-transcript-reuse.test.ts --maxWorkers=1. Test-file duration: 11.12 s; full test command including worker preparation: 57.95 s. Exact-head PR CI on Bun also passed all 3 tests: file 17.13 s, shard 19.31 s (job).
  • Targeted agents-sessions TypeScript graph passed in 19.3 s; changed-file lint, formatting, and git diff --check passed.
  • Full-range local ClawSweeper review of c949daa031c6ea961c4cf39bae8ba3df50a0e73e..f57f4fed9957d09346f98ac717dbc4232571a364 completed with no correctness or security findings.

@vincentkoc vincentkoc self-assigned this Nov 21, 2026
@clawsweeper

clawsweeper Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 21, 2026 13:13
@vincentkoc
vincentkoc enabled auto-merge (squash) November 21, 2026 13:13
@vincentkoc
vincentkoc merged commit ed176db into main Nov 21, 2026
185 checks passed
@vincentkoc
vincentkoc deleted the fix-ci-transcript-accounting-fixture-20261121 branch November 21, 2026 13:22
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant