[PR #6530] [MERGED] feat(cli): report version and runtime with an explicit output format #7377

Closed
opened 2026-11-01 21:47:25 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/6530
Author: @mhamzasakhi
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @gensokyo-dev

Base: main ← Head: feat/version-json


📝 Commits (10+)

  • 7e1326c feat(cli): report version and runtime with an explicit output format
  • 1635ead refactor(errors): centralize input failure construction
  • 524b847 docs(readme): add Roman Urdu edition (#6499)
  • 6c4d880 fix(process): parse native teardown relation sentinels
  • 044bd86 fix(cli): make version report privacy checks environment-independent
  • 14e7459 refactor(nativeaot): share report facts across budget stages
  • bcd1f95 fix(adb): preserve empty properties and verbatim version names
  • e44ff46 fix(artifacts): recognize empty Zip64 containers
  • 860b3dd fix(erlang): accept uninterpreted BEAM alignment bytes
  • e44899d fix(gpu): accept PTX entries without parameter lists

📊 Changes

686 files changed (+49358 additions, -7108 deletions)

View changed files

📝 .github/workflows/release.yml (+47 -23)
📝 CONTRIBUTING.md (+5 -0)
📝 README.md (+1 -1)
📝 docs/adb-device-analysis.md (+10 -3)
📝 docs/agent-environments.md (+32 -8)
📝 docs/android-analysis.md (+4 -0)
📝 docs/apk-signature.md (+10 -5)
📝 docs/apple-application-analysis.md (+10 -3)
📝 docs/binary-diagnostics.md (+30 -9)
📝 docs/browser-observation.md (+17 -2)
➕ docs/ci-analysis.md (+90 -0)
📝 docs/cli.md (+99 -2)
📝 docs/desktop-applications.md (+1 -1)
📝 docs/electron-observation.md (+4 -1)
📝 docs/elf-notes.md (+14 -5)
📝 docs/erlang-beam.md (+9 -1)
📝 docs/evm-bytecode.md (+4 -2)
📝 docs/firmware-analysis.md (+21 -0)
📝 docs/ghidra-dos.md (+12 -6)
📝 docs/go-binaries.md (+16 -7)

...and 80 more files

📄 Description

Summary

Closes #5483. rea --version --json or an explicit --format returns package version, runtime identity/support, platform and architecture. Plain --version keeps its existing output; help and other output controls retain their documented handling.

The launcher now handles formatted versions before loading analysis commands. Global setting validation has one lightweight owner shared by the launcher and compiled CLI drivers; mcp doctor and version reports share document rendering. No target interaction, provider prerequisite, new MCP tool, or additional runtime bundle entry is introduced.

Validation

Linux x64, pinned Node 24.22.1 / npm 11.16.0:

  • 231 tests passed across 12 selected files, including public CLI, dispatcher cleanup, runtime bundles, real MCP doctor catalogs, doctor composition and compiled CLI drivers.
  • npm run check and npm run docs:check passed (including 9 README consistency tests).
  • A blocked-analysis-import regression passes with this dispatcher and fails with the original dispatcher. Real PTY JSON matches piped facts. A real Node 20 probe reports supported_runtime: false; this is not Node 20 analysis support.
  • Three alternating pairs of equivalent completed version requests: median elapsed 1.716 → 0.203 s, wait-accounted CPU 1.968 → 0.198 s, sampled family RSS 335.6 → 72.1 MiB. All 207 output bytes remain identical. Plain-version and filtered-providers controls also preserve exact output; no token reduction or general analysis speedup is claimed.

Executed methods, source/build identities, measurements and limitations.

One earlier parallel selection had 209 passes and one existing 3000 ms process deadline failure. The later serial 231-test selection passed without changing deadlines; the failed attempt is retained and its cause is not conclusively attributed. Bun, macOS and Windows end-to-end behavior was not run.

Hosted CI completed with 9 demonstrated baseline-only failing cases, all reproduced on its exact main parent and merge revision. Complete attribution and correction. Fail-fast cancellations and aggregate failures leave incomplete broad-suite coverage; this is not a green-CI claim. Four Greptile findings target unchanged baseline blobs and remain open, while Codex completed current-head review without findings. Merge used the explicit baseline-failure bypass authorization; no unrelated repair is included.

Author readiness

Human owner: @mhamzasakhi

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/6530 **Author:** [@mhamzasakhi](https://github.com/mhamzasakhi) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@gensokyo-dev](https://github.com/gensokyo-dev) **Base:** `main` ← **Head:** `feat/version-json` --- ### 📝 Commits (10+) - [`7e1326c`](https://github.com/morluto/rea/commit/7e1326ced56c47fb55cadadadadd6119515be8c7) feat(cli): report version and runtime with an explicit output format - [`1635ead`](https://github.com/morluto/rea/commit/1635eadfcc49bbb80178838ab74667c2981de383) refactor(errors): centralize input failure construction - [`524b847`](https://github.com/morluto/rea/commit/524b84792fdc10a8356db99c009bb5d4e7027c8a) docs(readme): add Roman Urdu edition (#6499) - [`6c4d880`](https://github.com/morluto/rea/commit/6c4d880f2dd9ca7d42593be916f90ec19b8a09d7) fix(process): parse native teardown relation sentinels - [`044bd86`](https://github.com/morluto/rea/commit/044bd861b2df082eca5d4ad91d7cb79876c13430) fix(cli): make version report privacy checks environment-independent - [`14e7459`](https://github.com/morluto/rea/commit/14e745950e1a645b9e79c0b26b951a1309ec5e84) refactor(nativeaot): share report facts across budget stages - [`bcd1f95`](https://github.com/morluto/rea/commit/bcd1f95e688a2ac020a9d13f9c85e0ce321cb6b6) fix(adb): preserve empty properties and verbatim version names - [`e44ff46`](https://github.com/morluto/rea/commit/e44ff4666a44f332dd9bc883b63b536a19f1c024) fix(artifacts): recognize empty Zip64 containers - [`860b3dd`](https://github.com/morluto/rea/commit/860b3dd6b0124ac84510382e176534d945882f3c) fix(erlang): accept uninterpreted BEAM alignment bytes - [`e44899d`](https://github.com/morluto/rea/commit/e44899d510ce3bcd2640394028d20bd9de0ac427) fix(gpu): accept PTX entries without parameter lists ### 📊 Changes **686 files changed** (+49358 additions, -7108 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/release.yml` (+47 -23) 📝 `CONTRIBUTING.md` (+5 -0) 📝 `README.md` (+1 -1) 📝 `docs/adb-device-analysis.md` (+10 -3) 📝 `docs/agent-environments.md` (+32 -8) 📝 `docs/android-analysis.md` (+4 -0) 📝 `docs/apk-signature.md` (+10 -5) 📝 `docs/apple-application-analysis.md` (+10 -3) 📝 `docs/binary-diagnostics.md` (+30 -9) 📝 `docs/browser-observation.md` (+17 -2) ➕ `docs/ci-analysis.md` (+90 -0) 📝 `docs/cli.md` (+99 -2) 📝 `docs/desktop-applications.md` (+1 -1) 📝 `docs/electron-observation.md` (+4 -1) 📝 `docs/elf-notes.md` (+14 -5) 📝 `docs/erlang-beam.md` (+9 -1) 📝 `docs/evm-bytecode.md` (+4 -2) 📝 `docs/firmware-analysis.md` (+21 -0) 📝 `docs/ghidra-dos.md` (+12 -6) 📝 `docs/go-binaries.md` (+16 -7) _...and 80 more files_ </details> ### 📄 Description ## Summary Closes #5483. `rea --version --json` or an explicit `--format` returns package version, runtime identity/support, platform and architecture. Plain `--version` keeps its existing output; help and other output controls retain their documented handling. The launcher now handles formatted versions before loading analysis commands. Global setting validation has one lightweight owner shared by the launcher and compiled CLI drivers; `mcp doctor` and version reports share document rendering. No target interaction, provider prerequisite, new MCP tool, or additional runtime bundle entry is introduced. ## Validation Linux x64, pinned Node 24.22.1 / npm 11.16.0: - 231 tests passed across 12 selected files, including public CLI, dispatcher cleanup, runtime bundles, real MCP doctor catalogs, doctor composition and compiled CLI drivers. - `npm run check` and `npm run docs:check` passed (including 9 README consistency tests). - A blocked-analysis-import regression passes with this dispatcher and fails with the original dispatcher. Real PTY JSON matches piped facts. A real Node 20 probe reports `supported_runtime: false`; this is not Node 20 analysis support. - Three alternating pairs of equivalent completed version requests: median elapsed **1.716 → 0.203 s**, wait-accounted CPU **1.968 → 0.198 s**, sampled family RSS **335.6 → 72.1 MiB**. All 207 output bytes remain identical. Plain-version and filtered-providers controls also preserve exact output; no token reduction or general analysis speedup is claimed. [Executed methods, source/build identities, measurements and limitations](https://github.com/morluto/rea/blob/721f5793641578a131dd783b9673a4559245cbbc/docs/verification/cli-version-report-2026-10-23.md). One earlier parallel selection had 209 passes and one existing 3000 ms process deadline failure. The later serial 231-test selection passed without changing deadlines; the failed attempt is retained and its cause is not conclusively attributed. Bun, macOS and Windows end-to-end behavior was not run. Hosted CI completed with **9 demonstrated baseline-only failing cases**, all reproduced on its exact main parent and merge revision. [Complete attribution and correction](https://github.com/morluto/rea/pull/6530#issuecomment-6369291606). Fail-fast cancellations and aggregate failures leave incomplete broad-suite coverage; this is not a green-CI claim. Four Greptile findings target unchanged baseline blobs and remain open, while Codex completed current-head review without findings. Merge used the explicit baseline-failure bypass authorization; no unrelated repair is included. ## Author readiness Human owner: @mhamzasakhi - [x] I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work. - [x] I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps. - [x] I declare this PR ready for initial maintainer review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-01 21:47:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#7377
No description provided.