Skip to content

refactor(roadmap): re-architect stage and implement on Coder #6519

Open
2 of 3 issues completed
Open

Description

@dan-petty

Problem

The stage job succeeds in 47% and the implement job in 40% of graded attempts over 7 days (2026-11-20). Both are under 60%, so the owner band rule says: re-architect (owner, 2026-11-12: "Under 60% success rate - Basically a coin flip at this point, re-architecting is required"). Owner, 2026-11-20: "re-architect requires zooming out, looking at other approaches, comparable implementations (meaning having similar functionality, not necessarily used for the exact same use case), and robust solutions that we don't have to tediously maintain".

Kilo Code, Antigravity and Claude Code produce working plans in the devcontainer with the same DeepSeek model. A study of 2026-11-20 found the cause in the job design, not the model:

  • Stage has read-only tools and no shell, returns one strict JSON object with one schema retry, and each refused plan starts a new run with no history. About 20 gates run after the run, where the model never sees them.
  • Implement uses pydantic-ai-harness Coder but turns its parts off: a 611-line command allowlist replaces the stock shell, repo_context=False drops AGENTS.md, Skills and compaction are not used, and each task group starts a new conversation. The pins are 2.59/0.59; upstream is 2.71/0.71.
  • Of about 900 roadmap issues in four weeks, 263 added gates, 120 recovery, 113 telemetry, 75 shell-policy tools and 51 caps; none replaced the engine.

The owner chose the order (2026-11-20): first the current engines on the devtools image with a real shell, then a harness swap behind the same Job contract as a test of modularity. The Job container and no write access are the controls (owner: "all modern coding harness have an auto mode, and this runs in a job container, so it is much more controlled, just don't give plan/implement any write RBAC access to cluster services").

Experiment 1: run stock Coder the way upstream runs it

  1. fix(k8s): load only the needed Secret keys in runner Jobs #6518: runner Jobs load only the Secret keys they need.
  2. build(deps): move pydantic-ai to 2.68 and its retry parts #5098: pydantic-ai and pydantic-ai-harness to 2.71 / 0.71.
  3. feat(roadmap): run the implement agent shell in a real sandbox #2695: keep secrets out of the agent's reach with a split container in the Job pod: the agent container holds no App key and calls the model with a per-Job capped key; a trusted publish step pushes and opens the PR.
  4. refactor(roadmap): run implement on stock Coder with a real shell #6527: implement on stock Coder: unrestricted shell, AGENTS.md (repo_context) and Skills on, autonomy max, RequireVerification with the project checks, WrapUpAtLimits, one conversation with compaction across task groups; delete the allowlist policy and the limits code.
  5. refactor(roadmap): run stage on Coder in the runner image #6528, with feat(k8s): run the stage job in the runner image #6417: stage on Coder in the runner image: the agent writes the plan files and runs devops openspec new, devops openspec check and openspec validate; the cheap gates run in the loop as output validators; a refused plan continues the same conversation; delete the hand-written read tools.
  6. Measure: 30 or more attempts per job, every attempt counted (infra share reported, not excluded), success by forge outcome.

Experiment 2 follows: an open harness (Kilo CLI, OpenCode, or pax) behind the same contract, measured on the same cases.

Freeze

Until this tracker decides, no new gate, refusal, screen, cap, limit, retry, result-line, shell-allowlist or plan-shape-rule work on stage, implement or fix-checks. Such open issues name hold issue #6521 first in their Dependencies section, so stage and implement leave them, and each has a comment that links here. A person closes #6521 to lift the hold. Security fixes and reverts are exempt.

Depends on: #4361 (PR #6513).

Alternatives check of 2026-11-26: not-applicable.
Class: refactor, no search.
Tool: none found.

Proposed design

Problem statement

Re-architect stage and implement on stock Coder, and hold the freeze; Experiment 2 waits on the baseline measurement. The stage job succeeds in 47% and the implement job in 40% of graded attempts, under the 60% owner band. The plan replaces the project's hand-written stage and implement machinery with the open pydantic-ai-harness Coder: a real shell, AGENTS.md, Skills, one conversation with compaction, and output validators for stage. The Job container and no write RBAC to cluster services are the controls. Experiment 1 measures at least 30 graded attempts per job, and Experiment 2 follows after that measurement.

Acceptance criteria

Requirement: Implement uses stock Coder

The implement step SHALL construct the pydantic-ai-harness Coder with repository context enabled, the Skills capability and the stock shell, and SHALL run the project checks when the agent returns.

Scenario: Stock Coder settings

  • WHEN a test inspects build_agent in src/devops_cli/roadmap/implement/implement_step.py
  • THEN the test finds Coder with repository context enabled, a Skills capability, no allowed_commands or denied_operators, and the project checks after the run.

Requirement: One implement conversation

The implement job SHALL keep one Coder conversation with compaction across all task groups of an item.

Scenario: Conversation reuse

  • WHEN a test runs the implement step for two task groups with a scripted model
  • THEN the test finds one conversation history that holds both groups and ClearToolResults compaction enabled.

Requirement: Implement allowlist and retry line removed

The implement step MUST NOT use the project shell allowlist, the refusal limits or the ToolCallLog retry line, and SHALL give the agent the stock Coder shell.

Scenario: Allowlist removed

  • WHEN a test searches the implement source for implement_shell_policy, max_consecutive_refusals, max_refusals, ended_on and retries_text
  • THEN the test finds no import or use of them, and the step registers the stock Coder shell.

Requirement: Stage uses Coder with a real shell

The stage job SHALL build a pydantic-ai-harness Coder agent with the shell tool and SHALL let the agent write the plan files in the checkout.

Scenario: Stage Coder

  • WHEN a test inspects the stage job construction in src/devops_cli/roadmap/stage/stage_job.py
  • THEN the test finds a Coder capability with the shell tool and no read-only toolset.

Requirement: Stage job runs the runner image

The stage CronJob SHALL run the runner image, which holds git, Node and the dev dependencies that the agent's shell needs.

Scenario: Stage CronJob image

  • WHEN an operator runs uv run devops ci --check --only k8s
  • THEN the k8s row passes, and its check of CronJob roadmap-stage shows the runner image.

Requirement: Stage read tools removed

The stage job MUST NOT register the hand-written read tools and SHALL use the Coder file and shell tools instead.

Scenario: Stage tool registry

  • WHEN a test searches the stage source for the hand-written read tools and inspects the stage tool registry
  • THEN the test finds no hand-written read tool and finds the Coder file and shell tools.

Requirement: Stage plan validation

The stage job SHALL run devops openspec new, devops openspec check and openspec validate as output validators in the Coder loop.

Scenario: Plan validation

  • WHEN a test gives the stage job an invalid plan file
  • THEN the test finds the validator output in the same conversation and the next model call.

Requirement: Refused plan continues

The stage job SHALL continue the same Coder conversation after a refused plan instead of starting a new run.

Scenario: Refusal continuation

  • WHEN a test scripts a refused plan and a corrected plan
  • THEN the test finds one conversation with the refusal and the correction, and no new run.

Requirement: Attempt measurement

The measurement SHALL log and report every attempt and SHALL grade each job on at least 30 attempts with infra=false, with the infrastructure share and the all-attempts ratio reported beside the grade.

Scenario: Job grade measurement

  • WHEN an operator runs uv run devops roadmap eval grades --window 7d after the attempts
  • THEN the output shows at least 30 attempts with infra=false for stage and implement, the grade and its p by forge outcome, the all-attempts ratio and the infrastructure share.

Existing Tool Considered

Use the open (MIT), maintained pydantic-ai-harness Coder, which the project already pins and uses (src/devops_cli/roadmap/implement/implement_step.py:806, src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md:30). It ships with pydantic-ai 2.71.0 as harness 0.71.0 (#5098), and its documentation is https://pydantic.dev/docs/ai/harness/coder/ (fetched 2026-11-20). It covers the need: FileSystem (read_file, write_file, edit_file, list_files, grep), Shell (shell, no allowlist), RepoContext (AGENTS.md, CLAUDE.md), SubAgents, ClearToolResults compaction and ToolOutputLimits; the Skills capability (the skills extra) adds the SKILL.md procedures. The alternatives check of 2026-11-20 returned not-applicable (Class: refactor, no search; Tool: none found), so this proposal records the tool that the work uses. What it lacks: the Coder page of 2026-11-20 documents no verification gate and no wrap-up-at-limits setting, so the step runs the project checks after the run and bounds each run with pydantic-ai UsageLimits; its shell is unrestricted and is not a security boundary, so the Job container and no write RBAC to cluster services are the controls, and the split container of #2695 keeps the GitHub App private key out of the agent container. No replacement is built: Experiment 2 evaluates Kilo CLI, OpenCode or pax behind the same Job contract only after the Experiment 1 baseline.

Key questions

  • Which harness should the implement job use?: Use the already adopted pydantic-ai-harness Coder with repository context on (AGENTS.md), the Skills capability, the stock shell with no allowlist, one conversation continued with message_history across task groups, ClearToolResults compaction, and a run bounded by pydantic-ai UsageLimits; the step runs the project checks after the run. The Coder page of 2026-11-20 lists FileSystem, Shell, RepoContext, SubAgents, ClearToolResults and ToolOutputLimits and no separate verification or wrap-up setting, so verification stays the project's post-run checks and the bound is UsageLimits. (best practice) [sources: src/devops_cli/roadmap/implement/implement_step.py:806, src/devops_cli/ai/knowledge_base/devops_cli/libraries/pydantic_ai_harness.md, https://pydantic.dev/docs/ai/harness/coder/]
    • Chosen: Stock Coder with the documented settings. It is the open harness already in use, and it supplies the shell, repository context, Skills, sub-agents and compaction that the project replaces by hand.
    • Rejected: Keep the 611-line shell allowlist. It replaces the stock shell, drops repository context and Skills, and adds code that the project must maintain.
    • Rejected: Build a new implement harness. It repeats the function of an open harness that the repository already uses.
    • Rejected: Swap to Kilo CLI or OpenCode now. The owner put that harness swap in Experiment 2, after the Experiment 1 baseline.
  • Which harness should the stage job use?: Use Coder in the runner image with a real shell. The agent writes the plan files and runs devops openspec new, devops openspec check and openspec validate; the cheap gates run in the loop as output validators; a refused plan continues the same conversation; the hand-written read-only toolbox is deleted. The stage CronJob moves from the Service image to the runner image, which holds git, Node and the dev dependencies that the shell needs. (best practice) [sources: src/devops_cli/roadmap/stage/stage_tools.py:1, docs/CLUSTER.md:68, docs/CLUSTER.md:83]
    • Chosen: Coder in the runner image. It gives the stage job a real shell and the same harness as implement, behind the Job contract, and the runner image already holds the tools that the plan checks need.
    • Rejected: Keep the hand-written read tools. They give the model no shell and no path to write and validate plan files.
    • Rejected: Build a new stage engine. It repeats the function of the open harness that the repository already uses.
  • Should the shared DEVOPS_CLI_AI_API_KEY stay in the Job pods?: Yes. The owner decided on 2026-11-20 that the shared DEVOPS_CLI_AI_API_KEY stays in the Job pods for this phase and that no per-Job gateway key is added; the split container still keeps the GitHub App private key out of the agent container. (a person decides)
  • Should the project delete the shell allowlist and limits code?: Yes. Coder supplies the shell, and since harness 0.65 it answers a tool call that spends its retries with the last error as a failed result, so the ToolCallLog 'Last retries of <tool>' line (ended_on, retries_text) shows only for an error that Coder does not answer. The step deletes the 611-line allowlist, the max_consecutive_refusals and max_refusals settings, and that line with them. (best practice) [sources: src/devops_cli/roadmap/implement/implement_shell_policy.py:1, src/devops_cli/roadmap/implement/implement_tool_log.py:414, src/devops_cli/roadmap/implement/implement_step.py:806]
    • Chosen: Delete the allowlist and limits code. Coder supplies the shell and the retry result, so the project code adds maintenance and no needed function.
    • Rejected: Keep the allowlist. It replaces the stock shell and adds 611 lines to maintain.
    • Rejected: Keep the limits code. Coder already answers the tool retries that the code reports.
  • How should the measurement count attempts?: Log and report every attempt: the attempts, the all-attempts ratio and the infrastructure share. The grade itself comes from the attempts with infra=false, and under 30 such attempts the grade is too few, so run at least 30 graded attempts per job. Success is the success field of the result line, which the forge outcome sets. (best practice) [sources: docs/guidelines/agentic-jobs.md:76, docs/roadmap/job-success.md:86, CONTEXT.md:142, openspec/specs/roadmap-job-grades/spec.md:9]
    • Chosen: Report every attempt and grade on infra=false. The report shows the all-attempts ratio and the infrastructure share, and the documented grade rule floors p on the attempts with infra=false.
    • Rejected: Drop infrastructure attempts from the report. The report must show the infrastructure share and the all-attempts ratio; dropping them hides the outage.
    • Rejected: Fewer than 30 attempts. Under 30 attempts with infra=false the grade is too few, and no grade is given.
  • In what order should the re-architecture proceed?: First run the current engines on the devtools image with a real shell, then swap the harness behind the same Job contract as a modularity test. The Job container and no write RBAC to cluster services are the controls. The order follows the owner's <60 action, 'Re-architect the workflow', and the runner image already holds the dev tools that the shell needs. (best practice) [sources: docs/roadmap/job-success.md:85, src/devops_cli/roadmap/job_grade.py:137, docs/CLUSTER.md:68]
    • Chosen: Current engines first, harness swap second. The owner chose this order, and it tests modularity after the engine change.
    • Rejected: Harness swap first. It tests modularity before the current engines have a real shell.
    • Rejected: Keep the current design. Both jobs are under the 60% owner band, so the owner requires a re-architecture.
  • Should Experiment 2 start now?: No. Defer it until Experiment 1 has at least 30 graded attempts per job and a measured result. Then evaluate Kilo CLI, OpenCode or pax behind the same Job contract on the same cases. (best practice) [sources: docs/guidelines/agentic-jobs.md:157, docs/roadmap/job-success.md:86]
    • Chosen: Defer until the Experiment 1 baseline. Experiment 2 needs the measured baseline to compare an open harness.
    • Rejected: Start now. No baseline exists to judge the open harness.
  • Should the freeze on new stage, implement and fix-checks controls hold until this tracker decides?: Yes. The owner set the freeze in the issue body on 2026-11-20: no new gate, refusal, screen, cap, limit, retry, result-line, shell-allowlist or plan-shape rule work on stage, implement or fix-checks until this tracker decides. Security fixes and reverts are exempt. It follows the <60 owner action, 'Re-architect the workflow', which this tracker carries out. (best practice) [sources: docs/roadmap/job-success.md:85, src/devops_cli/roadmap/job_grade.py:137]
    • Chosen: Hold the freeze. The owner set it to stop more controls before the re-architecture decides the design.
    • Rejected: Allow new controls. It adds work that the re-architecture may delete.

Open questions

  • Should the shared DEVOPS_CLI_AI_API_KEY stay in the Job pods? (a person decides)

Fit

Needs splitting into 3 items:

  1. refactor(roadmap): implement on stock Coder - repository context and Skills on, stock shell with no allowlist, one conversation with compaction across task groups; delete the allowlist, the refusal limits and the ToolCallLog retry line.
  2. feat(roadmap): stage on Coder in the runner image - write and validate plan files with a real shell, run devops openspec new, devops openspec check and openspec validate as output validators, continue the same conversation after a refusal, delete the hand-written read tools, and move CronJob roadmap-stage to the runner image.
  3. feat(roadmap): measure stage and implement on stock Coder - log and report every attempt, grade on at least 30 attempts with infra=false, and report the all-attempts ratio and infrastructure share with uv run devops roadmap eval grades.

Suspected block

None.

Dependencies

#4361, #6518, #5098, #2695, #6417

Sub-issues

Sub-issues

2 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    type/refactor
    source/agent
    scope/roadmap
    status/new
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
  3. added
    effort/high
    value/high
    priority/p1-high
    owner/agent
    on Nov 20, 2026
  4. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Owner decision (2026-11-20): the shared DEVOPS_CLI_AI_API_KEY stays in the Job pods for now; no per-Job gateway key in this phase. The split-container boundary of item 3 still keeps the GitHub App private key out of the agent container.

  5. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Item 2 (#5098) is in draft pull request #6524: pydantic-ai 2.71.0 and pydantic-ai-harness 0.71.0, with no new feature adopted.

    For item 4 (implement on stock Coder): since harness 0.65, Coder answers the call that spends the retries of a tool with the last error as a failed result, and the run goes on. So the "Last retries of " line of ToolCallLog (#2866, ended_on and retries_text) shows in a step only when an error reaches the log that Coder does not answer. Item 4 can delete that code with the limits code. The comment on #6524 lists each behavior change that the upgrade forces, for the grade of the next runner version.

  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  7. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Two defects of the current stage and implement design, found on 2026-11-20 when an agent took over #6444 (PR #6546) after the implement Job stopped. Under the hold #6521 they are evidence for this re-architecture, not separate fixes.

    1. A stop report hides its cause. The implement Job of fix(roadmap): refine watches numbers and names as file paths #6444 stopped at group 2 with "Failed check: pytest on base: tests/roadmap/stage/test_roadmap_stage_rejected.py". pytest had exited with status 3 (an internal error). The fail-to-pass replay keeps only the last 256 characters of the output, stdout first and stderr last, so the report held only a pytest-asyncio warning, and the pod log did not hold the cause either. A replay of the same file on the same commits (4 random orders) gave 1 expected failure and 34 passes each time, so the cause could not be found. Need for the new design: keep the full output of each check run (or at least stderr in full) with the result, so that a stop can be diagnosed.
    2. A plan-shape rule matches a word, not a change. The stage plan registry gate matches the prefix CONST_ROADMAP_ anywhere in a task text and then asks the task to name tests/roadmap/test_roadmap_limit_classes.py, also when the plan adds no constant (the constant of fix(roadmap): refine watches numbers and names as file paths #6444 was already registered there). The plan of fix(roadmap): refine watches numbers and names as file paths #6444 had to name that file only to say that it does not change. Need: a rule that reads the change (a new constant in the diff), not the words of the plan.
  8. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    A defect of the current stage and implement design, found on 2026-11-21 when an agent filed a set of items across dan-petty/infra, dan-petty/homelab and dan-petty/devops-cli. Under the hold #6521 it is evidence for this re-architecture, not a separate fix.

    A blocker in another repository holds no item back.

    • The Dependencies parser reads only references in the same repository: _ISSUE_REF_RE (src/devops_cli/roadmap/refine/refine.py:2541) skips owner/repo#N.
    • RoadmapStore.blocked_by (src/devops_cli/roadmap/stores/store.py:1327-1329) drops a GitHub blocked_by link to an issue of another repository.
    • Result: a homelab item whose Dependencies section names dan-petty/infra#N can go to stage and implement before that infra issue merges and has a release tag. An agent must keep the order by hand.
    • Requirement for the new design: read the blockers of other repositories, from the Dependencies section (owner/repo#N) and from the GitHub issue dependencies, and hold the item while one of them is open. The repository of the blocker must be one that the Service manages, or the job must be able to read it.
  9. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Evidence for the measure of implement: four implement stops of 2026-11-21 are infrastructure failures, not results of the design. Each one stopped at group 1 with /app/.venv/bin/python: No module named pytest (#6603 09:51Z, #4147 14:18Z, #6522 15:50Z, #6627 19:29Z). The base replay started the image Python, which has no dev group since #6517. #6688 (PR #6692) fixes the replay. It adds no gate, cap or rule, so the freeze does not apply. Count these four attempts in the infra share.

  10. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Update to the comment of 2026-11-21 on the base replay stops: a fifth item, #6633, stopped at 23:50Z with "No module named pytest", because its Job started on runner:v0.189.0 before the 0.190.0 release. Count 5 stops (#4147, #6522, #6603, #6627, #6633) as infra failures, not as plan or agent failures.

    After release 0.190.0 (#6688), the Job of #6603 proved both of its behavior groups fail on the base commit and opened draft #6716. All 5 stops are cleared with implement: retry.

  11. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Evidence: after an implement: retry cleared a stop, the watch row marked a plan-only draft ready, and the Job did not run first.

    Timeline of #6522 (PR #6635, a Staged item that delivers on its plan pull request):

    The post-merge review of #6635 found that the delivered check matches no real job name, which is now P0 #6734. #6633 (PR #6701) shows the same defect. Its Job on 0.189.0 stopped at group 1 at 23:50Z and left the head at 7eccdc1 (10 tasks, none ticked). The Service cleared the stop at 23:53Z, and the bot marked #6701 ready at 23:56:12Z with no new Job. Another session pushed the implementation at 01:36Z, and the PR merged at 01:42Z. The other three retried items (#4147, #6603, #6627) had their own branch and draft from a new Job, so the watch row marked nothing ready for them before the Job ran.

    What to look at in the re-architecture: the ready path of the watch row, for a plan pull request that implement delivers on, after a stop is cleared.

  12. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Evidence for the re-architecture (implement job), 2026-11-22: a Service implement pull request added a required Secret and gave no person step.

    • PR fix(k8s): Scrape the SearXNG engine metrics #6755 (run devops-cli-implement-devops-cli-4201-da3228, merged 2026-11-22 13:21 UTC) adds the Secret devops/searxng-metrics-auth: k8s/devops/searxng/deployment.yaml:69 (init container render-settings) and k8s/devops/searxng/servicemonitor.yaml:19. k8s/README.md:821 says that a person stores searxng_metrics_password and runs devops k8s push-secrets --only devops/searxng-metrics-auth before the Deployment rolls out.
    • The PR body and the PR comments name no person step and no Secret.
    • Live, 8 hours later: kubectl -n devops get secret searxng-metrics-auth gives NotFound. The new pod searxng-ff6f7b56-* stays in Init:CreateContainerConfigError. The Deployment has 1 of 2 replicas ready, and the Application devops is Degraded.

    Requirement for the new design: when a change adds a Secret or a Secret key (a new row of the Secret table of k8s/README.md, or a new secretKeyRef/secretRef name), the job puts the person step and its command in the first line of the ready report, so the owner pushes the Secret before the merge.

  13. added a commit that references this issue on Nov 23, 2026
  14. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Evidence for step 6 of Experiment 1 (the measure), from the result lines of 7 days (Loki, roadmap job result:, read 2026-11-26T00:00Z). Every attempt is counted, and the infra share is reported apart.

    Stage on stock Coder (release 0.201.6 and later, #6883):

    Attempts Infra Graded Success p Tokens for each success Seconds for each success
    Before 144 56 88 34 0.39 30.7 M 8,331
    After 121 91 30 19 0.63 26.8 M 6,569
    • The 30 graded attempts give the grade 60 (Ineffective), up from <60. The class parser is gone (14 before, 0 after).
    • The failures after the change: plan_defect 8, needs_split 2, timeout 1.
    • No success is a first pass. A plan that passes still takes 7 plan calls, 3 gate returns and 2 verify rounds (medians), which is 14.8 M tokens and 69 minutes for each graded attempt (medians).
    • 88 of the 91 infra attempts are the spent provider key of 2026-11-25 (fix(ai): read an HTTP 402 of the provider as a spent key #7261).

    Implement on stock Coder (release 0.211.4 and later, #7031): 7 Jobs and 0 graded attempts, so the measure has no data. 3 Jobs stopped on the spent key. 3 Jobs are the "left this item without a result" stop that #7085 corrected in 0.216.0 (#4709 two times, #2144). 1 Job is the defect below. Before the change: 22 of 33 graded attempts (0.67).

    Defect of the design: two rows act on one green plan draft. The implement row takes a Staged item when its plan pull request is a draft with passed checks (_pull_reason, roadmap/implement/implement.py). The watch row marks the same draft ready on the same state. In 4 Jobs of 2 days the implement row created the Job, the watch row marked the draft ready 1 to 5 minutes later, and the Job left its own item out: "Its plan pull request #N is ready for review and awaiting merge."

    Item Job ended Plan PR
    #4439 2026-11-24T01:55Z #6946
    #4562 2026-11-24T03:07Z #6955
    #4649 2026-11-24T14:30Z #6995
    #4745 2026-11-25T22:21Z #7255

    Each case costs one runner Job of about 3.5 minutes, a ci_infra stop that is no infrastructure failure, two comments on the item and one of the 4 continuations. The other order is worse: a Job that starts first builds on a draft that the watch row then marks ready (the #6522 case in the comment of 2026-11-22).

    Requirement for the new design: one row owns a green plan draft, and a Job that leaves its item out on purpose records no stop.

  15. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Decision record, 2026-11-26 (owner: "proceed in accordance with best practices on all outstanding items").

    1. The hold chore(roadmap): hold incremental stage and implement work #6521 stays. Stage has its measure: 0.63 on 30 graded attempts, grade 60, with a 95% interval of 0.46 to 0.78 that still includes <60 (test(roadmap): grade 30 stage attempts on the Coder stage agent #6637, closed with the numbers). Implement has no graded attempt on stock Coder (test(roadmap): grade 30 implement attempts on stock Coder #6768 stays open). The action of the grade 60 is "Look for implementation alternatives, or serious defects that a fix can correct", which is not the incremental work that the hold stops. A person closes chore(roadmap): hold incremental stage and implement work #6521.
    2. Experiment 2 starts for stage. feat(roadmap): trial an open harness for the stage agent #7269 (sub-issue, P1) is the trial of one open harness behind the same Job contract, on a share of the live attempts, with a decision rule: replace Coder at 0.80 or more, or at 15 points or more over Coder with no more tokens for each success; else delete the trial code.
    3. Implement waits for its measure. No decision before 30 graded attempts (test(roadmap): grade 30 implement attempts on stock Coder #6768).
    4. Defects with a fix that this window found:
    5. Not in this tracker: refine has no result for an item that cannot be built (feat(roadmap): refine reports an item that cannot be built #7266), and the park design of feat(roadmap): park jobs while the gateway is offline #5967 closed as not planned, because fix(ai): read an HTTP 402 of the provider as a spent key #7261 uses the failure ledger that exists.
  16. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Evidence from the review of the project brain (#4624, 2026-11-26). Two cases in which the pipeline left an item in a false state. No fix item is filed, as the hold #6521 asks.

    1. Implement marked a task of another repository done. Task 4.1 of feat(k8s): give valkey-devops one ACL user for each role #4704 changes dan-petty/homelab. The runner Job cannot write there. The archived tasks.md holds [x] for the task, the pull request merged, and the release comment said "Live". Nothing changed in homelab, and the cluster has no ACL user (see the comment on feat(k8s): give valkey-devops one ACL user for each role #4704). A task whose Changes: names another repository needs its own item in that repository, or a Pending person line, never [x].
    2. An answered stage question does not start the item again. The stage job stopped feat(roadmap): link reference implementations in each checked item #4672 on 2026-11-24 with the owner question "Split the group or raise the budget?". The owner answered "Split the group." the same day, and refine wrote the split into the design on 2026-11-26. The record key stage.needs_split still holds the item: devops roadmap explain 4672 says "A person decides, or runs the job with --item 4672". So the answer of the owner changed the design and not the state, and the item waited for a second action of a person.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highowner/agentpriority/p1-highscope/roadmapsource/agentstatus/newtype/refactorvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions