Skip to content

Require explicit protocol tests and reviewer documents in implementation plans - #1366

Open
mgonzalezlopezudc wants to merge 1 commit into
inet-framework:masterfrom
mgonzalezlopezudc:doc/protocol-plan-commit-tests
Open

mgonzalezlopezudc wants to merge 1 commit into
inet-framework:masterfrom
mgonzalezlopezudc:doc/protocol-plan-commit-tests

Conversation

@mgonzalezlopezudc

Copy link
Copy Markdown
Contributor

Implementation plans can group several future commits into one step without concrete protocol tests or a reviewer document for each repair. This leaves reviewers without a required connection between the protocol gap, its test assertions, and the proposed correction.

This change requires a separate entry for every future commit. Each planned protocol repair or feature must assign explicit tasks for protocol tests and a reviewer Markdown document. The document explains the test scenarios, expected results, assertions, and limits. It includes as many diagrams as the explanation needs.

The guide adds templates and a hypothetical IPv4 TTL example. Current content requirements apply independently of the draft approval process. The main risk is ambiguity about applicability, so the rules explain exclusions for refactors and other changes without a protocol gap.

One commit, doc: change: require protocol test tasks for each planned repair, updates the rules, procedures, review checklist, and generated rule index.

The PR changes only doc/project. It changes no runtime contract, packet format, configuration, feature descriptor, or test baseline. It introduces no architecture or naming exception. The edited document units are open.

Checks from the INET checkout:

  • git diff --check upstream/master..HEAD passed.
  • doc/project/enforcement/check-seals.sh passed for 20 documents.
  • doc/project/enforcement/check-source-seals.sh --base upstream/master passed with no affected source files.
  • doc/project/enforcement/check-pull-request.sh --base upstream/master --head HEAD --description-file /tmp/inet-plan-docs-pr.md passed.

The broad architecture, naming, and interface checks returned exit status 1. The same checks returned identical output on upstream base 89d600a341976f646435ed341c3f980746c7d6be, apart from line order:

  • doc/project/enforcement/check-architecture.sh
  • doc/project/enforcement/check-naming.sh --base upstream/master
  • doc/project/enforcement/check-interfaces.sh

These findings predate this documentation change. No INET build or simulation ran because this PR changes documentation only. Diagram rendering and agent behavior remain unverified.

@mgonzalezlopezudc
mgonzalezlopezudc force-pushed the doc/protocol-plan-commit-tests branch from a88124b to e9b9ee7 Compare October 20, 2026 17:37
Before this commit, an implementation plan can group several future commits into one step. It need not assign concrete protocol tests or a reviewer document to each protocol repair.

After this commit, each future commit has a separate entry with dependencies, affected components, expected behavior, and verification. Each planned protocol repair or feature assigns explicit test tasks and a reviewer Markdown document. The entry connects the current gap, test assertions, and proposed code correction.

The reviewer document explains each test and includes the diagrams that its scenarios need. The guide provides templates and a hypothetical IPv4 TTL example. Current content requirements apply independently of the draft approval process.

The change affects contributor requirements only. It changes no simulation code, configuration, or recorded test expectation.

Change: doc.project | behavior.change | -
@mgonzalezlopezudc
mgonzalezlopezudc force-pushed the doc/protocol-plan-commit-tests branch from e9b9ee7 to cb72147 Compare October 21, 2026 13:50

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant