v1.8 → v1.9
What changed from v1.8 to v1.9
From v1.8 (19 Jun) to v1.9 (29 Jul): 14,540 words to 15,173 words, 1,294 words in new or rewritten paragraphs and 661 taken out, 55 paragraphs changed.
July measurements replace estimates; a budget-gate bug reportedMeasurements from the authors' own deployment replace several estimates, and some claims are taken back. The revision plan and improvement notes in the paper's folder give this as the reason: the July data contradicted the earlier numbers.
- The cache hit rate was 91 %, not the estimated 65 %, so the frozen-snapshot technique (B5) is no longer the top priority; it becomes insurance.
- Tool-output savings now come from an audit of 890 sessions: about 21 % of file-read output was compressible, replacing a 30-50 % guess.
- A new failure is reported: a budget check compared a whole turn's token total with the context size and started 29 needless compactions.
- A context breakdown found to be wrong is withdrawn; only five corrected measurements are kept, without generalising.
- Savings projections the data no longer supports are removed, and an acknowledgements section is added.
v1.8 · 19 June 2026v1.9 · 29 July 2026
··· 19 unchanged paragraphs folded ···
v1.8 · 1. Introduction — The Cost Problem Nobody Talks AboutThis is not only a single-operator problem. The March 2026 Claude Code source exposure surfaced an internal figure: autocompact failures alone were reported to waste on the order of 250,000 API calls per day. Whatever the exact number, the direction is clear — getting compaction wrong is expensive even at a lab with deep pockets, and the waste scales with the size of the deployment. Budget-aware compaction is the lever that targets exactly this waste.
removed in v1.9
not in v1.8
v1.9 · 1. Introduction — The Cost Problem Nobody Talks AboutThis is not only a theoretical risk. In one seven-day production window, a faulty budget gate initiated 29 compactions at a median of roughly 5.5% of the actual context window. Each attempt remained pending until a 540-second cap and was then discarded, although the compaction work itself took 19 ms. The failure was not expensive because summarization was computationally heavy; it was expensive because a false trigger disrupted a cache serving a large repeated prefix. A secondary analysis of the March 2026 Claude Code source exposure reported a much larger internal figure—roughly 250,000 wasted calls per day from autocompact failures—but that unverified figure is corroborating context, not evidence for our deployment.
··· 38 unchanged paragraphs folded ···
v1.8 · 3. Taxonomy of Budget Prompting Techniques| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Y] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Y] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Y] | Variable | | B1 | System prompt caching | Context Econ. | [Y] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Y] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Y] | 80–95% context | | B4 | Context compaction | Context Econ. | [Y] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [ ] | CHR 65%→90%+ | | B6 | Surgical tool output pruning | Context Econ. | [ ] | 30–40% context | | B6a | Content-type-specific compression | Context Econ. | [ ] | 60–95% on structured outputs | | B7 | Iterative summary compression | Context Econ. | [ ] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [ ] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [ ] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Y] | $5–8/day | | C2 | Thinking control (output) — *output-side view of A2* | Output Econ. | [Y] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Y] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [ ] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Y] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Y] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Y] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Y] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [ ] | Indirect |
v1.9 · 3. Taxonomy of Budget Prompting Techniques| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Y] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Y] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Y] | Variable | | B1 | System prompt caching | Context Econ. | [Y] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Y] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Y] | 80–95% context | | B4 | Context compaction | Context Econ. | [Y] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [ ] | Cache-stability insurance | | B6 | Surgical tool output pruning | Context Econ. | [ ] | ~21% of audited Read bytes addressable | | B6a | Content-type-specific compression | Context Econ. | [ ] | 60–95% in stateless benchmarks | | B7 | Iterative summary compression | Context Econ. | [ ] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [ ] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [ ] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Y] | $5–8/day | | C2 | Thinking control (output) — *output-side view of A2* | Output Econ. | [Y] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Y] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [ ] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Y] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Y] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Y] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Y] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [ ] | Indirect |
··· 29 unchanged paragraphs folded ···
v1.8 · B1. System Prompt CachingThis tension motivates B5 (frozen snapshot injection), the single highest-impact unimplemented technique.
removed in v1.9
not in v1.8
v1.9 · B1. System Prompt CachingThis tension motivates B5 (frozen snapshot injection) as insurance against prefix instability. July telemetry shows that the deployment already achieves high cache reuse, so B5 is no longer the highest-impact unimplemented technique.
··· 2 unchanged paragraphs folded ···
v1.8 · B1. System Prompt Caching
v1.9 · B1. System Prompt Caching
··· 18 unchanged paragraphs folded ···
v1.8 · B4. Context Compaction**Status:** [Y] Implemented. OpenClaw's built-in feature. Triggered manually via `/compress` or automatically when context approaches limits.
removed in v1.9
not in v1.8
v1.9 · B4. Context Compaction**Status:** [Y] Implemented. OpenClaw's built-in feature. Triggered manually via `/compress` or automatically from a per-call context snapshot. A persisted per-message `usage` field is not a valid trigger input because it may aggregate multiple calls in one turn.
··· 9 unchanged paragraphs folded ···
v1.8 · B5. Frozen Snapshot Injection (Prefix Stabilization)**Expected savings:** Near-100% cache hit rate on the system prompt prefix (currently estimated at 60–70% due to mid-session memory writes). For an 18K-token system prompt, improving cache hit rate from 65% to 95% saves: - Current: 65% cached ($0.0054) + 35% uncached ($0.054) = avg $0.022/turn - With B5: 95% cached + 5% uncached (session starts) = avg $0.008/turn - Savings: $0.014/turn × 200 turns = **$2.80/day**
removed in v1.9
not in v1.8
v1.9 · B5. Frozen Snapshot Injection (Prefix Stabilization)**Expected savings:** July 25 telemetry measured a 91.1% aggregate prompt-cache hit rate (median 98.6%) and 10.6 cache reads per write. The formerly assumed 65%→95% gap therefore does not exist on this deployment. B5 remains useful as insurance: its success criterion is preserving reads per write and preventing regressions after memory mutations, not a projected 2.8× cache saving.
··· 9 unchanged paragraphs folded ···
v1.8 · B6. Surgical Tool Output Pruning**Expected savings:** Tool outputs constitute 30–50% of context in tool-heavy sessions. Replacing them with placeholders reduces this to 2–5%. For a 100K-token context where 40K is old tool output, pruning saves ~38K tokens per turn.
removed in v1.9
not in v1.8
v1.9 · B6. Surgical Tool Output Pruning**Expected savings:** An audit of 890 sessions and 4,402 file-read calls measured 23,376,348 bytes of Read output. About 5,007,000 bytes (21%) were addressable by the known compressors: 3,374,879 stale-read bytes, 1,512,097 bytes of line-number scaffolding, 94,971 bytes of subset containment, and 25,042 bytes of identical repeats. This is an observed traffic-level ceiling for those mechanisms, not the earlier 30–50% context estimate. Bash produced another 20,916,377 bytes and was not addressed by a Read-oriented compressor.
··· 107 unchanged paragraphs folded ···
v1.8 · 4.1 The Request Lifecycle``` 1. REQUEST ARRIVES ↓ 2. CLASSIFY (model routing: A1) → Determine: model, thinking budget, priority tier ↓ 3. CONTEXT ASSEMBLY a. Load frozen memory snapshot (B5, or live memory if B5 not implemented) b. Inject via memory search, not bulk load (B3) c. Check context size: - If > threshold: trigger surgical pruning (B6) - If still > threshold: trigger compaction (B4, B7) - If > hard limit: start new session (B2) ↓ 4. CACHE CHECK a. System prompt prefix → check cache (B1) b. If cache miss: absorb cost, cache for subsequent turns ↓ 5. PACING CHECK (D4) a. Token bucket has capacity? → proceed b. Bucket low? → route to alternate account (D3) or delay ↓ 6. MODEL INFERENCE a. Apply thinking budget (A2) b. Generate response c. If NO_REPLY/HEARTBEAT_OK (C1) → minimal output ↓ 7. POST-RESPONSE a. Memory writes → staging area (B5) + security scan (F1) b. Reflection counter++ → if threshold reached, queue background review (D2) c. Update token accounting for pacing (D4) ```
v1.9 · 4.1 The Request Lifecycle``` 1. REQUEST ARRIVES ↓ 2. CLASSIFY (model routing: A1) → Determine: model, thinking budget, priority tier ↓ 3. CONTEXT ASSEMBLY a. Load frozen memory snapshot (B5, or live memory if B5 not implemented) b. Inject via memory search, not bulk load (B3) c. Check a per-call context snapshot (never a turn-aggregate `usage` field): - If > threshold: trigger surgical pruning (B6) - If still > threshold: trigger compaction (B4, B7) - If > hard limit: start new session (B2) ↓ 4. CACHE CHECK a. System prompt prefix → check cache (B1) b. If cache miss: absorb cost, cache for subsequent turns ↓ 5. PACING CHECK (D4) a. Token bucket has capacity? → proceed b. Bucket low? → route to alternate account (D3) or delay ↓ 6. MODEL INFERENCE a. Apply thinking budget (A2) b. Generate response c. If NO_REPLY/HEARTBEAT_OK (C1) → minimal output ↓ 7. POST-RESPONSE a. Memory writes → staging area (B5) + security scan (F1) b. Reflection counter++ → if threshold reached, queue background review (D2) c. Update token accounting for pacing (D4) ```
v1.8 · 4.1 The Request Lifecycle
v1.9 · 4.1 The Request Lifecycle
··· 11 unchanged paragraphs folded ···
v1.8 · 4.2 Budget Pressure Cascade
v1.9 · 4.2 Budget Pressure Cascade
··· 8 unchanged paragraphs folded ···
v1.8 · 4.3 The Caching Stability Core
v1.9 · 4.3 The Caching Stability Core
··· 4 unchanged paragraphs folded ···
v1.8 · 4.4 Interaction Matrix
v1.9 · 4.4 Interaction Matrix
··· 3 unchanged paragraphs folded ···
not in v1.8
v1.9 · 4.5 Knowing When to Stop — Budget Triggers from the Claude Code SourceThe counters must also carry clear semantics. A completion fraction can use a turn-level generation budget, but a context-pressure threshold must use a per-call context snapshot. Reusing a turn aggregate for both silently changes the unit while leaving the number plausible-looking—the metrology equivalent of measuring a doorway in kilograms.
··· 5 unchanged paragraphs folded ···
not in v1.8
v1.9 · 5.1 Cost Metrics**Cache hit rate (CHR).** Percentage of prompt input served from cache across requests. Under a flat-rate subscription it is the primary efficiency metric because one prefix rebuild can dominate the small fresh-input slab.
not in v1.8
v1.9 · 5.1 Cost Metrics**Cache reads per write.** Cache-read tokens divided by cache-creation tokens. This exposes prefix churn earlier than hit rate: the July measurement was 10.6×.
not in v1.8
v1.9 · 5.1 Cost Metrics**Compactions per day.** Counted with trigger source and outcome. False compactions can destroy prefix reuse even when the summarization work is cheap.
v1.8 · 5.1 Cost Metrics**Tokens per turn (TPT).** Average input + output tokens per conversational turn. The primary cost proxy. Decomposed into: - System prompt tokens (fixed per session) - Conversation context tokens (growing) - Tool output tokens (variable) - Thinking tokens (output, variable) - Visible response tokens (output, variable)
v1.9 · 5.1 Cost Metrics**Tokens per turn (TPT).** Average input + output tokens per conversational turn, retained as a descriptive metric rather than the primary cost proxy. It must come from per-call telemetry; a turn-aggregate `usage` field is unsafe. Decomposed into: - System prompt tokens (fixed per session) - Conversation context tokens (growing) - Tool output tokens (variable) - Thinking tokens (output, variable) - Visible response tokens (output, variable)
v1.8 · 5.1 Cost Metrics**Cache hit rate (CHR).** Percentage of system prompt tokens served from cache across all requests. Target: >90%.
removed in v1.9
··· 20 unchanged paragraphs folded ···
v1.8 · 6.1 Cost Overview| Metric | Value | |--------|-------| | Average daily turns | 180–220 | | Average context at turn | ~45K tokens | | Median session length | 12 turns | | Cache hit rate (system prompt) | ~65% (estimated, degraded by memory writes) | | Monthly flat-rate cost | $400/mo | | Monthly metered API cost | ~$30/mo (GPT-4o for cross-model work) | | Rate limit lockouts (since pacing) | 0 in 8 weeks | | Rate limit lockouts (before pacing) | 3 in first 2 weeks |
v1.9 · 6.1 Cost Overview| Metric | Value | |--------|-------| | Average daily turns | 180–220 | | Average context at turn | ~45K tokens | | Median session length | 12 turns | | Prompt-cache hit rate (2026-07-25) | 91.1% aggregate; 98.6% median | | Cache reads per write (2026-07-25) | 10.6× | | Monthly flat-rate cost | $400/mo | | Monthly metered API cost | ~$30/mo (GPT-4o for cross-model work) | | Rate limit lockouts (since pacing) | 0 in 8 weeks | | Rate limit lockouts (before pacing) | 3 in first 2 weeks |
··· 4 unchanged paragraphs folded ···
v1.8 · 6.3 Projected Impact of Unimplemented TechniquesFour unimplemented techniques target the largest remaining cost drivers (see Section 8.5 for full limitations discussion):
v1.9 · 6.3 Projected Impact of Unimplemented TechniquesThe July measurements reorder the unimplemented techniques (see Section 8.5 for limitations):
v1.8 · 6.3 Projected Impact of Unimplemented Techniques| Technique | Current | Projected | Expected Impact | |-----------|---------|-----------|-----------------| | B5 (frozen snapshot) | CHR ~65% | CHR >90% | 2.8× cache savings | | B6 (surgical pruning) | Full tool output retained | 30–40% context reduction | Extends session life | | B8 (rolling window) | Monotonic growth | Fixed ~40K cap | Eliminates context bloat | | D2 (background reflection) | Inline every turn | Batched every 20 turns | 80% reflection savings |
removed in v1.9
v1.8 · 6.3 Projected Impact of Unimplemented TechniquesWe estimate implementing all four would provide an additional 2–3× cost reduction on top of current savings.
removed in v1.9
not in v1.8
v1.9 · 6.3 Projected Impact of Unimplemented Techniques| Technique | Current | Projected | Expected Impact | |-----------|---------|-----------|-----------------| | B8 (rolling window) | Monotonic growth | Fixed budget | Bounds conversation and tool history | | B7 (iterative summary) | One-pass summaries | Progressively smaller summaries | Bounds summary growth | | B6 (surgical pruning) | Raw tool output retained | ~21% of audited Read bytes addressable | Extends session life | | B5 (frozen snapshot) | CHR already 91.1% | Preserve high reuse | Prefix-instability insurance | | D2 (background reflection) | Inline every turn | Batched every 20 turns | 80% reflection savings |
not in v1.8
v1.9 · 6.3 Projected Impact of Unimplemented TechniquesWe do not project an aggregate multiplier from these techniques: the July audit invalidated the earlier B5 and B6 premises, and no controlled combined measurement exists.
··· 1 unchanged paragraph folded ···
v1.8 · 6.4 Failure Modes Observed**Cache instability from memory writes.** The most expensive failure mode. A single memory write can cascade into 5–10 minutes of cache misses, costing $0.50–1.00 in unnecessary uncached tokens. This happens 5–15 times per day in current operation. B5 (frozen snapshot) is designed to eliminate this entirely.
removed in v1.9
not in v1.8
v1.9 · 6.4 Failure Modes Observed**Cache instability from memory writes.** Memory mutation can invalidate a cached prefix, but July telemetry measured 91.1% aggregate cache hits and 10.6 cache reads per write. We therefore treat B5 as a guard against regression rather than claiming an observed 5–15 daily cascades.
··· 3 unchanged paragraphs folded ···
not in v1.8
v1.9 · 6.4 Failure Modes Observed**The budget gate measured the wrong quantity.** A compaction consumer compared persisted per-message `usage` against the context window even though that field was a turn aggregate across internal calls. It reported 6,448,106 tokens against a 1,000,000-token window and, in another event, 1,029,656 tokens (103%). Both are impossible as context snapshots. The original anatomy decoder for the second event reported 52,116 tokens, but it silently omitted every `toolResult`; 52,116 is therefore only a lower bound and the originally quoted 19.8× discrepancy is not a valid point estimate. The causal conclusion does not depend on that denominator: an aggregate larger than the window cannot be the resident context. In seven days this defect caused 29 compactions at a median roughly 5.5% of the independently estimated window; attempts waited 540 seconds and were discarded although compaction work took 19 ms.
not in v1.8
v1.9 · 6.4 Failure Modes Observed**The same class can under-count.** A synthetic message role omitted from the estimator caused a 55,632–61,336-character system prompt (roughly 15K tokens) to score as zero. Budget gates must classify every message role, report unattributed bytes, and assert that measured totals are plausible before acting.
not in v1.8
v1.9 · 6.4 Failure Modes Observed**Corrected context anatomy.** After the role classifier was fixed, five production sub-agent calls on July 28 recorded non-zero tool-result slabs. Total contexts ranged from 39,222 to 56,159 estimated tokens; tool results ranged from 11,117 to 29,122 tokens (28.0–51.9% of each context), while conversation history ranged from 4,778 to 6,336 tokens (8.5–16.0%). These are corrected measurements, but they are a five-call sub-agent sample—not a reconstruction of the earlier main-session event. The earlier 52,116-token composition and its percentages are retired rather than “corrected” by substitution.
··· 10 unchanged paragraphs folded ···
v1.8 · 7.1 headroom (Closest Comparable System)**What headroom has that we do not — and it is the right thing.** headroom ships a **reproducible eval suite** (`python -m headroom.evals`) reporting **60–95% token savings at ~0 accuracy delta on public benchmarks (GSM8K, TruthfulQA, SQuAD, BFCL)**. This is exactly the evidence MYELIN's two weakest admissions (Section 8.5) lack: we say "no degradation we have been able to observe" on an N=1 deployment with no controlled ablation; headroom reports a *measured* near-zero accuracy delta on standard benchmarks for a stateless compression layer. We do not contest that they have the stronger quality evidence on the slice they cover. We adopt their public-benchmark accuracy-delta protocol as the concrete instantiation of our Section 9.2 evaluation promise.
removed in v1.9
v1.8 · 7.1 headroom (Closest Comparable System)**What MYELIN has that headroom does not.** headroom is a compression *library* — it optimizes one slab (tool/context payloads) on a stateless basis. It does not model the billing economics that dominate a persistent agent's actual bill: prompt-cache/prefix stability (B1/B5), flat-rate rate-limit pressure and the GREEN→CRITICAL cascade (Section 4.2), dual-account staggering and token-bucket pacing (D3/D4), batch-API arbitrage (E1), and temporal amortization of reflection (D2). None of these are addressable by a compression layer, and they are where most of our real savings — and all of our reliability wins (zero lockouts, no mid-week outages) — come from. The honest split: **headroom has benchmark-grade quality evidence on stateless compression; MYELIN has a longitudinal N=1 deployment, a 20-technique composition, and real flat-rate billing data they do not have.** The two are complementary, not competing — a typed CCR compressor (B6a) slotted beneath MYELIN's caching and billing machinery would be stronger than either alone. headroom also ships a trained compression model (Kompress-v2-base on HuggingFace) and proxy/MCP/library form factors, which we discuss in B6a as an alternative to our rule-based compression stages.
removed in v1.9
not in v1.8
v1.9 · 7.1 headroom (Closest Comparable System)**What headroom has that we do not — and it is the right thing.** headroom ships a **reproducible stateless eval suite** (`python -m headroom.evals`) reporting **60–95% token savings at ~0 accuracy delta on public benchmarks (GSM8K, TruthfulQA, SQuAD, BFCL)**. This is stronger quality evidence for its benchmark slice, but the saving is not a production-context estimate. Our stateful traffic audit found only about 21% of Read-output bytes addressable by all known compressors and a nearly equally large Bash-output slab outside their scope. We adopt headroom's accuracy-delta protocol while keeping its stateless compression ratio separate from our traffic-level measurement.
not in v1.8
v1.9 · 7.1 headroom (Closest Comparable System)**What deployment integration adds.** We installed and enabled the compression layer, but its counter recorded only six lifetime requests and zero saved tokens because live traffic ran through a CLI subprocess that stripped the relevant environment variable. This null result does not contest the library benchmarks. It exposes a separate requirement: an optimizer must prove it is on the live traffic path. Installation, configuration, and registration are not liveness evidence. Every compressor and telemetry producer should publish a request counter and fail its health check when that counter remains zero over an active window.
··· 28 unchanged paragraphs folded ···
v1.8 · 8.1 The Surprising Dominance of CachingIf we had to choose a single technique from the 20 described, it would be B1 + B5 (system prompt caching + frozen snapshot injection). Caching affects *every turn*, and the cost differential (10× between cached and uncached) dominates all other savings.
removed in v1.9
not in v1.8
v1.9 · 8.1 The Surprising Dominance of CachingIf we had to choose a single foundation from the 20 techniques, it would be B1: system-prompt caching. Caching affects *every turn*, and July telemetry measured 122,422,666 cache-read tokens against 15,841 fresh input tokens and 7,374,471 cache-creation tokens in the current subscription window—a roughly 7,728:1 cache-read-to-fresh-input ratio. B5 is now insurance for that foundation, not the primary source of further savings.
··· 17 unchanged paragraphs folded ···
not in v1.8
v1.9 · 8.5 Limitations**Context-anatomy sample.** The corrected per-slab decomposition contains five production sub-agent calls from one short interval. It proves that tool results are resident and quantifies those calls, but it does not establish a deployment-wide distribution. The original main-session decomposition cannot be repaired retrospectively because the buggy classifier did not retain the omitted tool-result count.
not in v1.8
v1.9 · 8.5 Limitations**Long residency tail.** In the audit, context residency had median 48, mean 139.6, p90 364, and a maximum of 34 re-reads for one file. This fat tail weakens the assumption that old tool output is uniformly disposable and argues for reversible retrieval rather than aggressive deletion.
··· 8 unchanged paragraphs folded ···
v1.8 · 9.1 Implementation of Proposed Techniques1. **B5 (Frozen Snapshot Injection):** Expected to improve cache hit rate from ~65% to >90%. Requires changes to OpenClaw's memory injection pipeline. Target: Q2 2026.
removed in v1.9
v1.8 · 9.1 Implementation of Proposed Techniques2. **B6 (Surgical Tool Output Pruning):** Expected to reduce average context by 30–40% in tool-heavy sessions. Can be implemented as a post-processing step in the context assembly pipeline. Target: Q2 2026.
removed in v1.9
v1.8 · 9.1 Implementation of Proposed Techniques3. **B8 (Rolling Window + Vector Retrieval):** The most architecturally significant change — replaces monotonic context growth with fixed-budget context management. Requires embedding pipeline and vector store. Target: Q3 2026.
v1.9 · 9.1 Implementation of Proposed Techniques1. **B8 (Rolling Window + Vector Retrieval):** Replaces monotonic context growth with fixed-budget context management. Requires an embedding pipeline, vector store, and recall evaluation.
v1.8 · 9.1 Implementation of Proposed Techniques4. **D2 (Background Review Agent):** Requires background process orchestration and careful design of the reflection prompt. Target: Q2 2026.
removed in v1.9
not in v1.8
v1.9 · 9.1 Implementation of Proposed Techniques2. **B7 (Iterative Summary Compression):** Targets the conversation-history and summary slabs without depending on the disproven B5 savings gap.
not in v1.8
v1.9 · 9.1 Implementation of Proposed Techniques3. **B6 (Surgical Tool Output Pruning):** Start with the measured free wins: remove line-number scaffolding, then address stale Read output and the currently unclaimed Bash-output slab. Preserve reversible retrieval for the long residency tail.
not in v1.8
v1.9 · 9.1 Implementation of Proposed Techniques4. **B5 (Frozen Snapshot Injection):** Retain as prefix-instability insurance. Evaluate it by cache reads per write and cache-hit regressions, not by the retired 65%→95% projection.
··· 1 unchanged paragraph folded ···
v1.8 · 9.2 Rigorous EvaluationA future revision will add: - Controlled ablation studies for each technique category - Statistical analysis with confidence intervals - Quality metrics (SyncScore, task completion) with before/after comparison - Cache hit rate instrumentation for precise measurement - **A public-benchmark accuracy-delta protocol, borrowed from headroom (§7.1).** Our weakest claim is "no degradation we have been able to observe," resting on a single deployment. headroom demonstrates a concrete, reproducible alternative: run the candidate configuration against standard benchmarks (GSM8K, TruthfulQA, SQuAD, BFCL) with and without each context-economics technique, and report the accuracy delta directly. This converts our subjective "no degradation observed" into a measured number for the techniques where it applies (B3, B4, B6, B6a, B8) — the compression/retrieval levers whose quality risk is exactly what a benchmark can isolate. The billing and reliability techniques (B1, D3, D4, E1) are not benchmark-measurable in this way and remain the province of our production data.
v1.9 · 9.2 Rigorous EvaluationA future revision will add: - Controlled ablation studies for each technique category - Statistical analysis with confidence intervals - Quality metrics (SyncScore, task completion) with before/after comparison - Repeat cache-hit and reads-per-write measurements across dated windows - Liveness assertions for every optimizer and telemetry producer (non-zero requests during active traffic) - **A public-benchmark accuracy-delta protocol, borrowed from headroom (§7.1).** Our weakest claim is "no degradation we have been able to observe," resting on a single deployment. headroom demonstrates a concrete, reproducible alternative: run the candidate configuration against standard benchmarks (GSM8K, TruthfulQA, SQuAD, BFCL) with and without each context-economics technique, and report the accuracy delta directly. This converts our subjective "no degradation observed" into a measured number for the techniques where it applies (B3, B4, B6, B6a, B8) — the compression/retrieval levers whose quality risk is exactly what a benchmark can isolate. The billing and reliability techniques (B1, D3, D4, E1) are not benchmark-measurable in this way and remain the province of our production data.
··· 14 unchanged paragraphs folded ···
v1.8 · Appendix A: Technique Summary Table| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Impl.] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Impl.] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Impl.] | Variable | | B1 | System prompt caching | Context Econ. | [Impl.] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Impl.] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Impl.] | 80–95% context | | B4 | Context compaction | Context Econ. | [Impl.] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [Designed] | CHR 65%→90%+ | | B6 | Surgical tool output pruning | Context Econ. | [Designed] | 30–40% context | | B6a | Content-type-specific compression | Context Econ. | [Designed] | 60–95% on structured outputs | | B7 | Iterative summary compression | Context Econ. | [Designed] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [Designed] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [Designed] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Impl.] | $5–8/day | | C2 | Thinking control (output) — *output-side view of A2* | Output Econ. | [Impl.] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Impl.] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [Designed] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Impl.] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Impl.] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Impl.] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Impl.] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [Designed] | Indirect |
v1.9 · Appendix A: Technique Summary Table| # | Technique | Category | Status | Est. Savings | |---|-----------|----------|--------|--------------| | A1 | Model routing by complexity | Model Routing | [Impl.] | 25–40% automated | | A2 | Extended thinking control | Model Routing | [Impl.] | $5–10/day equiv. | | A3 | Cross-model delegation | Model Routing | [Impl.] | Variable | | B1 | System prompt caching | Context Econ. | [Impl.] | $8–10/day | | B2 | Aggressive session management | Context Econ. | [Impl.] | 2–4× per turn | | B3 | Memory search over bulk loading | Context Econ. | [Impl.] | 80–95% context | | B4 | Context compaction | Context Econ. | [Impl.] | 60–80% context | | B5 | Frozen snapshot injection | Context Econ. | [Designed] | Cache-stability insurance | | B6 | Surgical tool output pruning | Context Econ. | [Designed] | ~21% of audited Read bytes addressable | | B6a | Content-type-specific compression | Context Econ. | [Designed] | 60–95% in stateless benchmarks | | B7 | Iterative summary compression | Context Econ. | [Designed] | 5–15K tokens | | B8 | Rolling window + vector retrieval | Context Econ. | [Designed] | Fixed context cap | | B9 | Mid-context reinjection | Context Econ. | [Designed] | Indirect | | C1 | Silent reply (NO_REPLY) | Output Econ. | [Impl.] | $5–8/day | | C2 | Thinking control (output) — *output-side view of A2* | Output Econ. | [Impl.] | (see A2) | | D1 | Cron priority tiers | Temporal Amort. | [Impl.] | 15–20% automated | | D2 | Background review agent | Temporal Amort. | [Designed] | 80% reflection | | D3 | Dual-account staggering | Temporal Amort. | [Impl.] | Eliminates outages | | D4 | Token bucket pacing | Temporal Amort. | [Impl.] | Prevents lockouts | | E1 | Batch API for non-interactive | Billing Arbitrage | [Impl.] | 50% on batch work | | E2 | Sub-agent fresh context | Billing Arbitrage | [Impl.] | $1–3/delegation | | F1 | Security scanning on mem writes | Security | [Designed] | Indirect |
··· 11 unchanged paragraphs folded ···
not in v1.8
v1.9 · Acknowledgements## Acknowledgements
not in v1.8
v1.9 · AcknowledgementsThe author used an LLM assistant for manuscript revision, consistency checking, and evidence tracing. The author remains responsible for the claims and interpretation.
not in v1.8
v1.9 · Acknowledgements---
v1.8 · Acknowledgements*MYELIN — TinkerClaw Working Paper* *© 2026 Oscar Serra, Jarvis. All rights reserved.*
v1.9 · Acknowledgements*MYELIN — TinkerClaw Working Paper* *© 2026 Oscar Serra. All rights reserved.*
Changed paragraphs in the same form, for scripts: JSON
· Markdown