Skip to content
All use cases
DependenciesSecurityBatched changes

Dependency and security upgrade sweeps

Ordered batches with a reviewer, not one hopeful auto-fix

Work through a dependency backlog in ordered, reviewable batches: what depends on what, what has to move together, what the upgrade breaks, and what the run could not prove.

127.0.0.1:8787
The Work page: approvals waiting on a human, the list of runs with their cost and stage, and the transcript of the run in progress showing its objective and constraints.
Approvals, every run, the transcript of each one and the artifacts it left behind. The transcript is the run as it happened, not a summary written afterwards.
The problem

What actually goes wrong today

Stated plainly, because the approach below only makes sense as an answer to something specific.

  • 01

    A version bump looks mechanical right up to the point where something breaks — and the break is usually in code that relied on behaviour nobody documented.

  • 02

    Auto-fixers are good at the mechanical half and blind to the half that matters. They also give you one enormous diff, which is the least reviewable artifact in software.

  • 03

    The employee doing the upgrade is rarely the one who knows which module depends on the old behaviour, and that knowledge is not written down anywhere they can read.

  • 04

    A sweep has an ordering problem: some upgrades must move together, and doing them in the wrong order produces failures that look like the upgrade was wrong when it was merely early.

The approach

How the hierarchy and the router do it

Concretely, stage by stage: which mode the stage uses, who owns it, and why the router prices it the way it does.

  1. 01

    Research establishes what the codebase actually uses: imports, lockfile entries, call sites, and which packages move as a set. Reading, not guessing.

  2. 02

    A debate settles the upgrade order, then the chair records it — the sequencing decision is the one that gets silently dropped when a single agent does the work.

  3. 03

    The CTO writes the batch plan as files, so "upgrade these four together, then these two" is explicit rather than implied by the order the agent happened to work in.

  4. 04

    Developer agents apply each batch with edit_file and write_file; run_shell goes through a human approval round trip, so the one tool that can execute anything is also the one that stops and asks.

  5. 05

    QA tries to falsify the result against the built code in the workspace. A failed review sends the work back to the employees who wrote the files, not to a fresh agent that has to rediscover the problem.

The outcome

What you actually end up with

Artifacts, not assurances. Every one of these is something you can open, diff, review or throw away.

  • Batches that can be reviewed and reverted one at a time, instead of one diff nobody can hold in their head.

  • A written upgrade order with the dependency reasoning attached, which is the artifact that makes the next sweep cheaper.

  • The honest failure mode as output: what the run could not verify, stated as unverified rather than implied to be fine.

Staffing

Which part of the company is involved

Six of the thirteen roles, four of the eight departments. The rest of the office stays idle, and that is what keeps the run affordable.

Roles by stageper-floor org chart
Intake
CEO

Sizes the sweep and decides how many batches it deserves.

Research
Researcher, DevOps engineer

Establish what the code actually uses: imports, call sites, lockfile entries, and which packages must move as a set.

Debate
Chair, with DevOps and the owning engineer

The upgrade order is the decision that gets silently dropped when one agent does the work.

Plan
CTO

Writes the batches as files: upgrade these four together, then these two — explicit rather than implied by work order.

Build
Developers

edit_file and write_file per batch. run_shell is the one tool that stops for a human approval round trip.

Review-loop
Security reviewer, QA engineer

Tries to falsify against the built code in the workspace and sends objections back to the employees who wrote the files.

The org chart is data. A floor can hire, fire, re-seat and re-price its own company, and a plugin can contribute a role template — which is the point of naming roles rather than numbering agents.

Modes used

Intake runs single, research runs parallel, contested decisions run as a debate, and anything that produces files ends in a review-loop.

Where the money goes

Reading and summarising sit on cheap bands. The plan, the implementation turns and the review escalate, because those are the turns where being wrong is the expensive mistake.

What is recorded

Per-turn cost, the route decision and the models the router rejected, the files touched, and the debate ruling including the position that lost.

Run this in mock mode first

Node 24, one install, no API keys. The pipeline, the stages, the file writes and the review loop all run against scripted employees, so you can watch the shape of the work before it costs anything.

Before you point it at production

Nothing in the orchestrator authenticates, so bind it to localhost. The tools are confined to the run workspace, but that workspace is a normal directory on the machine and the orchestrator is not inside an operating-system sandbox — give it a checkout you would be willing to lose.