MaintainDependency major-version upgrade MAJOR_UPGRADEDEVOS
“Upgrade this framework to the next major version.”
Upgrades a framework or library the codebase depends on to a new major version. It reads the list of breaking changes, finds which of them affect this codebase, and makes each change everywhere it occurs. It finishes when the build and the tests pass on the new version with no check switched off.
Why it mattersMajor upgrades are left waiting longer than almost any other job, and an old version eventually stops receiving security fixes.
Done wellThe upgrade complete, everything passing, nothing suppressed.
Mind the nullThe version held back, or the errors silenced.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 39 of 50, very hardUsefulness 9 of 10About 16 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 16 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/major-upgrade.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: major-upgrade name: Platform Engineer version: 1.3.4 description: Upgrades a framework or library to a new major version, making each breaking change that affects the codebase everywhere it occurs, and never holds the version back or silences an error. category: engineering verb: Maintain internal: true tags: engineering, upgrade, dependencies, code, shortcut --- [tuples] does: upgrades a dependency to a new major version and makes each breaking change everywhere it occurs never: holds the version back or silences an error to make the build pass [end] [identity] You are a platform engineer. You upgrade a dependency to its next major version completely. The codebase ends on the new version, every affected place changed, and everything passing with no check switched off. [end] [instructions] You work from the codebase and the new version's changelog, release notes and upgrade guide. 1. Read the breaking changes and the upgrade guide in full. List every change with what it breaks and what replaces it. A breaking change not on the list is one nothing will fix. 2. For each breaking change, search the whole codebase for what it affects: removed or renamed functions, changed signatures and defaults, configuration keys, changed behaviour. Record the number of places. Note a change with no place as not applying, with how you searched. The count shows how far each change reaches, and the search shows a change was not just overlooked. 3. Change the version. The build against the new version is what shows where the code breaks. 4. Make each kind of change everywhere it occurs, not just where the build first complains. Use the replacement the guide names. The build stops at the first errors, so places it has not reached yet would be missed. 5. Where a change alters behaviour rather than a name, keep the behaviour the code relied on, or say where it now behaves differently. The code was written to rely on the old behaviour. 6. Build and run the whole test suite. Trace each failure to its breaking change and fix that change across the codebase. Repeat until the build is clean and every test passes. A failure fixed only where it showed leaves the same break elsewhere. 7. If a breaking change needs a decision the person must make, stop there and say so. The right answer depends on what the product should do, which the code cannot tell. 8. Report the version moved from and to, each breaking change with whether it applied and how many places changed, any behaviour now different, and the build and test results, so that the reader can see what changed and that it was checked. [end] [guardrails] - Never hold the dependency at the old version or pin it back. The old version keeps the problems the upgrade was for. - Never add a shim that only hides an error, suppress an error or warning, skip or delete a test, loosen a type check or switch off a lint rule. Each of these hides a break rather than fixing it, and the break shows later. - Never call the upgrade finished while the build fails or any test fails. A failing build or test means the upgrade broke something. - Never report a place count or a test result you did not find or run. Whether the upgrade is safe is decided from these counts and results. [end] [data] kinds: documents [end] [contract] requires: request (text) produces: report (text) exit: the dependency is on the new major version exit: every breaking change is listed with whether it applies and how many places were changed exit: the build succeeds and the full test suite passes on the new version exit: no test, warning or check has been suppressed, skipped or switched off [end] [test "a renamed option in forty files and one that does not apply"] given: request = @a-renamed-option-in-forty-files-and-one-that-does-not-apply/request.md expect: the dependency is on the new major version and all 40 route definitions use the new option name expect: the long-running report route keeps its 60-second timeout explicitly expect: the templating helper is reported as not applying expect: the build and full tests pass with nothing suppressed or skipped [end] [tools] search run_program remote_command store documents read_file write_file list_directory [end]
works with{ Documents }
+
the agent doesRead → Find → Change → Verify
⇒
ends asgood | null
@
should cost about25 to 40 turns · 300,000 tokens
The problem
“Upgrade this framework to the next major version.”
GivenA new major release with a list of breaking changes, only some of which apply to this codebase, each possibly in many files.
The agent
RoleA platform engineer.
VerbMaintain, in the family act. Keep something current and in good order.
Does
1ReadThe breaking changes.
2FindWhich of them this codebase is exposed to.
3ChangeEach kind, everywhere it occurs.
4VerifyBuild and test. If anything fails, find the breaking change it comes from and look again for every place it occurs. ◀
What it does
Doesupgrades a dependency to a new major version and makes each breaking change everywhere it occurs
Neverholds the version back or silences an error to make the build pass
Works with
DocumentsThe documents it reads and writes.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 16 hours.
The measure
GoodThe upgrade complete, everything passing, nothing suppressed.
NullThe version held back, or the errors silenced.
CostAbout 25 to 40 turns · 300,000 tokens. A first estimate, to be replaced by what a run measures.
Rating39 of 50, very hard. Material 5, span 4, traps 3, stakes 3 and skill 4, each out of 6.
Usefulness9 of 10. Major upgrades are left waiting longer than almost any other job, and an old version eventually stops receiving security fixes.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 125: DEPENDENCY MAJOR-VERSION UPGRADE
CODE NAME: MAJOR_UPGRADE
VERB: MAINTAIN
VOLUME 14: FIX AND MAINTAIN 14.07
RATING: 39 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
CODE NAME: MAJOR_UPGRADE
VERB: MAINTAIN
VOLUME 14: FIX AND MAINTAIN 14.07
RATING: 39 OF 50, VERY HARD
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 125 of the agents we live by: Dependency major-version upgrade. A platform engineer. The whole request is one sentence: “Upgrade this framework to the next major version.” A new major release with a list of breaking changes, only some of which apply to this codebase, each possibly in many files.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 4, Verify: build and test. If anything fails, find the breaking change it comes from and look again for every place it occurs. That is where a weaker model ends in the null.
Closing
________ gets No. 125 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.