ResolutionReport
The result of a resolution: a {@see ResolutionStatus} plus the learnable `errors` attached to the blocking entries, what `resolved`, what is `missing`, the `conflicts` and non-blocking `warnings`, the `legacy` dependencies in use, `migrationHints`, `learnLinks` into the Academy, and free-form `metadata`. Designed to be read by a human on the CLI, by CI, by an agent, and by the Academy alike, so {@see toArray()} serializes with a fixed, deterministic key order — the same report renders byte-for-byte identically every time. `errors[]` leads (right after `status`) so an agent reads the diagnosis first (spec §20).
ResolutionReport::__construct()
public function __construct(Milpa\Resolver\Report\ResolutionStatus $status, array $resolved = [], array $missing = [], array $conflicts = [], array $warnings = [], array $legacy = [], array $migrationHints = [], array $learnLinks = [], array $metadata = [], array $errors = []):Parameters
| Name | Type | Description |
|---|---|---|
| $status | Milpa\Resolver\Report\ResolutionStatus | |
| $resolved | list<array<string, mixed>> | |
| $missing | list<array<string, mixed>> | |
| $conflicts | list<array<string, mixed>> | |
| $warnings | list<array<string, mixed>> | |
| $legacy | list<array<string, mixed>> | |
| $migrationHints | list<array<string, mixed>> | |
| $learnLinks | list<array<string, mixed>> | |
| $metadata | array<string, mixed> | |
| $errors | list<LearnableArchitectureError> |
ResolutionReport::fromArray()
public static function fromArray(array $data): selfRehydrate a report from its serialized array form.
Parameters
| Name | Type | Description |
|---|---|---|
| $data | array<string, mixed> |
Throws
InvalidManifestException When `status` is absent or is not a known status.
ResolutionReport::toArray()
public function toArray(): arraySerialize to an array with a fixed, deterministic key order; `status` becomes its string value and each attached error is expanded to its agent shape (spec §20).