Skip to content

fix(mcp): name the operation in the daemon-required refusal - #5482

Merged
Sinity merged 1 commit into
masterfrom
fix/mcp-daemon-operation-name
Sep 23, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/mcp-daemon-operation-name

Conversation

@Sinity

@Sinity Sinity commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Problem

polylogue-tar1n.2 (wave 4) routed MCP privileged writes through the daemon, which is correct. But its refusal said only:

start polylogued run to serve this operation

The MCP error payload carries no separate field for the operation name, so a client is told that something privileged refused, without being told which route. test_rebuild_insights_with_confirm_names_its_sealed_owner asserts the message names maintenance.insights.rebuild.

The lane that wrote this never saw the failure: its focused run was still queued in the shared pytest pool when it handed off, and it reported MCP-4 BLOCKED-ON shared pytest pool result honestly rather than claiming a pass. I ran it during closure review.

Fix

Both refusal sites interpolate the operation, as the CLI machine envelope already does since #5474.

Verification

devtools test tests/unit/mcp/test_privileged_tools.py -> PASSED exit=0
devtools verify --quick                               -> PASSED exit=0

Red before this change, green after.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy

polylogue-tar1n.2 routed MCP privileged writes through the daemon, but its
refusal said only 'start polylogued run to serve this operation'. The MCP
error payload carries no separate field for the operation, so a client could
not tell which privileged route refused.

test_rebuild_insights_with_confirm_names_its_sealed_owner asserts the message
names maintenance.insights.rebuild; the lane never saw it fail because its
focused run was still queued when it handed off.

Same gap #5474 closed for the CLI machine envelope, on the MCP surface.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy
@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 21 minutes.

Check out review usage here.

View limit details

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

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 70e10cc0-6389-4448-b738-21c90f9831ed

📥 Commits

Reviewing files that changed from the base of the PR and between 84a09d1 and 6b4a054.

📒 Files selected for processing (1)
  • polylogue/mcp/server_cutover.py

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

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T10:59:54.154253Z 6b4a054 PR opened
🔒 Security Review ✅ Completed 2026-09-23T11:02:57.877973Z 6b4a054 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.

@Sinity
Sinity merged commit 768d0b3 into master Sep 23, 2026
3 checks passed
@Sinity
Sinity deleted the fix/mcp-daemon-operation-name branch September 23, 2026 11:09
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