Skip to content

AutoSessionView

Defined in: src/drain-core.ts:49

The slice of an auto session the decision core reasons over.

desig: string

Defined in: src/drain-core.ts:51


findings: string[]

Defined in: src/drain-core.ts:65

The latest critic verdict’s discrete findings ([] = clean / none).


fullAuto: boolean

Defined in: src/drain-core.ts:70

Effective full-auto (autopilot ∧ auto-merge). When true the merge train lands this session, so the drain must NOT retire it (that would foreclose rebase recovery). When false the drain retires it normally — even in an auto-merge repo — so it can’t sit un-retired-and-un-merged holding a maxAuto slot (which would deadlock the drain).


git: GitState | null

Defined in: src/drain-core.ts:55

Cached PR state from the pr-poller; null when unknown or merge in flight.


humanApproved: boolean

Defined in: src/drain-core.ts:63

A human submitted an APPROVED review on the PR (forge data).


id: string

Defined in: src/drain-core.ts:50


isDraft: boolean

Defined in: src/drain-core.ts:61

The PR is a draft (not ready-for-review). false when unknown/no PR.


issueNumber: number | null

Defined in: src/drain-core.ts:52


reviewDecision: ReviewDecision | null

Defined in: src/drain-core.ts:57

Latest critic verdict decision, or null when none/critic disabled.


reviewHeadSha: string | null

Defined in: src/drain-core.ts:59

The head SHA the latest verdict applies to, or null when no verdict.


status: SessionStatus

Defined in: src/drain-core.ts:53