Repository navigation
Description
Problem
The implement job succeeds in 40% of graded attempts (7 days to 2026-11-20). That is under the 60% band, so the owner rule asks for a re-architecture (#6519). The step uses pydantic-ai-harness Coder, but it turns off the parts of Coder:
- A 611-line command allowlist (
implement_shell_policy.py) replaces the stock shell. repo_context=Falsedrops AGENTS.md.- Skills and compaction are off.
- Each task group starts a new conversation.
The same model plans and builds in the devcontainer harnesses. Those harnesses give the agent a real shell, the project instructions and one conversation.
Change
Run Coder the way upstream runs it, in the runner image FROM devtools:
- Use the stock shell with no allowlist. Turn on
repo_context(AGENTS.md) and theSkillscapability on.agents/skills. Set autonomy to max. - Add
RequireVerificationwith the project checks, andWrapUpAtLimits. - Keep one conversation with compaction across the task groups of an item.
- Delete
implement_shell_policy.py, the refusal limits, theToolCallLogretry line, and the tests that cover only that code.
The controls are the Job container, no write RBAC to cluster services, the split container of #2695, branch protection, and a person who merges. Add no new gate, cap or screen.
Acceptance
- A test of
build_agentfindsCoderwith repository context, Skills, the stock shell and no allowlist. - 30 or more implement attempts on this version are graded. Every attempt counts, and the report gives the share of infrastructure failures.
Dependencies
- feat(roadmap): run the implement agent shell in a real sandbox #2695
- build(deps): move pydantic-ai to 2.68 and its retry parts #5098
Source: #6519
Alternatives check of 2026-11-20: not-applicable.
Class: refactor, no search.
Tool: none found.
Proposed design
Problem statement
The implement job succeeds in 40% of graded attempts, under the 60% band. The job turns off stock Coder features with a command allowlist, no repository context, no Skills, no compaction and a new conversation for each task group. This change runs stock Coder with a real shell, project context and one conversation, and removes the allowlist and refusal controls.
Acceptance criteria
Requirement: Stock Coder shell
The implement agent builder SHALL create a stock pydantic-ai-harness Coder with the harness shell, maximum autonomy and no command allowlist.
Scenario: Build agent uses the stock shell
- WHEN The test calls
build_agentfor an implement step with a sentinel verification list. - THEN It finds a
Coderwhose shell is the harness shell, whose autonomy is the maximum value, and whose tools include noimplement_shell_policytoolset.
Requirement: Repository context and Skills
The implement agent builder MUST enable repo_context and add the Skills capability for .agents/skills.
Scenario: Build agent enables project instructions
- WHEN The test calls
build_agentfor an implement step. - THEN It finds
repo_contextenabled and aSkillscapability whose path is.agents/skills.
Requirement: Verification and wrap-up
The implement agent builder SHALL add RequireVerification with the project checks and WrapUpAtLimits to the capabilities.
Scenario: Build agent adds the guard capabilities
- WHEN The test calls
build_agentwith a sentinel project-check list. - THEN It finds
RequireVerificationholding the sentinel list andWrapUpAtLimitsin the capabilities.
Requirement: One conversation
The implement job MUST reuse one conversation with compaction across the task groups of an item.
Scenario: Two task groups share a conversation
- WHEN The test runs two task groups through the implement step.
- THEN It finds the same conversation object passed to both runs and compaction capabilities enabled.
Requirement: Removed allowlist code
The implement package SHALL remove the implement_shell_policy module, the refusal limits, the ToolCallLog retry line and the tests that cover only that code.
Scenario: Allowlist module and retry are gone
- WHEN The test imports the implement package and records a refused tool call.
- THEN It finds no
implement_shell_policymodule, noShellRefusalimport inimplement_step, no refusal-limit symbols inimplement_limits, and no retry entry inToolCallLog.
Existing Tool Considered
The alternatives block records not-applicable for the refactor class and names no tool. The change keeps the existing open pydantic-ai-harness Coder dependency. That library supplies the agent loop, the shell, repository context, Skills and compaction. It does not supply the project check commands; the proposal passes them to RequireVerification and adds WrapUpAtLimits.
Key questions
- Which agent runtime should the implement job use?: Use the stock
Coderfrom the existingpydantic-ai-harnessdependency. Turn onrepo_contextand theSkillscapability on.agents/skills, use the stock shell, set autonomy to max, and addRequireVerificationwith the project checks andWrapUpAtLimits. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py, CONTEXT.md]- Chosen: Stock pydantic-ai-harness Coder. It is the existing upstream path and removes the local allowlist.
- Rejected: Keep the command allowlist. The issue records a 40% success rate and asks for a re-architecture.
- Rejected: Build a new agent loop. It adds code to build and keep where the dependency covers the loop.
- Which local code and settings implement the current shell restrictions?:
implement_shell_policy.pyholds the shell program tables.implement_limits.pyholds the refusal limits.implement_shell_refusal.pyimportsToolCallLogfor the refusal path.implement_tool_log.pyholds the retry line. [sources: src/devops_cli/roadmap/implement/implement_shell_policy.py, src/devops_cli/roadmap/implement/implement_limits.py, src/devops_cli/roadmap/implement/implement_shell_refusal.py, src/devops_cli/roadmap/implement/implement_tool_log.py] - What should replace the shell allowlist and refusal limits?: Delete
implement_shell_policy.py, the refusal limits inimplement_limits.py, theToolCallLogretry line and the tests that cover only that code. Use the stock shell with no allowlist. (best practice) [sources: src/devops_cli/roadmap/implement/implement_shell_policy.py, src/devops_cli/roadmap/implement/implement_limits.py, src/devops_cli/roadmap/implement/implement_tool_log.py, CONTEXT.md]- Chosen: Delete the allowlist and refusal controls. The stock shell replaces them and the issue forbids a new gate or cap.
- Rejected: Keep them behind a flag. A flag keeps two shell paths and the code that the issue asks to remove.
- How should the job keep context across the task groups of one item?: Keep one
Coderconversation with compaction across the task groups. Do not start a new conversation for each group. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py, CONTEXT.md]- Chosen: One conversation with compaction. The issue states that the devcontainer harnesses succeed with one conversation and project instructions.
- Rejected: A new conversation for each task group. It drops the context that the issue identifies as part of the failure.
- Which controls keep the stock shell safe?: Keep the Job container, no write RBAC to cluster services, the split container of feat(roadmap): run the implement agent shell in a real sandbox #2695, branch protection and the person who merges. Add no new gate, cap or screen. (best practice) [sources: CONTEXT.md, docs/adr/0004-ci-is-the-authoritative-gate.md]
- Chosen: Use the existing container and repository controls. CONTEXT.md defines the runner pod as the sandbox and the shell as no security boundary.
- Rejected: Add a new shell screen. The issue forbids a new gate, cap or screen.
- How does the project grade the success of this change?: Grade 30 or more implement attempts on the new version after rollout. Every attempt counts. The report gives the share of infrastructure failures. File this measurement as a follow-up issue, because the pull request cannot produce the attempts. (best practice) [sources: CONTEXT.md, docs/roadmap/job-success.md]
- Chosen: File a follow-up issue for the 30-attempt grade. The attempts occur after rollout and cannot complete in the code pull request.
- Rejected: Put the live grade in this pull request. The pull request cannot wait for 30 production attempts.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 20, 2026
The implement job succeeds in only 40% of attempts, which is an increased error rate below the 60% band and blocks roadmap progress.Both are siblings under the implement-job re-architecture (#6519); #3702 routes steps through a second-container shell backend while the candidate reconfigures Coder capabilities and removes the allowlist.devops-cli-service commentedon Nov 20, 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 Nov 22, 2026
Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.
28 remaining items
devops-cli-service commentedon Nov 23, 2026
Stopped at group 1.
Failed check:
pytest on base: tests/roadmap/implement/test_roadmap_implement_step.py, tests/roadmap/implement/test_roadmap_implement_step_output_cap.py, tests/roadmap/test_ro.Failure class:
outside_plan.Action taken:
repair, 1 fix round(s).Action left:
wait: wait for a person.pytest on base: tests/roadmap/implement/test_roadmap_implement_step.py, tests/roadmap/implement/test_roadmap_implement_step_output_cap.py, tests/roadmap/test_roReason:
Last message of the agent (a claim that no check verified): Fixed the collection error. Cause:
tests/roadmap/implement/test_roadmap_implement_step.pyimported the new moduleimplement_shellat module level, so on the base commit the whole file stopped at collection and no test could fail on an assertion. Changes -src/devops_cli/roadmap/implement/implement_shell.py:shell_environmentand_PASSED_VARIABLESmoved back toimplement_step.py(where the base has them), andstep_shellimportsshell_environmentfrom there inside the function, so the new module holds no base-time import of the step. -src/devops_cli/roadmap/implement/implement_step.py: keepsshell_environment, importsstep_shellfrom the new module, andbuild_agent/_tuneare unchanged otherwise. -tests/roadmap/implement/test_roadmap_implement_step.py: the module-level import ofimplement_shellis gone (shell_environmentcomes fromimplement_stepagain);test_the_shell_tool_refuses_a_program_outside_the_allowlist_and_the_run_goes_onimportsstep_shellinside the test;test_the_agent_of_a_step_is_stock_codernow starts withassert not hasattr(implement_step, "ShellRefusal"), so on the base it fails on an assertion. Verification - On the base (onlyimplement_step.pystashed), the three files collect and run: 175 passed, 3 failed, each a plainAssertionError— no collection error. - On the head: the three files give 178 passed;uv run devops ci test tests/roadmap/implement/test_roadmap_implement_step.py→ 152 pasThe job discarded this work. The diff is cut to 20000 characters. Read it before you retry:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.dan-petty commentedon Nov 24, 2026
Split the group.
devops-cli-service commentedon Nov 25, 2026
Released in v0.211.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.211.4
devops-cli-service commentedon Nov 25, 2026
Live since 2026-11-25 00:22 UTC