Repository navigation
Conversation
) Implements slice C9139-01: pinned parent snapshot with materialized total order (score DESC, immutable recommendation ID ASC), per-page signed envelopes with their own EnvelopeId, cursors binding only the parent SnapshotId plus position, wrong-parent and expired-cursor rejection, and terminal done semantics. Identities are byte-identical to the fixture oracle in doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/. Supersedes the earlier unimplemented test sketch on this branch: that draft used placeholder envelope ids and a pluggable sign stub, so it could not verify the fixture vectors; the new test asserts the exact fixture parent snapshot id and page envelope ids. Refs #10158
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
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.
Implements slice C9139-01 (task 17008).
What
pkgs/atlas-search/worker/src/recommendation_state.ts(new): pinned parent snapshot with the total order materialized once (score DESC, then immutable recommendation ID ASC, cutoff-pinned; post-cutoff arrivals belong to the next snapshot); per-page signed envelopes with their own EnvelopeId; cursors binding only the parent SnapshotId plus position (and optional expiry); wrong-parent and expired-cursor rejection;doneas the terminal signal, computed independently of page emptiness.pkgs/atlas-search/worker/test/recommendation_state.test.ts(new): 14 tests naming the fixture oracle.Oracle / evidence
Identities are byte-identical to
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/recommendation-page-fixture.jsonas recomputed byrecommendation-page-oracle.py: parent snapshot idsha256:8797b6bd…, page envelope idssha256:e67e1aa7…andsha256:50edb5f8…. The oracle script run in the worktree reproduces the same ids.npx vitest run test/recommendation_state.test.ts(laptop, package dir): 14 passed, 14 total.npm run typecheck(laptop): clean.npm installin this package currently fails with ERESOLVE (wrangler 4.152.0 wants @cloudflare/workers-types ^5 vs the pinned ^4);npm cifrom the lockfile works and was used for verification. Pre-existing repo issue, not touched here.Supersedes the earlier unimplemented test sketch on this branch: that draft used placeholder envelope ids and a pluggable sign stub, so it could not verify the fixture vectors.
Closes #10158
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.