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

From v0.3.7 (2 Jun) to v0.3.8 (14 Jun): 3,961 words to 6,715 words, 2,805 words in new or rewritten paragraphs and 51 taken out, 40 paragraphs changed.

## Change note of v0.3.8

**Recipes as a shared format, what recipes cannot yet say, and related work**

The recipe half grows by about 2,700 words. The paper now argues that the recipe format travels between projects, and it is more honest about what the recipe checks do not cover. The paper's notes give the source: a review of outside projects on 13 June and new code merged on 4 June.

- New section: the recipe file format is shared with another registry and has a gated import path, so it is not a private convention.
- A third way to combine recipes: a step can call a typed library skill directly.
- New section on the missing "when not to use" fields that comparable skill collections already have.
- New related-work section and an appendix listing the gaps that no check covers yet.
- The maturity claim now says that every recipe check is about structure, none about whether a recipe gives good results.
- A correction: the skill library had not been growing because its extractor was silently broken; the fix is described.

## 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.-] {+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 adjacent open-source systems (addyosmani/agent-skills, marketingskills, headroom) carry contracts we do not yet — negative-space anti-triggers, load-context constraints, and runnable behavioral evals — which the paper now positions as related work and queued future work rather than absorbing into an inflated maturity claim.+}

### 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, 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 this gap concrete by closing it on the value side: **marketingskills** (Corey Haines, `coreyhaines31/marketingskills`, ~33k stars) ships per-skill `evals/evals.json` — realistic prompts paired with assertion lists, runnable under an LLM judge — and **headroom** (Tejas Chopra, `chopratejas/headroom`, ~24.7k stars) ships a reproducible eval suite (`python -m headroom.evals`) that reports a measured accuracy delta (≈0 on GSM8K/TruthfulQA/SQuAD/BFCL) against its compression claims. The honest position: our structural-verify discipline is *stronger* than either system's — neither has a `verify:`-gated governing doc or commit-anchored invariants — but 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. A per-recipe assertion set, runnable as a 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.+}

### 9.2 The schema is a cross-registry interchange format, not a fork-local convention

{+### 9.2 The schema is a cross-registry interchange format, not a fork-local convention+}

### 9.2 The schema is a cross-registry interchange format, not a fork-local convention

{+The function/module analogy is only complete if modules cross project boundaries — a standard library is a real standard library precisely because its units travel between codebases that never coordinated. The recipe layer clears that bar, and not hypothetically. The on-disk `schema: "kit/1.0"` header this paper's loader reads is the *same* header published by an independent registry: the **Journey** kit registry (journeykits.ai) ships kits that are kit/1.0-native, and we ran a license-gate + attribute import pipeline that distilled four external Journey kits into our catalog. Both ends are present in the live tree: our `schema: "kit/1.0"` files under `extensions/tinkerclaw-prefrontal/kits/<slug>/kit.md`, and an installed Journey skill under `~/.agents/skills/journey/`. A behavioral intermediate abstraction authored in one agent's registry parses and runs in another's because they share the schema contract — interop is therefore real and proven, not asserted.+}

### 9.2 The schema is a cross-registry interchange format, not a fork-local convention

{+This upgrades the central thesis. The claim is no longer "the fork ships a missing-middle behavioral layer" but "the missing-middle behavioral layer has a portable interchange format with at least two independent registries and a working import pipeline." That is the precise sense in which a recipe is a *stdlib unit* rather than a private macro.+}

### 9.2 The schema is a cross-registry interchange format, not a fork-local convention

{+The differentiation must stay honest. Journey is a *registry/marketplace* — its contribution is distribution and discovery, the catalog and the install path. It does not ship the enforcement spine this paper is about: the five primitives plus Constraint P, the `verify:`-gated governing doc (`subagents-and-recipes.md`), and the depth/cycle-guarded composition algebra (§9.3). Read together, the two systems divide the labor of a real stdlib cleanly: Journey (and the shared schema) demonstrate that the abstraction *travels*; we contribute the layer that makes it *enforce*. The import pipeline is itself gated — the license-gate + attribute step is a hard precondition before an external kit enters our catalog, the same shape as Constraint P applied to provenance rather than to PII.+}

### 9.2 The schema is a cross-registry interchange format, not a fork-local convention

{+A consequence worth stating: the fork's catalog is uncapped by design. Matching is code-side and only the winning recipe's plan is injected per turn (§9.4), so the marginal cost of carrying a kit is near-zero until it matches. This is *because* the schema is shared and cheap to carry, not in spite of it — a portable, low-cost-to-hold unit is exactly what makes an uncapped library tractable. The concrete budget shape behind this is visible in the marketingskills router discussed in §9.6: a ~130-token router replaces ~915 tokens of always-loaded skill descriptions while keeping all 44 frameworks reachable on demand — code-side matching turns library size into a near-free axis.+}

### 9.3 Abstractions built from abstractions: the composition seam

### [-9.2-] {+9.3+} Abstractions built from abstractions: the composition seam

### 9.3 Abstractions built from abstractions: the composition seam

{+A layer is only a real abstraction layer if abstractions can be built from abstractions. In the fork, three sibling step directives provide that, each operating at a different point in the run:+}

### 9.3 Abstractions built from abstractions: the composition seam

[-A layer-] {+The first+} is [-only a real abstraction layer if abstractions can be built from abstractions. In the fork, that is the-] `uses:` [-directive:-] {+(invocation):+} a step whose body opens with `uses: <kit-slug>` runs another kit as a sub-step — recipes calling recipes. This is verified shipped:

### 9.3 Abstractions built from abstractions: the composition seam

The [-*inline* half-] {+second+} is [-the-] `composes:` [-directive,-] {+(inline step-merge),+} 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.-] {+call.+}

### 9.3 Abstractions built from abstractions: the composition seam

{+The third directive is `invoke skill:<id>`, and it calls a *typed stdlib primitive* inline. It is parsed by `parseInvokeSkillDirective()` (`recipe-runner.ts`) and recognised in its two-word `invoke skill:` form by both IO-scanners — `recipe-types.ts` `OTHER_DIRECTIVE_RE` and `recipe-runner.ts` `leadingDirectives` — so directive order within a step is free. This directive is what makes composition-from-LIBRARY (as opposed to composition-from-other-recipes) deterministic: `prefrontal.recipe.compose` (`recipe-rpcs.ts`) calls `fork.skill.search`, emits one `invoke skill:` step per hit in rank order, validates, and persists the result stamped `authoredBy:"jarvis-on-the-fly"` — never clobbering a curated kit. So the composition algebra now has three operations, not two: `uses:` is a runtime hop into another recipe, `composes:` is a plan-build-time merge of another recipe's steps, and `invoke skill:` is an inline call into a typed library primitive. All three are bounded so the call graph cannot run away.+}

### 9.4 Where new abstractions come from: on-the-fly authoring

### [-9.3-] {+9.4+} Where new abstractions come from: on-the-fly authoring

### 9.4 Where new abstractions come from: on-the-fly authoring

A [-second-] correction belongs [-here. Matching-] {+here, and it must be split by surface. For *recipe-matching*, 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-] {+an+} `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 {+for recipe-matching+} 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.-] {+missed."+}

### 9.4 Where new abstractions come from: on-the-fly authoring

{+The companion surface — *skill-search*, which feeds composition-from-library (§9.3) — is no longer in that caveat, and the distinction matters because it is exactly the place where a tempting overclaim ("our matching is semantic") would be half-true. `fork.skill.search` (`src/fork/skill-rpc.ts`) resolves a real in-process embedding function via `resolveSkillEmbedFn` (`src/memory/engram/skill-embed.ts` — the same path the consolidation cron uses, so the embedder is shared rather than duplicated) and does batched-embed plus cosine ranking, with keyword scoring only as a fallback. This is a live embed provider, not a frozen one: deposited skills ranked at cosine 0.71 against a paraphrased query, which a keyword pass would have missed. The honest two-line statement is therefore: recipe-matching is lexical-first with a semantic lane default-OFF; skill-search is semantically live by default. Conflating the two would either understate skill-search or overstate recipe-matching.+}

### 9.4 Where new abstractions come from: on-the-fly authoring

{+A second correction guards the same thesis from the other direction. The "the library grows organically" claim depends on an extractor that, for a window, was silently inert: `detectEpisodes` always emitted `keyDecisions:[]`, so `isSkillWorthy` never passed and the live skill-library never actually grew. The fix is in `buildEpisode` (`src/memory/engram/episode-detection.ts`), which now derives `keyDecisions` from the episode's tool-call trace — two or more tool-call steps marks a multi-step procedure as worthy, a lone one-shot call is declined — while `isSkillWorthy` itself is unchanged. The organic-capture claim is true *now*; it was latent-broken before, and the paper records that rather than papering over it.+}

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

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

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

{+The recipe/kit schema described so far — slug, title, summary, steps, `composes:`, `uses:`, `invoke skill:`, `version:` — is entirely a *positive* contract. It declares what the abstraction does, how it composes, how it is matched, and (now) what its typed IO is. It says nothing about the abstraction's *negative space*: when the recipe must **not** fire, and where it may **not** run. §9.4's matching story is purely about getting a recipe to fire (lexical-first, NO-MATCH → author); it carries no symmetric story for *suppressing* a fire that would be wrong.+}

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

{+A directly comparable system makes the omission visible. **addyosmani/agent-skills** (Addy Osmani, `addyosmani/agent-skills`, ~56.8k stars) is a "named, gated, replayable unit" library for Claude Code plugins — the same abstraction class as our kits — and its per-skill schema carries two sections ours lack. The first is a **"When NOT to use"** anti-trigger section: an explicit applicability boundary the matcher is meant to respect to avoid mis-firing. The second is a **"Loading Constraints"** section declaring *where* the abstraction may load — main orchestrator versus subagent — with a documented degraded fallback when the preferred context is unavailable. Both are structural contracts on negative space: one on *when* the unit must not fire, one on *where* it may not run.+}

### 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 mechanism work, not yet shipped, is to add an anti-trigger axis and a load-context axis to the kit schema and a verify block that asserts their 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

### [-9.4-] {+9.6+} Why the two layers belong together

### 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 [-exactly-] as the documentation layer [-is.-] {+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.** 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.

### 9.6 Why the two layers belong together

{+The executable layer now also carries *types*, which is what makes the "intermediate *abstractions*" framing literal rather than metaphorical on the behavioral side. The `Skill` record (`src/memory/storage/types.ts`) gains optional `inputSchema?` / `outputSchema?` (JsonSchema) plus a flat `lineage?` (composedFrom / composedSkills / composedRecipes / sourceQuery); the fields are additive, so untyped prose skills round-trip unchanged. At execution (`recipe-runner.ts` `executeOnce`) an `invoke skill:` step adopts the skill's `outputSchema` and reuses the typed-output validate → budget-bounded-redispatch → persist path, and `compileSteps` eagerly lifts that schema so `checkPortWiring` validates downstream `in:` ports. Output is strictly validated; input is, for now, surfaced as prompt-text guidance rather than gated by a structured-input contract — a hard structured-input gate is deferred to the structured-call model. So the typed-IO story is honest in both directions: outputs are gated, inputs are guided, and the gap is named rather than implied closed.+}

### 9.6 Why the two layers belong together

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.-] {+gated on positive structure — with negative-space and behavioral-value gating named as the queued remainder.+}

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

{+### 9.7 Related work: the recipe/kit ecosystem+}

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

{+This paper's contribution is a *gated, composable* behavioral middle layer; the open-source ecosystem around the same abstraction class is fresh enough that positioning against it belongs in the paper, not in a footnote. Four systems sit closest:+}

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

{+- **Journey** (journeykits.ai) — a kit/1.0-native registry and marketplace. Shares our on-disk schema, so kits authored there parse and run in our loader (§9.2). Contributes distribution and discovery; does not ship enforcement, composition guards, or `verify:`-gated governance. We import from it through a license-gate + attribute pipeline. - **addyosmani/agent-skills** (Addy Osmani, ~56.8k stars) — a named/gated/replayable unit library for Claude Code plugins, the closest schema sibling. Carries negative-space contracts ours lack ("When NOT to use" anti-triggers, "Loading Constraints"); lacks our runtime composition algebra and on-the-fly authoring (§9.5). - **marketingskills** (Corey Haines, `coreyhaines31/marketingskills`, ~33k stars) — a 44-framework skill library fronted by a ~130-token router, with per-skill `evals/evals.json` assertion sets runnable under an LLM judge. Demonstrates both the budget payoff of code-side routing we claim (§9.6) and the behavioral-eval surface we lack (§7). - **headroom** (Tejas Chopra, `chopratejas/headroom`, ~24.7k stars) — a reversible-compression system whose relevance here is methodological: it ships a reproducible eval suite (`python -m headroom.evals`) reporting a measured accuracy delta against its own claims. It is the model for the value-gate §7 names as the highest-priority next addition.+}

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

{+The consistent shape of the differentiation: we are *ahead* on 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, and runnable behavioral evals). Naming both directions is the point — the maturity claim earns its credibility from where it concedes, not only from where it leads.+}

### 10. Conclusion

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-] {+three ways —+} by invocation [-(`uses:`) and-] {+(`uses:`),+} by inline step-merge (`composes:`), {+and by inline typed-library call (`invoke skill:`),+} each depth- and [-cycle-guarded,-] {+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.

### 10. Conclusion

{+The claim is now also *interoperable*: the recipe's `kit/1.0` schema is a cross-registry interchange format, shared with the Journey registry and exercised through a gated import pipeline, which completes the function/module-library analogy across project boundaries — a stdlib unit travels, and ours additionally enforces.+}

### 10. Conclusion

[-One claim is-] {+Two claims are+} held to the [-code: matching-] {+code. Recipe-matching+} is lexical by default with a semantic fallback gated default-OFF, not semantic by {+default; the companion skill-search surface, by contrast, is semantically live by+} default {+on a real in-process embedder+} — the [-matcher is lexical-first, semantic-when-enabled. The-] {+two surfaces are distinguished rather than conflated. And the+} composition algebra is [-whole: invocation via `uses:` (a-] {+whole at three operations: a+} runtime hop [-into-] {+(`uses:`),+} a [-sub-recipe)-] {+plan-build-time merge (`composes:`),+} and {+an+} inline [-merge via `composes:` (a plan-build-time pull of another recipe's steps), both-] {+typed-library call (`invoke skill:`), all+} bounded so the call graph cannot run away.

### 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 the behavioral-eval contract marketingskills and headroom carry (runnable assertion sets, measured accuracy delta) are both real gaps, named here as queued future work rather than absorbed 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.+}

### 10. Conclusion

[-The discipline is mature enough to be boring.-] The boring part now extends from how the system is described to how it is [-driven.-] {+driven — and from a fork-local convention to a portable, multi-registry interchange format.+}

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

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.-] {+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 C — §9 evidence map (verified 2 June 2026)

[-## Appendix C — §9 evidence map (verified 2 June 2026)-]

### Appendix C — §9 evidence map (verified 2 June 2026; cross-registry, three-directive, and skill-search deltas verified against live HEAD `24237e0cd22`, 2026-06-04)

{+## Appendix C — §9 evidence map (verified 2 June 2026; cross-registry, three-directive, and skill-search deltas verified against live HEAD `24237e0cd22`, 2026-06-04)+}

### Appendix C — §9 evidence map (verified 2 June 2026; cross-registry, three-directive, and skill-search deltas verified against live HEAD `24237e0cd22`, 2026-06-04)

- `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`). - {+`invoke skill:` inline typed-library call — `parseInvokeSkillDirective()` (`recipe-runner.ts`), recognised as the two-word `invoke skill:` form by both IO-scanners (`recipe-types.ts` `OTHER_DIRECTIVE_RE`; `recipe-runner.ts` `leadingDirectives`), so directive order is free. Compose-from-library: `prefrontal.recipe.compose` (`recipe-rpcs.ts`) → `fork.skill.search` → one `invoke skill:` step per hit in rank order → validate → persist `authoredBy:"jarvis-on-the-fly"`. Typed IO at execution: `recipe-runner.ts` `executeOnce` adopts the skill's `outputSchema`; `compileSteps` lifts it so `checkPortWiring` validates downstream `in:` ports. Output strictly validated; input surfaced as prompt-text guidance (structured-input gate deferred). - Cross-registry schema (`kit/1.0`) — our `schema: "kit/1.0"` files under `extensions/tinkerclaw-prefrontal/kits/<slug>/kit.md` share the header published by the Journey registry (journeykits.ai); an installed Journey skill is present at `~/.agents/skills/journey/`; four external Journey kits were distilled into the catalog through a license-gate + attribute import pipeline. -+} 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). {+The extractor feeding organic growth: `buildEpisode` (`src/memory/engram/episode-detection.ts`) now derives `keyDecisions` from the tool-call trace (≥2 tool-call steps = worthy), fixing a prior window in which `detectEpisodes` emitted `keyDecisions:[]` and the library never grew; `isSkillWorthy` unchanged.+} - [-Matching-] {+Recipe-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." {+Skill-search, by contrast, is semantically live by default: `fork.skill.search` (`src/fork/skill-rpc.ts`) resolves a real in-process embedder via `resolveSkillEmbedFn` (`src/memory/engram/skill-embed.ts`, shared with the consolidation cron) and does batched-embed + cosine ranking (live proof: deposited skills ranked at cosine 0.71), keyword only as fallback.+} - 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.

### 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 — Related-work delta (negative-space and behavioral-eval gaps, not yet gated)

{+The following contracts are carried by adjacent open-source systems and are **not** present in our recipe layer as of this revision. They are recorded here as the verified gap behind §7 and §9.5, so a later revision can mark each as shipped when its verify block lands:+}

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

{+- **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).+}
