Skip to content

Check live connector authority before discovery and tool dispatch - #704

Merged
sambitcreate merged 2 commits into
mainfrom
feature/connector-discovery-authority
Nov 3, 2026
Merged

sambitcreate merged 2 commits into
mainfrom
feature/connector-discovery-authority

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Addresses confirmed weekly findings 5.6–5.9 on 9b2875d.

  • 5.6. Recheck tool membership, title/description, schemas and effect metadata on the client carrying the call. A list change invalidates outstanding reads and guards. Servers without notifications are re-listed before desktop calls. This covers long-lived and attended provider clients, exact Bot grants, and isolated child reads/mutations. A compatible handle still works after an unrelated list change.
  • 5.7. Exclude workspace-disabled connectors before the bounded child inventory does credential lookup or opens a connection. Foreground Bot grants remain independent.
  • 5.8. Preserve exact connector IDs across workspace save, load and discovery. A previously trimmed ID on disk cannot be reconstructed safely.
  • 5.9. Recheck the requesting Settings document after iMCP bundle verification, at the OS open. On main a rejected request still opened the app in the injected macOS probe.

The first-parent main fixtures failed all four original triggers. Local suites passed: 355 MCP tests, 147 phase-5C tests, 211 focused workspace/config/inventory/child tests (overlap between suites), CLI build and four bundled MCP parity tests, root and CLI type-checks, changed-file ESLint and git diff check. The SDK peer tests used in-memory or local transports. No production connector account or actual OS launch was used. Changes are host-local, with no Remote wire or mobile contract change.

PR #609 protects storage and the persisted stdio launch approval. It touches the same handler module but does not change the iMCP Open operation. PR #699 already verified the signed executable at launch.

CI history

On head 9ec70d531, the Linux x64 build failed under --fail-on-flaky-tests. The Snooze test at tests/e2e/inbox-sidebar.spec.ts:190 timed out after 15 seconds at line 236 looking for the Allow once button. The first attempt showed “This chat could not be loaded. Try again.” and Bot/Telegram storage-restore warnings. The built-in retry passed. The Linux x64 and arm64 gates also failed. No manual rerun was used. The connector fix does not establish a cause for this failure. Failing job

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

Tool-list revocation still permits a not-yet-sent child call to reach the server during HTTP authentication. The inline finding includes a reproduced read and mutation case.

Reviewed changes across desktop, isolated subagent, and CLI connector authority checks.

  • Live dispatch checks: Desktop calls reload the executing client's inventory as needed and reject changes to tool membership, presentation, schemas, or effect metadata.
  • Inventory invalidation: Cache revisions invalidate outstanding reads and guards; isolated child clients also track tool-list notifications, and CLI guards check the current connection and inventory revision.
  • Workspace discovery: Disabled connectors are filtered before child credential lookup or connection, and connector off-lists preserve exact IDs while Bot grants remain independent.
  • Settings authority: iMCP Open rechecks its originating document after bundle verification and before invoking the OS-open operation.
  • Coverage and documentation: Reviewed the added behavioral tests and updated connector documentation. Locally, MCP tests passed with one skip, and all 171 focused child/configuration/contract tests passed. Phase-5C passed 146/147 tests; the unchanged zero-recent-budget compaction test returned provider_failed / compaction-failed instead of completed, including on one focused rerun. CLI build/parity and a real macOS launch were not rerun.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

Comment thread main/services/mcp.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found in the incremental changes.

Reviewed changes since the previous review at 9ec70d531, focused on the HTTP send boundary and durable mutation cancellation.

  • Extended send-time checks: Bound each tool's authority guard to its RPC ID and rechecked it after credential preparation and before OAuth retries, including provider-key requests.
  • Fenced later listings: Revoked pending guards when a complete listing changes on the same client, while preserving guards across equivalent listings and rejecting conflicting overlapping reads.
  • Separated charging from retries: Charged child operations at the first authorized send and rechecked foreground authority before subsequent attempts without charging twice.
  • Preserved durable outcomes: Allowed pre-send cancellation with a local no-send receipt while retaining unknown outcomes after an attempted send or restart without such evidence.
  • Validated regressions: MCP tests passed with 366 passes and one skip; focused read/dispatcher tests passed all 26 cases. Phase-5C passed 148/149, with the same unchanged zero-recent-budget compaction test failure observed in the prior review (provider_failed / compaction-failed instead of completed). CLI build/parity and E2E were not rerun locally, and hosted CI was not yet complete.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate merged commit d012635 into main Nov 3, 2026
24 checks passed
@sambitcreate
sambitcreate deleted the feature/connector-discovery-authority branch November 3, 2026 15:51
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