autometta-learning-log
Skill0 starsChanged 6 months agoMITView on GitHub
Where and how an Autometta orchestration chat records what the harness should learn, at the moment it is learnt: halts, failed attempts, dead or silent agents, workarounds, late or missing signals, checks that lied, and skill guidance that was missing or wrong, each as one line in the proposals ledger (memory/proposals.jsonl) for the weekly self-improvement review. Use whenever an Autometta run, card, requeue or escalation shows the harness itself costing time, attempts or tokens; when the operator says "log this", "log an issue", "note it for the weekly review", "record a proposal", "where do I log this", "bank the lesson"; and before any Autometta orchestration chat hands back or ends. Referenced by yolo, autometta-escalations and the other autometta skills. Not for deciding proposals (autometta-weekly-review) or for changing the harness mid-run.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-orchestratorSkill
- autometta-card-reviewSkill
- autometta-escalationsSkill
- autometta-oracleSkill
- autometta-requeueSkill
- autometta-run-designSkill
- autometta-setupSkill
- autometta-weekly-reviewSkill
- phat-controllerSkill
- yoloSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 29
Write the line when the diagnosis is in hand, before the next action.
- Distinctive: line 81
Leave out a plain implementation defect in the worker's diff, a quota hold or pause that resolved itself as expected, a one-off transient …
- Distinctive: line 122
No secrets, tokens, customer figures or home paths.
- Very specific: line 140
Look before adding: autometta proposals list prints every open item's title, and autometta proposals list --status all | grep -i '<word>' …
- Very specific: line 174
Never git add -A or git commit -a there.
- Very specific: line 188
Only autometta proposals writes the ledger.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Recording what the harness should learn
The weekly review (autometta-weekly-review) can only tune out what someone
wrote down. A halt cleared, a workaround applied or a failure repaired in the
moment and never recorded comes back next week. This skill says where each
kind of observation goes and how to write it, for Claude and Codex chats
alike, in the Autometta checkout or any subscriber repo. The contract behind
it is docs/learning-log.md.
Record as you go
Write the line when the diagnosis is in hand, before the next action. Not at the end: a chat that saves its lessons for the hand-back loses them to a session limit, a compaction or the next wake-up. It costs one shell command. Recording never replaces or delays the repair the recovery policy allows; write the line, then carry on.
Where each thing goes
| You saw | It goes to | How |
| A harness defect, gap or recurring friction | memory/proposals.jsonl in the Autometta checkout | autometta proposals add, below |
A HARNESS: line in a verifier artefact | the same ledger, citing the artefact | the same command |
| A lesson about attending a run unattended | the same ledger, title prefixed yolo:, target skills/yolo/SKILL.md | the same command |
| This episode's decision: repair, requeue, amendment | the card's Recovery log and the escalation's ack note | autometta-escalations, autometta-requeue |
| A decision an unattended chat took or parked | the run log under $AUTOMETTA_HOME/yolo/ | yolo |
| The story of a bad run, when it deserves the paragraph | docs/incidents/<date>-<repo>-run-lessons.md, with a table of ledger ids | by hand |
| A defect in the subscriber's own code, tests or card | that subscriber: a re-brief, a card or its own backlog | never the Autometta ledger |
| A fact about landed work | memory/facts.jsonl | the tick only, never by hand |
| A design decision or cross-family note that asks for no change | memory/<type>-<slug>.md and memory/INDEX.md (memory/adopters/<repo>/ for an adopter) | memory/README.md |
The ledger is the only list the review decides from. A lesson written only
in an incident file, a yolo log, a handoff or a harness-private memory
directory is never decided. Incident files and yolo logs are evidence; the
ledger line is the item. The ledger is private-tier (held off the publish
head); docs/incidents/ is published, so an incident file carries no private
data.
What earns a line
One proposal per cause, when any of these happened:
- A halt. Any
halt_reason, unless a cap stopped the run exactly where the operator agreed it should. Say what cleared it and what it cost. A halt that behaved as designed but stopped work the operator wanted (a cap below the queued cards' spend, a blind hour when the reset time was knowable, a failure cap tripped by one shared cause) is a tuning item of kindpolicy. - A failed attempt whose cause was not the worker's code: the card template, card review, the oracle, the verifier prompt, a gate, a fixture or the tick.
- A dead or silent agent beyond the tick's one mechanical retry, or a retry that should never have been needed.
- A workaround. You or an agent stepped round the harness to get on: a fallback path, a step run by hand that the tick should own, a manual state edit, an override variable.
- A signal that came late, twice or never: a notice, a wake-up, an escalation.
- A check that lied. Lint passed what
add-stage.shrefused, a smoke printed PASS over an error, a gate checked less than its doc says. - A skill that let you down. Guidance missing, wrong or contradicting another skill; a decision you had to reason out from nothing.
- A recurrence of something already in the ledger (see Duplicates).
Leave out a plain implementation defect in the worker's diff, a quota hold or
pause that resolved itself as expected, a one-off transient the preflight
caught, and anything the subscriber owns. When you cannot tell whether the
harness is at fault, record it and say so in --change: the review rejects a
weak line cheaply, and cannot decide one that was never written.
How to write it
autometta proposals add --agent "$(agent-whoami --model '<model id>')" \
--title "<the change, not the symptom>" \
--kind <script|skill|template|schema|doc|policy> \
--target <autometta path>[,<path>] \
--change "<what happened and what it cost; what to change; why>" \
--evidence <ref>[,<ref>] \
[--repo <subscriber basename>] [--stage <stage-id>] [--run <run-id>]- Identity. Claude:
agent-whoami --model '<model id from your preamble>', quoted. Codex:agent-whoamiwith no argument. A non-zero exit means the helper does not know your model: stop and tell the operator, never type an identity by hand. Pass it inline as above; an exported variable does not survive between tool calls in every harness. - Which ledger.
autometta proposalsruns the checkout named byautometta_root:in$AUTOMETTA_HOME/config.yaml; inside the checkout,scripts/proposals.shis the same thing. Without that line the Homebrew copy writes into its ownlibexec, which the next upgrade deletes. Check it once per session:grep '^autometta_root:' "${AUTOMETTA_HOME:-$HOME/.autometta}/config.yaml". - title: the change in under about 80 characters ("Pause a limit refusal
to the window reset, not a blind hour"), not the symptom ("worker paused
for an hour"). The
yolo:prefix is only for lessons about attending a run unattended. - kind:
policyfor caps, gates, allowances and anything that widens what a chat may do alone; those need the operator's quoted yes at review. - target: repo-relative paths in the Autometta checkout, never absolute
and never the subscriber's files. If you do not know the fix, name the
surface you would open first and say so in
--change. - change: lead with what happened and its cost (time lost, attempts used, tokens spent, a run stopped), then the change and why. A reviewer who never saw the run must be able to decide from this and the evidence. No secrets, tokens, customer figures or home paths.
- evidence: what a reviewer can open: a stage id, an escalation id, a
yolo log id with its entry (
20261116T1955Z-contract-crawler#4),state/verifiers/<stage>.json#additional_findings, an archived attempt understate/uat/<stage>/attempt-<n>/, amemory/facts.jsonlsubject, a commit SHA, a path with an anchor. A requeue purges the live envelope and verifier artefact, so record after the attempt is archived and before the requeue, citing both the live artefact (which marks itsHARNESS:lines as lifted) and the archive (which survives the purge). - repo, stage, run:
--repowhenever the observation came from a subscriber;--stagewhen one stage shows it;--run run-YYYYMMDD-HHMMSSwhen you know it.
The command prints the new id. Quote it wherever the lesson is mentioned: the yolo log entry, the ack note, the incident table, the hand-back.
Duplicates and recurrence
Look before adding: autometta proposals list prints every open item's
title, and autometta proposals list --status all | grep -i '<word>' finds
closed ones. The ledger has no event that adds evidence to an existing item,
so:
- Same cause, still open: record it again. Repeat the change as the
title and open
--changewithRecurrence of P-YYYYMMDD-xxxx:, giving only the new occurrence and its cost. The review merges it into the survivor and counts it; a recurring item is the first one it recommends. - Same cause, already landed or rejected: record it again and say so. A fix that did not hold, or a rejection the new evidence overturns, is what the review most needs to see.
- The same thing twice in one session: one line, both pieces of evidence.
Before the chat ends
At a yolo hand-back, when an escalation batch is done, when a design or card session closes, or when the operator says they are leaving:
- Sweep. What cost an attempt, a halt, a workaround, or a question no skill answered? Record whatever is not yet in the ledger.
- Lift.
autometta proposals unliftedlists uncitedHARNESS:lines across the fleet. Lift those from stages you worked; leave the rest to the review. - Lint.
autometta proposals lintmust print PASS. Commit, path-limited, on
devonly. In the Autometta checkout, and only whengit -C <checkout> branch --show-currentprintsdev:git -C <checkout> commit --author="$(agent-whoami --model '<model id>')" \ -m "memory(proposals): <ids> <what they are about>" -- memory/proposals.jsonlNever
git add -Aorgit commit -athere; the tick may be landing in the same checkout. Lines other chats left uncommitted go in the same commit, and each keeps its ownagentfield; say so in the message. On another branch, or if the commit is refused, leave the lines and say so in the hand-back: the weekly review commits what it finds.- Report the ids you recorded in the hand-back or your last message.
Boundaries
- A proposal is a note to the weekly review, never authority. Recording one
does not license a harness edit, except a repair the recovery policy
already allows for this stage (
autometta-escalations). When the operator asks for a change directly in the chat, recordapprovewith their words, make it, thenlandit with the commit. - Only
autometta proposalswrites the ledger. Never edit, reorder or delete a line; the next legal event corrects a wrong one. - The tick, the workers and the verifiers never write it. A verifier writes
HARNESS:lines; an orchestration chat lifts them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

