Domain-agnostic. The same kernel enforces a desktop AI agent's filesystem boundaries and a drone's geospatial envelope. The domain provides constraints. The kernel provides deterministic evaluation and faithful audit logging. This is where everything in the programme converges.
Geometry gave us the axiomatic method. Calculus gave us optimisation. Linear algebra gave us transformations and attention. Statistics gave us reasoning under uncertainty. Specifying Systems gave us formal specification. SwiftVector is where all of it converges: a governance kernel that inherits Euclid's four-layer architecture, enforces constraints with deterministic evaluation, and produces a faithful audit trail of every decision.
The kernel doesn't know what it's governing. A filesystem boundary and a geospatial envelope are the same thing to SwiftVector: constraints that evaluate to ALLOW, DENY, or ESCALATE. The domain provides the constraints. The kernel provides the evaluation engine. This separation is what makes governance portable across every application domain.
Every evaluation must produce the same result given the same inputs. No Date(), no UUID(), no .random() inside reducers. Replay must work. The audit trail must be complete. This is the same standard Euclid held: every proposition must be derivable from what came before.
Explore the SwiftVector kernel's architecture. Constraints, Codex, domain contexts, and the evaluation engine — with code examples showing how the same kernel serves both filesystem governance and geospatial governance.
// The base protocol for all governance constraints. // Deterministic. Stateless. Single-purpose. public protocol Constraint: Sendable { // Stable identifier used in audit logs var identifier: String { get } // Higher priority evaluates first var priority: Int { get } // Same input = same output. Always. func evaluate(_ action: Action, context: some DomainContext) -> Verdict }
// Boundary = filesystem path scope
func evaluate(_ action, context) {
if ctx.immutablePaths
.contains(action.subject) {
return .deny(
reason: "Constitutionally immutable")
}
return isWithinBoundary(...)
? .allow : .deny(...)
}// Boundary = geofence polygon
func evaluate(_ action, context) {
guard action.metadata["command"]
== "navigate" else {
return .allow
}
return isWithinBoundary(...)
? .allow : .deny(
reason: "Outside operational fence")
}