# PREFRONTAL: The Recipe Execution Substrate — How a Composable, Self-Authoring, Looping Workflow Engine Becomes an Agent's Executive Function: history

18 versions, 2026-03-31 to 2026-11-25. Newest first. Clone: https://sprintpaper.com/git/prefrontal-orchestration.git

## v4.9 · 2026-11-25

13,822 words, +1,484 / −8 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.9.md

**Three new sections: a semantic matching trial, per-prompt status, gate state**

Adds about 1,500 words drawn from the folder's notes of September and October 2026.

- Section 3.6: a meaning-based matching lane that runs only as a trial with a stopping rule. It switches itself off when it rescues no matches, because each lookup makes the person wait.
- Section 8.5: how the interface knows, for each prompt sent, whether it is still being worked on, lost or cancelled, and the durable record of matches and runs.
- Section 9.7: a gate's memory must belong to the session it protects, and any gate that can refuse forever needs a breaker.
- Section 2.3 explains why two plan calls are not safe to repeat. The evaluation sections say which logged numbers to read.

## v4.8 · 2026-06-19

12,346 words, +266 / −113 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.8.md

**References section added; figures redrawn**

Adds a references section, replaces the figures with redrawn versions, and cites an outside author's skills plugin as a reference instead of naming the repository. The open-gap section drops the method names from its title. Small wording edits.

## v4.7 · 2026-06-14

12,193 words, +3,259 / −72 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.7.md

**Five new parts: anti-triggers, skill calls, budgets, load rules, a doubt critic**

The longest step since v4.0: about 3,200 words added. It writes up work recorded in the folder's notes between 4 and 13 June.

- Recipes can say when they must not match (anti-triggers), and the scorer subtracts for them.
- A recipe step can call a skill from a shared library (a third step type besides merge and sub-recipe call).
- Effort routing moves from advice to an enforced budget, and a recipe can declare where it may run.
- A completion critic that checks the work without inheriting the worker's framing.
- Saved plans can be rolled back, and a new part on compressing artifacts without losing them.
- Failures inside a parallel fan-out are reported per branch.

## v4.6 · 2026-06-02

9,006 words, +98 / −77 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.6.md

**Shipped becomes implemented; figures set for print**

The 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 · 2026-06-02

8,985 words, +117 / −161 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.5.md

**Two figures added; the diagram-plan section removed**

Adds figures for recipe composition (4.2) and for the panel (8.3), and removes the section that listed diagrams still to be drawn.

## v4.4 · 2026-06-02

9,029 words, +59 / −44 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.4.md

**Wording fixes only**

Wording fixes in sections 2.2, 6.3 and 11. No change to the content.

## v4.3 · 2026-06-02

9,014 words, +330 / −166 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.3.md

**Companion-paper list replaced by a section on the surrounding systems**

The list of companion papers is replaced by section 14, which says in plain terms what the design depends on: episodic memory and its offline consolidation, a fast memory index, a learned action gate, multi-model deliberation and budget-aware prompting. The aim is that the design can be rebuilt without reading the other papers. Small edits in sections 1.3 and 11.

## v4.2 · 2026-06-02

8,850 words, +986 / −936 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.2.md

**Four of the five open items reported as built**

Section 11 is rewritten as "What Has Shipped Beyond the Core". Durable checkpointing, the self-improving library, importing outside recipes and the versioned marketplace (client side) are now reported as built. Searching over alternative recipes stays as the one open gap. Small wording edits elsewhere.

## v4.1 · 2026-06-02

8,800 words, +1,645 / −99 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.1.md

**New section on limitations and what comes next**

Adds section 11, which names five things the design does not do yet: reading a saved plan back after a crash, a library that improves from results, importing recipes from outside, sharing recipes as versioned packages, and searching over alternative recipes. It also says what the section does not claim. The architecture diagram in 2.1 becomes a drawn figure.

## v4.0 · 2026-05-30

7,254 words, +6,710 / −4,866 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/4.0.md

**Rewritten: recipes as the agent's executive function**

A second full rewrite. The folder's notes say the owner chose on 2026-05-30 to rewrite this paper rather than start a new one, and to write up parts that were already running in the fork but had never been described. The paper now takes the brain's prefrontal cortex as its model: a layer that holds the plan, picks the routine and watches whether it works.

- New title: "The Recipe Execution Substrate — How a Composable, Self-Authoring, Looping Workflow Engine Becomes an Agent's Executive Function".
- Six capabilities, one section each: fuzzy matching of a request to a recipe, recipes built from other recipes, writing a new recipe when none fits, bounded loops, effort routing that sets model and thinking budget, and a panel that shows all of it.
- Drops the idea of a separate orchestrator call and the Claude Code leak as the main evidence; the worker runs the recipe itself.
- Adds pseudocode for each capability and a recipe document schema in the appendices.

## v3.1 · 2026-04-07

5,410 words, +206 / −828 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/3.1.md

**Tightened, with a short limitations section**

A tightening pass of v3.0: about 600 words shorter, same thesis and structure.

- Cuts repetition in the introduction, the cycle description and the cost analysis.
- Adds section 6.5 on failure modes and limitations.

## v3.0 · 2026-04-07

6,032 words, +5,987 / −10,391 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/3.0.md

**Rewritten: from guard rails to a recipe engine**

A new paper under the same codename. The earlier versions described rules that stop an agent from doing the wrong thing. This one argues that an agent also needs machinery that guides it to do the right thing in the right order, and proposes recipes: written, ordered workflows that an orchestrator picks and runs.

- New title: "From Guard Rails to Recipe Engine — How Structured Orchestration Compounds Agent Intelligence".
- The orchestrator becomes the first call of each turn: it picks or builds a recipe, sends work to parallel subagents, watches progress, and runs the reflection only at the end.
- Claims the extra call costs about 5 % in tokens because it shares the prompt cache with the main agent.
- New sections on the recipe format, built-in and custom recipes, recipe selection, and how the earlier reflection, memory and identity parts fit the new cycle.
- The six-month measurements and most related work of v2.4 are dropped; the paper is about half as long.

## v2.4 · 2026-04-01

10,436 words, +318 / −48 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/2.4.md

**Implementation section updated: four of five gaps closed**

Updates section 5.7 after a same-day implementation session. Four of the five gaps listed in v2.3 are reported as closed (among them an effort router that warns when an expensive model gets a simple task), each with its test count. No other content changes.

## v2.3 · 2026-04-01

10,166 words, +552 / −2 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/2.3.md

**New section on the plugin that implements the design**

Adds section 5.7, which describes the Prefrontal plugin: the code in the agent framework that carries out the ideas of the paper, and the gaps still open between paper and code.

- No other content changes.

## v2.2 · 2026-04-01

9,616 words, +721 / −341 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/2.2.md

**ASCII diagram and pseudocode moved out of the main text**

Mostly layout and tightening after the next review round.

- The text-drawn architecture diagram becomes an image figure.
- The reflection pseudocode moves from section 3.1 to a new Appendix A.
- Small edits to the abstract and the architecture section.

## v2.1 · 2026-04-01

9,236 words, +309 / −592 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/2.1.md

**Outside evidence trimmed; the index result is stated more carefully**

This version answers a reviewer (Gemini review round 6) who said the new comparisons felt bolted on and that the combined index rested on guessed numbers.

- The Claude Code and GStack passages in the introduction shrink to one paragraph.
- The two sections on identity concealment and feature flags merge into one section on deployment patterns.
- The 96 % gain in the combined index is now reported as a direction that holds across weightings, not as a firm figure.

## v2.0 · 2026-04-01

9,519 words, +2,278 / −4 words. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/2.0.md

**Outside evidence added: the Claude Code source leak and other agents**

This version keeps the thesis and adds outside evidence for it. The main new source is the accidental release of Claude Code's source code on 31 March 2026, which the paper reads as an independent team arriving at the same design.

- New comparisons with Claude Code (its memory index file, a background mode, how it splits safe and unsafe tools), Meta-Harness, GStack, Hermes Agent and Paperclip.
- A short survey of four ways to coordinate several agents, set beside the paper's own parallel-model method.
- New sections on agent transparency and identity, on switching cognitive features on and off with flags, on self-evolving agents and on reflecting before acting.
- Abstract and conclusion now present the shared design as evidence that these patterns are needed, not chosen.

## v1.4 · 2026-03-31

7,245 words, first version. Text: https://sprintpaper.com/papers/prefrontal-orchestration/v/1.4.md

**Agents that get smarter by remembering what they learn**

The paper argues that an AI agent's intelligence should be judged by how fast it turns new problems into reusable skills, not by how well it does in a single turn. It names four mechanisms that make an agent improve over time with the same model: a structured review after each action that writes reusable rules (fractal reflection), memory kept in files at several levels of permanence, asking several models in parallel, and matching model strength to task difficulty.

- Proposes three measures: first-attempt accuracy, resource efficiency, and how well a lesson carries over to new tasks, combined into one index.
- Reports six months of running an open-source agent as a personal assistant, with repeated errors down about 60 % over 90 days.
- Separates gains you get from the agent's setup (prompts, memory, orchestration) from gains that need a better model, and argues most available gains are in the setup.
