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.
Status: shipped — Stage 1 in shadow mode. Envelope lifecycle runs in production; multi-proxy sync is built.
Envelope Lifecycle
Every agent builds a behavioral envelope — a fixed-size probabilistic fingerprint of what it normally does. This page traces the complete lifecycle from first action to mature baseline to multi-proxy sync.Phase 1: Cold Start (Actions 0-10)
An agent connects for the first time. The proxy has never seen it.BehaviorCache.GetOrCreate()— local cache missHydrateFunc— Redis miss (new agent, nothing stored)NewFingerprint()— all zeros (CapDist, FlowMatrix, Bloom, CMS, HLL, Welford)
MinActions guard (default 10). Below this threshold, the fingerprint is not trusted — gates pass through without scoring. The agent operates freely.
Group envelope fallback: If other agents of the same type (e.g., “claude-code”) have established baselines, the group envelope provides a borrowed baseline. Actions normal for the group won’t trigger false positives.
Phase 2: Learning (Actions 10-100)
Every action updates the fingerprint in O(1), ~212ns:| Step | What Updates | Structure |
|---|---|---|
| 1 | Total action count | Counter |
| 2 | Capability distribution (running average) | [12]float32 |
| 3 | Tool frequency | Count-Min Sketch |
| 4 | Tool/server/domain novelty | 3 Bloom filters |
| 5 | Hour-of-day activity | [24]float32 EWMA |
| 6 | Inter-action interval | EWMA + Welford variance |
| 7 | Risk score baseline | Welford (mean, m2) |
| 8 | Action sequence model | Markov chain (32 slots) |
| 9 | Tool/server/IP cardinality | 3 HyperLogLog sketches |
| 10a | Capability flow transitions | [12][12]float32 EWMA |
| 10b | Resource boundary crossings | CMS64 |
| 10c | Depth-capability profile | [12][8]float32 EWMA |
| 10d | Per-transition timing | [12][12]float32 EWMA + variance |
Phase 3: Mature Envelope (Actions 100+)
The fingerprint is trusted. The group envelope fallback is disabled. The agent operates on its own baseline.The 95% Fast Path (~526ns total)
The 5% Novel Action Path (~1.2μs total)
The Attack Path (<0.5%)
Phase 4: Ongoing Evolution
The envelope is alive — it evolves as the agent’s behavior changes.EWMA Decay
Old patterns naturally fade. The FlowMatrix EWMA (α=0.05) means a transition that stops occurring decays to near-zero over ~140 actions. The CapDist shifts as new capabilities are used.Drift Detection
TheDriftDetector runs hourly, comparing a frozen 7-day snapshot against the live envelope across three JSD dimensions:
| Dimension | Threshold | Catches |
|---|---|---|
| CapDist JSD | 0.15 | Gradual capability shift |
| FlowMatrix JSD | 0.20 | Structural flow change |
| DepthProfile JSD | 0.20 | Nesting depth change |
Phase 5: Multi-Proxy Sync
The fingerprint doesn’t live on just one proxy.Delta Flush (every 30s)
Dirty fingerprints are serialized (MarshalBinary, 2.6μs) and merged into Redis (Merge, 9.6μs). Redis holds the authoritative merged fingerprint — the union of all proxy instances’ observations.
Cache Miss Hydration (~2-5ms)
When a proxy doesn’t have an agent locally (LRU evicted or new instance),GetOrCreate calls the HydrateFunc which fetches from Redis. The agent’s full behavioral history is restored.
Cold Start Bootstrap
On proxy startup,BootstrapFromRedis bulk-loads fingerprints for recently active agents in batches of 100. 10K agents bootstrap in ~1ms CPU + ~200ms Redis.
Session Export (every 60s or session end)
The SessionBuffer’s flow matrices + action chain are serialized to JSON (~152μs, ~29KB) and published to NATS (quint.sessions.{org}). The Behavioral Intelligence Service materializes these as subgraphs in Memgraph.