MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run_pre_push_verification

Function run_pre_push_verification

atomic-cli/src/commands/git/hooks.rs:687–697  ·  view source on GitHub ↗

CB-12A (RFC §10.3/§11.1): write one authenticated commit-time capture per active managed agent session while a commit is forming. Advisory evidence only — this never blocks a commit and never starts the snapshot/split path. The exact staged-tree split into a durable change and remainder (RFC §10.3.2) is not implemented, and the inseparable-operation commit policy (RFC §19 Q2) is UNDECIDED after t

(root: &Path)

Source from the content-addressed store, hash-verified

685/// verification proves), so the gate's verdict covers precisely the objects
686/// this push proposes — never a mutable HEAD reread after the fact.
687pub(crate) fn run_pre_push_verification(root: &Path) -> CliResult<()> {
688 // Read the proposed refs/OIDs; Git blocks on a broken-pipe writer
689 // otherwise. The local OIDs bind the verdict (see the bound entry
690 // point).
691 let mut input = String::new();
692 {
693 let mut stdin = io::stdin().lock();
694 let _ = stdin.read_to_string(&mut input);
695 }
696 run_pre_push_verification_with_input(root, &input)
697}
698
699/// The exact-OID-bound pre-push verification over caller-supplied stdin
700/// lines (the hook entry point drains the real stdin; tests inject).

Callers 2

runMethod · 0.85

Calls 2

lockMethod · 0.80

Tested by

no test coverage detected