Skip to content

Cache epoch and hot-result contract #10154

Open

Description

@dezren39

Problem and goal

Specify local watermark/policy epoch, bounded corpus staleness, immediate revocation, realtime/cache-disable flags and fail-closed behavior against current indefinite cache.

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#9134-tenant-hot-cache-s24s26-s217 (section: #9134 tenant hot cache (S2.4–S2.6, S2.17)).
Tier: crucial.
Statement IDs: S2.4, S2.5, S2.6, S2.17
Enables: safe cache implementation

Scope and ownership

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

  • pkgs/atlas-search/worker/src/cache_contract.ts (new; owner: C9134-01)
  • pkgs/atlas-search/worker/test/cache_contract.test.ts (new; owner: C9134-01)
    Hard dependencies (native blockers): 9083 — tenant authorization and monotonic policy-epoch/revocation interface; 9092 — corpus watermark/invalidation publisher contract and public cache flags
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/atlas-search/worker/test/cache_contract.test.ts first. Proposed command: npm --prefix pkgs/atlas-search/worker exec vitest -- run test/cache_contract.test.ts
Oracle: model — expected Policy epoch stale/unknown never serves; fresh hot result serves without a source/Turso lookup; realtime and disable flags bypass cache.; verifier: Independent watermark/policy-epoch state model with event loss, lease expiry, revocation, and lookup counter..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Keep cache bypass enabled and retain prior cache data only as inaccessible diagnostics; never restore indefinite serving after revocation.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

  • The cache epoch and hot-result contract is specified per the settled design section cited in the body (parent design(atlas): D1 tenant hot cache — admission, invalidation, Turso-hop skip #9134, statement IDs S2.4/S2.5/S2.6/S2.17): local watermark/policy epoch, bounded corpus staleness, immediate revocation, realtime/cache-disable flags and fail-closed behaviour are all pinned in pkgs/atlas-search/worker/src/cache_contract.ts with its test file.
  • 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: 17004
    lane: code-b
    summary: Preflight for slice C9134-01 (task 17004, lane code-b, 2026-11-14). Native-blocker check: GET repos//issues/10154/dependencies/blocked_by returns two blockers, and both are still OPEN (fresh gh verify this shift): #9083 (tenant authorization and monotonic policy-epoch/revocation interface) and #9092 (corpus watermark/invalidation publisher contract and public cache flags). The issue body lists the same two as hard dependencies. Per the preflight packet, task 17004 self-blocks with structural dependency blocks on #9083 and #9092 and NO implementation was performed. Contingent research trigger: none; none started. Issue #10154 carries no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
    next: when #9083 and #9092 both close, the broker auto-releases task 17004 to the pool; the claiming lane then implements C9134-01 within the issue's approved scope (cache_contract.ts + cache_contract.test.ts, model oracle) — test first per the issue.

  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

    • kind: blocked
    • worker: repo-worker-code
    • lane: code-f
    • task: 17004 (repo-health-code-pilot)
    • at: 2026-11-17T17:43:48Z
    • summary: Native-blocker preflight for slice C9134-01 complete. Both hard blockers remain OPEN — blocked-by: developing-today/code#9092, developing-today/code#9083 verified fresh via gh issue view at 2026-11-17T17:43Z. Per the mandatory preflight, no implementation was performed and the claimed queue task 17004 was self-blocked (reason-class: blocked, blocked-by-issue: #9083, #9092). Work stays paused until every native blocker is closed. No production rollout authorized.
  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 17004
    worker: repo-worker-code
    lane: oc-code-03
    origin: openchamber-scheduled-lane
    stage: native_blocker_preflight

    Fresh native blocker preflight (2026-11-20 17:45Z): #9083 and #9092 are both OPEN. Per the mandatory preflight packet, no implementation or rollout is authorized while either blocker remains open. Task 17004 is self-blocked with both native issues recorded; no repository files changed.

  8. added
    epic/atlas-program
    on Nov 27, 2026
  9. 3 remaining items

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

    @developing-today-fleet
    Contributor

    Felix lane (muse), #14863 audit slice N6: removed the stale native blocked_by edge to #9083 — #9083 is now CLOSED, so of the two blockers recorded at the 2026-11-20 preflight only #9092 remains, verified OPEN via the dependencies API readback just now. The issue stays blocked on #9092 alone; queue/blocked + status/blocked unchanged. Refs #14863

  11. added
    priority/high
    on Nov 29, 2026
  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Census note — 2026-11-29 (lane CEN-C09, full issue census)

    State verified today: the gate graph narrowed TODAY — the #14863 N6 audit removed the stale blocked-by edge to #9083, which is now CLOSED. Of the two blockers recorded at the 2026-11-20 preflight, only one remains.
    Sole remaining blocker (verified OPEN 2026-11-29): #9092 (corpus watermark/invalidation publisher).
    Next step: when #9092 closes, implement the contract at pkgs/atlas-search/worker/src/cache_contract.ts + tests (watermark/policy epoch, bounded staleness, immediate revocation, fail-closed) per the settled #9134 design section.
    Census fixes: added priority/high — the body tiers this slice crucial and it enables the safe cache implementation (#10166 hangs off it).
    Verdict: blocked — detail exemplary (owned files, statement IDs, design anchor); one live gate.

  13. 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:

    • substantive body (1975 chars)
    • acceptance structure present (0 checklist items, 0 checked)
    • names concrete file/module pointers: com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-c/versioned-design.md, pkgs/atlas-search/worker, pkgs/atlas-search/worker/src/cache_contract.ts, pkgs/atlas-search/worker/test/cache_contract.test.ts
    • 7 prior comments of triage/work history on record
    • priority already set (priority/high)
    • native blocked_by edges already present: impl(atlas-search): search v1 — build-out, Workers fan-out, shard benchmarks, cache policy, second embedder #9092

    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

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

    @developing-today-fleet
    Contributor

    Priority validation 2026-11-29 (Felix): priority/high → priority/normal — crucial-tier specification slice, but it sits behind the open #9092 hub and gates a single normal-band follow-on (#10166); no time-sensitive work waits on it — the scheduling band is normal even though the design tier is crucial

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

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

    @developing-today-fleet
    Contributor

    🤖 P3.1 reparenting — Felix lane 0640-WO, 2026-11-30 (Refs #17071). This issue's native parent #9134 is closed and has no parent or named successor epic of its own, so under the P0–P3 playbook's destination rule (successor epic or top-level) it is detached to top-level via the GraphQL removeSubIssue mutation. Verified post-move: parent is null. No state, labels, or priority band changed.

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/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