Business world snapshots
Inspect and freeze bounded, organization-scoped historical evidence.
The business world snapshot endpoints provide a bounded operator view of retained historical evidence. A snapshot freezes selected evidence and its cutoff so later replay or review can use the same inputs. The API reports the requirements it can satisfy and the gaps it finds; it does not claim to reconstruct the full business.
The legacy V3 endpoints below require the trusted backend service token. Scoped agent execution capabilities are rejected, and the token must remain on the server. Every request is scoped to the organization ID in the path. A future UI needs its own authenticated organization membership checks and a default-off organization setting; the operator token is not a browser credential.
These are staff-only APIs; they are intentionally absent from oblivectl and agent-authored command workflows.
Inspect a closed day
GET /organizations/{organizationId}/world-snapshots/inspect?day=2026-10-26The day is a UTC calendar day, independent of organizations.config.timezone. It must be closed; the next UTC midnight is the exclusive cutoff. This endpoint returns an unconfigured descriptor with no selected evidence and an explicit requirements gap. It does not list all archives or derive the intended historical business scope from current capture settings, publish a snapshot, pin archives, confirm availability, or call providers.
Use POST /organizations/{organizationId}/world-snapshots/preview to declare up to 50 exact resource, recorded-request, or retained run-context requirements. Preview performs the same bounded selection without publishing or changing evidence. Its coverage is relative to the declared requirements. A captured exact request cannot answer a novel request, and a partial observation or recorded failure remains visible as a gap.
Freeze selected evidence
POST /organizations/{organizationId}/world-snapshots
Content-Type: application/json
{
"day": "2026-10-26",
"requirements": [
{
"kind": "connector",
"integrationId": "00000000-0000-4000-8000-000000000001",
"resourceId": "products",
"operation": "ls_list_products",
"arguments": {},
"maxAgeSeconds": 86400
}
]
}timezone is optional and defaults to UTC. UTC-equivalent aliases are accepted; other zones fail with invalid_request at timezone. New snapshots always record selection.timezone: "UTC" and the UTC midnight in selection.dayStart. Organization timezone changes do not change snapshot boundaries.
Preview and freeze compute the day’s bounds from the server’s timezone data. A read checks only that the frozen bounds fit the named day: the start comes before the cutoff, the day lasts at most 48 hours, and each bound lies within 16 hours of the matching UTC midnight. A later timezone-data update therefore cannot make a frozen snapshot unreadable. Snapshots frozen before a business set its timezone record UTC and have no dayStart. They stay readable and preparable, and their cutoff stays exactly the UTC midnight.
The example uses synthetic identifiers; use the exact integration, resource, operation and arguments from the business’s capture contract. Alternatively declare a recording requirement with integration ID, operation and canonical requestSha256, or a context requirement with the retained task runId. Each kind accepts an optional maxAgeSeconds freshness bound.
Freeze writes an immutable selection into the existing encrypted history archive and dependency graph. An empty requirements list creates an undeclared, partial snapshot. The response includes the snapshot ID, manifest digest, cutoff, selected evidence, and coverage. sourceEvidence distinguishes connector guarantees, exact recorded requests and retained run context; it does not assert that any recorded query can answer new queries. Repeated selection and concurrent publication are resolved by the archive owner; callers should retain the returned ID and digest rather than look up a mutable “latest” snapshot.
GET /organizations/{organizationId}/world-snapshots/{snapshotId} reads that frozen descriptor and checks current authorization and retained integrity. A denied or missing member rejects the read rather than rewriting the frozen selection into a current availability report. The immutable record does not grant access after an organization, integration, or run permission is revoked.
Read one evidence member
GET /organizations/{organizationId}/world-snapshots/{snapshotId}/content/{contentId}Content is addressed by an opaque ID from the snapshot response. The default read limit is 256 KiB; callers may request up to 1 MiB. The response declares UTF-8 or base64 encoding. It never accepts an object path; response metadata hides archive storage locators. Authorized retained content may contain sensitive business information and must be handled accordingly. Content access repeats current authorization checks.
Coverage and acceptance
Coverage describes only the requirements submitted with preview or freeze. An undeclared descriptor is never full-business coverage. Exact recorded requests support only their recorded operation, canonical arguments, and contract. Queryable resource families require a reviewed adapter contract and complete pagination/field evidence. Historical observations do not establish later state, imports are not backdated, and missing data is not interpreted as deletion without an explicit verified tombstone.
Fixture tests establish API and compatibility behavior; they do not prove that a real business day is complete. A real closed-day acceptance needs an authorized business, a closed UTC day, declared resource/query requirements, freshness expectations, and eligible retained evidence.
Collection-attempt evidence
New selections use latest_confirmed_resource_v2. A connector requirement needs both eligible
resource content and the saved collection event that identifies it. The same job keeps its refresh
number across pages and retries; later refreshes receive larger backend-assigned numbers. Every
progress event has an ordered sequence and an explicit terminal value. A terminal partial event
can contain a complete resource and a different incomplete resource.
A newer failed, unfinished, interrupted or unavailable refresh cannot be replaced silently by an
older successful one. Resources match exact canonical arguments, not a subset of filters. A start
confirmed before midnight remains unfinished when its completion is confirmed at or after midnight.
The API returns the associated attemptArchiveId and a collection_progress source-evidence entry;
there is no provider call during inspection.
Legacy connector archives have no attempt history. They remain inspectable but partial in new
selections; no missing history is invented. Frozen latest_confirmed_resource_v1 selections remain
readable with their original meaning. The existing fifty-member limit includes attempt proof as
well as data. Excess membership is refused instead of truncated.
Removing an eligible attempt retains only safe identity hashes, sequence and its original confirmed availability while older connector evidence remains. This prevents removal of a newer failure from making old data appear complete. These markers do not recover deleted business content. Saved snapshots retain their selected attempt evidence through the existing dependency rules.
Retained business/day packets (V4)
The private packet API combines declared external evidence with copied immutable Context documents, metric query results and permitted run files. It uses the same history archive owner and encrypted object storage as V3. The implementation is organization-scoped and works for any business; SocialKit is the first planned live validation, not a special runtime branch. One Oblive organization is one business identity. Names are saved as display metadata and do not determine isolation.
Use the distinct backend-only RUN_EXECUTION_CAPTURE_READ_TOKEN. It must differ from
AGENT_SERVICE_TOKEN; neither workers nor browsers receive it. Missing private configuration returns 503. Legacy snapshot routes refuse V4, including content requests. The private routes are:
POST /organizations/{organizationId}/world-snapshots/packets/preview
POST /organizations/{organizationId}/world-snapshots/packets
GET /organizations/{organizationId}/world-snapshots/packets/{snapshotId}
GET /organizations/{organizationId}/world-snapshots/packets/{snapshotId}/input
GET /organizations/{organizationId}/world-snapshots/packets/{snapshotId}/content/{contentId}The request contains day, an optional timezone that must be UTC or a UTC-equivalent alias, a version-one declaration, and optional unique
executionEvidence run IDs. Each declaration requirement has a stable ID, category, required boolean
and exactly one binding: unresolved with a safe reason, external with an existing exact V3
requirement, or internal with an existing historical Context, insight or retained-file selector.
No arbitrary database query, URL or object path is accepted. A category can have several requirements.
For the first SocialKit acceptance, declare all five required categories: database, billing,
analytics, support conversations and business context. Begin unknown bindings as
{ "kind": "unresolved", "reason": "needs_configuration" }. Configure actual organization/account,
resource and approved field identifiers before collection. An unresolved required category remains
missing and prevents declared completeness. The same rule applies to every business.
To check saved data, preview the declaration, review each slot and gap, then freeze it. Save the
returned snapshot ID and manifest hash. Read that ID again to inspect exactly the same selection.
Read /input for the retained Context/metric/file bundles and their hashes; read each returned
content ID for external source pages or imported database artifacts. Content reads default to
256 KiB and permit at most 1 MiB; the input route supports up to 10 MiB total bundle content. A saved
database import must contain retained bytes, not just a provider backup ID. Its original observation
and attestation limitations remain visible.
Source confirmation and factual observation must be strictly before the end of the business day. A measurement interval may end exactly at that cutoff. Saving old provider data today does not prove that Oblive knew it on an earlier date. The packet retains the original content and checks current source authority when reading: removal of an original blob alone does not change the copied bytes, but deleted or revoked source authority prevents access. Neither inspection nor replay chooses a newer replacement for a frozen input.
Internal requirements remain independent bundles, allowing two documents from the same publication
without a new merge format. Limits apply to the whole request: 200 sources, 25 metric selections,
10,000 points and 10 MiB canonical bundle bytes. Overflow refuses the request without publishing a
partial winner. Global coverage.complete stays false. Declared completeness requires at least one
required slot and all required slots available; optional gaps stay visible.
Execution references are separate private inspection evidence. A run must overlap the requested business day, and its capture must be sealed; sealed partial captures remain partial. The packet never includes private transcript bodies in historical agent input. Packet retention is at most 30 days, its external dependencies and linked private capture expiry. Reads do not extend that lifetime.
Synthetic local tests do not establish live SocialKit completeness. Raw analytical HTTP response recording and backend metrics response retention remain separate acquisition work; normalized analytical receipts do not establish that every raw request/result was stored.