Skip to content

docs(openspec): plan #2176 Settle the 26 audit rows by mutation runs - #5449

Merged
dan-petty merged 4 commits into
mainfrom
test/2176-use-mutation-to-merge-or-delete
Nov 14, 2026
Merged

dan-petty merged 4 commits into
mainfrom
test/2176-use-mutation-to-merge-or-delete

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2176

The 2026-10-24 coverage audit named 26 test files that add no line coverage. Commit 513bb31 moved most of them into package folders and four are gone, so the record in docs/TESTING.md first settles each row against this tree. The change repairs the mutation test selection and the copy list in pyproject.toml, so a stats run completes. It then records, for each of the 22 remaining rows, the mutants the whole suite kills and the mutants that survive without the file, deletes each file that kills no mutant of its own or moves its one distinct case into the mirror module of its subject, and keeps each file that kills a mutant of its own. No invariant test is deleted and the coverage floor stays.

Change: openspec/changes/2176-use-mutation-to-merge-or-delete/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 13, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The stage_ready row leaves pull request #5449 a draft. It holds the label plan/needs-fix, because the model review of its plan found an open finding. Fix the plan, or remove the label when the finding is no defect.

@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 13, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 13, 2026 23:29
@dan-petty dan-petty added the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 14, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Agent vet, 2026-11-14 (read-only review of head 67583cf). Not mergeable as it is. I put plan/needs-fix back. The fix-plan step removed it at 23:27Z with result=dismissed, but it judged none of the open findings (see the defect issue that follows).

Blockers:

  • B1. No ## Weakened checks. The settle rule of tasks 3.1, 4.1, 5.1 and 6.1 can delete or move up to 113 tests in 20 files, and task 4.1 always moves three tests of tests/commands/test_config.py. The implement guard stops on each of them with tests_lost. Deleting tests weakens checks, so the owner decides how: Option A names all 113 tests now, or Option B (recommended) has groups 3 to 6 only record the mutation results, and a later plan names the exact tests to delete for the owner to approve.
  • B2. The census of group 1 cannot pass. It requires a decision on every row, but groups 3 to 6 make the 22 campaign decisions. It also requires each campaign path to be a file, which fails after group 3 deletes one.

Major findings:

  • M1. Two new invariant files are not in the list at docs/TESTING.md:95, so test_invariant_files_are_listed_in_testing_doc fails. tests/ci/test_ci_mutate.py:318-325 already reads [tool.mutmut], so the selection check belongs there.
  • M2. Two "settled" rows still have tests on main, because 513bb31 moved them and did not delete them (tests/test_pydantic_ai_toolsets.py and tests/test_rag_loopback_policy.py).
  • M3. Two campaign rows are invariant tests (tests/core/test_third_party_telemetry.py, tests/commands/test_openspec_scaffold.py). A mutation run of src/ cannot see them, so the settle rule would delete them.
  • M4. Group 2 ignores tests/test_ai_task_loader.py, so the group 3 campaign counts 0 mutants for it and deletes it.
  • M5. Task 4.1 moves named cases before the campaign decides anything.

Minor: two stale constants.py line references, bare gh in group 8, and criterion 1 asks for mutants that the record does not hold.

devops-cli-service Bot and others added 3 commits November 14, 2026 00:22
Plans #2176

The vet of 2026-11-14 found that the plan could not pass the implement
guard or its own census. The owner decided on 2026-11-14: "yes, delete
tests as needed". This revision makes the plan buildable:

- `## Weakened checks` names the 114 tests that tasks 3.1 to 7.1 may
  remove or move, each with the mutation result that must hold first.
- The census of group 1 holds while later groups decide: campaign rows
  start as `pending`, and a deleted row may name a path that no file
  holds. Group 7 asserts that no row stays `pending`.
- The selection check joins `tests/ci/test_ci_mutate.py`, and the census
  file joins the invariant list of `docs/TESTING.md`.
- The toolsets and loopback rows are campaign rows at their new paths.
- Six rows and four cases that no mutant can reach stay (`unjudged`):
  the two invariant tests, the task loader test that the mutation
  selection leaves out, and checks of module data, class data and
  committed files, which mutmut 3.8.1 does not mutate.
- A configuration case moves only after the campaign decides its row.
- Group 9 reads the job time with `devops ci job-time` and
  `devops gh api`. The line references of `constants.py` are current.

Change: `openspec/changes/2176-use-mutation-to-merge-or-delete/`
…r data

Plans #2176

The review of b1d1274 found eight tests in the delete set that no
mutant can reach. The loopback row sends requests to the loopback
endpoints of the committed config.example.yaml, so it is an invariant
test and is unjudged. Two cases of the style request file check the
committed prompt style_ste100.md, one case of the data folder file checks
module constants, and one case of the audit file stops a change of module
data. These four cases are unjudged and stay.

Weakened checks now names 106 tests in 19 files of 17 campaign rows.
Group 4 campaigns only the toolsets row, and group 6 also runs
tests/valkey in its verify. The test_agents_md.py line reference is now
623, and four rejected alternatives use the simple present.
@dan-petty dan-petty removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 14, 2026
@dan-petty

Copy link
Copy Markdown
Owner

Agent fix, 2026-11-14 (plan commit fd7506e; head b538da8 merges main 7b27444 into it). All findings of the vet of 2026-11-14 have a fix, and the checks pass. I removed plan/needs-fix.

Owner decision, 2026-11-14: "yes, delete tests as needed". Thus the plan takes Option A of B1: ## Weakened checks names each test that a campaign can remove.

Blockers:

  • B1. Fixed. proposal.md now has ## Weakened checks with 106 entries in 19 files, in the form of b4ae104 (- **::**: Stopped: ... Safeguard: ...). I ran plan_read.weakened_checks, recorded_tests, lost_tests and unrecorded_tests on the tree. Each entry names one test of this tree. If each test of the 19 files is lost, the guard finds 114 lost tests and 8 that are not recorded. Those 8 are the cases that stay, so the guard stops their removal.
  • B2. Fixed. The census of group 1 starts with 17 pending, 2 settled and 7 unjudged rows. It requires a file only for each path of a pending, kept, trimmed or unjudged row, and it requires that no file holds the path of a deleted or moved row. Thus its assertions stay true while groups 3 to 7 decide. Group 7 adds test_no_row_is_pending.

Major findings:

  • M1. Fixed. The selection check is the case test_each_mutation_selection_entry_names_a_test_of_this_tree in tests/ci/test_ci_mutate.py (task 2.1). The plan adds only one invariant file, tests/invariants/test_mutation_decisions.py, and task 1.1 adds it to the list at docs/TESTING.md:95.
  • M2. Fixed. The settled rows are only test_agent and test_rag_rrf. The toolsets row (now under tests/ai/toolsets/) is a campaign row of group 4. The loopback row is unjudged (see the next item).
  • M3. Fixed. The third-party telemetry and OpenSpec scaffold rows are unjudged, and ## Weakened checks names none of their tests. The review found more invariant tests and also keeps them:
    • The loopback row is unjudged, and its 4 tests stay. They send requests to the loopback endpoints of the committed config.example.yaml, which no other test does.
    • Four cases are unjudged and stay: two cases of tests/ai/test_ai_client_style_request.py that check the committed prompt style_ste100.md (one through its snapshot), test_default_data_constants_and_settings, and test_every_command_of_the_audit_check_has_a_reading. Each one checks a committed file or module data that no mutant changes.
  • M4. Fixed. Group 2 points the --ignore entry of the task loader at tests/ai/test_ai_task_loader.py. The task loader row is unjudged, and ## Weakened checks names none of its tests.
  • M5. Fixed. Task 5.1 moves a case of tests/commands/test_config.py only after the counts of its row are in the record.

Minor findings:

  • Fixed. The constants.py references are now :5394 and :5402.
  • Fixed. Group 9 uses uv run devops ci job-time and uv run devops gh api. It uses no bare gh.
  • Not changed, with a reason. Criterion 1: the record gives the killed mutants as a count, and their keys come again from the command of the row. design.md gives the reason.

Open items for the owner:

  • The plan keeps more tests than the vet asked: 7 unjudged rows and 8 unjudged cases. To delete one of them, add it to ## Weakened checks.
  • TestPydanticAIRetriesSubsystem.test_is_retryable_status_code is still in the delete set. Its 408 and 429 checks read the constant CONST_RETRYABLE_HTTP_STATUS_CODES, which no mutant changes. It can be unjudged too.
  • Time risk: each campaign row needs serial whole-suite runs. A campaign can go past step_time_limit_seconds 5400 and item_time_limit_seconds 12600.
  • The refine requirement of test(cli): Use mutation to merge or delete 26 test files #2176 says that the record holds no tests/test_consolidation_binaries.py, but the table-path column of the record names it.

Checks: openspec validate --strict, devops openspec check, the pre-commit hooks, tests/invariants/test_change_folders.py, tests/invariants/test_living_specs.py, devops roadmap plan-check 5449 (no problems) and the PR checks of b538da8 (19 pass, 3 skipped). Shard 1 of Tests & Coverage failed on fd7506e because three ignores of .trivyignore-mcp-server expired on 2026-11-14 (#5573). It passes after #5584.

@dan-petty
dan-petty merged commit 6172bba into main Nov 14, 2026
22 checks passed
@dan-petty
dan-petty deleted the test/2176-use-mutation-to-merge-or-delete branch November 14, 2026 01:24
dan-petty added a commit that referenced this pull request Nov 14, 2026
…ad (#5593)

Plans #5579

The repair step of the roadmap ended plan pull request #5449 as
`dismissed` while two blockers and five major findings were open
(#5579). Two defects did it. The reader of the last plan comment knew
one line form only, so the three findings of the stage review, written
before the place form of #5418, were dropped as unreadable. And a
finding of the type `other` never blocked, so a major defect became
advice. This change reads both line forms, ends an attempt as
`unreadable_findings` with the count of the lines it could not read,
keeps the label while the last plan comment lists a blocker or major
finding, and lets the severity alone decide what is open. The review of
refine keeps its four open types.

Change: `openspec/changes/5579-fix-plan-dismisses-a-plan-with/`

---------

Co-authored-by: Daniel Petty <contact@danielpetty.com>
Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 14, 2026
On 2026-11-13 the fix-plan step of the roadmap ended plan pull request
#5449 as `dismissed` with two blockers and five major findings still
open, and the Service marked the plan ready (#5579). The reader of the
last plan comment knew one line form only, so the three findings of the
stage review read as unreadable and were dropped, and a finding of the
type `other` never blocked regardless of its severity. The step then
dismissed a plan that still held open defects.

Closes #5579

Change:
`openspec/changes/archive/2026-11-14-5579-fix-plan-dismisses-a-plan-with/`
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