Repository navigation
Description
Problem or Motivation
The owner asked if a comment in a scaffolded file helps the model. On the delivery path the Coder edits files in place, so a header comment gets to the model. E2 of the approved pipeline split design (tracker #5482) measures it.
Proposed Solution & Architectural Design
- Add an arm option to
devops roadmap eval implement. Arm A: test and module stubs fromtasks.md. Arm B: the same stubs, each with a header comment (the behavior, the test path rule and the criteria). - Measures: implement success, test strength (feat(roadmap): new tests of an implementation are checked for strength #3051), and tokens for each success.
- Use the A/A pass, the power limit and the decision rule of E1 on 40 or more fixtures.
- A live arm, if B is adopted, uses the trial mechanism of feat(roadmap): trial a model tier on a share of a job's attempts #5177.
Target Subsystem
Roadmap Service and roadmap jobs (src/devops_cli/roadmap/implement/, the eval commands).
Acceptance Criteria
- Test first: with a fake model, arm B gives the Coder the header comments and arm A does not. The test fails on the base.
- A comment on this issue gives the A/A result, then the measures of each arm and the decision.
- If B is adopted: live proof: after the release, the implement Job runs arm B as the App through a feat(roadmap): trial a model tier on a share of a job's attempts #5177 trial. A comment gives the result lines with the trial name.
Existing Tool Considered
The E1 harness and the pydantic-ai-harness Coder. Build: 100,000 to 200,000 agent tokens and 0.5 day. Model spend: approved by the owner from the A/A pass.
Related
Tracker #5482, Phase 7. Depends on #5516 and #5518. #5501, #5177.
Source: #5482
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)
Alternatives check of 2026-11-23: partly.
Tool: promptfoo/promptfoo (https://github.com/promptfoo/promptfoo), MIT, last activity 2026-11-23, maintained.
Reason: Searches found promptfoo, which compares prompt variants on declarative test cases with token cost, but it gives no Python fake-model test, no test-strength score and none of the E1 A/A, power or decision rules.
Covers:
- Side-by-side prompt variant comparison on one test set
- Declarative test cases with assertions and pass rates
- Token and cost figures for each run
Lacks:
- No offline fake-model test that arm B gets header comments
- No test-strength score, A/A pass, power limit or decision rule
- Node toolchain beside the Python E1 harness
Proposed design
Problem statement
The devops roadmap eval implement command cannot compare stubs with and without a header comment. On the delivery path the Coder edits files in place, so a header comment in a scaffolded file reaches the model. This item adds a repeatable --arm option, the header comment of arm B, and an offline fake-model test that shows the difference between the arms. It also prints the A/A result, the measures and the decision of the E1 rule, and refuses a run on fewer than 40 fixtures. The measured run and the live trial go to their own issues. The item waits on #6521 and the re-architecture of the stage and implement jobs.
Acceptance criteria
Requirement: Arm option
The devops roadmap eval implement command SHALL take a repeatable --arm option with the values a and b and SHALL use a alone when the option is absent.
Scenario: No arm option keeps arm A
- WHEN A test invokes the command in process with a fake model and no
--armoption. - THEN The request that the fake model records holds the stub text and no header comment.
Requirement: Arm A stub
Arm A SHALL give the Coder the test stub and the module stub of the task group with no header comment.
Scenario: Arm A passes the plain stub
- WHEN A test runs the command with
--arm aand a fake model. - THEN The request that the fake model records holds the stub text of the task group and no header comment.
Requirement: Arm B header comment
Arm B SHALL give the same test stub and module stub, each with a header comment that states the behavior, the test path and the criteria of the task group.
Scenario: Arm B passes the stub with the header comment
- WHEN A test runs the command with
--arm band a fake model. - THEN The request that the fake model records holds the stub text and a header comment with the behavior sentence, the test path and the criteria text.
Requirement: Arm difference
The two arms MUST differ only by the header comment.
Scenario: The two recorded requests differ only by the header comment
- WHEN A test runs both arms with the same fake model and the same task group.
- THEN The two recorded requests are equal after the test removes the header comment lines from the arm B request.
Requirement: Measurement report
The command SHALL print the A/A result, the implement success, the test strength and the tokens for each success of each arm, and the decision of the E1 rule.
Scenario: The report holds each measure and the decision
- WHEN A test runs both arms on a fixture set with a fake model and a fake test-strength score.
- THEN The report holds one A/A result line, one line for each arm with its implement success, its test strength and its tokens for each success, and one decision line.
Requirement: Fixture minimum
The command MUST refuse a run on fewer than 40 fixtures and MUST name the count and the minimum.
Scenario: 39 fixtures stop the run
- WHEN A test runs the command on 39 fixtures with a fake model.
- THEN The command exits with a typed stop whose message names 39 fixtures and the minimum of 40.
Requirement: Command documentation
The pull request MUST regenerate the generated command documentation that the new option changes.
Scenario: The docs row passes
- WHEN The
docsrow ofStatic Analysisruns on the pull request. - THEN The row passes with the regenerated
docs/commands/roadmap.md.
Existing Tool Considered
promptfoo/promptfoo (https://github.com/promptfoo/promptfoo), MIT, last activity 2026-11-17, maintained. The alternatives check of 2026-11-17 in the issue body gives the verdict partly. The comment of that check lists what the tool lacks: no fake-model test that arm B gets the header comment, no test-strength score, no A/A pass, power limit or decision rule, and a Node toolchain beside the Python harness. This item keeps the E1 harness and the pydantic-ai-harness Coder and builds the arm option, the header comment and the offline test in Python. Written cost of that code: 100,000 to 200,000 agent tokens and 0.5 day.
Key questions
- Where does the eval implement run live?: The run is
run_caseinsrc/devops_cli/roadmap/implement/implement_eval_run.py, and the CLI command issrc/devops_cli/commands/roadmap_eval_implement.py. The test support objectModelScriptattests/support/model_script.py:88records the requests of a fake model. [sources: src/devops_cli/roadmap/implement/implement_eval_run.py:261, src/devops_cli/commands/roadmap_eval_implement.py, tests/support/model_script.py:88] - Which tool runs the two-arm comparison?: Keep the E1 harness and the pydantic-ai-harness Coder. The alternatives check gives promptfoo/promptfoo
partly, and its comment lists the missing fake-model test, the test-strength score, the A/A pass and the decision rule. The arm option, the header comment and the offline test go into the Python harness. (best practice) [sources: docs/guidelines/agentic-jobs.md, src/devops_cli/roadmap/implement/implement_eval_run.py:261, tests/commands/test_roadmap_eval_implement.py]- Chosen: Extend the E1 harness. It holds the Coder, the A/A pass, the power limit and the decision rule, so the arm option is one option on its command.
- Rejected: promptfoo/promptfoo. The alternatives check gives it
partly; it lacks the fake-model test and the E1 rules, and it adds a Node toolchain.
- What is the shape of the arm option?: A repeatable
--armoption with the valuesaandb, defaultaalone. The command already takes a repeatable list option, so one repeated flag gives both arms in one run and keeps the current invocation. (best practice) [sources: src/devops_cli/commands/roadmap_eval_implement.py]- Chosen: Repeatable
--arm a|b. One repeated flag gives both arms in one run and keeps the default behavior. - Rejected: Two boolean flags. Two flags can select both or neither and make the invalid states possible.
- Rejected: An environment variable. The option stays out of the command help and the job record.
- Chosen: Repeatable
- What does the header comment hold?: Three parts: one sentence of the behavior of the unit, the test path of the unit with its rule, and the criteria of the task group. The plan reader already gives the behavior kind, the mirrored test path rule and the criteria section, so the comment comes from the plan, not from new prose. (best practice) [sources: src/devops_cli/roadmap/plan_read.py, src/devops_cli/roadmap/step_files.py, docs/ROADMAP_WORKFLOW.md]
- Chosen: Behavior, test path and criteria. The issue body names these three parts, and the plan reader already holds each one.
- Rejected: The full task group text. It repeats the plan in each stub and inflates the tokens of the arm.
- Rejected: The criteria alone. The body names three parts, and the behavior and the test path guide the edit.
- How does the offline test tell arm A from arm B?: A scripted fake model records each request.
ModelScriptkeeps the messages of each request, andrun_casetakes a model, so the test runs both arms on the same task group and asserts that the two requests differ only by the header comment. (best practice) [sources: tests/support/model_script.py:88, src/devops_cli/roadmap/implement/implement_eval_run.py:261, tests/roadmap/implement/test_roadmap_implement_eval_run.py]- Chosen: Record the request of a fake model. It is offline and cheap, and it asserts the exact difference between the arms.
- Rejected: Render the stub files and diff them. It checks the same fact through a slower path.
- Rejected: Run a live model. It costs model spend and gives no offline check.
- Which statistical rules and fixture count apply?: The A/A pass, the power limit and the decision rule of E1, unchanged, on 40 or more fixtures. The command refuses fewer than 40. The guideline gives the same statistical base: the Wilson 95% interval, no grade under 30 attempts, and the tokens of all attempts divided by the successes. (best practice) [sources: docs/guidelines/agentic-jobs.md, docs/roadmap/job-success.md]
- Chosen: Reuse the E1 rules. One rule set to keep, and the results compare with the earlier evals; the guideline gives the same interval and attempt floor.
- Rejected: New rules for this eval. Two rule sets to keep and no common baseline.
- Rejected: promptfoo's comparison with no power rule. It gives no A/A pass and no power limit.
- Does the measured comparison belong to this item?: No. It goes to its own issue. The owner approves the model spend from the A/A pass, and the run needs the fixtures of test(roadmap): add 26 cases to the implement golden set #5516 and feat(roadmap): scaffold makes the delivery branch and its stubs #5518. This item builds the report and the 40-fixture minimum offline, and the run writes the result comment. (best practice) [sources: docs/guidelines/agentic-jobs.md, docs/roadmap/job-success.md]
- Chosen: Defer the measured run. The spend decision and the fixture set are outside this pull request.
- Rejected: Keep the run in this item. The item then waits on a person's spend decision and on the fixtures.
- Does the live arm B trial belong to this item?: No. It goes to its own issue. It waits on the adoption decision of arm B, on a release, and on the trial mechanism of feat(roadmap): trial a model tier on a share of a job's attempts #5177. The guideline runs a job in
planbefore it acts, and the grade needs 30 or more attempts after the release. (best practice) [sources: docs/guidelines/agentic-jobs.md]- Chosen: Defer the live trial. It waits on an outside event and a person's decision.
- Rejected: Keep the trial in this item. The item cannot close before the release.
- Does the item proceed while chore(roadmap): hold incremental stage and implement work #6521 is open?: No. The reply of 2026-11-20 freezes the item: stage and implement leave it while chore(roadmap): hold incremental stage and implement work #6521 is open. After the experiments of refactor(roadmap): re-architect stage and implement on Coder #6519 a person closes chore(roadmap): hold incremental stage and implement work #6521, and the item continues, or closes this item as not planned. The item waits on that dependency and is not blocked. (best practice) [sources: CONTEXT.md]
- Chosen: Wait on chore(roadmap): hold incremental stage and implement work #6521. The reply of 2026-11-20 freezes the stage and implement jobs for this item, and waiting on another item is a dependency.
- Rejected: Proceed now. The stage and implement jobs leave the item while chore(roadmap): hold incremental stage and implement work #6521 is open, so no step can run.
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 13, 2026
Both use the E1 implement eval harness, but the candidate adds a header-comment arm option while #3030 delivers the fixture set and scoring command.devops-cli-service commentedon Nov 17, 2026
Alternatives check: partly
Reason: Searches found general LLM eval harnesses; promptfoo compares prompt variants over fixtures with pass-rate and token metrics, but the Coder wiring, test-strength scoring and power rule stay project work.
Tool: promptfoo/promptfoo (https://github.com/promptfoo/promptfoo), MIT, last activity 2026-11-17, maintained.
Covers:
Lacks:
Searches (9)
Tools considered:
Searches run:
Sources:
A person decides what this check of 2026-11-17 means for the item.
devops-cli-service commentedon Nov 18, 2026
Refine cannot set this item to Ready at 86358b6 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.
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 in the section Proposed design of the body.