v4.5 → v4.6
What changed from v4.5 to v4.6
From v4.5 (2 Jun) to v4.6 (2 Jun): 8,985 words to 9,006 words, 98 words in new or rewritten paragraphs and 77 taken out, 14 paragraphs changed.
Shipped becomes implemented; figures set for printThe four items in section 11 are now called "implemented" instead of "shipped", and the text drops claims about how long the parts have run in the fork. Figures are placed for the printed version. Wording edits elsewhere.
v4.5 · 2 June 2026v4.6 · 2 June 2026
··· 3 unchanged paragraphs folded ···
v4.5 · AbstractThe thesis is that intelligence in a deployed agent is not primarily a property of the model. It is a property of the *structure the model executes inside* — and that structure is most powerful when it is composable, self-authoring, looping, effort-adaptive, and observable. This paper specifies that substrate, grounds the brain metaphor in concrete mechanism, gives language-agnostic pseudocode for each of the six capabilities, and reports which of the substrate's harder extensions — durable resume, a self-improving library, external acquisition, and a versioned marketplace — have now landed in the running fork.
v4.6 · AbstractThe thesis is that intelligence in a deployed agent is not primarily a property of the model. It is a property of the *structure the model executes inside* — and that structure is most powerful when it is composable, self-authoring, looping, effort-adaptive, and observable. This paper specifies that substrate, grounds the brain metaphor in concrete mechanism, gives language-agnostic pseudocode for each of the six capabilities, and reports which of the substrate's harder extensions — durable resume, a self-improving library, external acquisition, and a versioned marketplace — are implemented and running, and which one — searched execution — remains specified but unbuilt.
··· 13 unchanged paragraphs folded ···
v4.5 · 1.3 The gap this paper closesThe rest of the paper specifies each in turn (Sections 3–8), after establishing the architecture and the economics that make it affordable (Section 2). Section 9 integrates the substrate with the surrounding cognitive systems; Section 10 gives evaluation design; Section 11 reports what has shipped beyond the six core capabilities and the one extension that remains open; Section 12 concludes; Section 13 states the surrounding cognitive stack the substrate depends on.
v4.6 · 1.3 The gap this paper closesThe rest of the paper specifies each in turn (Sections 3–8), after establishing the architecture and the economics that make it affordable (Section 2). Section 9 integrates the substrate with the surrounding cognitive systems; Section 10 gives evaluation design; Section 11 reports which harder extensions beyond the six core capabilities are implemented and which one remains open; Section 12 concludes; Section 13 states the surrounding cognitive stack the substrate depends on.
··· 42 unchanged paragraphs folded ···
v4.5 · 4.2 Dynamic composition — runtime sub-recipe calls (`uses:`)
v4.6 · 4.2 Dynamic composition — runtime sub-recipe calls (`uses:`)```{=latex} \begin{figure}[H] \centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{images/fig-composition.pdf} \caption{Composition algebra: static step-merge flattens sub-recipe steps into one plan at build time (de-duplicated, depth- and cycle-guarded); a runtime call transfers control into a nested plan on a child session and folds its terminal note back as the step's outcome. Both are bounded by a depth cap and a cycle guard.} \end{figure} ```
··· 45 unchanged paragraphs folded ···
v4.5 · 8.3 What the panel renders
v4.6 · 8.3 What the panel renders```{=latex} \begin{figure}[H] \centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{images/fig-panel.pdf} \caption{The RECIPES panel sits beside the chat, divided by the split-of-concerns boundary: the chat carries the substantive answer, the panel carries orchestration mechanics. The panel stacks Discovery (catalog size, scored candidates, threshold, NO-MATCH), Composition (source badges, de-dup count), the Plan with per-step status, per-step Fan-out (one subagent-vitals row per dispatch), and the compact, expandable decision trail.} \end{figure} ```
··· 29 unchanged paragraphs folded ···
v4.5 · 11. What Has Shipped Beyond the Core, and What Remains OpenSections 3–8 specify the six core capabilities that have run in the fork since the substrate was first deployed. This section reports five harder extensions of the thesis. Four have now landed in the running fork; the fifth — searched execution — remains specified but unbuilt. The honesty matters: a substrate that overstates its roadmap is as misleading as one that understates what already runs, so we mark each with its status and the seam it attaches to.
v4.6 · 11. What Has Shipped Beyond the Core, and What Remains OpenSections 3–8 specify the six core capabilities at the heart of the substrate. This section reports five harder extensions of the thesis. Four are implemented and running; the fifth — searched execution — remains specified but unbuilt. The honesty matters: a substrate that overstates its roadmap is as misleading as one that understates what it does, so we mark each with its status and the seam it attaches to.
v4.5 · 11.1 Durable checkpointing — implemented### 11.1 Durable checkpointing — shipped
v4.6 · 11.1 Durable checkpointing — implemented### 11.1 Durable checkpointing — implemented
v4.5 · 11.1 Durable checkpointing — implementedThe paper's claim is that "the plan *is* the agent's working memory, externalised" (§2.3). For that to be true, the durable spine must be read back, not merely written. It now is. The runner reads an `in_progress` plan whose recipe reference matches the current run and resumes from its `currentStep` cursor, skipping any step already marked `done`; on each step's success it persists a bounded digest of the done-note — capped at a few hundred characters, truncated on a word boundary — into the reserved per-step `artifact` field, and it carries the prior steps' artifacts forward as upstream context for the step that follows. A sub-recipe call bubbles its nested plan's terminal result up as the parent step's artifact. No schema change was needed — both the `artifact` field and the `currentStep` cursor already existed.
v4.6 · 11.1 Durable checkpointing — implementedThe paper's claim is that "the plan *is* the agent's working memory, externalised" (§2.3). For that to be true, the durable spine must be read back, not merely written, and it is. The runner reads an `in_progress` plan whose recipe reference matches the current run and resumes from its `currentStep` cursor, skipping any step already marked `done`; on each step's success it persists a bounded digest of the done-note — capped at a few hundred characters, truncated on a word boundary — into the reserved per-step `artifact` field, and it carries the prior steps' artifacts forward as upstream context for the step that follows. A sub-recipe call bubbles its nested plan's terminal result up as the parent step's artifact. No schema change was needed — both the `artifact` field and the `currentStep` cursor already existed.
··· 1 unchanged paragraph folded ···
v4.5 · 11.2 The self-improving library — implemented### 11.2 The self-improving library — shipped
v4.6 · 11.2 The self-improving library — implemented### 11.2 The self-improving library — implemented
v4.5 · 11.2 The self-improving library — implementedSection 5 makes the library self-*expanding* (it authors when nothing matches) and Section 9.5 makes it self-*updating* (a reflection pass can recommend a change). The missing piece was self-*improvement*: feeding real execution outcomes back into the matcher so its scoring weights stop being purely hand-tuned. That loop is now closed, with a deliberate division of labour between subsystems. A background consolidation layer — the offline process that runs between turns to compact and learn from accumulated experience — owns the *offline* measurement: it distils a per-recipe **fitness** from accumulated execution episodes — success rate, latency, token cost. Each episode attributes to a recipe only via an explicit `recipe:<owner/slug>` tag the runner sets at dispatch, so an untagged episode is never counted against any recipe (no false attribution).
v4.6 · 11.2 The self-improving library — implementedSection 5 makes the library self-*expanding* (it authors when nothing matches) and Section 9.5 makes it self-*updating* (a reflection pass can recommend a change). The third axis is self-*improvement*: feeding real execution outcomes back into the matcher so its scoring weights are not purely hand-tuned. That loop is closed, with a deliberate division of labour between subsystems. A background consolidation layer — the offline process that runs between turns to compact and learn from accumulated experience — owns the *offline* measurement: it distils a per-recipe **fitness** from accumulated execution episodes — success rate, latency, token cost. Each episode attributes to a recipe only via an explicit `recipe:<owner/slug>` tag the runner sets at dispatch, so an untagged episode is never counted against any recipe (no false attribution).
··· 1 unchanged paragraph folded ···
v4.5 · 11.3 External acquisition — implemented### 11.3 External acquisition — shipped
v4.6 · 11.3 External acquisition — implemented### 11.3 External acquisition — implemented
v4.5 · 11.3 External acquisition — implementedSection 5.3 establishes `recipe/1.0` as a portable document and the substrate as a general runtime rather than a closed hand-authored set. That portability is now exploited from outside. Journey kits — a near-native format — were already reachable through the search/install path; the substrate now also bridges **Claude Code skills**, which are a different shape (a `SKILL.md` with YAML frontmatter plus loose scripts). A dedicated adapter reads the skill's frontmatter and body, infers an ordered step list, and transpiles it into a recipe spec, which is then run through the **existing** authoring validator (§5.2) — so the slug-traversal and phantom-heading guards apply to imported content without forking the validator. Bridged recipes are written into a dedicated sandbox directory that the matcher's index scans, so an imported workflow becomes matchable like any other.
v4.6 · 11.3 External acquisition — implementedSection 5.3 establishes `recipe/1.0` as a portable document and the substrate as a general runtime rather than a closed hand-authored set. That portability is exploited from outside. Journey kits — a near-native format — are reachable through the search/install path; the substrate also bridges **Claude Code skills**, which are a different shape (a `SKILL.md` with YAML frontmatter plus loose scripts). A dedicated adapter reads the skill's frontmatter and body, infers an ordered step list, and transpiles it into a recipe spec, which is then run through the **existing** authoring validator (§5.2) — so the slug-traversal and phantom-heading guards apply to imported content without forking the validator. Bridged recipes are written into a dedicated sandbox directory that the matcher's index scans, so an imported workflow becomes matchable like any other.
··· 1 unchanged paragraph folded ···
v4.5 · 11.4 The versioned marketplace — implemented (client side)### 11.4 The versioned marketplace — shipped (client side)
v4.6 · 11.4 The versioned marketplace — implemented (client side)### 11.4 The versioned marketplace — implemented (client side)
v4.5 · 11.4 The versioned marketplace — implemented (client side)Treating a recipe as an artifact culminates in making a tested one a versioned, discoverable object rather than a file in one workshop. The frontmatter already carried owner, version, tested-harness, and authored-by, and the publish path already POSTed to a remote endpoint; what was missing was the *semantics* on top of that plumbing, and they now exist as a marketplace facade. Publishing bumps the frontmatter version under a semver policy and refuses a republish that would overwrite an already-published version — versions are immutable, and a bad recipe is yanked, not silently replaced. Install accepts a version constraint (latest / exact / a caret-tilde-or-`>=` range) resolved against the published set, with a roughly one-hour cache TTL so updates propagate without hammering the API.
v4.6 · 11.4 The versioned marketplace — implemented (client side)Treating a recipe as an artifact culminates in making a tested one a versioned, discoverable object rather than a file in one workshop. The frontmatter carries owner, version, tested-harness, and authored-by, and the publish path POSTs to a remote endpoint; the *semantics* on top of that plumbing live in a marketplace facade. Publishing bumps the frontmatter version under a semver policy and refuses a republish that would overwrite an already-published version — versions are immutable, and a bad recipe is yanked, not silently replaced. Install accepts a version constraint (latest / exact / a caret-tilde-or-`>=` range) resolved against the published set, with a roughly one-hour cache TTL so updates propagate without hammering the API.
··· 9 unchanged paragraphs folded ···
v4.5 · 12. ConclusionOf these, the loop is the quiet pivot. Sequence and selection make a checklist; sequence, selection, *and bounded iteration* make a substrate expressive enough to encode the iterative, exhaust-the-search, retry-until-clean work that real tasks demand — exactly the structural gap that separated a static playbook from a hand-coded workflow, now closed. And on-the-fly authoring is the quiet flywheel: a substrate that writes its own missing programs grows its competence inside the very conversations that expose its gaps. With durable resume, an empirically self-improving library, external acquisition, and a versioned marketplace now running on top of those six capabilities, the substrate is closer to the full thesis than to its sketch.
v4.6 · 12. ConclusionOf these, the loop is the quiet pivot. Sequence and selection make a checklist; sequence, selection, *and bounded iteration* make a substrate expressive enough to encode the iterative, exhaust-the-search, retry-until-clean work that real tasks demand — exactly the structural gap that separated a static playbook from a hand-coded workflow, now closed. And on-the-fly authoring is the quiet flywheel: a substrate that writes its own missing programs grows its competence inside the very conversations that expose its gaps. With durable resume, an empirically self-improving library, external acquisition, and a versioned marketplace running on top of those six capabilities, the substrate realises most of the full thesis, leaving only searched execution as a specified, deliberately bounded gap.
··· 17 unchanged paragraphs folded ···
Changed paragraphs in the same form, for scripts: JSON
· Markdown