REA Buf generate notes (unofficial)

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

Buf buf.yaml / buf.gen.yaml pins Protobuf module and generate identity. In REA 6.7.x, treat selected module/plugin pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.

Mental model

  1. Authorize the Buf tree (+ packaged .proto / generated artifacts you hold).
  2. Quote selected module paths, lint/breaking rules, and buf.gen.yaml plugins you actually see (never paste BSR tokens).
  3. Cousins → protobuf-blobs · graphql-codegen · openapi-generator · smithy-idl.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_buf_gen API REA never called.

Minimal path

# authorized buf.yaml / buf.gen.yaml (+ .proto + artifact you hold)
# quote selected modules / plugins / managed-mode pins into case notes
# cousins → peer Protobuf blobs / GraphQL Codegen / OpenAPI lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_buf_gen .

Compare

ArtifactHonest posture
Buf yaml configsModule/generate identity facts
Protobuf blobs peerrea-protobuf-blobs
GraphQL Codegen peerrea-graphql-codegen
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote buf.yaml module path(s) and lint/breaking use — enough for most Evidence binders.
  • buf.gen.yaml plugin names and out directories are identity facts — list them without pasting generated PII.
  • Managed mode / remote plugins may reference BSR — record plugin names only; redact tokens.
  • Keep Buf config distinct from raw protobuf blob Evidence in rea-protobuf-blobs.
  • Workspace vs single-module layouts are still Buf identity — note which layout you observed.
  • Breaking-change rules are config pins — quote rule sets you saw; do not invent REA helpers for CI enforcement.

Scope we will not cover

  • No inventing inspect_buf_gen / automatic BSR scraping against foreign registries.
  • No credential theft from BSR tokens or private remotes.
  • No pirate redistribution of proprietary .proto trees.
  • No crack framing via Buf pins.
  • No cookbooks that disable API auth on foreign deployments.

Honest limits

RepoRead documents config literacy — how authorized Buf trees relate to Evidence — not a full Buf course. Prefer upstream Buf docs for lint, breaking, and generate plugins. 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-protobuf-blobs / rea-graphql-codegen / rea-openapi-generator?

rea-protobuf-blobs covers protobuf binary/blob Evidence; rea-graphql-codegen covers GraphQL Codegen; rea-openapi-generator covers OpenAPI Generator. This page zooms on Buf generate identity — it does not overwrite those pages.

Is there inspect_buf_gen in 6.7.0?

Not assumed. Quote buf.yaml modules / buf.gen.yaml plugins you actually open, then use documented package/archive lanes. Do not invent inspect_buf_gen.

Does REA push to Buf Schema Registry or steal BSR tokens?

No. Local trees only. Redact BSR tokens and private remote refs; do not treat REA as a Buf CLI. No credential theft.

How should I label Evidence vs raw protobuf blobs?

Label Evidence by the file present. Keep Buf config separate from rea-protobuf-blobs binary/blob notes.

npm version checked?

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

Sources