Repository navigation
Description
Problem or Motivation
No row watches plan and delivery pull requests after their producer ends and routes their state. stage_ready reads each plan draft every 3 min with no backoff (#3671). pr_conflicts reads each ready delivery pull request every 19 min and only comments. No row sees the drift of an open plan pull request against main (#3968). #4574 lists stage_ready but not pr_conflicts as a sweep step.
Proposed Solution & Architectural Design
One status-lane row watch replaces stage_ready and pr_conflicts.
- It reads all open roadmap pull requests of a repository with one GraphQL query (headRefOid, isDraft, mergeable, statusCheckRollup), and uses REST with ETag during a GraphQL hold.
- It keeps a ledger {pr, head, verdict, next_read_at} and reads a failed head again only on a head or base change, or after 30 min (fix(roadmap): stage_ready backs off after a failed check #3671).
- It routes with one pure function due_steps(state), which the sweep uses later for its reconcile: READY gives the ready step; CONFLICT on a person's pull request gives one comment for each head; FAILED or CONFLICT on a bot pull request gives the due mark fix-checks: or fix-conflict: (mode off until the fix Job items); drift gives the feat(roadmap): detect drift against default branch on open plan PRs #3968 mark; MERGED or CLOSED gives the Status writer and cleanup.
- It skips a pull request whose item has a live unit.
- A gauge counts the GitHub requests of each tick.
- The settings of the two old rows leave the ConfigMap before the image rolls (removed-setting rule). Change k8s/README.md (rows) and docs/ROADMAP_WORKFLOW.md (step 3) in the same pull request. fix(roadmap): stage_ready backs off after a failed check #3671 and feat(roadmap): detect drift against default branch on open plan PRs #3968 fold here.
Timeouts: request 30 s < one pull request 60 s < row 240 s < tick 300 s.
Cost: about 1.5M tokens and 1.5 agent-days.
Target Subsystem
Roadmap Service status lane (src/devops_cli/roadmap/run.py), k8s/README.md and docs/ROADMAP_WORKFLOW.md.
Existing Tool Considered
One GitHub GraphQL query for each repository, and REST with ETag during a GraphQL hold.
Acceptance Criteria
- A table test of due_steps covers each verdict for a bot pull request and for a person's pull request.
- A row test with the fake GitHub sends 1 GraphQL request for each repository and tick, and does not read a failed head again within 30 min.
- The rows stage_ready and pr_conflicts are gone from src/devops_cli/roadmap/run.py.
- A dry-run test sees 0 requests.
Dependencies
- refactor(github): one pull request verdict for all monitors #5021 (verdict-step: refactor(github): one pull request verdict for all monitors)
- refactor(roadmap): one Status writer for every job #5018 (status-writer: refactor(roadmap): one Status writer for every job)
- Part of feat(roadmap): track the Service step jobs #5014 (track the Service step jobs).
Source: #5014
Owner decision 2026-11-13
This replaces the due-mark part of item 3 of the Proposed Solution. The approved pipeline split (tracker #5482, Phase 3) removes the due marks:
-
due_stepsbecomes the PR part ofdue_jobs(feat(roadmap): one due_jobs function names the due jobs of an item #5504). Watch writes nofix-checks:<pr>orfix-conflict:<pr>mark. A fix Job is due by its predicate: fix-conflict on a CONFLICT verdict with no claim; fix-checks only on a checked head that merges cleanly and has a completed, failed required check on that same head. -
The draft route and the Staged rule come in feat(roadmap): the draft route and one Staged rule for watch #5505.
-
Latency target until Phase 4: a verdict within one status-lane interval plus 10 min after a check result, outside the rollout windows.
-
Depends on: feat(roadmap): one due_jobs function names the due jobs of an item #5504.
-
Live proof: after the merge and the release, watch runs as the App on the open
devops-cli-service[bot]PRs and on those closed in the last 14 days. A comment gives the result lines and 0 ready bot PRs with a failed required check for over 15 min.
Alternatives check of 2026-11-15: in-use.
The repository already uses this tool.
Tool: gidgethub/gidgethub (https://github.com/gidgethub/gidgethub), Apache-2.0, last activity 2026-09-25, maintained.
Activity
dan-petty commentedon Nov 12, 2026
Both address stage_ready polling cost, but #4413 adds event-driven triggers to the existing row while the candidate removes the row and replaces it with a unified watch row.devops-cli-service commentedon Nov 15, 2026
Alternatives check: in-use
Reason: The searches found no open watcher tool that polls GitHub pull-request state and routes it; they returned only generic pages. gidgethub, the project's GitHub session per ADR 0006, does cover the access layer the row needs (GraphQL queries and REST requests with ETag/conditional handling) but none of the ledger, backoff, routing or sweep work.
The repository already uses this tool.
Tool: gidgethub/gidgethub (https://github.com/gidgethub/gidgethub)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
chore(main): release 0.160.0 (#5907)
devops-cli-service commentedon Nov 16, 2026
Released in v0.160.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.160.0
devops-cli-service commentedon Nov 16, 2026
Live since 2026-11-16 03:02 UTC