Skip to content

Persist recommendation snapshots and before/after comparison #10189

Open

Description

@dezren39

Problem and goal

Separate recommendation snapshots from search history and apply per-class retention/deletion policy. ParentSnapshotId hashes only the complete signed parent envelope of inputs, ranking configuration and cutoff; it excludes pages. Each page has an independently signed envelope and EnvelopeId; cursor binds parent SnapshotId plus position.

Version and design basis

Version: V4. 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#9140-recommendation-objectshistory-s68s612-s616s617 (section: #9140 recommendation objects/history (S6.8–S6.12, S6.16–S6.17)).
Tier: recommended.
Statement IDs: S6.8, S6.9, S6.10, S6.11, S6.12, S6.16, S6.17
Enables: admin before/after views

Scope and ownership

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

  • pkgs/id/crates/id-store/src/recommendation_store.rs (new; owner: C9140-02)
  • pkgs/id/crates/id-store/tests/recommendation_store.rs (new; owner: C9140-02)
    Hard dependencies (native blockers): C9140-01 — signed snapshot/history schema and per-class retention contract; C9139-02 — durable ordered page accumulation
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/crates/id-store/tests/recommendation_store.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml -p id-store --test recommendation_store
Oracle: model — expected Parent and page envelopes remain distinct and immutable; page EnvelopeId does not replace or enter ParentSnapshotId; cursor binds parent SnapshotId plus position; retention/hold/deletion model preserves required snapshots.; verifier: Independent canonical-envelope digest/signature verifier for parent and page envelopes plus finite cursor and retention model..

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 comparison UI/writer and retain snapshots under existing policy; do not delete source history.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

  • Recommendation snapshots are persisted with before/after comparison per the settled design section cited in the body (parent design(atlas): recommendation objects, search history, retention classes #9140), and an admin can view the before/after pair.
  • Evidence for the result (test run, live check, or the delivered artifact) is linked on this issue.
  • Follow-on work, if any remains, is filed as its own issue and linked here.

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: 17038
    lane: code-b
    summary: Preflight for slice C9140-02 (task 17038, lane code-b, 2026-11-14). Native-blocker check: GET repos//issues/10189/dependencies/blocked_by returns two blockers, #10172 and #10173, and BOTH are still OPEN (fresh verify this shift; #10172's own preflight task 17021 is dep-blocked on #10158). Per the preflight packet, task 17038 self-blocks with structural dependency blocks on #10172 and #10173 and NO implementation was performed. Contingent research trigger: none; none started. Issue #10189 carries no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
    next: when #10172 and #10173 both close, the broker auto-releases task 17038 to the pool; the claiming lane then implements C9140-02 within the issue's approved scope and stated oracle.

  3. added
    queue/blocked
    status/blocked
    work/assigned
    on Nov 14, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-h), worker repo-worker-code, queue task 17038
    state: blocked (reason_class: blocked)
    preflight: native blockers checked 2026-11-17T17:50Z — #10172 OPEN, #10173 OPEN. No implementation started (C9140-02 stays out of scope).
    resume: when #10172 and #10173 are closed, requeue or re-claim task 17038 and re-run the preflight.

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

    @dezren39
    MemberAuthor

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

    State: preflight complete; work PAUSED — both native blockers remain open; task 17038 self-blocked per the C9140-02 contract.

    Fresh GitHub check (2026-11-20):

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

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor
    Agent note — native-blocker preflight revalidation (task 17038, lane oc-code-02, 2026-11-23T17:55Z).Fresh check: #10172 CLOSED, #10173 OPEN (status/blocked, queue/blocked). Per the C9140-02 packet: no implementation; task self-blocked on #10173 with broker dep-recheck. No production rollout authorized or performed.
  9. added
    epic/atlas-program
    primary-parent/atlas-program
    stray-work
    on Nov 27, 2026
  10. added
    priority/normal
    on Nov 29, 2026
  11. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — lane CEN-C10 (Xaltha seat), 2026-11-29. Full body + all comments re-read firsthand for Drew's issue census.

    • State: OPEN, blocked. Native blockers: Implement durable incremental recommendation accumulator #10172 is CLOSED; Versioned recommendation object and retention contract #10173 (versioned recommendation object and retention contract) verified OPEN fresh today — it is the sole remaining blocker. Owning task 17038 is self-blocked on it; the broker re-releases when it closes.
    • Acceptance: the body's model oracle — pkgs/id/crates/id-store/src/recommendation_store.rs + tests/recommendation_store.rs: parent/page envelopes distinct and immutable, cursor binds parent SnapshotId + position, retention/hold/deletion model preserves required snapshots.
    • Census action: added priority/normal (no priority label was set; recommended tier, gated on the schema contract).
  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)

    FIXES I APPLIED:

    • none needed

    REMAINS: nothing — ready for pickup

  13. added
    app/atlas
    effort/m
    on Nov 29, 2026
  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 residual pass. A parallel census note (Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.

    Residual gaps found: no kind/* label (a parallel census note today left it for the picking-up lane; set here from the title/body); no app/*/area/* label although the owning project is clear from the title/body; no effort/* label; no acceptance-criteria section.

    Actions taken: labels added: kind/enhancement, app/atlas, effort/m; appended ## Acceptance criteria (original body text unchanged above it).

    Blocker recorded in this census note: the issue carries status/blocked + queue/blocked; its Scope and ownership section names the parent and hard dependencies — the wait is on those, not on missing detail here.

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  15. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    P1.2 stale-edge prune (Felix lane 0640-PG, #17071 P0–P3 plan)

    Before: 2 native blockedBy edges. Removed 1 stale edge (#10172, CLOSED). After: 1 edge — #10173 (OPEN) remains, so status/blocked/queue/blocked labels stay.

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

    app/atlaseffort/mepic/atlas-programkind/enhancementprimary-parent/atlas-programpriority/normalqueue/blockedstatus/blockedstray-workwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions