Skip to content

Serving: exact-key serving with deny-once, budget and log on Claude Code #11

Closed

Description

@lukemaj

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

#3

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 cd and env, matches command prefixes, path globs and error signatures, and logs unparseable shapes as unsupported_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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions