Skip to content

fix(test): live ACP bind lane fails after raw harness sessions moved to the requesting agent - #182005

Merged
steipete merged 2 commits into
openclaw:mainfrom
anmol0b:fix/acp-bind-live-raw-harness-owner
Oct 24, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
anmol0b:fix/acp-bind-live-raw-harness-owner

Conversation

@anmol0b

@anmol0b anmol0b commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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 from main, so the expected namespace is agent: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

  • Verified the ownership change with git log -S and its introducing patch; current main retains the stale harness-owned expectation. The existing acp-spawn-owner.test.ts independently expects a main-owned raw-harness session.
  • Targeted oxlint, oxfmt, and git diff --check pass on integrated head 76947045faff1732844782e4e8b60b3e0ea4e538.
  • Codex autoreview: scoped-clean, with no actionable P0–P2 findings. ClawSweeper also reports no findings on the final head. Main integration leaves the ownership implementation, its independent test, and the documented contract unchanged.
  • The affected file passes locally: 7 tests passed, 1 live-lane test skipped with live flags unset (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.
  • Exact-head CI run 40069852547 passes, including changed-test, boundary, lint, and type checks.
  • Production: +0/-0; tests: +3/-1. No new test harness, runtime code, configuration, or behavior is introduced.
  • No fresh live lane run for this test-only change. The contributor reported the obsolete assertion failing after a real Gateway created a main-owned session and five passing runs with the corrected assertion combined with the separate diagnostic change in improve(gateway): name which session identity changed when chat.send refuses stale storage #181959; those are contributor evidence, not validation of this final head.

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.
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 23, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The test rejects agent:main:acp:c562bcab-858e-4006-ab4e-e070059618ae because it expects agent:claude:acp:.
  • After: The assertion accepts the main-owned session and proceeds to routed-turn and transcript checks.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, correct validation repair with relevant real-runtime logs and successful current-head CI.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (logs): Linked live output exercises this assertion through a real Gateway, WebSocket chat RPCs, and Claude ACP in isolated state, showing main-owned binding and subsequent transcript progress; the Slack conversation is synthetic and the passing composition also includes the independently inspected diagnostic-only PR. The assertion is unchanged since the prior review, so this evidence remains applicable without claiming a fresh final-head live run.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: ACP release validation stops at an obsolete ownership assertion before checking bound-session behavior.
Reason: The correction restores validation of an existing documented contract without adding runtime code, configuration, or another decision owner.

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
Reviewed head: 76947045faff1732844782e4e8b60b3e0ea4e538

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Live ACP bind namespace expectation changes intended behavior with a stated reason (6a556c6: The original live Docker coverage checked the then-current harness-owned namespace; merged requester-ownership work later made that expectation obsolete.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 6a556c6 adds src/gateway/gateway-acp-bind.live.test.ts:316 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6a556c685147; files: src/gateway/gateway-acp-bind.live.test.ts)
  • Vincent Koc: Raw commit 748169d adds src/gateway/gateway-acp-bind.live.test.ts:134 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 748169d61a5c; files: src/gateway/gateway-acp-bind.live.test.ts)

PR surface

Tests +2. Total +2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 1 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 1 +2

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The obsolete assertion blocks useful ACP release-validation coverage without changing shipped runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-23T23:31:28.528Z sha a1ef5d8 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-24T00:09:02.047Z sha a1ef5d8 :: needs maintainer review before merge. :: none

Reviewed October 24, 2026, 2:34 AM ET / 06:34 UTC (Revision 3).

@anmol0b

anmol0b commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 24, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 24, 2026
@steipete
steipete merged commit 75ac398 into openclaw:main Oct 24, 2026
139 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

@anmol0b
anmol0b deleted the fix/acp-bind-live-raw-harness-owner branch October 24, 2026 12:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 25, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants