Repository navigation
test: split module tests by owner, with pins a removal walk leaves standing - #1
Merged
Merged
Conversation
…anding
ADR 0017 §7, plan 006 M4d-2: a path has one owner, and removing a module
must break no test outside its own paths.
- Approvals: the kernel's mechanism cases (hold then approve, expiry,
conflicts, who may decide, the queue, the same tick) run on a settings
change; the module cases move to approvals.{bookings,customers,
notifications}.test.ts, sharing approvals.testkit.ts. A harmless write
and the keyed replay have no kernel equivalent and stay with bookings
and customers.
- The MCP server tests: the kernel keeps the generic cases, the logs, the
refusals and instruction checks derived from the installed modules (the
nouns in order, each id source under its own label, the keyed tools);
each module's PINNED rows, unchanged, move to mcp.server.<module>.test.ts,
and `itPinsToolsOf` requires an owner's rows to name exactly its tools.
- mcp-manifest's type cases use kernel ids; its bookings and customers
cases, and the composition without customers, move to module files.
- Settings and bookings.create cases move to bookings.test.ts; the
optional-references, contracts and nav-model fixtures derive from the
installed modules and the salon's nav; the generator test compares the
census for installed modules and derives each refusal from the graph.
- e2e: the touch and hydration sweeps visit installed routes only, the
bookings pills case moves to bookings-touch.spec.ts, the settings case
opens the menu from the default dashboard, and dead-click exceptions
skip deleted routes.
- Every new module file is in its module's `owns`.
5629 tests, none deleted. A catalog removal walk leaves failures only in
the presets and plan 006's exclusions. Swapping id sources between labels,
or dropping the "and" from the noun list, now fails the instruction checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…product views) The tree equals feat/m4d2-split-by-owner-v2: M4d-2 rebased on main 6043a74, with the parties and inventory PINNED rows and parties' held write in their own module files, and the client-map pins derived from the installed modules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # src/config/approvals.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # src/config/approvals.test.ts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # src/config/mcp.server.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan 006 M4d-2 (ADR 0017 §7): a path has one owner, and removing a module must break no test outside its own paths.
What
approvals.{bookings,customers,notifications}.test.tswith a shared testkit.mcp.server.<module>.test.ts, anditPinsToolsOfrequires an owner's rows to name exactly its tools.mcp-manifesttype cases on kernel ids; bookings/customers cases into module files.bookings-touch.spec.ts; the settings case opens the menu from the default dashboard; dead-click exceptions skip deleted routes.How verified
tsc,npm test(5767 tests, none deleted),npm run check,npm run build;docs/mcp/reference.mdunchanged.ownsline fails a test.🤖 Generated with Claude Code