tarlatan
    Preparing search index...

    Interface HandoffGit

    The git work of a handoff (plan "Write protocol", step 2; "Snapshot identity and raw checks"), in the supervisor worktree with git pinned to the session's recorded identity (plan B11d). Program calls it only after the owner's attestation and every other prerequisite passed, so nothing is staged before them.

    interface HandoffGit {
        changedPaths: (
            base: string & Brand<"Revision">,
            tree: string & Brand<"Revision">,
        ) => Effect<GitOutput, GitCommandFailed>;
        checkAttributes: (
            base: string & Brand<"Revision">,
        ) => Effect<
            void,
            GitCommandFailed
            | AttributeSourcesRefused
            | AttributeSourcesUnread,
        >;
        readHead: () => Effect<
            string & Brand<"Revision">,
            GitCommandFailed | GitOutputUndecodable,
        >;
        snapshot: (
            base: string & Brand<"Revision">,
        ) => Effect<string & Brand<"Revision">, SnapshotFailure>;
    }
    Index
    changedPaths: (
        base: string & Brand<"Revision">,
        tree: string & Brand<"Revision">,
    ) => Effect<GitOutput, GitCommandFailed>

    The raw run of git diff-tree -r -z --name-status <base> <tree>.

    checkAttributes: (
        base: string & Brand<"Revision">,
    ) => Effect<
        void,
        GitCommandFailed
        | AttributeSourcesRefused
        | AttributeSourcesUnread,
    >

    The attribute-source check (plan B11c) again, against base: refused when a source that was read is refused, unread when the only reason to stop is a failed read.

    readHead: () => Effect<
        string & Brand<"Revision">,
        GitCommandFailed | GitOutputUndecodable,
    >

    The worktree's HEAD, by git rev-parse HEAD alone: no identity or attribute check (owner ruling of 2026-11-23, for close --finished). A failed or undecodable read keeps its own failure.

    snapshot: (
        base: string & Brand<"Revision">,
    ) => Effect<string & Brand<"Revision">, SnapshotFailure>

    The snapshot from base: its tree when every entry passes the raw checks.