interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / crates / aienos-explain / docs / EXPLAIN_EVIDENCE_GRAPH_V1.md

77 lines · 4252 bytes Raw Blame History Source

Evidence graph contract aien.explain.evidence-graph v1

Language-neutral input of the explanation bridge. Any producer (Rust, C, Omega) writes this JSON document; aienos-explain turns it into a grounded explanation path. Field names, codes and meanings below are the contract; the Rust structs in src/contract.rs are one implementation of it.

Document

fieldtypemeaning
formatstringalways aien.explain.evidence-graph
versionu161
producerstringwho wrote it, e.g. spark-rsi/explain
nodesarray of nodeat most 65536
truncated_atarray of stringnode ids whose parents the producer did not expand because of its own limits (optional)
scopeobjectoptional { "branch": id, "referenced": [ids] }: records a reasoning branch referenced directly

Node

fieldtypemeaning
idstringunique; namespaced by source, e.g. cortex:<32 hex>, branch:<64 hex>, rsi:hypothesis:<id>
kindu16artifact kind code (below)
statusu8epistemic status code (below)
statementstringthe claim or record, as recorded by the source
sourceobject{ system, artifact, reference, digest? }; digest is lowercase hex
confidence_permilleu16 0..=1000only where the source has the concept (optional)
confidence_basisstringwhere that number came from, e.g. "declared, not measured" (optional)
recorded_at_utcu64informational only; never used for ordering or linking (optional)
parentsarray of { to, relation }at most 1024; explicit links only
measurementsarray of { name, value, unit }value is a decimal string formatted by the producer
missingarray of { expected, reason }links the producer knows should exist but has no artifact for
notesarray of stringcaveats from the producer

Codes

Status (status), identical to aienos Cortex EpistemicStatus for 1..6: 0 Unclassified, 1 DirectObservation, 2 VerifiedFact, 3 Inference, 4 Hypothesis, 5 Contradiction, 6 OperatorDecision. Grounding statuses: 1, 2, 6.

Kind (kind): 1 CortexRecord, 2 CapabilityMetric, 3 CapabilityAnalysis, 4 Diagnostic, 5 Hypothesis, 6 Prediction, 7 Falsification, 8 EvaluationReceipt, 9 PromotionState, 10 OperatorDecision, 11 AgentBranch, 12 Conclusion, 13 Alternative.

Relation (parents[].relation), from the node to the parent: 1 SupportedBy, 2 Evaluates, 3 PartOf, 4 Contradicts, 5 AlternativeTo, 6 References. Only 1, 2, 3 and 6 are support and are walked. 4 and 5 are disclosed (conflicts, alternatives) and never count as support. References (6) is the weak form of support: the producer uses it when a link is inferred from matching content rather than a recorded id, and should also declare the missing recorded link in missing.

Errors (stable numeric codes): 1 BadFormat, 2 UnsupportedVersion, 3 UnknownCode, 4 DuplicateNodeId, 5 TargetNotFound, 6 GraphTooLarge, 7 StepOutOfRange, 8 NotInBranchScope, 9 Journal, 10 InvalidLimits.

Builder guarantees

Versioning

Any change to a field meaning or a code is a new version. Adding an optional field with a default is allowed within v1 only if old readers can ignore it safely.