Summary
A Windows source checkout cannot build the Windows native addon (it builds only on Linux with MinGW-w64), and without native/windows/build/manifest.json and rea-windows-x64.node the build lock refuses to start npm run build:cached. CONTRIBUTING already says to keep the generated addon uncommitted but not how a Windows contributor obtains it. This adds a short, digest-verified procedure: take the two files from the same-version rea-agents tarball after checking its sha512 against the registry.
Problem and expected behavior
Trigger: npm ci && npm run build:cached in a fresh Windows 11 source checkout. Observed: the build lock (run-exclusive) refuses because it cannot own descendants without the native controls. Expected: CONTRIBUTING tells the contributor how to proceed without a Linux build lane when their checkout matches a published release.
Change and scope
Docs only: one paragraph and a five-line command block in CONTRIBUTING.md, placed after the existing note on the Linux build lane. The paragraph names the prerequisites: Git Bash from Git for Windows, which provides openssl and GNU tar; on Windows 11 the built-in tar.exe (bsdtar 3.8.9) rejected --force-local. It keeps the existing statement that a checkout whose version differs from every published release still needs that lane. No issue is linked; none was found for this setup question.
Contract and boundary impact
- Semantic owner and earliest changed stage: contributor documentation.
- Contribution scope fit and linked maintainer decision: not applicable.
- CLI and MCP/tool-catalog contract: none.
- Provider, bridge, target-format, or platform compatibility: Windows contributor workflow only.
- Evidence, artifact, provenance, or reconstruction contract: the procedure verifies the tarball's sha512 against the registry before extracting; the loader's own manifest checks are unchanged.
- Target selection, authority, upstream behavior, and cleanup details: not applicable.
- Generated metadata, package, or installation impact: none.
Expected effects:
- Documentation or usability only; no target interaction.
Evidence and regression coverage
- Base reproduction: on Windows 11 (Git 2.55.0.windows.4, Node 24.19.0), a fresh checkout at rea-agents 6.7.0 refused
npm run build:cachedwithout the addon files; the refusal readREA Windows native controls are unavailable: Missing packaged Windows native file native/windows/build/manifest.json. After restoring the two files from the 6.7.0 tarball, whose base64 sha512 matchednpm view rea-agents@6.7.0 dist.integrityafter itssha512-prefix,npm run build:cachedexited 0. Plaintar -xzfon aC:path failed in Git Bash, which is why the block uses--force-local. - Remaining proof gaps: the procedure was followed once, by hand, for one version; the digest was computed with a script rather than the exact
opensslline shown, which produces the same base64 sha512.
Validation performed
npm run docs:checkon this branch after merging upstream main e9b21aadc (Node 24.22.1, freshnpm ci) — exit 0.- The restore for
rea-agents@6.7.0on Windows 11 — digests matched, thennpm run build:cachedexited 0.
Compatibility, safety, and release
- Breaking changes or migration steps: none.
- Real Hopper/Ghidra, browser, or OS coverage: Windows 11.
- Package or release metadata impact: none.
- Security, privacy, process, or containment review: the files come only from the official registry tarball and are used only after the digest check.
Author readiness
Human owner: @agnaylor
- 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.
Before merge
- This PR addresses a concrete problem or an agreed enhancement.
- Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
- The PR has one focused outcome and the title follows
type(scope): outcome. - Related issue is linked, or the reason for not linking one is stated above.
- Tests cover changed observable behavior and meaningful failure paths.
- Owning docs, contracts, and generated metadata are updated where needed.
- User-visible CLI/MCP changes include representative output.
- I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
🤖 Generated with Claude Code
Activity
99a7e8c4Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
|---|---|---|---|
| 📝 Code Review | ⚠️ Failed 2026-10-25T03:57:22.738539Z We couldn’t complete this review. Comment @codex review to try again. | f6dc135 | 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.
Hi @agnaylor! The maintainer suggested coordinating our two PRs. Checking dist.integrity against the downloaded tarball before extraction is a great addition.
To align with repository conventions (keeping native/windows/README.md as the single owner of native controls rather than duplicating instructions in CONTRIBUTING.md):
- In #5039, I've unified your
dist.integritypre-extraction check with working native PowerShell commands, isolated.tmp-restore/extraction, cleanup, and artifact validation innative/windows/README.md. CONTRIBUTING.mdretains a direct link to the guide.- I've credited you with
Co-authored-byin the commit.
Feel free to review the unified flow in #5039 and share any thoughts!
[Low impact] The documentation change appears safe to merge.
Summary
Documents how Windows contributors can restore the native addon from a matching npm release after checking its digest.
Reviews (2) · Last reviewed commit: "docs(contributing): name Git Bash, opens..." · Reviewed by Greptile