Repository navigation
Description
Update 2026-11-26 (infra move): #6562 already removed the in-Job check watch.
The implement Job ends at its draft, and _repair_after_push and _ready are gone. The _watch in implement_deadline.py is the deadline watch: keep it. What is left is the stall default: it is still 4200 s, and the design below lowers it to 2400 s.
Problem or Motivation
The runner Job holds 1 or 4 CPU for up to 3600 s while it only watches checks (implement_run.py:1639-1715; defaults.py:919). 40 Jobs ran from 2026-11-05 to 11-11: p50 23 min, p90 55 min, max 187 min. The stall of 4200 s (defaults.py:926) exists only for that watch.
Proposed Solution & Architectural Design
Delete _checks, _watch, _repair_after_push and _ready from the Job. The watch row, fix-checks and fix-conflict take them over. Lower the stall default from 4200 s to 2400 s, and change the README values and the test of readme-stall-values in the same pull request (AGENTS.md rule 8).
Gate: the fix Jobs give a good outcome in at least 80 % of at least 20 runs. The watch skips a pull request with a live Job, so a Job of an older image and the row do not act on one pull request.
Cost: about 1M tokens and 1 agent-day.
Target Subsystem
The implement runner Job (src/devops_cli/roadmap/implement/implement_run.py) and its deadline settings.
Existing Tool Considered
No new tool. The change deletes code from the implement Job.
Acceptance Criteria
- Tests: the implement Job ends after its final push and open; a structural test finds no watch or ready call in the Job; the deadline settings validate (stall < extension < ceiling); the README case of readme-stall-values passes with the new values.
- Live: Loki shows the Job end within 120 s of the draft.
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)
-
feat(roadmap): the watch row starts fix-checks Jobs #5027 (fix-checks-job: feat(roadmap): the watch row starts fix-checks Jobs)
-
feat(roadmap): the watch row starts fix-conflict Jobs #5028 (fix-conflict-job: feat(roadmap): the watch row starts fix-conflict Jobs)
-
feat(roadmap): the implement Job opens its PR at the end #4713 (the implement Job opens its PR at the end)
-
Part of feat(roadmap): track the Service step jobs #5014 (track the Service step jobs).
Source: #5014
Owner decision 2026-11-13
The approved pipeline split (tracker #5482, Phase 3): the implement Job ends at its checked branch and calls the open module (#5020). It opens no PR by its own code and runs no watch. Watch, the ready step and the fix Jobs take over.
- Live proof: after the merge and the release, the implement Job runs as the App on the next Planned item. A comment gives its result line and the open line, and shows that the Job ran no watch step.
Alternatives check of 2026-11-21: not-applicable.
Class: refactor, no search.
Tool: none found.
Proposed design
Problem statement
The implement Job no longer watches checks: #6562 removed that watch. The stall default is still 4200 seconds and covered the removed watch. The remaining change lowers the stall default to 2400 seconds and updates its tests and documents.
Acceptance criteria
Requirement: Default stall of 2400 seconds
The deadline defaults SHALL set the stall to 2400 seconds, the extension to 5400 seconds and the ceiling to 14400 seconds.
Scenario: The deadline defaults test runs
- WHEN
tests/roadmap/implement/test_roadmap_implement_deadline.pyloadsRoadmapImplementConfigwith no override - THEN it reads
deadline_stall_seconds == 2400,deadline_extension_seconds == 5400anddeadline_ceiling_seconds == 14400
Requirement: Order of the deadline settings
The deadline settings MUST keep the order stall < extension < ceiling.
Scenario: The deadline settings validate
- WHEN
tests/roadmap/implement/test_roadmap_implement_deadline.pyloads the settings with no override - THEN the stall is less than the extension and the extension is less than the ceiling
Requirement: Silent wait uses the command timeout
The silent-wait test SHALL use the 1800-second command timeout as the longest silent wait and MUST NOT count a monitor timeout.
Scenario: The silent-wait test runs
- WHEN
tests/roadmap/implement/test_roadmap_implement_deadline.pyruns its silent-wait test - THEN it passes with 2400 >= 1800 + 600 and its maximum holds no monitor timeout
Requirement: Cluster document deadline values
docs/CLUSTER.md SHALL state the stall 2400 s, the extension 5400 s, the ceiling 14400 s, the command timeout 1800 s, the margin 600 s and the stall time 40 minutes.
Scenario: The deadline document test runs
- WHEN
tests/roadmap/implement/test_roadmap_implement_deadline.py::test_the_cluster_document_states_the_default_deadline_valuesruns - THEN it passes with the new stall, extension, ceiling, command, margin and stall time values
Requirement: Generated configuration document
docs/CONFIGURATION.md MUST be the output of uv run devops docs generate with deadline_stall_seconds=2400.
Scenario: The docs check runs
- WHEN
uv run devops ci docsruns after the change - THEN it passes and the
RoadmapImplementConfigrow showsdeadline_stall_seconds=2400
Requirement: No watch or ready code in the implement Job
The implement Job module MUST hold no call of _watch, _repair_after_push or _ready; the deadline watch in implement_deadline.py is outside this module.
Scenario: The structural test reads the implement Job module
- WHEN
tests/roadmap/implement/test_roadmap_implement_job.py::test_the_implement_job_module_holds_no_watch_or_ready_codereadssrc/devops_cli/roadmap/implement/implement_run.py - THEN it finds no call of
_watch,_repair_after_pushor_ready
Requirement: Implement Job ends after the open module
The implement Job SHALL end after its final push and its call to the open module, and it SHALL run no watch step.
Scenario: The job-end test runs
- WHEN
tests/roadmap/implement/test_roadmap_implement_job.py::test_the_implement_job_ends_after_the_open_moduleruns the job with a fake open module - THEN the job records the push, calls the open module and records no watch step
Requirement: Pending a person after the merge
After the release, a person SHALL confirm that the next Planned item ends within 120 seconds of its draft with no watch step.
Scenario: The post-release live proof
- WHEN the next Planned item runs after the release
- THEN a Loki query shows the implement Job ends within 120 seconds of the draft, and its result line and open line show no watch step
Existing Tool Considered
The alternatives check of 2026-11-21 in the issue body records not-applicable for a refactor and names no tool. The change lowers one default and updates its tests and documents. It adds no code to keep.
Key questions
- What does the owner decision of 2026-11-13 require for the implement Job, the open and the watch?: The implement Job ends at its checked branch and calls the open module. It opens no PR by its own code and runs no watch. The watch row, the ready step and the fix Jobs take over. (best practice) [sources: CONTEXT.md, docs/ROADMAP_WORKFLOW.md, src/devops_cli/roadmap/steps/open.py, src/devops_cli/roadmap/implement/implement_run.py]
- Chosen: End the Job at its checked branch and call the open module. The owner decision of 2026-11-13 records this split. The module docstring ends the Job at the data for
publish. - Rejected: Keep the PR open and the watch in the Job. The owner decision rejects it. The watch is the reason that the Job held CPU.
- Rejected: Let each fix Job open the pull request. The owner decision gives the open to the open module.
- Chosen: End the Job at its checked branch and call the open module. The owner decision of 2026-11-13 records this split. The module docstring ends the Job at the data for
- Is the watch or the ready step still in the implement Job module?: No. feat(roadmap): end the implement Job at the draft pull request #6562 removed the in-Job check watch. The module docstring ends the run at the data for
publishand names no watch step. [sources: src/devops_cli/roadmap/implement/implement_run.py, CONTEXT.md] - Which value does the stall default take, and which order do the deadline settings keep?: The stall default goes from 4200 s to 2400 s. With the watch gone, the longest silent wait is the 1800 s command timeout. The 600 s margin gives 1800 + 600 = 2400 s. The extension 5400 s and the ceiling 14400 s stay above the stall, so stall < extension < ceiling holds. (best practice) [sources: src/devops_cli/config/defaults.py, docs/CLUSTER.md, tests/roadmap/implement/test_roadmap_implement_deadline.py]
- Chosen: Lower the stall default to 2400 s. With the watch gone, the longest silent wait is the 1800 s command timeout plus the 600 s margin.
- Rejected: Keep the stall default at 4200 s. It covers the 3600 s watch, which the Job no longer runs, so a hung Job holds CPU for 70 minutes.
- Rejected: Delete the stall setting. The Job still writes no line while a command runs, up to 1800 s, so the stall still ends a hung Job.
- Which documents state the deadline values and change in the same pull request?:
docs/CLUSTER.mdstates the deadline values.docs/CONFIGURATION.mdis the generated document. The deadline test istests/roadmap/implement/test_roadmap_implement_deadline.py. AGENTS.md rule 8 asks for the same pull request. [sources: docs/CLUSTER.md, docs/CONFIGURATION.md, tests/roadmap/implement/test_roadmap_implement_deadline.py, AGENTS.md] - Does the fix-Jobs gate still block this item?: No. The gate covered the removal of the watch. The remaining change lowers one default and updates its documents, so a fix-Job outcome cannot change it. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, CONTEXT.md, src/devops_cli/roadmap/implement/implement_run.py]
- Chosen: The gate belongs to the watch removal; the remaining change touches no watch path. A fix-Job outcome cannot change the stall default or its documents.
- Rejected: Keep the gate on this item. The item runs no watch, so the gate would block work that does not depend on it.
- Where does the live proof of the Job end run?: As a
Pending a person after the mergeacceptance criterion and as a comment on this issue after the release. ADR 0010 keeps a check that only a person can run in the change folder. (best practice) [sources: docs/adr/0010-openspec-is-the-spec-and-change-proposal-layer.md, docs/guidelines/agentic-jobs.md]- Chosen: A
Pending a person:bullet in the change'stasks.md, with the result as a comment on this issue. ADR 0010 records this place for a check that only a person can run, and the change folder already holds the task list. - Rejected: A separate issue. It adds a second tracking item for a check that ADR 0010 keeps in the change folder, and it waits on the same release.
- Rejected: An acceptance criterion that an offline test checks. No offline test can check the live Loki result.
- Chosen: A
- Does this item repeat the deletion of the watch code that feat(roadmap): end the implement Job at the draft pull request #6562 delivered?: No. feat(roadmap): end the implement Job at the draft pull request #6562 removed the in-Job check watch. The module docstring ends the Job at the data for
publish. This item lowers the stall default, updates its documents and adds a structural guard. [sources: src/devops_cli/roadmap/implement/implement_run.py, CONTEXT.md] - Does
CONTEXT.mdstill describe the watch orgh pr readyin the implement Job?: No. The term Implementing says the job ends at the draft. The watch row marks the draft ready and the fix-checks Job repairs a failed check. The glossary needs no change. [sources: CONTEXT.md]
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 12, 2026
Both change the implement Job lifecycle, but #4719 adds a gate before the PR while the candidate removes the watch and ready logic so the Job ends after its draft.devops-cli-service commentedon Nov 15, 2026
Alternatives check: not-applicable
Class: refactor. The check makes no search and no model call for an item of this class.
Tool: none found
Checked on 2026-11-15. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 16, 2026
A fact for this item, from the work on #5974 (PR #5981).
PR #5981 makes the open step check each pull request attribute with the rules of CI. For example, a diff of runtime code under a hidden type gets
featorfix. But the implement job writes the final title and body of a delivery pull request in_delivery_metadata(src/devops_cli/roadmap/implement/implement_run.py) withclient.update_pull, not with the open step. For a Staged item the job never calls the open step, because it takes over the plan pull request. So until this item moves the open of the implement job to the open step, a delivery title can still get a hidden type: #5940 is such a case.When this item removes the own PR code of the job, send the final title and body through
open_or_update(or end the job at the push and let the rowopenopen the pull request), so thatchecked_requestholds each write.devops-cli-service commentedon Nov 16, 2026
Refine cannot set this item to Ready at 9f40f15 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
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.
dan-petty commentedon Nov 20, 2026
Part A of #3702 is #6559 (PR #6562). It deletes
_checks,_watch,_repair_after_push,_readyand_publish_evidencefrom the implement Job: the Job ends when the draft holds the final title and body, recordsimplement.resultasdraftedand sets In Review. The ready path offix-checks, which the watch row runs, takes such a draft, and fix-checks Jobs repair a failed check.That PR keeps the default stall at 4200 s and changes only its text: the longest silent wait is now one command (1800 s). The lower stall of this item (2400 s) and its README values stay open here. A person decides whether this item closes when #6559 merges.
devops-cli-service commentedon Nov 21, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 22, 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.