Repository navigation
refactor(signal): share outbound and reaction transport - #119415
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 11:15 PM ET / August 5, 2026, 03:15 UTC. ClawSweeper reviewWhat this changesThis PR makes Signal message delivery and reaction handling share their existing transport functions instead of repeating forwarding wrappers and POST/DELETE request code. Merge readiness✅ Ready for maintainer review No blocking findings. Current main still contains the duplicated Signal forwarding and separate reaction helpers, while this exact-head refactor preserves their contracts and now has sufficient real-HTTP proof. Priority: P3 Review scores
Verification
How this fits togetherThe Signal plugin converts agent message and reaction actions into requests to either a Signal daemon or container transport. These helpers resolve the account and recipient, issue the HTTP request, then return the delivery result to the channel runtime. flowchart LR
A[Agent action] --> B[Signal channel plugin]
B --> C[Account and recipient resolution]
C --> D[Outbound message or reaction helper]
D --> E[Signal container HTTP transport]
E --> F[Delivery or reaction result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -157, Other -1. Total -158 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one canonical Signal outbound and reaction transport path, preserving the already-tested account, recipient, media, reply, and HTTP-method contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor rather than a reported defect, and its exact-head production-function loopback transcript verifies the preserved transport behavior. Is this the best way to solve the issue? Yes. Direct delegation to the existing owner functions removes duplicate policy without adding a parallel transport path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1f3d45b76f51. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
What Problem This Solves
Signal maintained repeated outbound adapter forwarding and duplicated reaction HTTP transport and error handling. This is part of a maintainer-requested project-wide production LOC reduction campaign.
Why This Change Was Made
Delegate outbound transport directly to its canonical owner and share equivalent reaction request handling while retaining media-access authorization, account identity, quoting, group addressing, and POST/DELETE contracts.
User Impact
Signal messaging and reactions retain the same observable behavior and security boundaries with 157 fewer production lines.
Evidence
max-linessuppression and its single grandfathered baseline entry; the channel is now 689/700 governed lines, strengthening the ratchet.gpt-5.6-solwithxhighreasoning; no accepted or actionable findings.git diff --check, scoped formatting, and direct before/after behavioral equivalence checks passed.Exact-head Signal outbound and reaction proof
The actual committed Signal plugin outbound adapter, container client, and reaction owner were loaded from the exact reviewed SHA and executed against a real isolated loopback HTTP server. All three changed production blobs were checked against the PR commit; account and recipient identifiers below are redacted synthetic fixtures.
Proof ran on Blacksmith Testbox lease tbx_01kz7y3e1058j8c2yv6csxcxvp with authoritative wrapper exit code 0; a fresh exact-head focused rerun also passed 175 tests across five production real-server, media-security, channel-core, container, and reaction suites. A registered live Signal container was intentionally not used: it would require operator-owned registered credentials and send an unauthorized external Signal message. The isolated real-HTTP fixture executes the actual production send and reaction paths without touching user state.
ClawSweeper rank-up disposition: the outbound send plus reaction add/remove move is addressed by the observed exact-head production/real-HTTP transcript above. Rebasing onto current main is intentionally skipped: the unchanged reviewed SHA already passed 223 focused Signal tests, the full remote changed gate, 175 freshly rerun exact-head tests, and exact-head hosted ci-gate; a rebase would invalidate that reviewed SHA. The canonical maintainer merge workflow rechecks current-main drift, treats it as advisory, and verifies hosted exact-head gates immediately before landing.