Repository navigation
Description
Problem Description
Since #6013 merged (ed82af5ef), runner Jobs that succeed and write implement.result="drafted" (Status: In Review) are misclassified as stopped at job (class=ci_infra, infra=true, empty logs) by implement_submit._report.
This leaves the item with both implement.result="drafted" and implement.stopped="job", overwrites status/in-review with status/blocked, and triggers up to 4 wasted continuation Jobs and digest clears on one item.
Three causes interact:
devops-cli-runner,roadmap-stage, anddevops-cli-planner-runpods act asdevops-cli-service[bot]withoutDEVOPS_CLI_VALKEY_PASSWORD, so they write to GitHub without updatingbrain-issuein Valkey.webhooks.pyrefusesown_writewebhooks before calling_remember_delivery_issue, sobrain-issuekeeps staleStatus: In Progressstate for up to 1 hour (DEFAULT_BRAIN_ISSUE_MAX_AGE_SECONDS).implement_submit._reportcalls_fresh(store, item.number)(store.item), which hits that stale cache, setsstops = True, removesowner/service(refreshing the cache toStatus: In Reviewas a side effect), and then callswrite_status(store, _fresh(store, item.number), StatusFacts(stopped=True), ...)without re-checking_settles_as_stop._read_backinstatus_sync.pyalso calls cachedstore.issue().
Reproduction Steps
- Enable shared
brain-issuecaching (valkey-devops) inroadmap-service. - Start a runner Job for a Staged item so
roadmap-servicecachesstatus/in-progressinbrain-issue. - Within 1 hour, let the
publishcontainer finish in another pod (no Valkey access) and setstatus/in-reviewplusimplement.result="drafted"on GitHub. - Run the
implementrow (implement_submit._report).
Expected vs Actual Behavior
Expected: _report reads the authoritative post-Job issue state from GitHub, sees implement.result="drafted" (Status: In Review), clears owner/service, records implement.job_state="succeeded", and writes no stop. Own-write webhooks keep brain-issue current when newer than the cached entry.
Actual: _report reads stale status/in-progress from brain-issue, posts a false ended: succeeded stop comment, overwrites status/in-review with status/blocked (implement.stopped="job", implement.failure="ci_infra"), and schedules duplicate continuation Jobs.
Environment Diagnostics
- Cluster incidents observed after feat(service): Cache GitHub issue and PR state in the brain from webhooks #6013 (
2026-11-24T14:30Zto2026-11-25T01:15Z) on#4416,#4649,#4650, and#4709(v0.211.3-v0.211.6). - Code locations:
src/devops_cli/roadmap/stores/github_store.py,src/devops_cli/roadmap/implement/implement_submit.py,src/devops_cli/roadmap/status_sync.py,src/devops_cli/server/routes/webhooks.py.
Logs, Traces, or Terminal Output
2026-11-25T00:58:03Z devops-cli-service[bot] labeled status/in-review (PR #7032, implement.result="drafted")
2026-11-25T01:09:39Z devops-cli-service[bot] comment: The runner Job devops-cli-implement-devops-cli-4709-2e82af ended: succeeded.
2026-11-25T01:09:51Z devops-cli-service[bot] unlabeled owner/service
2026-11-25T01:10:06Z devops-cli-service[bot] unlabeled status/in-review
2026-11-25T01:10:06Z devops-cli-service[bot] labeled status/blocked
2026-11-25T01:10:10Z INFO devops_cli.roadmap.job_result: roadmap job result: job=implement repo=dan-petty/devops-cli item=#4709 result=stopped success=false class=ci_infra infra=true first_pass=false repair_rounds=0 tokens=0 seconds=597 pull=7032 version=0.211.6
Activity
dan-petty commentedon Nov 25, 2026
Successful Jobs are misclassified as stopped, overwriting correct status and triggering up to four wasted continuation Jobs per item.The regression commit ed82af5 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.Both touch implement_submit._report, but #6194 reduces duplicate stop comments while the candidate fixes a false stop caused by reading a stale Valkey cache instead of live GitHub state.fix(roadmap): read live issue state after runner Jobs end (#7063)
test(roadmap): use monkeypatch instead of type ignore in report race …
devops-cli-service commentedon Nov 25, 2026
Released in v0.216.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.216.0
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 06:00 UTC