Corsa Upstream Dependency Management
Corsa upstream is managed as a pinned git dependency via corsa_ref.lock.toml.
Core policy:
corsa-bindfollows upstream-supported Corsa integration points.corsa-binddoes not maintain a fork of Corsa upstream.corsa-binddoes not patch Corsa upstream.- Upstream changes are adopted by updating the pinned commit and adapting our bindings around that exact revision.
Rules:
- The authoritative upstream is
ref/corsa-upstream. - The lock file records repository, exact commit hash, tree hash, committer timestamp, author, and subject.
ref/corsa-upstreammust remain on a detachedHEADat the exact locked commit.- A dirty worktree fails verification.
syncrefuses to touch an existing checkout when the configured remote does not match the locked upstream.
Workflow:
cargo run -p corsa_ref -- synccargo run -p corsa_ref -- verify- When intentionally updating upstream, move
ref/corsa-upstreamto the new commit and runcargo run -p corsa_ref -- pin-current
This keeps reproduction commit-exact and leaves an auditable metadata trail for every upstream bump.