flow-surface-theorylisted
Install: claude install-skill adarshpuri20/flow-surface
# Flow Surface Theory
A geometric framework for reasoning about bugs, fixes, security, and system quality.
## 1. The core model
### Communication planes
Every pair of components that communicate defines a **plane**. The plane contains all
possible flows between them — call sequences, data exchanges, state transitions.
```
UI component <-> API client -> Plane A
API client <-> service layer -> Plane B
service layer <-> domain logic -> Plane C
domain logic <-> datastore -> Plane D
```
All planes pass through the **origin** — the system at rest, no flows active.
### The flow figure
The collection of all planes, with flows propagating outward from the origin, forms a
**closed 3D surface**. The radius at any angular position equals the length of the flow
in that direction — measured in time, or in completion.
The shape is unique to the architecture. The shape is *not* a sphere; it reflects the
density and criticality of flows in each direction.
**The shape does not matter. Smoothness matters.**
### The smoothness invariant
A perfect system has a smooth surface: continuously differentiable everywhere. No edges,
no vertices, no discontinuities. Every flow completes at exactly its expected length.
> Smoothness is the invariant. Shape is architecture-dependent.
## 2. Defects as surface deformations
### Bugs are dents
A **dent** is a surface region where flows break before completing — the traversal
terminates early, the radius at tha