Documentation
¶
Overview ¶
Package commitpolicy owns exact commit-policy facts, evaluation outcomes, and human rendering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Presentation ¶
func Presentation(policy Policy, outcome Outcome) (presentation.Document, error)
Presentation maps the policy-owned outcome into representation-only shapes. Rendering remains exclusively presentation's concern.
Types ¶
type Category ¶
type Category string
Category classifies an operational refusal without reducing it to a violation.
const ( ConfigFailure Category = "config" BaselineFailure Category = "baseline" RevisionFailure Category = "revision-resolution" TagPeelFailure Category = "tag-peel" LinkedWorktreeFailure Category = "linked-worktree" TrustFileFailure Category = "temporary-trust-file" SignatureProcessFailure Category = "signature-process" )
type Commit ¶
type Commit struct {
ID string
Author, Committer Person
Signature SignatureVerdict
}
Commit is the immutable fact set evaluated for one full object ID.
type Identity ¶
type Identity struct{ Name, Email string }
Identity is one exact permitted Git name and email pair.
type Outcome ¶
Outcome is the complete result of one policy operation.
type Person ¶
type Person struct{ Name, Email string }
Person is the byte-for-byte author or committer identity recorded in a commit.
type Refusal ¶
type Refusal struct {
Category Category
Observed string
RefsChanged, IndexChanged bool
Actions []string
Cause error
}
Refusal reports an operational failure, its preserved cause, and reconciliation facts.
type SignatureVerdict ¶
type SignatureVerdict int
SignatureVerdict is the native SSH verification result for one commit.
const ( SignatureValid SignatureVerdict = iota SignatureMissing SignatureMalformed SignatureWrongKey )