Skip to content

refactor(roadmap): run implement from a neutral prompt - #8071

Draft
dan-petty wants to merge 4 commits into
mainfrom
refactor/8040-implement-from-a-neutral-prompt
Draft

dan-petty wants to merge 4 commits into
mainfrom
refactor/8040-implement-from-a-neutral-prompt

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement job and the model fix of the fix-checks job put checks of devops-cli between the agent and the repository (#8040): toolchain presets, verification commands, ruff and mypy step gates, a test form check, a fail-to-pass replay, scoped checks, a strength check and devops docs generate. In other repositories these stop items that a person can build, as the build of dan-petty/homelab#583 showed (#8021). By the owner decisions of 2026-12-01, a job gives the agent a prompt in a checkout of an up-to-date issue branch with pre-commit installed, the hooks of the repository run after the agent, and the pull request CI is the authority.

Closes #8040

Change: openspec/changes/archive/2026-12-01-8040-implement-from-a-neutral-prompt/

The implement job and the model fix of the fix-checks job run one stock
pydantic-ai-harness Coder agent in a checkout of the issue branch, with a
prompt that names no tool, path or command of this repository. The checks
of the agent's work are the pre-commit hooks of the repository, with the
configuration of its default branch, and then the pull request CI. A plan
is an OpenSpec change that `openspec validate` accepts.

The task-group steps, their gates, shell, broker, limits, trace,
amendment, toolchain presets, implement evaluations and Harbor tasks are
removed with their settings, messages, metrics, commands, specs and
tests. The tests of each guard that stays are written again against the
new runner: the environment of the shell and the hooks, the masking of
each text of the agent, the state file of `publish`, the permissions of
each token, the tokens of the git calls, and the grammar of a command.

The plans of #3429 and #7986 plan code that this change deletes, so
their change folders go with it.

Refs: #8040
Archive the change. The living specs of the implement job, its steps,
the plan amendment and the implement evaluation hold the new run of one
agent, and the specs that the old execution alone held are retired.

Refs: #8040
The module said that the agent cannot change the hook configuration of the
default branch. The run reads a copy in the scratch home of the agent, which
the shell of the agent can write. Only an edit of the file in the checkout
turns no hook off. The checks of the pull request are the authority.

Refs #8040
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Dec 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the review of this pull request.

Checks run on the three commits, rebased on main:

  • Full test suite in a clean environment: 27,425 passed, 7 skipped, none failed. Six help tests fail only when the agent variables CLAUDECODE and AI_AGENT are set.
  • ruff check, ruff format --check, devops openspec check, devops docs check and uv lock --check pass. The builder ran the other gate rows of devops ci that touch this change and they passed. mypy --strict showed 2 errors in design/charts.py for missing altair and vl_convert stubs in the builder's environment; CI is the check for that.
  • Each new security test was proved once to fail with its guard removed (about 45 mutations, each restored).
  • A second reader, who got the code and not our conclusions, reviewed the retained and new code for credentials, masking, publish checks, token permissions and planted programs. It found no path from untrusted text to a credential, to a shell that holds a secret, or to an unmasked GitHub write.

What the review did find:

  1. The scope guard of fix-checks is gone (OUTSIDE_PLAN, fix(roadmap): a fix step edits only the paths that the plan names #3824) together with the stray-file filter. A fix-checks commit can now change .github/actions/**, Makefile or .pre-commit-config.yaml. I traced the effect: no workflow that runs on pull_request uses a secret other than GITHUB_TOKEN, a person merges, and the diff shows the change. The implement agent already could edit any tracked file before this change. publish still refuses workflow files that the plan does not name. Adding .github/actions/ to that refusal is a small option for the owner; I did not add it.
  2. The module text said that the agent cannot change the hook configuration. The run reads a copy in the scratch home of the agent, which its shell can write. The last commit corrects the text. The hook run in the agent phase is advisory; the pull request checks are the authority.

Removed on purpose (owner decisions of 2026-12-01): toolchain presets, the command allowlist, the tests-kept, test-form, strays and strength guards, fix-checks tier 1 and the scope gate, the eval-score readiness gate, token budgets and step and item time limits (only max_requests, max_tool_calls and the Job deadline bound a run), the model ladder, the trace, and the regeneration of documents in rebase and fix-conflict. The change folders of #3429 and #7986 are removed because their requirements overlap this change; both issues are already closed. tomlkit is removed: no code uses it.

Before the release that carries this change rolls the Service image: the live ConfigMap must not hold ai.tasks.implement_split. The new code refuses that key and the pods would crash. I tested the ConfigMap of main against the new code: that key is the only one it refuses. The ConfigMap in this pull request no longer has it.

Follow-ups, not in this pull request: #8039 (the stage job still reads the Reads:, Changes: and Verification: groups), the implement_parallel and size readers of Changes: lines, the uv-seed image with no consumer, and failure classes with no producer.

CodeQL flags a URL literal on the left of `in` as an incomplete URL
substring check (py/incomplete-url-substring-sanitization). The line before
it already asserts that err.url equals the literal, so the next line
compares err.url with the text of the error.

Refs #8040
@devops-cli-service

Copy link
Copy Markdown
Contributor

Pull request #8071 has merge conflicts with main at commit c7da1b207a89. GitHub cannot merge it. Rebase the branch onto the current main, resolve the conflicts and push the branch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(roadmap): check job work with repository hooks only

1 participant