Skip to content

Implement durable incremental recommendation accumulator #10172

Open

Description

@dezren39

Problem and goal

Implement per-tenant/subject DO using materialized score-descending/immutable-ID-ascending order; persist parent SnapshotId and cursor position; sign each independently retained/transported page with its own 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: recommended.
Statement IDs: S6.4, S6.5, S6.6, S6.7, S6.15
Enables: incremental recommendation consumer

Scope and ownership

Parent: #9139 (native component/meta parent).

  • pkgs/atlas-search/worker/src/recommendation_do.ts (new; owner: C9139-02)
  • pkgs/atlas-search/worker/test/recommendation_do.test.ts (new; owner: C9139-02)
    Hard dependencies (native blockers): C9139-01 — snapshot cutoff, stable total order, cursor/replay/expiry and terminal semantics
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/atlas-search/worker/test/recommendation_do.test.ts first. Proposed command: npm --prefix pkgs/atlas-search/worker exec vitest -- run test/recommendation_do.test.ts
Oracle: model — expected Crash/retry at every durable write yields same total order/page position; parent SnapshotId and cursor stay bound; each output page EnvelopeId independently verifies; tenant partitions never mix.; verifier: Finite reference state model from C9139-01 plus durable-storage fault injection and per-page signature/ID recomputation..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable accumulator route and create a fresh versioned snapshot; do not reuse partially materialized order.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 17021
    lane: code-b
    summary: Preflight for slice C9139-02 (task 17021, lane code-b, 2026-11-14). Native-blocker check: GET repos//issues/10172/dependencies/blocked_by returns one blocker, #10158 (slice C9139-01, recommendation snapshot paging state machine), and #10158 is still OPEN (fresh gh verify this shift; its own preflight task 17008 is dep-blocked on #9083). Per the preflight packet, task 17021 self-blocks with a structural dependency block on #10158 and NO implementation was performed. Contingent research trigger: none; none started. Issue #10172 carries no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
    next: when #10158 closes, the broker auto-releases task 17021 to the pool; the claiming lane then implements C9139-02 within the issue's approved scope and stated oracle.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (lane any-j, task 19130)

    State: triaged — a fully specified granular slice (C9139-02) from the #9106 ID/Atlas mill, already routed and dep-blocked under its own task (status/blocked + queue/blocked, left untouched by this triage).

    Fresh evidence (checked 2026-11-17):

    • Issue Implement durable incremental recommendation accumulator #10172 is OPEN, labels status/blocked + queue/blocked + work/assigned from its own task lifecycle; no held / user/owned / do-not-merge / do-not-auto-edit labels, and no priority/effort labels yet.
    • The body specifies the slice completely: goal (per-tenant/subject Durable Object with materialized score-descending / immutable-ID-ascending order; persist parent SnapshotId + cursor position; sign each retained/transported page with its own EnvelopeId); settled design basis (part-c versioned design, design(atlas): recommendation fan-out worker + Durable Object next-10 accumulation #9139 fanout and DO accumulator S6.4–S6.7/S6.15, V3, tier recommended); owned files (pkgs/atlas-search/worker/src/recommendation_do.ts + test/recommendation_do.test.ts, both new); a named oracle (model: crash/retry at every durable write yields the same total order/page position; SnapshotId and cursor stay bound; each page EnvelopeId independently verifies; tenant partitions never mix; exact vitest command given); and a rollback that disables the route and creates a fresh versioned snapshot rather than reusing partially materialized order.
    • Hard dependency recorded in the body: C9139-01 (snapshot cutoff, stable total order, cursor/replay/expiry, terminal semantics). Parent: design(atlas): recommendation fan-out worker + Durable Object next-10 accumulation #9139. The dep-block is consistent with that predecessor still being open.

    Triage verdict:

    • Work kind: design (Atlas accumulator slice) — no new packet: the slice IS the packet.
    • Priority: priority/normal — recommended tier in the Atlas part-c track.
    • Effort: effort/m — two new files and a fault-injection model oracle, once C9139-01 lands.
    • First concrete step for the claiming lane: re-check C9139-01's state fresh, then create the test file first per the body's test-first rule.
    • Acceptance check for this triage: this note + the slice spec + its recorded dependency; task 19130 completes as triaged.

    Queue: task 19130 (lane any-j) — claimed, triaged inline per runbook §1c.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-g) · worker repo-worker-code · queue task 20495
    kind: triage → blocked (no change)
    Fresh check 2026-11-18: #10172 OPEN. Hard dependency C9139-01 is #10158 (recommendation snapshot paging), which is still OPEN and blocked on #9083. Blocked until #10158 closes.

  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight (task 17021, lane oc-code-04)

    State: preflight complete; work PAUSED — native blocker remains open; task 17021 self-blocked per the C9139-02 contract.

    Fresh GitHub check (2026-11-20):

    Per the packet, no implementation was performed and no production rollout is authorized. Revalidation of #10158 releases the dep block.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions