Skip to content
docsv0.1.0

GovernanceDecision

An immutable architecture decision that governs the system's behavior. Each decision has a unique ID, a lifecycle status, and what it governs.

GovernanceDecision::__construct()

public function __construct(string $id, string $title, Milpa\Governance\DecisionStatus $status, ?string $bornInSlice, ?string $supersedes, array $governs, array $policies, string $contentHash):

Parameters

Parameters of __construct()
NameTypeDescription
$idstringUnique identifier of the decision (e.g.: "ADR-0004")
$titlestringDescriptive title of the decision
$statusDecisionStatusCurrent status in the lifecycle
$bornInSlice?stringDevelopment slice where it was born (e.g.: "ADR#14")
$supersedes?stringID of the decision it replaces, if any
$governsarray<string>List of identifiers for what this decision governs
$policiesarray<mixed>List of derived policies (free-form)
$contentHashstringHash of the full content to validate integrity