Kinfora research · Working paper

Safe When the Sensors Lie

Runtime assurance for autonomous systems when the observation channel degrades: two open hypotheses and a benchmark specification

Cite as: B. Adedokun. Safe When the Sensors Lie: Runtime Assurance for Autonomous Systems When the Observation Channel Degrades. Kinfora working paper, version 1.3, 2026. doi:10.5281/zenodo.24704961 · PDF on Zenodo · all versions: doi:10.5281/zenodo.24510317 · ORCID 0009-0007-8938-1995

Abstract

Autonomous systems act on data about the world: a vehicle on its position and perception, an insulin controller on a glucose sensor, a grid controller on field telemetry, a software agent on the results of its tool calls, a trading system on prices. Engineering practice in each domain already prescribes degraded modes for when that data fails, and runtime safety methods tolerate observation error up to a bound fixed at design time. In operation, observation quality is itself measured at runtime: how old the latest reading is, how many expected readings arrived, how far independent sources disagree. We ask whether a safety guarantee can be indexed to those measured quantities jointly, and whether such a guarantee could be stated independently of the domain. We state two open hypotheses: a loss envelope that depends on measured degradation, with a halt that completes before the envelope is exceeded (H1); and calibrated confidence for an agent whose feedback is censored by its own abstentions (H2). Neither is established. We relate the problem to existing practice in six domains and to work in robust control, estimation, verification and selective prediction, and we specify a benchmark. Our only real-world data so far comes from a first testbed in trading.

1. The assumption, and what already relaxes it

Runtime enforcement layers in safe autonomy reason about a state. A Simplex architecture switches to a verified safety controller before the state leaves the region from which that controller can recover [1]. A shield blocks actions that would violate a temporal-logic specification [2]. A control barrier function (CBF) keeps the state inside an invariant set [3]. In their basic forms, each assumes the controller sees the state it reasons about.

A substantial body of work relaxes that assumption, and any claim of novelty has to start from it:

Each result tolerates one kind of degradation, mostly specified in advance, or guarantees a reachable safe manoeuvre without tying it to observation quality. We have not found a result whose guarantee is stated as a function of measured staleness, dropout and source disagreement jointly, and whose safety property is that a halt, including the time to carry it out, completes before a loss envelope is exceeded. That narrower gap is the subject of this paper, and we would welcome pointers to work that already closes it.

2. Related failures in different domains

Public investigations and research describe failures in which automated systems acted on observation that had become untrustworthy, or failed to notice that it had. Each domain below has practice for this. In each case, a stop rule tied to measured observation quality might have limited the outcome; what none offers, to our knowledge, is a guarantee stated as a function of that measurement.

We met the observation-side version in our own system. On the afternoon of 16 November 2026, rate-limit errors, later traced to our own market-data requests, left the loss limiter of our trading application unable to read the account on 56 one-minute checks between 14:39 and 15:44 Eastern time (about 65 minutes). The limiter is built to treat a sustained run of unreadable checks as a reason to stop opening positions; the cause was then removed by batching the requests. A fix of that kind addresses one cause. The general question is how far an agent can be allowed to act, and when it must halt, as a function of how degraded its view measurably is.

3. Problem statement

Consider an agent that observes a true state xt through n sources, each of which can lag, drop out and be perturbed:

yit = hi(xt−τit) + ait  if a reading arrives,  yit = ⊥  otherwise,

where τit is the age of the latest reading from source i (its age of information [27]) and ait is a perturbation, possibly adversarial. The agent may act, abstain or halt. Loss accrues through the plant (the system being controlled) according to a stated loss function. Actions are exposure-increasing if they move the plant away from a safe state and risk-reducing if they move it towards one, though which is which can depend on the state.

The measured degradation δt collects what the agent can compute at runtime: the ages τit (given an authenticated clock), the recent arrival rate of readings from each source, and the disagreement between sources. The perturbations ait are not directly observable: a spoof that every source shares produces no disagreement. Statements about spoofing therefore need an explicit adversary assumption, such as a bound on how many sources are compromised, with enough independent sources for the state to remain identifiable, as in secure estimation [4]. Where there is effectively one source, as for an agent reading a single document, this assumption does not hold and other defences are needed.

The question is which guarantees can be stated with hypotheses only on δ, a stated bound on how fast the plant can move, and the adversary assumption, without assuming that xt can be recovered.

4. One problem, six domains

The formulation above does not depend on the domain. What changes is which channels the agent relies on, what counts as exposure, and what a safe halt is. The mappings below are illustrative; we have data only for the last row.

DomainObservation channels and degradationExposure-increasing actions (typically)Safe halt
Road vehicles and robotsSatellite navigation, inertial and wheel odometry, camera, lidar and radar; stale or dropped frames, navigation disagreeing with inertial propagation, sensors disagreeing on an objectAccelerating, entering a zone, starting a manipulationA minimal-risk manoeuvre suited to the situation, such as a controlled stop or pull-over; a protective stop for a robot
DronesAs above, plus barometric altitude, airspeed and the command-and-control link, whose latency makes operator commands staleClimbing, extending range, entering a geofenced areaLoiter or hover (rotorcraft), the lost-link procedure, or return to home only on a channel still trusted
Clinical closed-loop therapyContinuous glucose, pulse oximetry, blood pressure; age of the latest valid sample, signal quality, disagreement with a reference measurementIncreasing an infusion rate, a bolusRevert to a pre-set safe rate, or hand back to the patient or clinician; a full hold is not always safe
Grid and industrial controlField telemetry with quality codes, redundant transmitters, time-synchronised phasor data; stale values, bad quality codes, transmitter disagreementMoving a set-point away from its safe valueReturn set-points to safe values, or start a controlled shutdown through the existing safety function
AI agents using toolsTool and API results, retrieved documents, the agent's own context; stale results, failed calls, content that contradicts a trusted sourcePayments, sending messages, deploying code, changing infrastructureStop issuing calls that have side effects or could send data out, until a human reviews
Trading (first testbed)Prices, account and position reads from the broker; stale quotes, failed reads, venues disagreeingOpening or adding to a positionStop opening positions; reduce or close existing ones under a stated rule

Each domain already prescribes degraded-mode behaviour, and the paper builds on that practice rather than replacing it. Examples include safe states and fault-tolerant time intervals (ISO 26262), minimal risk conditions (SAE J3016, UL 4600) and performance insufficiencies (ISO 21448) in automated driving; behaviour on a detected fault and process safety time in industrial safety systems (IEC 61508, IEC 61511); integrity monitoring with protection levels and time to alert in satellite navigation (RTCA DO-229) and runtime assurance for aircraft systems with complex functions (ASTM F3269); fallback to a pre-set basal rate when glucose data is lost in automated insulin delivery; data-quality and alarm monitoring requirements introduced for grid operators after 2003 (NERC TOP-010); and guidance on prompt injection and excessive agency in the OWASP Top 10 for LLM Applications. Our question is whether these practices can be unified, and strengthened, by a guarantee indexed to measured degradation.

Two features recur. First, the response to degraded observation is usually asymmetric: block actions that add exposure while still allowing actions that reduce it. Which actions reduce exposure depends on the state, though. Stopping in a live lane, suspending insulin, or opening a breaker can each add risk, and some systems, such as an aircraft in flight, have no halt at all and must be designed to keep operating. Second, a halt is not instantaneous. A vehicle needs distance to stop, a drone needs energy to land, insulin already delivered keeps acting, and positions take time to close. Safety standards capture this as a fault-tolerant time interval or process safety time; any loss envelope has to include what accrues while the halt is being carried out.

5. Two open hypotheses

Each hypothesis is meant to resolve either to a theorem or to a precise characterisation of when no such theorem can hold. Both outcomes would be useful.

H1 · Degraded-mode loss envelope

Fix a plant class with a known bound on how fast the state can change (or, for plants that jump, a bound that holds with probability at least 1−ε), a loss function, an adversary assumption, and a maximum time Th for a halt to complete. Then there is a loss envelope B, a function of the worst measured degradation so far, and a halt rule, such that total realised loss, including loss during the halt, never exceeds B, where:

  • B is monotone in each component of the degradation and finite on a stated domain;
  • with no degradation, B reduces to the nominal bound of the undegraded system;
  • B is strictly tighter than the trivial bound given by total exposure;
  • with no degradation, the halt rule fires falsely at a rate no greater than a stated α, and it admits more activity than halting at the first sign of degradation.

Loss here is whatever the domain penalises. In trading it is money. In safety-critical domains the natural reading is a bound on the probability of violating a constraint, such as a safe separation or a physiological range, rather than on cumulative cost.

H2 · Calibration under self-censored feedback

An agent that abstains observes outcomes only for what it did, and the states it abstains in may be exactly those whose outcomes it most needs. Two cases are largely settled. On the rounds where it acted, the problem reduces to online calibration [20]. On all rounds, calibration cannot be identified unless the agent acts with some probability in every state [15]; learning from one-sided feedback of this kind has been studied as "apple tasting" [32]. The open question is what calibration guarantee holds for an agent that must also abstain for safety, under distribution shift, and at what rate.

Related work includes learning to defer [16], selective classification [17], conformal prediction [6] under covariate shift [18] and with censored outcomes [19]. How much censoring matters depends on the domain. In liquid markets the outcome of an abstained trade can often be replayed from prices; in clinical therapy or vehicle control, the outcome of an action not taken is rarely observable at all.

Neither hypothesis is established. Each may be false as stated, or true only under assumptions too strong to be useful.

6. Benchmark specification

Claims about assurance should be testable by people other than those making them. We are specifying a benchmark that runs on synthetic data regenerable from a seed, alongside replays of real outage traces from the testbed. It is specified, not yet released.

6.1 Plants

To test whether results depend on the domain, the benchmark starts with two plants under the same degradation model: a kinematic vehicle that must keep a safe separation from obstacles, with a bounded speed; and a price process with jumps, gaps and trading suspensions, with price impact when positions are unwound. Both expose the same interface: observations from several sources, actions classified as exposure-increasing or risk-reducing, and a halt that takes time to complete. Candidates for later plants are a slow, partly irreversible physiological model and an environment of tool-using software agents [33].

6.2 Degradation model

6.3 What the release will fix in advance

6.4 Baselines

The purpose is to show, on the same sweep and across plants, where each method's guarantee stops applying. Before release we will publish the benchmark's licence and contribution terms.

7. The first testbed

Synthetic sweeps are necessary but not sufficient; real degradation under real consequences is the expensive input. We test in markets first because degradation there is frequent and measurable, and its consequences are financial and bounded by configured loss limits. Our testbed is kora·trader, a trading application (web, with iOS and Android builds in testing) used by its author with personal capital and by a small invite-only beta. Every new position in a real-money account is opened only with human approval; automatic approval is built but disabled. Protective exits and loss-limit liquidations are automated. A separate paper (simulated) account runs an automated trading loop, and its decisions are logged separately. Markets gap, suspend trading, and report stale or conflicting prices in real time.

Telemetry collection began on 16 November 2026. It records every gate decision on an order or proposal path and every abstention (best effort), every failed feed read and a 10% sample of successful ones, and, for each decision, an outcome replayed from daily prices at one, five and seven days. Options outcomes are not yet scored. The volume so far is small.

What exists today is engineering, not the hypotheses above:

ComponentWhat it establishesWhat it does not
Safety specification of 37 propertiesA written statement of what the safety layer must doThat the code meets it
981 automated unit tests and 8 integration suites, run before releases (by hand; not yet enforced by the build)The code behaves as specified on the cases testedBehaviour on cases not tested
TLA+ models of the halt (kill) lifecycle, tenant isolation, risk-gate references, spread close and loss-limiter trust, checked with the TLC model checker and mechanically proved with the TLA+ proof system (six proof modules over five models, 2,148 proof obligations)The modelled halt-and-recovery logic satisfies its stated propertiesAnything about the running code, or H1 and H2
Hash-chained decision records with signed sealsTamper evidence for what the system recorded and whenThat the decisions were good, or attestation by a third party

Counts as of 24 November 2026. The proofs are about models of the logic, not the deployed code.

We have no data, deployments or partners in the other five domains. They are where we intend the method to be tested next, and the benchmark's vehicle plant is a first step towards that.

8. Limitations

9. Get involved

Contact: hello@kinfora.com

Glossary

Plant.
The system being controlled: a vehicle, a patient's therapy, a grid, a portfolio.
Halt.
The agent's own stop: no new exposure, with existing exposure reduced or held under a stated rule. Distinct from a market's trading suspension.
Exposure-increasing.
An action that moves the plant away from its safe state; its opposite is risk-reducing.
Loss envelope.
An upper bound on loss, here as a function of measured degradation.
Age of information.
How old the latest reading from a source is at a given moment.
TLA+, TLC.
A specification language for concurrent systems, and its model checker.

References

  1. L. Sha. Using simplicity to control complexity. IEEE Software, 18(4):20–28, 2001.
  2. M. Alshiekh, R. Bloem, R. Ehlers, B. Könighofer, S. Niekum, U. Topcu. Safe reinforcement learning via shielding. AAAI, 2018, pp. 2669–2678.
  3. A. D. Ames, S. Coogan, M. Egerstedt, G. Notomista, K. Sreenath, P. Tabuada. Control barrier functions: theory and applications. European Control Conference, 2019, pp. 3420–3431.
  4. H. Fawzi, P. Tabuada, S. Diggavi. Secure estimation and control for cyber-physical systems under adversarial attacks. IEEE Transactions on Automatic Control, 59(6):1454–1467, 2014.
  5. U.S. Securities and Exchange Commission. In the Matter of Knight Capital Americas LLC. Release No. 34-70694, Administrative Proceeding File No. 3-15570, 16 October 2013.
  6. V. Vovk, A. Gammerman, G. Shafer. Algorithmic Learning in a Random World. Springer, 2005 (2nd ed. 2022).
  7. I. Gibbs, E. Candès. Adaptive conformal inference under distribution shift. NeurIPS 34, 2021, pp. 1660–1672.
  8. S. Dean, A. J. Taylor, R. K. Cosner, B. Recht, A. D. Ames. Guaranteeing safety of learned perception modules via measurement-robust control barrier functions. CoRL, PMLR 155:654–670, 2020.
  9. R. K. Cosner, A. W. Singletary, A. J. Taylor, T. G. Molnar, K. L. Bouman, A. D. Ames. Measurement-robust control barrier functions: certainty in safety with uncertainty in state. IROS, 2021.
  10. D. Q. Mayne, S. V. Raković, R. Findeisen, F. Allgöwer. Robust output feedback model predictive control of constrained linear systems. Automatica, 42(7):1217–1222, 2006.
  11. A. Singletary, Y. Chen, A. D. Ames. Control barrier functions for sampled-data systems with input delays. IEEE CDC, 2020.
  12. B. Sinopoli, L. Schenato, M. Franceschetti, K. Poolla, M. I. Jordan, S. S. Sastry. Kalman filtering with intermittent observations. IEEE Transactions on Automatic Control, 49(9):1453–1464, 2004.
  13. S. Carr, N. Jansen, S. Junges, U. Topcu. Safe reinforcement learning via shielding under partial observability. AAAI, 37(12):14748–14756, 2023.
  14. A. Astorga, C. Hsieh, P. Madhusudan, S. Mitra. Perception contracts for safety of ML-enabled systems. Proceedings of the ACM on Programming Languages, 7(OOPSLA2):2196–2223, 2023.
  15. H. Lakkaraju, J. Kleinberg, J. Leskovec, J. Ludwig, S. Mullainathan. The selective labels problem: evaluating algorithmic predictions in the presence of unobservables. KDD, 2017.
  16. H. Mozannar, D. Sontag. Consistent estimators for learning to defer to an expert. ICML, 2020.
  17. Y. Geifman, R. El-Yaniv. Selective classification for deep neural networks. NeurIPS, 2017.
  18. R. J. Tibshirani, R. Foygel Barber, E. J. Candès, A. Ramdas. Conformal prediction under covariate shift. NeurIPS, 2019.
  19. E. Candès, L. Lei, Z. Ren. Conformalized survival analysis. Journal of the Royal Statistical Society Series B, 85(1):24–45, 2023.
  20. D. P. Foster, R. V. Vohra. Asymptotic calibration. Biometrika, 85(2):379–390, 1998.
  21. M. L. Psiaki, T. E. Humphreys. GNSS spoofing and detection. Proceedings of the IEEE, 104(6):1258–1270, 2016.
  22. U.S.–Canada Power System Outage Task Force. Final Report on the August 14, 2003 Blackout in the United States and Canada: Causes and Recommendations. April 2004.
  23. Komite Nasional Keselamatan Transportasi (KNKT). Aircraft Accident Investigation Report KNKT.18.10.35.04, PT. Lion Mentari Airlines, Boeing 737-8 (MAX), PK-LQP. 25 October 2019.
  24. National Transportation Safety Board. Collision Between Vehicle Controlled by Developmental Automated Driving System and Pedestrian, Tempe, Arizona, March 18, 2018. Highway Accident Report NTSB/HAR-19/03, adopted 19 November 2019.
  25. K. Greshake, S. Abdelnabi, S. Mishra, C. Endres, T. Holz, M. Fritz. Not what you've signed up for: compromising real-world LLM-integrated applications with indirect prompt injection. ACM Workshop on Artificial Intelligence and Security (AISec), 2023, pp. 79–90.
  26. S. Kolathaya, A. D. Ames. Input-to-state safety with control barrier functions. IEEE Control Systems Letters, 3(1):108–113, 2019.
  27. S. Kaul, R. Yates, M. Gruteser. Real-time status: how often should one update? IEEE INFOCOM, 2012.
  28. RTCA. DO-229, Minimum Operational Performance Standards for Global Positioning System/Satellite-Based Augmentation System Airborne Equipment.
  29. A. Dixit, L. Lindemann, S. X. Wei, M. Cleaveland, G. J. Pappas, J. W. Burdick. Adaptive conformal prediction for motion planning among dynamic agents. Learning for Dynamics and Control (L4DC), PMLR 211, 2023.
  30. C. Pek, S. Manzinger, M. Koschi, M. Althoff. Using online verification to prevent autonomous vehicles from causing accidents. Nature Machine Intelligence, 2:518–528, 2020.
  31. S. J. Grossman, Z. Zhou. Optimal investment strategies for controlling drawdowns. Mathematical Finance, 3(3):241–276, 1993.
  32. D. P. Helmbold, N. Littlestone, P. M. Long. Apple tasting. Information and Computation, 161(2):85–139, 2000.
  33. E. Debenedetti, J. Zhang, M. Balunović, L. Beurer-Kellner, M. Fischer, F. Tramèr. AgentDojo: a dynamic environment to evaluate prompt injection attacks and defenses for LLM agents. NeurIPS Datasets and Benchmarks, 2024.

Version history. 1.0 (24 November 2026): first release. 1.1 (24 November 2026), after internal review: related work added and the novelty claim narrowed; H1 given non-triviality conditions; the observability of spoofing corrected; Knight Capital figures corrected to the SEC order; the production incident given its date and cause; testbed, telemetry and verification figures corrected to the deployed system. 1.2 (24 November 2026), after a second review including domain safety engineers: reframed as domain-general with trading as the first testbed; existing degraded-mode practice in each domain credited; further related work added; H1 made more precise and H2 restated against what is already settled; the problem statement extended to several sources; the benchmark extended. 1.2.1 (24 November 2026): verification figures refreshed to the deployed system (981 unit tests, 8 integration suites; the loss-limiter trust model now also mechanically proved); no other change. 1.3 (30 November 2026): correction. The 16 November 2026 incident lasted about 65 minutes (14:39 to 15:44 Eastern time, from the application’s logs), not about 100 minutes as stated in versions 1.0 to 1.2.1; the count of 56 failed checks is unchanged. The web copy moved to https://kinfora.com/research. No other change. Archived on Zenodo: version 1.3 doi:10.5281/zenodo.24704961, version 1.2 doi:10.5281/zenodo.24510318; all versions: doi:10.5281/zenodo.24510317.

H1 and H2 are research hypotheses: not established, and possibly not provable as stated. The domain mappings are illustrative; no deployment outside trading is claimed, and nothing here describes a medical device or claims compliance with any domain standard. The mechanical proofs cover formal models of halt-and-recovery logic, not the running code and not any loss envelope; the code is checked by automated tests. The assurance method behind kora·trader is patent pending. kora·trader is software for self-directed traders; trading involves substantial risk of loss, including loss of principal, and no performance record is implied. This paper is not investment advice and not an offer of securities. © 2026 Kinfora LLC.