Interface OfflineRegionReadCacheDecisionV1

What the persistent cache did, and why.

regionId is the region manifest's own content digest, so anything served from storage is traceable to the exact snapshot identity that produced it.

interface OfflineRegionReadCacheDecisionV1 {
    action: "reuse";
    ageMs: number;
    authorizationScopeDigest: `sha256:${string}`;
    completeness: "complete" | "partial";
    freshness: OfflineRegionReadFreshness;
    kind: "honua.offline-region-read";
    observedAt: string;
    policy: "prefer-cache";
    queryFingerprint: `sha256:${string}`;
    reason: "stale-entry" | "offline-entry";
    regionId: `sha256:${string}`;
    resources: readonly {
        byteLength: number;
        id: string;
        integrity: `sha256:${string}`;
        kind: OfflineRegionResourceKind;
    }[];
    staleAfterMs: number;
    state: "offline";
    version: "1.0";
}

Properties

action
ageMs: number
authorizationScopeDigest: `sha256:${string}`
completeness: "complete" | "partial"
kind
observedAt: string
policy
queryFingerprint: `sha256:${string}`
reason: "stale-entry" | "offline-entry"
regionId: `sha256:${string}`

Region manifest identity. Binds this answer to one snapshot.

resources: readonly {
    byteLength: number;
    id: string;
    integrity: `sha256:${string}`;
    kind: OfflineRegionResourceKind;
}[]

Exactly which stored resources answered this read.

staleAfterMs: number
state
version