You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(atlas-worker): gated per-key purge route for the search cache (from #6805 policy) #8312
Implementation follow-up for #6805 (Atlas search Worker cache policy). The decision record is on #6805 (task 14163, lane code-d, 2026-11-10). Of the adopted policy, exactly one piece is worth building now; the rest is deliberately deferred behind named scale triggers recorded on #6805.
Build now: gated manual purge route for the search cache
A gated Worker route that purges the cached entry for one query key (the per-query Durable Object in pkgs/atlas-search/worker/src/cache_do.ts), for "this result is wrong, drop it" operations. Per-prefix purge too if the key structure makes it trivial; if not, record why not on this issue.
Gate: same auth posture as the Worker's other non-public routes; purge is an operator action, never reachable from the search path.
A purge must be verifiable: after purge, the same query re-runs the fan-out and re-caches (test: seed entry -> purge -> next search is a miss that re-caches).
Explicitly NOT in scope (deferred behind triggers recorded on #6805)
Corpus-generation (registry epoch) key component: trigger = first same-space re-ingest changing >5% of chunks, or a user-visible stale-result complaint.
LRU eviction sweeper + index DO: trigger = 10,000 cached queries or 1 GB aggregate cache storage.
[agent: repo-worker-code / lane code-a, task 18633] Triage of #8312: build-now item confirmed unbuilt — routed as task 20117.
Fresh checks (2026-11-17): issue OPEN (status/needs-triage, queue/queued, epic/atlas-program; no hold labels). The #6805 policy decision record (task 14163) stands: exactly one build-now piece — this gated per-key purge route — with the corpus-generation key component and the LRU sweeper deliberately deferred behind named triggers, and no TTL per Drew's standing order. Verified unbuilt: pkgs/atlas-search/worker/src/ (cache_do.ts, index.ts, key.ts, service.ts, space.ts) contains no purge code at all.
Task 20117 carries the issue's own acceptance: gated purge route (same auth posture as the Worker's other non-public routes, never reachable from the search path), seed → purge → miss/re-cache and unauthenticated-refused tests, per-prefix purge if the key structure makes it trivial (else the reason recorded here), and the two deferred triggers restated in the Worker README or cache_do.ts header.
Agent note (oc-code-05 scheduled lane, task 20117): the purge-route fix is blocked for Drew's decision. The issue is assigned to dezren39 and has no open PR. I did not start implementation without a release. Needed: an owner release or reroute. No code changed.
Claimed task 20117 and recorded the required origin checkpoint. Fresh GitHub revalidation: #8312 and policy issue #6805 are OPEN; #8312 has no hard-stop labels, and no open matching PR was found. Resuming from the existing queue progress; next inspect and implement the auth-gated purge route.
Implementation and targeted verification are complete. PR #12393 adds bearer-gated per-key purge, documents why prefix purge is not supported by the SHA-256 key structure, and restates the deferred #6805 triggers. npm test passed (22/22), npm run typecheck passed, and git diff --check passed.
PR #12393 merged after fresh verification. npm test passed (22/22); npm run typecheck and git diff --check passed. Deferred-trigger documentation is in the Worker README; per-prefix purge is omitted because the SHA-256 key structure cannot be enumerated by prefix without a new index.
Activity
developing-today commentedon Nov 10, 2026
CODE-2479
dezren39 commentedon Nov 17, 2026
[agent: repo-worker-code / lane code-a, task 18633] Triage of #8312: build-now item confirmed unbuilt — routed as task 20117.
Fresh checks (2026-11-17): issue OPEN (status/needs-triage, queue/queued, epic/atlas-program; no hold labels). The #6805 policy decision record (task 14163) stands: exactly one build-now piece — this gated per-key purge route — with the corpus-generation key component and the LRU sweeper deliberately deferred behind named triggers, and no TTL per Drew's standing order. Verified unbuilt:
pkgs/atlas-search/worker/src/(cache_do.ts, index.ts, key.ts, service.ts, space.ts) contains no purge code at all.Task 20117 carries the issue's own acceptance: gated purge route (same auth posture as the Worker's other non-public routes, never reachable from the search path), seed → purge → miss/re-cache and unauthenticated-refused tests, per-prefix purge if the key structure makes it trivial (else the reason recorded here), and the two deferred triggers restated in the Worker README or cache_do.ts header.
dezren39 commentedon Nov 18, 2026
Agent note (oc-code-05 scheduled lane, task 20117): the purge-route fix is blocked for Drew's decision. The issue is assigned to dezren39 and has no open PR. I did not start implementation without a release. Needed: an owner release or reroute. No code changed.
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: picked_up
task: 20117
lane: code-j (OpenChamber scheduled lane, worker repo-worker-code)
stage: claimed -> fresh_revalidation
Claimed task 20117 and recorded the required origin checkpoint. Fresh GitHub revalidation: #8312 and policy issue #6805 are OPEN; #8312 has no hard-stop labels, and no open matching PR was found. Resuming from the existing queue progress; next inspect and implement the auth-gated purge route.
dezren39 commentedon Nov 22, 2026
agent-note:v1
state: pr_opened
task: 20117
lane: code-j (OpenChamber scheduled lane, worker repo-worker-code)
pr: #12393
Implementation and targeted verification are complete. PR #12393 adds bearer-gated per-key purge, documents why prefix purge is not supported by the SHA-256 key structure, and restates the deferred #6805 triggers.
npm testpassed (22/22),npm run typecheckpassed, andgit diff --checkpassed.dezren39 commentedon Nov 22, 2026
agent-note:v1
state: done
task: 20117
lane: code-j (OpenChamber scheduled lane, worker repo-worker-code)
pr: #12393
merge: 79c038f
PR #12393 merged after fresh verification.
npm testpassed (22/22);npm run typecheckandgit diff --checkpassed. Deferred-trigger documentation is in the Worker README; per-prefix purge is omitted because the SHA-256 key structure cannot be enumerated by prefix without a new index.