Skip to content

docs(openspec): fix plan #2175 five dead names - #3022

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

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

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This pull request corrects the plan for issue #2175 in place. The plan is the change folder openspec/changes/2175-the-five-functions-and-properties-that/.

An evaluation of the staged plan (pull request #2983) found defects. The old tasks added a test for each deleted name. That test holds the name, so the git grep check of the same group could not pass. Such a test also pins a deleted name for ever, which issue #1871 removed as a pattern. The old spec delta had no use, because the change keeps all visible behavior.

The corrected plan:

  • Adds no test and no spec delta, and sets skip_specs: true.
  • Quotes the git grep output on origin/main in Feasibility, with current line numbers.
  • Adds the dead code in network.py that only the deleted method used.
  • Names a verification command for each group, and merges five groups into four.
  • Records the decisions and the rejected alternatives in design.md.

This pull request changes no code and no test.

Plans #2175

Quote the grep output in Feasibility. Remove the tombstone tests and the spec delta, and set skip_specs. Add the network functions and state that only the deleted method used. Name the verification command of each group. Merge five groups into four.
@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

  • .openspec.yaml: set skip_specs: true.
  • specs/thinking-stream/spec.md: deleted (an internal removal has no spec delta).
  • proposal.md: Feasibility now quotes the git grep output on origin/main (1c20865) with current line numbers. Added an Acceptance table. Added the exclusive users that go with the names. Existing Tool Considered now names vulture and why it is not used.
  • design.md: recorded the decisions and the rejected alternatives (tombstone tests, vulture gate).
  • tasks.md: removed the tombstone tests, the docs-sync tasks and the follow-up section. Each group has Reads paths and a verification command. Five groups became four.

Evaluation of #2983: findings

Confirmed and fixed:

  • Major: a test that names the deleted name breaks the git grep check. Fixed by adding no test.
  • Major: tombstone tests are a rejected pattern (test(hygiene): tombstone tests for deleted code are deleted and a dead-code tool is trialled #1871). Fixed, and recorded in design.md.
  • Major: the spec delta is needless for a refactor that keeps behavior. Fixed.
  • Major: no test path and Reads: none. Fixed: no test is added, and Reads lists the files with line ranges.
  • Minor: Feasibility had no own output. Fixed.
  • Minor: noise tasks and five groups. Fixed.
  • Nit: vulture not named. Fixed.

Extra finding from my own check: network.get_ollama_semaphore, ollama_semaphores and ollama_sem_lock become dead when _get_ollama_semaphore goes. The plan now deletes them too.

Not confirmed: none. Each lead was reproduced on origin/main.

Verification

  • git grep -n -w <name> on origin/main prints only the definition for all five names.
  • I applied the planned deletions in a scratch state: ruff passes, and the tests of tests/ai/client, tests/ai/test_thinking.py, tests/config/test_settings.py and tests/grafana gave 497 passed. I then restored src.
  • openspec validate --strict, uv run devops openspec check and tests/invariants/test_change_folders.py (16 passed) pass.
  • A script confirms that every path in the plan exists on main.
  • The branch holds one commit on top of origin/main. The full devops ci was not run, because the change touches no code.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 12:34
@dan-petty
dan-petty merged commit c22f018 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2175-fix-plan branch November 1, 2026 13:07
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