shadowgraph_expand
Fetches the full current record behind a context line using its expansion handle, returning revision status and flagging stale digests or unavailable records.
Instructions
Fetch the full current record behind a context line, with its expansion handle as input. shadowgraph_context supplies the handle; flatten its scope into top-level inputs. Own-scope read saves nothing; an access key commits a revision and bounded audit. Returns record, revision status and bounded counterparts. A stale digest yields revision_changed; inaccessible records yield unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | The line's expansion.asOf, when it has one. | |
| digest | Yes | The line's expansion.digest: the revision the line was derived from. | |
| grantId | No | Alias for accessId; conflicting identifiers are refused. | |
| project | No | Project or confirmed workspace binding; otherwise origin-only. No identity returns an empty scoped view. | |
| accessId | No | Grant ID, rechecked at use. Widens reads only, never write authority. Presenting an access key commits a revision and bounded operational audit: at most one aggregate per grant, surface, outcome and UTC day. Conflicts with a different grantId are refused. | |
| originId | No | Capture-origin id; with no project the record belongs to it alone. | |
| recordId | Yes | The line's expansion.recordId. | |
| derivedAt | No | The line's expansion.derivedAt. A logical purge of the read's own project recorded after it answers purged. | |
| maxExpansions | No | How many structural counterparts to fetch in full, 0-50. Defaults to 5; the rest are marked uninvestigated, with their lines. | |
| derivationVersion | No | The line's expansion.derivationVersion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | The current full record, or null. Never a summary and never the old revision. | |
| status | Yes | current: the line came from this revision. revision_changed: the record changed since, and this is the current record. purged: the first purge of the read's own project after the line was logical. unavailable: no record with this id is served in the scope. | |
| recordId | Yes | The record the line named. | |
| completeness | Yes | Request coverage and any withheld detail. | |
| boundRevision | Yes | The revision the line was derived from. | |
| investigation | Yes | Counterparts investigated within the budget; null when no record is served. | |
| readProvenance | No | Original read bounds; reuse intersects these with currently valid authority. | |
| currentRevision | Yes | The live revision; null when no record is served. | |
| revisionChanged | Yes | Whether the record changed after the line was derived; null when no record is served. |