Skip to content
docsv0.2.0

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

Parameters of __construct()
NameTypeDescription
$statusMilpa\Resolver\Report\ResolutionStatus
$resolvedlist<array<string, mixed>>
$missinglist<array<string, mixed>>
$conflictslist<array<string, mixed>>
$warningslist<array<string, mixed>>
$legacylist<array<string, mixed>>
$migrationHintslist<array<string, mixed>>
$learnLinkslist<array<string, mixed>>
$metadataarray<string, mixed>
$errorslist<LearnableArchitectureError>

ResolutionReport::fromArray()

public static function fromArray(array $data): self

Rehydrate a report from its serialized array form.

Parameters

Parameters of fromArray()
NameTypeDescription
$dataarray<string, mixed>

Throws

InvalidManifestException When `status` is absent or is not a known status.

ResolutionReport::toArray()

public function toArray(): array

Serialize 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).