Internal

internal/core/completion

Package completion evaluates the review authority that allows a task to close.

import "github.com/nilstate/scafld/v2/internal/core/completion"

Package completion evaluates the review authority that allows a task to close.

Functions

func CurrentReviewGate(ledger session.Session) Authority

Source: internal/core/completion/authority.go:14

CurrentReviewGate validates the latest review gate that can currently authorize completion.

func TerminalAuthority(ledger session.Session) Authority

Source: internal/core/completion/authority.go:20

TerminalAuthority validates the review gate that authorized the latest complete event in an archived task ledger.

Types

type Authority

Source: internal/core/completion/authority.go:10

Authority describes the review evidence that authorizes completion.

type Authority = reviewgate.Authority