Skip to content

test(mcp): probe non-public audience profiles over stdio - #547

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/mcp-profile-stdio-20261201
Dec 1, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/mcp-profile-stdio-20261201

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

Related: #255. The development adapter now accepts startup audience profiles, but the SDK protocol smoke only exercised the default. Add four synthetic stdio sessions (private/internal × modern/legacy) on the broken-link fixture. Compare all three tool results with independent CLI evidence, assert the license and ownership guidance differs from the public profile, attempt a tool argument override, remove/restore the root, and verify incomplete context, recovery and unchanged file hashes.

Evidence

Based on the merged #546 implementation at 1bdebac25912bdd0d8c8b4c391075b5cb75dfd5b and its existing SDK/CLI smoke. The optional protocol workflow already runs the candidate on Ubuntu and Windows with mcp==2.3.0; its independently fetched immutable source continues to run its own older script.

Verification

  • Local python -I scripts/verify_checkout.py: not run; local Git failed DNS resolution and the MCP SDK is not installed.
  • Catalog unchanged.
  • Both changed files read back exactly from the candidate commit. Hosted checks pending; no new PASS claimed.

Limitations

Synthetic SDK evidence only, not a real host or model trial. No runtime, release, pinned-source or workflow change. #255 remains open.

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact-head review — content PASS for the synthetic SDK test slice

Reviewed HEAD 8e8d5eef9febef235c7740d81ce76dcd6d68a9fc, base
1bdebac25912bdd0d8c8b4c391075b5cb75dfd5b, both changed files, the
adapter's fixed-profile routing and incomplete-result contract, and #255.
No blocking findings. Same authenticated account (drevendev) as the PR
author: this is a later-run content review, not independent approval.

The expected tool mapping is separate from the adapter and the test invokes the
real CLI rather than importing run_check. The fixture distinguishes public
license/ownership guidance from both non-public profiles, preserves both
broken-link failures, compares complete structured responses, and tests missing
root, restoration and final file hashes. No production code or immutable trial
pin changes in this diff.

Observed hosted evidence (2026-12-01): Quality CI
6/6 jobs successful; MCP CI
4/4 successful. Read the actual candidate logs on Ubuntu
and Windows:
both checked out the merge of this head into the stated base, installed
mcp==2.3.0, and emitted all four audience receipts (eight total), with
CLI equality, incomplete context/recovery and unchanged fixture files true.
The two protocol versions are 2026-07-28 and 2025-11-25.

Important evidence distinction: all eight override receipts say
fixed_profile, not rejected. The SDK call with an extraneous public profile
returned the unchanged configured result; do not describe that as explicit
argument rejection. The acceptance check correctly allows either outcome.
The two immutable-source jobs exercise the older public pin, not these new
profile probes.

Non-blocking coverage improvement: consider comparing the same two link-tool
receipts explicitly across the public and non-public sessions in a later slice;
this test currently compares each non-public result against an unprofiled CLI
call, which already establishes the intended profile-independent routing.

Reviewer-local verification and real host/model invocation NOT RUN; branch
protection enforcement not verified. #255 remains open; this is neither a host
acceptance result nor a release approval.

@andy-zen-dev andy-zen-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent exact-head review — APPROVE

Head 8e8d5eef9febef235c7740d81ce76dcd6d68a9fc, base 1bdebac25912bdd0d8c8b4c391075b5cb75dfd5b. Inspected both changed files, the existing fixture construction, CLI receipt helper and server's startup-bound profile routing, AGENTS/CONTRIBUTING, discussion, review threads and #255 acceptance scope. No merge-blocking findings in this test-only slice.

The probe compares full structured evidence with a separate real CLI process, distinguishes public versus private/internal license and ownership findings, preserves both broken-link diagnostics, verifies a public-profile override cannot change returned audit evidence, and checks incomplete replies and restoration across all three tools. Changelog is present; no production code or immutable trial pin changes.

Independently retrieved the Ubuntu and Windows candidate logs: both tested merge c52a457de05eb63ea2686a9fa6127577897533f1 of the exact head/base, installed mcp==2.3.0, and emitted four passing audience receipts each. All eight record fixed_profile rather than rejected: this proves unchanged returned profile evidence, not explicit rejection or a filesystem access monitor. Both negotiated 2026-07-28 and 2025-11-25. Quality 6/6 jobs passed, including all five documented required checks and lint; Python 3.11 log records 1117 tests, 10 skipped. MCP workflow 4/4 jobs passed; the two pinned-source jobs are not the new candidate profile probes.

Reviewer-local execution, real Claude Code/Codex host/model trials and live branch-protection enforcement NOT VERIFIED. Approval is for the synthetic SDK test increment only; #255 remains open. Head/base and review history unchanged immediately before submission; no unresolved threads.

@drevendev
drevendev merged commit 0accdc0 into master Dec 1, 2026
10 checks passed
@drevendev
drevendev deleted the beautifulrepo/mcp-profile-stdio-20261201 branch December 1, 2026 22:21
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.

2 participants