Skip to content

docs(spec): DOC-32 trusty-headroom — reversible context-compression service#1983

Merged
bobmatnyc merged 1 commit into
mainfrom
docs/trusty-headroom-spec
Jul 13, 2026
Merged

docs(spec): DOC-32 trusty-headroom — reversible context-compression service#1983
bobmatnyc merged 1 commit into
mainfrom
docs/trusty-headroom-spec

Conversation

@bobmatnyc

Copy link
Copy Markdown
Owner

Adds docs/specs/trusty-headroom.md (DOC-32 / SPEC-HEADROOM-01..09).

Specs a new standalone Rust crate trusty-headroom — a clean-room reimplementation of Netflix Headroom (reversible Compress-Cache-Retrieve, JSON/code/log transforms, MCP retrieve tool) as a callable service (lib + CLI + on-demand MCP, no daemon in Phase 1 since the algorithmic transforms have zero model-load latency). Supersedes trusty-mpm's lossy optimizer.toml and wires reversible compression into the managed launcher's PostToolUse + retrieve-MCP.

Doc-only. Tracks #1982.

🤖 Generated with Claude Code

…ervice

Spec for a new standalone Rust workspace crate `trusty-headroom` (a-la
trusty-search: lib + bins + src/mcp/), a clean-room reimplementation of Netflix
Headroom's ideas: reversible Compress-Cache-Retrieve (CCR), content-type
transforms (JSON crush, code AST, log dedup), and an MCP retrieve tool.

Key decisions captured: (1) callable service (lib + CLI + on-demand MCP), NO
daemon in Phase 1 — the algorithmic transforms have zero model-load latency, so
a warm daemon is only justified if an optional ML text-compressor (Phase 2) is
added; (2) supersedes trusty-mpm's lossy optimizer.toml (Trim/Summarise/Caveman)
with reversible compression; (3) wires into the managed launcher's PostToolUse +
retrieve-MCP, closing the "optimizer not wired in managed sessions" gap.

Incorporates DOC-32 KV-cache audit finding (trusty-mpm's system-prompt prefix is
already cache-stable) and both architecture steers from the design discussion.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bobmatnyc
bobmatnyc merged commit a353019 into main Jul 13, 2026
6 checks passed
@bobmatnyc
bobmatnyc deleted the docs/trusty-headroom-spec branch July 13, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants