docs: land prior ADR + prompt updates

Commit pre-existing uncommitted working-tree changes that predate the
license/public-readiness work — NOT authored in this session, just flushed so
they're not lost: ADR-0003/0005/0009/0012 edits, the new ADR-0013
(embeddings-bypass + two-slot residency, already referenced by CLAUDE.md), and
the phase-0..3 prompt revisions + prompts/README.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-26 20:33:39 -04:00
parent 823c0b4ca8
commit 0526bada90
10 changed files with 276 additions and 98 deletions
+8 -5
View File
@@ -1,13 +1,16 @@
# phase-3.md — Durable queue, single worker, drain-by-model
Re-ground: `CLAUDE.md` + ADR-0009 (single worker / drain-by-model), 0008 (queue),
0004 (lifecycle/retry). Plan, get approval, implement.
Re-ground: `CLAUDE.md` + ADR-0009 (single worker / drain-by-model), 0013
(embeddings bypass — they must NOT be touched here), 0008 (queue), 0004
(lifecycle/retry). Plan, get approval, implement.
## Objective
Route execution through the SQLite queue with exactly one worker and
drain-by-model scheduling. The synchronous passthrough from Phase 2 now enqueues
and blocks on completion instead of calling the target directly.
Replace Phase 2's interim single-flight chat gate with the real SQLite queue and
one worker, with drain-by-model scheduling. The synchronous passthrough now
enqueues and blocks on completion instead of holding a direct gate.
`/api/embed` stays exactly as Phase 2 built it — direct, concurrent, never
queued (ADR-0013). Do not route embeddings through any of this.
## Tasks