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. 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.
Dependencies
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
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, and a unit test holds it. No offline test shows the result of the rolled-out runner image. This item holds that production evidence: a 24 h Loki query and the stage verdicts of three items. The owner froze the stage work on 2026-11-20, so this item waits on #6521 and on the rollout.
Acceptance criteria
Requirement: No stage error in 24 h
The stage job SHALL report no Staged source moved or missing error in the 24 h after the runner image rollout.
Scenario: Loki query over 24 h
- WHEN 24 h 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 h. - 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, and
uv run devops gh api repos/dan-petty/dotfiles/issues/1/comments --paginate --jq '.[].body',uv run devops gh api repos/dan-petty/homelab/issues/1/comments --paginate --jq '.[].body'anduv run devops gh api repos/dan-petty/homelab/issues/2/comments --paginate --jq '.[].body'read the comments of each item. - THEN Each read shows a stage plan comment or a rejection reason, and none holds
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:109). Loki lacks the GitHub issue read, so the GitHub CLI reads the stage comments through uv run devops gh api (docs/commands/gh.md:7). 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, and 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:29, docs/guidelines/production-readiness.md:86, docs/CLUSTER.md:189, docs/commands/k8s.md:109, docs/commands/gh.md:7, openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md:34]- Chosen: Live Loki query and stage comment read. CT4 and REL-10 ask for a go-live check after each rollout, and 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, so 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, and it still waits for the same production traffic, while 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, and the line of 15:19Z namesdan-petty/homelab#1and#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:34, openspec/changes/archive/2026-11-11-4628-stage-context-reads-runner-facts-from/proposal.md:5] - 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, or a rejection for a refused item. The plan-state comment holds the branch, the pull request, the task groups with their measures and the open findings, so the stage verdict is read from the issue comments. [sources: docs/roadmap/stage.md:13, docs/roadmap/stage.md:14, docs/roadmap/stage.md:16, docs/commands/gh.md:7]
- What does the item wait on before it can run?: It waits on the 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. chore(roadmap): hold incremental stage and implement work #6521 has no sub-issue and no
type/epiclabel, so the refine and stage rules treat it as an open blocker and leave the item out. When chore(roadmap): hold incremental stage and implement work #6521 closes, 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:21, docs/roadmap/refine.md:29, docs/roadmap/stage.md:30, openspec/changes/archive/2026-11-20-6451-read-only-blockers-in-a-dependencies/design.md:8]
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.