Skip to content

v1.21.0

Choose a tag to compare

@github-actions github-actions released this 16 Sep 12:39
· 54 commits to master since this release
a9f27e1

v1.21.0

Per-wave incremental delivery, plus the fix set that made it safe to ship.

A waved plan no longer holds all of its work until the run ends. A wave marked delivers: true promotes its verified work to your branch at its own barrier, so a long run hands you finished waves as it goes instead of all-or-nothing at the finish. Everything else in this release exists because incremental delivery changed what could go wrong.

Delivery

  • Waves deliver at their barrier (#525). A trial delivery is built and gated before anything touches your branch, and the plan branch is refreshed from the result so later waves build on what you already have.
  • A plan remembers where it delivers (#726). The delivery target is recorded when the first delivery lands, and a resume that would deliver somewhere else is refused before anything moves — naming both branches and the remedy. Previously the target was re-pinned from HEAD on every process start, so resuming from a different branch silently split a plan's work across two branches with nothing reporting it.
  • A run that did not deliver says why (#710). run.json and the console name the resolved mergeOnSuccess value, where it came from, and both causes — rather than leaving a green run's undelivered work to be discovered later.
  • Partial delivery is reported honestly (#525). Held waves are named with their reason (needs-human, not reached, cancelled, aborted, definition drift), and the report no longer claims work is off your checkout when a wave has already landed on it.

The harness stops burning attempts on walls it cannot climb

  • A hung git no longer stalls the whole run (#722). A fan-in's worktree was created under the scheduler's settle lock with an unbounded git wait, so one stuck git worktree add blocked every other task's settle and all dispatch — a real run sat dead for 28 hours with no halt record. That work now happens at dequeue, on the worker that owns the task, so a hang costs one task instead of the run. The wait is also visible now: a new task-waiting-on-worktree observation names the parked task and when its wait began, on the live table, --no-ui, status, attach and events.jsonl.
  • A repeated permission wall halts where the attempt settles (#708), at the four sites that settle before guardrails run, and the halt names the cause that actually stopped it. Refused paths are matched against the task's enforced write scope, with directory spellings reconciled rather than compared lexically — a junction or a /var versus /private/var mismatch previously made a real wall read as incidental and the run spent its budget against it.
  • A write-scope gap the plan caused halts instead of retrying to exhaustion (#707). Every retry gets the same scope, so a missing writeScope entry can never be cleared by retrying; it now settles needs-human on a deterministic rule and names the exact task.json line to add.
  • Harness-decided halts are no longer treated as judgment calls (#707). The write-scope gap, the permission wall and the no-route settle were recognized by a summary string prefix, so in autonomous mode the criticality judge decided them, re-drove the task with a fresh retry budget, and recorded a best guess that turned delivery off. Routing now reads structured fields.
  • The agent is shown the write scope it is held to (#706), in the composed prompt and in the violation feedback, with the match rules stated correctly.
  • Out-of-scope work is kept, not destroyed (#705). The offending bytes are captured before the revert, the "that work was SAVED" claim is only made when something was actually saved, and a resumed attempt whose scope now covers those paths is pointed at them.

Operator surfaces

  • guardrails status tells a live run from a dead one (#704), and refuses a second run on the same plan.
  • The live view says what each task did (#713). Its Status column previously read attempt 1 for a finished task, a running task and a failed one alike.
  • The live diagram link is live (#714). The run printed a file:// path that opens with a permanent "Not live" notice; it now prints the URL its own server is already serving.
  • A log reader can no longer kill a run (#727). On Windows, anything holding run.json open made the journal's atomic write fail and aborted the run — which attach, status and the log viewer could each do just by being open.

Upgrading

  • A waved plan that is already mid-flight and partly delivered under ≤1.20 carries no recorded delivery target. Its next resume gets pre-#726 behavior exactly once, and can still deliver the remainder to whatever branch is checked out. Check out the branch the earlier waves landed on before resuming such a plan. Plans started on 1.21.0 are unaffected.

Known limits shipped knowingly

Each of these is tracked, with a concrete failure scenario written down:

  • #730 — the #727 retry loop only executes on Windows in CI, because a POSIX rename over an open file succeeds and there is no failure to retry.
  • #741 — a kill between a delivery's git write and its journal write leaves no recorded target, so that resume can still re-target. Recording before the git write would pin a plan to a branch nothing landed on, which is worse.
  • #744 — initially-ready worktrees are built in one serial pre-pass, so several tasks can read preparing worktree while only one is in git. Documented rather than removed.
  • #742 — the delivery-refusal remedy is selected by prefix-matching prose; a reworded detail falls back to generic text.
  • #738 — WriteScopeCheck.HasFileChanges documents fail-open but catches only one exception type.
  • #739 — an empty salvage ref is left behind at two escalation halt sites. No false claim reaches the operator.
  • #746 — the plan branch's gains-only property, which the #722 fix depends on, is verified by reasoning rather than by a test against a real repository.

Test-suite flakes (CI health, not shipped behavior): #736 and #729 in WebhookEventSinkTests, #695, and #747 — which fails deterministically in a ~30-minute window each day because a fixture hardcodes a clock time, rather than being flaky under load.


What's Changed

  • feat(#525): deliver a waved plan wave by wave, not all-or-nothing at run end (plan 39) by @DaveRMaltby in #715
  • fix(#710): name the resolved mergeOnSuccess setting, and both causes, when a green run is not delivered by @DaveRMaltby in #725
  • fix(#704): tell a live run from a dead one in guardrails status, and refuse a second run on the same plan by @DaveRMaltby in #731
  • test(#525): prove per-wave delivery through the real run command, and fix what that proof found by @DaveRMaltby in #734
  • fix(#713, #714, #727): say what each task did, link a live diagram, and survive a log reader by @DaveRMaltby in #735
  • fix(#705, #706, #707): show the agent its write scope, halt a gap no retry can clear, and keep the work it wrote by @DaveRMaltby in #737
  • fix(#708): halt a repeated permission wall where the attempt settles, and name what actually stopped it by @DaveRMaltby in #740
  • fix(#726): record where a plan's deliveries land, and refuse a resume that would deliver elsewhere by @DaveRMaltby in #743
  • fix(#722): take a fan-in's worktree creation off the scheduler's settle lock, and make the wait visible by @DaveRMaltby in #745

Full Changelog: v1.20.0...v1.21.0