Repository navigation
fix(roadmap): reset a head that the agent moved - #3883
Conversation
|
Test results (kept out of the body). fail-to-pass run ( Full Premise: see |
🤖 I have created a release *beep* *boop* --- ## [0.77.0](v0.76.2...v0.77.0) (2026-11-07) ### Features * **ai:** web search falls back to DuckDuckGo ([#3900](#3900)) ([61b5c43](61b5c43)) * **k8s:** add warnings and errors above logs, narrow both by pod ([#3886](#3886)) ([6d105c2](6d105c2)) * **k8s:** Name one chat model for every slot of the Service ([#3891](#3891)) ([4189c93](4189c93)) * **rag:** index managed repos and exclude private from search ([#3895](#3895)) ([3cd4eba](3cd4eba)), closes [#1389](#1389) ### Bug Fixes * **roadmap:** name the reason of a failed intake write ([#3879](#3879)) ([a341524](a341524)) * **roadmap:** reset a head that the agent moved ([#3883](#3883)) ([0ff477f](0ff477f)), closes [#3575](#3575) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The shell of the agent allows git, so an agent can commit during a step. A step makes the only commit, so the first exit check stopped the step with the class head_moved and discarded its work (#2636 lost 7,166,584 input tokens this way). The step now puts HEAD back to the expected head of its keeper with git reset --soft, which keeps the work in the checkout, prints one line, and lets the exit checks judge the work. It stops with head_moved only when the reset fails. The wip: commits of the step stay until the step folds them into its commit.
Closes #3575
Change:
openspec/changes/archive/2026-11-06-3575-reset-a-moved-head/