Core Stack
| Layer | Role |
|---|---|
| Corpus | Off-chain memory records, truth documents, hard negatives, qrels, splits, public intent metadata, embeddings |
| Substrate | 1024-state-cell routing state with typed regions for memory slots, relations, temporal validity, and policy atoms |
| Retrieval router | Substrate decode, corpus lookup, candidate generation, Memory-IR rendering, and pack construction |
| Reranker | Qwen/Qwen3-Reranker-0.6B, pinned by model id, revision, prompt hash, and runtime pins |
| Coordinator | Serves /coretex/*, evaluates live submissions, signs V4 receipts, and publishes post-reveal eval reports |
| Keyless scorer sidecar | Optional coordinator execution venue for scoring with zero coordinator signing keys |
| Contracts | V4 verifies and settles receipts. The registry serializes CoreTex state advances and exposes epoch pins |
| Validator client | Standalone CPU replay package that verifies roots and, after reveal, rescoring evidence |
The package boundary matters. The default @botcoin/cortex entry point is the
validator surface. Coordinator code is exposed through @botcoin/cortex/coordinator.
Full internal exports live under @botcoin/cortex/full.