Friction
Cognitive cost of reconstructing system understanding (grep loops, mental modeling, dependency tracing, ambiguous state).
Collapse Event
A phase transition where sufficient structure is externalized that implementation becomes trivial again.
Directive Semantics (@produces, @consumes, @in, @out)
Primary interface for expressing flow; replaces explicit wiring and glue logic.
Execution Inference Layer
A compiler/runtime/AI layer that derives behavior from schema + graph structure, rather than explicit control flow.
Intent Node
Atomic unit of meaning (“why this exists”), replacing code-centric locality with epistemic locality.
Transformation Edge
Encoded causality between states (sanitize → normalize → embed), replacing procedural chains.
Investigation Agent (“Detective”)
A stateless reasoning worker that:
- reconstructs causality
- produces evidence-backed reports
- proposes missing tooling
Tool Imagination Artifact
A structured output capturing “what tool would remove this friction entirely,” feeding system evolution.
Pattern Object
Reusable abstraction extracted from repeated friction signatures (query patterns, debugging patterns, structural repetition).
Context Gradient
Gap between:
- system’s latent structure
- and what is externally accessible via tools (files, logs, queries)
HOW THE CONCEPT WORKS
1. Expression Phase (Declarative Intent)
The system is defined using directive-first schema language:
- types describe structure
- directives describe flow
- defaults reduce annotation noise
Example behaviors:
- everything is required unless optional (
?) - relationships are inferred unless explicitly constrained
- execution is attached via metadata, not code paths
This produces a compressed representation of intent, not procedure.
2. Inference Phase (Structure Completion)
A compiler-like or AI-like layer:
- expands shorthand into full graphs
- infers relationships between modules
- attaches execution semantics
- generates missing scaffolding (tests, data, wiring)
Key effect:
The system becomes runnable without being fully authored.
3. Execution Phase (Graph Runtime)
Execution is not linear:
- it is graph traversal
- dependency resolution
- and metadata-driven orchestration
Code is no longer primary; it is a rendered projection of the graph.
4. Friction Detection Phase
During execution and interaction:
- ambiguity appears as search loops
- debugging appears as repeated reconstruction
- missing abstractions appear as repeated patterns
These are treated as:
structured signals of missing representation
5. Investigation Phase (Detachment of Cognition)
Instead of inline debugging:
- errors become “investigation requests”
- a detective agent reconstructs causality
- outputs structured reports with provenance
Outputs include:
- causal chain reconstruction
- failure narrative (“what actually happened”)
- tool gap identification
6. Tool Generation Phase (System Self-Expansion)
Repeated friction patterns generate:
- new tools
- new directives
- new schema primitives
This is a meta-loop where friction becomes infrastructure.
7. Schema Refinement Phase (Collapse)
The system updates:
- schema structure
- directives
- graph topology
- inference rules
Result:
- previous friction disappears
- future tasks require less reconstruction
This is the “collapse” moment.
8. Repeat (Tightening Loop)
Each cycle:
- reduces cognitive load
- increases structure density
- shifts work from “understanding” → “navigation”
Eventually:
intelligence becomes traversal of a pre-materialized semantic space