{
 "paper": "j17",
 "a": "1.2",
 "b": "1.3",
 "summary": "From v1.2 (29 Jul) to v1.3 (25 Nov): 11,078 words to 11,383 words, 309 words in new or rewritten paragraphs and 4 taken out, 12 paragraphs changed.",
 "note": {
  "title": "Every recipe parse and run now leaves a record",
  "kind": "revision",
  "body": "## Summary\n\nOne new section and a few wording fixes. Every time the system reads a recipe, it now writes a record: accepted, or refused for one of five named reasons. Every run records its steps and which ones failed. One query can then separate recipes refused before they ran from recipes that broke partway, and each points to a different fix. The improvement notes of 25 September asked for this section. The paper says plainly that these counts come from one deployment and prove nothing about typed versus prose recipes.\n\n- New section 4.4 on parse and run records.\n- Wording only elsewhere: \"load-bearing\" replaced with plain phrases, star symbols written as \"stars\".",
  "source": "change note"
 },
 "paragraphs_changed": 12,
 "changes": [
  {
   "section": "2.1 English is a wire format, and a bad one",
   "old": "Third, it is **unbounded and lossy under truncation**. A note long enough to carry the real result risks being summarized to fit a display or carry-forward budget, at which point the very field the next step needed may be the part that was cut. Carry-forward digests in the running substrate are deliberately bounded to a few hundred characters; a typed value must not be subject to that bound, precisely because it is the load-bearing payload, not a human-facing summary.",
   "new": "Third, it is **unbounded and lossy under truncation**. A note long enough to carry the real result risks being summarized to fit a display or carry-forward budget, at which point the very field the next step needed may be the part that was cut. Carry-forward digests in the running substrate are deliberately bounded to a few hundred characters; a typed value must not be subject to that bound, precisely because it is the payload the next step depends on, not a human-facing summary.",
   "marked": "Third, it is **unbounded and lossy under truncation**. A note long enough to carry the real result risks being summarized to fit a display or carry-forward budget, at which point the very field the next step needed may be the part that was cut. Carry-forward digests in the running substrate are deliberately bounded to a few hundred characters; a typed value must not be subject to that bound, precisely because it is the [-load-bearing payload,-] {+payload the next step depends on,+} not a human-facing summary."
  },
  {
   "section": "2.2 Two answers to the lossy-prose problem: eliminate the prose, or compress-and-recover it",
   "old": "The first answer — BROCA's — is to make the prose **unnecessary at the load-bearing edges**: replace the paragraph with a typed, named-port value, so the downstream step binds `steps.3.out.failingCount` directly and there is no re-parse, no truncation risk, and no schema-less guessing on those edges at all.",
   "new": "The first answer — BROCA's — is to make the prose **unnecessary at the edges that carry real data**: replace the paragraph with a typed, named-port value, so the downstream step binds `steps.3.out.failingCount` directly and there is no re-parse, no truncation risk, and no schema-less guessing on those edges at all.",
   "marked": "The first answer — BROCA's — is to make the prose **unnecessary at the [-load-bearing edges**:-] {+edges that carry real data**:+} replace the paragraph with a typed, named-port value, so the downstream step binds `steps.3.out.failingCount` directly and there is no re-parse, no truncation risk, and no schema-less guessing on those edges at all."
  },
  {
   "section": "2.2 Two answers to the lossy-prose problem: eliminate the prose, or compress-and-recover it",
   "old": "The second answer is to keep the prose but make it **smaller and recoverable**. This is the design of chopratejas/headroom (Choprateja S. et al., 24.7k★, Apache-2.0), a reversible context-compression layer built on **Compress-Cache-Retrieve (CCR)**: the originals are cached and the model retrieves them on demand, with per-content-type compressors — statistical JSON-array crushing (SmartCrusher), tree-sitter AST-aware code compression, and log/diff/text handlers — reported at 60–95% token savings with near-zero accuracy delta on a reproducible benchmark suite. headroom never needs to know what `failingCount` *is*; it crushes and caches the opaque note and serves it back when asked.",
   "new": "The second answer is to keep the prose but make it **smaller and recoverable**. This is the design of chopratejas/headroom (Choprateja S. et al., 24.7k stars, Apache-2.0), a reversible context-compression layer built on **Compress-Cache-Retrieve (CCR)**: the originals are cached and the model retrieves them on demand, with per-content-type compressors — statistical JSON-array crushing (SmartCrusher), tree-sitter AST-aware code compression, and log/diff/text handlers — reported at 60–95% token savings with near-zero accuracy delta on a reproducible benchmark suite. headroom never needs to know what `failingCount` *is*; it crushes and caches the opaque note and serves it back when asked.",
   "marked": "The second answer is to keep the prose but make it **smaller and recoverable**. This is the design of chopratejas/headroom (Choprateja S. et al., [-24.7k★,-] {+24.7k stars,+} Apache-2.0), a reversible context-compression layer built on **Compress-Cache-Retrieve (CCR)**: the originals are cached and the model retrieves them on demand, with per-content-type compressors — statistical JSON-array crushing (SmartCrusher), tree-sitter AST-aware code compression, and log/diff/text handlers — reported at 60–95% token savings with near-zero accuracy delta on a reproducible benchmark suite. headroom never needs to know what `failingCount` *is*; it crushes and caches the opaque note and serves it back when asked."
  },
  {
   "section": "4.4 Every parse leaves a record",
   "old": null,
   "new": "### 4.4 Every parse leaves a record",
   "marked": "{+### 4.4 Every parse leaves a record+}"
  },
  {
   "section": "4.4 Every parse leaves a record",
   "old": null,
   "new": "A contract that refuses a recipe is only half useful if the refusal disappears with the run that hit it. The checks above stop a bad recipe before dispatch, but a refusal the operator never sees cannot teach anyone which recipes are malformed, or how often. So the parser writes one durable record for every parse it attempts, not only for the ones that fail. The record is either `ok` or a rejection with a reason from a closed set: no frontmatter at all, frontmatter that is not valid YAML, frontmatter that parses but is not a key-value map, a recipe with no steps, or a recipe with no slug. Like the error kinds of Section 9.1, the set is closed so that each reason can be counted and none hides in free text.",
   "marked": "{+A contract that refuses a recipe is only half useful if the refusal disappears with the run that hit it. The checks above stop a bad recipe before dispatch, but a refusal the operator never sees cannot teach anyone which recipes are malformed, or how often. So the parser writes one durable record for every parse it attempts, not only for the ones that fail. The record is either `ok` or a rejection with a reason from a closed set: no frontmatter at all, frontmatter that is not valid YAML, frontmatter that parses but is not a key-value map, a recipe with no steps, or a recipe with no slug. Like the error kinds of Section 9.1, the set is closed so that each reason can be counted and none hides in free text.+}"
  },
  {
   "section": "4.4 Every parse leaves a record",
   "old": null,
   "new": "Runs get the same treatment. Each run records the steps it executed and which of them failed. The two record streams sit in the same event store, so one query separates the two ways a recipe can let its author down: it was refused before it ran, or it ran and broke partway. They call for different fixes. A rejection points at the authoring side (the template, the validator of Section 11, or the agent that emitted the file). A run failure points at a step, which is what the struggle reader of Section 9.4 consumes.",
   "marked": "{+Runs get the same treatment. Each run records the steps it executed and which of them failed. The two record streams sit in the same event store, so one query separates the two ways a recipe can let its author down: it was refused before it ran, or it ran and broke partway. They call for different fixes. A rejection points at the authoring side (the template, the validator of Section 11, or the agent that emitted the file). A run failure points at a step, which is what the struggle reader of Section 9.4 consumes.+}"
  },
  {
   "section": "4.4 Every parse leaves a record",
   "old": null,
   "new": "These records count what happens in one deployment. They show where recipes break in practice and give the self-sharpening loop a cleaner input, but they are not evidence that typed recipes fail less often than prose ones. That comparison needs the matched public benchmark of Section 13, item 11.",
   "marked": "{+These records count what happens in one deployment. They show where recipes break in practice and give the self-sharpening loop a cleaner input, but they are not evidence that typed recipes fail less often than prose ones. That comparison needs the matched public benchmark of Section 13, item 11.+}"
  },
  {
   "section": "6.1 `when:` — a sandboxed boolean grammar, not `eval`",
   "old": "The by-construction closure is the grammar's own guarantee, and it is the load-bearing one. It is now also backed by an independent runtime floor: a sibling line of work (the learned-intuition reflex gate) enforces a pre-execution policy on the *tool calls* any step — recipe-authored or freely improvised — is allowed to make, denying disallowed actions before they run rather than observing them after. The two guarantees are layered, not redundant: the closed `when:` grammar means a recipe body cannot *carry* code, and the reflex gate means a step cannot *invoke* a denied action even if its prose tried to. We note the second layer here for completeness; its mechanism, calibration, and its known over-flagging behavior on benign destructive-looking commands are the subject of the companion AMYGDALA work and are out of scope for this paper.",
   "new": "The by-construction closure is the grammar's own guarantee, and it is the one the rest depends on. It is now also backed by an independent runtime floor: a sibling line of work (the learned-intuition reflex gate) enforces a pre-execution policy on the *tool calls* any step — recipe-authored or freely improvised — is allowed to make, denying disallowed actions before they run rather than observing them after. The two guarantees are layered, not redundant: the closed `when:` grammar means a recipe body cannot *carry* code, and the reflex gate means a step cannot *invoke* a denied action even if its prose tried to. We note the second layer here for completeness; its mechanism, calibration, and its known over-flagging behavior on benign destructive-looking commands are the subject of the companion AMYGDALA work and are out of scope for this paper.",
   "marked": "The by-construction closure is the grammar's own guarantee, and it is the [-load-bearing one.-] {+one the rest depends on.+} It is now also backed by an independent runtime floor: a sibling line of work (the learned-intuition reflex gate) enforces a pre-execution policy on the *tool calls* any step — recipe-authored or freely improvised — is allowed to make, denying disallowed actions before they run rather than observing them after. The two guarantees are layered, not redundant: the closed `when:` grammar means a recipe body cannot *carry* code, and the reflex gate means a step cannot *invoke* a denied action even if its prose tried to. We note the second layer here for completeness; its mechanism, calibration, and its known over-flagging behavior on benign destructive-looking commands are the subject of the companion AMYGDALA work and are out of scope for this paper."
  },
  {
   "section": "11.1 Authoring conventions imported from the ecosystem",
   "old": "A second, smaller debt to the open-source ecosystem is methodological. The `validateRecipeSpec` shape above guarantees a recipe is *well-formed*; it does not yet guarantee a recipe declares *when it should and should not be chosen*. Two adjacent corpora supply the missing convention. addyosmani/agent-skills (Addy Osmani, 56.8k★, MIT) — an engineering-discipline plugin packaging skills, subagent personas, commands, and hooks — standardizes a per-skill **\"When NOT to use\"** section and a **\"Loading Constraints\"** declaration (where a skill is allowed to load: main session vs. sub-agent). coreyhaines31/marketingskills (Corey Haines, 33k★, MIT) — a 44-skill, 51-CLI marketing corpus — standardizes a per-skill user-phrase trigger description and an `evals/evals.json` acceptance set. Both conventions are directly applicable to BROCA's matcher surface: the substrate's recipe matcher already supports an anti-trigger field (`antiTriggers:` / `whenNotToUse:`) that *subtracts* from a recipe's lexical match score on an exact look-alike phrase, which is the runtime counterpart of Osmani's \"When NOT to use.\" Adopting these as part of the authoring standard — declared triggers and anti-triggers, an evals set, and a load-site constraint — is the concrete next tightening of `validateRecipeSpec`, and it imports a discipline two independent corpora already pay rather than reinventing it.",
   "new": "A second, smaller debt to the open-source ecosystem is methodological. The `validateRecipeSpec` shape above guarantees a recipe is *well-formed*; it does not yet guarantee a recipe declares *when it should and should not be chosen*. Two adjacent corpora supply the missing convention. addyosmani/agent-skills (Addy Osmani, 56.8k stars, MIT) — an engineering-discipline plugin packaging skills, subagent personas, commands, and hooks — standardizes a per-skill **\"When NOT to use\"** section and a **\"Loading Constraints\"** declaration (where a skill is allowed to load: main session vs. sub-agent). coreyhaines31/marketingskills (Corey Haines, 33k stars, MIT) — a 44-skill, 51-CLI marketing corpus — standardizes a per-skill user-phrase trigger description and an `evals/evals.json` acceptance set. Both conventions are directly applicable to BROCA's matcher surface: the substrate's recipe matcher already supports an anti-trigger field (`antiTriggers:` / `whenNotToUse:`) that *subtracts* from a recipe's lexical match score on an exact look-alike phrase, which is the runtime counterpart of Osmani's \"When NOT to use.\" Adopting these as part of the authoring standard — declared triggers and anti-triggers, an evals set, and a load-site constraint — is the concrete next tightening of `validateRecipeSpec`, and it imports a discipline two independent corpora already pay rather than reinventing it.",
   "marked": "A second, smaller debt to the open-source ecosystem is methodological. The `validateRecipeSpec` shape above guarantees a recipe is *well-formed*; it does not yet guarantee a recipe declares *when it should and should not be chosen*. Two adjacent corpora supply the missing convention. addyosmani/agent-skills (Addy Osmani, [-56.8k★,-] {+56.8k stars,+} MIT) — an engineering-discipline plugin packaging skills, subagent personas, commands, and hooks — standardizes a per-skill **\"When NOT to use\"** section and a **\"Loading Constraints\"** declaration (where a skill is allowed to load: main session vs. sub-agent). coreyhaines31/marketingskills (Corey Haines, [-33k★,-] {+33k stars,+} MIT) — a 44-skill, 51-CLI marketing corpus — standardizes a per-skill user-phrase trigger description and an `evals/evals.json` acceptance set. Both conventions are directly applicable to BROCA's matcher surface: the substrate's recipe matcher already supports an anti-trigger field (`antiTriggers:` / `whenNotToUse:`) that *subtracts* from a recipe's lexical match score on an exact look-alike phrase, which is the runtime counterpart of Osmani's \"When NOT to use.\" Adopting these as part of the authoring standard — declared triggers and anti-triggers, an evals set, and a load-site constraint — is the concrete next tightening of `validateRecipeSpec`, and it imports a discipline two independent corpora already pay rather than reinventing it."
  },
  {
   "section": "15. Related Work",
   "old": "**Context compression for agents — chopratejas/headroom** (Choprateja S. et al., 24.7k★, Apache-2.0). headroom attacks the same lossy-prose-transport problem from the opposite direction (Sections 2.2, 16): rather than eliminating the prose at typed edges, it keeps the prose and makes it smaller and recoverable via Compress-Cache-Retrieve. The two are complementary — BROCA's typed edge for the load-bearing fields, headroom's CCR for the steps gradual typing deliberately leaves as prose. headroom is also the methodological foil for this revision: its reproducible GSM8K/TruthfulQA/SQuAD/BFCL eval suite is the bar BROCA has not yet met for its own value-model efficiency claim (Section 16.1).",
   "new": "**Context compression for agents — chopratejas/headroom** (Choprateja S. et al., 24.7k stars, Apache-2.0). headroom attacks the same lossy-prose-transport problem from the opposite direction (Sections 2.2, 16): rather than eliminating the prose at typed edges, it keeps the prose and makes it smaller and recoverable via Compress-Cache-Retrieve. The two are complementary — BROCA's typed edge for the fields that matter, headroom's CCR for the steps gradual typing deliberately leaves as prose. headroom is also the methodological foil for this revision: its reproducible GSM8K/TruthfulQA/SQuAD/BFCL eval suite is the bar BROCA has not yet met for its own value-model efficiency claim (Section 16.1).",
   "marked": "**Context compression for agents — chopratejas/headroom** (Choprateja S. et al., [-24.7k★,-] {+24.7k stars,+} Apache-2.0). headroom attacks the same lossy-prose-transport problem from the opposite direction (Sections 2.2, 16): rather than eliminating the prose at typed edges, it keeps the prose and makes it smaller and recoverable via Compress-Cache-Retrieve. The two are complementary — BROCA's typed edge for the [-load-bearing fields,-] {+fields that matter,+} headroom's CCR for the steps gradual typing deliberately leaves as prose. headroom is also the methodological foil for this revision: its reproducible GSM8K/TruthfulQA/SQuAD/BFCL eval suite is the bar BROCA has not yet met for its own value-model efficiency claim (Section 16.1)."
  },
  {
   "section": "15. Related Work",
   "old": "**Engineering-discipline packaging — addyosmani/agent-skills** (Addy Osmani, 56.8k★, MIT). A single plugin bundling engineering skills, subagent personas, command definitions, and hooks. Its contribution to BROCA is conventional, not architectural: the per-skill **\"When NOT to use\"** and **\"Loading Constraints\"** sections (Section 11.1) are precisely the declared-anti-trigger and load-site discipline BROCA's matcher already supports as an anti-trigger field, and adopting them as part of `validateRecipeSpec` imports a convention rather than reinventing it.",
   "new": "**Engineering-discipline packaging — addyosmani/agent-skills** (Addy Osmani, 56.8k stars, MIT). A single plugin bundling engineering skills, subagent personas, command definitions, and hooks. Its contribution to BROCA is conventional, not architectural: the per-skill **\"When NOT to use\"** and **\"Loading Constraints\"** sections (Section 11.1) are precisely the declared-anti-trigger and load-site discipline BROCA's matcher already supports as an anti-trigger field, and adopting them as part of `validateRecipeSpec` imports a convention rather than reinventing it.",
   "marked": "**Engineering-discipline packaging — addyosmani/agent-skills** (Addy Osmani, [-56.8k★,-] {+56.8k stars,+} MIT). A single plugin bundling engineering skills, subagent personas, command definitions, and hooks. Its contribution to BROCA is conventional, not architectural: the per-skill **\"When NOT to use\"** and **\"Loading Constraints\"** sections (Section 11.1) are precisely the declared-anti-trigger and load-site discipline BROCA's matcher already supports as an anti-trigger field, and adopting them as part of `validateRecipeSpec` imports a convention rather than reinventing it."
  },
  {
   "section": "15. Related Work",
   "old": "**A marketing-skills corpus — coreyhaines31/marketingskills** (Corey Haines, 33k★, MIT). A 44-skill, 51-CLI corpus whose per-skill user-phrase triggers and `evals/evals.json` acceptance sets are the second source of the authoring-standard tightening in Section 11.1. Its integration into our substrate (a vendored clone behind a single router skill plus a BROCA `marketing` recipe category) is an instance of recipes-as-vocabulary at corpus scale.",
   "new": "**A marketing-skills corpus — coreyhaines31/marketingskills** (Corey Haines, 33k stars, MIT). A 44-skill, 51-CLI corpus whose per-skill user-phrase triggers and `evals/evals.json` acceptance sets are the second source of the authoring-standard tightening in Section 11.1. Its integration into our substrate (a vendored clone behind a single router skill plus a BROCA `marketing` recipe category) is an instance of recipes-as-vocabulary at corpus scale.",
   "marked": "**A marketing-skills corpus — coreyhaines31/marketingskills** (Corey Haines, [-33k★,-] {+33k stars,+} MIT). A 44-skill, 51-CLI corpus whose per-skill user-phrase triggers and `evals/evals.json` acceptance sets are the second source of the authoring-standard tightening in Section 11.1. Its integration into our substrate (a vendored clone behind a single router skill plus a BROCA `marketing` recipe category) is an instance of recipes-as-vocabulary at corpus scale."
  }
 ]
}
