Repository navigation
Conversation
1598c05 to
63b8404
Compare
7750d4d to
7524147
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. This stale draft PR should close as superseded: the underlying outbound metadata leak is still valid, but #50520 is the fresher canonical fix path, while this branch patches an obsolete loop and also carries unrelated security-sensitive CI/macOS/test-runner changes. So I’m closing this here and keeping the remaining discussion on the canonical linked item. Review detailsBest possible solution: Review and land #50520 or an equivalent focused replacement that fixes the shared outbound payload plan without carrying this PR's unrelated CI/macOS/test-runner changes. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows a payload beginning with OpenClaw inbound metadata still reaches createOutboundPayloadPlanEntry, which calls parseReplyDirectives on raw payload.text before stripping. Is this the best way to solve the issue? No. This PR is not the best fix as-is because it patches an obsolete normalization loop, applies the broader timestamp-stripping helper, and mixes in unrelated CI/macOS changes; the narrower current-main solution is the open canonical PR's stripLeadingInboundMetadata call at the payload-plan boundary. Security review: Security review needs attention: The outbound fix idea reduces a privacy leak, but this PR adds an unrelated CI path that exposes GITHUB_TOKEN to contributor-controlled JavaScript.
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against ac323020c5c2. |
Closes #39847
Summary
Reproduction
parseReplyDirectives(payload.text)preservedConversation info (untrusted metadata)blocks in outbound text onorigin/mainValidation
pnpm exec vitest --run src/infra/outbound/outbound.test.tspnpm exec vitest run src/infra/outbound/outbound.test.ts src/auto-reply/reply/strip-inbound-meta.test.ts --reporter=verbose