REA Buck2 targets notes (unofficial)

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

Buck2 (BUCK, TARGETS, .buckconfig) pins target-graph build identity. In REA 6.7.x, treat selected target/rule/platform labels as Evidence beside archive/package routes — complementing cousins without inventing APIs. Chosen instead of a bazel-build near-dupe of bazel-buildfile.

Mental model

  1. Authorize the Buck2 project tree (+ packaged targets you hold).
  2. Quote selected target names, rule kinds, and platform keys you actually see (never paste secrets).
  3. Cousins → bazel-buildfile · pants-toml · earthfile · gradle-kotlin.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_buck2_targets API REA never called.

Minimal path

# authorized BUCK / TARGETS / .buckconfig (+ artifact you hold)
# quote selected target/rule/platform labels into case notes
# cousins → peer Bazel / Pants / Earthfile / Gradle lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_buck2_targets .

Compare

ArtifactHonest posture
BUCK / TARGETSTarget-graph build identity facts
Bazel peerrea-bazel-buildfile
Pants peerrea-pants-toml
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote target labels and rule kinds — enough for most Evidence binders.
  • Remote-cache / CI credentials often embed secrets — record key names only.
  • Platforms and transitions are useful in labs — quote labels, not live tokens.
  • Keep Buck2 distinct from Bazel BUILD and Pants TOML in case notes.
  • Cell / prelude pins are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory labels — quote them without inventing REA helpers for buck2 build.

Scope we will not cover

  • No inventing inspect_buck2_targets / automatic attacks against foreign Buck2 farms.
  • No credential theft from remote caches, CI tokens, or remote URIs.
  • No pirate redistribution of proprietary Buck2 trees.
  • No crack framing via Buck2 pins.
  • No cookbooks that weaken remote auth on foreign build farms.

Honest limits

RepoRead documents config literacy — how authorized Buck2 trees relate to Evidence — not a full Buck2 course. Prefer upstream Buck2 docs for targets and cells. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

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

FAQ

How is this different from rea-bazel-buildfile / rea-pants-toml / rea-earthfile?

rea-bazel-buildfile covers Bazel BUILD; rea-pants-toml covers Pants; rea-earthfile covers Earthly. This page zooms on Buck2 targets identity — it does not overwrite those pages.

Is there inspect_buck2_targets in 6.7.0?

Not assumed. Quote target/rule/platform labels you actually open, then use documented package/archive lanes. Do not invent inspect_buck2_targets.

Does REA connect to Buck2 remote caches or steal credentials?

No. Local trees only. Redact remote-cache tokens and CI credentials; do not treat REA as a Buck2 runner. No credential theft.

How should I label Evidence vs other build configs?

Label Evidence by the file present. Keep Buck2 separate from rea-bazel-buildfile, rea-pants-toml, and rea-earthfile.

npm version checked?

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

Sources