[P2] Make inert MCP definition test deterministic without choicepoint #65
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The exact-head deterministic CI for PR #62 / canonical main passes, but PlUnit still emits:
at
test/rlm_tool_mcp_async_test.plaround the inert MCP-definition coverage.This is not a correctness blocker for #62, but deterministic core tests should not leave unintended choicepoints because they can hide accidental nondeterminism and make future regression output noisy.
Acceptance
mcp_definition_does_not_auto_install_or_run.Context
Discovered during final exact-head validation of PR #62 after the authority singleton warning was removed. The full deterministic and REAL matrices otherwise passed on head
1dddd22e0d4bdd8c862cc06c6a3d609c26c96094, merged to main as88b64db41a4c474379a1808b95c761ffc78d9fc2.PR #66 fixes the known inert-definition choicepoint directly in
test/rlm_tool_mcp_async_test.pl.Instead of
member/2selectingasync_fixtureand leaving alternatives, the test now collects every definition whosename == async_fixtureand unifies that collection with[Spec]. That both proves exactly one matching inert definition and leaves no choicepoint; no arbitrary cut was added.Keeping #65 open until the exact final PR head's deterministic PlUnit output confirms the warning is gone. If production code remains unchanged for this fix and the full PR gates pass, close against #66's merge SHA.
Closed by squash merge
9ba763d248f6e087b3ff01c651762997f02ee726from PR #66.The exact final deterministic CI head
a4a45a6eb0c753fa626a8db47016654e990d20e2ranmcp_definition_does_not_auto_install_or_runwith no PlUnit choicepoint warning. The test now proves exactly one matching inertasync_fixturedefinition rather than selecting one with a residualmember/2choicepoint or masking multiplicity with a cut.The complete configured REAL OpenRouter matrix also passed on the same head.