ReadPrintedHistoryCompareGraphs

v6.4 → v6.5

What changed from v6.4 to v6.5

From v6.4 (14 Jun) to v6.5 (19 Jun): 10,582 words to 11,588 words, 1,085 words in new or rewritten paragraphs and 79 taken out, 13 paragraphs changed.

Step-level struggle detection and a fuller skill library

The procedural section goes deeper. A recipe usually fails at one step, not everywhere, so a new Section 6.5 reads the archive of past runs, finds the steps that fail more than the rest of the recipe and works on those. The skill library is described as built: a skill is a typed record called from a recipe, found by meaning, and composed from existing skills when no recipe fits.

  • New Section 6.5, per-step struggle sharpening.
  • How a recipe run is tagged so its outcome can be credited to it.
  • An open gap is stated: the nightly loop does not yet mint new skills by itself.
v6.4 · 14 June 2026v6.5 · 19 June 2026

··· 7 unchanged paragraphs folded ···

v6.4 · Contributions1. **The Sleep Consolidation framework**: a formal architecture for scheduled, autonomous prompt self-improvement through failure-driven mutation, abstraction-level encoding, and cross-task propagation. 2. **Production evidence over 30 days**: 14 documented prompt mutations, 5 error class extinctions, 5 cross-cron transfer events, and token-cost analysis from a real personal assistant deployment. 3. **The fractal depth calibration mechanism**: a prompt-encoded heuristic for allocating metacognitive effort that is itself subject to refinement -- a self-similar cognitive policy. 4. **Procedural-memory extensions**: a recipe-evolution loop with empirical fitness and a never-delete archive, a failure-count strategy-switch trigger, and a Voyager-style skill library -- all driven by the same nightly consolidation step (Section 6). 5. **Nine design principles** for building self-improving prompt ecosystems, derived from operational failures, plus a mutation taxonomy and honest negative results. 6. **Algorithm 1**: a reproducible nightly reflection loop with explicit inputs, outputs, and decision gates.
v6.5 · Contributions1. **The Sleep Consolidation framework**: a formal architecture for scheduled, autonomous prompt self-improvement through failure-driven mutation, abstraction-level encoding, and cross-task propagation. 2. **Production evidence over 30 days**: 14 documented prompt mutations, 5 error class extinctions, 5 cross-cron transfer events, and token-cost analysis from a real personal assistant deployment. 3. **The fractal depth calibration mechanism**: a prompt-encoded heuristic for allocating metacognitive effort that is itself subject to refinement -- a self-similar cognitive policy. 4. **Procedural-memory extensions**: a recipe-evolution loop with empirical fitness and a never-delete archive, a failure-count strategy-switch trigger, a Voyager-style skill library with inline invocation and compose-from-library, and a per-step struggle-sharpening signal read off the live plan archive -- all driven by the same nightly consolidation step (Section 6). 5. **Nine design principles** for building self-improving prompt ecosystems, derived from operational failures, plus a mutation taxonomy and honest negative results. 6. **Algorithm 1**: a reproducible nightly reflection loop with explicit inputs, outputs, and decision gates.

··· 122 unchanged paragraphs folded ···

v6.4 · 6. From Declarative to Procedural: Evolving Recipes, Strategies, and SkillsSections 3--5 describe consolidation of *declarative* memory -- rules and facts. The same nightly loop has since been extended to *procedural* memory: the agent's own recipes, the strategies it switches between, and the reusable skills it distills. This is the cerebellum half of the analogy made literal -- offline practice refining the *procedures* themselves, not just the rules about them. All three extensions share one shape: **observe the day's episodes, distil a durable ranked artifact, feed it back into tomorrow's behavior.** Each is an opt-in step in the consolidation pipeline, off by default, so the loop's baseline behavior is unchanged when the extension is absent.
v6.5 · 6. From Declarative to Procedural: Evolving Recipes, Strategies, and SkillsSections 3--5 describe consolidation of *declarative* memory -- rules and facts. The same nightly loop has since been extended to *procedural* memory: the agent's own recipes, the strategies it switches between, and the reusable skills it distills. This is the cerebellum half of the analogy made literal -- offline practice refining the *procedures* themselves, not just the rules about them. All of these extensions share one shape: **observe the day's episodes, distil a durable ranked artifact, feed it back into tomorrow's behavior.** Each is an opt-in step in the consolidation pipeline, off by default, so the loop's baseline behavior is unchanged when the extension is absent. The three primary extensions operate at the recipe, strategy, and skill level; a finer per-step sharpening signal (Section 6.5) practices the single step of a recipe that keeps failing.

··· 5 unchanged paragraphs folded ···

not in v6.4
v6.5 · 6.1 Recipe Evolution: Empirical Fitness and a Never-Delete ArchiveAttribution is worth describing as a closed cycle because it is the seam where an offline loop most easily goes inert. The tag needs a *producer* as well as a consumer: at dispatch time a single `recipe:<owner/slug>` marker is appended into the run's episode event store -- a `turnId:0` system event shaped so it can neither flip the episode's inferred outcome (which keys off the *last* event) nor fragment the run into multiple episodes, and best-effort by design so a failed append never breaks the run it annotates. The nightly pass reads those tagged episodes, builds a fitness record keyed by the full `owner/slug`, and the *same* key is looked up at execution time to modulate runtime effort: a low-fitness recipe is treated as uncertain and given more re-dispatch and recovery headroom, a high-fitness one less. So measured fitness is not only an offline selection signal for ranking variants; it also shapes how much budget tomorrow's run receives. The load-bearing correctness property is the one-key round-trip -- the `owner/slug` produced must equal the `owner/slug` the consumer scores under -- because keying a lookup by the wrong identifier (slug-only against a full `owner/slug`) is exactly the silent mis-credit attribution is meant to prevent.

··· 10 unchanged paragraphs folded ···

v6.4 · 6.3 A Skill Library, Voyager-StyleThree guards keep the library from rotting. A strict skill-worthiness gate -- completed plus a tool call plus a key decision -- refuses to learn skills from trivial chat or abandoned attempts, so the library does not fill with non-general entries. A Jaccard-similarity dedup at **0.8** over the skill body merges near-identical skills rather than spawning duplicates; when a same-named skill recurs it becomes a new version, and the source-episode ids are merged. And success metrics decay on recent failure so a skill encoding an obsolete procedure stops ranking on past glory and becomes reachable for deprecation. Deprecation marks but never deletes -- the body is still readable, preserving the never-delete invariant the rest of the system relies on.
v6.5 · 6.3 A Skill Library, Voyager-StyleThree guards keep the library from rotting. A strict skill-worthiness gate -- completed plus a tool call plus a multi-step decision -- refuses to learn skills from trivial chat or abandoned attempts, so the library does not fill with non-general entries. A Jaccard-similarity dedup at **0.8** over the skill body merges near-identical skills rather than spawning duplicates; when a same-named skill recurs it becomes a new version, and the source-episode ids are merged. And success metrics decay on recent failure so a skill encoding an obsolete procedure stops ranking on past glory and becomes reachable for deprecation. Deprecation marks but never deletes -- the body is still readable, preserving the never-delete invariant the rest of the system relies on.
v6.4 · 6.3 A Skill Library, Voyager-StyleThe retrieval edit is intentionally minimal and flag-guarded: with the skill rider off (the default) retrieval output is byte-identical to before; with it on, retrieved context gains a "relevant skills" rider. The honest open question is whether extracted skills are *executable code* (true Voyager) or *structured procedures* consumed by the recipe runner. In this deployment recipes are already markdown procedures, so "skill-as-code" most naturally means "skill-as-recipe" -- which raises the question of whether this extension eventually collapses into the recipe archive of 6.1 or stays a distinct library. That is a human design call, not one the system should make for itself.
removed in v6.5
not in v6.4
v6.5 · 6.3 A Skill Library, Voyager-StyleThe "skill-as-code versus skill-as-procedure" question this design raises has a concrete answer in this deployment: a skill is a typed record -- a name, description, prerequisites, ordered steps, and optional input/output schemas, plus a flat `lineage` field recording whether it came from composition, episode extraction, or promotion. It is invoked *inline* from a recipe through an `invoke skill:<id>` step directive that sits alongside the existing sub-recipe and loop directives; the directive injects the skill's procedure into the task and fails closed if the named skill is absent or deprecated. A small seeded standard library of four typed primitives -- summarize-text, extract-json-field, web-search-and-cite, and classify-text -- ships as the bootstrap population so the library is never empty on a cold start. The deposit path is fail-closed in the same spirit: a malformed skill (one needing a non-empty name and at least one step) is rejected, same-name deposits version-bump rather than clobber, curated seeds are guarded against silent overwrite, and a `promote` flag applies a *live-margin* fitness bar -- a candidate's measured success rate must clear the library's current success-rate mean plus one standard deviation (never a frozen N; an empty library is permissive). This is the "rank by empirical fitness, never delete" discipline made executable, governed by the same salience-not-frozen-bounds rule the rest of the loop follows.
not in v6.4
v6.5 · 6.3 A Skill Library, Voyager-StyleRetrieval is genuinely semantic rather than string overlap: skill search resolves the same in-process embedding function the consolidation pass uses (one embed provider, not a parallel one), does a batched-embed plus cosine ranking, and falls back to keyword matching only when no provider is present. When a new task finds no matching recipe, the system tries *compose-from-library* first -- a deterministic step that turns a skill search into a runnable recipe, one `invoke skill:` step per hit in rank order, authored as a non-curated "on-the-fly" recipe with its lineage stamped into the frontmatter so the authorship guard permits it without clobbering any hand-written recipe. Competence compounds instead of being re-derived, which is the Voyager promise this section invoked.
not in v6.4
v6.5 · 6.3 A Skill Library, Voyager-StyleOne honest gap remains at the consolidation seam. Skill *deposit, retrieval, and invocation* are live, but the path by which the *nightly loop itself* mints new skills from the day's episodes is not yet wired: episode detection emits an empty key-decision list, so the skill-worthiness gate -- correct in itself -- is starved of input and the live library grows only from seeding and explicit deposits, not organically overnight. Closing that requires deriving key decisions from each episode's own tool-call trace (two or more distinct tool actions marking a multi-step procedure worth extracting; a lone one-shot call declined). Until that producer is added, the flywheel turns on demand but not in its sleep -- the same producer-seam lesson that the recipe-fitness loop already learned.

··· 3 unchanged paragraphs folded ···

not in v6.4
v6.5 · 6.5 Per-Step Struggle Sharpening### 6.5 Per-Step Struggle Sharpening
not in v6.4
v6.5 · 6.5 Per-Step Struggle SharpeningRecipe fitness (Section 6.1) is *coarse*: it scores a whole recipe pass/fail and proposes whole-recipe mutations. But a recipe usually does not fail uniformly -- it fails at one step. A finer signal asks not "is this recipe weak?" but "which bar of the piece does it keep fumbling?" -- and practices that bar, not the whole piece. This is closer to what motor consolidation actually does, and it is the cerebellum analogy made one level sharper.
not in v6.4
v6.5 · 6.5 Per-Step Struggle SharpeningThe mechanism reads a source the coarse fitness store does not: the *live plan archive*. Every recipe run is archived as a plan with a per-step `status` and, on failure, a classified-error envelope. Across a recipe's archived runs, the reader aggregates each step's failure rate and the *modal* classified-error kind for that step, then flags steps that fail noticeably worse than the recipe's own baseline. For each flagged step it proposes a new mutation operator, `rewrite_step_text` -- sharpen the prose of that single struggling step, one step body changed, a patch-version bump -- applied through the same snapshot-reversible, authorship-guarded, validate-or-skip recipe-write path the other extensions use. It re-measures by diffing the step's failure rate across a later archive pass: a true before/after on the *step*, not a self-confirming success count.
not in v6.4
v6.5 · 6.5 Per-Step Struggle SharpeningTwo properties keep it disciplined. First, it routes around an inert store on purpose: it reads execution traces the system already keeps for free, so it produces a signal even when the recipe-fitness store is empty. With both signals present the loop now has two complementary fitness views -- coarse recipe-level and fine per-step -- not one redundant pair. Second, its thresholds are derived from the live sample, not frozen: the minimum-failure floor before a step is worth sharpening grows with the square root of the step's run count, and the struggle threshold tracks 1.5x the recipe's own mean step-failure rate, clamped. This is the same no-frozen-constants governance the rest of the consolidation loop follows, applied to the procedural side.
not in v6.4
v6.5 · 6.5 Per-Step Struggle SharpeningIts default posture matches the other extensions: it *proposes only*. Application is gated behind an explicit auto-apply flag; only a step rewrite that is reversible, well-evidenced, and dominated by a recoverable error kind is flagged auto-promotable, inheriting the human-in-the-loop default of Principle 7. A nightly lane dispatches the optimize pass for struggling recipes, and the absence of any archive leaves the consolidation output byte-identical -- the same opt-in, safe-when-absent discipline every Section 6 extension claims.

··· 107 unchanged paragraphs folded ···

Changed paragraphs in the same form, for scripts: JSON · Markdown