0008. Checkpoints are tags; experiments are branches
- Status: Accepted
- Date: 2026-10-29
- Plan: M0.6
Context
The language will be built in small working chunks, often by several agents at once. We want to return to any working state, and to try different approaches from it, without losing anything.
Decision
mainis always green (make check).- A checkpoint is an annotated tag
cp/<milestone>.<n>-<slug>onmain, created byscripts/checkpoint.shafter the gate passes and logged in CHECKPOINTS.md. The tag message records what works, the toolchain and any benchmark results. Tags are never moved or deleted. - An experiment is a branch
exp/<milestone>.<n>/<name>from a checkpoint tag, usually in its own worktree, with a written hypothesis and the measurement that decides it, logged in EXPERIMENTS.md. Finishing it archives the tip as tagarchive/exp/..., whether it was merged or abandoned. - Commits carry trailers (
Plan:,Checkpoint:,Experiment:) so history can be queried by task.
Alternatives considered
- A branch per milestone — long-lived branches drift and merge badly.
- Release tags only — too coarse to return to individual working chunks.
Consequences
git log --grep "Plan: M5.4" finds a task's
commits, and git tag -l "cp/*" lists every working
state. Pushing needs --follow-tags.