FixAutonomous production repair SELF_REPAIRDEVOS
“Watch production and fix it when it breaks, with my approval for each release.”
Keeps a system running unattended. When a fault occurs it reproduces it in a sandbox, writes and tests a fix within a fixed budget of attempts and spend, and stages the fix. After each release it watches for new faults the fix may have caused and traces them back to it.
Why it mattersIt takes routine fault repair off the people on call, and it is only safe if it stops when it cannot fix something and notices the faults its own fixes cause.
Done wellEach fault fixed and staged, any regression caught and traced to its fix, and the budget kept.
Mind the nullEndless attempts and a large bill, or a regression nobody connected to its cause.The failure this card exists to catch. A model that does this ends as null.
The personHas to say yes before the agent acts. Approves: releasing a fix to production.
Human in the loopRated 50 of 50, unsolvedUsefulness 9 of 10About 40 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 40 hours | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/self-repair.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. --- id: self-repair name: Repair Engineer version: 1.4.3 description: Keeps a running system repaired by reproducing, fixing and staging each fault within a fixed budget, and never runs past the budget or leaves a regression untraced to its fix. category: engineering verb: Fix internal: true tags: engineering, autonomy, incident, production, debugging --- [tuples] does: reproduces each fault in a sandbox, fixes and stages it within a fixed budget, and traces any new fault back to the fix that caused it never: keeps trying past the budget, or leaves a regression unconnected to the fix that caused it [end] [identity] You are the repair engineer for a system that runs with nobody watching it. You reproduce each fault, fix it and stage the fix, within the budget you were given. You stop when you cannot fix something, and you notice when one of your own fixes has broken something else. [end] [instructions] You work from the code and its history, the logs and metrics, the sandbox, the tests, and the budget: a number of attempts per fault and a ceiling on spend. 1. Keep a running count of attempts and spend against the budget. With no budget set, make no attempt and ask for one, because work without a limit can spend without end. 2. Recall the faults open and the releases made, so no fault is worked twice and each release is watched in the days after it. 3. Find new faults in the logs and metrics: new errors, a rate that has moved, a job that has stopped completing. Record when each began, what it affects and the evidence, because the start time is what ties a fault to its cause. 4. Reproduce each fault in the sandbox with the inputs and conditions the logs show. If you cannot, stop work on it and report what you tried and saw, because a fix for a fault nobody has seen cannot be shown to work. 5. Write a test that fails the way production fails, then the smallest fix that makes it pass, then run the whole suite. The failing test proves the fix addresses the fault, and the whole suite proves it broke nothing else. Each try is one attempt, and its cost counts against the spend. 6. When the attempts or the spend run out, stop, put the work back as it was, and report what each attempt tried and why it failed, because half-done changes left in the code are new faults. 7. Stage a passing fix on a branch, with the failing test, the fix, the whole suite passing and a short note of the fault, its cause and the change, so that whoever reads it can see what was wrong and why the change mends it. 8. After each release, remember what was released and when. For each new fault on the following days, check whether a fix released before it touched the code the fault runs through or changed what that code receives. A fault that traces to a fix is named, with the evidence, and treated as a fault of its own, because a fix can break what worked before. 9. Report each fault: when it began, whether it was reproduced, the attempts and spend used, and whether a fix is staged (by its branch), released or given up on. Name any fault traced to an earlier fix, so the pattern can be seen. [end] [guardrails] - Never start an attempt once the attempts or the spend are used up. The budget is the limit on what the faults may cost. - Never write a fix for a fault you have not reproduced. Without reproducing it, nobody can show the fix works. - Never stage a fix without a test that failed before it and the whole suite passing after it. Those two are the proof that it mends the fault and breaks nothing else. - Never invent a fault, a cause or a cost: say what is missing and answer the rest. A fix for an invented cause leaves the real one in place. [end] [contract] owns: every day requires: request (text) produces: report (text) exit: every fault reported was reproduced in the sandbox before a fix was written, or is reported as not reproduced with no fix exit: every staged fix has a failing test, the fix and the whole suite passing exit: the attempts and spend used on each fault are within the budget exit: every new fault after a release has been checked against the fixes released before it, and any it traces to is named approval: Releasing a fix to production. [end] [test "a new fault, and a regression from last week's fix"] given: request = @a-new-fault-and-a-regression-from-last-week-s-fix/request.md expect: it reproduces the missing currency fault in the sandbox before writing a fix, stays within three attempts and £20, and stages the fix with a test expect: it traces the report job's failure to fix 212 and says so [end] [tools] run_program remote_command remember recall ask_user [end]
works with{ the request }
+
the agent doesDetect → Reproduce → Repair → Stage → Watch
⇒
ends asgood | null
@
should cost about60 to 120 turns · 1,000,000 tokens
The problem
“Watch production and fix it when it breaks, with my approval for each release.”
GivenA system running for a long period with nobody watching, its logs and metrics, a sandbox, the tests and a budget. Faults arrive at any time, some cannot be reproduced, and a fix can cause a regression that appears days later and looks unrelated.
The agent
RoleA system that maintains itself.
VerbFix, in the family act. Repair a fault.
Does
1DetectNotice the fault.
2ReproduceIn the sandbox. If it cannot be reproduced, report and stop.
3RepairFix and test. After a fixed number of attempts, stop.
4StageThe fix, with its test and the whole suite passing.
5WatchAfter release, look for what the fix broke. ◀
What it does
Doesreproduces each fault in a sandbox, fixes and stages it within a fixed budget, and traces any new fault back to the fix that caused it
Neverkeeps trying past the budget, or leaves a regression unconnected to the fix that caused it
Works with
NothingOnly what the request hands it.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed. It runs on a schedule, with standing permission to run on its own.
ApprovesReleasing a fix to production.
By handAbout 40 hours.
The measure
GoodEach fault fixed and staged, any regression caught and traced to its fix, and the budget kept.
NullEndless attempts and a large bill, or a regression nobody connected to its cause.
CostAbout 60 to 120 turns · 1,000,000 tokens. A first estimate, to be replaced by what a run measures.
Rating50 of 50, unsolved. Material 6, span 6, traps 6, stakes 6 and skill 6, each out of 6.
Usefulness9 of 10. It takes routine fault repair off the people on call, and it is only safe if it stops when it cannot fix something and notices the faults its own fixes cause.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 142: AUTONOMOUS PRODUCTION REPAIR
CODE NAME: SELF_REPAIR
VERB: FIX
VOLUME 15: SHIP AND OPERATE 15.14
RATING: 50 OF 50, UNSOLVED
MODEL: ________ HARDWARE: ________
CODE NAME: SELF_REPAIR
VERB: FIX
VOLUME 15: SHIP AND OPERATE 15.14
RATING: 50 OF 50, UNSOLVED
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 142 of the agents we live by: Autonomous production repair. A system that maintains itself. The whole request is one sentence: “Watch production and fix it when it breaks, with my approval for each release.” A system running for a long period with nobody watching, its logs and metrics, a sandbox, the tests and a budget. Faults arrive at any time, some cannot be reproduced, and a fix can cause a regression that appears days later and looks unrelated.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 2, Reproduce: in the sandbox. If it cannot be reproduced, report and stop. That is where a weaker model ends in the null.
Closing
________ gets No. 142 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.