Skip to content

fix(roadmap): one failed item does not suspend the stage row - #3539

Merged
dan-petty merged 3 commits into
mainfrom
fix/3493-stage-item-failure-scope
Nov 4, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/3493-stage-item-failure-scope

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The stage row recorded one failed item as a failed round of the whole repository. Three such rounds suspended planning for every item, also when a round staged another item.

A failed stage item now gets stage.failed_at and stage.failed_error in its job record. The job leaves it out for roadmap.stage.retry_hours hours (6 by default) and takes the other items. devops roadmap explain reports the held item from the record on GitHub. The row fails a round only when it tried items and staged, stopped or returned none, or when an error belongs to no item.

The failure ledger now keeps the cause of each failed round in its file, and still loads a file without causes. A scoped update or a round that a Service stop ends counts as result="stopped" and logs no error line.

Closes #3493

Change: openspec/changes/archive/2026-11-04-3493-one-failed-item-does-not-suspend-the-stage-row/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 4, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test notes.

fail-to-pass run (devops ci fail-to-pass --base origin/main): the new tests fail on the base. Failed on base: the two ledger tests (causes in the record, old format), the two stopped result tests of the Service, the test of three rounds that fail one item while another stages, and the changed test of a round that stages one item and fails another. The modules test_roadmap_stage_retry, test_roadmap_stage_apply and test_roadmap_refine fail to collect on the base because ended_by_stop and the new record keys move. Tests that pin the other acceptance rules (suspend on no planned item, suspend on a failure outside any item) pass on the base, as the ledger already counted those rounds; they guard the rule.

Local: ruff, format, devops openspec check and the pre-commit hooks pass. The full devops ci waits for the single CI gate slot that another worktree holds.

A failed stage item is recorded in its job record with the error class and the time, and the job takes it again after roadmap.stage.retry_hours. The row fails only when a round tried items and handled none. The failure ledger keeps its causes across a restart. A round that a Service stop ends counts as stopped.
The ledger writes its causes with a typed record, the Service keeps its handlers visible to the lint ratchet, and the tests of the old ledger format follow the new one.
@dan-petty
dan-petty force-pushed the fix/3493-stage-item-failure-scope branch from 14c504d to bdff9fa Compare November 4, 2026 23:15
@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 23:24
@dan-petty
dan-petty merged commit 0af847c into main Nov 4, 2026
23 checks passed
@dan-petty
dan-petty deleted the fix/3493-stage-item-failure-scope branch November 4, 2026 23:54
dan-petty pushed a commit that referenced this pull request Nov 5, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.57.0](v0.56.5...v0.57.0)
(2026-11-04)


### Features

* **review:** one command fetches the osv and trivy databases
([#3543](#3543))
([0d290b4](0d290b4))


### Bug Fixes

* **config:** find a plaintext secret at any depth in audit-keys
([#3546](#3546))
([19b740e](19b740e))
* **roadmap:** one failed item does not suspend the stage row
([#3539](#3539))
([0af847c](0af847c))
* **roadmap:** shorten a long item title before a job needs it
([#3541](#3541))
([910312e](910312e))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): one failed item does not suspend the stage row

1 participant