Repository navigation
test: preset-owned contract ids, evals per module, a probe through settings - #2
Merged
Merged
Conversation
…ttings ADR 0017 §7, plan 006 M4d-3: modules know no preset, and the scripts stay with the kernel and degrade when a module is removed. - Each preset owns `contractIds`, by module (a late booking, a free resource and minute, the first customer and party), beside `leakTerms`. The adapter-contract testkit reads them on demand through `idOf` and `minuteOf`, so an input needs only its own module's ids; the bookings test no longer repeats them; a contract case refuses ids for a module the preset does not enable, so a removal names the preset line to edit. - The MCP golden tasks move into `evals/mcp/tasks/<module>.json` and their transcripts into `evals/mcp/fixtures/<module>/`, each owned by its module; `golden.json` keeps the version and the system prompt. `eval-mcp.ts` merges the task files of the installed modules (from `MODULES`), so a removed module's tasks are simply absent. The tests split per module; the kernel's cases derive from the installed task files. - `probe-consistency` writes through the kernel: the web and consent modes change the trade name on the Settings page, and the mcp mode holds a `settings_values_update` and reads it back with `approvals_get`. The guides say so. The probe needs a live deployment and was not run here. 5905 tests pass; nothing is deleted. The golden tasks now run in module id order (bookings before customers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-3 (ADR 0017 §7): modules know no preset, and the scripts stay with the kernel and degrade when a module is removed.
What
contractIdsby module, besideleakTerms; the adapter-contract testkit reads them on demand (idOf,minuteOf);bookings.test.tsno longer repeats them; a contract case refuses ids for a module the preset does not enable.evals/mcp/tasks/<module>.jsonand transcripts toevals/mcp/fixtures/<module>/, each module-owned;eval-mcp.tsmerges the installed modules' task files (fromMODULES); the eval tests split per module and the kernel's cases derive from the installed files.probe-consistencywrites through the kernel: the trade name on the Settings page (web, consent), and a heldsettings_values_updateread back withapprovals_get(mcp). Guides updated.How verified
tsc,npm run check,npm run build,generate:modules(no changes),docs/mcp/reference.mdunchanged.npm test: 5905 tests before the rebase. On the rebased tree the machine was at load 40+ and four unrelated cases timed out; they pass in isolation (56 + 476). This PR's CI is the authoritative run.🤖 Generated with Claude Code