Skip to content
docsv0.1.0

GovernancePlan

Governance plan: the honest, inspectable arbiter that validates the system's conformance. Compiles decisions, rules, gates, and artifacts into a verifiable plan.

GovernancePlan::__construct()

public function __construct(string $schemaVersion, string $profileName, string $profileVersion, string $profileHash, array $decisions, array $rules, array $gates, array $artifacts, array $actors, array $assumptions, string $planHash):

Parameters

Parameters of __construct()
NameTypeDescription
$schemaVersionstringSchema version of the plan
$profileNamestringName of the profile this plan originates from
$profileVersionstringVersion of the profile
$profileHashstringIntegrity hash of the profile
$decisionsarray<mixed>List of compiled decisions (free-form)
$rulesarray<GovernanceRule>List of derived GovernanceRule
$gatesarray<GovernanceGate>List of validating GovernanceGate
$artifactsarray<RequiredArtifact>List of required RequiredArtifact
$actorsarray<mixed>List of authorized actors
$assumptionsarray<string>List of assumptions that validate the plan
$planHashstringDeterministic integrity hash of the complete plan-as-law — binds a `GovernanceRun` (evidence) to this EXACT `GovernancePlan`

GovernancePlan::toArray()

public function toArray(): array

Serializes the full plan to an array for storage or transmission.