Problem
The full cargo test --locked run while validating #5527 reports 26 failures in csdlc-v2/tests/gate2.rs. Each failing fixture reaches store initialization in a temporary root that is not a Git repository, then terminal-recovery setup invokes:
git rev-parse --path-format=absolute --git-common-dir
The command fails with fatal: not a git repository. This prevents the Gate 2 suite from reaching the behavior each test is intended to exercise.
Evidence
Required outcome
Choose the architecture-correct repair:
- initialize Gate 2 fixture roots as minimal Git repositories before constructing the store, or
- defer Git-common-dir terminal receipt discovery when initializing a nonterminal store that does not require terminal recovery.
Do not weaken the terminal receipt/common-directory invariants for real repositories.
Acceptance criteria
Scope
This was discovered during #5527 validation but is not caused by the bounded terminal SOR artifact-reference repair. Track and repair it independently.
v0.91.8 Routing Correction
Problem
The full
cargo test --lockedrun while validating #5527 reports 26 failures incsdlc-v2/tests/gate2.rs. Each failing fixture reaches store initialization in a temporary root that is not a Git repository, then terminal-recovery setup invokes:git rev-parse --path-format=absolute --git-common-dirThe command fails with
fatal: not a git repository. This prevents the Gate 2 suite from reaching the behavior each test is intended to exercise.Evidence
cargo test --locked.Required outcome
Choose the architecture-correct repair:
Do not weaken the terminal receipt/common-directory invariants for real repositories.
Acceptance criteria
cargo test --lockedpasses forcsdlc-v2.Scope
This was discovered during #5527 validation but is not caused by the bounded terminal SOR artifact-reference repair. Track and repair it independently.
v0.91.8 Routing Correction