╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘
╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮ ╭──────────────────────────────────────────────────────────╮
│ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │ │ .ctxpkg format │
╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────╯
┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
│ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│ │ manifest │──────>│ content │──────>│ integrity│
└────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐ ┌────┴─────┐ ┌────┴──────┐ ┌────┴─────┐
│ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │ │ name │ │ context │ │ sha256 │
│ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │ │ version │ │ _graph │ │ content │
│ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │ │ level │ │ │ │ _hash │
│ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │ │ created │ │ nodes[] │ │ ed25519 │
└──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘ └──────────┘ │ edges[] │ └──────────┘
└───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘
╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗ ╔═══════════════════════════════════╗
║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║ ║ context_graph structure ║
╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝ ╚═══════════════════════════════════╝
(fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision) (fact)────────supports────────(decision)
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
│ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │ │ contradicts ╱ │
│ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │ │ ╲ ╱ │
(gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy) (gotcha)───depends──(symbol)──(policy)
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │
└────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘ └────────────────────┴─────────┘
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only Level 1: Basic ░░░░░░░░░░░░ nodes only
Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges Level 2: Graph ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ nodes + edges
Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state Level 3: Cognitive ████████████████████████ full state
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄ ┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐ ┌─────────┐ verify ┌─────────┐ load ┌─────────┐
│ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │ │ create │ ───────> │ sha256 │ ──────> │ install │
└─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ └─────────┘ Open File Format
.ctxpkg packages project knowledge, domain expertise, policies, and patterns into portable files that agents can load, verify, and reuse.
$ lean-ctx pack create --name my-project --level 2
✓ Package created
Name: my-project
Graph: 59 nodes, 12 edges
Size: 28.9 KB .ctxpkg contains
A single JSON document: a manifest (metadata) and a knowledge graph. The graph captures facts, decisions, gotchas, code symbols, and their relationships.
Typed nodes (facts, gotchas, decisions, symbols) connected by typed edges (supports, contradicts, depends on).
Every node scored 0–1. Under token budgets, agents prioritize relevant nodes. Activation decays over time.
Multiple packages merge via graph union. Shared nodes update activation; conflicts surface via contradicts edges.
SHA-256 composite hash + Ed25519 signatures verified on every load. Failures reject the file.
Not every tool needs the full graph. Three levels let any tool participate — from basic fact loading to complete context transfer.
Any JSON parser
Flat nodes, no edges required. A list of typed facts — knowledge, gotchas, decisions. Any tool that can read JSON can load a Level 1 package.
lean-ctx, MCP tools
Typed nodes and typed edges. Relationships between context items preserved — supports, contradicts, depends on. Graph-merge composition with conflict detection.
lean-ctx (reference)
Activation energy on every node. Weighted edges. Temporal decay based on creation date. Full cognitive state transfer between agents or sessions.
A context package can influence how an AI agent reasons, writes code, or follows policies. Verification is essential — every package is checked before it can be loaded.
SHA-256 composite hash on every load
Ed25519 authorship verification
Tool, project, timestamp tracked
Timestamps show context currency
Use the lean-ctx CLI (recommended) or write the JSON by hand.
# Install lean-ctx
$ curl -fsSL https://leanctx.com/install.sh | sh
# Create a package from your project
$ lean-ctx pack create \
--name my-project \
--level 2
Package created successfully:
Name: my-project
Graph: 59 nodes, 12 edges
Size: 28.9 KB
# Export to a portable file
$ lean-ctx pack export my-project \
--output my-project.ctxpkg
# Share it — anyone can install it
$ lean-ctx pack import my-project.ctxpkg
$ lean-ctx pack install my-project {
"manifest": {
"name": "my-project",
"version": "1.0.0",
"description": "Project context",
"conformance_level": 1,
"created_at": "2026-05-22T00:00:00Z",
"integrity": {
"sha256": "...",
"content_hash": "...",
"byte_size": 0
}
},
"content": {
"context_graph": {
"nodes": [
{
"id": "F1",
"type": "fact",
"content": "Uses PostgreSQL 16"
},
{
"id": "G1",
"type": "gotcha",
"content": "Connection pool max is 20"
}
],
"edges": []
}
}
} Context should be explicit, portable, inspectable, verifiable, reusable, and owned by the people who create it.