TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/theislampill/orthemology/llms.txt
Use this file to discover all available pages before exploring further.
orthing-episode.schema.json is the central schema in Orthemology — it defines the complete contract for the auditable record of one concrete run of the orthing process. Every field an auditor must read to re-derive the verdict must be present and non-empty when record_mode is audit-ready.
All schemas use JSON Schema Draft 2020-12 and reference each other by
$id. The episode schema references orthemma.schema.json, metaorthemma.schema.json, and handoff.schema.json via $ref.Required Fields
Every episode record, regardless ofrecord_mode, must carry these fields:
Unique identifier for this run. Referenced by handoffs and audits.
Declared audit posture. Either
"audit-ready" (triggers the full conditional contract) or "minimal" (an honest partial trace that makes no audit claim).The input orthemma — references
orthemma.schema.json. Must include identity_key and version.α — who/what executed (human, validator, model, pipeline, institution). Populated even for mechanical executors.The analysis governing this episode. Required sub-fields:
analysis_id and version. Optional: task.t — the time interval of the episode run (ISO 8601 interval recommended).p̂ — the inferred partial profile as an axis-to-value(s) map. Minimum one property.x = Ω_e(m) — what the episode actually saw. Either a string description or a structured object.H — ordered typed evidence. May be empty, but must be declared. If empty in an audit-ready episode, evidence_absent_reason must be present.w — who/what authorized acting, with scope. Distinct from evidence and executor identity. May be null (must be declared).π — the governing policy or procedure. May be null, but must be declared. If inapplicable, use policy_inapplicable_reason.Reference to the associated
verdict-record.schema.json instance. May be null (must be declared).The audit-ready Conditional Contract
When record_mode is "audit-ready", the schema enforces an additional set of requirements via allOf/if/then:
An audit-ready episode additionally requires:
actor— non-empty stringtime— non-empty stringobservation— non-empty (at least one property if object)claim_ledger_ref— non-empty string referencing the claim ledgerverdict_record_ref— non-empty stringpolicyas a non-empty string ORpolicy_inapplicable_reasondeclaredevidencewith at least one item ORevidence_absent_reasondeclaredplacementwith at least one property ORcandidateswith at least one property
Evidence Channels
Each item in theevidence array represents one typed, scoped, expiring evidence item:
Unique identifier for this evidence item within the episode.
The evidence channel type (e.g.,
"instrument-reading", "record-lookup", "log-scrape").The property class this evidence bears on (e.g.,
"behavioral", "structural").Which claims, versions, or levels this item can bear on. Mismatch between scope and claim is a EVIDENCE_SUPPORT failure.
Which process produced this evidence item, and from which
(κ, v) occurrence.Currency conditions or expiry for this evidence item. Stale evidence triggers EVIDENCE_CURRENT failure.
Governing Configuration
Declares which metaorthemes govern this episode and their precedence order.
MetaTok(e) — the metaorthemma configuration tokens for this episode, each referencing metaorthemma.schema.json. An empty array means GOV_TOKEN_ADEQUATE is not in ReqPath(e) (zero-burden rule).Placement and Candidates
The inferred partial profile
p̂ ∈ Π_A^∂ as an axis-to-value map. Each key is an axis name; values are strings or arrays.Typed candidate families
C⃗. Contains sub-arrays keyed by family type:Residuals and Lineage
Reference to the
claim-ledger.schema.json instance carrying the claim list, residual dispositions, and closure claim for this episode.Per-claim evidence status map. Values:
"validated", "provisional", "stale", or "absent".Inbound handoff packets from predecessor episodes, each a
handoff.schema.json instance.Outbound handoff packets to successor episodes.
a — the action taken by the episode (e.g., "release", "hold", "escalate").Labeled lineage edges
Succ(e) pointing to the next occurrence version(s) produced by this episode. Each item has identity_key, version, and action_label.Reference to the bounded ordered trace where governance requires one. Granularity is governance-declared.
Every reference an audit-ready record cites must resolve locally OR be declared here with a
registry and resolution_status. resolution_status: "unresolved" is incompatible with record_mode: "audit-ready".Minimal Example
A minimal valid episode record (non-audit-ready):episode-minimal.json