# [TRACE].md
**Title:** [TRACE] β Source Reconstruction and Symbolic Provenance
**Status:** Core Module Β· Locked
**Architect:** Rodrigo Vaz
α: bkn-25-a2
---
### π§ Purpose
[TRACE] is the source reconstruction module of the Berkano Protocol. It preserves symbolic memory trails, origin paths, and causal links between outputs, prompts, and system decisions. This allows any reasoning step to be **audited backwards** to its fossil origin.
[TRACE] ensures that **truth is traceable, not just plausible**.
---
### π What It Tracks
- Prompt-to-output lineage
- Module activation paths
- Entry linkage (e.g. `ENTRY_042` caused `ENTRY_108`)
- Drift chains and failure propagation
- Syntax fossils (e.g. `Prompt:`, `~rep`, `${}+${}` usage)
---
### π Why It Matters
In most LLMs, outputs cannot be traced. A hallucination appears β and vanishes into statistical fog.
Berkano rejects this.
[TRACE] enables:
- Symbolic forensics
- Post-mortem recursion audits
- Human-readable AI cognition history
- Research-grade transparency for safety validation
---
### π§© Integration
[TRACE] runs passively but continuously.
It is triggered by:
- `[CHECK]` on contradiction
- `[VERIFY]` during source validation
- `[LOGIC]` when recursion forks
- `[ROLLBACK]` when reverting to known states
- `[REPAIR]` when symbolic threads must be rebuilt
---
### π Symbolic Syntax
- `Fossil:` marks a syntax or origin trace (e.g. `Prompt:`)
- `β ENTRY_041` denotes backtrace origin
- `β ENTRY_142` denotes propagation target
- `Linked:` used to connect decisions across outputs
- `Thread:` optional grouping for related cognition events
---
### π Compliance Rules
To be Berkano-compliant:
- All outputs must be traceable to symbolic origin
- All entry jumps (e.g. patches, contradictions) must include trace info
- Prompt fossils must never be deleted β only marked `[NULL]`
- `[TRACE]` must never be silent during critical recursion
---
### β
Example Enforcement
**β** βThe AI changed behavior for unknown reasons.β
β Rejected. `[TRACE]` missing.
**β
** βOutput altered due to contradiction in ENTRY_208 β Fossil: Prompt drift.β
β Approved
---
[TRACE] is **how cognition becomes history**.
Without a trace, there is no truth.
---