REA process capture notes (unofficial)
REA Process Capture runs one caller-selected command and records bounded evidence about terminal behavior, scheduled interactions, process lifetime and selected filesystem state — useful for comparing an authority build to a reconstruction. Prefer process-capture.md.
Minimal path
# scenario.json — tiny first capture
# { "executable": "node", "arguments": ["-e", "console.log('ready')"], "timeout_ms": 5000 }
rea capture-process ./scenario.json --json > capture.json
rea compare-process-captures authority.json reconstruction.json
Live status goes to stderr as rea_progress JSON lines; stdout stays the final Evidence document.
Mental model
- Write an explicit scenario (executable, args, timeouts, optional filesystem_observation_paths / events).
- Capture on Linux or macOS; keep Evidence files next to the case notes.
- Compare only captures whose comparison contracts match.
- Treat truncation_details and residual unknowns as first-class — missing data is not proof of equivalence.
Legal note
Captured processes can touch anything your user can. Run only scenarios you are authorized to execute; mark sensitive inputs with sensitive: true so they persist as byte-count placeholders.
RepoRead is unofficial. Prefer process-capture.md.
FAQ
Is process capture a sandbox?
No. Upstream states the command runs with the current user's permissions and inherits the host environment before scenario overrides. Filesystem observation paths select what REA snapshots; they do not restrict what the process can read or write.
Which hosts can capture?
Capturing a new scenario currently requires Linux or macOS with a working native PTY backend. Native Windows capture is unavailable; comparing existing capture Evidence remains available on Windows.
How do I start?
Save a scenario.json with at least executable (and usually arguments / timeout_ms), then rea capture-process ./scenario.json --json > capture.json. Choose an output file distinct from the scenario input.
How do I compare authority vs reconstruction?
rea compare-process-captures authority.json reconstruction.json under a shared comparison contract. Residual unknowns or truncated observations prevent a complete-equivalence claim.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).