Skip to content

feat(roadmap): keep phase marks, spend and run comment of a killed Job - #4202

Merged
dan-petty merged 4 commits into
mainfrom
feat/4070-phase-marks-and-spend
Nov 9, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/4070-phase-marks-and-spend

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

An implement Job that a kill stopped lost three things. A rerun ran the scoped checks and the push again, because the Job held no mark for them. The spend restarted at zero, so the item budget did not count the earlier Jobs. The pull request comment of a continuation Job held only '-', and the earlier table was lost.

The record now holds implement.checked_sha and implement.published_sha: a Job skips a phase that its mark covers. The record holds the spend of all Jobs, and a person retry starts from zero. The run comment has a marker line for each run id, so a rerun updates its own comment. The watch prints a progress line for each poll. _ready and _return_to_new clear the new marks. Records of the old format still load.

Closes #4070

Change: openspec/changes/archive/2026-11-09-4070-implement-keeps-phase-marks-and-the/

@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 9, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for this pull request.

Fail-to-pass run (devops ci fail-to-pass --base origin/main, run before the code change): 24 tests failed on base, 28 passed (trap guards and readers of existing keys). 0 errors. Files: tests/invariants/test_roadmap_implement_record_keys.py, tests/roadmap/implement/test_roadmap_implement_phase_marks.py. Full output: .data/agent/f2p-4070.txt in the worktree (not committed).

Full devops ci on the tree before the archive commit: 25 of 25 rows passed. Test row: 14m 3s on a shared host (over the 5 min budget, known issue #3593; not caused by this change, the slowest cases are in unrelated files). The branch was then rebased onto main at 91ee652 without a conflict. After the rebase, 161 tests of the phase marks, record keys, workflow document and checks passed, and devops docs generate --check and ruff passed.

Old-format records. A test loads a record without the new keys and with implement.spend in the old format. The Job starts from the old spend and runs the scoped checks. The Settings models use extra='ignore', so no setting changes.

Not in this pull request. The tokens counter in implement_submit._emit_implement_metrics now counts the earlier Jobs again at each Job end, because the spend is a sum over Jobs. Issue #4200 holds this with the fix design.

For a person to check. The run marker uses implement.job as run id; a run that a person starts uses the fixed id manual.

@dan-petty
dan-petty marked this pull request as ready for review November 9, 2026 01:27
@dan-petty
dan-petty merged commit 38ebc17 into main Nov 9, 2026
26 checks passed
@dan-petty
dan-petty deleted the feat/4070-phase-marks-and-spend branch November 9, 2026 02:11
dan-petty pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.98.0](v0.97.0...v0.98.0)
(2026-11-09)


### Features

* **roadmap:** a plan that adds a gate quotes the defect
([#4194](#4194))
([ab5e92a](ab5e92a))
* **roadmap:** add failure classes and runner facts to stage context
([#4195](#4195))
([87e9bd7](87e9bd7))
* **roadmap:** keep phase marks, spend and run comment of a killed Job
([#4202](#4202))
([38ebc17](38ebc17))


### Bug Fixes

* **roadmap:** refuse a placeholder plan summary and body
([#4196](#4196))
([aec8ef5](aec8ef5))
* **roadmap:** return an item when a cited class field exists
([#4199](#4199))
([816cfe0](816cfe0))

---
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/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): implement keeps phase marks and the spend of a killed Job

1 participant