Skip to content

Versioned recommendation object and retention contract #10173

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: 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#9140-recommendation-objectshistory-s68s612-s616s617 (section: #9140 recommendation objects/history (S6.8–S6.12, S6.16–S6.17)).
Tier: crucial.
Statement IDs: S6.8, S6.9, S6.10, S6.11, S6.12, S6.16, S6.17
Enables: snapshot persistence

Scope and ownership

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

  • pkgs/id/crates/id-store/src/recommendation_object.rs (new; owner: C9140-01)
  • pkgs/id/crates/id-store/tests/recommendation_object.rs (new; owner: C9140-01)
    Hard dependencies (native blockers): C9139-01 — stable materialized snapshot/page IDs and finite retention semantics; 9084 — reference/deletion authority and retention hooks
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/crates/id-store/tests/recommendation_object.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml -p id-store --test recommendation_object
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 new object writer; preserve existing signed snapshots and use prior retention policy until migration resumes.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

  • The versioned recommendation object and retention contract is specified per the settled design section cited in the body (parent design(atlas): recommendation objects, search history, retention classes #9140), including retention and expiry behaviour.
  • 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 — task 17022 dependency-blocked on issues #10158 and #9084 (lane any-c)

  3. added
    work/assigned
    queue/claimed
    status/in-progress
    queue/blocked
    status/blocked
    and removed
    status/in-progress
    queue/claimed
    on Nov 14, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triage — task 19131, lane any-i, 2026-11-16: duplicate bulk-intake triage; existing gated disposition stands.

    Fresh verification (gh, 2026-11-17T06:55Z):

    Verdict: triaged (existing disposition stands). No duplicate follow-on enqueued; work proceeds via task 17022 when #10158 and #9084 close. Issue labels queue/blocked + status/blocked left as task 17022's state.

  5. 19 remaining items

  6. added
    priority/normal
    and removed
    priority/normal
    priority/high
    on Nov 29, 2026
  7. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Priority validation 2026-11-29 (Felix): priority/high → priority/normal — ordinary V3 store-contract slice (its V4 sibling #10189 sits at normal); sole remaining blocker is the long-horizon #9084 design hub and no time-sensitive consumer waits on this slice

  8. added
    kind/design
    app/atlas
    effort/m
    on Nov 29, 2026
  9. 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.

    Actions taken: labels added: kind/design, app/atlas, effort/m.

    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.

  10. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (addendum)

    Mop-up for the wave-2 residual pass on this issue: the ## Acceptance criteria append failed on a transient GitHub stream error during the main pass and has now been applied (original body text unchanged above it). Everything else in the main census note on this issue stands as written.

  11. removed
    status/blocked
    queue/blocked
    on Nov 30, 2026
  12. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 P0.4a stale-edge prune — Felix lane 0640-PA, 2026-11-30 (Refs #17071)

  13. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 2107-AA (Archer, charlie ADVANCE 2026-11-30 21:07 CST, third wave; first draw per 2107-M's successor note).

    FULL claim-scan firsthand: body + all 13 comments read. No live claim: the newest comment is Felix 0640-PA's 2026-11-30T09:15:13Z stale-edge prune — #9084 is CLOSED, its blockedBy edge removed, 0 open native blockers, status/blocked + queue/blocked labels cleared. The body's other hard dependency C9139-01 (#10158) is CLOSED per the 2026-11-29 census note on this issue. Old queue task 17022 notes (Nov 14–20) are blocked-self dispositions, not live lane claims.

    Taking slice C9140-01 in full: pkgs/id/crates/id-store/src/recommendation_object.rs + pkgs/id/crates/id-store/tests/recommendation_object.rs (test-first), per the settled #9140 design section (S6.8–S6.12, S6.16–S6.17). Model oracle: parent and page envelopes distinct and immutable; page EnvelopeId never enters ParentSnapshotId; cursor binds parent SnapshotId plus position; retention/hold/deletion preserves required snapshots. Authoring via the Git-API contents route; verification via fleet Actions exec (cargo test -p id-store --test recommendation_object). Landing this also unblocks #10189. Key: 2107-AA

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/designprimary-parent/atlas-programpriority/normalstray-workwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions