Skip to content

docs(openspec): fix plan #2258 real paths, builders, honest classes - #3082

Merged
dan-petty merged 3 commits into
mainfrom
docs/2258-fix-plan
Nov 1, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/2258-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This change corrects the plan for issue 2258 in place. It changes no code and no test.

The evaluation of the plan from pull request 2972 found wrong paths, wrong premises and a plan that cannot pass its own checks. The corrected plan:

  • Uses the real seams: the process runner, the GitHub session and the fakes of docs/TESTING.md.
  • Splits each argv into one builder that the plan and the real run both call.
  • Gives each command the honest dry-run class. Commands that write local state keep a local preview.
  • Takes tls ca and tls cert out of the MCP table, so that readOnlyHint stays true only for read-only tools.
  • Fixes the clone scenario so that --dry-run comes before the double dash.

Plans #2258

The plan named GitPython, which the code no longer uses, and flat test paths
that do not exist. It also marked repos worktrees prune as mark-only, but the
command reads GitHub. The corrected plan splits the argv builders that the
real run and the plan share, uses the git, process and GitHub fakes, keeps
local previews for the commands that write local state, and adds a spec delta
in command-dry-run-class.
Remove tls ca and tls cert from the MCP table in the plan, because
readOnlyHint true would be false for them. Put --dry-run before the
double dash in the clone scenario. Cite the guard and the return of the
process runner.
@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 in this pull request

  • Group 6 and design decision 7: tls ca and tls cert leave CONST_MCP_EXPOSURE_TABLE. They move to mcp_command_exclusions in tests/ai/mcp/test_mcp.py. tls_ca and tls_cert leave the expected tools in tests/ai/mcp/test_fastmcp_contracts.py. New task 6.4 does this. Group 8 regenerates docs/MCP_TOOLS.md. A new spec scenario covers it.
  • The clone scenario and task 3.1 Test B use repos clone --dry-run -- -bad and --dry-run repos clone -- -bad.
  • Proposal and design cite the guard (line 624) and the return (line 631) of the process runner.

Evaluation findings

Confirmed and fixed:

  • Major: the MCP table lists tls ca and tls cert with read_only=False. The invariant test_mcp_exposure_table_no_external_request_read_only fails for a no-external-request command. Fix: remove the two entries (a true readOnlyHint=True is not possible for tools that write keys).
  • Minor: repos clone -- -bad --dry-run ends with status 2 in Click. Fixed.
  • Minor: wrong line for the dry-run return. Fixed. Line 624 is the guard and line 631 is the return, so the plan now names both.

Not fixed: none.

Verification

  • openspec validate 2258-repos-branches-ssh-and-tls-commands --strict: valid.
  • uv run devops openspec check: passed.
  • tests/invariants/test_change_folders.py: 17 passed.
  • Pre-commit hooks passed. origin/main merged before the push. The branch changes only the four files of the change folder.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 14:50
@dan-petty
dan-petty merged commit 0d2d072 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2258-fix-plan branch November 1, 2026 14:56
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