Skip to content

fix(whatsapp,qa): compose audio actions correctly and stop premature drain failures; deslop old QA/browser code - #170889

Merged
steipete merged 1 commit into
mainfrom
deslop/o04-qalab-browser-20261013
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/o04-qalab-browser-20261013

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes lost audio setup when WhatsApp QA runs enable message actions, and false POSIX scenario failures while ordinary TERM cleanup is still in progress.

User Impact

WhatsApp QA operators combining audio preflight with message actions lost the audio tool setup: the action configuration rebuilt tools from the original base configuration. Extend the accumulated tools instead, so both requested capabilities remain enabled. An independent regression exercises the exported configuration builder; its negative control failed before the fix.

POSIX QA scenario commands could report a pipe-drain failure after one second even while the normal two-second TERM grace was still running. Record failure only when abandoning undrained readers, preventing false failed runs while retaining process-group verification, bounded cleanup, and write-capable shutdown settlement. The isolated production entry reproduced the false failure before the fix and succeeded afterward; a fake-clock regression pins the boundary.

Old-code simplification

Consolidate image traversal, request-observation ownership, bus waiters, Slack response classification, Node selection, WebSocket decoding, and evidence defaults. Remove duplicate planner validation and unsupported private lifecycle machinery. Preserve public contracts, input validation, security authority, resource bounds, and ordinary shutdown settlement. QA Lab's runnable harness is counted and treated as production even though excluded from npm built files.

Net production LOC: −255 (160 added, 415 removed across 22 production files; tests, fixtures, test support, generated files and declarations excluded). Fresh origin/main seven-day eligibility check clears every changed production file. The coordinator waived the size floor for these two bug fixes. No config, schema, dependency, or public SDK expansion; Phase E memory code is untouched.

Evidence

  • Frozen independent review: no accepted actionable P0–P2 findings.
  • Core-test type shards and affected extension production/test types passed; affected lint and formatting passed.
  • Runtime value cycles: 0; Madge: 0. Lint-suppression and structural/plugin boundary ratchets passed; no new suppressions.
  • Focused batches passed: 288 tests/19 files, 228/11, 17/4, and 131/4. Final Windows/process-lifecycle/lint-suppression proof: 7 passed (442.90s including runtime build); final AIMock/lint-suppression proof: 15 passed (27.87s).
  • Aggregate changed gate is not claimed green: local Knip reports untouched memory-core/session-accessor/UI exports. The owned Windows unused export was removed and no longer reported. Hosted exact-head CI remains the landing gate.
  • One prior parent-SIGTERM lifecycle test hit its existing 10s abort budget; unchanged fixture and native replay passed. Requested whole-file comparison passed 9/9 in all four runs: three sequential runs at d7aeeeb (51.36s, 23.18s, 54.02s), once on pinned current main db87a3b (73.24s). Parent-SIGTERM itself: 1645/411/592ms at head, 860ms at main. All used the repository test wrapper with task-owned HOME/OpenClaw/XDG state and separate compiler-cache paths. The original transient remains unexplained, not proven fixed or head-only. No timeout, retry, or skip changes.
  • Hosted exact-head CI run 38375380285, attempt 1: all 79 jobs completed; three root test shards and their aggregate gate failed. The published classification is unknown because scheduled main used different shard names; that table is not used as attribution. Independent isolated replay on clean main db87a3b, the exact main parent of CI's tested merge acf4042b659867b7cc5d68897b01b45d9598c97f, reproduced all five cases with the same signatures (4 files/5 failed tests, wrapper 597.21s; no assertion, timeout, retry, or skip changes). Native current-source private-QA runtime prebuild passed in 155.1s, followed by the supported prebuilt test consumer; declarations/types remain separately proved. Landing uses the authorized native inherited-failure exception, not a green-CI claim:
    • changed-2 / job 115223101541: conversation ownership returns Conversation binding ownership changed. Retry the request. on both CI and main.
    • changed-3 / job 115223101407: repeated-request recovery hits the same 250,000ms stability-evidence timeout on both.
    • changed-5 / job 115223101776: Workboard reports card=running and times out waiting for managed-worktree state; WebChat observes all 24 artifacts but rawMediaVisible: true, on both.
    • aggregate / job 115230613280: downstream of precisely those three root jobs. Independent security-fast, type, lint and all other selected jobs passed. The initial PR-body heading failures were corrected and current metadata checks passed automatically; no CI reruns or source re-pushes.

Best-effort tradeoffs accepted

Consolidate image traversal, request observation ownership, bus waiters,
Slack response classification, Node selection and WebSocket decoding.
Retire the generic Windows executable export after its Node caller moved;
keep trusted taskkill/PowerShell paths and all environment validation.
Remove duplicate planner validation and unsupported private lifecycle guards.
Keep external evidence validation, security authority, resource limits and
ordinary write-capable shutdown settlement.

Also preserve WhatsApp audio preflight when enabling message actions and
avoid recording a POSIX pipe-drain failure during the normal TERM grace.

Best-effort tradeoffs accepted:
- Bus cloning trusts its private typed event union. 0ebeee8 added the
  unsupported-kind throw only for lint; fabricated internal kinds now fail
  naturally, and a new typed variant must update this owner at compile time.
- Overlapping private QA driver transitions are unsupported; callers await
  them. #113855 introduced synthetic interleavings, not a human incident.
- Canonical smoke selection is trusted instead of revalidated; #114055 was
  an ownership cutover. A future selector defect belongs at that owner.
- Wire image inputs are parsed JSON trees. #71311 introduced no human
  cyclic-input incident; unsupported internal cyclic objects are best effort.
- Fabricated cyclic/BigInt tool outputs now fail clearly instead of becoming
  empty evidence. 195e721 added stabilization, not a human incident.
- Reinstalling the private AIMock mount is unsupported. bdc9c60 added
  speculative guards; the actual owner installs it once before start.
- Obsolete repeated observer disposal after port reuse can remove the newer
  QA lookup. 6386dc4 was an affinity repair, not a disposal incident;
  normal unique-port ownership and stop ordering prevent that lifecycle.
- Local non-federated Matrix joins fail immediately on setup errors; #64489
  added initial coverage, not a reported transient-join incident. Rerun the
  QA command after an unusual setup fault.
- Artifact publication is trusted after its awaited atomic writer. #92606
  added suite execution, not a missing-write incident; deletion afterward
  is reported by normal readers.
- Native browser JSON needs no branded rawJSON surrogate workaround.
  #140882 added that generality without a human incident; a future branded
  producer must own its serialization contract.
- Insertion-only pending caches clear directly on settlement. #113926 and
  #128379 supplied no human successor-eviction incident; no replacement can
  precede these finalizers. Real close-time successor checks stay.
- Re-registering the identical private borrowed-relay handle is unsupported.
  #128379/#133706 introduced no such incident; the owner creates fresh handles
  and current authority and distinct-successor comparisons remain.
- Inconclusive Linux process snapshots conservatively stay alive until the
  next check. #132230/#131643 used controlled fault injection, not a human
  actual-use incident. Final unconfirmed settlement retains state for retry.
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review October 13, 2026 09:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T09:23:05.270669Z d7aeeeb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete

Copy link
Copy Markdown
Contributor Author

Inherited-failure landing evidence for exact head d7aeeeb30e6fb139a652bfb079497aae400b85ee.

CI run 38375380285, attempt 1 completed all 79 jobs. The published table says unknown because scheduled main used different shard names; I did not treat that as inherited attribution. Instead, all four failing files were run on a clean, separately installed main checkout at db87a3b6364584c0667bd527298e5a91fd836bac, the exact main parent of CI's tested merge acf4042b659867b7cc5d68897b01b45d9598c97f. Its other parent is the exact PR head. The failing test inputs are byte-identical between that baseline and tested merge.

Each failed job is independently attributed:

Job Matching failure on main
changed-2 / 115223101541 Conversation route ownership: Conversation binding ownership changed. Retry the request.
changed-3 / 115223101407 Repeated-request recovery: same 250,000ms stability-evidence timeout.
changed-5 / 115223101776 Both Workboard cases: card=running and managed-worktree-state timeout. WebChat: all 24 artifacts observed, but rawMediaVisible expected false/received true.
aggregate / 115230613280 Downstream of exactly those three root jobs.

Main replay: 4 files/5 tests failed with those same signatures, 597.21s wrapper wall time. It used the native test wrapper, task-private HOME/OpenClaw/XDG state, and current-source private-QA runtime artifacts prepared by the native owner (155.1s), then the supported prebuilt consumer. Two earlier automatic preparation attempts were stopped before tests because automatic E2E setup forces full declarations; they are not test passes or retries. No fixture, assertion, timeout, skip, or retry changes. No hosted reruns or source re-pushes. The native evidence binds retained checkout/failure logs, hashes, tested merge and source objects.

Security-fast independently passed; types, lint, and all other selected jobs passed. Historical PR-body-heading failures are superseded by successful corrected metadata checks. The parent-SIGTERM file passed all 9 tests in three sequential head runs and once at main; the earlier isolated transient remains recorded, not claimed fixed. Untouched local Knip findings remain recorded, not concealed or described as passing.

Per the coordinator's standing authorization, proceeding through the native inherited-only admin exception. CI remains red; no green-CI claim. Net production reduction remains 255 lines, with security/public contracts and Phase E memory untouched.

@steipete
steipete merged commit 7f996f7 into main Oct 13, 2026
247 of 259 checks passed
@steipete
steipete deleted the deslop/o04-qalab-browser-20261013 branch October 13, 2026 10:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…0889)

Consolidate image traversal, request observation ownership, bus waiters,
Slack response classification, Node selection and WebSocket decoding.
Retire the generic Windows executable export after its Node caller moved;
keep trusted taskkill/PowerShell paths and all environment validation.
Remove duplicate planner validation and unsupported private lifecycle guards.
Keep external evidence validation, security authority, resource limits and
ordinary write-capable shutdown settlement.

Also preserve WhatsApp audio preflight when enabling message actions and
avoid recording a POSIX pipe-drain failure during the normal TERM grace.

Best-effort tradeoffs accepted:
- Bus cloning trusts its private typed event union. f993a27 added the
  unsupported-kind throw only for lint; fabricated internal kinds now fail
  naturally, and a new typed variant must update this owner at compile time.
- Overlapping private QA driver transitions are unsupported; callers await
  them. openclaw#113855 introduced synthetic interleavings, not a human incident.
- Canonical smoke selection is trusted instead of revalidated; openclaw#114055 was
  an ownership cutover. A future selector defect belongs at that owner.
- Wire image inputs are parsed JSON trees. openclaw#71311 introduced no human
  cyclic-input incident; unsupported internal cyclic objects are best effort.
- Fabricated cyclic/BigInt tool outputs now fail clearly instead of becoming
  empty evidence. 5929e9a added stabilization, not a human incident.
- Reinstalling the private AIMock mount is unsupported. e98e098 added
  speculative guards; the actual owner installs it once before start.
- Obsolete repeated observer disposal after port reuse can remove the newer
  QA lookup. ace0e05 was an affinity repair, not a disposal incident;
  normal unique-port ownership and stop ordering prevent that lifecycle.
- Local non-federated Matrix joins fail immediately on setup errors; openclaw#64489
  added initial coverage, not a reported transient-join incident. Rerun the
  QA command after an unusual setup fault.
- Artifact publication is trusted after its awaited atomic writer. openclaw#92606
  added suite execution, not a missing-write incident; deletion afterward
  is reported by normal readers.
- Native browser JSON needs no branded rawJSON surrogate workaround.
  openclaw#140882 added that generality without a human incident; a future branded
  producer must own its serialization contract.
- Insertion-only pending caches clear directly on settlement. openclaw#113926 and
  openclaw#128379 supplied no human successor-eviction incident; no replacement can
  precede these finalizers. Real close-time successor checks stay.
- Re-registering the identical private borrowed-relay handle is unsupported.
  openclaw#128379/openclaw#133706 introduced no such incident; the owner creates fresh handles
  and current authority and distinct-successor comparisons remain.
- Inconclusive Linux process snapshots conservatively stay alive until the
  next check. openclaw#132230/openclaw#131643 used controlled fault injection, not a human
  actual-use incident. Final unconfirmed settlement retains state for retry.
steipete added a commit that referenced this pull request Oct 14, 2026
kill(-pgid, 0) still succeeds while an unreaped zombie remains in the
group. When that zombie is reaped before the /proc scan, the snapshot is
empty and the owner returned the stale successful probe as "alive".
Hosted Extension Tests shard-2 hit this in 3 of the last 8 hourly main
runs via gateway-child-bootstrap assertStopped.

Restore the fresh kernel existence probe for inconclusive snapshots
(added in #132230, removed in #170889) and its regression test. A group
that still exists stays alive; only a fresh ESRCH releases it.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 15, 2026
…171692)

kill(-pgid, 0) still succeeds while an unreaped zombie remains in the
group. When that zombie is reaped before the /proc scan, the snapshot is
empty and the owner returned the stale successful probe as "alive".
Hosted Extension Tests shard-2 hit this in 3 of the last 8 hourly main
runs via gateway-child-bootstrap assertStopped.

Restore the fresh kernel existence probe for inconclusive snapshots
(added in openclaw#132230, removed in openclaw#170889) and its regression test. A group
that still exists stays alive; only a fresh ESRCH releases it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant