No record, no decision: evidence integrity and its cost under fail-open in agent policy decision pointsNo Decision Without a Record: Fail-Closed Evidence Completeness and Its Cost in an Agent Policy Decision Point
The authors measure the audit-record completeness of the Oathpost PDP: across 70 fault runs and 155,946 requests, no returned decision was found missing from the record, while the asynchronous commit control lost 7 returned decisions.
- A tamper-evident hash chain can still pass verification after losing its latest records, so the agent governance layer must also answer whether decision records are complete. The authors study record integrity, failure modes, and performance cost when the PDP itself and its dependencies fail.
- Oathpost PDP first durably commits the event to PostgreSQL's per-tenant hash chain, then returns the decision; on failure it returns HTTP 503. The client oracle reconciles by operation id and uses an asynchronous-commit positive control to test whether it can detect data loss accepted by chain verification.
- Across 70 runs and 155,946 requests, no integrity violations of the three types were observed, and 70/70 chains passed offline and system checks; the asynchronous-commit control lost 7 returned decisions across 5/5 runs. Among the SDK's 17,810 calls, fail-mode violations were 0.
- The experiments cover only one Windows laptop, single-node benign process-level faults, and the SDK path; power loss, faulty virtual disks, and malicious operators were not tested. The positive control covers only answer-recorded, with five repetitions per condition, and did not measure the common design of answering first and auditing asynchronously.
- Benchmarks
- Oathpost 0.1.0-dev policy decision point (PDP)PostgreSQL 16.15 with TimescaleDB 2.30.1Redis 7.4.9OPA 1.22.2
- Metrics
- answer recordedsingle recordno phantom recordchain intactfail mode honoureddecisions per secondp50/p99 latencyappend share
The authors measured the decision-record completeness under faults of one agent policy decision point, and among 13 classes of injected faults found no returned decision lost from the chain. The system first writes each tool-call decision to a tenant-isolated PostgreSQL hash chain before responding, and returns HTTP 503 if the write fails. Using a client-side verifier to compare each request against the chain, across 70 runs and 155,946 requests the authors found no returned decision missing, duplicated or without a request, whereas an asynchronous-commit control group lost 7 confirmed decisions in 5/5 runs while the hash chain still verified, showing that tamper-evidence is not completeness. Faults also left 287 unanswered and 4,548 late decision records, and the chain records decisions rather than execution; via the SDK under three fault classes, the fail-closed enforcement role had no calls missing an ALLOW record.
Related events and news
1 events · 0 news mentions
- This event's paper
智能体决策链在13类故障下未丢已返回记录
Paper analysis
What problem does this paper attempt to solve?
This study examines whether the agent PDP can maintain decision evidence integrity under dependency failures, and the cost of fail-closed guarantees.
The core question is: whether a tamper-evident agent decision log remains complete when the system fails, and what its guarantees cost.
- Problem setting: a governance layer decides whether each call between the agent and tools may execute, and records the decision and its authorization basis for operators to present to auditors, customers, or regulators. The authors use the EU AI Act's requirement for automatic event logging in high-risk systems to illustrate its importance.
- Existing gaps: hash chains and signed Merkle trees mainly detect tampering; a hash chain that loses its latest entries can still pass verification. The authors state that existing work has not reported measurements of record integrity at the decision point when its own dependencies fail.
- Core observation: if the PDP returns ALLOW first and then loses the record, the action executes without evidence; if a decision is recorded but not delivered, the chain lists actions that may not have executed. Thus "recorded" cannot be directly interpreted as "executed".
- Research approach: measure the Oathpost PDP, express integrity as five checkable properties, reconcile per request with a client oracle, and set up an asynchronous-commit positive control that must trigger an alert; experiments cover 13 fault types, SDK end-to-end failure modes, and cost.
- Faults and trust boundaries: this is not a malicious-attack experiment; the paper uses benign faults.
- Faults include component stop, freeze, network isolation, slowdown, or space exhaustion, injected one at a time on a single node.
- The PDP, database, and operator are assumed honest, the client is assumed to reliably record the replies it receives, and all governed calls are assumed to pass through the PDP.
- A malicious operator deleting events not covered by externally anchored checkpoints, and coverage issues of bypassing the governance layer, are out of scope (Section 4.2).
What related research exists?
Related work spans tamper-evident logs, durability testing, record-before-answer prototypes, and agent audit standards.
Tamper-evident and transparent logs
- Schneier and Kelsey (1999), Crosby and Wallach (2009), Ma and Tsudik (2009): respectively study hash-chain secure audit logs, a history tree supporting logarithmic membership proofs, and a compact forward-secure log; the latter named the truncation attack of deleting the latest entries.
- Certificate Transparency (RFC 6962, RFC 9162): provides Merkle trees and templates for audit and consistency proofs; signed certificate timestamps promise inclusion of entries within a maximum merge delay, with violations discovered by retrospective auditing. The authors note that these mechanisms do not make an action conditional on its record.
Durability, crash testing, and coverage measurement
- ARIES (1992) and research on crash consistency and database power loss: WAL is flushed to disk before commit is reported, and group commit shares flushes; related work discusses how "acknowledged" and "durable" can be separated. The Jepsen tradition and crash testers reconcile client-acknowledged operations with surviving state.
- guardscope (2026) and effect binding (2026): the former uses kernel-level ground truth to classify which actions runtime controls actually checked, bypassed, or blocked; the latter binds human approval to what is actually executed. This paper assumes coverage is complete and measures only records.
- Chaos engineering, network and service-level fault injection, and fail-slow research: provide a basis for faults such as partitions and slow databases; load generation uses an open-system model and avoids coordinated omission.
Record-before-answer agent evidence prototypes
- Beshane (2026): a single-writer prototype issues receipts stating whether a record is synchronous; in component benchmarks, buffered evidence reached 27,193 requests/s, while per-record synchronous operation reached about 242 requests/s with a median of 16 ms; no fault injection was performed.
- Tracekit (2026): provides fail-closed/fail-open by tool category and signed gap records, and has a crash oracle similar to this paper's; 30 rounds of kill -9 per mode lost no records, and the authors note that this test cannot cover the asynchronous flush window.
- Janus (2026) and Xu (2026): Janus persists proposals and verdicts before effect release and performs crash injection; Xu injects ten fault types into tool-action runtime, and the full configuration's throughput is about one-seventh that of fail-open.
Agent audit systems and standards
- NovaFabric, Soei, Agent Flight Recorder, etc.: respectively record replayable capsules, maintain an encoded agent session ledger, and guarantee the integrity of recorded events; the papers note that they test normal operation, declare a loss policy, or explicitly do not guarantee that all events reach the recorder.
- Envoy multi-vendor LLM gateway and OPA decision logs: the former states that observability fails open and reports that its initial asynchronous audit queue silently dropped data in production; the latter buffers in memory and uploads periodically, dropping the oldest events when the buffer limit is reached.
- IETF AUDIT draft: concerns record-before-execution, signed integrity claims, a fail-closed plane, durable consumption of approvals, and the boundaries of recording capability; EU AI Act provisions are used as regulatory background, and the authors do not claim that any design complies with that law.
Comparison and positioning: this paper does not measure the common design of "answer first, write the audit asynchronously" as a cost baseline, and compares only with the asynchronous-commit variant (Section 8.1). The authors position the difference as: faults enter the PDP itself and its dependencies, the oracle checks five properties per request on the multi-tenant chain, a positive control exposes loss accepted by chain verification, and the durable append cost is located within the running PDP.
How does the paper address this problem?
Measure integrity with a PDP that durably commits before answering, a five-property client oracle, and a controlled fault matrix.
The overall approach is to make the Oathpost PDP follow "no decision without a record": the reply is constructed only after the event is durably committed, and if it cannot be committed, HTTP 503 is returned; a client record outside the system then tests whether this ordering guarantee actually covers the fault window.
Decision path and evidence chain
- The SDK wraps tool functions and sends POST /v1/decide to the PDP on each call. The PDP checks the policy bundle version, reads Redis call state, reads the PostgreSQL tool registry, evaluates with both OPA and an in-process Python evaluator requiring per-rule agreement, then checks authorization, kill switch, approval, and budget.
- Step 6 appends and commits the audit event, and only step 7 constructs and sends the reply; failures along the path are converted to 503. OPA and Redis call timeouts are 1 s, and the SDK's actual deadline for waiting for a reply is 2 s.
- Each tenant has one hash chain, with the core definition hi = SHA−256(hi−1 ∥ JCS(ei)); JCS canonicalizes the event, and sequence numbers must also be consecutive. A scheduler periodically generates signed Merkle checkpoints, and the exported chain can be checked by a standalone verifier with no database access.
- Appending locks the chain_head row within a PostgreSQL transaction, checks the event id, computes the hash, inserts, advances the chain head, and commits. The row lock serializes appends for the same tenant, and the WAL flush occurs inside the lock; the default is synchronous_commit=on.
Five properties and permitted outcomes
- Answer recorded: when the client receives decision(e), the chain contains exactly one e with the same operation id and the same effective decision. Single record requires at most one decision event per request, and No phantom record requires every decision event to correspond to a request actually sent.
- Chain intact requires no gaps or duplicates in sequence numbers and correct hash links throughout. Fail mode honoured requires that enforce+closed calls run only after receiving a valid ALLOW; calls that ran under observe+open_with_alert must leave a decision event or gap marker.
- The design explicitly permits three outcomes: recorded but returned 503, recorded but the client did not receive a reply, and a reply later than 2 s. All occur after commit; the authors classify them as the safe direction under fail-closed, but emphasize that the chain records decisions, not execution.
Load, oracle, and fault injection
- The open-loop generator sends requests on a seeded Poisson timetable and measures latency from the scheduled send time, avoiding coordinated omission. Each request saves operation id, role, time, and result; fault runs do not resend, and responses are waited for up to 10 s.
- Each fault run drives a new tenant at 30 requests/s for 75 s, with the fault injected at 20 s and recovery at 40 s. Half the requests are valid enforce+closed calls and half are observe+open_with_alert violating calls; both roles have effective decision ALLOW under this load, so enforcing DENY was not exercised under faults.
- The 13 fault types cover PostgreSQL stop/kill/freeze, two network partitions, 50/250 ms latency per direction, evidence storage full, PDP killed three times, OPA kill/freeze, and Redis kill/freeze. Each type and the no-fault control are run five times, 70 runs total; repetitions are interleaved and the same seed timetable is used within a round.
- After the run the PDP is hard-killed, and the oracle reads the chain directly and reconciles by operation id. Chain integrity is checked three ways: the system's AuditStore.verify, a SQL sequence check, and a standalone verifier on the exported file; only if all pass is it considered clean.
Positive control, SDK, and cost measurement
- The positive control switches to synchronous_commit=off under PostgreSQL kill; if the oracle is effective, it should detect decisions that were returned but are not in the chain, while the chain still verifies.
- The SDK end-to-end experiment runs eight threads at a target of about 20 calls/s for 60 s, killing PostgreSQL, the PDP, or Redis at 20 s and restarting at 40 s; the tool body records whether it executed, which is then reconciled with the chain and the client gap journal.
- Cost experiments include an open-loop load sweep, a standalone AuditStore.append benchmark, an asynchronous-commit ablation, and a file-append scale reference. The load sweep reads Prometheus's append and POST /v1/decide durations, and append share includes chain-head lock wait.
- Each condition is typically repeated five times, reporting the median and [min–max]; integrity is an exact count. The authors explicitly do not use five repetitions to support claims of differences smaller than these ranges.
What experiments did the paper conduct?
The fault matrix and SDK experiments observed no integrity violations, but found late records, undelivered records, and a single-tenant throughput ceiling.
Experimental setup
- System under test: Oathpost 0.1.0-dev, one uvicorn worker; PostgreSQL 16.15/TimescaleDB 2.30.1, Redis 7.4.9, OPA 1.22.2. All run over loopback on a single Windows 11 laptop with an Intel Core i9-14900HX and 16 GB RAM, without TLS.
- Fault matrix: 13 fault types plus a no-fault control, five times per condition, 75 s each, 30 requests/s, totaling 70 runs and 155,946 requests; 125,112 received a decision, 29,166 received 503, and 1,668 had no answer (Table 7).
- Determination method: No LLM judging. The oracle checks answer recorded, single record and no phantom record exactly by operation id; the system, SQL and offline verifiers check chain intact.
- SDK experiment: Four conditions—no fault, PostgreSQL killed, PDP killed once, Redis killed—five times each, 60 s each, totaling 20 runs and 17,810 calls; fail mode honoured is determined from tool execution logs, the chain and the gap journal.
- Cost experiment: Four load sweeps—single-tenant enforcing durable/asynchronous, observing durable, and four-tenant 100 agents; the standalone append benchmark and the file-append reference are each repeated five times per Table 3.
- Statistical conventions: Repeated quantities are reported as median [min–max]; completeness is an exact count. The authors state that "0 violations" means only that none were observed in these runs, not a probabilistic guarantee.
Main results
Swipe horizontally to read the table
Condition (5 runs each) Violations Refused, recorded No answer, recorded Answered late Chains ok system/offline No fault 0 0 0 0 5/5; 5/5 PostgreSQL killed 0 1 0 221 5/5; 5/5 Network partition, healed 0 0 45 177 5/5; 5/5 Slow PostgreSQL (+50 ms) 0 0 149 316 5/5; 5/5 PDP killed (3 times) 0 0 4 833 5/5; 5/5 Redis killed 0 0 0 1,092 5/5; 5/5 Redis frozen 0 0 0 1,090 5/5; 5/5 All 70 runs 0 1 287 4,548 70/70; 70/70 According to Table 8; to control length, six rows are omitted—PostgreSQL stopped/frozen, partition reset, +250 ms, storage full, OPA killed/frozen—and the Violations for these rows are also all 0.
- Completeness results: Across 70 runs, missing records for returned decisions, multiple decision events for the same request, and decision events with no corresponding request were all 0; all chains passed the three completeness checks.
- Permitted imperfection: The 4,548 late decisions account for 3.6% of all decisions; the 287 requests with no answer that were recorded account for 17% of all requests with no answer. The authors say these are in the safe direction, but mean auditors cannot read recorded as ran.
- Recovery and baseline: The median recovery time was 1 s in every condition, with PostgreSQL stopped/killed slowest at 5 s. In the no-fault control, 11,139/11,139 requests received a decision, with a median p50 of 32 ms and a median p99 of 245 ms.
Positive control: can the oracle see losses that chain verification accepts
- Method and results: PostgreSQL killed combined with asynchronous commit found 7 decisions that were returned but missing from the chain across five runs, at least one per run; these replies occurred from 2 ms before to 75 ms after the kill command.
- Chains still pass: The chains still verified in 5/5 asynchronous runs; the losses occurred in 5/5 asynchronous runs and 0/5 durable runs. The authors report a one-sided Fisher exact test by run, p = 1/252 ≈ 0.004.
- Authors' interpretation: answer-recorded depends not only on the order of commit before reply but also on the commit being durable when it returns; this control tests only answer-recorded, and the other properties have no positive control.
SDK end-to-end failure modes
- Overall results: Across 17,810 calls, fail-mode violations were 0; no enforcing+closed call ran without exactly one recorded ALLOW, and all observing calls that ran had either a decision event or an UNGOVERNED_ACTION marker (Table 10).
- Refused but recorded: Under PostgreSQL killed, enforce+closed had 2,183 calls in total, 1,984 ran and all had events, 199 were refused, and 1 of the refused calls had an event.
- Duplicate accounting: Under Redis killed, all 1,989 observe+open calls that ran had events, 65 had a gap marker, and these 65 had both. The authors explain this as the PDP's degraded decision exceeding the SDK's 2 s deadline, with the client having already executed under open_with_alert and written a marker.
Cost, scaling and slow database
- Single-tenant cost: enforcing durable at offered 20/s completed 19.6/s, with p50 28 ms, p99 57 ms, append 12.9 ms and append share 45% (all medians from Table 12). At p99≤500 ms the highest throughput was 58.5 decisions/s, with a five-run range of 19.4–63.9.
- In-lock cost: In the standalone append benchmark, 1 writer/1 chain was 56 appends/s, 16 writers/1 chain was 77, and 16 writers/16 chains was 215 (Table 11). From the single-chain ceiling the authors infer a lock hold of about 13.0 ms, of which WAL flush is about 2.5 ms; the four round trips of about 4.5 ms are modelled, and the remaining about 6.0 ms was not separately timed.
- Multi-tenant and exceptions: Four tenants at offered 320/s completed 273.6/s, and a single tenant at offered 100/s completed 87.5/s, a ratio the authors put at about 3.1. The four-tenant p99 does not vary monotonically with load; in five runs the p99 at 80/s and 160/s was worse than at 240/s, for unknown reasons; only 3/5 repetitions had a step with p99≤500 ms.
- Slow database: Adding 100 ms per round trip within the fault window delivered 1.09 decisions/s, and adding 500 ms delivered 0.12/s, both at offered 30/s. The per-tenant ceilings of about 2.5 and 0.5 appends/s given by the authors are modelled from the code, not directly measured.
Other ablations and analyses
- Asynchronous commit: Low-load append dropped from 12.9 ms to 10.5 ms; throughput at p99≤500 ms was 59.6 decisions/s, within the range of the durable cell (Section 6.3.3).
- Load-sweep chain checks: Including steps beyond the saturation point, 35/35 chains verified (Section 6.3.3).
- File-append reference: Writing the same event to a local JSON line, the median latency without flush, with flush, and with flush+fsync was 0.001, 0.007 and 0.09 ms respectively; the authors stress that it has no chain, ordering, idempotency or query path, and is not a baseline.
- Idempotency code check: From reading the code, the authors believe that retrying after a 503 caused by a lost commit acknowledgement can still produce a second record; this trigger occurred once during the runs, but the retry result was not observed in the experiments (Section 7.3).
What are some points that can be further explored?
The authors list limitations including single machine, benign faults, oracle trust, and statistical power, and plan independent reproduction and reducing in-lock cost.
Limitations noted by the authors and future directions
- Single-machine environment: All components were on one Windows laptop also used for other work, with the database in a virtual machine, and no real network, TLS or separate database host. The authors recommend rerunning the fault matrix on Linux with the database deployed separately (Section 8.1).
- Scope of faults and durability: Only single-node, one-at-a-time benign faults and database process stops were tested; power loss, faulty virtual disks and malicious operators were not tested. Future directions are externally anchoring the chain head and adding storage-level fault injection (Section 8.1).
- Paths and workloads: Only the SDK decision path was driven, with one PDP worker, one tenant per fault run, 30 requests/s and a single 20 s fault; no enforcing DENY was produced, failure modes were tested under only three faults, and the gap journal was not tested for client crashes. The authors list MCP gateway, egress, multiple workers, combined faults, DENY/approval and client crashes as extension directions (Section 8.1).
- Oracle credibility: The positive control covers only answer-recorded; the authors built both the system and the oracle, the oracle trusts client records and the stored operation id, and the archive does not save chain rows. The authors recommend adding mutation controls for the remaining properties, saving chain exports, and independent reproduction (Section 8.1).
- Statistical power: Five repetitions per condition, zero violations means only not observed, tail latency can differ by an order of magnitude between repetitions, and the four-tenant p99 is non-monotonic and undiagnosed. The authors recommend more repetitions, a quiet machine, confidence intervals and tail diagnostics (Section 8.1).
- Lack of a cost baseline and version gaps: The common design of answering first and recording the audit asynchronously was not measured; the tested version also lacks deadline propagation and in-transaction idempotency. Follow-up includes testing the asynchronous audit design under the same faults, rerunning on a new version, and measuring single round-trip append, group commit, deadline propagation and gap-marker linking (Sections 7.5, 8.1, 8.2).
Scope of experimental coverage
- The fault matrix is 13 fault types plus a no-fault control, five times per condition, totaling 70 runs and 155,946 requests; faults occur one at a time, on a single node (Sections 5.5, 6.1).
- SDK failure modes cover PostgreSQL killed, PDP killed once, Redis killed and no fault, totaling 20 runs and 17,810 calls; enforcing DENY did not occur in the fault workloads (Sections 5.5, 6.2).
- Cost measurements cover single-tenant and four-tenant, durable/asynchronous commit, standalone append and the file-append reference; all latency and throughput numbers come from the same laptop (Sections 5.2, 5.8).
- The archive allows rechecking counts and verdicts, but cannot rehash events because chain rows were not saved; the Oathpost source code is planned to be released under Apache-2.0 at first public release (Sections 9.4, 9.5).
Summarize the main content of the paper
A single-machine fault-injection measurement: recording before responding keeps returned decisions auditable, but the chain is not equal to an execution log.
This is a systematic measurement of evidence for agent runtime governance, studying the PDP of Oathpost 0.1.0-dev, rather than proposing a new hash chain or commit mechanism.
- Problem: Tamper resistance is not the same as completeness; a hash chain that loses tail events can still verify. The authors examine whether, when the PDP and its database, network, storage, policy engine and cache fail, every returned decision has exactly one record, and whether fail-closed holds end to end.
- Method: The PDP replies only after durably committing the event to the PostgreSQL tenant hash chain, otherwise it returns 503. A client oracle reconciles five properties by operation id, and uses asynchronous commit to construct a positive control that must detect loss.
- Completeness: Across 70 runs and 155,946 requests, missing records for returned decisions, duplicate decision records and records with no request were all 0, and 70/70 chains passed system and offline checks (Tables 7, 8). The authors limit this to no violations observed under the faults tested.
- Control and boundaries: A PostgreSQL crash with asynchronous commit lost 7 returned decisions across 5/5 runs, while the chains still all verified; additionally, 287 requests with no answer were recorded and 4,548 decisions were later than 2 s, showing that the chain lists decisions rather than executions.
- End to end and cost: Across 17,810 SDK calls under four conditions, fail-mode violations were 0, but under a Redis crash 65 observing calls had both an event and a gap marker. Single-tenant enforcing durable at p99≤500 ms had a median throughput of 58.5 decisions/s, and under low load append accounted for 45% of server time.
- Authors' conclusion: The cost of the guarantee lies in the row lock held by per-tenant serial appends, mainly comprising database round trips, client work and durable commit. The authors recommend configuring the enforcing role as closed, keeping synchronous commit, planning capacity per tenant, and checking completeness from the client; follow-up priorities are reducing work inside the lock, propagating deadlines, fixing in-transaction idempotency and independent reproduction.
Research lineage
5 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.