Repository navigation
Description
Split from #4628.
Split from #4628.
Problem Description
The stage fails for most items in the 6 other repositories with Staged source moved or missing. The fix in #4628 reads the runner tools and the failure taxonomy from the installed modules, and it reads the Dockerfile and the pod manifest only for a devops-cli commit (src/devops_cli/roadmap/stage/stage_context_facts.py). A unit test holds the new behavior, but the production result is unconfirmed.
Why this part is deferred
The confirmation waits on the rollout of the runner image and on 24 h of production traffic. No offline test and no pull request can check it, so it moves to this issue.
Acceptance Criteria
- The Loki query
{service_name="roadmap-service"} |= "Staged source moved or missing"over 24 h after the rollout gives 0 lines. -
dan-petty/dotfiles#1,dan-petty/homelab#1anddan-petty/homelab#2get a stage verdict that is not this error.
Proposed design
Problem statement
The stage job failed with Staged source moved or missing in the 6 other repositories. The fix in #4628 reads the runner tools and the failure taxonomy from the installed modules. A unit test holds the fix. No offline test shows the result of the rolled-out runner image. This item holds the production evidence: a 24 h Loki query and the stage verdicts of three items. The stage work waits on #6521 and on the rollout.
Acceptance criteria
Requirement: No stage error in 24 hours
The stage job SHALL report no Staged source moved or missing error in the 24 hours after the runner image rollout.
Scenario: Loki query over 24 hours
- WHEN 24 hours after the runner image that holds the fix of fix(roadmap): stage context reads runner facts from the package #4628 is live,
uv run devops k8s logs --query '{service_name="roadmap-service"} |= "Staged source moved or missing"' --since 24hruns over the last 24 hours. - THEN The command returns 0 lines.
Requirement: Three items get a stage verdict
The stage job SHALL give dan-petty/dotfiles#1, dan-petty/homelab#1 and dan-petty/homelab#2 a stage verdict that is not the Staged source moved or missing error.
Scenario: Stage verdicts after the rollout
- WHEN The runner image that holds the fix of fix(roadmap): stage context reads runner facts from the package #4628 is live.
uv run devops gh api repos/dan-petty/dotfiles/issues/1/comments --paginate --jq '.[].body'reads the comments ofdan-petty/dotfiles#1.uv run devops gh api repos/dan-petty/homelab/issues/1/comments --paginate --jq '.[].body'reads the comments ofdan-petty/homelab#1.uv run devops gh api repos/dan-petty/homelab/issues/2/comments --paginate --jq '.[].body'reads the comments ofdan-petty/homelab#2. - THEN Each read shows a stage plan comment or a rejection reason and holds no
Staged source moved or missing.
Existing Tool Considered
No alternatives check has run for this item. Grafana Loki (open source, maintained) covers the 24 h LogQL query, and the project sends that query through uv run devops k8s logs (docs/commands/k8s.md). Loki lacks the GitHub issue read, so the GitHub CLI (cli/cli, open source, maintained) reads the stage comments through uv run devops gh api (docs/commands/gh.md). The change builds no code, so it has no build cost.
Key questions
- How does the item confirm that the stage error is gone after the rollout?: Run the 24 h Loki query for the error text through
uv run devops k8s logs. Read the stage verdict of the three items from their issue comments throughuv run devops gh api --paginate. Add no offline test, because the result depends on the rolled-out runner image and on production traffic. (best practice) [sources: docs/SERVICE_PATTERNS.md, docs/guidelines/production-readiness.md, docs/CLUSTER.md, docs/commands/k8s.md, docs/commands/gh.md, openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md]- Chosen: Live Loki query and stage comment read. CT4 and REL-10 ask for a go-live check after each rollout. fix(roadmap): stage context reads runner facts from the package #4628 measured the same error with the same 24 h query.
- Rejected: Local unit test. The unit test of fix(roadmap): stage context reads runner facts from the package #4628 checks the context builder offline. It cannot show the verdict of the rolled-out runner image.
- Rejected: New metric or alert on the error text. It builds code that the project keeps. It still waits for the same production traffic, and the item asks for one confirmation.
- Where did the error appear before the rollout, and which items did it name?: In the Service log stream
{service_name="roadmap-service"}: 2 lines over 24 h on 2026-11-11. The line of 14:37Z namesdan-petty/dotfiles#1. The line of 15:19Z namesdan-petty/homelab#1anddan-petty/homelab#2. Each line namessrc/devops_cli/roadmap/runner_tools.py. [sources: openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md] - What does the stage job write on an issue as a stage verdict?: A plan-state comment and a run comment on the issue for a planned item. A rejection reason on the issue for a refused item. The plan-state comment holds the branch, the pull request, the task groups with their measures and the open findings. The stage verdict is read from the issue comments. [sources: docs/roadmap/stage.md, docs/commands/gh.md]
- What does the item wait on before it can run?: It waits on the open hold issue chore(roadmap): hold incremental stage and implement work #6521 that the freeze of refactor(roadmap): re-architect stage and implement on Coder #6519 recorded for the stage, implement and fix-checks jobs. An open dependency outside a cycle blocks the item, so it stays out until chore(roadmap): hold incremental stage and implement work #6521 closes. The design of fix(roadmap): read only blockers in a Dependencies section #6451 records that a person lifts every hold when chore(roadmap): hold incremental stage and implement work #6521 closes. Then the item waits on the rollout of the runner image that holds the fix of fix(roadmap): stage context reads runner facts from the package #4628 and on 24 h of production traffic. [sources: docs/roadmap/refine.md, docs/roadmap/stage.md, openspec/changes/archive/2026-11-20-6451-read-only-blockers-in-a-dependencies/design.md]
Fit
Fits in one pull request.
Suspected block
The rollout of the runner image that holds the fix of #4628, then 24 h of production traffic.
Activity
devops-cli-service commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
testprefix of the title gives the type.(roadmap)scope of the title gives the scope.The item only confirms a result after the rollout and needs no code change.The confirmation shows that the stage error stopped for most items in 6 repositories.The work is one Loki query and a check of three repositories.Both items cover the stage failure, but #4628 changes the stage code and the candidate confirms the result in production.devops-cli-service commentedon Nov 19, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
devops-cli-service commentedon Nov 23, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence