Repository navigation
fix(test): live ACP bind lane fails after raw harness sessions moved to the requesting agent - #182005
Conversation
openclaw#168989 keeps /acp spawn sessions for raw harness ids (claude, codex) owned by the requesting configured agent, but the live ACP bind test still asserted agent:<harness>:acp:, so the lane failed at the bind step on every run. Assert the owner the spawn contract defines instead.
|
🦞👀 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 maintainer review before merge. What this changesThis PR makes the ACP bind live test expect raw-harness sessions in the requesting main agent’s namespace. Example: The main session runs /acp spawn claude --bind here without a configured claude agent.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a stale live-test expectation, preserves the intentional ACP ownership contract, and has no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe live lane starts a Gateway and real ACP harness, sends chat RPCs for a synthetic Slack conversation, and checks binding, routed replies, and transcript continuity. flowchart LR
A[Live ACP bind lane] --> B[Gateway chat RPC]
B --> C[ACP spawn owner]
C --> D[Main-owned session]
D --> E[Real ACP harness]
E --> F[Transcript verification]
Technical reviewBest possible solution: Land the focused assertion correction while retaining the production ownership rule and downstream live checks. Do we have a high-confidence way to reproduce the issue? Current main’s assertion contradicts the production raw-harness ownership rule, and the linked release-validation report explicitly records that namespace mismatch; no target code was executed during this review. Is this the best way to solve the issue? Changing the existing assertion is the smallest complete repair for the lane’s standard raw-harness configuration and preserves all subsequent behavior checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0a9d5cc49d91. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
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 HistoryReviewed October 24, 2026, 2:34 AM ET / 06:34 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…nclaw#182005) openclaw#168989 keeps /acp spawn sessions for raw harness ids (claude, codex) owned by the requesting configured agent, but the live ACP bind test still asserted agent:<harness>:acp:, so the lane failed at the bind step on every run. Assert the owner the spawn contract defines instead.
Related: #178944, #181959
What Problem This Solves
Fixes the live ACP bind lane rejecting a correctly created raw-harness session because it still expects the harness name in the session-key owner field.
User Impact
No runtime behavior changes. ACP validation can proceed past binding to check routed turns and transcript continuity.
Why This Change Was Made
Commit
2c543afc5ec2(#168989) deliberately kept raw-harness sessions under the requesting configured agent. This lane requests the spawn frommain, so the expected namespace isagent:main:acp:. A harness that is itself a configured agent retains its own namespace; the lane's standard configuration does not define one.Thanks @anmol0b for the focused test correction and live investigation.
Evidence
git log -Sand its introducing patch; current main retains the stale harness-owned expectation. The existingacp-spawn-owner.test.tsindependently expects a main-owned raw-harness session.git diff --checkpass on integrated head76947045faff1732844782e4e8b60b3e0ea4e538.node scripts/run-vitest.mjs src/gateway/gateway-acp-bind.live.test.ts --config test/vitest/vitest.live.config.ts --maxWorkers=1). The skipped lane contains the changed assertion, so this local run is not claimed as a fresh live proof.