Estimating agent actions that no log records: six conditions for capture-recapture on incomplete logsEstimating the agent actions that no log recorded: six conditions for capture-recapture over incomplete logs
The authors use capture-recapture to estimate the number of actions missed by agent logs and propose six conditions for applicability; in the study 5 main condition, ll_sa_hom covers 269/277 runs.
- Tamper-evident logs can only prove that records were not modified, not that actions were not missed. The authors study whether, without a trusted counter and with multiple logs each incomplete, it is possible to estimate the number of agent actions missed by all logs.
- The authors use capture-recapture to estimate unobserved actions from overlap across multiple logs, and test this with five preregistered studies. study 5 evaluates ll_sa_hom on an experimental rig with real telemetry loss, and finally distills six conditions that must be confirmed through deployment design review.
- In the study 5 main condition, the 95% interval for ll_sa_hom covers 269/277 retained runs; counting the 23 integrity exclusions as not covered gives 269/300, and the conclusion is “not shown.” The simulation experiments also report failures under inexact matching, channels not recorded item by item, action-correlated loss, and block loss.
- The authors note that study 5 has only one experimental setup, runs share sessions, and there is no one who deliberately deletes or alters records; sessions come from two model families and are replayed. Studies 1–4 use post hoc simulated loss, and the repair analysis is post hoc.
- Metrics
- coverage of the 95% intervalmean interval widthmedian absolute errormean signed error
The paper proposes that auditing of agents starts from logs; tamper-evident evidence can only prove that logs were not modified, not that they are complete; when there is no trusted counter to tally actions item by item, capture-recapture can be used on multiple incomplete logs to estimate the number of actions that all logs missed. Five preregistered studies determine when this estimate is trustworthy: on a real setup with two uncoordinated initiators, a telemetry relay that is killed and restarted, and no simulated loss, the prespecified estimator included the true count in its 95% interval in 269 of 277 runs under the main condition (Wilson 0.944–0.985, meeting the registration criterion), and 23 of the 300 planned runs were excluded for integrity. Four studies that simulated loss on recorded agent turns show how the estimate fails with no indication in the output: imprecise record linkage (coverage 0.893 vs. threshold 0.90), a channel with no item-by-item logging (0.759), action-correlated loss in post hoc analysis (0.187), and block loss (0.559).
Related events and news
1 events · 0 news mentions
- This event's paper
论文:用捕获-再捕获估算日志漏记的智能体动作
Paper analysis
What problem does this paper attempt to solve?
Studies how to estimate the number of actions missed by all agent logs when there is no trusted counter, and the conditions under which this applies.
The core question is: when multiple logs are all incomplete and there is no trusted counter, can the number of actions that all agent logs fail to record be estimated, and can it be determined when the estimate is trustworthy?
- Audit gap: The authors note that hash chains, Merkle commitments, and trusted execution target log integrity, i.e., whether records have been modified; records that were never written leave no gap in the chain, so log completeness cannot be confirmed on that basis.
- Real-world sources: The authors cite research on agents deleting their own trace events and note that ordinary telemetry also loses records without an adversary. When multiple action sources share no numbering and each component independently loses records, the missed actions form a hidden population.
- Core idea: Use capture-recapture to estimate the units that no one recorded, based on the overlap among multiple incomplete logs; known risks are dependence between logs, record matching errors, and invisible channels, among other model assumptions that may not hold.
- Paper outputs: Five preregistered studies, including study 5 on real telemetry loss and four simulated-loss studies; compares ll_bic, ll_sa_hom, a sequence-gap baseline, and three model-free floors, and distills six deployment design conditions.
- Preconditions for the estimate to hold: This is not an attack or defense method and sets no attacker goals, knowledge, or control capability. Study 5 explicitly has no one who deliberately deletes or modifies records; studies 1–4 include only benign agents and one adversary prompt that the authors call weak.
What related research exists?
Related work covers tamper-evident logs, capture-recapture, software and model output estimation, and other dependence assumptions.
Tamper-evidence and log integrity
- Bindschaedler et al. (2026): hash chains and Merkle commitments are used to detect log edits; Grigor et al. (2025) provide integrity with trusted execution and notarised TLS.
- Haeberlen et al. (2007): PeerReview has witnesses replay tamper-evident logs. The paper distinguishes this line of work from the question of whether a log is complete.
- Qin et al. (2026): studies LLM agents tampering with their own traces; the paper notes this work does not estimate missing content.
Capture-recapture and its known failures
- Bird and King (2018), Fienberg (1972): multiple-systems estimation estimates a hidden population from overlap of incomplete lists; with two lists it is Lincoln–Petersen, and Chapman (1951) corrects small counts.
- Eick et al. (1992), Petersson et al. (2004): list dependence in software inspection is where the method fails; Chao (1987) discusses classical estimators undercounting when individual capture probabilities differ.
- Aleshin-Guendel et al. (2024): without identification assumptions that the data cannot test, the population count is not identifiable; this paper makes assumptions by omitting the highest-order interaction in a log-linear model.
Software, event logs, and model outputs
- Hirashima (2026): VSAT treats multiple LLM security-audit perspectives as capture occasions to estimate Web application audit completeness.
- Yang et al. (2012): uses species estimators to estimate process mining event-log completeness; Kansal (2026) applies capture-recapture to counting label errors of LLM judges, and the resulting intervals are too wide to improve on the raw count.
- The paper states these works count kinds of findings, traces, or errors, respectively, rather than actions an agent executed but the log did not retain.
Other dependence assumptions and contrast with this paper
- Manrique-Vallier (2016): Bayesian population estimation with Dirichlet process mixtures; Sun et al. (2023) construct dependence-robust intervals using list-dependence upper bounds, returning sets rather than point estimates.
- Dulce Rubio and Kennedy (2024): assume lists are "not arbitrarily dependent" in the portion missed by other lists. None of these are the estimators registered in this paper, and the paper does not report their estimates.
- Experimental baselines: study 5 uses seq_gap_tail, seq_gap, and trust_trace, union_count, union_bound; Table 1 additionally lists a tail-corrected sequence counter. Data come from back-office, the infra queue, and the study 5 live rig, not external benchmarks.
The authors position the paper as applying capture-recapture to counting actions missed by agent logs, and using preregistered experiments to give both recoverable cases and silent failure conditions.
How does the paper address this problem?
Estimates unobserved actions from overlap across multiple logs, tests coverage with preregistered experiments, and distills six design-review conditions.
The overall approach is to cross-classify actions by whether each witness records them, use capture-recapture to estimate the empty cells, and then check 95% interval coverage against the true count N. The registered estimator for study 5 is ll_sa_hom, and the focus is not only on giving a point estimate but on giving an interval that allows block loss.
Actions, ground truth, and logs
- Action definition: A tool call that changes environment state or sends data outward; the environment kernel appends one ledger entry per action, and the ground truth N is program output, read by neither the witnesses nor the estimator.
- Witness and channel: A witness is a log that records only some actions; channels include direct tool calls and batch tools that perform multiple operations in one call. A log records channels item by item, meaning each action within them has a separate record.
- Scoring criteria: Coverage is the proportion of replicates or runs whose 95% interval contains N; the threshold for each registration is 0.90, frozen before the runs it governs. Results outside a registration are labeled post hoc.
Estimators and comparisons
- Studies 1–4: ll_bic fits Poisson log-linear models to the three-log table, uses BIC to select pairwise interactions, excludes third-order interactions, and uses a 95% profile-likelihood interval.
- Study 5 point estimate: Any telemetry (spans or access) together with end state forms two lists, N̂=n+ẑ0, ẑ0=(yE(yS+yA+ySA))/(ySE+yAE+ySAE); that is, the number of observed actions plus the estimated number of actions that no one recorded.
- Interval model: log μh=β0+βSsh+βAah+βEeh+βSAshah; allows spans and access to be missed together, and assumes end state is independent of both being missed. The interval uses profile likelihood and scales the cutoff by the Pearson homogeneity dispersion of the session and plane tables, with dispersion no less than 1.
- Search and unbounded cases: The search upper limit is 20n; cases such as no overlap across lists, a point estimate exceeding the limit, or fitting failure may return no point or upper bound. Under the registration rules, an interval with no upper bound still counts as coverage unless its lower bound is above the true value.
Design of the five studies
- Common setup: Studies 1–4 run agents in back-office and infra queues, with witnesses being the harness trace, the gateway proxy log, and the end-of-shift environment state diff (including outbound mail). The original logs are complete, and rows are then simulated as dropped according to a loss model and loss seed.
- Record matching: Examines matching by effect, by the call id written by the harness, and by the exact ledger id that the auditor actually does not have. A cell is a combination of one environment, one loss, and one linkage.
- Study 5 setup: Two originators replay sessions via MCP and share no counter; plane A goes through agentgateway, and plane B connects directly to the MCP front. Each plane has three witnesses—spans, access, and env—and only the two relays and the originators are terminated.
- Run procedure: Each run draws 24 sessions without replacement from a pool of 72 sessions, with start times spread over 100 s. 420 runs are planned: 60 for s0, 300 for s1, and 60 for s2; s1 terminates both relays, starts at a random time within 8–90 s, and restarts after 15–45 s.
Criteria, integrity, and six conditions
- P1/P2/Q3: P1 requires that the Wilson 95% lower bound for s1 retained runs be at least 0.90 and that the proportion of unbounded intervals be below 0.05; P2 requires that the one-sided 97.5% exact lower bound for the point estimate being strictly closer to the true value be above 0.5, with ties counted as failure. Q3 removes end state and predicts failure.
- Prerequisite thresholds: Fewer than 270 s1 retained runs is underpowered; an average proportion of actions with no log below 0.02, or telemetry missing below 0.01 of plane actions, is not exercised.
- Integrity exclusions: Before testing, runs are excluded by rules such as stress events, service state, missing logs, call latency over 0.25 s, and clock skew over 0.5 s, and are not rerun. The registration also reports coverage counting planned runs that did not enter testing as not covered.
- Six conditions: No readable counter; records match exactly; each channel is recorded item by item by at least two logs and logs are not lost in whole batches; one witness of a different kind; the jointly missed portion is as visible to that witness as the remaining actions; the interval allows block loss. The authors emphasize that these conditions are judged by deployment design review and cannot be read off the estimator output.
What experiments did the paper conduct?
Five studies test coverage, point error, and failure modes under real and simulated loss; the main-condition registered criteria pass.
Experimental Setup
- Models under test: studies 1–4 use deepseek-v4.1-flash, study 4 additionally uses qwen3.8-flash; study 5 sessions come from deepseek-v4-1-flash-1017 and zai-glm-5-3, with 72 sessions each in the ds, glm, and mix pools.
- Data and environments: back-office, the infra queue, and a back-office variant with a batch tool; study 5 is a two-plane live rig. The paper does not call these environments external public benchmarks.
- Estimators and baselines: ll_bic, ll_sa_hom, chapman_sa, chapman_te, etc.; baselines are seq_gap_tail, seq_gap, and sequence counter, and floors are trust_trace, union_count, union_bound.
- Metrics: 95% interval coverage, interval width, point-estimate median absolute error and mean signed error; ground truth comes from the kernel ledger. There is no LLM judge or human rating.
- Replication scale: in the registered cells of Table 1, studies 1 and 2 each have 100 replicates, studies 3 and 4 have 3000 across 30 loss seeds; post hoc lower blocks have 500 per row. study 5 planned 420 runs, with 386 remaining after integrity checks.
- Main-condition sample: s1 planned 300 runs, 277 after excluding 23; each run has 316–353 actions. The analysis was executed once after all runs completed and the folder hash was submitted.
Main Results
The registered method, baselines, and floors for study 5 condition s1 are as follows; the coverage denominator is the 277 retained runs, per Table 4.
Swipe horizontally to read the table
Method Role Covered runs Wilson 95% Unbounded count Median absolute error (actions) ll_sa_hom primary 269 0.944 to 0.985 0 3.9 ll_bic_hom beside it 262 0.913 to 0.967 2 4.2 ll_average beside it 266 0.930 to 0.978 38 4.0 strat_bic beside it 255 0.883 to 0.947 10 4.0 chapman_te beside it 250 0.862 to 0.932 0 4.0 ll_bic beside it 237 0.809 to 0.892 2 4.2 chapman_sa (no end state) Q3 10 0.020 to 0.065 0 50.7 seq_gap_tail baseline 34 0.089 to 0.167 0 14.3 - Registered verdict: both clauses of P1 for ll_sa_hom pass; counting the 23 excluded runs as not covered gives 269/300, Wilson 0.857 to 0.926, crossing the 0.90 threshold, read as "not shown". post hoc scoring the 20 excluded runs that retained complete records as-is gives 288/300, Wilson 0.931 to 0.977.
- Point-estimate comparison: P2 passes against both baselines; ll_sa_hom is closer to ground truth than seq_gap_tail in 223 runs, exact lower bound 0.753; against union_count it is 261 runs with 3 ties, lower bound 0.908. The authors note the latter mainly shows the increment is of the right order of magnitude, and the comparison with seq_gap_tail also involves whether the end state can be seen.
- Other conditions: s0 retains 58 runs, ll_sa_hom covers 58; s2 retains 51 runs, covers 49, Wilson 0.868 to 0.989, neither has a criterion. In s2 the point estimate beats union_count in only 25/51 runs, with 15 ties.
Record Matching and Channel Failures
- Inexact linkage: study 1 back-office with effect matching has coverage 0.940 on registered seeds, but 0.893 ± 0.006 on 30 new loss seeds; study 2 infra registered cell is 0.300, and 0.401 on 20 seeds. Using ledger id instead gives 0.948 and 0.946 respectively.
- id is not a sufficient guarantee: post hoc using call id gives 0.946 for back-office and 0.859 for infra; the authors explain this as the end-state diff not carrying an id. When one in twenty records is duplicated in all three logs, coverage is 0.094; when one in twenty is forged in all three, it is 0.000.
- batch not recorded item by item: in study 3, 0.856 of the agent's 1283 actions went through the batch tool, and the registered cell coverage is 0.759; the reference pool without the batch tool is 0.946. The estimator still reports a gap in 0.995 replicates, so detecting a gap cannot show whether the channel is invisible.
Loss Structure and Interval Repair
- Action-correlated loss: adding loss for operations invisible to the end-state diff gives coverage 0.647 and 0.187 at one-tenth and one-fifth added, respectively; higher doses are 0.303, 0.517, 0.857, 0.907 in order, 300 replicates per dose. Table 1 reports 0.254 for the one-fifth dose on another set of seeds with 500 replicates.
- Block loss: when 12 consecutive actions are lost together, back-office coverage is 0.559 over 2000 replicates and infra is 0.802; a second set of seeds gives 0.566 and 0.795, and back-office on the third set of seeds in Table 1 is 0.574.
- Widening intervals: after widening by between-episode dispersion, back-office is 0.952 and infra 0.994 in the interval comparison, with widths 2.5 to 3 times the original; the longer-episodes pool is 0.894. For the case where the loss rate is shared across all episodes, the widened intervals give only 0.495 and 0.174 for back-office and infra, respectively.
Other Ablations and Analyses
- study 4 whole-batch loss: after script parsing, whole-batch row loss gives coverage 0.469, item-by-item loss gives 0.952; under the adversary prompt it is 0.610 versus 0.940, and for the second model 0.335 versus 0.941.
- sequence counter: in Table 1, per-record loss coverage is 0.944, heavier loss on invisible operations is 0.952; block loss is 0.000, and 5% of actions bypassing the gateway gives 0.002.
- chapman_te: the point estimate beats seq_gap_tail in 224 runs, versus 223 for ll_sa_hom; its median absolute error is 4.0, versus 3.9 for ll_sa_hom. The authors state the registered estimator adds coverage over the ordinary Chapman interval at the cost of wider intervals.
- anchor_bounds: post hoc at Γ=1, 1.25, 1.5, 2 covers 250, 263, 271, 271 runs respectively; the Γ values were chosen after seeing the results.
- Run dependence: the estimated session-related variance share is 0.063, permutation p=0.244, and with design effect 2.92 the Wilson lower bound is 0.915; its approximate upper limit 7.51 exceeds the 4.05 the interval can tolerate, and the authors state this can neither show dependence nor rule out dependence large enough to affect the conclusions.
- s0 anomaly: s5-s0-021 has no log loss, but ll_sa_hom does not converge and returns no point and no upper bound; per the registered rule it counts as covered. The authors state that an estimator returning nothing on a complete log is defective, and the post hoc fix does not regenerate the registered artifacts, so the verdict is unchanged.
What are some points that can be further explored?
The authors list limitations including a single setup, shared sessions, no adversary, and simulated loss, and propose the next research need.
Limitations and Future Directions Noted by the Authors
- Single experimental rig: §8 notes that study 5 has only one rig, one layout, and one outage shape per condition; runs last 113–133 s with only one outage, so it cannot give a general map or a deployment loss rate.
- Coverage level and exclusions: §8 notes the 0.90 threshold is five percentage points below the interval's nominal level, so 95% coverage is not shown; the registered result is based on 277 of 300 planned runs, with 23 excluded.
- Runs share sessions: §8 notes the coverage bound treats runs as independent, while the post hoc dependence estimate is too wide to settle the matter.
- No deliberate adversary: §8 notes study 5 has no one deliberately deleting or modifying records; if the process hosting the client library were hostile, it could write link ids itself. studies 1–4 have only benign agents and one weak adversary prompt.
- Replay and plane pooling: §8 notes sessions come from two model families from the same provider and are replayed by clock, without modeling how models react to lost replies; all study 5 conclusions are conditional on the 216 recorded sessions. When summing the two planes, if loss or hiding differs, the pooled estimate is biased and unchecked.
- Simulated loss and design choices: §8 notes studies 1–4's loss is simulated post hoc and the fixes are post hoc; the task-mix weights were set by the authors to hide about two-fifths of actions, the estimator and main condition were chosen after a pilot on the same rig, and no multiplicity correction was made. §9 proposes that the next study needs non-shared sessions, independently failing relays, conditions where end-state hiding depends on log loss, and a second rig.
Scope of Experiments
- Model sources: studies 1–4 use deepseek-v4.1-flash, study 4 additionally uses qwen3.8-flash; study 5 uses the 216 sessions recorded from deepseek-v4-1-flash-1017 and zai-glm-5-3.
- Real-loss runs: study 5 completed 420 planned runs, with 34 integrity exclusions; s0, s1, s2 retain 58, 277, 51 respectively, with 24 sessions drawn per run.
- Simulated-loss scope: Table 1 covers per-record, unseen operations, 12-action blocks, three-log shared session quality, 5% bypassing the gateway, and effect, call id, ledger id linkage.
- Interval comparison: study 5's Table 4 reports the registered estimator, seven side-by-side estimators, the no-end-state estimator, two sequence baselines, and three floors; s0 and s2 results have no criterion.
- Not reported: the paper reports no human annotation or human agreement; §8 states which outage lengths, pools, or loss amounts it is valid or invalid under cannot be determined from this study, and the registration forbids conclusions along these dimensions.
Summarize the main content of the paper
The paper uses five preregistered studies to delineate the feasible conditions and silent failure modes of estimating the number of missed actions from multiple logs.
This is an empirical methods study on the completeness of agent audit logs: when multiple logs may each miss records and there is no trusted counter, capture-recapture is used to estimate the number of actions missed by all logs together, and to examine when the estimate fails.
- Method core: actions are cross-classified by their capture history across witnesses such as spans, access, and end state. study 5's ll_sa_hom uses the two-list estimate from telemetry and end state as the point, and widens the profile-likelihood interval by dispersion across sessions and planes.
- Real-loss results: in study 5's s1, two telemetry relays are terminated before restart at the same time; ll_sa_hom covers 269 of the 277 retained runs, Wilson 0.944 to 0.985, and registered P1 passes; no interval is unbounded.
- Exclusion sensitivity: counting the 23 integrity exclusions as not covered gives 269/300, the Wilson interval crosses the 0.90 threshold, and the verdict is "not shown"; post hoc scoring the 20 excluded runs that retained complete records gives 288/300.
- Role of witnesses: the point estimate is closer to ground truth than seq_gap_tail in 223/277 runs; chapman_sa using only spans and access covers only 10/277 runs, and the authors use this to stress that end state is an important source of counting signal.
- Failure conditions: effect matching gives coverage 0.893 on 30 new seeds; with no log recording the batch tool item by item it is 0.759; a specific dose of action-correlated loss gives 0.187; 12-action block loss gives 0.559. The authors state these failures can leave no signal in the estimator output.
- Authors' conclusion: usability depends on six deployment properties, including exact linkage, item-by-item channel recording, different kinds of witnesses, visibility of the jointly missed portion, and block-loss intervals; these require design review and cannot be self-checked from the estimate. The authors also stress boundaries including a single rig, shared sessions, replay, no study 5 adversary, and simulated loss.
Research lineage
2 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.