Skip to content

effectiveAutopilot

effectiveAutopilot(s, repoDefault): boolean

Defined in: src/effective-autopilot.ts:10

A session’s effective autopilot opt-in: an explicit per-session override wins; a null override falls back to the repo default. Single source of truth shared by AutopilotService (eligibility), PlanGateService (auto-release on plan approval) and isFullAuto (the merge-train leg), so the override-vs-default rule can’t drift across them. Takes the already-resolved repo default rather than the store, so it stays decoupled and trivially testable.

Pick<Session, "autopilotEnabled">

boolean

boolean