# Privacy-as-Load-Bearing, and the Recipe as Intermediate Abstraction: v0.3.8 → v0.3.9

From v0.3.8 (14 Jun) to v0.3.9 (29 Jul): 6,715 words to 7,082 words, 530 words in new or rewritten paragraphs and 163 taken out, 18 paragraphs changed.

## Change note of v0.3.9

**Two new limits - a check can measure the wrong thing, a tool can sit unused**

A small revision, about 5 % of the text. It adds evidence from a July deployment to two places. The revision plan says the two arguments were kept on purpose, although an assessment had suggested splitting them.

- The leak pattern is extended to measurement: a gate that sees only part of the state reads "zero" both when things are clean and when they are unseen. A real case is given, where a misread token count made memory compaction fire far too early.
- A new limit on maturity: a component can be installed, enabled and passing its checks and still carry no traffic. A tool tried in late July handled six requests in four days.
- "Probe symmetry" becomes "probe symmetry and liveness": a probe must show real observations in a stated window.
- The gaps appendix gains this reachability item.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

This paper carries two arguments. The first is structural: a privacy gate scoped to each push proves that no single push makes history worse, but it does not prove the cumulative history is clean — a diff-based contract is necessary but not sufficient for any contract that must hold over absolute state. A real leak demonstrated this. The fix names the missing axis (privacy dominates functionality) as a design principle and hardens the pre-push gate to scan accumulated drift, not just the push range. The second argument is about abstraction: AI-pair coding lacks a *middle* layer between source code and a single prose mental model, and that gap exists for behavior as much as for documentation. The fork ships an orchestration substrate of *recipes* (on disk: *kits*) — the named, replayable, gated unit between a one-shot prompt (a wish) and a script (brittle code). The same five primitives that make a self-documenting codebase enforce itself make the recipe library enforce itself. Two claims are deliberately held to what the live code supports: the composition algebra has both halves shipped and tested — `uses:` (runtime sub-recipe invocation) and `composes:` (inline step-merge at plan-build time), each depth- and cycle-guarded; and recipe matching is lexical by default with a semantic fallback lane gated default-OFF, not a default-semantic match. A third position is now defensible against the live ecosystem: the recipe's on-disk schema (`kit/1.0`) is a *cross-registry interchange format*, not a fork-local convention — the same header is published by an independent registry (Journey) and parses and runs in our loader, completing the function/module-library analogy across project boundaries. The honest residue is also named: every gate the recipe layer carries is *structural*, [-and-] {+while+} adjacent open-source systems [-(addyosmani/agent-skills, marketingskills, headroom)-] carry {+negative-space and behavioral-evaluation+} contracts we do not [-yet-] {+yet. First-party deployment measurements expose a third missing axis: *in-situ reachability*. A component can be installed, enabled, structurally valid, and behaviorally sound in isolation while carrying no production traffic. The paper therefore adds probe liveness+} — [-negative-space anti-triggers, load-context constraints, and runnable behavioral evals-] {+non-zero observations in a stated window+} — [-which the paper now positions-] as [-related work and-] {+a+} queued [-future work rather than absorbing into an inflated maturity claim.-] {+complement to probe symmetry.+}

### 1.2 The pattern in one sentence

![Each push is scanned over its own range and passes its per-delta gate, yet the cumulative state main would inherit accumulates a contract violation no single push introduced. A green per-push gate is necessary but not sufficient; only a scan over the absolute state catches the [-drift.](images/accumulated-drift.png)-] {+drift.](images/accumulated-drift-tinker.png){ width=100% }+}

### 1.3 Generalisation beyond PII

[-- Schema-drift contracts: one migration may not violate the invariant; a chain of three may land in a state none of them individually broke. - Performance contracts: one commit may not regress a benchmark by 5%; seven commits each regressing 0.9% land beyond the threshold. - Bundle-size contracts: one dependency add may be small; the accumulated tree exceeds budget.-]

### 1.3 Generalisation beyond PII

{+- Schema-drift contracts: one migration may not violate the invariant; a chain of three may land in a state none of them individually broke. - Performance contracts: one commit may not regress a benchmark by 5%; seven commits each regressing 0.9% land beyond the threshold. - Bundle-size contracts: one dependency add may be small; the accumulated tree exceeds budget. - Budget and estimator-coverage contracts: a gate may inspect only part of the state, so zero can mean either "clean" or "unseen." On one deployment, a 55,632–61,336-character system prompt (about 15,000 tokens) arrived under an unhandled synthetic role and was scored as zero. Another path read a turn-aggregate `usage` field as a context snapshot, producing the opposite error: 6,448,106 reported tokens for a decoded 52,116-token context.+}

### 1.3 Generalisation beyond PII

Anywhere a contract reads "the system state must satisfy X," a per-delta gate is necessary but not sufficient. The gate must check the absolute state, not just the [-delta.-] {+delta, and its measurement contract must establish that the observed state is the state it claims to measure.+}

### 7. What the maturity claim can honestly say

There is a second axis of honesty the maturity claim must respect, and it is sharpened by the live open-source ecosystem. Every gate the recipe layer carries (§9) is *structural*: the `subagents-and-recipes.md` verify blocks assert that exports still exist, that the loader still wires turn-start auto-seed, {+and+} that the kit files still parse as YAML carrying slug/title/summary. None [-of it-] measures whether a recipe, *when it fires*, produces a better outcome than the one-shot prompt it replaces — [-which is-] the abstraction's [-entire-] reason to exist. So "the recipe library enforces itself" [-today-] means *enforces its structure*, not *enforces its value*. Two adjacent systems [-make-] {+close+} this gap [-concrete by closing it-] on the value side: **marketingskills** (Corey Haines, `coreyhaines31/marketingskills`, ~33k stars) ships per-skill [-`evals/evals.json` —-] {+`evals/evals.json`, with+} realistic prompts [-paired with-] {+and+} assertion [-lists,-] {+lists+} runnable under an LLM [-judge — and-] {+judge;+} **headroom** (Tejas Chopra, `chopratejas/headroom`, ~24.7k stars) ships a reproducible eval suite (`python -m headroom.evals`) [-that reports-] {+reporting+} a measured accuracy delta (≈0 on [-GSM8K/TruthfulQA/SQuAD/BFCL) against its compression claims. The honest position: our-] {+GSM8K/TruthfulQA/SQuAD/BFCL). Our+} structural-verify discipline [-is *stronger* than either system's — neither has a `verify:`-gated governing doc or commit-anchored invariants — but-] {+covers mechanisms they do not, while+} both carry a behavioral-eval surface we [-do not, and that surface is exactly what would let the "abstractions accumulate" thesis (§9.3) claim *measured retention-of-quality* rather than only measured structural integrity.-] {+lack.+} A per-recipe assertion [-set,-] {+set+} runnable as a [-judge,-] {+judge+} is therefore queued as the highest-value next [-gate, not folded into the present maturity claim. It belongs to the same priority logic as Constraint P: a claim of value, like a claim of privacy, must be backed by a gate that runs, not by prose.-] {+gate.+}

### 7. What the maturity claim can honestly say

{+A third axis is *in-situ reachability*: whether the abstraction actually receives production traffic in a stated window. We deployed headroom on this stack from 25–28 July 2026. It was installed, enabled, running, and referenced by the gateway environment, yet recorded six lifetime requests and zero tokens saved because the live path ran through a CLI subprocess that stripped the environment variable. Its isolated evaluation could still pass; the algorithm was not disproved. The integration was unreachable. The same failure shape appeared independently in cache telemetry: a correct per-call producer targeted an unconfigured backend while the live path fed an aggregate. Structural integrity, behavioral quality in isolation, and in-situ reachability are therefore orthogonal claims.+}

### 7. What the maturity claim can honestly say

{+The estimator failure in §1.3 supplies the cost of confusing these claims. A turn aggregate read as a context snapshot produced at least a 19.8× over-read; compaction then fired at a median of about 5.5% of the real window, and 29 events in seven days reached a 540-second cap and were discarded despite 19 ms of compaction work. A claim of value, like a claim of privacy, needs a gate that runs; the gate must also read what it claims to measure and prove that the measured component sits on the live path.+}

### 9. The recipe as intermediate abstraction

![The two abstraction layers under one set of primitives: descriptive (the documentation atlas) and executable (the recipe library), each sitting between source code and a single mental model, each gated by the same five primitives plus Constraint [-P.](images/abstraction-layers.png)-] {+P.](images/abstraction-layers-tinker.png){ width=100% }+}

### 9.5 The schema's negative space: anti-triggers and load-context contracts

This is exactly the kind of executable-invariant the title concept ("intermediate *abstractions*") says the executable layer deserves, and its absence is a real hole in the §9.6 claim that both layers are gated by the same primitives. A `verify:`-gradeable anti-trigger field and a load-context field would let the matcher *refuse* as deliberately as it *fires*, and would let the governing doc assert that refusal-coverage exists — the same way it asserts that turn-start auto-seed exists. The honest comparison runs both ways: our recipes already carry something addyosmani's do not (runtime composition with depth/cycle guards, and on-the-fly authoring at the point of need), but their schema encodes an applicability/load-context contract ours does not. The [-next revision's-] {+queued+} mechanism [-work, not yet shipped,-] {+work+} is to add [-an-] anti-trigger [-axis-] and [-a-] load-context [-axis-] {+axes+} to the kit schema and a verify block that asserts their [-presence —-] {+presence,+} promoting the negative-space contract from prose convention to executable invariant. Until that lands, §9.6's "both layers gated identically" claim is held to "both layers gated identically *on positive structure*; negative-space gating is queued."

### 9.6 Why the two layers belong together

- **Multi-optic atlas / one recipe per task class.** One documentation file answers one question class; one kit answers one task class. The fork carries 38 kits with `schema: "kit/1.0"` (counted live on 2 June 2026), one per task class (debug, revise-paper, security-audit, upstream-merge, …). The library is uncapped by design (§9.2): code-side matching means an unmatched kit costs near-nothing, so the file count is free to grow. The concrete budget payoff is the one marketingskills demonstrates directly — its ~130-token router skill replaces ~915 tokens of always-loaded framework descriptions while keeping all 44 frameworks reachable on demand. That is the measured version of our "inject only the winner" claim: code-side routing converts an O(library-size) prompt cost into an O(1) one. - **Executable invariants.** The documentation atlas's claims have `verify:` blocks; the recipe library's structural claims do too — `subagents-and-recipes.md` asserts via verify that `recipe-matcher.ts` still exports `seedPlanFromPrompt` and still warns on the recipe-gap, that `index.ts` still wires the turn-start auto-seed, and that the kit library holds at least ten `kit.md` files each parsing as YAML carrying slug/title/summary. The behavioral layer is gated as the documentation layer is — on *positive structure*. Two gating axes are explicitly named as not-yet-covered: the negative-space contract (§9.5) and the behavioral-value contract (§7). Both are queued; neither is claimed as present. - **Probe [-symmetry.**-] {+symmetry and liveness.**+} Kit execution emits recipe-state: the `onRecipeState` sink in `recipe-runner.ts` (the option declared at line 84) forwards to `fork.prefrontal.setRecipe` (wired in `recipe-rpcs.ts`), so the running abstraction is inspectable, not opaque — the write surface (running a kit) has its paired read (the RECIPES panel data source). {+Wiring alone does not prove that the abstraction runs. The measured zero-traffic integration in §7 motivates a verify-gradeable sub-primitive, *probe liveness*: the paired read must record non-zero observations over a stated production window, or explicitly report the no-traffic condition. This liveness gate is queued, not claimed as shipped.+} - **Commit-and-timestamp anchors.** The documentation file that governs the recipe library, `subagents-and-recipes.md`, carries `last_verified` / `last_verified_commit`, same as every other documentation file (`last_verified: 2026-06-02`, commit `06f8647fdc`). The `kit.md` files themselves carry a `version:` field rather than a verified-against-commit anchor; the commit-and-timestamp guarantee for the recipe layer lives in the governing doc's verify block, not in each kit.

### 9.7 Related work: the recipe/kit ecosystem

The consistent shape of the differentiation: we are *ahead* on {+structural+} enforcement (no other system here has a `verify:`-gated governing doc, commit-anchored invariants, or a depth/cycle-guarded composition algebra) and *behind* on two contracts these systems already ship (negative-space [-applicability,-] {+applicability+} and runnable behavioral evals). {+Our deployment adds a third gap shared by the comparison: neither structural checks nor isolated evals prove in-situ reachability.+} Naming [-both-] {+all three+} directions is the point — the maturity claim earns [-its-] credibility from where it concedes, not only from where it leads.

### 10. Conclusion

The maturity claim is held equally to what it does *not* yet cover. Every recipe-layer gate today is structural; the negative-space contract addyosmani/agent-skills carries (anti-triggers, load [-constraints) and-] {+constraints),+} the behavioral-eval contract marketingskills and headroom carry (runnable assertion sets, measured accuracy [-delta)-] {+delta), and the in-situ reachability contract exposed by our deployment+} are [-both-] real [-gaps, named here as-] {+gaps. All remain+} queued future work rather than [-absorbed-] {+inflated+} into the present claim. The discipline is mature enough to be boring — and boring, here, includes being explicit about which gates have not been built yet.

### Appendix A — The five primitives plus one constraint

1. Multi-optic atlas. 2. Executable invariants. 3. Probe [-symmetry.-] {+symmetry, with probe liveness queued: a paired read must eventually demonstrate non-zero observations in a stated production window.+} 4. Commit-and-timestamp anchors. 5. Manifest-injection round-trips. 6. **Constraint P:** Privacy dominates functionality. Verify commands enforcing privacy contracts run with priority over functional ones. The pre-push gate scans accumulated drift, not just per-delta. The bypass is emergency-only. The same ranking logic governs abstraction provenance (the license-gate on external-kit import) and is the model for the queued value-gate (§7).

### Appendix D — Related-work delta (negative-space and behavioral-eval gaps, not yet gated)

[-## Appendix D — Related-work delta (negative-space and behavioral-eval gaps, not yet gated)-]

### Appendix D — Ungated negative-space, behavioral-eval, and reachability contracts

{+## Appendix D — Ungated negative-space, behavioral-eval, and reachability contracts+}

### Appendix D — Ungated negative-space, behavioral-eval, and reachability contracts

The following contracts [-are carried by adjacent open-source systems and-] are **not** present in our recipe [-layer as of this revision.-] {+layer. The first three are carried by adjacent open-source systems; the fourth is exposed by first-party deployment evidence.+} They are recorded [-here-] as the verified [-gap-] {+gaps+} behind [-§7-] {+§7, §9.5,+} and [-§9.5, so a later revision can mark-] {+§9.6;+} each [-as shipped when-] {+remains future work until+} its verify block lands:

### Appendix D — Ungated negative-space, behavioral-eval, and reachability contracts

- **Anti-trigger / "When NOT to use"** — per-skill applicability boundary in addyosmani/agent-skills; absent from our kit schema. Future mechanism: an anti-trigger field the matcher consults before firing, with a `verify:` asserting its presence. - **Load-context / "Loading Constraints"** — per-skill main-vs-subagent load declaration with degraded fallback in addyosmani/agent-skills; absent from our kit schema. Future mechanism: a load-context field plus a verify that asserts coverage. - **Per-recipe behavioral evals** — `evals/evals.json` assertion sets (marketingskills) and a reproducible eval suite reporting measured accuracy delta (headroom, `python -m headroom.evals`); absent from our recipe layer, whose gates are all structural. Future mechanism: a per-recipe assertion set runnable under an LLM judge, gated as the value-counterpart of Constraint P [-(§7).-] {+(§7). - **Instrument reachability / in-situ liveness** — absent from our recipe layer; structural wiring and isolated behavioral evals do not establish that a component carries live traffic. Future mechanism: a windowed liveness assertion over the paired probe requiring non-zero observations, with an explicit no-traffic state rather than a silent zero (§7, §9.6).+}
