Repository navigation
Description
Problem or Motivation
derive_status (src/devops_cli/roadmap/status_sync.py:65) has one rule, but at least 6 callers write the Status in their own way: implement_run.py:722, :1715 and :1809; claim.py:163 and :176; stage_ready.py:134; implement_submit.py:493 (run_implement_round, 2 calls); run.py:634 (_run_stage_adapter). Some writes have no read-back, so a lost write stays lost (#4555). #4660 and #4685 add two more writers.
Proposed Solution & Architectural Design
Add one function to status_sync.py: write_status(store, item, facts, *, dry_run). It derives the Status, writes the label only when it differs, and reads the label back. It sets ItemField.STATUS through the record read-back of #4555 when #4555 merges. Change every caller to it in the same pull request, with no shim. #4660 and #4685 then call it. A dry run returns the would-be write and sends 0 requests. The hunks in implement_run.py (:722, :1715, :1809) are away from the push sites of push-step, and away from the hunks of PR #4966 in implement_submit.py (:116, :345) and run.py (:750), so this item can start now.
Cost: about 0.6M tokens and 0.5 agent-day.
Target Subsystem
Roadmap Status sync (src/devops_cli/roadmap/status_sync.py) and every job that writes the Status label.
Existing Tool Considered
No new tool. The change reuses derive_status and the record read-back of #4555.
Acceptance Criteria
-
uv run pytest tests/roadmap -k status_writerpasses: no write when the label is equal; one write and one read-back on a difference; 0 requests in a dry run. - A structural test fails when a module other than status_sync.py adds or removes a Status label.
- The stage, implement and claim tests stay green.
Dependencies
- None. An agent can start this item now.
- Part of feat(roadmap): track the Service step jobs #5014 (track the Service step jobs).
Source: #5014
Activity
dan-petty commentedon Nov 12, 2026
Both consolidate field writes through one path, but #999 targets board fields in github_store.py and projects.py while this targets the Status label in roadmap job callers.devops-cli-service commentedon Nov 12, 2026
Both centralize field writes, but #999 routes board fields through the store while the candidate adds one Status writer for the jobs.devops-cli-service commentedon Nov 12, 2026
Released in v0.119.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.119.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 15:46 UTC