|
4 | 4 | ; 0-AI-MANIFEST.a2ml — Universal AI entry point for VeriSimDB |
5 | 5 | ; Media-Type: application/a2ml |
6 | 6 |
|
| 7 | +; THIS FILE MUST BE READ FIRST BY ALL AI AGENTS |
| 8 | + |
7 | 9 | (manifest |
8 | 10 | (identity |
9 | 11 | (name "VeriSimDB") |
|
16 | 18 |
|
17 | 19 | (purpose |
18 | 20 | "8-modality (octad) database with self-normalization. Each entity |
19 | | - exists simultaneously across 8 modalities — Graph, Vector, Tensor, |
20 | | - Semantic, Document, Temporal, Provenance, Spatial — with drift |
21 | | - detection and automatic consistency maintenance.") |
| 21 | + exists simultaneously across Graph, Vector, Tensor, Semantic, |
| 22 | + Document, Temporal, Provenance, Spatial — with drift detection |
| 23 | + and automatic consistency maintenance. Standalone or federation coordinator.") |
| 24 | + |
| 25 | + ;; =================================================================== |
| 26 | + ;; CONTEXT TIERS |
| 27 | + ;; =================================================================== |
| 28 | + |
| 29 | + (context-tiers |
| 30 | + ; Tier 0 (always load): This file + .claude/CLAUDE.md — orientation only |
| 31 | + ; Tier 1 (load if working on code): README.adoc, EXPLAINME.adoc, Justfile, Cargo.toml |
| 32 | + ; Tier 2 (load on demand): .machine_readable/*.scm, docs/, KNOWN-ISSUES.adoc |
| 33 | + ; Tier 3 (never load unless asked): tests/, generated/, CI configs, connectors/test-infra/ |
| 34 | + ; |
| 35 | + ; DO NOT READ unless specifically asked: |
| 36 | + ; tests/ — test files (run them, don't read them) |
| 37 | + ; target/ — Rust build output |
| 38 | + ; _build/ — Elixir build output |
| 39 | + ; deps/ — Elixir dependencies |
| 40 | + ; generated/ — auto-generated code |
| 41 | + ; *.lock — lock files |
| 42 | + ; connectors/test-infra/ — containerised test databases |
| 43 | + ) |
| 44 | + |
| 45 | + ;; =================================================================== |
| 46 | + ;; CANONICAL LOCATIONS |
| 47 | + ;; =================================================================== |
22 | 48 |
|
23 | 49 | (canonical-locations |
24 | | - (ai-instructions ".claude/CLAUDE.md") |
25 | | - (state ".machine_readable/STATE.scm") |
26 | | - (meta ".machine_readable/META.scm") |
27 | | - (ecosystem ".machine_readable/ECOSYSTEM.scm") |
28 | | - (topology "TOPOLOGY.md") |
29 | | - (build "justfile") |
| 50 | + (ai-manifest "0-AI-MANIFEST.a2ml" "THIS FILE") |
| 51 | + (ai-instructions ".claude/CLAUDE.md" "Claude-specific patterns — DETAILED") |
| 52 | + (state ".machine_readable/STATE.scm") |
| 53 | + (meta ".machine_readable/META.scm") |
| 54 | + (ecosystem ".machine_readable/ECOSYSTEM.scm") |
| 55 | + (topology "TOPOLOGY.md") |
| 56 | + (known-issues "KNOWN-ISSUES.adoc") |
30 | 57 | (container-build "container/Containerfile") |
31 | | - (container-deploy "container/compose.toml") |
32 | | - (test-infra "connectors/test-infra/compose.toml") |
33 | | - (test-infra-manifest "connectors/test-infra/0-AI-MANIFEST.a2ml") |
34 | | - (integration-tests "elixir-orchestration/test/verisim/federation/adapters/integration/") |
35 | | - (known-issues "KNOWN-ISSUES.adoc") |
36 | | - (changelog "CHANGELOG.adoc") |
37 | | - (deployment "DEPLOYMENT.adoc") |
38 | | - (security ".well-known/security.txt")) |
| 58 | + (test-infra "connectors/test-infra/compose.toml")) |
| 59 | + |
| 60 | + ;; =================================================================== |
| 61 | + ;; ARCHITECTURE SUMMARY |
| 62 | + ;; =================================================================== |
| 63 | + |
| 64 | + (architecture |
| 65 | + (rust-core "rust-core/" "10 crates — modality stores, drift, normalizer, API") |
| 66 | + (elixir "elixir-orchestration/" "OTP supervision, entity servers, drift monitor, query router") |
| 67 | + (abi-ffi "src/abi/ + ffi/zig/" "Idris2 ABI + Zig FFI bridge") |
| 68 | + (connectors "connectors/" "10 federation adapters + 6 client SDKs") |
| 69 | + (query "VQL" "VeriSim Query Language — never raw SQL")) |
39 | 70 |
|
40 | 71 | (tech-stack |
41 | 72 | (primary "Rust" "Elixir/OTP") |
|
44 | 75 | (container-runtime "Podman") |
45 | 76 | (base-image "cgr.dev/chainguard/wolfi-base:latest")) |
46 | 77 |
|
47 | | - (architecture |
48 | | - (rust-core |
49 | | - (description "Performance-critical modality stores") |
50 | | - (location "rust-core/") |
51 | | - (crates "verisim-graph" "verisim-vector" "verisim-tensor" |
52 | | - "verisim-semantic" "verisim-document" "verisim-temporal" |
53 | | - "verisim-octad" "verisim-drift" "verisim-normalizer" |
54 | | - "verisim-api")) |
55 | | - (elixir-otp |
56 | | - (description "Distributed coordination and supervision") |
57 | | - (location "elixir-orchestration/")) |
58 | | - (abi-ffi |
59 | | - (description "Idris2 ABI definitions + Zig FFI bridge") |
60 | | - (abi-location "src/abi/") |
61 | | - (ffi-location "ffi/zig/")) |
62 | | - (data-store |
63 | | - (description "Git-backed flat-file data repo") |
64 | | - (location "verisimdb-data/")) |
65 | | - (test-infra |
66 | | - (description "Containerised test stack for federation adapter integration testing") |
67 | | - (location "connectors/test-infra/") |
68 | | - (services "mongodb" "redis-stack" "neo4j" "clickhouse" "surrealdb" "influxdb" "minio")) |
69 | | - (connectors |
70 | | - (description "Federation adapters (10) and client SDKs (6)") |
71 | | - (location "connectors/") |
72 | | - (adapters "MongoDB" "Redis" "DuckDB" "ClickHouse" "SurrealDB" "SQLite" "Neo4j" "VectorDB" "InfluxDB" "ObjectStorage") |
73 | | - (sdks "Rust" "V" "Elixir" "ReScript" "Julia" "Gleam"))) |
| 78 | + ;; =================================================================== |
| 79 | + ;; CRITICAL INVARIANTS |
| 80 | + ;; =================================================================== |
74 | 81 |
|
75 | 82 | (critical-invariants |
76 | 83 | (rule "SCM files ONLY in .machine_readable/ — never root") |
77 | | - (rule "All shell scripts must validate untrusted input") |
78 | | - (rule "No hardcoded secrets — use env vars with ${VAR:-} defaults") |
79 | | - (rule "Container images MUST use Chainguard base (cgr.dev)") |
80 | | - (rule "Container runtime is Podman — never Docker") |
81 | 84 | (rule "VQL is the query language — never raw SQL") |
82 | 85 | (rule "Octad entities must maintain 8-modality consistency") |
83 | | - (rule "Drift thresholds gate all automatic normalization")) |
| 86 | + (rule "Drift thresholds gate all automatic normalization") |
| 87 | + (rule "Container: Chainguard base, Containerfile not Dockerfile, Podman not Docker") |
| 88 | + (rule "PMPL-1.0-or-later on all source files")) |
84 | 89 |
|
85 | | - (container-ecosystem |
86 | | - (selur "container/compose.toml — deployment orchestration") |
87 | | - (stapeln "stapeln.toml — layer-based container builds") |
88 | | - (svalinn "TLS gateway with policy enforcement") |
89 | | - (vordr "Runtime verification and formal proof checking") |
90 | | - (cerro-torre "Image signing with ML-DSA-87 post-quantum crypto") |
91 | | - (rokur "Secret rotation with argon2id")) |
| 90 | + ;; =================================================================== |
| 91 | + ;; RELATED PROJECTS |
| 92 | + ;; =================================================================== |
92 | 93 |
|
93 | 94 | (related-projects |
94 | | - (hypatia "Neurosymbolic CI/CD scanner — consumes verisimdb data") |
95 | | - (gitbot-fleet "Bot orchestration — dispatches fixes from verisimdb findings") |
96 | | - (panic-attacker "Static analysis scanner — produces scan data for verisimdb") |
97 | | - (proven "Formally verified safety library — provides SafeString, SafeJson, etc.") |
98 | | - (lithoglyph "Graph database sibling — shares GQL/GQL-DT patterns") |
99 | | - (quandledb "Knot-theoretic database sibling — KQL query language"))) |
| 95 | + (hypatia "Neurosymbolic CI/CD — consumes verisimdb data") |
| 96 | + (panic-attacker "Static analysis — produces scan data for verisimdb") |
| 97 | + (proven "Formally verified safety library — SafeString, SafeJson, etc.") |
| 98 | + (lithoglyph "Graph database sibling — shares GQL patterns") |
| 99 | + (quandledb "Knot-theoretic database sibling — KQL")) |
100 | 100 |
|
101 | | -## Taxonomy Index |
| 101 | + ;; =================================================================== |
| 102 | + ;; SESSION LIFECYCLE |
| 103 | + ;; =================================================================== |
102 | 104 |
|
103 | | -- `spec/grammar.ebnf` — @taxonomy: spec/grammar |
104 | | -- `spec/README.adoc` — @taxonomy: spec/index |
105 | | -- `verification/README.adoc` — @taxonomy: verification/index |
| 105 | + (lifecycle |
| 106 | + (on-enter |
| 107 | + (step "Read THIS file first") |
| 108 | + (step "Read .claude/CLAUDE.md — contains full architecture and build commands") |
| 109 | + (step "Read .machine_readable/STATE.scm for current status")) |
106 | 110 |
|
107 | | -### New RSR Standard Directories |
| 111 | + (on-exit |
| 112 | + (step "Update .machine_readable/STATE.scm if changes made") |
| 113 | + (step "Summarise outcomes"))) |
108 | 114 |
|
109 | | -- `spec/` — Canonical specification files |
110 | | -- `verification/` — Unified verification gateway (symlinks to proofs, tests, conformance, benchmarks, fuzzing) |
| 115 | + (format-meta |
| 116 | + (version "2.1.0") |
| 117 | + (media-type "application/a2ml") |
| 118 | + (created "2026-02-20") |
| 119 | + (last-updated "2026-03-24") |
| 120 | + (maintained-by "Jonathan D.A. Jewell / hyperpolymath") |
| 121 | + (protocol "https://github.com/hyperpolymath/0-ai-gatekeeper-protocol"))) |
0 commit comments