Causal event log check
Check a supplied multi-agent log against vector clocks, actor sequence continuity, baseline history and explicit parents; report unobserved dependencies and concurrent-clock pairs. Does not execute or authenticate history.
workflow-assurance · Operation ID: causal-log-check
Choose this operation when
- Detect missing causal history in a multi-agent event log
- Check vector clock regressions and out-of-order agent messages before offline replay
Outside this profile
- Executing tools, sending messages, retrying effects, restoring state, or contacting live services
- Authenticating evidence, verifying signatures or identities, granting permission, or enforcing authorization
- Inferring facts omitted from the supplied artifact snapshot or guaranteeing exactly-once execution
Exact release references
Static JSON contract · Markdown reference · Fixed example response
Complete input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"baseline": {
"default": [],
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"actor": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"counter": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"actor",
"counter"
],
"additionalProperties": false
}
},
"events": {
"maxItems": 256,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"actor": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"sequence": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
},
"parents": {
"default": [],
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"clock": {
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"actor": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"counter": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"actor",
"counter"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"actor",
"sequence",
"clock"
],
"additionalProperties": false
}
}
},
"required": [
"events"
],
"additionalProperties": false
}
Complete output-envelope schema
{
"type": "object",
"required": [
"operation",
"version",
"result",
"provenance"
],
"properties": {
"operation": {
"const": "causal-log-check",
"type": "string"
},
"version": {
"const": "0.29.0",
"type": "string"
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"profile": {
"type": "string",
"const": "causal-log-v1"
},
"consistent": {
"type": "boolean"
},
"advisoryOnly": {
"type": "boolean",
"const": true
},
"eventCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"finalObservedClock": {
"maxItems": 32,
"type": "array",
"items": {
"type": "object",
"properties": {
"actor": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"counter": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"actor",
"counter"
],
"additionalProperties": false
}
},
"concurrentPairCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"concurrentPairs": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"left": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"right": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"left",
"right"
],
"additionalProperties": false
}
},
"concurrentPairsTruncated": {
"type": "boolean"
},
"limitations": {
"type": "array",
"items": {
"type": "string"
}
},
"findings": {
"maxItems": 200,
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"severity": {
"type": "string",
"enum": [
"error",
"warning"
]
},
"path": {
"type": "string"
},
"message": {
"type": "string"
},
"relatedIds": {
"maxItems": 8,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100
}
}
},
"required": [
"code",
"severity",
"path",
"message",
"relatedIds"
],
"additionalProperties": false
}
},
"findingCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"errorCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"truncated": {
"type": "boolean"
}
},
"required": [
"profile",
"consistent",
"advisoryOnly",
"eventCount",
"finalObservedClock",
"concurrentPairCount",
"concurrentPairs",
"concurrentPairsTruncated",
"limitations",
"findings",
"findingCount",
"errorCount",
"truncated"
],
"additionalProperties": false
},
"provenance": {
"type": "object",
"required": [
"inputSha256",
"outputSha256",
"deterministic",
"externalRequests"
],
"properties": {
"inputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"outputSha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"deterministic": {
"const": true
},
"externalRequests": {
"const": 0
}
}
}
},
"additionalProperties": false
}
Fixed example
One accepted fixed example, not a custom-input trial. No operation runs when this static page is requested.
Example input
{
"baseline": [],
"events": [
{
"id": "a1",
"actor": "planner",
"sequence": 1,
"parents": [],
"clock": [
{
"actor": "planner",
"counter": 1
}
]
},
{
"id": "b1",
"actor": "worker",
"sequence": 1,
"parents": [
"a1"
],
"clock": [
{
"actor": "planner",
"counter": 1
},
{
"actor": "worker",
"counter": 1
}
]
}
]
}
Example response
{
"operation": "causal-log-check",
"version": "0.29.0",
"result": {
"profile": "causal-log-v1",
"consistent": true,
"advisoryOnly": true,
"eventCount": 2,
"finalObservedClock": [
{
"actor": "planner",
"counter": 1
},
{
"actor": "worker",
"counter": 1
}
],
"concurrentPairCount": 0,
"concurrentPairs": [],
"concurrentPairsTruncated": false,
"limitations": [
"Vector clocks and baseline are caller assertions, not authenticated history.",
"Input order must be a complete causal continuation of the baseline; explicit parents must be present even when covered by the baseline.",
"Concurrency describes supplied clock vectors and is not a conflict or a wall-clock ordering guarantee."
],
"findings": [],
"findingCount": 0,
"errorCount": 0,
"truncated": false
},
"provenance": {
"inputSha256": "803aa46ee613401f0dc872cd13b8014258561eee5dba1dde1e0dd405af746fad",
"outputSha256": "8106034465bf192f701a91289769a3de196df7ea27fd5643c3441c058798035a",
"deterministic": true,
"externalRequests": 0
}
}
Bounds and precision
JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.
{
"global": {
"requestBytes": 131072,
"responseBytes": 524288,
"jsonDepth": 32,
"jsonNodes": 20000,
"requestsPerMinute": 60,
"paidAttemptsPerMinute": 20,
"idempotencyHours": 24
},
"operation": {
"inputBytes": 100000,
"outputBytes": 400000,
"jsonNodes": 12000,
"depth": 20,
"findings": 200,
"events": 256,
"actors": 32,
"traceSteps": 128,
"observations": 256,
"parentReferencesPerEvent": 32,
"concurrentPairs": 64,
"causalPairChecks": 32640
}
}
Complete schemas, descriptions and cross-field validation may impose additional limits.
Proposed price and protocol definitions
{
"unit": "one successful operation call",
"proposedNominalUsd": "0.01",
"sixDecimalTokenBaseUnits": "10000",
"subscription": false,
"includesPayerWalletOrNetworkFees": false,
"liveQuoteVerified": false,
"condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
}
Protocol definitions: x402, mpp. MPP uses Tempo charge. Paid MCP execution is unsupported. All runtime readiness is not evaluated in this build.
API path templates, not endpoints on this documentation host
{
"x402": "/v1/x402/causal-log-check",
"mpp": "/v1/mpp/causal-log-check"
}
Required headers
{
"Content-Type": "application/json",
"Idempotency-Key": "random 16–128 character operation identifier"
}
Actual SDK challenge amount, asset, network, recipient and wallet costs must pass independent authorization. Preserve identical key, body, protocol and credential on retries; on PAYMENT_UNCERTAIN stop and reconcile.
Execution profile and provider conditions
{
"deterministic": true,
"externalRequests": 0,
"maxExternalRequests": 0,
"resultSnapshotPersisted": false,
"fixedExampleIsIllustrativeSnapshot": false,
"requiresPayment": true,
"supportsMcpExecution": false
}
Deterministic supplied-input operation with no external requests or stored request/result bodies. Payment infrastructure retains payment metadata and hashes.
Failure handling
- HTTP 400: Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch Correct the request before payment
- HTTP 402: Payment challenge or rejected payment Use official protocol SDK; inspect payment outcome before another payment
- HTTP 409: Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay
- HTTP 413: Input or generated output too large Reduce input; no payment attempted for validation failure
- HTTP 415: Unsupported media type or compression Send uncompressed application/json
- HTTP 422: Schema or service-specific semantic validation failure Correct input using returned error code; no payment attempted
- HTTP 429: Request/payment-attempt rate exceeded Wait for rate limit window; preserve existing payment identity
- HTTP 503: Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation
Declared requirements
Before any paid call, refresh the live operation contract and POST the complete bounded budgeted plan to the separate API's /preflight. Unknown requirements block selection; compatible preflight is not permission to spend.