Expand description
Rule facts from the real repository with candidates read from the private index.
What:
The repository facts of a commit transaction:
every rule fact is read from the real repository, and the candidate files are read from the private index
and the shadow object store against the recorded base.
Why:
The incumbent’s rules (commit-only, commit-index, commit-sequencer) ask real Git about the real index and
the real sequencer state, while the content policies read the private commit index that the transaction corrects.
Pointing every fact at the private index would answer the rules about a state the user never staged.
In TS you’d write (pseudocode):
const facts = { ...realRepositoryFacts, ...createPrivateIndexFacts({ indexPath, paths, baseRevision, objectDirectory }) };Structs§
- Private
Index Facts - What: Rule facts from the wrapped real repository and candidate reads from a private index. Why: The private index changes from one replay to the next, so the facts keep it as a replaceable value.