@xyo-network/service-kit-statement-graph
v0.0.3
Published
Source-trusted finalized service and datalake descriptor views
Downloads
102
Keywords
Readme
Service Kit Statement Graph adapter
Publish-ready B2 service and datalake views. This adapter is separate from the published B1 content-only packages and is not installed in existing consumers. See the B2 contract and verified implementation status.
Public API
resolveFinalizedDescriptor(query, options) accepts:
- A
serviceidentity (chain, provider, service ID) ordata-lakeidentity (chain, operator, lake ID), plus exactat: { block, hash }target pins. - One explicitly trusted
FinalizedChainSourcewithchainId(),block.blockByNumber()andfinalization.headNumber()viewer methods. - Explicit B1 seed readers; optional total/replay/body limits and caller signal.
FinalizedDescriptorQueryZod validates caller pins. Invalid queries or
configuration throw before source/reader I/O. The package does not export a
shortcut that blesses arbitrary records or imported checkpoints as finalized.
The source must return native hydrated blocks: a Block Bound Witness and its committed payloads, including transactions and same-block elevated Claim carriers. SDK root hashes, chain/height, previous links and target consistency are checked. Consensus and signature validation remain the source's trust responsibility; structurally valid signed-looking objects alone are not proof.
Outcomes
| Status | Meaning |
| --- | --- |
| active | The unique latest started revision is unexpired at the target. Only this status is selectable. |
| pending | No revision has started; the pending root is reported. |
| expired | The latest started revision expired; an older revision is not restored. |
| absent | Complete replay and body resolution found no matching identity under this contract. |
| conflicted / invalid | The complete identity history has competing roots/successors or broken lineage/evidence. No selected descriptor. |
| incomplete | Missing bodies/history, changed pins, source errors, or work limits prevented a complete answer. No selected descriptor. |
| aborted | The caller cancelled the operation. No selected descriptor. |
Complete results carry immutable source-trusted-finalized-replay provenance:
source and chain identity, exact target, observed finalized head, fold version,
and fixed schema policy. A service/lake Claim requires both source and subject
to equal the pinned provider/operator. Body hashes and strict shapes are
checked through B1, with no recursive references or advertised URL fetching.
An unavailable eligible body can belong to any identifier under the authority; it makes the query incomplete. An exact-hash body proven invalid for its declared schema can be discarded, with a count in the result. Profile support, prices, access grants and endpoint safety are separate consumer checks.
Limits and release boundary
Default replay starts at genesis and permits 4,096 blocks, 8,192 applied records and 256 eligible objects within 30 seconds. Per-block JSON and source deadlines also apply, as do B1's body limits. Large histories intentionally return incomplete; authenticated baselines/resumption are not implemented. Parsed-object limits do not enforce network wire limits, and source/readers that ignore cancellation may continue I/O after the resolver stops waiting.
The prepared package uses the public Statement Graph 0.5.2 and XL1 protocol 5.5.0 baselines. It remains unqualified as registry-consumable until its owner publishes 0.0.2 and the clean consumer passes against that registry artifact. Do not claim anonymous installation based on an offline packed check from a populated cache. Local fixture tests do not qualify live consensus, native HTTP, browser use, Sequence, Mainnet or hosted operation. Receiver mailboxes remain deferred.
