Trajectory Risk Forecast: a lookahead safety monitor that re-prompts agents before unsafe actions
A monitor that predicts when an AI agent is about to do something unsafe and stops it in time.
A runtime add-on for LLM agent platforms that learns a probabilistic model of agent behavior from execution traces and, when the probability of the run staying safe drops below a threshold, intervenes by re-prompting the agent before the unsafe action occurs. It cuts unsafe behavior sharply while retaining most task completion.
Concept
A managed runtime safety layer for production agents, sold as an integration for agent frameworks. Deployment has two phases. In shadow mode, the product collects the customer's agent execution traces, abstracts them into symbolic states under semantic validity constraints, and fits a Discrete-Time Markov Chain (DTMC) modeling the agent's behavioral dynamics. In live mode, it estimates at each step the probability that execution will remain safe from the current state; when that probability falls below a user-defined threshold, it fires an intervention — by default a corrective re-prompt of the agent, with a stricter configuration that halts execution.
The threshold is the product's control surface: operations teams dial the trade-off between safety and task completion per workflow (e.g., halt on payment actions, re-prompt on data writes). Because the monitor learns from the customer's own traces, it captures domain-specific failure modes that hand-written rules miss, including long-horizon dependencies.
Why now
The underlying research demonstrates the mechanism end-to-end with deployable readiness: warnings up to 15.84 seconds in advance at a threshold yielding no false alarms (up to 38.66 seconds at stricter thresholds) for traffic-law violations and collisions; in embodied-agent tasks, the re-prompting intervention reduced unsafe behavior by 65.37% while retaining 80.4% of baseline task completion, and a halting configuration reduced unsafe behavior by 93.60%. The monitor is open-source, integrated with the LangChain agent framework, introduces minimal runtime overhead, and carries a PAC-style sample-complexity analysis for certifying the learned model — concrete numbers a product can be sized against. The agent-threat survey [1] independently identifies runtime monitoring as a required mitigation layer for agent ecosystems whose stochastic decision-making creates execution-time risks, and the monitor work explicitly positions against reactive rule-based monitors (e.g., AgentSpec) that only detect violations once unsafe behavior is imminent or has occurred.
Written by GLM · 1 Dec 2026
AI assessment
An exceptionally well-supported, focused runtime safety tool that moves beyond static rules to probabilistic risk forecasting for high-stakes AI agents.
- Evidence strength 5/5
- The idea is directly derived from the ProbGuard paper, which provides specific performance metrics on unsafe behavior reduction and a clear technical mechanism (DTMC) for implementation.
- Market pull 4/5
- Enterprise automation (CRM, payments) and robotics have high urgency for safety layers, and the named beneficiaries are legitimate buyers of such reliability tools.
- Novelty & moat 4/5
- Unlike the listed 'Deterministic' or 'Rule-Based' guardrails, this uses a probabilistic, learned model to anticipate risks before they happen, filling a gap for non-deterministic safety.
- Feasibility 5/5
- The research provides an open-source implementation and a sample-complexity analysis, making a prototype highly achievable for a small team.
- Wedge clarity 4/5
- The 'shadow mode' to 'live mode' transition provides a clear, low-friction entry point for enterprise customers to prove value before enabling interventions.
- Simplicity / focus 5/5
- The product is a single, focused runtime monitor with one clear function: predicting and intervening in unsafe trajectories.
Scored by Gemma 4 · 1 Dec 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Who benefits
- LangChaincompany
The monitor is already implemented as an open-source integration with its agent framework; productizing a managed lookahead-safety add-on fits LangChain's enterprise platform sales with the engineering already de-risked.
- UiPathcompany
UiPath's agentic automation executes real business actions; a forecast-and-re-prompt guard reduces unsafe automation outcomes without halting workflows, addressing its core reliability concern.
- Sierracompany
Sierra's customer-experience agents take consequential actions like refunds and account changes; probabilistic pre-warning limits harm while the demonstrated 80.4% task-completion retention keeps customer service effective.
- Boschcompany
Bosch builds household appliances and robotics — exactly the embodied household-agent domain where the 65.37% unsafe-behavior reduction was demonstrated — making the monitor a natural safety component for its agent-enabled products.
Research it builds on
- From prompt injections to protocol exploits: Threats in LLM-powered AI agents workflowsAll ideas from this paper →
- ProbGuard: Proactive Runtime Monitoring for LLM Agent Safety via Probabilistic PredictionHaoyu Wang, Christopher Michael POSKITT, Jiali Wei et al. · 2026 · 89 citationsAll ideas from this paper →