Repository navigation
fix(test): restore shared-observer unsubscribe coverage - #186308
roboclaw-bot wants to merge 2 commits into
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 changes before merge. What this changesThis PR restores canonical subscription acknowledgement payloads in the shared-observer test and adjusts the test-line ceiling. Example: Two observers subscribe to agent:main:chat, then the first unsubscribes before text advances from A to AB.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR restores useful regression coverage with no introduced code defects found; GitHub reports a merge conflict and the exact-head CI gate remains pending. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe regression connects the production browser client, subscriber registry, and broadcaster through mocked WebSocket I/O to verify subscription changes and reconstructed chat delivery. flowchart LR
A[Observer requests] --> B[Browser protocol client]
B --> C[Fixture WebSocket]
C --> D[Subscriber registry]
D --> E[Broadcaster receipts]
E --> F[Browser chat projection]
Technical reviewBest possible solution: Preserve the acknowledgement-only correction and reconcile the shared ceiling to the resolved candidate's measured test corpus. Do we have a high-confidence way to reproduce the issue? Source inspection establishes that the existing fixture omits the response key consumed by browser baseline retirement; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete fixture repair: restore the original acknowledgement shape, reuse existing owners, and retain all delivery assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c804a35f5897. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +5, Other 0. Total +5 across 2 files. 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 HistoryReview history (7 earlier review cycles)
Reviewed October 27, 2026, 7:46 PM ET / 23:46 UTC (Revision 8). |
feb671f to
1e8d8c7
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
1e8d8c7 to
55b4b61
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
590e94b to
f95ed57
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Complete the browser handshake before sending subscription requests and return the real acknowledgement payload so unsubscribe retires the client baseline. Keep every behavioral assertion and set the test-line ceiling to the exact tracked total. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]>
Worked on by: - @vincentkoc - @jalehman Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: b6df24b8-0517-4c6e-afe8-3e085c3c5b2c
f95ed57 to
199af38
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Superseded by main commit c8df283 (#186330), which fixes the original handshake/request-frame failure. Latest scheduled main confirms the exact shared-observer case passes (69 ms) and all 18 tests in the file pass: https://github.com/openclaw/openclaw/actions/runs/40602073741/job/122532645760 . The remaining ACK-only coverage adjustment is not needed to unblock #184502; closing as instructed, without merging or deleting the branch. |
Related: #184502
What Problem This Solves
The shared-observer regression's subscription acknowledgements omit the canonical session key, so they do not exercise the browser's acknowledged-baseline retirement contract.
User Impact
No user-visible behavior changes. This restores the real acknowledgement shape in an existing browser/protocol/registry/broadcaster regression without removing test cases or weakening delivery assertions. The separate inherited-main repair was requested by @jalehman; it does not modify the guest-access stack.
Why This Change Was Made
Main's #186330 now owns the handshake and actual request-dispatch receipt. This candidate reuses that owner, removes the redundant added challenge/hello block, and retains only the acknowledgement payload correction. The net test-code change is +5 lines versus current main; all existing cases and delivery assertions remain.
The test-line ceiling is 6,290,703, exactly the measured test corpus in both the published head and GitHub's verified merge candidate: zero slack, no deleted tests and no allowance beyond that tree. It accounts for existing main growth plus this five-line fixture correction.
Evidence
Earlier revisions encountered a baseline-only merge conflict and then a head-versus-merge-candidate count mismatch while main advanced. All 18 fixture tests passed. This revision binds the counter to the verified actual candidate tree; the ACK-only patch is unchanged and no forced merge or prior-head CI waiver is used.
Current head: 199af38, based on main 0153f5f. GitHub's merge candidate d017801f8ba407fc6339939bff6affe8df142b9f was fetched through the live Git ref and its two parents verified. Its tree and the head tree are identical: e787d219446d370f07498e897d8d35595ecca8af. The canonical ratchet reports 6,290,703 / 6,290,703, slack 0, on that source tree. This verifies the actual candidate rather than relying on a stale merge preview or a head-only count against a different base.
Landing blocked by renewed counter conflict
After the tree-identical candidate above was verified, main changed the shared counter again. A fresh Git merge-tree inspection against observed main 4b27ee8 reports a conflict only in config/test-lines-baseline.txt (main 6,289,827; this head 6,290,703). The ACK-only source patch is unchanged. Current-head CI was still pending at the last gate read; the required CLEAN merge state is not established. No merge was attempted.
The rebase loop is stopped rather than adding future allowance or waiving exact-head CI/review. A stable test-corpus/counter landing window is needed to reconcile this shared-file contention and finish the required gates.
Contributor credit: @jalehman and @vincentkoc.
Work sessions
Worked on by