REA go.mod replace notes (unofficial)
For legal, authorized and educational use only. Only analyze software you own or have written permission to examine. This page is not the official REA documentation.
Quick answer
go.mod replace pins local or fork module redirects. In REA 6.7.x, treat selected replace pins as Evidence beside archive/package routes — complementing cousins without inventing APIs.
Mental model
- Authorize the go.mod (+ artifacts you hold).
- Quote selected
replaceold => new pins you actually see (never paste proxy tokens). - Cousins → go-mod · go-modules · go-sum · go-work.
- Bind absolute paths honestly → rea-absolute-paths.
- Do not invent a
inspect_go_mod_replaceAPI REA never called.
Minimal path
# authorized go.mod (+ artifact you hold)
# quote selected replace old => new into case notes
# cousins → go-mod / go-modules / go-sum / go-work
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_go_mod_replace .
Compare
| Artifact | Honest posture |
|---|---|
| go.mod replace | old => new redirect identity facts |
| go.mod lane | rea-go-mod |
| go modules lane | rea-go-modules |
| Evidence binder | rea-evidence-explained |
Scope we will not cover
- No inventing
inspect_go_mod_replace/ automatic rewrite against foreign modules. - No credential theft from GOPROXY / private module tokens.
- No pirate redistribution of paid modules.
- No crack framing via replace pins.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-go-mod?
rea-go-mod covers broader go.mod module/require identity. This page zooms on replace directives — it does not overwrite that page.
Is there inspect_go_mod_replace in 6.7.0?
Not assumed. Quote replace old => new paths you actually open. Do not invent inspect_go_mod_replace.
Does REA run go get / rewrite replace for you?
No. Local trees only. No credential theft from private module tokens.
replace vs require vs go.work use?
Label Evidence by the directive present. Quote replace / require / use you open.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).