Repository navigation
test(e2e): report the inspect command outcome when the built-CLI proof fails - #136478
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 4:32 PM ET / 20:32 UTC. ClawSweeper reviewWhat this changesThe PR adds bounded exit-code, signal, stdout, and stderr diagnostics when the built CLI plugin-inspection check fails. Merge readinessKeep open: current main has the shared CLI-output capture repair, but it still emits the terse pre-Gateway inspection failure this PR improves. No introduced correctness defect found; coordinate the overlapping diagnostic work with #136286 before merge. Priority: P2 Review scores
Verification
How this fits togetherThe SQLite lifecycle proof invokes the built CLI before a Gateway starts, verifies the bundled OpenAI plugin artifact, then continues into the Gateway lifecycle scenario. This change makes a failed pre-Gateway verification useful to CI readers. flowchart LR
A[Built CLI lifecycle proof] --> B[Inspect bundled OpenAI plugin]
B --> C{Artifact is valid}
C -->|Yes| D[Start Gateway lifecycle]
C -->|No| E[Capture command outcome]
E --> F[Bounded CI failure report]
Decision needed
Why: Both open PRs describe work at the same CLI inspection boundary, and the prior review's requested canonical-scope decision is not yet resolved by the available evidence. Before merge
Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one producer-side report for the failed inspection and integrate it once against the canonical shared CLI helper, then run the built-CLI lifecycle proof on that combined result. Do we have a high-confidence way to reproduce the issue? Yes, at source level: make the built CLI inspection return a nonzero or unexpected JSON shape, and the current-main catch path pairs its generic error with an empty pre-Gateway log. The supplied discussion also records observed failures at that boundary. Is this the best way to solve the issue? Yes: the command outcome is recorded at the failing inspection producer, while the shared CLI runner remains responsible for capture limits and command lifecycle. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cc2b9057d832. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Independent corroboration from the seven-day dependency refresh: its exact-head hosted build-artifacts job failed at the same pre-Gateway plugin inventory boundary. On that candidate ( We are holding our independently developed local capture patch unpublished so this repair can remain canonical. The broader complete-output/CLI-lifetime repair also changes this owner; those two implementations need coordination before integration. Our receipts corroborate the defect, not a passing run of either proposed repair. After the canonical fix lands, the dependency PR will rerun the owning proof on its integrated candidate. |
7c59edd to
1e58d65
Compare
1e58d65 to
92ffaa5
Compare
|
Land-ready summary (maintainer landing via Root cause and trigger. #136211 started reporting Head 92ffaa5ff57 is a rebase of 1e58d65 onto main 2c2e501 with an identical patch-id ( Proof.
Known gaps. Local Windows execution of the new POSIX-only signal case was not run here; the case is platform-gated in the test. |
…f fails When the built-CLI SQLite lifecycle proof cannot inspect the bundled OpenAI plugin, the Gateway has not started yet, so the failure's "Gateway diagnostics" block is always empty and CI readers learn nothing (main runs 33636023408 and 33642826781, PR run 33638802946 on 2026-09-02 all reported an empty block). Carry the inspect command's exit code, signal, and stdout/stderr tails in the thrown error instead. Also drop the comment claiming a log-tail bound applies to command results: #136434 made `cli()` return complete stdout and fail loudly on overflow, so the proof inspects one plugin only because that is the provider it exercises. Residual of the original #136478 change after #136434 landed the shared command-capture repair on main.
92ffaa5 to
9314dcf
Compare
|
Land-ready summary for the rewritten head (maintainer landing via Why this PR shrank. While it was open, #136434 (a8fe1a5) landed the shared Proof.
Known gaps. None for this six-line change; production LOC 0, test support +6/-2. |
|
Merged via squash.
|
…f fails (openclaw#136478) When the built-CLI SQLite lifecycle proof cannot inspect the bundled OpenAI plugin, the Gateway has not started yet, so the failure's "Gateway diagnostics" block is always empty and CI readers learn nothing (main runs 33636023408 and 33642826781, PR run 33638802946 on 2026-09-02 all reported an empty block). Carry the inspect command's exit code, signal, and stdout/stderr tails in the thrown error instead. Also drop the comment claiming a log-tail bound applies to command results: openclaw#136434 made `cli()` return complete stdout and fail loudly on overflow, so the proof inspects one plugin only because that is the provider it exercises. Residual of the original openclaw#136478 change after openclaw#136434 landed the shared command-capture repair on main.
Related: #136211, #136391, #136434
What Problem This Solves
Fixes an issue where the built-CLI SQLite lifecycle proof (
test/scripts/sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts) reported an unreadable failure when the built CLI could not inspect the bundled OpenAI plugin: the thrown message carried only a "Gateway diagnostics" block, which is always empty at that point because the Gateway has not started. CI readers ofmainruns 33636023408 and 33642826781 and PR run 33638802946 (2026-09-02) saw exactly that empty block and nothing about the command that failed.The original version of this PR also repaired the shared test-instance
cli()capture, which silently dropped the head ofplugins list --jsononce #136211 grew that payload past the 256 KiB log-tail buffer. That owner repair has since landed onmainin #136434 (a8fe1a587bb: head-captured stdout, loud overflow failure, tail-bounded stderr, complete/overflow regression cases), so this PR is reduced to the residual the proof still lacked.Why This Change Was Made
Record the fact where it happens: when the inspect command fails or returns an unexpected shape, the proof now throws with the command's exit code, signal, and bounded stdout/stderr tails. The comment no longer claims a log-tail bound applies to command results; the proof inspects one plugin because that is the provider it exercises.
User Impact
No user-facing behavior change. The next failure of this proof names the built-CLI command outcome instead of an empty Gateway log.
Evidence
main(test support +6/-2, production LOC 0).build-artifactsjob ran the sqlite lifecycle verifier against the originalplugins list --jsonpath and passed in 42 s (run 33661564208), and 92ffaa5ff57 had a fully green exact-head run (33675679586, attempt 2 after two Blacksmith runner drops).plugins list --jsonis 296,257 bytes withdependencyStatusand 226,390 bytes without, against a 262,144-byte cap; all 151 plugins in a source checkout are bundled-origin and 90 gaineddependencyStatusin fix(plugins): channels.<id>.enabled=false no longer loads the channel plugin when its plugin entry is enabled #136211.