{
 "paper": "prefrontal-orchestration",
 "a": "4.5",
 "b": "4.6",
 "summary": "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.",
 "note": {
  "title": "Shipped becomes implemented; figures set for print",
  "kind": "revision",
  "body": "## Summary\n\nThe 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.",
  "source": "change note"
 },
 "paragraphs_changed": 14,
 "changes": [
  {
   "section": "Abstract",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The 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.-] {+are implemented and running, and which one — searched execution — remains specified but unbuilt.+}"
  },
  {
   "section": "1.3 The gap this paper closes",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The 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-] {+which harder extensions+} beyond the six core capabilities {+are implemented+} and [-the-] {+which+} one [-extension that-] remains open; Section 12 concludes; Section 13 states the surrounding cognitive stack the substrate depends on."
  },
  {
   "section": "4.2 Dynamic composition — runtime sub-recipe calls (`uses:`)",
   "old": "![Composition algebra: `composes:` flattens sub-recipe steps into one plan at build time (de-duplicated, depth- and cycle-guarded); `uses:` transfers control at run time 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.](images/fig-composition.pdf)",
   "new": "```{=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} ```",
   "marked": "[-![Composition-] {+```{=latex} \\begin{figure}[H] \\centering \\includegraphics[width=\\linewidth,height=0.85\\textheight,keepaspectratio]{images/fig-composition.pdf} \\caption{Composition+} algebra: [-`composes:`-] {+static step-merge+} flattens sub-recipe steps into one plan at build time (de-duplicated, depth- and cycle-guarded); [-`uses:`-] {+a runtime call+} transfers control [-at run time-] 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.](images/fig-composition.pdf)-] {+guard.} \\end{figure} ```+}"
  },
  {
   "section": "8.3 What the panel renders",
   "old": "![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.](images/fig-panel.pdf)",
   "new": "```{=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} ```",
   "marked": "[-![The-] {+```{=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.](images/fig-panel.pdf)-] {+trail.} \\end{figure} ```+}"
  },
  {
   "section": "11. What Has Shipped Beyond the Core, and What Remains Open",
   "old": "Sections 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.",
   "new": "Sections 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.",
   "marked": "Sections 3–8 specify the six core capabilities [-that have run in-] {+at+} the [-fork since-] {+heart of+} the [-substrate was first deployed.-] {+substrate.+} This section reports five harder extensions of the thesis. Four [-have now landed in the running fork;-] {+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 [-already runs,-] {+it does,+} so we mark each with its status and the seam it attaches to."
  },
  {
   "section": "11.1 Durable checkpointing — implemented",
   "old": "### 11.1 Durable checkpointing — shipped",
   "new": "### 11.1 Durable checkpointing — implemented",
   "marked": "### 11.1 Durable checkpointing — [-shipped-] {+implemented+}"
  },
  {
   "section": "11.1 Durable checkpointing — implemented",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The 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-] {+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."
  },
  {
   "section": "11.2 The self-improving library — implemented",
   "old": "### 11.2 The self-improving library — shipped",
   "new": "### 11.2 The self-improving library — implemented",
   "marked": "### 11.2 The self-improving library — [-shipped-] {+implemented+}"
  },
  {
   "section": "11.2 The self-improving library — implemented",
   "old": "Section 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).",
   "new": "Section 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).",
   "marked": "Section 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-] {+third axis is+} self-*improvement*: feeding real execution outcomes back into the matcher so its scoring weights [-stop being-] {+are not+} 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)."
  },
  {
   "section": "11.3 External acquisition — implemented",
   "old": "### 11.3 External acquisition — shipped",
   "new": "### 11.3 External acquisition — implemented",
   "marked": "### 11.3 External acquisition — [-shipped-] {+implemented+}"
  },
  {
   "section": "11.3 External acquisition — implemented",
   "old": "Section 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.",
   "new": "Section 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.",
   "marked": "Section 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-] {+are+} 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."
  },
  {
   "section": "11.4 The versioned marketplace — implemented (client side)",
   "old": "### 11.4 The versioned marketplace — shipped (client side)",
   "new": "### 11.4 The versioned marketplace — implemented (client side)",
   "marked": "### 11.4 The versioned marketplace — [-shipped-] {+implemented+} (client side)"
  },
  {
   "section": "11.4 The versioned marketplace — implemented (client side)",
   "old": "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.",
   "new": "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.",
   "marked": "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-] {+carries+} owner, version, tested-harness, and authored-by, and the publish path [-already POSTed-] {+POSTs+} to a remote endpoint; [-what was missing was-] the *semantics* on top of that [-plumbing, and they now exist as-] {+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."
  },
  {
   "section": "12. Conclusion",
   "old": "Of 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.",
   "new": "Of 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.",
   "marked": "Of 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-] {+realises most of+} the full [-thesis than to its sketch.-] {+thesis, leaving only searched execution as a specified, deliberately bounded gap.+}"
  }
 ]
}
