Skip to content

F4 follow-up: bind row pages to one comparison token; multi-release snapshot tests (#64) - #66

Merged
DavidVFitzGerald merged 1 commit into
mainfrom
fix/f4-row-page-tokens
Nov 14, 2026
Merged

DavidVFitzGerald merged 1 commit into
mainfrom
fix/f4-row-page-tokens

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #64. This is the F4 follow-up to the QA of #20 (observation O1). Phase 1, mock services, with no contract change and no ADR.

Behavior

  • AC1: flowRowPages now carries { cursor, token } as its page parameter. Each later page must answer with the token of the page it continues, and so, by chain, with the first page's token. A page from another comparison session fails as STALE_SNAPSHOT and is never appended: the cached pages stay [first].
  • AC2: release-order tolerance is now tested against a real two-release mock catalog. The mock answers refs sorted by release ID, and the requests list them in reverse order. Row pages (2 pages), summaries and cell windows all accept it. A missing or extra release is still rejected for each of the three response kinds.
  • The old single-release "any release order" test is removed, because it checked nothing.

Checks

All run in an isolated workspace container.

  • format:check, lint, typecheck and build pass.
  • test:unit: 21 files, 257 tests pass on two consecutive runs.
  • Chromium e2e: 18/18 pass.
  • Mutation check: restoring the old queries.ts fails the AC1 test.

Limitations

  • Plain flowCells and score queries are out of scope.
  • Real-adapter enforcement belongs to I1.

🤖 Generated with Claude Code

…Refs #64)

A later row page with a different comparison_token under the same
snapshot was accepted. The page param now carries the token of the page
it continues, so a page from another session fails as STALE_SNAPSHOT
and is never appended. Release-order tolerance is now tested against a
real two-release mock catalog, replacing the single-release test that
checked nothing, and missing or extra releases are still rejected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit f138482 into main Nov 14, 2026
1 check 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