Skip to content

id: add pinned MCP bridge surface for #7914 - #12917

Open
dezren39 wants to merge 1 commit into
mainfrom
codex/21129-mcp-bridge
Open

dezren39 wants to merge 1 commit into
mainfrom
codex/21129-mcp-bridge

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add the seven approved id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat #7914 MCP bridge tool definitions over the existing capability crate
  • explicitly exclude the five forbidden non-tools
  • pin the serialized definition hash at session start and terminate on any mid-session change
  • add the surface oracle and register it in the id crate-integration test venue

Closes #7914

Evidence

  • python3 -m json.tool .github/test-suite-registry.json
  • bash .github/scripts/check-suite-registry.sh (new path is registered)
  • rustfmt --edition 2024 --check passes for both new Rust files
  • git diff --check passes
  • Full cargo build/test was not run in this sandbox; CI should run the registered id.rust.crate-integration venue.

Merge Danger

Low for the isolated data-only surface. This PR does not add transport, credentials, authority, quota, audit, or world-host execution; those remain follow-up bridge wiring.


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 05:02
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 29 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9c67663d-9d6d-4acf-aeb8-bcb92a3a1264
Commits

Reviewing files that changed from the base of the PR and between 91272de and 3bd4903.

Files selected for processing: 4

  • .github/test-suite-registry.json
  • pkgs/id/crates/id-caps/src/lib.rs
  • pkgs/id/crates/id-caps/src/mcp_bridge.rs
  • pkgs/id/crates/id-caps/tests/mcp_bridge_surface.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:04:52.449377Z 3bd4903 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3bd490390c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{
"id": "id.rust.crate-integration",
"paths": [
"pkgs/id/crates/id-caps/tests/mcp_bridge_surface.rs",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire the new integration target into its registered venue

The registry now lists this test as covered, but the registered venue does not execute it: pkgs/id/flake.nix:383 delegates to test-crate-integration, and pkgs/id/justfile:300-305 still enumerates only the five existing integration targets without referencing mcp_bridge_surface. Consequently, that check can pass without exercising either new bridge test. Add the new target to the recipe rather than only updating the inventory.

Useful? React with 👍 / 👎.

Comment on lines +28 to +32
fn tampered_definition_terminates_session() {
let definitions = v1_tool_definitions();
let mut session = BridgeSession::start(&definitions).expect("the static surface serializes");
let mut tampered = definitions.clone();
tampered[0].ceiling = "credential.read".to_owned();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add property coverage for the definition-pin invariants

This test exercises only one fixed mutation of the first tool's ceiling, leaving the new serializer-backed state machine without the property coverage required by the repository's testing doctrine. Generate definition sets and mutations across names, commands, ceilings, ordering, and membership, then check verification sequences against a live/terminated model: unchanged definitions must succeed before termination, changed definitions must terminate, and termination must remain sticky. The fixed example can remain as acceptance coverage, but does not replace the required invariant tests.

AGENTS.md reference: AGENTS.md:L37-L39

Useful? React with 👍 / 👎.

@dezren39

Copy link
Copy Markdown
Member Author

🤖 Agent note · Lane FX verification pass on PR #12917 (queue task 21129) — paused at the test step

This branch has not been deployed

No deployments
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.

id(phase-14): spike 2/5 — MCP bridge: join, read screens, post chat

1 participant