{
 "paper": "intermediate-abstractions",
 "a": "0.3.1",
 "b": "0.3.7",
 "summary": "From v0.3.1 (13 May) to v0.3.7 (2 Jun): 2,304 words to 3,961 words, 2,543 words in new or rewritten paragraphs and 886 taken out, 114 paragraphs changed.",
 "note": {
  "title": "Becomes a full paper with a new title and a second argument, the recipe",
  "kind": "rename-or-merge",
  "body": "## Summary\n\nThe privacy addendum is reworked into a paper of its own, titled \"Privacy-as-Load-Bearing, and the Recipe as Intermediate Abstraction\", with an abstract. It keeps the leak story and adds a second argument: a recipe (a named, replayable task procedure the agent can run) is the same kind of middle layer as the design documents, only for doing rather than describing. Versions 0.3.2 to 0.3.6 are not in the folder.\n\n- New section 9: recipes call other recipes, merge each other's steps, and are written on the spot when no recipe fits.\n- The recipe layer is shown to be checked by the same building blocks as the documents.\n- New appendix mapping each recipe claim to the code that backs it, checked on 2 June 2026.\n- The \"why an addendum\" opening and the list of cleaned files are removed.\n- The paper's own notes say a pass against the live code corrected the claim that recipe step-merging was not yet shipped: it is.",
  "source": "change note"
 },
 "paragraphs_changed": 114,
 "changes": [
  {
   "section": "RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)",
   "old": "# RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)",
   "new": null,
   "marked": "[-# RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)-]"
  },
  {
   "section": "RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)",
   "old": "**Oscar Serra¹, Architect (Claude Opus 4.7)²** ¹Independent Research ²TinkerClaw, anchored on OpenClaw *Paper J15 — Version 0.3.1 — 13 May 2026*",
   "new": null,
   "marked": "[-**Oscar Serra¹, Architect (Claude Opus 4.7)²** ¹Independent Research ²TinkerClaw, anchored on OpenClaw *Paper J15 — Version 0.3.1 — 13 May 2026*-]"
  },
  {
   "section": "RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)",
   "old": "**Internal codename:** RSC (after the retrosplenial cortex; see v0.1 §1.2 and §8) **Status:** A 24-hour addendum to v0.3. One new design principle (#17 — *privacy precedes functionality*), one gate-hardening (the pre-push hook now scans accumulated drift, not just the push-range), one new failure-pattern identification (*accumulated-drift across individually-clean pushes*), and one tightened claim in the v0.3 conclusion. The five primitives from v0.3 stand; v0.3.1 adds a constraint that those primitives operate under.",
   "new": null,
   "marked": "[-**Internal codename:** RSC (after the retrosplenial cortex; see v0.1 §1.2 and §8) **Status:** A 24-hour addendum to v0.3. One new design principle (#17 — *privacy precedes functionality*), one gate-hardening (the pre-push hook now scans accumulated drift, not just the push-range), one new failure-pattern identification (*accumulated-drift across individually-clean pushes*), and one tightened claim in the v0.3 conclusion. The five primitives from v0.3 stand; v0.3.1 adds a constraint that those primitives operate under.-]"
  },
  {
   "section": "RSC v0.3.1 — Privacy-as-Load-Bearing (Addendum to v0.3)",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "## 0. Why v0.3.1 (24 hours after v0.3)",
   "new": null,
   "marked": "[-## 0. Why v0.3.1 (24 hours after v0.3)-]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "v0.3's conclusion claimed the discipline was mature enough to be \"boring.\" Within 24 hours we found a class of failure the discipline had **not** caught: PII accumulating across individually-clean pushes. The pre-push hook scanned each push's range and reported zero hits for every push for two weeks. The union across the develop branch carried 16 hits — none of which any single push had introduced from \"clean to dirty\"; each had inherited from a prior commit.",
   "new": null,
   "marked": "[-v0.3's conclusion claimed the discipline was mature enough to be \"boring.\" Within 24 hours we found a class of failure the discipline had **not** caught: PII accumulating across individually-clean pushes. The pre-push hook scanned each push's range and reported zero hits for every push for two weeks. The union across the develop branch carried 16 hits — none of which any single push had introduced from \"clean to dirty\"; each had inherited from a prior commit.-]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "The principle this exposes is sharp: *the gate is necessary, not sufficient*. The gate proves no push made the situation worse. It does not prove the situation is clean.",
   "new": null,
   "marked": "[-The principle this exposes is sharp: *the gate is necessary, not sufficient*. The gate proves no push made the situation worse. It does not prove the situation is clean.-]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "The fix is small (the gate now scans both the push-range AND `origin/main..HEAD`), but the lesson is large. **Privacy is not a co-equal axis with functionality; it dominates.** A regression in functionality can be fixed in the next commit. A leaked first name or phone number on public history can never be retracted from the audit trail of \"what was public, when.\"",
   "new": null,
   "marked": "[-The fix is small (the gate now scans both the push-range AND `origin/main..HEAD`), but the lesson is large. **Privacy is not a co-equal axis with functionality; it dominates.** A regression in functionality can be fixed in the next commit. A leaked first name or phone number on public history can never be retracted from the audit trail of \"what was public, when.\"-]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "v0.3.1 is the smallest possible update that captures this.",
   "new": null,
   "marked": "[-v0.3.1 is the smallest possible update that captures this.-]"
  },
  {
   "section": "0. Why v0.3.1 (24 hours after v0.3)",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "## Abstract",
   "marked": "{+## Abstract+}"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "1.1 What happened",
   "old": "Between 2026-05-11 (when the pre-push PII gate shipped — commit `97f5baea08`) and 2026-05-12, eight Architect commits and one Jarvis commit landed on `origin/develop`. Each push triggered the gate. Each gate run scanned `<remote_sha>..<local_sha>` for the PII regex on lines starting with `+`. Each run reported zero hits. Every push succeeded.",
   "new": "Between 2026-05-11 (when the pre-push PII gate shipped — commit `97f5baea08`) and 2026-05-12, eight Architect commits and one Jarvis commit landed on `origin/develop`. Each push triggered the gate. Each run scanned `<remote_sha>..<local_sha>` for the PII regex on lines starting with `+`. Each run reported zero hits. Every push succeeded.",
   "marked": "Between 2026-05-11 (when the pre-push PII gate shipped — commit `97f5baea08`) and 2026-05-12, eight Architect commits and one Jarvis commit landed on `origin/develop`. Each push triggered the gate. Each [-gate-] run scanned `<remote_sha>..<local_sha>` for the PII regex on lines starting with `+`. Each run reported zero hits. Every push succeeded."
  },
  {
   "section": "1.1 What happened",
   "old": "On 2026-05-13, when the user asked to advance `main`, the architect ran `git log -p origin/main..origin/develop` over the same regex. The result: **16 hits**. None of those hits had appeared in any individual push range, because:",
   "new": "On 2026-05-13, when the user asked to advance `main`, the architect ran `git log -p origin/main..origin/develop` over the same regex. Result: 16 hits. None had appeared in any individual push range, because:",
   "marked": "On 2026-05-13, when the user asked to advance `main`, the architect ran `git log -p origin/main..origin/develop` over the same regex. [-The result: **16 hits**.-] {+Result: 16 hits.+} None [-of those hits-] had appeared in any individual push range, because:"
  },
  {
   "section": "1.1 What happened",
   "old": "- **Type A — content unchanged across commits.** Lines like `**Per-chat strategy — design note (FORK 2026-05-09 — Oscar's invariant).**` lived in `bible.md` before the pre-push gate shipped. They were carried forward verbatim when bible.md was slimmed into `wa-triggers.md`; the line was unchanged in the *destination* file by the slim script. No push added a new PII line — the line was old. - **Type B — content edited but PII preserved.** Lines that DID change across commits, but where the PII token survived the edit. Each push's diff showed the change as a `-<old>` followed by `+<new>` where `<new>` still contained the matched token. The gate scanned `+` lines and flagged them. But the gate was either (a) bypassed because the line was inside a self-excluded file (e.g., the pre-push hook excluded the original `bible.md` at one point, then no longer excluded it after a restructure), or (b) flagged but inside an earlier commit on develop, which the per-push scan re-flagged but the user-visible test focused on the latest push.",
   "new": "- **Type A — content unchanged across commits.** Lines like the per-chat-strategy design note lived in `bible.md` before the gate shipped. They carried forward verbatim when `bible.md` was slimmed into `wa-triggers.md`; the slim script left the line unchanged in the destination file. No push added a new PII line — the line was old. - **Type B — content edited but PII preserved.** Lines that did change, but where the PII token survived the edit. Each push's diff showed a `-<old>` followed by `+<new>` where `<new>` still carried the matched token. The gate scanned `+` lines and flagged them, but the hit was either (a) inside a self-excluded file (the hook excluded `bible.md` at one point, then stopped after a restructure), or (b) inside an earlier develop commit that the per-push scan re-flagged while the user-visible test focused on the latest push.",
   "marked": "- **Type A — content unchanged across commits.** Lines like [-`**Per-chat strategy —-] {+the per-chat-strategy+} design note [-(FORK 2026-05-09 — Oscar's invariant).**`-] lived in `bible.md` before the [-pre-push-] gate shipped. They [-were-] carried forward verbatim when [-bible.md-] {+`bible.md`+} was slimmed into `wa-triggers.md`; the {+slim script left the+} line [-was-] unchanged in the [-*destination* file by the slim script.-] {+destination file.+} No push added a new PII line — the line was old. - **Type B — content edited but PII preserved.** Lines that [-DID change across commits,-] {+did change,+} but where the PII token survived the edit. Each push's diff showed [-the change as-] a `-<old>` followed by `+<new>` where `<new>` still [-contained-] {+carried+} the matched token. The gate scanned `+` lines and flagged [-them. But-] {+them, but+} the [-gate-] {+hit+} was either (a) [-bypassed because the line was-] inside a self-excluded file [-(e.g., the pre-push-] {+(the+} hook excluded [-the original-] `bible.md` at one point, then [-no longer excluded it-] {+stopped+} after a restructure), or (b) [-flagged but-] inside an earlier {+develop+} commit [-on develop, which-] {+that+} the per-push scan re-flagged [-but-] {+while+} the user-visible test focused on the latest push."
  },
  {
   "section": "1.2 The pattern in one sentence",
   "old": "> A diff-based gate scoped to the push-range proves each push doesn't make things worse. It does not prove the cumulative state is clean.",
   "new": "> A diff-based gate scoped to the push range proves each push doesn't make things worse. It does not prove the cumulative state is clean.",
   "marked": "> A diff-based gate scoped to the [-push-range-] {+push range+} proves each push doesn't make things worse. It does not prove the cumulative state is clean."
  },
  {
   "section": "1.2 The pattern in one sentence",
   "old": null,
   "new": "![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)",
   "marked": "{+![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)+}"
  },
  {
   "section": "1.3 Generalisation beyond PII",
   "old": "The pattern is the same for any contract that needs to hold over the cumulative state, not just over each step:",
   "new": "The pattern holds for any contract that must hold over the cumulative state rather than over each step:",
   "marked": "The pattern [-is the same-] {+holds+} for any contract that [-needs to-] {+must+} hold over the cumulative [-state, not just-] {+state rather than+} over each step:"
  },
  {
   "section": "1.3 Generalisation beyond PII",
   "old": "- Schema-drift contracts: a single migration may not violate the schema invariant, but a chain of three migrations might land in a state none of them individually broke. - Performance contracts: a single commit may not regress a benchmark by 5%, but seven commits each regressing by 0.9% land beyond the threshold. - Bundle-size contracts: a single dependency add may be small, but the accumulated dependency tree exceeds the budget.",
   "new": "- 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.",
   "marked": "- Schema-drift contracts: [-a single-] {+one+} migration may not violate the [-schema invariant, but-] {+invariant;+} a chain of three [-migrations might-] {+may+} land in a state none of them individually broke. - Performance contracts: [-a single-] {+one+} commit may not regress a benchmark by [-5%, but-] {+5%;+} seven commits each regressing [-by-] 0.9% land beyond the threshold. - Bundle-size contracts: [-a single-] {+one+} dependency add may be [-small, but-] {+small;+} the accumulated [-dependency-] tree exceeds [-the-] budget."
  },
  {
   "section": "1.3 Generalisation beyond PII",
   "old": "Anywhere a contract is \"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.**",
   "new": "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.",
   "marked": "Anywhere a contract [-is-] {+reads+} \"the system state must satisfy X,\" a per-delta gate is necessary but not sufficient. [-**The-] {+The+} gate must check the absolute state, not just the [-delta.**-] {+delta.+}"
  },
  {
   "section": "1.3 Generalisation beyond PII",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "## 2. The fifth-primitive constraint: privacy dominates functionality",
   "new": "## 2. The constraint that ranks the primitives: privacy dominates functionality",
   "marked": "## 2. The [-fifth-primitive constraint:-] {+constraint that ranks the primitives:+} privacy dominates functionality"
  },
  {
   "section": "2. The fifth-primitive constraint: privacy dominates functionality",
   "old": "v0.3 named five primitives:",
   "new": null,
   "marked": "[-v0.3 named five primitives:-]"
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": null,
   "new": "The discipline rests on five primitives:",
   "marked": "{+The discipline rests on five primitives:+}"
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "v0.3.1 adds a **constraint that primitives 2 and 3 operate under**:",
   "new": "To these it adds a constraint that primitives 2 and 3 operate under:",
   "marked": "[-v0.3.1-] {+To these it+} adds a [-**constraint-] {+constraint+} that primitives 2 and 3 operate [-under**:-] {+under:+}"
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "> **Constraint P — Privacy dominates functionality.** When a verify command catches a privacy contract violation, no functional work proceeds until the violation is fixed. The PII boundary is not graded against functional delivery deadlines; it is a hard precondition for every push and every promotion. Bypasses exist (`PII_GUARD=off` for the maintainer's-own-byline case) but are emergency-only and require written justification.",
   "new": "> **Constraint P — Privacy dominates functionality.** When a verify command catches a privacy-contract violation, no functional work proceeds until the violation is fixed. The PII boundary is not graded against functional deadlines; it is a hard precondition for every push and every promotion. Bypasses exist (`PII_GUARD=off` for the maintainer's-own-byline case) but are emergency-only and require written justification.",
   "marked": "> **Constraint P — Privacy dominates functionality.** When a verify command catches a [-privacy contract-] {+privacy-contract+} violation, no functional work proceeds until the violation is fixed. The PII boundary is not graded against functional [-delivery-] deadlines; it is a hard precondition for every push and every promotion. Bypasses exist (`PII_GUARD=off` for the maintainer's-own-byline case) but are emergency-only and require written justification."
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "This is the discipline's first explicit priority-axis constraint. Up to v0.3, all five primitives were notionally co-equal — failure of any meant the gate refused. v0.3.1 acknowledges that privacy failures are not interchangeable with functional failures:",
   "new": "This is the discipline's only explicit priority-axis constraint. The five primitives are otherwise co-equal — failure of any one means the gate refuses. The constraint acknowledges that privacy failures are not interchangeable with functional ones:",
   "marked": "This is the discipline's [-first-] {+only+} explicit priority-axis constraint. [-Up to v0.3, all-] {+The+} five primitives [-were notionally-] {+are otherwise+} co-equal — failure of any [-meant-] {+one means+} the gate [-refused. v0.3.1-] {+refuses. The constraint+} acknowledges that privacy failures are not interchangeable with functional [-failures:-] {+ones:+}"
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "- A bible verify that fails because a probe returned the wrong shape: refusable, fixable next session, no permanent damage. - A bible verify that fails because a PII pattern appeared in committed history: refusable, fixable next session, **but the public history still records the violation**, irreversibly.",
   "new": "- A verify that fails because a probe returned the wrong shape: refusable, fixable next session, no permanent damage. - A verify that fails because a PII pattern reached committed history: refusable, fixable next session, but the public history still records the violation, irreversibly.",
   "marked": "- A [-bible-] verify that fails because a probe returned the wrong shape: refusable, fixable next session, no permanent damage. - A [-bible-] verify that fails because a PII pattern [-appeared in-] {+reached+} committed history: refusable, fixable next session, [-**but-] {+but+} the public history still records the [-violation**,-] {+violation,+} irreversibly."
  },
  {
   "section": "2. The constraint that ranks the primitives: privacy dominates functionality",
   "old": "Asymmetry of consequence ⇒ asymmetry of priority. The constraint formalises this.",
   "new": "Asymmetry of consequence demands asymmetry of priority. The constraint formalises this.",
   "marked": "Asymmetry of consequence [-⇒-] {+demands+} asymmetry of priority. The constraint formalises this."
  },
  {
   "section": "2. The fifth-primitive constraint: privacy dominates functionality",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "3. The design principle",
   "old": "## 3. The new design principle (#17)",
   "new": "## 3. The design principle",
   "marked": "## 3. The [-new-] design [-principle (#17)-] {+principle+}"
  },
  {
   "section": "3. The new design principle (#17)",
   "old": "Codified in `TINKER_UI_DESIGN_BIBLE/design-principles.md` as principle #17 (the file was at 16 principles in v0.3; this is the first growth-by-incident):",
   "new": null,
   "marked": "[-Codified in `TINKER_UI_DESIGN_BIBLE/design-principles.md` as principle #17 (the file was at 16 principles in v0.3; this is the first growth-by-incident):-]"
  },
  {
   "section": "3. The design principle",
   "old": null,
   "new": "The constraint is codified in `design-principles.md`:",
   "marked": "{+The constraint is codified in `design-principles.md`:+}"
  },
  {
   "section": "3. The design principle",
   "old": "> **17. Privacy precedes functionality.** > > **Why.** Privacy is not a co-equal axis with functionality; it dominates. A change that ships private data degrades trust in a way no later functional improvement can undo. The PII boundary is the contract; the leak-grep gate is the enforcement; both must run BEFORE main can advance and BEFORE the maintainer says \"ship it.\" When sanitization is in tension with delivery speed, sanitization wins. > > **How to apply.** (a) Treat `PII_GUARD=off` bypass as emergency-only; every use requires written justification. (b) The pre-push hook scans TWO scopes from 2026-05-13: the push-range AND `origin/main..HEAD`. Pushing develop tests against main; pushing main is the final gate. (c) When auditing manually before a `develop → main` merge, run the canonical leak-grep over `origin/main..origin/develop` excluding self-referential files. Zero hits required, no exceptions. (d) Educational files use `<FirstName>` / `<owner-e164>` placeholder patterns so they don't trip their own grep.",
   "new": "> **17. Privacy precedes functionality.** > > **Why.** Privacy is not a co-equal axis with functionality; it dominates. A change that ships private data degrades trust in a way no later functional improvement can undo. The PII boundary is the contract; the leak-grep gate is the enforcement; both must run before main can advance and before the maintainer says \"ship it.\" When sanitization is in tension with delivery speed, sanitization wins. > > **How to apply.** (a) Treat `PII_GUARD=off` as emergency-only; every use requires written justification. (b) The pre-push hook scans two scopes: the push range and `origin/main..HEAD`. (c) When auditing before a `develop → main` merge, run the canonical leak-grep over `origin/main..origin/develop` excluding self-referential files. Zero hits, no exceptions. (d) Educational files use `<FirstName>` / `<owner-e164>` placeholders so they don't trip their own grep.",
   "marked": "> **17. Privacy precedes functionality.** > > **Why.** Privacy is not a co-equal axis with functionality; it dominates. A change that ships private data degrades trust in a way no later functional improvement can undo. The PII boundary is the contract; the leak-grep gate is the enforcement; both must run [-BEFORE-] {+before+} main can advance and [-BEFORE-] {+before+} the maintainer says \"ship it.\" When sanitization is in tension with delivery speed, sanitization wins. > > **How to apply.** (a) Treat `PII_GUARD=off` [-bypass-] as emergency-only; every use requires written justification. (b) The pre-push hook scans [-TWO scopes from 2026-05-13:-] {+two scopes:+} the [-push-range AND-] {+push range and+} `origin/main..HEAD`. [-Pushing develop tests against main; pushing main is the final gate.-] (c) When auditing [-manually-] before a `develop → main` merge, run the canonical leak-grep over `origin/main..origin/develop` excluding self-referential files. Zero [-hits required,-] {+hits,+} no exceptions. (d) Educational files use `<FirstName>` / `<owner-e164>` [-placeholder patterns-] {+placeholders+} so they don't trip their own grep."
  },
  {
   "section": "3. The new design principle (#17)",
   "old": "The principle is the codification. The runtime enforcement is the gate-hardening below.",
   "new": null,
   "marked": "[-The principle is the codification. The runtime enforcement is the gate-hardening below.-]"
  },
  {
   "section": "3. The new design principle (#17)",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "3. The design principle",
   "old": null,
   "new": "The principle text is present in the live bible: `design-principles.md` carries a self-verify block asserting the string \"Privacy precedes functionality\" exists, citing the 2026-05-13 incident (the verify block sits at line 16; the heading at line 131 — both confirmed). The runtime enforcement is the gate-hardening below.",
   "marked": "{+The principle text is present in the live bible: `design-principles.md` carries a self-verify block asserting the string \"Privacy precedes functionality\" exists, citing the 2026-05-13 incident (the verify block sits at line 16; the heading at line 131 — both confirmed). The runtime enforcement is the gate-hardening below.+}"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "`scripts/pii-pre-push.sh` now scans **two scopes** on every push:",
   "new": "`scripts/pii-pre-push.sh` scans two scopes on every push, both confirmed in the live script's scan loop:",
   "marked": "`scripts/pii-pre-push.sh` [-now-] scans [-**two scopes**-] {+two scopes+} on every [-push:-] {+push, both confirmed in the live script's scan loop:+}"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "1. **Push-range** (existing): `${remote_sha}..${local_sha}` for each pushed ref. 2. **Accumulated-drift** (new 2026-05-13): `origin/main..${local_sha}` for each pushed ref where the local sha isn't already an ancestor of origin/main.",
   "new": null,
   "marked": "[-1. **Push-range** (existing): `${remote_sha}..${local_sha}` for each pushed ref. 2. **Accumulated-drift** (new 2026-05-13): `origin/main..${local_sha}` for each pushed ref where the local sha isn't already an ancestor of origin/main.-]"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "The second scope catches PII that landed on develop in an earlier push (when individual gate scans were clean over their own ranges). It runs the same regex, on the same kind of unified diff, against the same exclusion list. It produces the same kind of report. The only difference is the range it inspects.",
   "new": null,
   "marked": "[-The second scope catches PII that landed on develop in an earlier push (when individual gate scans were clean over their own ranges). It runs the same regex, on the same kind of unified diff, against the same exclusion list. It produces the same kind of report. The only difference is the range it inspects.-]"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "Cost: one additional `git log -p` per pushed ref, scoped to commits not on main. In practice this is ~50 commits today, evaluating in ~200ms. Bounded.",
   "new": null,
   "marked": "[-Cost: one additional `git log -p` per pushed ref, scoped to commits not on main. In practice this is ~50 commits today, evaluating in ~200ms. Bounded.-]"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": null,
   "new": "1. **Push range:** `${remote_sha}..${local_sha}` for each pushed ref, scanned commit-by-commit (`git log -p`). 2. **Accumulated drift:** `origin/main..${local_sha}` for each pushed ref not already an ancestor of `origin/main` (the script skips the scope when the pushed snapshot is already on `origin/main`; the scope-2 block begins at line 126).",
   "marked": "{+1. **Push range:** `${remote_sha}..${local_sha}` for each pushed ref, scanned commit-by-commit (`git log -p`). 2. **Accumulated drift:** `origin/main..${local_sha}` for each pushed ref not already an ancestor of `origin/main` (the script skips the scope when the pushed snapshot is already on `origin/main`; the scope-2 block begins at line 126).+}"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": null,
   "new": "The two scopes deliberately use different scan modes. Scope 1 walks history commit-by-commit, so it flags a PII token in any commit being pushed. Scope 2 scans the *net diff* of the snapshot against `origin/main` — `git diff origin/main HEAD` semantics, so an add-then-remove cancels: a token introduced in commit A and removed in commit B inside develop's own history is not flagged, because the state main would inherit is clean. An earlier attempt scoped scope 2 with `git log -p` and false-positived on exactly those cleaned-up historical leaks; the switch to diff semantics is what makes scope 2 mean \"what main would inherit\" rather than \"everything develop ever touched.\" Same regex, same exclusion list, same report — only the range and the mode differ.",
   "marked": "{+The two scopes deliberately use different scan modes. Scope 1 walks history commit-by-commit, so it flags a PII token in any commit being pushed. Scope 2 scans the *net diff* of the snapshot against `origin/main` — `git diff origin/main HEAD` semantics, so an add-then-remove cancels: a token introduced in commit A and removed in commit B inside develop's own history is not flagged, because the state main would inherit is clean. An earlier attempt scoped scope 2 with `git log -p` and false-positived on exactly those cleaned-up historical leaks; the switch to diff semantics is what makes scope 2 mean \"what main would inherit\" rather than \"everything develop ever touched.\" Same regex, same exclusion list, same report — only the range and the mode differ.+}"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": null,
   "new": "Cost: one additional `git diff` per pushed ref against main. In practice ~50 commits of accumulated develop, sub-second. Bounded.",
   "marked": "{+Cost: one additional `git diff` per pushed ref against main. In practice ~50 commits of accumulated develop, sub-second. Bounded.+}"
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "Bypass: same `PII_GUARD=off`. The bypass applies to BOTH scopes — there is no \"scope 1 only\" partial bypass. The bypass is a flag for \"I have read the situation and am acknowledging,\" not for \"this scope is too noisy.\"",
   "new": "Bypass: the same `PII_GUARD=off`, applying to both scopes — there is no scope-1-only partial bypass. The bypass means \"I have read the situation and am acknowledging,\" not \"this scope is too noisy.\"",
   "marked": "Bypass: {+the+} same [-`PII_GUARD=off`. The bypass applies-] {+`PII_GUARD=off`, applying+} to [-BOTH-] {+both+} scopes — there is no [-\"scope 1 only\"-] {+scope-1-only+} partial bypass. The bypass [-is a flag for-] {+means+} \"I have read the situation and am acknowledging,\" not [-for-] \"this scope is too noisy.\""
  },
  {
   "section": "4. Gate hardening — accumulated-drift scope",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "5. Failure-mode generalisation: who else has this shape?",
   "old": "Reviewing v0.3's pending list through the new lens:",
   "new": null,
   "marked": "[-Reviewing v0.3's pending list through the new lens:-]"
  },
  {
   "section": "5. Failure-mode generalisation: who else has this shape?",
   "old": null,
   "new": "Three contract classes already in the discipline, read through the cumulative-state lens:",
   "marked": "{+Three contract classes already in the discipline, read through the cumulative-state lens:+}"
  },
  {
   "section": "5. Failure-mode generalisation: who else has this shape?",
   "old": "- **Class C (negative-evidence logging)** — same shape. A per-call check that \"the expected event fired within N seconds\" is per-delta. The cumulative version is \"across the operation's full graph, no expected event went unfired.\" Today's `withCompletionTracking` is the per-delta version. A cumulative variant — \"every operation that started in the last 24h has a matching `done` event\" — would be the accumulated-drift counterpart. - **Class F (SLOs + burn-rate)** — already in this shape by design. SLOs are absolute-state contracts (target: ≥95% over a window). The burn-rate computation evaluates the window, not each individual event. SLOs were the example v0.3 had right by accident. - **Class E (bug-pattern linter)** — currently per-delta (scans the full source tree but each rule fires on a local pattern). Generalisation: a rule could check the cumulative count of pattern instances in the tree, refusing PRs that introduce the Nth instance. Future enhancement.",
   "new": "- **Negative-evidence logging — same shape.** A per-call check that \"the expected event fired within N seconds\" is per-delta. The cumulative version is \"across the operation's full graph, no expected event went unfired.\" The per-call completion-tracking wrapper is the per-delta version; a \"every operation started in the last 24h has a matching `done` event\" variant would be the accumulated-drift counterpart. - **SLOs + burn-rate — already in this shape by design.** SLOs are absolute-state contracts (at least 95% over a window); the burn-rate computation evaluates the window, not each event. SLOs were the example the discipline had right by accident. - **Bug-pattern linter — currently per-delta.** It scans the tree, each rule firing on a local pattern. A rule could instead check the cumulative count of pattern instances, refusing the PR that introduces the Nth. Future enhancement.",
   "marked": "- [-**Class C (negative-evidence logging)**-] {+**Negative-evidence logging+} — same [-shape.-] {+shape.**+} A per-call check that \"the expected event fired within N seconds\" is per-delta. The cumulative version is \"across the operation's full graph, no expected event went unfired.\" [-Today's `withCompletionTracking`-] {+The per-call completion-tracking wrapper+} is the per-delta [-version. A cumulative variant —-] {+version; a+} \"every operation [-that-] started in the last 24h has a matching `done` event\" [-—-] {+variant+} would be the accumulated-drift counterpart. - [-**Class F (SLOs-] {+**SLOs+} + [-burn-rate)**-] {+burn-rate+} — already in this shape by [-design.-] {+design.**+} SLOs are absolute-state contracts [-(target: ≥95%-] {+(at least 95%+} over a [-window). The-] {+window); the+} burn-rate computation evaluates the window, not each [-individual-] event. SLOs were the example [-v0.3-] {+the discipline+} had right by accident. - [-**Class E (bug-pattern linter)**-] {+**Bug-pattern linter+} — currently [-per-delta (scans-] {+per-delta.** It scans+} the [-full source tree but-] {+tree,+} each rule [-fires-] {+firing+} on a local [-pattern). Generalisation: a-] {+pattern. A+} rule could {+instead+} check the cumulative count of pattern [-instances in-] {+instances, refusing+} the [-tree, refusing PRs-] {+PR+} that [-introduce-] {+introduces+} the [-Nth instance.-] {+Nth.+} Future enhancement."
  },
  {
   "section": "5. Failure-mode generalisation: who else has this shape?",
   "old": "The lesson: every contract should be examined for the question \"is the per-delta check sufficient, or do we need a cumulative-state check?\" The answer is \"cumulative\" more often than \"per-delta,\" but the implementation cost of cumulative checks is higher, so per-delta is the default. The discipline now flags this default as a *known shortcut*, not a complete solution.",
   "new": "The lesson: every contract should be examined for \"is the per-delta check sufficient, or do we need a cumulative-state check?\" The answer is \"cumulative\" more often than \"per-delta,\" but cumulative checks cost more to implement, so per-delta is the default. The discipline now flags that default as a known shortcut, not a complete solution.",
   "marked": "The lesson: every contract should be examined for [-the question-] \"is the per-delta check sufficient, or do we need a cumulative-state check?\" The answer is \"cumulative\" more often than \"per-delta,\" but [-the implementation cost of-] cumulative checks [-is higher,-] {+cost more to implement,+} so per-delta is the default. The discipline now flags [-this-] {+that+} default as a [-*known shortcut*,-] {+known shortcut,+} not a complete solution."
  },
  {
   "section": "5. Failure-mode generalisation: who else has this shape?",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "6. Memory and agent updates",
   "old": "## 6. Memory + agent updates",
   "new": "## 6. Memory and agent updates",
   "marked": "## 6. Memory [-+-] {+and+} agent updates"
  },
  {
   "section": "6. Memory and agent updates",
   "old": "The new principle is durable across sessions only if BOTH AI agents (Architect Claude Code in its own repository, Jarvis cc-bridge runtime in `~/.openclaw/workspace/`) reach for it without prompting. Three updates landed alongside the principle:",
   "new": "The principle is durable across sessions only if both agents — the Architect (Claude Code in its own repository) and the Jarvis cc-bridge runtime in `~/.openclaw/workspace/` — reach for it unprompted. Three updates landed alongside the principle:",
   "marked": "The [-new-] principle is durable across sessions only if [-BOTH AI-] {+both+} agents [-(Architect Claude-] {+— the Architect (Claude+} Code in its own [-repository,-] {+repository) and the+} Jarvis cc-bridge runtime in [-`~/.openclaw/workspace/`)-] {+`~/.openclaw/workspace/` —+} reach for it [-without prompting.-] {+unprompted.+} Three updates landed alongside the principle:"
  },
  {
   "section": "6. Memory and agent updates",
   "old": "1. **Architect-side auto-memory** at the Architect's memory folder (`feedback_sanitization_before_push.md`) — describes the WHEN/HOW (sanitization-first sequencing, canonical command, \"do not say 'pushed' until zero hits\"). Registered at the top of `MEMORY.md`.",
   "new": "1. **Architect-side auto-memory** at the Architect's memory folder (`feedback_sanitization_before_push.md`) — the WHEN/HOW (sanitization-first sequencing, canonical command, \"do not say 'pushed' until zero hits\"). Registered at the top of `MEMORY.md`. 2. **Jarvis-side workspace** at `~/.openclaw/workspace/AGENTS.md` — a bullet under Engineering Discipline: \"Sanitization before push,\" plus the canonical command. Visible to Jarvis on every session. 3. **Jarvis-side knowledge note** at `~/.openclaw/workspace/memory/knowledge/tinkerclaw-bible.md` — extends \"Don't do these\" with \"Don't push to tinkerclaw without checking sanitization first.\"",
   "marked": "1. **Architect-side auto-memory** at the Architect's memory folder (`feedback_sanitization_before_push.md`) — [-describes-] the WHEN/HOW (sanitization-first sequencing, canonical command, \"do not say 'pushed' until zero hits\"). Registered at the top of [-`MEMORY.md`.-] {+`MEMORY.md`. 2. **Jarvis-side workspace** at `~/.openclaw/workspace/AGENTS.md` — a bullet under Engineering Discipline: \"Sanitization before push,\" plus the canonical command. Visible to Jarvis on every session. 3. **Jarvis-side knowledge note** at `~/.openclaw/workspace/memory/knowledge/tinkerclaw-bible.md` — extends \"Don't do these\" with \"Don't push to tinkerclaw without checking sanitization first.\"+}"
  },
  {
   "section": "6. Memory + agent updates",
   "old": "2. **Jarvis-side workspace** at `~/.openclaw/workspace/AGENTS.md` — adds a bullet under Engineering Discipline: \"Sanitization before push\" plus the canonical command. Visible to Jarvis on every session because AGENTS.md is part of his standard load.",
   "new": null,
   "marked": "[-2. **Jarvis-side workspace** at `~/.openclaw/workspace/AGENTS.md` — adds a bullet under Engineering Discipline: \"Sanitization before push\" plus the canonical command. Visible to Jarvis on every session because AGENTS.md is part of his standard load.-]"
  },
  {
   "section": "6. Memory + agent updates",
   "old": "3. **Jarvis-side knowledge note** at `~/.openclaw/workspace/memory/knowledge/tinkerclaw-bible.md` — extends the \"Don't do these\" section with \"Don't push to tinkerclaw without checking sanitization first\" plus the principle reference.",
   "new": null,
   "marked": "[-3. **Jarvis-side knowledge note** at `~/.openclaw/workspace/memory/knowledge/tinkerclaw-bible.md` — extends the \"Don't do these\" section with \"Don't push to tinkerclaw without checking sanitization first\" plus the principle reference.-]"
  },
  {
   "section": "6. Memory and agent updates",
   "old": "The Architect's auto-memory is loaded automatically at session start. The Jarvis-side files are loaded by the Jarvis persona when his task touches fork code. The pre-push hook is the last line of defence; the memory entries make it the first thing the agents check unprompted.",
   "new": "The pre-push hook is the last line of defence; the memory entries make it the first thing the agents check unprompted.",
   "marked": "[-The Architect's auto-memory is loaded automatically at session start. The Jarvis-side files are loaded by the Jarvis persona when his task touches fork code.-] The pre-push hook is the last line of defence; the memory entries make it the first thing the agents check unprompted."
  },
  {
   "section": "6. Memory + agent updates",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "7. Updated maturity claim",
   "old": "## 7. Updated maturity claim",
   "new": null,
   "marked": "[-## 7. Updated maturity claim-]"
  },
  {
   "section": "7. Updated maturity claim",
   "old": "v0.3 claimed: \"the discipline now enforces itself … when a fork commit breaks one of its claims, the push is refused — by the bible, against the bible's own commit, at the gate the bible itself defined.\"",
   "new": null,
   "marked": "[-v0.3 claimed: \"the discipline now enforces itself … when a fork commit breaks one of its claims, the push is refused — by the bible, against the bible's own commit, at the gate the bible itself defined.\"-]"
  },
  {
   "section": "7. What the maturity claim can honestly say",
   "old": null,
   "new": "## 7. What the maturity claim can honestly say",
   "marked": "{+## 7. What the maturity claim can honestly say+}"
  },
  {
   "section": "7. What the maturity claim can honestly say",
   "old": "v0.3.1 sharpens: *enforces itself within scope*. The scope of v0.3's gate was per-delta. The scope of v0.3.1's gate is per-delta AND accumulated-drift. The discipline still has scopes it doesn't cover (e.g., cross-repo cumulative state spanning tinkerclaw + jarvis-brain), but the most consequential within-fork scope is now covered.",
   "new": "The blunt claim — \"the discipline enforces itself; when a fork commit breaks one of its claims, the push is refused\" — is true only within scope. The original gate was per-delta. The current gate is per-delta and accumulated-drift. The discipline still has uncovered scopes (for example, cross-repo cumulative state spanning tinkerclaw plus the brain repo), but the most consequential within-fork scope is now covered.",
   "marked": "[-v0.3.1 sharpens: *enforces itself-] {+The blunt claim — \"the discipline enforces itself; when a fork commit breaks one of its claims, the push is refused\" — is true only+} within [-scope*.-] {+scope.+} The [-scope of v0.3's-] {+original+} gate was per-delta. The [-scope of v0.3.1's-] {+current+} gate is per-delta [-AND-] {+and+} accumulated-drift. The discipline still has {+uncovered+} scopes [-it doesn't cover (e.g.,-] {+(for example,+} cross-repo cumulative state spanning tinkerclaw [-+ jarvis-brain),-] {+plus the brain repo),+} but the most consequential within-fork scope is now covered."
  },
  {
   "section": "7. What the maturity claim can honestly say",
   "old": "The honest framing: **the discipline catches what it scopes**. v0.3.1's main contribution is identifying that scoping itself is a primitive — what the discipline INTERROGATES is as important as what it asserts.",
   "new": "The honest framing: the discipline catches what it scopes. The contribution is naming scoping itself as a primitive — what the discipline interrogates matters as much as what it asserts.",
   "marked": "The honest framing: [-**the-] {+the+} discipline catches what it [-scopes**. v0.3.1's main-] {+scopes. The+} contribution is [-identifying that-] {+naming+} scoping itself [-is-] {+as+} a primitive — what the discipline [-INTERROGATES is-] {+interrogates matters+} as [-important-] {+much+} as what it asserts."
  },
  {
   "section": "7. Updated maturity claim",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "8. Conclusion",
   "old": "## 8. Conclusion",
   "new": null,
   "marked": "[-## 8. Conclusion-]"
  },
  {
   "section": "8. The privacy addendum, summarised",
   "old": null,
   "new": "## 8. The privacy addendum, summarised",
   "marked": "{+## 8. The privacy addendum, summarised+}"
  },
  {
   "section": "8. The privacy addendum, summarised",
   "old": "A 24-hour addendum. One incident. One principle. One gate-hardening. The fix is tactical; the lesson is structural.",
   "new": "One incident. One principle. One gate-hardening. The fix is tactical; the lesson is structural.",
   "marked": "[-A 24-hour addendum.-] One incident. One principle. One gate-hardening. The fix is tactical; the lesson is structural."
  },
  {
   "section": "8. The privacy addendum, summarised",
   "old": "The structural lesson: **per-delta enforcement is necessary but not sufficient**. Any contract that holds over absolute state needs an absolute-state check, not just a delta check. The discipline up to v0.3 was implicitly per-delta everywhere; v0.3.1 names the shortcut and patches the highest-cost instance (privacy). The other instances (negative evidence, bug patterns) are now known-shortcut and queued for future cumulative-state extensions.",
   "new": "**Per-delta enforcement is necessary but not sufficient.** Any contract over absolute state needs an absolute-state check. The discipline was implicitly per-delta everywhere; this account names the shortcut and patches the highest-cost instance (privacy). The others (negative evidence, bug patterns) are known-shortcut and queued.",
   "marked": "[-The structural lesson: **per-delta-] {+**Per-delta+} enforcement is necessary but not [-sufficient**.-] {+sufficient.**+} Any contract [-that holds-] over absolute state needs an absolute-state [-check, not just a delta-] check. The discipline [-up to v0.3-] was implicitly per-delta everywhere; [-v0.3.1-] {+this account+} names the shortcut and patches the highest-cost instance (privacy). The [-other instances-] {+others+} (negative evidence, bug patterns) are [-now-] known-shortcut and [-queued for future cumulative-state extensions.-] {+queued.+}"
  },
  {
   "section": "8. The privacy addendum, summarised",
   "old": "The constraint principle: **priority axes are not co-equal**. Privacy dominates functionality because asymmetry of consequence (irreversible vs reversible) demands asymmetry of priority. The discipline's first explicit priority constraint is codified as design-principle #17.",
   "new": "**Priority axes are not co-equal.** Privacy dominates functionality because irreversible-vs-reversible consequence demands asymmetric priority. Codified as design principle #17.",
   "marked": "[-The constraint principle: **priority-] {+**Priority+} axes are not [-co-equal**.-] {+co-equal.**+} Privacy dominates functionality because [-asymmetry of-] {+irreversible-vs-reversible+} consequence [-(irreversible vs reversible)-] demands [-asymmetry of-] {+asymmetric+} priority. [-The discipline's first explicit priority constraint is codified-] {+Codified+} as [-design-principle-] {+design principle+} #17."
  },
  {
   "section": "8. The privacy addendum, summarised",
   "old": "The trust principle (already in v0.3 but worth restating): **the gate is the last line of defence, not the first.** The first line is the writer being aware of the rule. The discipline keeps both — the principle is in the bible, the rule is in two AI agents' memory, the gate is in the hook. Each is necessary; none is sufficient.",
   "new": "**The gate is the last line of defence, not the first.** The first line is the writer being aware of the rule. The discipline keeps both — principle in the bible, rule in two agents' memory, gate in the hook. Each necessary; none sufficient.",
   "marked": "[-The trust principle (already in v0.3 but worth restating): **the-] {+**The+} gate is the last line of defence, not the first.** The first line is the writer being aware of the rule. The discipline keeps both — [-the-] principle [-is-] in the bible, [-the-] rule [-is-] in two [-AI-] agents' memory, [-the-] gate [-is-] in the hook. Each [-is-] necessary; none [-is-] sufficient."
  },
  {
   "section": "8. Conclusion",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "Appendix A — The five primitives + one constraint (v0.3.1)",
   "old": "## Appendix A — The five primitives + one constraint (v0.3.1)",
   "new": null,
   "marked": "[-## Appendix A — The five primitives + one constraint (v0.3.1)-]"
  },
  {
   "section": "Appendix A — The five primitives + one constraint (v0.3.1)",
   "old": "1. Multi-optic atlas. 2. Executable invariants. 3. Probe symmetry. 4. Commit-and-timestamp anchors. 5. Manifest-injection round-trips. 6. **Constraint P (new):** Privacy dominates functionality. Verify commands enforcing privacy contracts run with priority over verify commands enforcing functional contracts. The pre-push gate scans accumulated drift, not just per-delta. The bypass is emergency-only.",
   "new": null,
   "marked": "[-1. Multi-optic atlas. 2. Executable invariants. 3. Probe symmetry. 4. Commit-and-timestamp anchors. 5. Manifest-injection round-trips. 6. **Constraint P (new):** Privacy dominates functionality. Verify commands enforcing privacy contracts run with priority over verify commands enforcing functional contracts. The pre-push gate scans accumulated drift, not just per-delta. The bypass is emergency-only.-]"
  },
  {
   "section": "9. The recipe as intermediate abstraction",
   "old": null,
   "new": "## 9. The recipe as intermediate abstraction",
   "marked": "{+## 9. The recipe as intermediate abstraction+}"
  },
  {
   "section": "9. The recipe as intermediate abstraction",
   "old": null,
   "new": "The intermediate-abstraction argument has so far been about *documentation*: a self-documenting codebase needs a missing middle layer between source code and a single prose mental model, and that layer is an atlas of `.md` files — one per question class — whose claims are enforced by executable `verify:` blocks. This section makes the same argument about *behavior*. The fork runs an orchestration substrate — recipes (on disk, kits) — and a recipe is the missing middle layer between a one-shot prompt and a script.",
   "marked": "{+The intermediate-abstraction argument has so far been about *documentation*: a self-documenting codebase needs a missing middle layer between source code and a single prose mental model, and that layer is an atlas of `.md` files — one per question class — whose claims are enforced by executable `verify:` blocks. This section makes the same argument about *behavior*. The fork runs an orchestration substrate — recipes (on disk, kits) — and a recipe is the missing middle layer between a one-shot prompt and a script.+}"
  },
  {
   "section": "9. The recipe as intermediate abstraction",
   "old": null,
   "new": "![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)",
   "marked": "{+![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)+}"
  },
  {
   "section": "9.1 The layer the thesis predicts",
   "old": null,
   "new": "### 9.1 The layer the thesis predicts",
   "marked": "{+### 9.1 The layer the thesis predicts+}"
  },
  {
   "section": "9.1 The layer the thesis predicts",
   "old": null,
   "new": "The opening claim is that AI-pair coding operates with two levels and is missing the middle. For *behavior*, the two levels are:",
   "marked": "{+The opening claim is that AI-pair coding operates with two levels and is missing the middle. For *behavior*, the two levels are:+}"
  },
  {
   "section": "9.1 The layer the thesis predicts",
   "old": null,
   "new": "- **The one-shot prompt — a wish.** You describe what you want once; the model improvises a path. Cheap to write, impossible to replay identically, no contract about what it does. - **The script — brittle code.** A `.mjs` or shell pipeline that does exactly one thing the same way every time. Expensive to write against a moving runtime; goes stale the moment an RPC name changes.",
   "marked": "{+- **The one-shot prompt — a wish.** You describe what you want once; the model improvises a path. Cheap to write, impossible to replay identically, no contract about what it does. - **The script — brittle code.** A `.mjs` or shell pipeline that does exactly one thing the same way every time. Expensive to write against a moving runtime; goes stale the moment an RPC name changes.+}"
  },
  {
   "section": "9.1 The layer the thesis predicts",
   "old": null,
   "new": "A recipe sits between them: a named, replayable workflow expressed in the model's own idiom rather than in code, version-controlled, with explicit steps the model executes but does not re-derive. This is the function/module relationship the thesis claims is missing — the wish gets a name and a contract without being frozen into brittle code. A recipe is to a prompt what a function is to inline code: a unit between a single improvised utterance and a hard-coded procedure, durable enough to replay but loose enough to survive a moving runtime.",
   "marked": "{+A recipe sits between them: a named, replayable workflow expressed in the model's own idiom rather than in code, version-controlled, with explicit steps the model executes but does not re-derive. This is the function/module relationship the thesis claims is missing — the wish gets a name and a contract without being frozen into brittle code. A recipe is to a prompt what a function is to inline code: a unit between a single improvised utterance and a hard-coded procedure, durable enough to replay but loose enough to survive a moving runtime.+}"
  },
  {
   "section": "9.1 The layer the thesis predicts",
   "old": null,
   "new": "Canonical terminology: the conceptual unit is a *recipe*; the on-disk artifact in the fork is a `kit.md` file. The schema header is mid-migration — most files carry `schema: \"kit/1.0\"` and a growing set carry `schema: \"recipe/1.0\"`, both read by the same loader (a dual-read parser accepts either). This paper uses \"recipe\" for the abstraction and \"kit\" for the file, matching the dominant on-disk name.",
   "marked": "{+Canonical terminology: the conceptual unit is a *recipe*; the on-disk artifact in the fork is a `kit.md` file. The schema header is mid-migration — most files carry `schema: \"kit/1.0\"` and a growing set carry `schema: \"recipe/1.0\"`, both read by the same loader (a dual-read parser accepts either). This paper uses \"recipe\" for the abstraction and \"kit\" for the file, matching the dominant on-disk name.+}"
  },
  {
   "section": "9.2 Abstractions built from abstractions: the composition seam",
   "old": null,
   "new": "### 9.2 Abstractions built from abstractions: the composition seam",
   "marked": "{+### 9.2 Abstractions built from abstractions: the composition seam+}"
  },
  {
   "section": "9.2 Abstractions built from abstractions: the composition seam",
   "old": null,
   "new": "A layer is only a real abstraction layer if abstractions can be built from abstractions. In the fork, that is the `uses:` directive: a step whose body opens with `uses: <kit-slug>` runs another kit as a sub-step — recipes calling recipes. This is verified shipped:",
   "marked": "{+A layer is only a real abstraction layer if abstractions can be built from abstractions. In the fork, that is the `uses:` directive: a step whose body opens with `uses: <kit-slug>` runs another kit as a sub-step — recipes calling recipes. This is verified shipped:+}"
  },
  {
   "section": "9.2 Abstractions built from abstractions: the composition seam",
   "old": null,
   "new": "- The runner parses a leading `uses: <slug>` directive per step via `parseUsesDirective` (the directive regex sits at `recipe-runner.ts:245`, inside the function exported at line 243; bare slugs normalize to `globalcaos/<slug>`). - Recursion is depth-guarded (`MAX_USES_DEPTH = 3`, the constant for sub-kit recursion at `recipe-runner.ts:191`) and cycle-guarded (the call stack is seeded with the kit's own ref so a self-`uses:` is caught at depth 0 — a fix that came directly out of review). A depth breach short-circuits the step with a \"composition depth limit reached\" note; a ref already on the stack short-circuits with a \"composition cycle\" note naming the chain. - Real kits use it: `capability-survey/kit.md` invokes `uses: multi-modal-sweep` (line 78) and `uses: subagent-driven-dev` (line 104).",
   "marked": "{+- The runner parses a leading `uses: <slug>` directive per step via `parseUsesDirective` (the directive regex sits at `recipe-runner.ts:245`, inside the function exported at line 243; bare slugs normalize to `globalcaos/<slug>`). - Recursion is depth-guarded (`MAX_USES_DEPTH = 3`, the constant for sub-kit recursion at `recipe-runner.ts:191`) and cycle-guarded (the call stack is seeded with the kit's own ref so a self-`uses:` is caught at depth 0 — a fix that came directly out of review). A depth breach short-circuits the step with a \"composition depth limit reached\" note; a ref already on the stack short-circuits with a \"composition cycle\" note naming the chain. - Real kits use it: `capability-survey/kit.md` invokes `uses: multi-modal-sweep` (line 78) and `uses: subagent-driven-dev` (line 104).+}"
  },
  {
   "section": "9.2 Abstractions built from abstractions: the composition seam",
   "old": null,
   "new": "This is the invocation half of a composition algebra: a recipe calling a recipe, bounded so the call graph can't run away. It is the programming-language analogue the design predicts — function-calls-function, with a stack and a cycle check.",
   "marked": "{+This is the invocation half of a composition algebra: a recipe calling a recipe, bounded so the call graph can't run away. It is the programming-language analogue the design predicts — function-calls-function, with a stack and a cycle check.+}"
  },
  {
   "section": "9.2 Abstractions built from abstractions: the composition seam",
   "old": null,
   "new": "The *inline* half is the `composes:` directive, and it ships too. A kit's frontmatter declares `composes: [slug, ...]`; when that kit matches a prompt, the planner expands the composed slugs and pulls their steps into the merged plan before the kit's own steps (`buildMergedPlan` in `recipe-matcher.ts:436`, the per-entry expansion at line 452). Composed steps lead, so a composite reads as \"do sub-recipe A, then sub-recipe B, then my own steps,\" deduped by normalised title so a shared step is not run twice. This is the same loop-prevention as `uses:`: expansion is depth-guarded (`depth > 3`) and cycle-guarded (an `expanded` set, so a kit pulled in once is not pulled again). Where `uses:` is a runtime hop into a sub-recipe mid-run, `composes:` is a plan-build-time merge that inlines boilerplate steps without a runtime call. Both halves of the composition algebra are now real: invocation and inline merge.",
   "marked": "{+The *inline* half is the `composes:` directive, and it ships too. A kit's frontmatter declares `composes: [slug, ...]`; when that kit matches a prompt, the planner expands the composed slugs and pulls their steps into the merged plan before the kit's own steps (`buildMergedPlan` in `recipe-matcher.ts:436`, the per-entry expansion at line 452). Composed steps lead, so a composite reads as \"do sub-recipe A, then sub-recipe B, then my own steps,\" deduped by normalised title so a shared step is not run twice. This is the same loop-prevention as `uses:`: expansion is depth-guarded (`depth > 3`) and cycle-guarded (an `expanded` set, so a kit pulled in once is not pulled again). Where `uses:` is a runtime hop into a sub-recipe mid-run, `composes:` is a plan-build-time merge that inlines boilerplate steps without a runtime call. Both halves of the composition algebra are now real: invocation and inline merge.+}"
  },
  {
   "section": "9.3 Where new abstractions come from: on-the-fly authoring",
   "old": null,
   "new": "### 9.3 Where new abstractions come from: on-the-fly authoring",
   "marked": "{+### 9.3 Where new abstractions come from: on-the-fly authoring+}"
  },
  {
   "section": "9.3 Where new abstractions come from: on-the-fly authoring",
   "old": null,
   "new": "A function library that can only be used, never grown in the moment a gap appears, accretes slowly. The fork closes that loop. The matcher seeds a plan from the prompt at turn start (`seedPlanFromPrompt`, `recipe-matcher.ts:557`); when nothing clears threshold, it logs a NO-MATCH with an explicit `recipe-gap` marker and offers authoring (`recipe-matcher.ts:638`). After a kit is authored on the fly, the in-memory index cache is dropped (`invalidateRecipeIndexCache`, `recipe-matcher.ts:169`) so the new abstraction is immediately discoverable.",
   "marked": "{+A function library that can only be used, never grown in the moment a gap appears, accretes slowly. The fork closes that loop. The matcher seeds a plan from the prompt at turn start (`seedPlanFromPrompt`, `recipe-matcher.ts:557`); when nothing clears threshold, it logs a NO-MATCH with an explicit `recipe-gap` marker and offers authoring (`recipe-matcher.ts:638`). After a kit is authored on the fly, the in-memory index cache is dropped (`invalidateRecipeIndexCache`, `recipe-matcher.ts:169`) so the new abstraction is immediately discoverable.+}"
  },
  {
   "section": "9.3 Where new abstractions come from: on-the-fly authoring",
   "old": null,
   "new": "A second correction belongs here. Matching is lexical by default; a semantic fallback lane exists but is gated default-OFF — it runs only when an embedding seam is injected (`embed?: EmbedFn`), and lexical-only is the default path. The lane fires inside a `if (deps.embed)` guard at `recipe-matcher.ts:612`; without that seam the matcher is byte-identical to pure lexical scoring. So the right claim is not \"the match is now semantic\" but \"the match has a semantic fallback that, when enabled, recovers paraphrases the lexical pass missed.\" This is the second claim held to the code.",
   "marked": "{+A second correction belongs here. Matching is lexical by default; a semantic fallback lane exists but is gated default-OFF — it runs only when an embedding seam is injected (`embed?: EmbedFn`), and lexical-only is the default path. The lane fires inside a `if (deps.embed)` guard at `recipe-matcher.ts:612`; without that seam the matcher is byte-identical to pure lexical scoring. So the right claim is not \"the match is now semantic\" but \"the match has a semantic fallback that, when enabled, recovers paraphrases the lexical pass missed.\" This is the second claim held to the code.+}"
  },
  {
   "section": "9.3 Where new abstractions come from: on-the-fly authoring",
   "old": null,
   "new": "This is the abstraction-creation path the \"abstractions accumulate\" thesis requires. The gap that exposes a missing recipe is the same conversation that creates it: the model hits a NO-MATCH, authors the kit, and the next matching request finds it. The library grows at the point of need, in the model's idiom, and is version-controlled like any other intermediate abstraction. A behavioral abstraction layer stays current this way rather than rotting toward folklore — the same fate the design-principles file describes for undocumented rules.",
   "marked": "{+This is the abstraction-creation path the \"abstractions accumulate\" thesis requires. The gap that exposes a missing recipe is the same conversation that creates it: the model hits a NO-MATCH, authors the kit, and the next matching request finds it. The library grows at the point of need, in the model's idiom, and is version-controlled like any other intermediate abstraction. A behavioral abstraction layer stays current this way rather than rotting toward folklore — the same fate the design-principles file describes for undocumented rules.+}"
  },
  {
   "section": "9.4 Why the two layers belong together",
   "old": null,
   "new": "### 9.4 Why the two layers belong together",
   "marked": "{+### 9.4 Why the two layers belong together+}"
  },
  {
   "section": "9.4 Why the two layers belong together",
   "old": null,
   "new": "The documentation atlas and the recipe library are the same shape under the same primitives:",
   "marked": "{+The documentation atlas and the recipe library are the same shape under the same primitives:+}"
  },
  {
   "section": "9.4 Why the two layers belong together",
   "old": null,
   "new": "- **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, …). - **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 exactly as the documentation layer is. - **Probe symmetry.** 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). - **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.",
   "marked": "{+- **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, …). - **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 exactly as the documentation layer is. - **Probe symmetry.** 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). - **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.+}"
  },
  {
   "section": "9.4 Why the two layers belong together",
   "old": null,
   "new": "The single new claim this section adds: intermediate abstractions for AI-pair coding are not only the descriptive ones (sequence, lifecycle, topology) but the executable ones (recipes). The descriptive abstractions answer \"how does the system behave?\"; the executable abstractions answer \"how do I make it behave this way again, reliably, without freezing it into a script?\" Both are mid-level, both are version-controlled, both rot into folklore without an enforcement gate, and both are now gated.",
   "marked": "{+The single new claim this section adds: intermediate abstractions for AI-pair coding are not only the descriptive ones (sequence, lifecycle, topology) but the executable ones (recipes). The descriptive abstractions answer \"how does the system behave?\"; the executable abstractions answer \"how do I make it behave this way again, reliably, without freezing it into a script?\" Both are mid-level, both are version-controlled, both rot into folklore without an enforcement gate, and both are now gated.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "## 10. Conclusion",
   "marked": "{+## 10. Conclusion+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The structural lesson stands: per-delta enforcement is necessary but not sufficient, and privacy dominates functionality.",
   "marked": "{+The structural lesson stands: per-delta enforcement is necessary but not sufficient, and privacy dominates functionality.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The thesis-level claim: the missing middle layer is not only the documentation atlas. It is also the recipe — the named, replayable, gated unit between a wish and a script. The fork ships that layer (kits), composes within it both by invocation (`uses:`) and by inline step-merge (`composes:`), each depth- and cycle-guarded, and grows it at the point of need (on-the-fly authoring on a NO-MATCH recipe-gap). The same five primitives that make a self-documenting codebase enforce itself make the recipe library enforce itself.",
   "marked": "{+The thesis-level claim: the missing middle layer is not only the documentation atlas. It is also the recipe — the named, replayable, gated unit between a wish and a script. The fork ships that layer (kits), composes within it both by invocation (`uses:`) and by inline step-merge (`composes:`), each depth- and cycle-guarded, and grows it at the point of need (on-the-fly authoring on a NO-MATCH recipe-gap). The same five primitives that make a self-documenting codebase enforce itself make the recipe library enforce itself.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "One claim is held to the code: matching is lexical by default with a semantic fallback gated default-OFF, not semantic by default — the matcher is lexical-first, semantic-when-enabled. The composition algebra is whole: invocation via `uses:` (a runtime hop into a sub-recipe) and inline merge via `composes:` (a plan-build-time pull of another recipe's steps), both bounded so the call graph cannot run away.",
   "marked": "{+One claim is held to the code: matching is lexical by default with a semantic fallback gated default-OFF, not semantic by default — the matcher is lexical-first, semantic-when-enabled. The composition algebra is whole: invocation via `uses:` (a runtime hop into a sub-recipe) and inline merge via `composes:` (a plan-build-time pull of another recipe's steps), both bounded so the call graph cannot run away.+}"
  },
  {
   "section": "10. Conclusion",
   "old": null,
   "new": "The discipline is mature enough to be boring. The boring part now extends from how the system is described to how it is driven.",
   "marked": "{+The discipline is mature enough to be boring. The boring part now extends from how the system is described to how it is driven.+}"
  },
  {
   "section": "Appendix A — The five primitives plus one constraint",
   "old": null,
   "new": "## Appendix A — The five primitives plus one constraint",
   "marked": "{+## Appendix A — The five primitives plus one constraint+}"
  },
  {
   "section": "Appendix A — The five primitives plus one constraint",
   "old": null,
   "new": "1. Multi-optic atlas. 2. Executable invariants. 3. Probe symmetry. 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.",
   "marked": "{+1. Multi-optic atlas. 2. Executable invariants. 3. Probe symmetry. 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.+}"
  },
  {
   "section": "Appendix B — Sanitization-first command",
   "old": "The canonical pre-push manual check:",
   "new": null,
   "marked": "[-The canonical pre-push manual check:-]"
  },
  {
   "section": "Appendix B — Sanitization-first command",
   "old": "``` git -C ~/src/tinkerclaw log -p origin/main..HEAD -- \\ ':(exclude)scripts/pii-pre-push.sh' \\ ':(exclude)TINKER_UI_DESIGN_BIBLE/pii-boundary.md' \\ ':(exclude)CLAUDE.md' \\ | grep -P '^\\+[^+].*(<owner-first-name>|<colleague-name>|<private-name>|<owner-city>|/home/<user>|<employer>|<vendor>|glpat-|<owner-email>)' | wc -l ```",
   "new": "``` git -C ~/src/tinkerclaw log -p origin/main..HEAD -- \\ ':(exclude)scripts/pii-pre-push.sh' \\ ':(exclude)TINKER_UI_DESIGN_BIBLE/pii-boundary.md' \\ ':(exclude)CLAUDE.md' \\ | grep -P '^\\+[^+].*(<owner-first-name>|<owner-surname>|<owner-city>|/home/<user>|<employer>|<vendor>|glpat-|<owner-email>)' | wc -l ```",
   "marked": "``` git -C ~/src/tinkerclaw log -p origin/main..HEAD -- \\ ':(exclude)scripts/pii-pre-push.sh' \\ ':(exclude)TINKER_UI_DESIGN_BIBLE/pii-boundary.md' \\ ':(exclude)CLAUDE.md' \\ | grep -P [-'^\\+[^+].*(<owner-first-name>|<colleague-name>|<private-name>|<owner-city>|/home/<user>|<employer>|<vendor>|glpat-|<owner-email>)'-] {+'^\\+[^+].*(<owner-first-name>|<owner-surname>|<owner-city>|/home/<user>|<employer>|<vendor>|glpat-|<owner-email>)'+} | wc -l ```"
  },
  {
   "section": "Appendix B — Sanitization-first command",
   "old": "Zero hits required. Self-referential files (the pii-pre-push.sh script and the bible's pii-boundary.md) are excluded by `:(exclude)` because they intentionally contain the regex pattern.",
   "new": null,
   "marked": "[-Zero hits required. Self-referential files (the pii-pre-push.sh script and the bible's pii-boundary.md) are excluded by `:(exclude)` because they intentionally contain the regex pattern.-]"
  },
  {
   "section": "Appendix B — Sanitization-first command",
   "old": "Educational examples in other bible files now use `<FirstName>` and `<owner-e164>` placeholder syntax to illustrate the rule without tripping the grep.",
   "new": null,
   "marked": "[-Educational examples in other bible files now use `<FirstName>` and `<owner-e164>` placeholder syntax to illustrate the rule without tripping the grep.-]"
  },
  {
   "section": "Appendix C — Sanitization sweep landed in this addendum",
   "old": "## Appendix C — Sanitization sweep landed in this addendum",
   "new": null,
   "marked": "[-## Appendix C — Sanitization sweep landed in this addendum-]"
  },
  {
   "section": "Appendix C — Sanitization sweep landed in this addendum",
   "old": "Eight committed-shippable PII instances were sanitized in commit (forthcoming):",
   "new": null,
   "marked": "[-Eight committed-shippable PII instances were sanitized in commit (forthcoming):-]"
  },
  {
   "section": "Appendix C — Sanitization sweep landed in this addendum",
   "old": "- `wa-triggers.md:121,141` — narrative chat-profile examples rewritten with anonymous patterns (\"a paid-practice group\", \"a technical peer DM\", \"a very-large group\") and \"Oscar's invariant\" → \"the user's invariant\"; \"Oscar-driven\" → \"user-driven.\" - `bible.md:850,863,868,1145,1181` — five hits in narrative + educational use. Sanitized to placeholder syntax (`<FirstName>`, `<owner-e164>`) for educational sections; rewritten for narrative bug-log entries to use \"the user.\" - `src/agents/main-session-restart-recovery.ts:123,330` — two code comments rewritten (\"Oscar's directive\" → \"the user's directive\"; \"per Oscar\" → \"user directive\"). - `decide-trigger.test.ts:24` — test fixture `<real-number>@s.whatsapp.net` replaced with `+34555111000@s.whatsapp.net` (clearly-fake number; E.164 shape preserved so the trigger logic still exercises the same code path).",
   "new": null,
   "marked": "[-- `wa-triggers.md:121,141` — narrative chat-profile examples rewritten with anonymous patterns (\"a paid-practice group\", \"a technical peer DM\", \"a very-large group\") and \"Oscar's invariant\" → \"the user's invariant\"; \"Oscar-driven\" → \"user-driven.\" - `bible.md:850,863,868,1145,1181` — five hits in narrative + educational use. Sanitized to placeholder syntax (`<FirstName>`, `<owner-e164>`) for educational sections; rewritten for narrative bug-log entries to use \"the user.\" - `src/agents/main-session-restart-recovery.ts:123,330` — two code comments rewritten (\"Oscar's directive\" → \"the user's directive\"; \"per Oscar\" → \"user directive\"). - `decide-trigger.test.ts:24` — test fixture `<real-number>@s.whatsapp.net` replaced with `+34555111000@s.whatsapp.net` (clearly-fake number; E.164 shape preserved so the trigger logic still exercises the same code path).-]"
  },
  {
   "section": "Appendix C — Sanitization sweep landed in this addendum",
   "old": "Self-referential files (`pii-pre-push.sh`, `pii-boundary.md`, `CLAUDE.md`) intentionally still contain the regex pattern and are excluded from the gate. Bible educational content uses `<FirstName>` placeholders for the same reason.",
   "new": null,
   "marked": "[-Self-referential files (`pii-pre-push.sh`, `pii-boundary.md`, `CLAUDE.md`) intentionally still contain the regex pattern and are excluded from the gate. Bible educational content uses `<FirstName>` placeholders for the same reason.-]"
  },
  {
   "section": "Appendix C — Sanitization sweep landed in this addendum",
   "old": "Verified post-sanitization via `git log -p origin/main..HEAD … | grep -P …`: **zero hits**.",
   "new": null,
   "marked": "[-Verified post-sanitization via `git log -p origin/main..HEAD … | grep -P …`: **zero hits**.-]"
  },
  {
   "section": "Appendix B — Sanitization-first command",
   "old": null,
   "new": "Zero hits required. This is the *manual* pre-merge audit a maintainer runs by hand before advancing `main`; it walks history (`log -p`) so it surfaces any commit that ever carried a token, which is the right behaviour for a human deciding whether to dig further. The pre-push hook's automatic scope 2 uses net-diff semantics instead, so it does not block a push on a leak develop already cleaned up. Self-referential files (the pii-pre-push.sh script and the bible's pii-boundary.md) are excluded by `:(exclude)` because they intentionally contain the regex pattern. Educational examples in other bible files use `<FirstName>` / `<owner-e164>` placeholder syntax to illustrate the rule without tripping the grep. The literal token list is in the live script; placeholders are used here so this paper does not itself become a leak source — an instance of principle #17.",
   "marked": "{+Zero hits required. This is the *manual* pre-merge audit a maintainer runs by hand before advancing `main`; it walks history (`log -p`) so it surfaces any commit that ever carried a token, which is the right behaviour for a human deciding whether to dig further. The pre-push hook's automatic scope 2 uses net-diff semantics instead, so it does not block a push on a leak develop already cleaned up. Self-referential files (the pii-pre-push.sh script and the bible's pii-boundary.md) are excluded by `:(exclude)` because they intentionally contain the regex pattern. Educational examples in other bible files use `<FirstName>` / `<owner-e164>` placeholder syntax to illustrate the rule without tripping the grep. The literal token list is in the live script; placeholders are used here so this paper does not itself become a leak source — an instance of principle #17.+}"
  },
  {
   "section": "Appendix C — §9 evidence map (verified 2 June 2026)",
   "old": null,
   "new": "## Appendix C — §9 evidence map (verified 2 June 2026)",
   "marked": "{+## Appendix C — §9 evidence map (verified 2 June 2026)+}"
  },
  {
   "section": "Appendix C — §9 evidence map (verified 2 June 2026)",
   "old": null,
   "new": "Claims in §9 were checked against the live fork:",
   "marked": "{+Claims in §9 were checked against the live fork:+}"
  },
  {
   "section": "Appendix C — §9 evidence map (verified 2 June 2026)",
   "old": null,
   "new": "- `uses:` runtime sub-kit invocation, depth- and cycle-guarded — `extensions/tinkerclaw-prefrontal/recipe-runner.ts` (`MAX_USES_DEPTH = 3` at line 191; `parseUsesDirective` exported at line 243 with the directive regex at line 245; the call stack seeded with the kit's own ref for the self-`uses:` cycle guard). Real usage: `kits/capability-survey/kit.md` (`uses: multi-modal-sweep` line 78, `uses: subagent-driven-dev` line 104). - `composes:` inline step-merge — shipped at plan-build time, not in the runner: `buildMergedPlan` in `recipe-matcher.ts` (function at line 436; per-entry composed-slug expansion at line 452) reads a kit's `composes: [slug, ...]` frontmatter and pulls the composed kits' steps into the merged plan ahead of the kit's own, deduped by normalised title, depth-guarded (`depth > 3`) and cycle-guarded (the `expanded` set). Transitive `composes:`/`uses:` deps are resolved during install (`recipe-rpcs.ts:539, 685`). - On-the-fly authoring — `recipe-matcher.ts` `seedPlanFromPrompt` (line 557); NO-MATCH `recipe-gap` WARN plus authoring offer (line 638); cache drop after authoring via `invalidateRecipeIndexCache` (line 169). - Matching is lexical by default; the semantic fallback is gated default-OFF via an injected `embed?: EmbedFn` seam, firing only inside the `if (deps.embed)` guard at `recipe-matcher.ts:612` — held to \"match has a semantic fallback when enabled,\" not \"match is now semantic.\" - Kit library: 38 kits with `schema: \"kit/1.0\"` counted live under `extensions/tinkerclaw-prefrontal/kits/<slug>/kit.md`; every `kit.md` parses as YAML with slug/title/summary — `subagents-and-recipes.md` verify blocks (which assert ≥10 kits, not the exact 38). - Recipe-state observability — `onRecipeState` sink in `recipe-runner.ts` (option at line 84) → `fork.prefrontal.setRecipe` wired in `recipe-rpcs.ts` (method call at line 917; asserted by `subagents-and-recipes.md` verify). - Principle #17 string present — `design-principles.md` self-verify (verify block at line 16; heading at line 131), citing the 2026-05-13 incident. - Two-scope PII gate — `scripts/pii-pre-push.sh`: scope 1 walks the push range commit-by-commit (`git log -p`), scope 2 scans the net diff `origin/main..${local_sha}` in diff mode (`scan_range … \"diff\"`, scope-2 block begins at line 126), skipped when the pushed snapshot is already an ancestor of `origin/main` (the `merge-base --is-ancestor` guard at line 140). Diff mode is deliberate: it cancels add-then-remove so a cleaned-up historical leak does not false-positive.",
   "marked": "{+- `uses:` runtime sub-kit invocation, depth- and cycle-guarded — `extensions/tinkerclaw-prefrontal/recipe-runner.ts` (`MAX_USES_DEPTH = 3` at line 191; `parseUsesDirective` exported at line 243 with the directive regex at line 245; the call stack seeded with the kit's own ref for the self-`uses:` cycle guard). Real usage: `kits/capability-survey/kit.md` (`uses: multi-modal-sweep` line 78, `uses: subagent-driven-dev` line 104). - `composes:` inline step-merge — shipped at plan-build time, not in the runner: `buildMergedPlan` in `recipe-matcher.ts` (function at line 436; per-entry composed-slug expansion at line 452) reads a kit's `composes: [slug, ...]` frontmatter and pulls the composed kits' steps into the merged plan ahead of the kit's own, deduped by normalised title, depth-guarded (`depth > 3`) and cycle-guarded (the `expanded` set). Transitive `composes:`/`uses:` deps are resolved during install (`recipe-rpcs.ts:539, 685`). - On-the-fly authoring — `recipe-matcher.ts` `seedPlanFromPrompt` (line 557); NO-MATCH `recipe-gap` WARN plus authoring offer (line 638); cache drop after authoring via `invalidateRecipeIndexCache` (line 169). - Matching is lexical by default; the semantic fallback is gated default-OFF via an injected `embed?: EmbedFn` seam, firing only inside the `if (deps.embed)` guard at `recipe-matcher.ts:612` — held to \"match has a semantic fallback when enabled,\" not \"match is now semantic.\" - Kit library: 38 kits with `schema: \"kit/1.0\"` counted live under `extensions/tinkerclaw-prefrontal/kits/<slug>/kit.md`; every `kit.md` parses as YAML with slug/title/summary — `subagents-and-recipes.md` verify blocks (which assert ≥10 kits, not the exact 38). - Recipe-state observability — `onRecipeState` sink in `recipe-runner.ts` (option at line 84) → `fork.prefrontal.setRecipe` wired in `recipe-rpcs.ts` (method call at line 917; asserted by `subagents-and-recipes.md` verify). - Principle #17 string present — `design-principles.md` self-verify (verify block at line 16; heading at line 131), citing the 2026-05-13 incident. - Two-scope PII gate — `scripts/pii-pre-push.sh`: scope 1 walks the push range commit-by-commit (`git log -p`), scope 2 scans the net diff `origin/main..${local_sha}` in diff mode (`scan_range … \"diff\"`, scope-2 block begins at line 126), skipped when the pushed snapshot is already an ancestor of `origin/main` (the `merge-base --is-ancestor` guard at line 140). Diff mode is deliberate: it cancels add-then-remove so a cleaned-up historical leak does not false-positive.+}"
  }
 ]
}
