Pull a work cycle's durable lessons into the docs the next pass starts from.
Goal
re0-memo pulls durable lessons out of a work cycle without defending what the cycle built. A cycle can run and pass its tests while still building the wrong thing, so the tests are not the verdict. Record three things, each with local evidence: what worked, what misled the build, and which gate the next pass must clear. The output is neither a changelog nor a therapy note.
Use it when an artifact is done, failed, disappointing, or ambiguous enough that the next agent needs the cycle's lessons more than its momentum: after a build, a QA pass, a demo, a user complaint or correction, a request the user had to repeat, a user asking why something was not done, a choice the user had to make that a written default should have made, a lesson whose own fix caused a new failure, or an abandoned attempt. Run it in the turn the sign arrives, before the interrupted task resumes and buries it: most of these signs mean the user supplied what the work should have supplied itself.
A restart from v0 always runs it first. The memo is the restart's map: how far the old cycle actually stands from its objective, what earned reuse and what only looked productive, and the gates the next pass must clear. It supplies that evidence and decides nothing about the restart; which layers restart and which carry forward is the restart's own call.
A lesson fails in two ways besides being wrong. It stays too narrow, so the same failure returns through another tool, surface or actor and nothing fires; or its fix is itself a member of the failure's class, so landing it causes the next failure. The workflow climbs each lesson to the widest class that still holds, searches that class's siblings, and tries to break each prescription before it lands.
It calls four other skills: detool to strip tool, product and person names from a lesson, crossthink when every drafted prescription takes one route, elon to question the drafted prescriptions, and scopechk to place each lesson. It carries two moves of user-invoked skills inline, since no skill can call those: the larger-scale re-read of one decision from macrothink (input: the decision and its boundary; output: what changes once the boundary moves), used to find siblings and the actor rung, and the falsifying experiment of hate (input: a plan; output: its load-bearing assumption and the cheapest experiment that would break it), used on each prescription. A step's fallback for a missing skill applies too when the host has no Skill tool, and the memo records each fallback that ran as manual: <skill>. Its field-coverage check follows the failure taxonomies reference. Its output feeds the next cycle, read by a fresh agent who never saw this one.
Workflow
Run the steps in order. A run started by one correction or complaint that arrived mid-task, with nothing finished, failed or abandoned and no restart ahead, may skip steps 2 and 3, writing each skip and its reason in the memo; steps 7, 10, 11 and 13 say when they apply, and steps 5, 6 and 12 always run, since they keep one complaint from landing as its own transcript.
- Read the original objective, the final artifact, QA evidence, user complaints, and any local planning notes. Then, in any run but a mid-task one, list every system where the cycle recorded a failure or a decision outside its files (its tracker's issues, its pull requests with their review threads, its CI runs, incident notes, the user's rulings) and read what each holds from the cycle, since a failure written only there is evidence the files never show; a ledger of which of those items a new line must carry, one row each, is a restart's work, not this memo's. When the objective was never written down, only asked for in conversation, reconstruct it from that ask, quote the ask, and mark it reconstructed wherever the memo measures against it. Then open the cycle's local docs, a memo and a plan, where every later step writes: when the cycle already has them (a retro or plan file a planning step opened for it), extend those in place; otherwise create them beside the cycle's main artifact, or in the project's local notes folder when the cycle left no artifact. Memo and plan name the docs' roles; the files take the project's convention for local notes or, when it has none, a name its ignore rules already keep out of what it ships, and no file, heading or link in the project carries this skill's name,
re0-memo.
- Measure where the work stands against its objective from the records it left (outcomes, counts, money, what users actually received), never from the plan or the commit log. Place it on a ladder of capability levels when its field has one, such as driving automation's levels for an autonomous agent, and name both the level it was built for and the level it measures at; a cycle that did worse than doing the work by hand measures below the bottom, which the memo says only when the records show the hand result; otherwise it writes the comparison as unmeasured.
- Sort what earned reuse (contracts, schemas, tests, services, vocabulary, examples) apart from what only looked productive (UI, panels, scaffolds, abstractions), each with the record that shows it.
- Cluster the specific complaints into the pattern they share; many complaints across many items usually trace to one root gap, and a single complaint is a cluster of one. Write nothing yet.
- Climb the generalization ladder from each cluster, one line per rung: the lesson stated at that rung, whether the cycle's records and the repository hold a counterexample, and that counterexample when they do. A counterexample is a case inside the rung's reach where the lesson stated there is false, or where its fix would have misled the work. The rungs, from the bottom: the case as it happened; its siblings inside the same tool, platform or surface; the mechanism with every tool, product and person name removed, for which you call the Skill tool with "detool" on the rung's sentence, or remove the names yourself when it is not installed; the actor, when the lesson turns on someone the work was handed to or relied on (its receiver), generalized to a role that holds or lacks a capability, a permission and a duty whoever fills it, so the lesson names the role and never lists kinds of receiver, while a lesson with no receiver passes this rung unchanged; and the field's known failure class, which step 7 checks against saved sources. The lesson is the highest rung that holds with no counterexample, and the counterexample one rung above it is written beside the lesson as the class's boundary. When the top rung holds, write its boundary as
none observed; never invent a counterexample. A rung so general that it no longer names something the next agent can check is past the top.
- Search the class's siblings by re-reading the decision that failed at a larger scale, its boundary moved out to everything else that decision governs: across the repository, the documents that hold its rules, and the other actors and surfaces the work touches, list every place the class can strike, each with its path and whether it already failed, is one step from failing, or is covered. A rule that already owns the class but whose wording reaches only part of it (one kind of actor, one surface, one tool) is a sibling too, and the reason it did not fire.
- Check the memo's classes against the field when it holds three or more lessons, when a class recurs after an earlier lesson on it, or when a lesson reached the field rung of step 5: follow the failure taxonomies reference to fetch at least one authoritative failure taxonomy of the field, align its classes with the memo's, and rule on each class it names that the memo lacks and each memo class it does not name. A class the sources name that the cycle's records show no case of is written as a field candidate, never as a lesson. Otherwise skip the check and write the skip and its reason in the memo.
- Name every failure as an anti-pattern, a concrete failure mode, never as a mood.
- For each class, find the rule or gate that already owns it, using the siblings from step 6. If one exists, it failed to fire, so the prescription is the missing trigger, check, or step, or the widened scope of a rule written for part of the class, never a second rule that would drift from the first.
- Turn repeated or high-impact failures into quality gates for the next pass. A gate is a prescription, so it goes through steps 11 and 12 like any other.
- When every prescription drafted for a class takes one route (each hands the work to the same actor, adds the same kind of check, or waits on the same approval), call the Skill tool with "crossthink" on the class and those prescriptions, and keep the mechanisms it adds, each with its breaks-where, beside the drafts. When
crossthink is not installed, list the drafts' own options and map working mechanisms from at least two distant domains yourself, each with where it breaks. Skip it when the drafts already take two or more routes or the prescription only adds a missing trigger to a rule that exists, and write the skip and its reason in the memo.
- Try to break each prescription before it lands. First call the Skill tool with "elon" on the drafted prescriptions, each a requirement whose source is its lesson's evidence, and keep its table in the memo. Drop the drafts it proposes to remove without waiting at its approval stop, since a prescription not yet landed has no owner but this run; what it proposes for a rule that already exists is sorted by step 16 like any other edit. When
elon is not installed, ask of each draft what it buys and whether the lesson holds without it, and drop the ones that buy nothing. Then, for each surviving prescription, write the one assumption it rests on about its reader, receiver or trigger (that the receiver can do what it is asked, that the trigger fires, that the reader opens the owner) and the cheapest experiment that would break it: one call, one read of a permission, one counter-case put through it. Run the experiment when it is cheap and reversible, and put the prescription through the siblings of step 6 and through one case where it must not fire. A prescription the experiment breaks, or one that is itself a member of its lesson's class, is redrafted and put through its experiment again. An experiment that cannot run marks the prescription unverified in the memo, and it lands with that experiment written into the plan as the next cycle's first check.
- Turn vague user direction into architecture vocabulary a fresh agent can work with.
- Complete the memo and the plan opened at step 1 in the project's own words, since its team reads them as well as the next agent. The memo leads with the measured standing and the sort of what earned reuse from what only looked productive, then gives each lesson its class, evidence, siblings, prescription with the options and the falsification record (assumption, experiment, result), and owner; the field check's table and its field candidates follow in their own section. A closing section holds how the memo was made: each lesson's ladder, the
elon table, every skip reason and every manual: <skill> record. Above that section the memo names none of the skills this run called and none of its workflow's terms (rung, ladder, step numbers). The plan holds the next cycle's contracts, gates, and vocabulary.
- Pick the owner of each lesson by who must read it to avoid the failure, then call the Skill tool with "scopechk" on the lesson and that owner, so the pick is checked against the owner's own written scope: its stated purpose, its readers and its boundaries. Show its verdict beside the lesson. When
scopechk is not installed, check the pick against that scope yourself. A rule every project of one author needs lives in that author's shared guide, a fact a teammate or another machine needs lives in the repository they clone, and a procedure lives in the skill or tool that carries it out. When that scope excludes the lesson, pick another place the same reader opens whose scope includes it; a rule placed where its reader never looks has not landed.
- Sort every edit the lessons call for by what this run may land. A missing trigger, check or step added to a rule, a rule widened to the rest of its class, and a new rule where none owns the class land in this turn: the sign that started the run is the user's approval for them, so neither the approval stop
elon ends at nor the one scopechk ends at holds them back. Removing a rule and changing what a rule requires of the cases it already covers stay proposals, and so does any edit, a widening included, to a passage the user or a reviewer signed off; each is written in the memo with its owner and its exact edit and put to the user. A run no sign from the user started (a restart the agent planned, a pass no message asked for) holds no approval, so every edit it calls for stays a proposal until the user answers.
- Land each edit step 16 lets land in its owner, and leave the memo's entry as the evidence pointing to it, so the rule lives in one place. Rewrite that passage as though the lesson had always been there: a new idea gets its own step or sentence, and the neighboring sentence keeps its wording instead of gaining an appended clause. Before adding a new rule, read the whole owner for a rule already on the same class under any wording or number, and widen that rule instead.
- Check that an agent starting from scratch could avoid the same failure using those docs alone, and that the failure would be caught had it come through a sibling of step 6 instead.
Rules
- Never defend the artifact. If it missed the product, say what missed.
- No changelog: file lists and effort summaries are not lessons.
- Never transcribe one specific complaint as a lesson. Fixing only the reported case leaves the same failure elsewhere for a human to find, so generalize each to a pattern that catches its whole class; the reporter's exact words are evidence, never the gate.
- A lesson's sentence names no tool, product or person; those names belong to its evidence, where they record what happened.
- Never land a prescription without its falsification record: one lands only with its assumption and experiment written, and either the experiment's result or, when the experiment could not run, its unverified mark. A prescription that asks a receiver for what it cannot do, or adds a rule its own trigger will not reach, repeats the failure it was written to stop.
- Preserve the negative corpus. Failed paths are training data, so cut means archive, never delete; a dropped or broken prescription stays in the memo with the reason.
- Prefer hard gates to advice.
- Cite evidence from the cycle: the objective, file facts, QA output, screenshots, transcripts, diffs, or user feedback.
- Write as done only what ran in this pass or what the records show was done, in the memo, the plan and every owner a lesson lands in. An option the cycle only asked someone for, only proposed or only scheduled is not done, and work dated after today is written as planned.
- The memo never stands in for a change the user asked for. When the user asked for the artifact itself to change, make that change in this turn too, marked unverified when its check cannot run.
- Something the next agent cannot act on is not a lesson yet.
- Provenance stays local. The memo and the plan hold it; shipped artifacts do not narrate their scars.
Verification
Before finishing, confirm:
- Every lesson traces to evidence observed in the cycle, and nothing in the memo, the plan or an owner reads as done that neither ran in this pass nor shows in the records.
- The memo states where the work measures against its objective, from records, beside where it was built to be, with a reconstructed objective marked as such; or it carries a mid-task run's skip of step 2 and the reason.
- Every anti-pattern names a concrete failure mode, and every repeated or high-impact one names the gate that catches it.
- Every lesson covers a class, with the reported specifics beneath it as evidence: its ladder is written, it stands at the highest rung with no counterexample, and its sentence holds zero tool, product or person names outside its evidence.
- Every lesson lists its siblings with their paths, and a rule written for part of the class was widened, or its widening proposed, rather than joined by a second rule anywhere in its owner.
- Every prescription carries its
elon row or its manual: elon record, its assumption, and its experiment with that experiment's result or an unverified mark. The experiment covered the siblings of step 6 and one case where the prescription must not fire, and no prescription is a member of its own lesson's class.
- The
crossthink call ran or carries a skip reason, and every fallback that ran for a missing skill is recorded as manual: <skill>.
- The field check ran or carries a skip reason, a check that could fetch nothing names each source it tried as missing, every class it added or merged cites a source saved as text outside what the project ships, and a class the cycle's records hold no case of stays a field candidate.
- Every owner was picked by the reader who needs the lesson and fits its own written scope, and reads as its clean current version, with no lesson bolted onto a neighboring sentence.
- Every edit that landed is one step 16 lets this run land, and every other edit stands in the memo as a proposal put to the user.
- Above its closing section the memo reads in the project's own words, and no file, heading or link in the project carries this skill's name.
- Any change the user asked for in the artifact itself was made, marked unverified when its check could not run.
- A fresh agent can tell what to test first, and, when step 3 ran, what earned reuse and what only looked productive, without reading the whole old session.
Report the lessons written with the rung each reached, the gates added, the prescriptions dropped or broken before landing, each owner a lesson landed in, and each proposal left for the user.