Skip to content

Add private comparisons and static report views - #322

Merged
rng1995 merged 10 commits into
naren/mcp-proof-and-signalsfrom
naren/plugin-comparisons-and-static-reports
Nov 3, 2026
Merged

rng1995 merged 10 commits into
naren/mcp-proof-and-signalsfrom
naren/plugin-comparisons-and-static-reports

Conversation

@rng1995

@rng1995 rng1995 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Implements split-plan items 22–23, stacked on #321. Private comparison options add member-skills and supported loose-parts controls to the existing runner, then compute advisory paired statistics from cached logical trials. A shared passive projection supplies static evidence views across six existing output formats.

Comparisons and measurement

  • Run two, three or four arms through one engine with the same selected cases, model, attempts, stop-on-pass policy and resources. Arms share the existing per-agent concurrency budget; extra-arm launch failures remain advisory and participate in setup-only retry classification.
  • Support native Claude Code loose-parts controls across stock, container and Build routes. Other adapters/loading modes retain explicit unmeasured reasons. Compare actual emitted capabilities, modes and task coverage; normalize only recorded root substitutions and adapter-generated artifacts. Modified or missing emitted content breaks parity.
  • Reuse score-policy, validated N/A and judge-basis helpers before weighting. Share bootstrap draws across the ladder and retain paired intervals, complete-attempt eligibility, skill/capability/integration/total estimates, and measured cost/context limitations. Preserve validated timeout recovery, physical costs and unknown usage.
  • Require compatible load evidence and eligible cross-component pairs for an affirmative integration claim. Missing/ambiguous evidence, mixed judges, unmatched metrics and inactive skill arms remain explicit exclusions.
  • Preserve the full arm's filtered resource tree for plugin-root MCP/hook entrypoints, including sibling, nested and parent-relative code/data dependencies. Hash all support files and permissions; normalize only generated parent-directory scaffolding while retaining unexpected-child and authored-mode checks.
  • Persist complete load evidence as lossless indexed-v1 result/attempt tables, retaining every arm, case, ordered attempt, piece and unknown/failure state within the existing writer bounds. Each statistics/evidence/standalone artifact handles write failures independently, so one failure cannot suppress later agents. Reset comparison state alongside the native lifecycle before retries.
  • Preserve baseline-only runs as one arm, with an explicit reason for unmeasured private controls. Remove unused ladder/error/score helpers and redundant collection plumbing.

Static reports

Project inventory/support, risks and privileges, dependency/endpoint audits, deduplication/catalogs, estimated context and attribution once into bounded sanitized evidence. Hooks, privileges, audits and endpoints receive shared budget priority; rows that cannot fit are explicitly omitted rather than rendered empty. Read endpoint evidence from its authoritative metadata location once. Private CLI, JSON, Markdown, HTML, SARIF and benchmark adapters render the same projection without collecting new evidence.

Validation

  • Latest dependency follow-up (3130e72): 184 passed, including 11 new cases for emitted Node entrypoints, transitive JS/JSON imports, support-file changes/removal/permissions, relocated skills and generated scaffolding. Independent review, Ruff/format/diff checks and full-history secret scanning passed.
  • Current wheel/source archives built and installed offline. All 253 packaged files match checkout, wheel, source archive and installation; base-only imports, guards and three CLI help checks passed. High-level runtime staging requires the tier3 extra; the Node staging regressions ran with those dependencies.

Earlier review-round validation:

  • 83 passed in the focused comparison/statistical scope. The final expanded 8-case artifact suite passed, including exact reconstruction at 1,000 cases, a 100-case × 3-attempt × 15-piece collection, independent artifact failures and retry reset. These scopes overlap.
  • 1,153 passed, 5 skipped across reporting; 33 passed in forced-color private reporting. Four new report regressions failed before their fixes.
  • 2 passed for the native census/cache boundary and successful real-runner acceptance: two included cases, all four independently specified lift estimates, and saved evidence after cleanup. The isolated fixture supplies the real preparation census; production load gating remains unchanged.
  • 209 passed after syncing Add private MCP execution proof and behavior signals #321, covering comparison artifacts/statistics, baseline-only behavior, native backend guards, report projection and existing runtime compatibility. Two cancellation checks passed after preserving complete PID publication before readiness.
  • Exact wheel/source archives built and the wheel installed offline with base dependencies only. All 253 packaged files match checkout, wheel, source archive and installation. Installed checks passed for six report formats/template, passive collection guards, endpoint ports/IPv6, normalization, compile guards, private imports and three CLI help commands; optional runtime/provider packages and private activation flags remain absent.
  • The five earlier inline review threads have pushed fixes, technical replies and resolved status. The dependency conversation comment also has a linked fix/test reply.
  • Ruff, formatting and diff checks passed. Full reachable-history Gitleaks scanning passed (260 commits). Independent final review passed, including the merge seams and isolated fixture.

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

Scope and dependencies

Base: #321 (naren/mcp-proof-and-signals), based on main after #264 merged. This PR adds private runner/report adapters. Public CLI/configuration/exports remain item 25; runtime report presentation and full private workflow acceptance remain item 24. Existing basic skill output and public dispatch keep their behavior.

@rng1995 rng1995 changed the title Add private comparisons and static report views (items 22–23) Add private comparisons and static report views 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 5 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/loose_parts.py Resolved
Comment thread src/skillevaluator/tier3/loose_parts.py Resolved
…ons-and-static-reports

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

# Conflicts:
#	src/skillevaluator/tier3/harbor/runner.py
…ons-and-static-reports

Signed-off-by: Narendran Raghavan <[email protected]>
…ons-and-static-reports

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

@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 comparison engine, the loose-parts handling and the static report views and see no injection path in the renderers. Two things to fix: the static projection spends its row and text budgets in section order, so hook and privilege rows are the first to go, and the load-evidence file can overflow the bounded JSON writer and take the remaining agents' statistics with it. Three smaller notes on a test and dead code are inline.

Comment thread src/skillevaluator/tier3/loose_parts.py Resolved
@YMuskrat

YMuskrat commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Hey @rng1995, private comparisons were one of the things I was looking into last week, so this PR caught my eye. Thought I’d share an edge case I found, as it might be useful for what you’re covering here.

I tried a small local staging check with an MCP entrypoint at ${CLAUDE_PLUGIN_ROOT}/servers/reltools.js that imports ./dependency.js. The full staged copy includes both files and runs successfully, but the loose copy omits the dependency and fails with Cannot find module. The parity check still returns equal_across_arms=True with no mismatches.

This was a local check using the staging helpers and Node. Is this dependency case intended to be supported by the loose-parts control, or should parity remain unverified when those supporting files aren’t accounted for?

@rng1995

rng1995 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks, @YMuskrat, for the concrete reproducer. This plugin-local dependency case should be supported; reporting equal parity while the loose entrypoint was missing its dependency was a bug.

Fixed and pushed in 3130e72. The loose arm now preserves the full arm's filtered resource tree, and parity hashes the supporting files and their permissions. The existing loader/evaluator exclusions and hash limits remain in place.

The regression executes both emitted MCP entrypoints with Node and follows sibling, nested and parent-relative JS/JSON dependencies. Modifying, removing or changing permissions on support files in either arm now breaks parity. All 184 regression and compatibility checks passed, including 11 new dependency/scaffolding cases.

@rng1995
rng1995 merged commit 9443ab3 into naren/mcp-proof-and-signals Nov 3, 2026
7 checks passed
@rng1995
rng1995 deleted the naren/plugin-comparisons-and-static-reports branch November 3, 2026 18:35
rng1995 added a commit that referenced this pull request Nov 3, 2026
* Add native plugin adapters, staging and launch wrappers

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

* Prepare private plugin inventories for runtime evaluation

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

* Stage plugin wrapper skills with bounded combined datasets

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

* Run private plugin evaluations through the existing engine

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

* Evaluate prepared plugins with native with-arm staging and durable results

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

* Share transient HTTP retry rules and alias long Build tool names

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

* Collect native load evidence from retained Harbor jobs before cleanup

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

* Test private plugin load decisions and Hermes compatibility

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

* Test Claude init confirmation of native census evidence

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

* Remove evidence-only jobs of every attempt; record evidence read failures

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

* Never retry a result whose errors are sampled

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

* Fix private runtime staging, source identity and setup retries

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]>

* Verify native task routing through the grading checks

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

* Fix private runtime MCP credential policy, source identity and staging 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]>

* feat(tier3): add private MCP proof and behavior evidence

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

* fix(tier3): accept trusted runtime case selections

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

* ci: scope historical synthetic header exception

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

* fix(tier3): preserve recorded usage and physical attempt identity

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

* fix(tier3): enforce probe bounds and scope multi-step evidence

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

* fix(tier3): bound pattern compilation and preserve untrusted evidence

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

* Add private comparisons and static report views (#322)

* 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]>

---------

Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Christopher Kevin <[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.

3 participants