{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://lydiahub.online/propagation-trace-schema.json",
  "title": "ResetPulse propagation trace",
  "description": "A source-private, credential-free trace from a public Codex signal to thresholded anonymous outcome observations. The source stage may include a bounded observation ledger with published time, observed time, status, and eligible timing quality; fingerprints and raw source payloads are never published.",
  "type": "object",
  "required": ["schema", "generatedAt", "event", "stages", "propagation", "boundary", "links"],
  "properties": {
    "schema": { "const": "resetpulse.propagation-trace.v1" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "event": { "type": "object", "additionalProperties": true },
    "stages": { "type": "object", "required": ["source", "collector", "evidence", "accountOutcome"], "additionalProperties": true },
    "propagation": { "type": "object", "required": ["state", "note"], "properties": { "state": { "enum": ["observed-only", "account-consistent", "account-divergent", "mixed"] }, "note": { "type": "string" } }, "additionalProperties": true },
    "boundary": { "type": "object", "required": ["credentialsRequired", "privateAccountTelemetry", "observationsUnverified", "rawObservationsPublished"], "additionalProperties": true },
    "links": { "type": "object", "additionalProperties": { "type": "string", "format": "uri" } }
  }
}
