Skip to content

Add private MCP execution proof and behavior signals - #321

Merged
rng1995 merged 31 commits into
mainfrom
naren/mcp-proof-and-signals
Nov 3, 2026
Merged

rng1995 merged 31 commits into
mainfrom
naren/mcp-proof-and-signals

Conversation

@rng1995

@rng1995 rng1995 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Implements split-plan items 20–21 on main, after the runtime prerequisite in #264 merged. Private runs distinguish declared MCP servers, successful host initialization/tool listing, confirmed agent loading and successful correlated agent calls. They retain advisory routing, activation, argument, ordering, handoff and conflict signals before temporary artifacts are removed.

  • Add opt-in HTTP/SSE probes with endpoint policy checks, pinned addresses, scoped environment grants, shared deadlines and bounded identity-encoded responses. Default runs make no host probe; host stdio commands are never executed.
  • Normalize logical trials once and reuse rewards, traces, native census and startup evidence. Preserve child ownership, authoritative multi-step topology, physical attempt identity, recorded usage fallback, unknown load states and explicit missing-evidence outcomes.
  • Check dataset and server-authored patterns before compilation: cap counted bounds at 100, reject nested counted expansion and conservatively refuse unsupported repetition grammars. Malformed schema values and harness logs cannot discard otherwise valid evidence. Shared diagnostic sanitization strips controls before credential redaction.
  • Preserve main's source guards, native MCP policy, baseline-only behavior and setup-only retries. Reset native, observer and sidecar state before a retry, including attempts that fail before creating a jobs directory. Remove obsolete merge-era plumbing and the redundant commit-bound Gitleaks exception.
  • Persist a bounded redacted evidence sidecar. Existing scores, gates and ordinary skill behavior retain their semantics. Declare the already-resolved regex dependency explicitly in the base package.

Validation

  • 475 passed in the affected evidence, transport, lifecycle, usage and child-graph scope. Final pattern changes separately passed 43 targeted regressions and 260 signal tests.
  • Regressions reproduce the review findings before their fixes. Rejected expansion patterns use a compiler trap; no resource-intensive hostile pattern is actually compiled. Independent re-review passed.
  • Ruff, formatting and diff checks passed. Full reachable-history Gitleaks scanning passed with the exact synthetic-fixture exception inherited from main.
  • 258 passed, 1 skipped in merge compatibility checks covering source identity, native MCP policy, setup classification, baseline-only execution and existing private runtime behavior.
  • Wheel and source archive built successfully. An offline base-only installation verified 230 packaged files byte-for-byte across checkout, wheel, source archive and installation; isolated imports, compile guards, redaction and three installed CLI help commands passed. Private activation flags remain absent.
  • All four new review threads have pushed fixes, technical replies and resolved status.

Tests use saved artifacts and local/fake transports. No live provider, native agent binary or external MCP service was exercised. CI status remains visible in the PR checks.

Scope

This PR provides private evidence collection. Runtime report presentation and assembled-workflow acceptance remain item 24; public CLI/configuration activation remains item 25. #322 builds the comparisons and static report views on this branch.

chrisknvidia and others added 23 commits October 30, 2026 16:51
Resolve agent routing before worker dispatch, collect evidence before engine cleanup, preserve native member layout and portable with-arm MCP configuration, and verify the complete prepared source. Classify setup failures across private arms and inspect causal HTTP/TLS failures before retrying. Add regression and local integration coverage and clarify shared transport release behavior.

Signed-off-by: Christopher Kevin <[email protected]>
…g regressions

- Apply the task MCP credential policy (validate_mcp_server_declarations) to
  the native Claude Code .mcp.json, so a plugin cannot forward operator
  credentials or stage literal secrets through env, headers or URLs.
- Rewrite foreign plugin-root placeholders in declared MCP env and headers.
- Ignore directories without files in the source-tree identity, so the
  default <plugin>/evals/results no longer fails native staging; refuse a
  results directory inside the plugin source up front.
- Keep a custom backend's agent route when no setup error wrapper exists, and
  record an unsupported native route as a pre-execution failure.
- Strip a legacy eval/ only when it holds dataset.*, so runtime helpers in
  eval/ still reach the agent in direct Tier 3 and plugin copies.
- Reset native evidence before each attempt and keep host-only PrivateLocal*
  wrappers out of the remote-backend import-path gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 marked this pull request as ready for review November 2, 2026 19:39
@rng1995 rng1995 changed the title Add private MCP execution proof and behavior signals (items 20–21) Add private MCP execution proof and behavior signals Nov 2, 2026

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Independent review of the current PR found 4 actionable issues below. I will address these with focused regressions, push the fixes, and reply in each thread before resolving it.

Comment thread src/skillevaluator/tier3/mcp_proof.py Resolved

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I read the private runtime changes, including the identity-only responses and content-encoding check in the host probe, the per-step harness logs with scoped call IDs, and the recorded-usage and attempt-identity fallback, and they do what they say. Four things need attention: unbounded regex compile on patterns from evals.json and from a probed server's tool schema, one hostile tool schema flipping a reachable server to unreachable, and two smaller notes on the Codex log readers and the redaction order.

The new gitleaks allowlist is keyed to commit 90e1982, which this branch now contains through the merge from #264, so it works and the Gitleaks job passes. But #264's current tip already allowlists the same fixture value by path and regex in its own .gitleaks.toml, so once this branch picks up that tip the entry is redundant, and after #264 is squash-merged the commit hash no longer exists on main. I would drop this entry in the same merge that brings in the #264 tip (dropping it earlier would fail Gitleaks here).

Base automatically changed from feat/christopherk/private-runtime to main November 2, 2026 21:35
rng1995 and others added 4 commits November 3, 2026 09:33
* feat: add private comparison arms and static report views

Signed-off-by: Narendran Raghavan <[email protected]>

* fix: preserve staged capabilities and recovered comparison evidence

Signed-off-by: Narendran Raghavan <[email protected]>

* test: publish cancellation readiness atomically

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): preserve risk evidence within static report bounds

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(tier3): retain bounded comparison artifacts and verify loaded arms

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(tier3): preserve relative MCP dependencies in loose controls

Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 enabled auto-merge (squash) November 3, 2026 18:46
@rng1995
rng1995 merged commit d31f1a4 into main Nov 3, 2026
21 checks passed
@rng1995
rng1995 deleted the naren/mcp-proof-and-signals branch November 3, 2026 19:40
rng1995 added a commit that referenced this pull request Nov 3, 2026
Resolve conflicts with main: keep main's new Unreleased entry in CHANGELOG.md
and put this PR's entry after it; in runner.py keep both the PR's
cancellation keyword and main's additional_arms/additional_arm_errors
(#321) in _run_agent_pair and its caller.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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