Runtime rules out of step with Git
The rules a harness applies differ from the reviewed rules in Git, by one of the routes below.
Before and after controls.
With controls is rated as if every control below works as designed.
How it can happen.
The registry table is written outside CI
The rules a harness loads differ from those in Git because the registry table was written outside CI. Only CI writes the table, as a copy of Git (CFG-21); every build resolves and records each registry reference (CFG-15); and no person can edit the database copies (CFG-62).
A cached decision outlives the rule it was made under
To cut the latency the guard adds, decisions are cached or reused within a run; after a rule is tightened, an approval withdrawn or a bundle revoked, calls go on being allowed on the old decision. The guard decides each call on the allowlist, policy entries and approvals in force when the call is made, and never reuses a decision for another call (CFG-40); code review confirms it keeps no cache of decisions, and a policy entry tightened during a run is tested to deny that run's next matching call.
Controls that reduce it.
- CFG-21The registry table is a copy of Git that only CI can write Configuration
- CFG-15Every build resolves and records each registry reference, refusing any not approved Configuration
- CFG-62No person can edit the database copies of the source repository Configuration
- CFG-40Every tool call is allowed or denied by the tool guard alone Configuration
See the whole picture.
Every AI risk on one matrix, before and after controls.