project

BayesAudit

Budget-Constrained Oversight for Hierarchical LLM Workflows

result144 confirmatory and held-out trajectories across 36 matched quartets, three constraint domains, and 1,945 passing tests.

BayesAudit is a reproducible Python research framework for studying budget-constrained oversight in hierarchical LLM workflows. It combines hierarchical workflow simulation, strategic attackers, rule-based and Bayesian monitoring, objective violation scoring, provider-cost controls, and matched experimental studies.

When exhaustive review is too expensive, which steps should a monitor inspect, interrupt, or escalate?

v1.0.0 released 144 trajectories 36 matched quartets 3 constraint domains 1,945 tests passing research prototype, not a production safety system

Visual snapshot

confirmatory and held-out trajectories
144
matched experimental quartets
36
constraint domains
3
passing automated tests
1,945

Problem

Hierarchical LLM systems can delegate work across multiple agents and tool calls, making exhaustive inspection expensive. A useful monitor must decide not only whether a workflow is risky, but when the expected benefit of inspection justifies its cost.

BayesAudit treats oversight as a sequential decision problem. A policy receives observable risk signals, operates under a fixed audit budget, and chooses whether to continue, inspect, escalate, or intervene.

Approach

The framework evaluates single-agent, unstructured delegation, structured constraint inheritance, and verified-inheritance workflows under matched safe and attacked conditions.

The project uses synthetic, sandboxed tasks and objective scorers so monitoring policies can be compared under controlled budgets without presenting the result as a production AI safety system.

System overview

Scenario to hierarchical workflow to constraint inheritance to strategic attacker to observable risk signals to oversight policy to objective scoring and adjudication to validated artifacts and analysis.

BayesAudit architecture showing synthetic benchmark tasks flowing through hierarchical workflow engine, attacker or safe control, constraint inheritance, monitors and policies, and adjudication artifacts.
Scenario to hierarchical workflow to constraint inheritance to strategic attacker to observable risk signals to oversight policy to objective scoring and validated artifacts.

What I built

Hierarchical workflow engine

Single-agent, unstructured delegation, structured constraint inheritance, and verified-inheritance workflows.

Oversight policies

No oversight, random auditing, fixed checkpoints, rule-based monitoring, Bayesian adaptive monitoring, and oracle-only evaluation.

Strategic attackers

Reusable attack primitives and held-out attacker families targeting privacy, authorization, and evidence-grounding constraints.

Objective evaluation

Domain scorers and offline adjudication separate model-originated violations from risks introduced by the benchmark itself.

Provider controls

Explicit permission gates, request ceilings, token and cost ceilings, cache validation, response hashing, and credential-safe execution.

Reproducibility

Deterministic manifests, evidence-package hashes, public figures, result tables, CI, Gitleaks, and 1,945 passing tests.

Experimental program

research stage

Pilot study

Established the real-model provider pipeline, strategic-attacker workflow, objective adjudication process, and benchmark limitations.

Phase 8

Confirmatory study

Ran 96 trajectories across 24 matched quartets spanning privacy, authorization, and evidence-grounding tasks.

Phase 9

Held-out robustness study

Ran 48 trajectories across 12 new matched quartets using fresh seeds and held-out attacker assets.

Key findings

The confirmatory study observed more objective-positive outcomes in attacked no-oversight conditions than in matched safe controls, but the paired effect was not statistically confirmed.

All validated violations in the principal studies were internal-only. No tool-argument or final-output violations were observed.

In the held-out study, the rule-based monitor recorded 7 true positives and 5 false positives. The Bayesian/logistic monitor recorded 0 true positives and 5 false negatives.

The held-out study did not replicate the direction of the confirmatory attack effect.

Clean causal prevention was not established. Corrected-before-final behavior remains conditional and exploratory.

Result visualizations

Phase 8 and Phase 9 BayesAudit comparison chart summarizing confirmatory and held-out outcomes across matched experimental quartets.
Phase 8 versus Phase 9 comparison. The held-out study did not replicate the confirmatory attack-effect direction.
BayesAudit monitor comparison chart showing held-out rule-based and Bayesian/logistic monitor outcomes.
Monitor comparison. The held-out rule-based monitor recorded true positives and false positives; the Bayesian/logistic monitor did not outperform it.
BayesAudit provider cost summary chart showing provider request and cost accounting for the benchmark runs.
Provider cost summary. Provider request, token, cache, and cost controls are treated as part of the research infrastructure.

Why this matters beyond LLM oversight

The core problem is a familiar quantitative one: allocate a scarce resource under uncertainty while balancing asymmetric errors and intervention costs.

The project required Bayesian updating, calibrated risk estimation, sequential decisions, matched experimental design, false-positive and false-negative analysis, held-out robustness testing, and strict accounting of computational cost.

Engineering and research discipline

  • 1,945 automated tests
  • Deterministic artifact manifests
  • Evidence-package hashes
  • Provider request and cache accounting
  • Token and cost ceilings
  • CI validation
  • Security scanning
  • Preservation of null and nonreplicated results

What failed or changed

Phase 9 did not replicate the Phase 8 attack-effect direction, so the final writeup preserves the held-out nonreplication instead of tuning the benchmark until the original result returned.

The Bayesian/logistic monitor did not outperform the rule-based monitor in the held-out study.

Clean causal prevention was not established, even though corrected-before-final behavior remains useful to inspect as conditional exploratory evidence.

Final interpretation

BayesAudit is strongest as a reproducible research framework for studying adaptive oversight under constrained budgets.

The released result supports careful experimental infrastructure, objective scoring, provider-cost accounting, and transparent preservation of null and nonreplicated findings. It does not show that oversight generally prevents LLM workflow violations.

Limitations

  • All tasks and tools were synthetic and sandboxed.
  • One provider model was tested.
  • The project does not estimate real-world violation prevalence.
  • Cross-model generalization was not established.
  • No final-output violations were observed in the principal studies.
  • Clean causal prevention was not established.
  • Phase 9 did not replicate the confirmatory attack-effect direction.
  • The framework is a research prototype, not a production safety system.

How to reproduce

The public repository contains the source code, deterministic manifests, release artifacts, technical report source, benchmark documentation, dataset card, model and provider card, and validation outputs for BayesAudit v1.0.0.

The page links to the release and public documentation rather than reinterpreting unsupported statistics.