GeezerVison is showing github.com — feat(atlas-worker): gated per-key purge route for the search cache (from #6805 policy) · Issue #8312 · developing-today/code
feat(atlas-worker): gated per-key purge route for the search cache (from #6805 policy) #8312DescriptionImplementation 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)
Acceptance
- Purge route merged with tests (purge-then-miss-re-cache; unauthenticated purge refused).
- The two deferred triggers are restated in the Worker README or cache_do.ts header comment so they are discoverable where the code lives.
Activitydeveloping-today commented on Nov 10, 2026 dezren39 commented on 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 commented on 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 commented on 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 commented on 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 test passed (22/22), npm run typecheck passed, and git diff --check passed. dezren39 commented on 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 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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|