Catalog
The catalog is the audit trail. It connects every architectural artifact to every other artifact — diagrams to ADRs, ADRs to design documents, design documents to code, code to diagrams. If something is missing, the catalog shows it. If something contradicts, the catalog reveals it.
Diagram Inventory
Every Mermaid diagram in the architecture pages. Step 0.5 will extract each into _diagrams/ with a designated source ID. Until then, this table is the index.
| ID | Type | Title | Source Page |
|---|---|---|---|
C4 Context |
System Context — Total Recall in its environment |
||
Ports & Adapters |
Hexagonal — ports, adapters, actor model |
||
Context Map |
Bounded Contexts — six actors and message flow |
||
Sequence |
Store Memory flow |
||
Sequence |
Search Memory flow |
||
Sequence |
Claim Memory flow |
||
Sequence |
Decay Sweep flow |
||
Sequence |
Session Lifecycle flow |
||
Sequence |
Reflect (Dreaming) flow |
||
Sequence |
Total Recall — unsolicited deep recollection |
||
Bounded Context |
Hippocampus — commands, events, persistence |
||
Bounded Context |
Salience — sources, scoring, consumers |
||
Bounded Context |
Synapse — associations, storage, traversal |
||
Bounded Context |
Recall — assembly sources, consumers |
||
Bounded Context |
Cortex — translation, routing, dispatch |
||
Bounded Context |
Subconscious — timers, sweeps, shutdown |
Architecture Decision Records
| ADR | Title | References |
|---|---|---|
Use Architecture Decision Records |
Template for all ADRs |
|
Hexagonal Architecture |
Hexagonal page, ports and adapters diagram |
|
stdio as Primary Transport |
Context page, hexagonal page (inbound adapters) |
|
Resilient Storage Array |
Hexagonal page (outbound ports), BackingServicePort |
|
Memory as Aggregate Root |
Bounded contexts page (Hippocampus) |
|
Events and Commands as Message Types |
Message catalog page (all message tables) |
|
Biological Memory as Reference Model |
Message catalog (claiming intelligence), bounded contexts (Salience) |
Bounded Contexts to Code
Mapping from architectural bounded contexts to Kotlin source artifacts.
| Context | Responsibility | Code Artifacts | Status |
|---|---|---|---|
Hippocampus |
Aggregate root. CRUD for memories across four tiers. Claiming. |
|
Interfaces defined |
Synapse |
Typed relationships between memories. Graph traversal. |
|
Model defined |
Salience |
Scoring and decay. Tier promotion/demotion. |
|
Model defined |
Recall |
Search and recall. Salience-weighted, association-activated. |
(no dedicated source — reads from Hippocampus, Salience, Synapse) |
CQRS read side |
Cortex |
Per-instance working state. Entry point for all requests. |
|
Stubs |
Subconscious |
Background maintenance. Timers. Graceful shutdown. |
(no dedicated source yet) |
Not started |
Messages to Code
| Category | Documented Count | Implemented Count | File |
|---|---|---|---|
Commands |
7 |
7 |
|
Queries |
2 |
2 |
|
Events |
17 |
17 |
|
Notifications |
3 |
3 |
|
|
Note
|
Event count 17 includes HeartbeatReceived (added in C-Audit-7). Notification count 3 includes TotalRecallNotification. All counts match code. |
Ports to Code
| Port | Direction | Documented Operations | Code Operations |
|---|---|---|---|
|
Inbound |
store, search, claim, associate, reclassify, reflect |
|
|
Inbound |
session_start, session_end, state_transition, heartbeat |
|
|
Outbound |
save, findById, search, delete, update |
|
|
Outbound |
send |
|
|
Outbound |
relay |
|
|
Note
|
Outbound port operations aligned with code in D-Audit-1, D-Audit-2, D-Audit-3. Documentation and code now match. |
Known Inconsistencies
Audit findings tracked in INDEX.md.
Resolved
-
10 documentation mismatches (D-Audit-1 through 10) — all resolved. Port names aligned, event counts corrected, routing fixed, actor count fixed.
-
8 of 9 code issues (C-Audit-1 through 8) — dead code removed, events documented, packages fixed, schemas aligned, enums created, Duration types, HeartbeatReceived added, SalienceScored wrapping.
-
3 test gaps (T-Audit-1 through 3) — all resolved. Server tests expanded (10 tests), self-referential assertion fixed, full message coverage (17 tests).
Open
-
C-Audit-9 — TotalRecall.kt refactoring pass. Deferred to rdd13r.
-
F-Audit-6 — MemoryRetrieved/SalienceScored/AssociationsFound identity crisis (events or response payloads?). Resolves with TransactionContext usage patterns.
Design Documents
Documents will be added as each bounded context is examined.
| Document | Scope | Status |
|---|---|---|
About Detailed Design — why we front-load design |
Done |
|
What is a Port? |
Done |
|
What is an Adapter? (Active Structure) |
Done |
|
What is an ACL? (Adapter + Port + Adapter) |
Done |
|
Hexagon Sides |
Done |
|
Hippocampus — the Aggregate Root |
Done |
|
Salience (Focus) — the Scoring Engine |
Done |
|
Synapse (Matrix) — the Relationship Layer |
Done |
|
Recall (Stream) — the Read-Only Assembler |
Done |
|
Cortex (Inception) — the Entry Point |
Done |
|
Subconscious (Dream) — the Background Caretaker |
Done |
|
TransactionContext (Chain of Custody) — the envelope every message carries |
Done |