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
| Name | Type | Description |
|---|---|---|
| $schemaVersion | string | Schema version of the plan |
| $profileName | string | Name of the profile this plan originates from |
| $profileVersion | string | Version of the profile |
| $profileHash | string | Integrity hash of the profile |
| $decisions | array<mixed> | List of compiled decisions (free-form) |
| $rules | array<GovernanceRule> | List of derived GovernanceRule |
| $gates | array<GovernanceGate> | List of validating GovernanceGate |
| $artifacts | array<RequiredArtifact> | List of required RequiredArtifact |
| $actors | array<mixed> | List of authorized actors |
| $assumptions | array<string> | List of assumptions that validate the plan |
| $planHash | string | Deterministic integrity hash of the complete plan-as-law — binds a `GovernanceRun` (evidence) to this EXACT `GovernancePlan` |
GovernancePlan::toArray()
public function toArray(): arraySerializes the full plan to an array for storage or transmission.