Skip to content

docs(openspec): fix plan #2373 measure coverage and branch cost - #3038

Merged
dan-petty merged 1 commit into
mainfrom
docs/2373-fix-plan
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
docs/2373-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This change corrects the plan of #2373 in place. The Service staged the plan in PR #2987. An evaluation on 2026-11-01 found defects in it.

The corrected plan now does these things:

  • It names the real change folder. The old plan named a folder that does not exist.
  • It uses the current gate command. The old plan copied a command that wrote XML.
  • It drops the spec delta. A benchmark record has no behavior that a test can assert.
  • It lists the four configurations and the guard for an idle host.
  • It gives a repeatable check for each task.
  • It maps each acceptance criterion to a task group.

The change touches only the plan folder of #2373. It changes no code and no test.

Plans #2373

The plan named a change folder that does not exist, copied a gate command that wrote XML, and added a spec delta for a benchmark record. The plan now names the real command of the gate and checks the premise with command output. It fixes the four configurations, the idle-host guard and the way to time the serial end. It has no spec delta, and it maps each acceptance criterion to a group.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes to the plan

  • The proposal, the design and the tasks name the real change folder 2373-measure-what-coverage-and-branch-measurement.
  • The Feasibility section now checks the premise against the current gate command (ci.py) and the spec of ci-coverage-reports. The gate writes no XML report (perf(ci): the gate writes no coverage XML, and the clean-up keeps the combined data #2582).
  • The spec delta is deleted. .openspec.yaml now holds skip_specs: true.
  • Task 1.2 names the six configurations: none, lines, branches, ctrace, lines-keep and lines-noreport. It gives the script that records user, system and wall time.
  • The idle-host guard reads /proc/loadavg before each run and stops after 30 minutes.
  • Each verify step is a command with a stated result.
  • The result table goes in the pull request description of the implement PR and the cost statement goes on ci(coverage): Enable branch coverage and upload coverage xml as artifact #2163, as the issue asks. The plan keeps no result file in the change folder.
  • The empty "docs generate" step of each group is removed.
  • The path of test_cli_startup_imports.py is corrected.

Evaluation findings (PR #2987)

Confirmed against origin/main and fixed:

  • Wrong output folder (major).
  • Stale gate command with an XML step (major).
  • Spec delta in conflict with the existing spec, and a delta that no test can assert (major).
  • Four configurations not named (major).
  • Verify commands that do not verify (major).
  • Result placed in change-folder files instead of the PR and ci(coverage): Enable branch coverage and upload coverage xml as artifact #2163 (major).
  • Empty documentation step in each group (minor).
  • Wrong test path in Feasibility (minor).
  • Impact section lists the wrong files (nit).

Not confirmed: none.

Verification

  • openspec validate --strict: passed.
  • uv run devops openspec check: passed.
  • uv run pytest tests/invariants/test_change_folders.py -n 0 -q: 16 passed.
  • A path script checked every path in the plan against origin/main. The paths it reports as missing are scratch files, system paths, a third-party library path and git refs, on purpose.
  • The branch changes only the plan folder of perf(ci): measure coverage and branch cost #2373. The merge of origin/main was a no-op.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 13:01
@dan-petty
dan-petty merged commit 1714b98 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2373-fix-plan branch November 1, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant