newt-git — the embedded git engine for newt agents.
Wraps grit-lib (a pure-Rust, from-scratch
git reimplementation, MIT) behind the GitCaveats
OCAP surface. Every operation takes the already-composed &GitCaveats and fails
closed; results are this crate's own structured serde models, converted at the
grit-lib boundary — so grit-lib's pre-1.0 API churn is contained to this one crate
and never leaks into the rest of the workspace.
Scope: LOCAL ops — reads (open/status/log/diff) and writes
(add/commit/branch), each gated by the matching GitCaveats axis and
fail-closed without it. Network ops (clone/fetch/push) are deferred (PR5) —
fail-closed under the OCAP deviation ratchet, riding the SSH transport. We depend
ONLY on the MIT grit-lib, never the GPL-2.0 grit-legacy.