Skip to content

fix(tier3): scope native MCP references to verifier grants - #491

Merged
rng1995 merged 2 commits into
mainfrom
naren/native-mcp-verifier-grants
Nov 13, 2026
Merged

rng1995 merged 2 commits into
mainfrom
naren/native-mcp-verifier-grants

Conversation

@rng1995

@rng1995 rng1995 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Native Harbor verifier and step-verifier MCP declarations currently use the agent's runtime environment grants. A verifier-only ${VERIFIER_FLAG} is rejected, while an agent-only ${AGENT_FLAG} can pass that declaration check. This follow-up to #472 uses the verifier environment for verifier scopes, matching the adjacent environment-boundary validator. Agent declarations retain runtime grants; omitting separate verifier grants retains the legacy fallback, and an explicit empty verifier grant map remains empty.

Malformed declarations now include static field/type and ${VAR} guidance. Unsupported-field errors list only trusted Harbor schema field names, without printing authored values or unsupported names.

Validation: actual native staging regressions first produced 7 failures and 2 legacy controls. The initial repaired run passed all 9 cases; independent final validation passed all 10 cases, including a separate agent-grant control. Source/caller review, Ruff and formatting checks pass. The broader native-isolation, native MCP policy/review, and transport suite passed 501 cases with 2 skips on the exact source head (runtime472-mcp-full.log). No external MCP request or model call was made.

Addresses #472's verifier-grant and safe-hint review threads. The download-root hardening is already covered by Chris's separate #479, independently reviewed here with all 40 local-environment tests passing on macOS and locked Harbor0.25.0. This PR does not duplicate that fix. #472 remains merged; these role/hint changes are proposed separately and are not on main until this PR merges. No merge performed.

@rng1995
rng1995 enabled auto-merge (squash) November 13, 2026 08:48

@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.

Broader validation completed on ae895f7: 501 passed and 2 skipped across native skill isolation, native MCP policy/review contracts, and transport rules. The final 10 real staging regressions/controls also passed independent review. All changed source is committed; current-head CI remains under observation.

The current head caaa122 is the exact clean automatic merge of ae895f7 and main b8bbd52. Its adapter AST is unchanged; the 501-case run was on ae895f7, not a claimed rerun on the merge commit.

@rng1995
rng1995 merged commit 801fc69 into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/native-mcp-verifier-grants branch November 13, 2026 09:33
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.

1 participant