REA Buck2 notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

Buck2 / BUCK pins Buck target identity. In REA 6.7.x, treat selected target names as Evidence beside archive/package routes — complementing rea-buck2-toml without inventing APIs.

Mental model

  1. Authorize the Buck2 / BUCK configs (+ artifacts you hold).
  2. Quote selected target / rule pins you actually see (redact secrets).
  3. TOML cousin → rea-buck2-toml; Bazel cousin → rea-bazel-buildfile.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent a Buck2 API REA never called.

Minimal path

# authorized Buck2 / BUCK (+ artifact you hold)
# quote selected target pins into case notes (redact secrets)
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_buck2 .

Compare

ArtifactHonest posture
Buck2 / BUCK targetsBuck target identity facts
buck2-toml cousinrea-buck2-toml
Bazel cousinrea-bazel-buildfile
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_buck2 / automatic buck2 runs.
  • No credential theft from macros or secrets.
  • No pirate redistribution of paid artifacts.
  • No crack framing via Buck2 targets.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-buck2-toml?

rea-buck2-toml zooms on Buck2 TOML config identity. This page orients Buck2 / BUCK target Evidence habits — it does not overwrite that page.

Is there inspect_buck2 in 6.7.0?

Not assumed. Quote targets you actually open, then use documented package/archive lanes. Do not invent inspect_buck2.

Does REA run buck2 or steal secrets from BUCK files?

No. Local trees only. Redact secrets; do not treat REA as a build runner.

Buck2 vs Bazel / Earthly?

Label Evidence by the file present. Keep this Buck2 lane separate from rea-bazel-buildfile and rea-earthly.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources