Skip to main content

Documentation Index

Fetch the complete documentation index at: https://quintsecurity.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Implementation Changelog

Cross-reference between the GIM Architecture Spec and what’s been built. Updated April 12, 2026. Coverage: ~70% of spec implemented, with significant beyond-spec additions.

Phase Status

PhaseNameSpec StatusImplementation
P0Foundation7/7Proto codegen, shared packages, DB migrations, 12 capability dimensions
P1Runtime Tier 09/10Gate 0, classifier, security profiles, canaries, invariants. Dashboard UI remaining
P2Endpoint Distribution9/918MB binary, install script, Docker, Tailscale, fleet, offline buffer, auto-update
P3Behavioral Tier 111/12 + redesignFingerprint, Gates 1-3, flow sketches, group envelopes, shadow mode, threat detections
P4Multi-Proxy Sync9/10Serialization, Redis, NATS, BI Service, drift detection. LLM classification deferred
P5GNN Tier 210/10Complete in v1.0.0 — Memgraph, VGAE, GNNScorer, signature distillation
P6Compliance0/7Not started
P7Adaptive0/7Not started

Implemented — Matching Spec

ComponentSpecActualStatus
3-Tier ArchitectureTier 0/1 local, Tier 2 remoteProxy (Go) + BI Service (Python)Exact match
AgentFingerprint~3.1KB probabilistic struct~6KB with flow sketches (v2)Extended
Capability Distribution[12]float32[12]float32Exact
Tool FrequencyCMS 4x256 uint16CMS 4x256 uint16Exact
Hierarchical Bloom3 levels (domain/server/tool)3 Bloom filtersExact
Temporal Profile24h EWMA + intervalHourlyActivity[24] + IntervalEWMAExact
Risk BaselineWelford’s algorithmWelfordStats (mean, m2, min, max)Exact
Sequence ModelMarkov chain32-slot hash-based MarkovChainExact
CardinalityHyperLogLog3x HLL (tools, servers, IPs)Exact
Gate 1Envelope membershipBloom + CMS + JSD, 114nsExact
Gate 26 deviation signalsAll 6 implemented, 433nsExact
Gate 3Corroboration + sessionFlow divergence + structural evidenceRedesigned
Confidence BandsKNOWN_SAFE / UNCERTAIN / ANOMALOUS3-band classificationExact
Delta Flush30s to RedisDeltaFlusher, 30s periodicExact
Session ExportOn session end60s periodic + session endExtended
Cold Start BootstrapFrom Redis, <5sBootstrapFromRedis, ~230ms for 10KExceeds
BI ServiceSingle Tier 2 authorityPython, NATS consumer, 780K events/secMatches
Correction FlowBaselines + corrections via NATSCorrectionReceiver with ApplyBaseline/ApplyCorrectionMatches
Shadow ModeObserve-only before enforcementBehavioralConfig with shadow_mode toggleExact

Implemented — Diverged from Spec

Spec SaidWhat Was BuiltWhy
Session buffer with 4 hardcoded relationship typesFlow matrix accumulator ([12][12]uint16)Hardcoded patterns required code changes for new attacks. Flow matrices detect structural divergence without enumerating specific capability pairs
Gate 0 in behavioral pipeline (~200ns)Gate 0 logic lives in gateway/intercept layersDeny lists and rate limiting are pre-behavioral concerns. The behavioral pipeline starts at Gate 1
Redis Stack server-side merge (BF.ADD, CMS.INCRBY)Go-side GET → unmarshal → MergeFingerprints → SETSimpler, avoids Lua script complexity. Convergent structures (CMS, Bloom, HLL) tolerate last-write-wins
Fingerprint deltas via dedicated NATS streamDeltas go directly to Redis via DeltaFlusherMore efficient when the merge target is Redis — no intermediate NATS hop needed
~3.1KB per fingerprint~6KB per fingerprintFlow sketches (FlowMatrix, ResourceFlowSketch, DepthProfile, TemporalFlow) added ~2.9KB. Still fits 21K agents in 128MB

Implemented — Beyond Spec

These features were NOT in the original GIM Architecture doc but were added during implementation:
FeatureWhat It DoesWhy It Matters
Baseline FloorsMinimum thresholds that EWMA learning can never lowerAnti-poisoning: prevents slow envelope corruption
Threat Signatures5 built-in structural FlowMatrix shapes matched via JSDDetection at Tier 0 without cloud — exfiltration, credential relay, staging, recon, cover tracks
Signature ScopingAgentTypes + MinDepth fields per signatureDifferent agents have different normal flows — sub-agent depth matters
TightenFloors ProtocolBI Service can only tighten floors, never relaxPrevents compromised BI channel from weakening local defenses
Signature ValidationMaxJSD, Weight, FlowShape validated on Add/LoadFromJSONPrevents crafted signatures from blinding detection
Flow Matrix EWMA[12][12]float32 capability transition trackingStructural behavioral shape beyond individual action statistics
Resource Flow SketchCMS64 tracking resource boundary crossingsDetects data moving in unexpected directions
Depth Profile[12][8]float32 capability × depth trackingDetects capabilities at unusual nesting depths
Temporal FlowPer-transition timing EWMA + varianceDetects timing anomalies on specific flow types (not just globally)
Noise Budget CountersAtomic band distribution tracking with health status”healthy” / “noisy” / “blind” classification for calibration
Session ReaperTTL-based eviction of stale sessions (30min idle)Prevents unbounded memory growth in sessions sync.Map
GroupID FilteringcomputeGroupEnvelope filters by agent typeCorrect group baselines instead of merging all agents
PeriodicWorkerExtracted shared ticker/goroutine lifecycleDRY pattern across DeltaFlusher, SessionExporter, DriftDetector
NATS Overflow BufferDisk-backed JSONL overflow when NATS backpressuresPrevents event loss during network outages
Agent Eviction (BI)Stale agent stats evicted after 1hr idlePrevents unbounded memory growth in BI Service
Calibrator StatisticsFalse negative/positive/agreement rate trackingObservability for shadow mode calibration

Not Yet Implemented (Spec’d)

Spec ItemPhaseDependencyStatus
GNN Structural AnalysisP5Memgraph + model trainingNot started
Graph AutoencoderP5MemgraphNot started
Memgraph DeploymentP5InfrastructureNot started
LLM Fallback (Tier 2)P5BI Service + quint-graph RAGInfrastructure exists, not wired
5 Structural Invariant DetectorsP5GNNNot started
Predictive DetectionP5GNNNot started
Contrastive RefinementP5GNN + labeled dataNot started
Threat Feed Integration (MITRE ATT&CK)P5External feedsNot started
Compliance Frameworks (SOC2, NIST, ISO)P6Schema designNot started
Compliance DashboardP6API + frontendNot started
Audit Report ExportP6Compliance dataNot started
Federated IntelligenceP7Global BI infrastructureNot started
Threat Simulation EngineP7GNN + LLMNot started
Dynamic Confidence ThresholdsP7Calibration dataNot started
Active Learning LoopP7Analyst feedbackNot started
LLM Classification PipelineP4Infrastructure designDeferred (QDEV-133)

Performance vs Spec Targets

MetricSpec TargetActualVerdict
Tier 0+1 Latency<1-5ms~2-5μs (1000x faster)Exceeds
Tier 2 Latency10-50ms asyncBI Service via NATS (non-blocking)Meets
Fingerprint UpdateO(1)212ns, all O(1)Meets
Gate 1 Fast Path~100ns114ns, 0 allocsMeets
Gate 2 Signals~500ns433ns, 8 allocsMeets
Gate 3 Corroboration~1μs293ns (no-evidence), 1.2μs (with flow JSD)Meets
Cold Start<5s for 10K agents~230msExceeds (20x)
Delta Flush30s interval30s (exact)Meets
Memory per Agent~3.1KB → ~6KB5,990 bytes serializedMeets revised
Cache BudgetNot specified128MB default (~21K agents)Reasonable
Noise Budget95% Band 1, <0.5% Band 3Scale test: 85.6% Band 1, 2% Band 3Close (needs tuning)
False Positive RateNot specified0.04% (flow-based Gate 3)Strong
BI Service ThroughputNot specified780K events/sec (batch)Strong
BI Service p99Not specified0.002msStrong

Known Issues

IssueSeverityStatus
AgentFingerprint data race (no per-instance mutex)MediumTracked — concurrent Score + ForEach can race on fingerprint fields
Noise budget not hitting 95% KNOWN_SAFE targetLowNeeds threshold tuning in production with real traffic
Health tests fail on Python 3.14 (aiohttp compat)Lowaiohttp test client needs update
Threat signatures: only recon (QT-SIG-004) fires reliably in testsLowOther signatures need more diverse test scenarios

Codebase Statistics

ComponentFilesLOCTests
Proxy behavioral package (Go)31 source, 28 test18,534321
BI Service (Python)10 source, 9 test~2,558122
API handlers + store15 handler, 10 store~3,000~50
Pipeline writer1~460~20
Migrations121,115
Mintlify docs13 pages~3,000
Total~130 files~28,700~513