#6782

docs(contributing): document restoring the Windows native addon from the verified npm tarball

Openagnaylorwants to merge intofrom

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:cached without the addon files; the refusal read REA 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 matched npm view rea-agents@6.7.0 dist.integrity after its sha512- prefix, npm run build:cached exited 0. Plain tar -xzf on a C: 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 openssl line shown, which produces the same base64 sha512.

Validation performed

  • npm run docs:check on this branch after merging upstream main e9b21aadc (Node 24.22.1, fresh npm ci) — exit 0.
  • The restore for rea-agents@6.7.0 on Windows 11 — digests matched, then npm run build:cached exited 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

9
greptile-apps[bot]1mo ago

Confidence Score: 5/5

[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.

  • Windows contributors can restore matching native files from a verified npm tarball.

Reviews (2) · Last reviewed commit: "docs(contributing): name Git Bash, opens..." · Reviewed by Greptile

greptile-apps[bot]reviewed1mo ago
agnaylorreviewed1mo ago
chatgpt-codex-connector[bot]1mo ago

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

ReviewStatusCommitReview trigger
📝 Code Review⚠️ Failed 2026-10-25T03:57:22.738539Z
We couldn’t complete this review. Comment @codex review to try again.
f6dc135Draft 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.

kaushikrawal43651mo ago

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.integrity pre-extraction check with working native PowerShell commands, isolated .tmp-restore/ extraction, cleanup, and artifact validation in native/windows/README.md.
  • CONTRIBUTING.md retains a direct link to the guide.
  • I've credited you with Co-authored-by in the commit.

Feel free to review the unified flow in #5039 and share any thoughts!