{
 "paper": "prefrontal-orchestration",
 "a": "4.3",
 "b": "4.4",
 "summary": "From v4.3 (2 Jun) to v4.4 (2 Jun): 9,014 words to 9,029 words, 59 words in new or rewritten paragraphs and 44 taken out, 5 paragraphs changed.",
 "note": {
  "title": "Wording fixes only",
  "kind": "revision",
  "body": "## Summary\n\nWording fixes in sections 2.2, 6.3 and 11. No change to the content.",
  "source": "change note"
 },
 "paragraphs_changed": 5,
 "changes": [
  {
   "section": "2.2 Where the structure comes from, and when it is cheap",
   "old": "Third, **follow-up cognition reuses context.** When a phase does require a model call (a reflection pass, or a tiebreak judge when two recipes score within a hair of each other), that call shares almost the entire context of the main turn — the same identity, the same retrieved memory, the same conversation. Under context-caching pricing, a follow-up call that differs only in its instruction costs a small fraction of a fresh call. The question therefore shifts from \"can we afford an executive layer?\" to \"can we afford to run without one?\"",
   "new": "Third, **follow-up cognition reuses context.** When a phase does require a model call (a reflection pass, or a tiebreak judge when two recipes score within a hair of each other), that call shares almost the entire context of the main turn — the same identity, the same retrieved memory, the same conversation. Under context-caching pricing, a follow-up call that differs only in its instruction costs a small fraction of a fresh one. The executive layer is therefore cheap precisely where it is invoked most.",
   "marked": "Third, **follow-up cognition reuses context.** When a phase does require a model call (a reflection pass, or a tiebreak judge when two recipes score within a hair of each other), that call shares almost the entire context of the main turn — the same identity, the same retrieved memory, the same conversation. Under context-caching pricing, a follow-up call that differs only in its instruction costs a small fraction of a fresh [-call.-] {+one.+} The [-question-] {+executive layer is+} therefore [-shifts from \"can we afford an executive layer?\" to \"can we afford to run without one?\"-] {+cheap precisely where it is invoked most.+}"
  },
  {
   "section": "6.3 Bounded by construction — the anti-runaway guarantee",
   "old": "A self-driving loop in an autonomous agent is a liability unless it is *provably* bounded. Every loop is therefore clamped twice: a per-loop default maximum (five iterations), and an absolute hard ceiling (twenty-five) that no recipe — authored or hand-written — can exceed. A loop count is clamped into `[1, HARD_CAP]` at parse time, so even a maliciously or accidentally enormous `count` collapses to the hard ceiling. The substrate is expressive enough to iterate and *constitutionally incapable* of spinning forever — the executive analogue of perseveration control, the prefrontal function that stops a behaviour that has stopped being productive.",
   "new": "A self-driving loop in an autonomous agent is a liability unless it is *provably* bounded. Every loop is therefore clamped twice: a per-loop default maximum of five iterations, and an absolute hard ceiling of twenty-five that no recipe — authored or hand-written — can exceed. The count is clamped into `[1, HARD_CAP]` at parse time, so even a maliciously or accidentally enormous `count` collapses to the ceiling rather than running away. The substrate is expressive enough to iterate and *constitutionally incapable* of spinning forever — the executive analogue of perseveration control, the prefrontal function that stops a behaviour that has stopped being productive.",
   "marked": "A self-driving loop in an autonomous agent is a liability unless it is *provably* bounded. Every loop is therefore clamped twice: a per-loop default maximum [-(five iterations),-] {+of five iterations,+} and an absolute hard ceiling [-(twenty-five)-] {+of twenty-five+} that no recipe — authored or hand-written — can exceed. [-A loop-] {+The+} count is clamped into `[1, HARD_CAP]` at parse time, so even a maliciously or accidentally enormous `count` collapses to the [-hard ceiling.-] {+ceiling rather than running away.+} The substrate is expressive enough to iterate and *constitutionally incapable* of spinning forever — the executive analogue of perseveration control, the prefrontal function that stops a behaviour that has stopped being productive."
  },
  {
   "section": "11.1 Durable checkpointing — shipped",
   "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 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. 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.",
   "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 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.4 The versioned marketplace — shipped (client side)",
   "old": "The design's contract under failure is the load-bearing part: when the marketplace fetch fails, resolution degrades to the last cached copy — within or even past the TTL — and **never throws**, so an outage degrades a match to local cache rather than hard-failing a turn. Discovery folds a small **clamped** popularity bonus into the matcher score through the *same* post-base adjustment seam as the fitness feedback (§11.2), so there is exactly one place that perturbs base scores. The bonus is additive and hard-clamped to a small ceiling: rating (0–5) maps to most of it and download count adds only a gentle log-scaled nudge, with the sum capped well below the weight of a single exact tag hit — so a merely-popular recipe can never override a genuine text mismatch or out-rank a recipe with stronger empirical fitness. Authored recipes are still never auto-published — publishing stays an explicit human action (§5.3) — and only the frontmatter owner may publish a new version of a slug. The marketplace *backend* itself is a separate deliverable outside the substrate; this is the client-side half.",
   "new": "The design's contract under failure is the load-bearing part: when the marketplace fetch fails, resolution degrades to the last cached copy — within or even past the TTL — and **never throws**, so an outage degrades a match to local cache rather than hard-failing a turn. Discovery folds a small **clamped** popularity bonus into the matcher score through the *same* post-base adjustment seam as the fitness feedback (§11.2), so there is exactly one place that perturbs base scores. The bonus is additive and hard-clamped to a tiny band — on the order of a fifth of a point against a scale where a single exact tag hit is worth several — with rating (0–5) supplying most of it and download count adding only a gentle log-scaled nudge. A merely-popular recipe can therefore never override a genuine text mismatch or out-rank a recipe with stronger empirical fitness. Authored recipes are still never auto-published — publishing stays an explicit human action (§5.3) — and only the frontmatter owner may publish a new version of a slug. The marketplace *backend* itself is a separate deliverable outside the substrate; this is the client-side half.",
   "marked": "The design's contract under failure is the load-bearing part: when the marketplace fetch fails, resolution degrades to the last cached copy — within or even past the TTL — and **never throws**, so an outage degrades a match to local cache rather than hard-failing a turn. Discovery folds a small **clamped** popularity bonus into the matcher score through the *same* post-base adjustment seam as the fitness feedback (§11.2), so there is exactly one place that perturbs base scores. The bonus is additive and hard-clamped to a [-small ceiling:-] {+tiny band — on the order of a fifth of a point against a scale where a single exact tag hit is worth several — with+} rating (0–5) [-maps to-] {+supplying+} most of it and download count [-adds-] {+adding+} only a gentle log-scaled [-nudge, with the sum capped well below the weight of a single exact tag hit — so a-] {+nudge. A+} merely-popular recipe can {+therefore+} never override a genuine text mismatch or out-rank a recipe with stronger empirical fitness. Authored recipes are still never auto-published — publishing stays an explicit human action (§5.3) — and only the frontmatter owner may publish a new version of a slug. The marketplace *backend* itself is a separate deliverable outside the substrate; this is the client-side half."
  },
  {
   "section": "11.5 Bounded search (ToT/LATS) — the one open gap",
   "old": "Some of the raw material is already present: the matcher returns a ranked top-N with confidence, so \"alternate recipes\" is just consuming the list rather than only its first element, and the per-step artifacts from §11.1 are the snapshots a backtrack would restore. The expensive parts are what remain unwritten — a search controller that maintains a scored frontier, a runner that can restore plan state to re-enter a prior step, and a value estimate good enough that search converges faster than brute force. The risks are why this is last: combinatorial blow-up across recipes × parameters × orderings makes a hard budget (max nodes, max tokens, max wall-time) mandatory not optional, and it interacts badly with loops — a long loop *inside* a searched branch can stall for the better part of an hour. Every backtrack is a real subagent dispatch, so a weak value estimate makes search net-negative. And searched execution is non-deterministic, which collides with the marketplace's need for a recipe's behaviour to be a function of its text — so a deterministic mode that disables search would be the contract for published recipes. A failure-only mode (search only when a step fails) is a reasonable, cheaper first cut, but it is not the full vision.",
   "new": "Some of the raw material is already present: the matcher returns a ranked top-N with confidence, so \"alternate recipes\" is just consuming the list rather than only its first element, and the per-step artifacts from §11.1 are the snapshots a backtrack would restore. The expensive parts are what remain unwritten — a search controller that maintains a scored frontier, a runner that can restore plan state to re-enter a prior step, and a value estimate good enough that search converges faster than brute force. The risks are why this is last. Combinatorial blow-up across recipes × parameters × orderings makes a hard budget — max nodes, max tokens, max wall-time — mandatory, not optional. It also interacts badly with loops: a long loop *inside* a searched branch can stall for the better part of an hour. Every backtrack is a real subagent dispatch, so a weak value estimate makes search net-negative. And searched execution is non-deterministic, which collides with the marketplace's need for a recipe's behaviour to be a function of its text — so a deterministic mode that disables search would be the contract for published recipes. A failure-only mode (search only when a step fails) is a reasonable, cheaper first cut, but it is not the full vision.",
   "marked": "Some of the raw material is already present: the matcher returns a ranked top-N with confidence, so \"alternate recipes\" is just consuming the list rather than only its first element, and the per-step artifacts from §11.1 are the snapshots a backtrack would restore. The expensive parts are what remain unwritten — a search controller that maintains a scored frontier, a runner that can restore plan state to re-enter a prior step, and a value estimate good enough that search converges faster than brute force. The risks are why this is [-last: combinatorial-] {+last. Combinatorial+} blow-up across recipes × parameters × orderings makes a hard budget [-(max-] {+— max+} nodes, max tokens, max [-wall-time) mandatory-] {+wall-time — mandatory,+} not [-optional, and it-] {+optional. It also+} interacts badly with [-loops —-] {+loops:+} a long loop *inside* a searched branch can stall for the better part of an hour. Every backtrack is a real subagent dispatch, so a weak value estimate makes search net-negative. And searched execution is non-deterministic, which collides with the marketplace's need for a recipe's behaviour to be a function of its text — so a deterministic mode that disables search would be the contract for published recipes. A failure-only mode (search only when a step fails) is a reasonable, cheaper first cut, but it is not the full vision."
  }
 ]
}
