Skip to main content

Module verify

Module verify 

Source
Expand description

Worktree diff verification policies.

After a worktree-isolated subagent commits its changes, the WorktreeReconciler asks a DiffVerifier whether the resulting diff is safe to merge back into the main branch. This module is the only place that encodes merge-approval policy for the git isolation layer.

The trait is sealed: only types defined in this crate may implement it, so callers (e.g. SubagentController) cannot inject an arbitrary verifier that bypasses the controlled merge path.

Structs§

HeuristicDiffVerifier
Default heuristic verifier.
VerifyVerdict
Outcome of verifying a worktree diff.

Traits§

DiffVerifier
Strategy for approving or rejecting a worktree diff before it is merged.