Repository navigation
Description
What: Claude Code sessions under Chromeria are served exact-key items at the proven seams, with deny-once for must-know-before items, a per-turn budget and a per-moment log.
Why: Before-action knowledge is the largest measured need and needs no GPU, but no serving owner, log or budget exists yet.
So what: An agent builds the first end-to-end serving path on one host; the other hosts and lanes build on it.
Parent
Outcome
Each machine's Chromeria server owns serving state. Thin Claude Code hooks forward each moment (session start, user message, pre-tool, tool result, tool failure, before-done) to it and print what it returns. The exact-key lane matches structured tool input against an exact-key store; flagged must-know-before items deny the call once per entry version per session; other matches are served at the next proven seam. Every moment is logged, and one switch turns serving off.
Elon record
- Requirements and who asked: deny-once per entry version per session for must-know-before exact keys; session-start files outside the 10,000-character turn cap (user, 2026-10-12); a per-moment log separating not served from ignored (user); the exact-key owner first and an off switch (gap review synthesis); re-send the session-start pack after compaction (gap review synthesis).
- Deleted: pre-tool added context as a before-action path; a session-wide dedupe; a pack ceiling and priority order.
- Bottleneck: the seams proven by the canary.
- Checked myself: the before-action delivery research (deny then retry works in Claude Code; deny-to-retry about 5 s); the private serving design and gap reviews.
Acceptance criteria
- The exact-key lane splits shell segments, ignores leading
cdandenv, matches command prefixes, path globs and error signatures, and logs unparseable shapes asunsupported_key. - A flagged item denies its matching call once per entry version per session, and the retry passes.
- The per-turn counter caps served text at 10,000 characters (session-start files excluded), first fit wins, and cuts are logged.
- Each moment's log record holds moment id, kind, context epoch, owner commits loaded, lane, entry id and version, outcome and remote status, and no window text.
- Compaction starts a new context epoch and re-serves the session-start pack.
- One switch turns serving off; sessions then run as before.
Non-goals
- Codex, Grok Build and OpenCode (next Issue).
- Retrieval and router lanes.
Blocked by
Required proof
- A live Claude Code session log showing a deny-once, a post-tool serve, a budget cut and a compaction re-serve; the off-switch check; tests at the hook-to-server seam.
Activity
fix: quote-aware shell keys and delivery-aware serving state (#11)
fix: match command keys as words anywhere; only settled denies count (#…
fix: release a killed hook's reservation before fitting the retry (#11)
fix: give denies their own 2,000-character pool per turn (#11)
fix: a must-know-before deny is never dropped for size (#11)
fix: a deny carries only whole rules; the rest wait for their next ca…
feat: exact-key serving with deny-once, budget and log on Claude Code (…