Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe branch preserves the configured channel agent for reply dispatch to bound Agent Client Protocol sessions while keeping session storage scoped to the external harness. Review scores
Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful candidate for an unresolved ACP dispatch failure. Current main lacks the owner propagation, and the overlapping open PRs do not establish a proven replacement. After-fix runtime evidence remains the merge blocker. Priority: P1 Before merge
FindingsNone. Agent review detailsHow this fits togetherChannel routing selects a configured OpenClaw agent, then conversation bindings can redirect messages to an external ACP harness. Reply dispatch needs the configured agent's published runtime while ACP execution and session storage retain the bound session identity. flowchart TD
A[Channel message or command] --> B[Configured channel route]
B --> C[Conversation binding]
C --> D[Preserved dispatch owner]
C --> E[ACP harness session]
D --> F[Published reply runtime]
E --> G[Harness execution and storage]
F --> G
G --> H[Channel reply]
Technical reviewBest possible solution: Keep configured dispatch ownership separate from harness session identity, with existing bindings continuing to work and current binding checks protecting dispatch. Do we have a high-confidence way to reproduce the issue? Yes, from source: route rewriting replaces the configured agent with the harness identity, while Gateway dispatch publishes configured-agent runtimes only. The linked issue supplies a concrete Discord reproduction; this review did not execute it. Is this the best way to solve the issue? Yes, the owner separation addresses the demonstrated invariant without renaming sessions or migrating stored bindings. End-to-end success still needs after-fix evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1746280d618b. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +98, Tests +123. Total +221 across 14 files. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 5, 2026, 10:18 AM ET / 14:18 UTC (Revision 3). |
1d44a83 to
c31724a
Compare
|
Rebased onto current main and force-pushed. One conflict in Overlap note: #149801 covers the same #146365 owner problem for Discord+Matrix at monitor level; this stack covers it generically via route spread (binding-routing/session-key/resolve-route) plus reply scope and fast-path init, which is what Telegram turns need. If #149801 lands first, the overlapping hunks here ( Local verification: fast-path + binding-route-owner 16/16, binding-routing 25/25, session-key 90/90 pre-rebase. Post-rebase, one timing-sensitive orchestration test ( |
What Problem This Solves
Fixes: bound ACP follow-ups keyed
agent:<harness>:acp:<id>lose the channel's configured owner when routing rewrites the session key, so reply dispatch looks up a runtime for the harness id and fails (prepared dispatch runtime owner not published; reply scope mismatch; fast-path session init under the wrong agent scope).Solution
Three gates, ported from local trial patch verified live on Telegram+opencode:
Impact
Evidence
get-reply.fast-path.test.ts+get-reply.binding-route-owner.test.ts: 16/16 pass (pre-rebase head, direct vitest).binding-routing.test.ts: 25/25 pass (2 expectations updated for the newownerAgentId).session-key.test.ts: 90/90 pass.earlier-child-change-during-later-base-read) times out on this small loaded box identically with and without these commits (all additions here are synchronous; the run also shows worker-task timeouts = infra starvation), leaving CI on healthy hardware as arbiter.git diff --checkclean.