Skip to content

docs(openspec): fix plan #2152 premise, paths and tests - #3081

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

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

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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

The corrected plan has three groups and no spec delta. Group 1 prepares the test doubles for a call with AI_NUMERICHOST. Group 2 adds tests for the legacy spellings. Group 3 makes parse_numeric_ip read a host as the resolver does. The plan now names the existing tests that break when the parser calls getaddrinfo. Every path in it exists on main, or is marked new.

This change touches only the change folder of #2152.

Plans #2152

Correct the plan in place. The plan named test files that do not
exist, a function that #2845 deleted, and a test order that cannot
fail. It also missed three tests that break.

- Name the real test files and add a new file under tests/core.
- Record fresh evidence in Feasibility, and map each criterion in
  Acceptance.
- Catch UnicodeError as well as OSError.
- Add a group that lets the test doubles pass a call with
  AI_NUMERICHOST.
- Pin the existing behavior in a test-only group, then write the
  failing test for the changed spellings.
- Drop the spec delta and set skip_specs.
- Drop the empty documents tasks and the tuicr bullet.
@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 premise holds. getaddrinfo with AI_NUMERICHOST reads every legacy form, and the old parser and the new reader agree on every spelling a resolver reads.
  • Group 1 is new. It prepares three test doubles (tests/web_fakes.py and two security tests) so they pass a call with AI_NUMERICHOST. The plan had missed that three existing tests break when the parser calls getaddrinfo.
  • Group 2 adds tests for the legacy spellings and the classifier branches, with a step that shows each test can fail.
  • Group 3 rewrites parse_numeric_ip to use getaddrinfo, deletes the three helper functions, and runs the full gate.
  • The spec delta is removed. The change declares no spec-level behavior.
  • Paths now exist on main, or are marked (new).

Evaluation findings

  • All findings of the evaluation of PR docs(openspec): plan #2152 replace legacy IPv4 parser #2971 were reproduced and fixed.
  • The two minor findings of the verification are fixed in a second commit: task 3.2 now says to add import socket, and the proposal says eight tests of tests/commands/test_sandbox_networking.py break, not seven.
  • No finding was rejected.

Verification

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