REA Bazel notes (unofficial)
Bazel MODULE.bazel / WORKSPACE files carry external dependency identity for hermetic builds. In REA 6.7.x, treat them as Evidence beside archive/native routes — not as a live Bazel executor.
Mental model
- Authorize the MODULE/WORKSPACE tree (+ lock/pin files like
MODULE.bazel.lockwhen present). - Quote selected module names/versions and apparent external pins you actually see.
- Built archives/binaries → documented REA archive/native routes on absolute paths.
- Cousin build identity → rea-cmake-exports when the case is CMake, not Bazel.
- Do not invent a
bazel querygraph REA never ran.
Minimal path
# authorized MODULE.bazel / WORKSPACE (+ local build outputs you hold)
# quote selected module/external pins into case notes
# REA archive/native routes on /absolute/path/artifact --json
# do not invent: rea inspect_bazel .
Compare
| Artifact | Honest posture |
|---|---|
| MODULE.bazel / WORKSPACE | Bazel external identity facts |
| CMake exports | rea-cmake-exports |
| SBOM cousins | rea-sbom-notes |
| Go/Rust module cousins | rea-go-modules / rea-cargo-metadata |
Scope we will not cover
- No inventing
inspect_bazel/ automatic registry crawlers. - No Bazel remote-cache or registry credential theft.
- No pirate redistribution of proprietary external deps.
- No crack framing for commercial binaries built with Bazel.
RepoRead is unofficial. Prefer module/archive honesty + DISCLAIMER.md.
FAQ
MODULE.bazel vs WORKSPACE?
Newer Bazel projects lean on MODULE.bazel (Bzlmod); older trees use WORKSPACE (+ often WORKSPACE.bazel). Quote whichever files you were given — do not invent a migration REA never performed.
Is there inspect_bazel in 6.7.0?
Not assumed. Quote module/external pins you actually open, then use documented archive/native lanes. Do not invent inspect_bazel.
Does REA run bazel fetch or talk to registries?
No. Local trees and artifacts only. No registry credential theft.
How does this relate to CMake exports?
rea-cmake-exports covers CMake package export identity. Bazel is a different build graph — keep Evidence labels separate.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).