Repository navigation
feat(cli): validate browser scenarios offline - #7343
Conversation
Fixes #5488. Integrates the validation-only command from #7149 with shared CLI admission and public offline boundary coverage. Co-authored-by: Ace <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryAdds
No actionable issues found. Tests were inspected, not run during this review. Checking whether another PR supersedes this one was blocked by unavailable GitHub authentication. gensokyo-dev explicitly acknowledged the unchecked readiness declarations and stated that the user authorized bypassing that gate without claiming human review. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Inline JSON, file, or stdin] --> B[Shared input parser]
B --> C[Resolve caller-relative paths]
C --> D[Canonical scenario schema]
D -->|Invalid| E[Existing field-path errors]
D -->|Valid: validate command| F[Return validity and counts]
D -->|Valid: capture command| G[Create provider and run capture]
Reviews (1) · Last reviewed commit: "feat(cli): validate browser scenarios of..." · Reviewed by Greptile |
Summary
Fixes #5488. Adds
rea validate-browser-scenario INPUT_JSON --jsonfor checking a scenario before execution. Inline JSON, files and stdin share the capture command's input parser, caller-path normalization and canonical domain schema. Success returns only{"valid":true,"actions":7,"secrets":2}; invalid input returns the existing actionable field-path diagnostics and exit 1.Integrates Ace's #7149 (
463c8bd73) with attribution preserved. A shared CLI admission helper removes duplicated parsing/normalization; the execution lifecycle remains owned by the existing capture service. Validation has no provider/environment argument, reads no secret values, and stops before discovery, launch, attachment or navigation. Schema validity does not establish runtime resource/selector availability.Scope decision: not applicable; this reads caller-selected JSON within the existing CLI/domain boundary and adds no target-execution authority. No MCP operation, Evidence, dependency or release-version change. CI generates the ignored CLI product catalog.
Executed validation
check:fast,docs:check, rendereddocs:build,format:checkand test discovery passed (2,628 files discovered exactly once). Initial test-helper typing errors were corrected before the final static gate.d109a3910: build and the public offline CLI smoke check passed again with the backend stopped and both secret variables unset; returned exactly{valid:true, actions:7, secrets:2}. No owned Node process remained after verification.Two CPUs, 3 GiB Node heaps and an 8 GiB family guard bounded local work; no resource stop. Verification and limits. Final CI run 40426216386 has 22,356 passed / 5 failed in the retained test reports. All five failures independently reproduce on its exact main parent
0ddde829b2a4ceb6ad1f883d1dd2aebb7305ac2e: bundle-root inventory, two SAZ assertions and two extraction-cleanup assertions. Static/docs/build, real browser/Web network/EVM/binary layout/JavaScript recovery, agentenv, both recorded-crash containers, all four selected Node/SQLite checks, Windows build and Linux native baseline pass.All cancelled-shard logs were inspected, including individual failure indicators omitted from aggregation. A traversal assertion also reproduces on that parent. One cancelled shard recorded a 30-second Markdown formatting timeout; that managed-artifact test and formatting path are unchanged, its exact main CI passes the case, and the full 23-case file passes on both main and PR in bounded local runs. The original timeout remains unreproduced and cancelled coverage remains incomplete; neither is claimed as passing CI.
Automatic Codex review was refused by the repository usage limit; there are no inline finding threads and no successful fresh automated review is claimed. The user authorized admin bypass; baseline failures, cancelled coverage and the unreproduced timeout are recorded above, and human-readiness declarations remain unchecked.
Author readiness
Human owner: @gensokyo-dev (account selected by the user; no human-review attestation made).
The user explicitly authorized a non-draft PR and admin bypass of this unchecked readiness gate without filling these declarations, plus bypass of independently proven unrelated main failures. This does not assert human review occurred.