Class: ResolvedDocument¶
Result of kernel.resolveDocument — the doc plus full provenance.
Studio renders banner/badge directly from provenance + isInherited —
no client-side detection logic needed.
Constructors¶
Constructor¶
Parameters¶
| Parameter | Type |
|---|---|
opts |
{ contributionsByField?: Record\<string, string>; doc: Raw | null; isInherited: boolean; provenance: ResolutionPath; } |
opts.contributionsByField? |
Record\<string, string> |
opts.doc |
Raw | null |
opts.isInherited |
boolean |
opts.provenance |
ResolutionPath |
Returns¶
ResolvedDocument
Properties¶
contributionsByField¶
Field-path → scope name. Populated when merge_strategy=field_level. Lets
the Detail page show spec.persona ← _lib annotations.
doc¶
The merged document (or null if not found in any layer).
isInherited¶
True when effectiveLayer.scope != requestedScope. Convenience derived
from provenance; Studio uses this for badge/banner toggle.
provenance¶
Full ordered resolution path. Includes layers consulted but not contributing.
Methods¶
serialize()¶
Returns¶
Record\<string, unknown>