fabro/docs/execution
Bryan Helmkamp 7dd058cc40
refactor: unify run vocabulary and metadata snapshot layout
Implements the plan at
docs/plans/2026-04-20-003-refactor-unify-run-vocabulary-metadata-plan.md.

- Rename RunRecord to RunSpec and RunProjection.run to .spec everywhere
  in Rust source, tests, helpers, test names, and error messages.
- Introduce SerializableProjection wrapper that trims bulky node text
  fields (prompt, response, diff, stdout, stderr) for run.json snapshots.
- Collapse metadata-branch and CLI export to one RunDump::from_projection
  builder emitting run.json + graph.fabro + stages/{stage_id}/... and
  drop legacy top-level start/status/checkpoint/sandbox/retro/conclusion
  split files.
- Replace MetadataStore::write_checkpoint with write_snapshot returning
  the commit SHA; add read_run_projection/read_run_spec; demote
  read_checkpoint/read_start_record to projection-field extractors.
- Switch fork, rewind, rebuild_meta, CLI rewind recovery, and retro
  upload to read the unified projection layout.
- Add additive query methods on RunSpec and RunProjection.

Serde-level `alias = "spec"` shim dropped; `rename = "run"` retained to
keep the server API wire format stable per the plan's scope boundary.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 22:17:23 -04:00
..
checkpoints.mdx refactor: unify run vocabulary and metadata snapshot layout 2026-04-20 22:17:23 -04:00
context.mdx feat(workflow): persist offloaded context as global blob refs 2026-04-07 17:18:28 -04:00
devcontainers.mdx docs: migrate reference and guide examples to v2 config shape 2026-04-09 11:30:52 -04:00
environments.mdx docs: migrate reference and guide examples to v2 config shape 2026-04-09 11:30:52 -04:00
failures.mdx docs: migrate reference and guide examples to v2 config shape 2026-04-09 11:30:52 -04:00
observability.mdx refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
outcomes.mdx Attractor spec hunks 14 & 16: remove error_policy and k_of_n/quorum from parallel handler 2026-03-23 14:59:35 -04:00
retros.mdx refactor: unify run vocabulary and metadata snapshot layout 2026-04-20 22:17:23 -04:00
run-configuration.mdx refactor(config): move project state under .fabro 2026-04-11 12:55:46 -04:00