Repository navigation
Description
Problem and goal
Specify immutable materialized order score DESC then immutable recommendation ID ASC at pinned cutoff; parent SnapshotId, page position and expiry semantics; each independently retained/transported page has its own signed envelope and EnvelopeId.
Version and design basis
Version: V3. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md#9139-fanout-and-do-accumulator-s64s67-s615 (section: #9139 fanout and DO accumulator (S6.4–S6.7, S6.15)).
Tier: crucial.
Statement IDs: S6.4, S6.5, S6.6, S6.7, S6.15
Enables: DO or durable-store implementation
Scope and ownership
Parent: #9139 (native component/meta parent).
pkgs/atlas-search/worker/src/recommendation_state.ts(new; owner: C9139-01)pkgs/atlas-search/worker/test/recommendation_state.test.ts(new; owner: C9139-01)doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/recommendation-page-fixture.json(existing; owner: C9139-01)doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/recommendation-page-oracle.py(existing; owner: C9139-01)doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/recommendation-page-oracle-output.txt(existing; owner: C9139-01)
Hard dependencies (native blockers): 9083 — tenant-scoped subject authorization and policy epoch
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/atlas-search/worker/test/recommendation_state.test.ts first. Proposed command: npm --prefix pkgs/atlas-search/worker exec vitest -- run test/recommendation_state.test.ts
Oracle: model — expected At cutoff materialize total order score DESC then immutable recommendation ID ASC; cursor binds pinned parent SnapshotId plus position; each page gets a separately signed envelope with its own EnvelopeId. Equal-score, post-cutoff arrival, restart, duplicate replay, replay/cursor expiry, terminal and empty-nonterminal cases reproduce exact page bytes/order; wrong-parent cursor rejects.; verifier: Independent finite paging/envelope model recomputes ParentSnapshotId from parent envelope and each EnvelopeId from complete page envelope including signature fixture bytes; checks cursor position and wrong-parent rejection. Fixture explicitly makes no cryptographic or production-state claim..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Stop recommendation paging and serve no partial stale cursor; start a new snapshot after the state schema is corrected.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activity
developing-today commentedon Nov 14, 2026
CODE-3583
dezren39 commentedon Nov 14, 2026
agent-note:v1
state: blocked
task: 17008
lane: code-b
summary: Preflight for slice C9139-01 (task 17008, lane code-b, 2026-11-14). Native-blocker check: GET repos//issues/10158/dependencies/blocked_by returns one blocker, #9083 (tenant authorization / policy-epoch interface), and #9083 is still OPEN (fresh gh verify this shift). Per the preflight packet, task 17008 self-blocks with a structural dependency block on #9083 and NO implementation was performed. Contingent research trigger: none; none started. Issue #10158 carries no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
next: when #9083 closes, the broker auto-releases task 17008 to the pool; the claiming lane then implements C9139-01 within the issue's approved scope and stated oracle.
dezren39 commentedon Nov 17, 2026
state: triaged — implementation already routed and correctly dep-blocked
lane: any-b, worker: repo-worker-code, task 19118
Triage verdict for #10158 (checked fresh this shift, 2026-11-17): nothing new to route — the slice's implementation task exists and is structurally dep-blocked on the right blocker.
dezren39 commentedon Nov 17, 2026
Preflight note (task 17008, lane code-j, openchamber scheduled lane)
Native-blocker preflight for slice C9139-01:
Per the task contract, since blocker #9083 remains open, this task is self-blocked and no implementation is performed. Work stays paused until every native blocker is closed.
agent-note:v1
dezren39 commentedon Nov 17, 2026
Preflight note (task 17008, lane code-j, openchamber scheduled lane)
Native-blocker preflight for slice C9139-01:
Per the task contract, since blocker #9083 remains open, this task is self-blocked and no implementation is performed. Work stays paused until every native blocker is closed.
agent-note:v1
{
"event": "blocked",
"task_id": 17008,
"worker": "repo-worker-code",
"lane": "code-j",
"origin": "openchamber-scheduled-lane",
"at": "2026-11-17T17:43:30Z",
"reason_class": "dependency",
"blocked_by_issue": "#9083",
"blocker_state": "OPEN",
"summary": "Native blocker #9083 still open; self-blocking claimed preflight task 17008 with no implementation, per packet contract."
}
dezren39 commentedon Nov 18, 2026
agent-note:v1
lane: openchamber-scheduled-lane (code-g) · worker repo-worker-code · queue task 20483
kind: triage → blocked (no change)
Fresh check 2026-11-18: #10158 OPEN, still blocked on #9083 (tenancy architecture). Implementation is not started; the native blocker stays open, so the task remains blocked until #9083 closes.
dezren39 commentedon Nov 20, 2026
agent-note:v1
state: blocked
task: 17008
worker: repo-worker-code
lane: oc-code-03
origin: openchamber-scheduled-lane
stage: native_blocker_preflight
Fresh native blocker preflight (2026-11-20 17:47Z): #9083 is OPEN. Per the mandatory preflight packet, no implementation or rollout is authorized while the blocker remains open. Task 17008 is self-blocked with the native issue recorded; no repository files changed.
dezren39 commentedon Nov 23, 2026
agent-note:v1
state: picked-up
task: 17008
worker: repo-worker-code
lane: oc-code-05
origin: openchamber-scheduled-lane
summary: Fresh preflight: #10158 is OPEN and its only native blocker #9083 is CLOSED; the blocked_by endpoint returns #9083 but no open blocker remains. Continuing only approved C9139-01 scope/oracle; no production rollout or contingent research.
next: create/resume task worktree and implement the approved paging state machine.
feat(atlas-search): recommendation snapshot paging state machine (#10158
dezren39 commentedon Nov 23, 2026
agent-note:v1
state: implemented
task: 17008
lane: xaltha
summary: Preflight re-run fresh 2026-11-22 ~21:52 CST: #10158 OPEN and unassigned, no open PR referenced it, and former blocker #9083 is CLOSED (2026-11-23T03:07Z). Implemented slice C9139-01 in PR #12873 (branch queue/17008-10158-recommendation-paging, commit 7e55bb1): pinned parent snapshot, score DESC / id ASC total order, per-page signed envelopes with own EnvelopeIds, parent+position cursors, wrong-parent and expired-cursor rejection. Verification on the laptop: vitest test/recommendation_state.test.ts 14/14 passed, typecheck clean; TS identities match the fixture oracle byte-for-byte (parent sha256:8797b6bd…, pages sha256:e67e1aa7… / sha256:50edb5f8…).
next: review/CI on #12873; done check and close #10158 after merge.