Skip to content

test(roadmap): add 26 cases to the implement golden set #5516

Done

Description

@dan-petty

Problem or Motivation

The implement golden set has 14 fixtures (tests/fixtures/roadmap_eval/implement). E2 and E3 of the approved pipeline split design (tracker #5482) need 40 or more for any power. The tests job will run about 8 attempts a week, so the golden set is its gate.

Proposed Solution & Architectural Design

Target Subsystem

Roadmap eval fixtures (tests/fixtures/roadmap_eval/implement).

Acceptance Criteria

  • A test: the implement golden set holds 40 or more cases, and each case passes the schema check.
  • A test: the base commit of each case exists.
  • A comment on this issue gives the count of cases for each scope.
  • No live proof applies: this item adds test data only.

Existing Tool Considered

The present fixture schema and the eval harness. Build: 300,000 to 500,000 agent tokens and 1 day.

Related

Tracker #5482, Phase 7. #5519, #5517, #4059, #4449, #5191.

Source: #5482

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

Proposed design

Problem statement

The implement golden set holds 14 fixtures, and E2 and E3 of the approved pipeline split design need 40 or more for any power. The tests job runs about 8 attempts a week, so this set is its gate. This item adds at least 26 cases from merged delivery PRs of devops-cli, keeps the present fixture schema, and proves that every recorded base commit exists. The set's size bound rises with the set, and the count of cases for each scope is derived from the cases themselves.

Acceptance criteria

Requirement: Set size

The implement golden set SHALL hold at least 40 cases.

Scenario: Forty cases load

  • WHEN uv run devops ci test tests/invariants/test_roadmap_eval_fixtures.py runs the set test over tests/fixtures/roadmap_eval/implement
  • THEN The test passes with at least 40 loaded cases.

Requirement: Schema and tree

Every implement golden-set case MUST pass the loader's schema and tree check.

Scenario: Every folder loads

  • WHEN The invariant test calls load_cases on tests/fixtures/roadmap_eval/implement
  • THEN Each folder holds case.json, issue.md, plan/proposal.md, plan/design.md, plan/tasks.md and the diff of each recorded result, and no case raises ImplementEvalError.

Requirement: Case content

Each new case MUST record the base commit, the merged plan, the issue text and the expected tests.

Scenario: A new case holds its four parts

  • WHEN The loader validates a new case of the implement golden set
  • THEN base is a full 40-character SHA, plan/ holds the three plan files of the merged change, issue.md holds the issue text, and tests_pass names the test commands that must pass.

Requirement: Base commit exists

The base commit of every implement golden-set case MUST resolve to a commit of the devops-cli repository.

Scenario: The gate row resolves each base

  • WHEN uv run devops ci --check --only roadmap-eval-commits runs on a full clone
  • THEN The row exits 0 and prints the count of stage and implement cases whose base commit is a commit of the repository, with no case named as refused.

Requirement: Size bound

The implement golden set SHALL stay under 1,000,000 bytes.

Scenario: The set fits its raised bound

  • WHEN uv run devops ci test tests/invariants/test_roadmap_eval_fixtures.py runs test_the_set_stays_small
  • THEN The total size of tests/fixtures/roadmap_eval/implement is under 1,000,000 bytes.

Requirement: Scope counts

The implement golden-set test MUST record the count of cases for each scope and MUST fail when the set does not match that record.

Scenario: Scope counts match the delivery mix

  • WHEN The scope test runs over tests/fixtures/roadmap_eval/implement and reads each scope from the fixture title
  • THEN It prints each scope with its count, and passes only when each count equals the distribution recorded from the merged delivery pull requests of the last 90 days and the counts sum to the number of cases.

Existing Tool Considered

harbor-framework/harbor (Harbor) is the open, maintained harness that this project already exports the implement fixtures to: devops roadmap eval harbor export writes one Harbor task folder for each fixture (docs/commands/roadmap.md:610, docs/TESTING.md:185). It lacks the cases: it runs the task folders that the project writes and holds no golden set from this repository's merged deliveries, so the 26 cases stay in the present implement fixture schema and the eval harness. The change builds no tool; the issue body gives the written cost of the data as 300,000 to 500,000 agent tokens and 1 day.

Key questions

  • What must each implement golden-set case record?: A case records base (a full 40-character SHA of this repository), source, issue, title, group, change, changes, tests_pass, allow_lost_tests and results in case.json, and the folder holds issue.md, plan/proposal.md, plan/design.md, plan/tasks.md and the diff of each recorded result. [sources: src/devops_cli/roadmap/implement/implement_eval.py:77, src/devops_cli/roadmap/implement/implement_eval.py:89, src/devops_cli/roadmap/implement/implement_eval.py:187, docs/ROADMAP_WORKFLOW.md:475]
  • How many new cases are needed?: At least 26 new cases: the set holds 14 fixture folders today, and the design needs 40 or more. [sources: openspec/changes/archive/2026-11-01-3030-implement-fixtures-eval/proposal.md:9]
  • Which checks prove the new cases?: The loader's schema and tree check proves the shape of each case, and the invariant test runs it over the real folder. The base-commit row of test(roadmap): check golden base commits in a devops ci row #4449 does not cover the implement cases: it loads only tests/fixtures/roadmap_eval/stage, and the implement loader reads no git, so no check resolves an implement base today. [sources: tests/invariants/test_roadmap_eval_fixtures.py:20, src/devops_cli/roadmap/implement/implement_eval.py:13, tests/gate/roadmap_stage_eval_commits.py:22, tests/gate/roadmap_stage_eval_commits.py:93]
  • Does this item need a live proof?: Yes, one: the base-commit row, which reads the git history. The schema, size and scope checks are offline tests. The body's claim that no live proof applies does not hold once each base commit is checked. [sources: docs/TESTING.md:76, tests/gate/roadmap_stage_eval_commits.py:90, .github/workflows/ci.yml:57]
  • How should the new cases cover scopes?: In proportion to the merged delivery pull requests of the last 90 days, with each scope that has a delivery getting at least one case. The scope is the Conventional Commit scope of the fixture title, and the test records the counts so the comment on the issue comes from the test output. (best practice) [sources: tests/fixtures/roadmap_eval/implement/2152-numeric-host-doubles/case.json:5]
    • Chosen: Proportional to the last 90 days. It matches the delivery mix that the eval measures, and the count is derived from the cases.
    • Rejected: Equal count per scope. It overweights rare scopes and weakens the eval.
    • Rejected: Random from all history. It misses the current delivery mix.
  • Which check proves that each implement base commit exists?: Extend the existing roadmap-stage-eval-commits row to read both golden sets and rename it roadmap-eval-commits, so one shallow-clone guard and one git resolution cover the stage and implement cases. (best practice) [sources: docs/TESTING.md:76, tests/gate/roadmap_stage_eval_commits.py:30, tests/gate/roadmap_stage_eval_commits.py:90]
    • Chosen: Extend and rename the existing row. One row holds one shallow-clone guard and one git cat-file resolution for both sets, and the name states what it checks.
    • Rejected: Add a second row for the implement set. It duplicates the shallow-clone guard and the git resolution that the stage row already holds.
    • Rejected: A pytest test that runs git. docs/TESTING.md:76 makes a check of committed files a row of devops ci, and test(roadmap): check golden base commits in a devops ci row #4449 removed exactly such a test.
  • How does the set stay within its size bound at 40 cases?: Raise MAX_BYTES in tests/invariants/test_roadmap_eval_fixtures.py from 300,000 to 1,000,000. The 14 fixtures already take about 275 KB, so 40 take about 790 KB. (best practice) [sources: tests/invariants/test_roadmap_eval_fixtures.py:15, tests/invariants/test_roadmap_eval_fixtures.py:86, openspec/changes/archive/2026-11-01-3030-implement-fixtures-eval/proposal.md:9]
    • Chosen: Raise the bound to 1,000,000 bytes. It holds 40 cases at the measured size per case and keeps a bound on the set.
    • Rejected: Keep 300,000 bytes and split the folder. load_cases reads one root and the eval runs one set, so a split needs code and changes the command's contract.
    • Rejected: Keep 300,000 bytes and cut each case. The issue text and the merged plan are real and cannot be shortened without weakening the case.
  • Which open tool covers the eval harness need?: Harbor (harbor-framework/harbor) is the open, maintained harness that the project already exports these fixtures to, and devops roadmap eval harbor export writes one task folder for each fixture. It supplies no cases, so the golden set stays in the project's implement fixture schema. [sources: docs/commands/roadmap.md:610, docs/TESTING.md:185]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    on Nov 13, 2026
  2. added
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  3. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable (test item; no search).

  6. added
    status/ready
    and removed
    status/new
    on Nov 18, 2026
  7. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 86358b6 (see proposed design in issue body).

  8. dan-petty commented on Nov 25, 2026

    @dan-petty
    OwnerAuthor

    Scope counts for the implement golden set (tests/fixtures/roadmap_eval/implement), from test_the_scope_counts_match_the_delivery_mix in tests/invariants/test_roadmap_eval_fixtures.py (81 total cases across 49 scopes: 14 baseline + 67 new cases, proportional to merged OpenSpec delivery pull requests of the last 90 days with at least 1 case per scope):

    • roadmap: 11
    • security: 7
    • k8s: 4
    • ai: 3
    • cli: 3
    • argo: 2
    • ci: 2
    • config: 2
    • github: 2
    • monitoring: 2
    • review: 2
    • service: 2
    • telemetry: 2
    • tests: 2
    • adr: 1
    • agent: 1
    • agents: 1
    • argocd: 1
    • cache: 1
    • cloudflare: 1
    • contributing: 1
    • dashboard: 1
    • deps: 1
    • design: 1
    • devcontainer: 1
    • docker: 1
    • docs: 1
    • exceptions: 1
    • gate: 1
    • gh: 1
    • git: 1
    • infra: 1
    • lint: 1
    • llm: 1
    • mcp: 1
    • openspec: 1
    • output: 1
    • pr: 1
    • rag: 1
    • release: 1
    • repos: 1
    • research: 1
    • sandbox: 1
    • scan: 1
    • sdlc: 1
    • terraform: 1
    • ui: 1
    • valkey: 1
    • vault: 1
  9. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  10. removed
    status/in-review
    on Nov 25, 2026
  11. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor
  12. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 01:52 UTC

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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions