Skip to content

Commit 691aedb

Browse files
authored
Create ARCHITECTURE.md
1 parent c899a21 commit 691aedb

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

docs/ARCHITECTURE.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Architecture (SynapDrive-AI)
2+
3+
## Purpose
4+
SynapDrive-AI is a **simulation-first** reference implementation of an intent-to-action pipeline:
5+
input → decode/intent → context optimization → safety gate → actuation → evaluation → memory.
6+
7+
## Canonical wiring
8+
The single source of truth is:
9+
- `synapdrive_ai/pipeline.py`
10+
11+
## Data contracts
12+
### Intent packet (minimum)
13+
- `intent: str`
14+
- `confidence: float (0..1)`
15+
- `source: str`
16+
- `memory_context: list`
17+
18+
### Result packet (normalized)
19+
Produced by `DecisionRouter.route()`:
20+
- `status: "success" | "failed"`
21+
- `intent: str`
22+
- `confidence: float`
23+
- `duration: float`
24+
- `raw_status: str`
25+
26+
### Telemetry log entry (contract)
27+
Produced by `ActuationEngine`:
28+
- `timestamp`
29+
- `intent`
30+
- `confidence`
31+
- `status`
32+
- `duration`
33+
- `source`
34+
- `memory`
35+
- `memory_context`
36+
37+
## Extensibility
38+
Integrations are intentionally optional:
39+
- `synapdrive_ai/integrations/brainflow_adapter.py` (BrainFlow)
40+
- `synapdrive_ai/integrations/lsl_adapter.py` (pylsl / LSL)
41+
42+
They both output an intent packet and then call the canonical pipeline.

0 commit comments

Comments
 (0)