Behavioral Trajectory Engine
The Behavioral Trajectory Engine transforms Nomotic from a reactive governance system into a proactive behavioral control plane. Instead of detecting drift after it happens, the engine projects behavioral drift forward, computes violation probabilities against the active contract, and triggers graduated interventions before violations actually occur.
Why Predictive Governance
Every existing governance system in the market is reactive. Drift is detected after it happens. Violations are caught when they occur. The Behavioral Trajectory Engine changes this fundamentally by extending drift detection into forward simulation across all five distributions (action, target, temporal, outcome, semantic).
For any agent, the engine continuously projects the behavioral trajectory against the active contract over the next N actions. Using the agent's current behavioral fingerprint, its drift velocity and direction across all five distributions, and its contract invariants, the engine forecasts the probability that each invariant will be violated within the projection window.
How It Works
Drift Velocity Computation
The engine maintains a sliding window of the last 10 drift observations per agent. From these observations, it computes the drift velocity — the rate of change per distribution over time:
velocity[distribution] = (latest_value - earliest_value) / (latest_time - earliest_time)A positive velocity means the agent's behavior is diverging from baseline in that distribution. A negative velocity means it's converging back.
Forward Projection
Using the current drift values and computed velocities, the engine projects where each distribution will be at the projection horizon:
projected_drift[distribution] = current_drift + velocity * horizonFor each distribution with a contract threshold, it computes the violation probability — the likelihood that the threshold will be crossed within the projection window.
Violation Probability
The violation probability calculation considers:
Current distance from threshold: How much margin remains
Velocity toward threshold: How fast the agent is approaching
Time to crossing: When the threshold would be crossed at current velocity
Proximity weighting: Earlier crossings produce higher probabilities
Risk Classification
Based on the highest violation probability across all distributions and invariants:
< 0.3
Low
None
0.3 - 0.5
Moderate
Advisory
0.5 - 0.7
High
Throttle
0.7 - 0.9
High
Escalate
> 0.9
Critical
Tighten (or Escalate if approval required)
Graduated Intervention Chain
The graduated intervention chain is the core capability: the system detects behavioral trajectory toward contract violation and applies proportional, escalating corrective measures.
Advisory
At the lowest level, the engine injects advisory signals into the verdict metadata that the agent framework can use to self-correct:
Throttle
At the next level, the engine throttles the agent's action rate by temporarily denying actions for a configurable period (default 5 minutes). This slows the trajectory and gives the system time to observe whether the agent self-corrects.
Escalate
The engine forces human escalation by routing all subsequent evaluations through Tier 3 (full deliberative review), ensuring a human reviewer examines the agent's behavior.
Tighten
At the highest level (with operator permission), the engine can dynamically tighten contract parameters to prevent the violation. This level requires explicit approval by default (tighten_requires_approval=True).
Configuration
API
Get Trajectory Projection
Returns the latest trajectory projection for an agent, including per-distribution violation probabilities, risk level, and recommended intervention.
Response:
List Interventions
Returns the intervention history, optionally filtered by agent.
Response:
CLI
Show Trajectory Projection
List Interventions
Python API
Integration with Runtime
When enable_trajectory=True, the runtime automatically:
Creates a
BehavioralTrajectoryEnginewith the configuredTrajectoryConfigFeeds drift observations to the engine after each verdict
Applies interventions automatically when
enable_auto_intervention=True:Advisory: Adds
trajectory_advisoryto verdict metadataThrottle: Temporarily denies all actions from the agent (5 minutes)
Escalate: Forces Tier 3 deliberative review for the agent
Exposes projections and interventions via
get_trajectory_projection()andget_trajectory_interventions()
Last updated

