tarlatan
    Preparing search index...

    Function checkedHead

    • The startup check (identifyWorktree), then the worktree's HEAD read through the runner pinned to the record (plan B11d) and decoded, then the attribute check on base, or on that HEAD when base is none (batch review B07). It returns the HEAD and never compares it with base: a HEAD that moved from the session's base is the command rules' HeadMoved refusal (owner ruling of 2026-11-23, which replaced B07's launch on a moved HEAD), and status reports it as a finding. status runs the same check (production-status.ts). A judgment that the worktree is unready (WorktreeCheckFailed, WorktreeRecordInvalid, AttributeSourcesRefused) becomes WorktreeUnready. When the worktree was identified and only its attribute sources are refused, that WorktreeUnready keeps the HEAD read, so the rules and status still see a moved HEAD (owner finding F2, dogfood-3a round 1). A check that could not run keeps its own failure (WorktreeCheckUnrun, review item R01), and a HEAD that does not decode is GitOutputUndecodable. A HEAD read that fails keeps its failure whatever the attribute check found (owner finding F2, round 2). An unread attribute source judges nothing (owner ruling on B11c and R01): after a HEAD read it is UnreadAtHead, which every command but status turns back into its AttributeSourcesUnread (owner finding F3).

      Parameters

      Returns Effect<
          string & Brand<"Revision">,

              | PathUnreadable
              | GitCommandFailed
              | GitOutputUndecodable
              | WorktreeUnready
              | UnreadAtHead,
          never,
      >