test(auto-reply): guard message-tool-only reply privacy#76661
Conversation
|
Codex review: needs maintainer review before merge. Summary Reproducibility: not applicable. as a test-only guardrail PR rather than a bug report. Source and docs inspection gives high confidence that the intended behavior is current-main behavior, and the proposed tests target the missing same-provider origin-route coverage. Next step before merge Security Review detailsBest possible solution: Land the focused regression tests after normal maintainer review and CI/Testbox validation, preserving the existing message-tool-only privacy contract. Do we have a high-confidence way to reproduce the issue? Not applicable as a test-only guardrail PR rather than a bug report. Source and docs inspection gives high confidence that the intended behavior is current-main behavior, and the proposed tests target the missing same-provider origin-route coverage. Is this the best way to solve the issue? Yes. Adding focused coverage at the normal dispatch and ACP dispatch seams is the narrowest maintainable solution because it preserves the documented delivery contract without changing runtime behavior. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against e0a83c00461c. |
|
Landed via rebase onto main.
|
Summary
message_toolreplies by auto-routing normal final output, but that changes the documented delivery contract.message_tool_only, final/block/tool output is transcript-private; visible group/channel replies must come from the explicitmessagetool so send policy, tool auditability, and duplicate suppression stay intact.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
OriginatingChannel/OriginatingToroute shape from [codex] Fix group message-tool reply delivery #76647.message(action=send)already has same-origin target inference through the message tool context; normal final replies must remain private inmessage_tool_onlymode.Regression Test Plan (if applicable)
src/auto-reply/reply/dispatch-from-config.test.ts,src/auto-reply/reply/dispatch-acp.test.tsmessage_tool_onlyfinal ACP or normal dispatch replies visible.routeReply.message_tool_onlyturns without the same-provider origin route.User-visible / Behavior Changes
None.
Diagram (if applicable)
Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
pnpmtest wrappermessage_tool_onlygroup/channel deliverySteps
Expected
message_tool_onlyfinal replies are not queued through dispatcher orrouteReply.message_tool_onlyfinal replies stay private even when an origin route exists.Actual
Evidence
Human Verification (required)
Review Conversations
Compatibility / Migration
Risks and Mitigations
None.