1. Graph Node (Event-State Unit)
A unified representation of:
- function calls
- logs
- state snapshots
- errors
Each node is a traceable “memory fragment” of execution.
2. Causal Edge
Directed relationship such as:
caused-bytriggered-byderived-frompropagated-to
Edges encode why something happened, not just sequence.
3. Execution Trace Graph
A full system memory structure combining:
- temporal ordering
- causal dependencies
- state transitions
This replaces logs and stack traces as the primary debugging substrate.
4. Anthropomorphic Agent Model
A semantic overlay where:
- AI/system behaves like a “junior engineer”, “investigator”, or “reasoning agent”
- outputs are interpreted as decisions or beliefs, not raw computation
This enables:
- intent inference
- behavioral explanation
- narrative reconstruction
5. Forensic Query
A structured question over the graph:
- upstream cause tracing
- dependency expansion
- divergence localization
- temporal slicing
Queries are investigative moves, not data retrieval.
6. Expectation vs Observation Pair
Core epistemic unit:
- predicted behavior (intent model)
- actual system outcome
- divergence (“surprise event”)
7. Simulation Branch
A forked execution path:
- used to test hypotheses
- compare alternative causal futures
- validate fixes without mutating production state
8. Snapshot Node
Frozen state enabling:
- replay
- rollback
- causal reconstruction
HOW THE CONCEPT WORKS
AFDL operates as a continuous loop:
1. Observe
System emits structured execution events:
- logs
- state transitions
- errors
- lock events
All become graph nodes.
2. Query Context
Instead of reading logs:
- the debugger issues a graph query
- retrieves a causal subgraph around failure
3. Reconstruct State
The system is:
- replayed backward/forward
- rehydrated at specific timestamps
- decomposed into causal chains
4. Anthropomorphic Interpretation
The subgraph is interpreted as:
- “what the system believed would happen”
- “what the AI was trying to do”
- “what assumption failed”
This creates a narrative layer over causality.
5. Hypothesis Generation
AI + human co-generate:
- multiple causal explanations
- competing failure theories
- structured forensic queries
6. Simulation / Branching
Each hypothesis can be:
- simulated in a forked graph
- validated against expected outcomes
7. Patch + Validate
Fixes are applied as:
- graph modifications
- updated edges
- corrected state transitions
Validation closes the loop.