Skip to content

Branch main Contract AuditEvent

github-actions[bot] edited this page Jul 7, 2026 · 103 revisions

Contract: Auditevent

Back to Branch Overview

Field Value
Branch main
Source specs/contracts/AuditEvent.schema.json
Commit 774b981ef226
Synced (UTC) 2026-07-07T05:46:00Z

Visual Context

Contract pages define the machine-checkable object shape that crosses a lifecycle boundary.

flowchart LR
  Producer["Lifecycle producer"] --> Contract["Contract schema"]
  Contract --> Example["Schema example"]
  Example --> Validator["Schema validator"]
  Contract --> Fixture["Conformance fixture output"]
  Fixture --> Gate["Base-design gate"]
Loading

Reading Checklist

Question Where to look
Which lifecycle boundary uses it? Read description, required fields, and linked references.
What diagnostics are mandatory? Inspect diagnostic reference fields and rule-reference links.
How is it validated? Compare this schema with fixtures/schema_examples/ and conformance vectors.

JSON Payload

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "AuditEvent",
  "description": "Audit event tied to diagnostic chain.",
  "type": "object",
  "properties": {
    "auditEventID": {
      "type": "string"
    },
    "eventSequence": {
      "type": "integer"
    },
    "eventType": {
      "type": "string",
      "enum": [
        "OBSERVE",
        "NORMALIZE",
        "PROJECT",
        "DIAGNOSE",
        "CLASSIFY",
        "PLAN",
        "POLICY_GATE",
        "BACKUP",
        "EXECUTE",
        "VERIFY",
        "ROLLBACK",
        "FALLBACK",
        "CONTAINMENT",
        "SAFE_HALT",
        "RESULT"
      ]
    },
    "diagnosticReference": {
      "$ref": "DiagnosticReference.schema.json"
    },
    "occurredAt": {
      "type": "string"
    },
    "details": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "auditEventID",
    "eventSequence",
    "eventType",
    "diagnosticReference",
    "occurredAt",
    "details"
  ],
  "additionalProperties": false
}

Clone this wiki locally