Repository navigation
feat(qa): run isolated behavioral proof for inline reviews - #138953
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: blocked before merge. Reviewed September 7, 2026, 8:34 AM ET / 12:34 UTC. ClawSweeper reviewWhat this changesAdds isolated Telegram scenarios and browser chat checks that return request-bound observations to the originating ClawSweeper review. Merge readiness⛔ Blocked before merge - 3 items remain This remains a useful, distinct implementation absent from current main. No concrete introduced defect was found; the maintainer-protected PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherMantis supplies behavioral evidence for OpenClaw reviews. Trusted controllers run selected candidate code in isolation, capture observations, and return verified evidence for ClawSweeper to assess. flowchart LR
A[Review request and candidate] --> B[Trusted workflow admission]
B --> C[Isolated candidate]
D[Bounded scenario] --> C
C --> E[Trusted recorder or browser]
E --> F[Artifact identity verification]
F --> G[Original review assessment]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +2257, Docs +49, Config +407, Other +4492. Total +7211 across 45 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the isolated producer and coordinate activation with the companion consumer, preserving inconclusive outcomes until hosted acceptance establishes the complete path. Do we have a high-confidence way to reproduce the issue? Not applicable to the feature request; the supplied evidence separately describes a concrete before/after reproduction of failed browser responses being accepted as proof. Is this the best way to solve the issue? Yes for the producer boundary: it reuses existing recorder, broker, browser, and QA contracts while separating candidate execution from evidence authority. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff40e82cbde8. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
4240c31 to
ce7aac8
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…138953) * feat(telegram): add isolated Test Server proof workflow Add maintainer-only exact-head admission, durable at-most-once QA lease consumption, isolated candidate execution, and normalized trusted Telegram Test Server observations. Co-authored-by: brokemac79 <[email protected]> * feat(proof): bind named Web UI and canonical Telegram QA evidence Reuse the existing formatting QA recipe, preserve isolated exact-candidate execution and produce the consumer request-bound receipt. Keep named smoke scenarios distinct and protect stationary harness ancestry. Co-authored-by: brokemac79 <[email protected]> * fix(proof): complete isolated QA execution and bounded failure capture Reuse canonical ephemeral device pairing and QA RPC scopes, preserve strict startup probes and recorder locks, and retain bounded wrong-text attempts without Telegram delivery. Co-authored-by: brokemac79 <[email protected]> * fix(mantis): revoke proof forwarding and enforce lease roles * fix(mantis): close proof producer CI gates * test(mantis): consolidate related proof suites within CI budget * test(mantis): preserve fast QA ownership when grouping integration cases * fix(mantis): accept exact branch-qualified workflow paths * fix(mantis): align live admission workflow path checks * feat(mantis): collect selected proof inside the originating review * fix(mantis): bound proof storage and preserve failure evidence Reuse verified storage across request-bound candidates, reserve backing capacity, retain sanitized rejection evidence, and repair cleanup and observation finalization. Scoped checks and dirty review pass; full Gateway and sandboxed browser runtime proof remain required before publication. * fix(mantis): retain bridge identity before startup * fix(mantis): keep candidate config readable under private umask * fix(qa): use verified rootless networking and join candidate shutdown * fix(qa): repair proof tooling checks and deterministic recorder fixture --------- Co-authored-by: brokemac79 <[email protected]>
Slack's connected identity-health test could fail an assertion before settling its mocked auth request, leaving monitor shutdown blocked until the teardown timeout. Synchronize on recovery entry and provider readiness, and always settle the request before joining shutdown in finally. Preserve degraded/workspace identity, delivery admission, auth call-count, ready-status, and released-state assertions. This is an internal validation repair: no OpenClaw runtime or update behavior changes, migrations, or operator actions. The related Telegram QA typing repair is already on main via #151632; the final diff contains only the Slack test change (0 production LOC; tests +35/-24). Validation: exact-head CI run 35329065686 completed successfully with 46 jobs; the native watcher returned GREEN without reruns. Recorded Slack proof passed 3,083 tests across 167 files, including all 27 auth-test cases. Fault injection reproduced the old teardown hang and showed restored cleanup finishing in 699 ms with only the injected assertion error. The review of record is scoped-clean, and ClawSweeper found no actionable issues on the exact head. Related: #151427, #138953, #151645, #151632.
…1641) Slack's connected identity-health test could fail an assertion before settling its mocked auth request, leaving monitor shutdown blocked until the teardown timeout. Synchronize on recovery entry and provider readiness, and always settle the request before joining shutdown in finally. Preserve degraded/workspace identity, delivery admission, auth call-count, ready-status, and released-state assertions. This is an internal validation repair: no OpenClaw runtime or update behavior changes, migrations, or operator actions. The related Telegram QA typing repair is already on main via openclaw#151632; the final diff contains only the Slack test change (0 production LOC; tests +35/-24). Validation: exact-head CI run 35329065686 completed successfully with 46 jobs; the native watcher returned GREEN without reruns. Recorded Slack proof passed 3,083 tests across 167 files, including all 27 auth-test cases. Fault injection reproduced the old teardown hang and showed restored cleanup finishing in 699 ms with only the injected assertion error. The review of record is scoped-clean, and ClawSweeper found no actionable issues on the exact head. Related: openclaw#151427, openclaw#138953, openclaw#151645, openclaw#151632.
What Problem This Solves
Supply behavioral observations when ClawSweeper needs them during its original review, without restoring the unconditional post-review step retired by openclaw/clawsweeper#1280.
Requested by @brokemac79 following @obviyus's feedback. Companion consumer: ClawSweeper #1425. The docs-only #140452 updates the command, timing and activation guidance from merged #138210.
Producer head:
f838be8f1e04fbca321aa60479f17490c9231aa1; actual merge base:fb90f804f48eff2f74fec25c224b5c65ba2799fc; tree:6acbc2a81d5662db4dd4e3e14ae3a48cd164302d. This evidence does not claim hosted deployment or activation.Implementation and User Impact
@clawsweeper proofremains an override with automatic head resolution. A secondary review is not required.chat.sendresponse before injecting the controlled final reply, then rechecks the reply after settling. A rejected response cannot produce successful observation artifacts. The legacy Crabline recipe is not a third automatic tool.slirp4netnsis verified without relaxing host policy. Candidate CLI shutdown precedes removal of its SSH/workspace state; unconfirmed shutdown remains inconclusive.The refresh incorporates merged #141075, which corrects the planner test's hosted-tooling classification. This PR does not raise the job cap, rewrite packing policy, omit growth inputs or weaken test timeouts. The only additional producer repair in this refresh is the three-line Web response-success guard found by independent review.
Real Behavior Proof
Claim: the actual producer can prepare an isolated exact-head candidate, exercise its Gateway, rebuild and observe its Control UI, retain request-bound observations and clean up. A failed matching Web response must not be accepted as successful proof.
Environment: one disposable Crabbox
provider=awsleasecbx_4f09c4c447df, c7a.8xlarge, AMIami-0461d919be7deb53c, rootless Podman 5.7.0, slirp4netns 1.3.3, private checksum-verified Crabbox 0.50.0 and a freshly allocated verified 32 GiB store. No instance profile was attached. Host-side transport forwarded CI only; proof controllers used sanitized environments and synthetic external credentials. This substituted for an unavailable local Docker engine, not for missing behavior proof.run_918f4e8c9647run_097335ca6c69run_3188862a69e1run_378529aa413erun_30d65b49c916run_63c566bbe92eThe Web regression initially used a transport-only carrier whose tracked tree is identical to the final commit. Its actual observer and canonical mock-helper hashes were checked. The final commit was separately imported and verified, then native controllers were freshly packaged against the same frozen dependencies. Trusted Web image
5494bdc5a45d671c345471d094902a24da5f8a2a6039b788f4d9f6bedc183e24was retained because its source tree and install inputs are identical; final candidate builds and runtime observations are not relabeled carrier results. Actual final-head Telegram runtime image:555c08d4963ef1498e7ed285688f37a1c2630f6c009f61bdd4cc4076f8717c2e.Scenario and commands: the external fixture invokes the actual
prepare-request-telegram.mts,run-request-telegram.mtsandrun-request-web-ui.mtsfor the full final SHA. One synthetic tester message must reach the real isolated Gateway; its actual provider request and Bot API response drive the canonical recorder. Web proof builds the actual candidate archive offline inside the restricted container, then observes it from a fresh sandboxed Chromium process. The failed-response regression alters only the canonical mock Gateway's existing response seam and records unchanged outbound bytes.Limits: GitHub/Actions authority, Convex responses, Telegram network service and TDLib's native API are controlled external fixtures. The producer, Gateway, ingress, bridge, recorder, normalizer, Crabbox, Podman and Chromium are real. This is not live Telegram authentication, complete hosted Actions/queue timing, a mixed-version rollout or arbitrary UI coverage. The before/after negative fixture is synthetic HTML; rebuilt-current-UI proof is a separate row above.
The retained screenshot was inspected and shows the rebuilt Control UI's submitted request and stable final reply; its SHA256 matches the observer inventory:
6ec3ae9f13dd48163db6bb3be625c27a7ed34794f2d0fff911fed3e9e9a2f984. Gateway request/reply artifacts were independently read and bind both candidate and harness to the final SHA. Cleanup's original unprivileged census contained one inaccessible pre-existing root helper; late privileged observations corroborated its earlier start and unchanged full identity before/after cleanup. This is not an original privileged baseline.Evidence archive
csw152-f838-evidence-r2.tgzwas downloaded in run_a3fe7e911419, SHA256cead16c5a1608daeba25184c47a0cd9da862359344a5c006dbbab8b8732fc89d(30,716,587 bytes), with matching remote/local hashes and independently read cleanup/workflow status files. The first collection lacked permission to read mapped-UID synthetic traces; the second used read-only privileged collection without changing artifact ownership or permissions. The exact AWS lease was stopped; Crabbox inspection reportsstate=released,ready=false,cleanupStatus=complete, completed at2026-09-07T12:24:48.113Z. This is provider-reported cleanup, not an independent EC2 inventory audit.Historical supplementary proof remains explicitly scoped to its recorded source: actual recorder/status owner-SIGKILL and stale-send refusal (
run_254cbd4e80d3); recorder/normalizer/archive/finalizer handling of matching and wrong replies (run_aea267ad4f92); injected bridge-start failure with no tester send or semantic artifact (run_324214665f45); interrupted full-storage setup and ordinary partial cleanup (run_cdff1294b575). These are not substituted for the fresh final-head runs.Validation and Codex Review
run_658d26471151; all explicit phase status files were zero.run_53b56d2ee46fon checksum-pinned Node 24.20.0 (118.31s suite duration). The unchanged growth test first passed alone, then the complete suite passed; all explicit statuses were zero. No timeout, cap, source or dependency change was made. The runtime was installed only in a private task directory.run_dea3aa93fdf9): formatting, complete typechecking, structural guards and all three unused-export scans passed. Broad lint failed on the unchanged Telegram progress-updates test's existing 1,012-line limit violation. Its file, lint config and lockfile are identical at this head and basefb90; upstream has independently fixed this exact failure in merged #141139 and #141148. This is a recorded baseline failure, not a claim thatcheck:changedpassed. No feature change or lint bypass was introduced to hide it.run_4dc520fee04a: checksum-pinned actionlint and syntax checks for all 24 extracted Bash run blocks. Repository actionlint settings ignore ShellCheck findings; this does not claim standalone ShellCheck, the broadercheck:workflowssuite, rendered-expression behavior or hosted execution.run_bc29b66cc055, with zero reported entries; finalgit diff --checkand source cleanliness also passed.fb90was scoped-clean through P2 after the accepted response-success finding was repaired and actual browser proof rerun. Committed full 45-path autoreview atf838is scoped-clean through P2, zero actionable findings, confidence 0.90. Complete input and outgoing-pack TruffleHog scanning and final source verification remained enabled.Review reports:
csw152-producer-fb90-dirty-review-r2andcsw152-producer-f838-branch-review. Hosted CI and ClawSweeper assessment remain separate gates, not implied by local proof.Risks and Rollout
Release-note context: selective Telegram and fixed Web UI observations feed the original review, with a simple maintainer-command override.