Qualixar film · 5:12
Why AI Agents Say “Done” When the Work Isn’t | Bounded Loops & graphs | Research
An AI agent can say “done” while its output still fails a check. Bounded Loops puts the completion decision in an independent gate, with limits declared before execution.
Varun Pratap Bhardwaj explains the architecture and shows the CLI, graph monitor, human approval checkpoint, and a real Codex citation-repair example. This is AI Reliability Engineering: define the acceptance condition, run the check, and retain evidence of the result.
Code and examples: https://github.com/qualixar/bounded-loops
Research paper: https://arxiv.org/abs/2609.27871
Qualixar: https://qualixar.com
CHAPTERS
00:00 The completion claim
00:52 Self-reporting and vacuous checks
01:41 Anatomy of a bounded loop
02:29 Spend bounds and global repair
03:25 Terminal, graph and Codex demonstrations
What the demonstrations show:
• Terminal convergence: replay workers, real pytest gates, and ledger verification. The FIXTURE label identifies this example.
• Graph monitor: checks, a join, and a pause awaiting human approval. The downstream publish step has not run.
• Real Codex worker: citation repair checked against a seeded local reference dataset. This run had attempt and time limits, but no token ceiling; it is not evidence of cost savings or verification against an external legal database.
The paper examines gate defects in the authors’ loop catalogue. It does not establish a failure rate for AI agents across the industry. A passing result remains only as reliable as its acceptance gate.
Paper: Bounded Loops: Pre-Run Spend Bounds, Proved Termination, and Verified Completion for Agent Harnesses
Authors: Varun Pratap Bhardwaj, Garima Singh, Arun Pratap Bhardwaj
Engine, catalogue and corpus: Apache-2.0.
SOURCE CLARIFICATIONS
• The paper’s 69-loop catalogue yielded 47 pinned gate-defect regression cases. This is not a 68% industry-wide agent failure rate. The opening “99%” card is unsupported.
• The graph attempt bound is A ≤ (R + 1) Σ mᵥ (Theorem 5.2), under its stated assumptions: a global repair budget, terminating worker/gate calls, and no outstanding human pause. Topological sorting alone does not supply that guarantee.
• The real Codex example had no token ceiling. Its receipt reports 329,462 tokens and a gate check against a seeded local citation dataset.
• The ledger uses a hash chain, with an externally held head needed to detect a rewritten chain; it is not a Merkle-tree proof.
• The engine, catalogue and corpus are Apache-2.0, rather than MIT. The canonical repository is https://github.com/qualixar/bounded-loops.
Production note: Real screen recordings are combined with AI-generated presenter scenes and narration.
#AIAgents #AIReliabilityEngineering #BoundedLoops
Press play in the official YouTube player. Playback is never started automatically.
Watch on YouTube ↗Evidence status
Read the full transcript
Last week, we mutation tested 69 production agent loops. 47 of them were completely broken. They didn't throw errors. They just kept billing tokens in an infinite repair loop. They smiled and said, "Done." Currently, agents are grading their own homework. When an agent grades its own work, every pass is an illusion. A completion claim is not proof. An agent can claim done. A gate decides. When an autonomous agent runs without a bounded loop, every retry is an uncontrolled financial and logical risk. To guarantee completion, we must replace optimistic prompting with mathematically bounded execution. Chapter 2, the self-reporting fallacy and formal vacuity. Right now, agent frameworks rely on the self-reporting fallacy, asking the model if its own work is complete. An agent deletes an entire legal brief and submits void. The test finds zero errors and passes. The test suite returned exit code zero not because the brief was accurate but because the file was completely empty. That is formal vacuity. The check passes simply because the target artifact no longer exists. To fix this, we replace informal prompting with four mechanical dimensions. Exit authority, mutation testing, spend bounds, and prove termination. Chapter 3. the anatomy of a bounded loop. To fix this, we enforce four separate roles. Worker, gate, controller, and immutable receipt. The worker proposes a candidate diff. The runner executes it in an isolated container. The gatekeeper evaluates mechanical invariance and the controller terminates the loop. Every loop package is an explicit versioned contract. It defines deterministic attempt bounds, mutation testing gates, and strict financial ceilings. The controller is a cold referee. It locks the run into a tamper evident hash chain receipt. Chapter four, spend bounds and prove DAG termination. The math proves it. Your repair budget must be global, guaranteeing finite termination before execution. In our ARXV paper, theorem one proves that without a global bound, nested agent retries grow exponentially. By establishing a topological sort over the DAG, maximum executions collapse to 1 + R times the sum of attempt across 69 production loop packages. 68% of gates passed broken code. Mutation testing systematically injects deliberate syntax and semantic flaws to prove the gate actually catches failure. Who verifies the verifier? If your gate cannot reject broken mutants, your testing is just theater. Chapter 5, the grand production demo and verification receipts. Everything we have built is open- source, reproducible and grounded in our archive research. In our repository, every loop package defines its roles, its declared safety bounds, and its independent mechanical acceptance gates inside an audited YAML manifest. Watch what happens during live execution. In lap one and two, the candidate diff fails pi test assertions and the gate rejects completion. The agent cannot declare itself done. Only in lap three. When all assertions pass does the engine issue exit code zero, sealing the state into a tamper evident mirkill hash chain verified by external digest. In multi-agent graphs, the engine enforces node sandboxing and holds critical transitions until a human supervisor verifies and signs off. In this real codeex run, the runner constraint token spend while an independent mechanical checker verified every citation in the repaired legal brief. Prompt engineering is hitting a wall. Loop engineering is the discipline that gets you hired. Stop letting agents grade their own work. Pull over benchmark repository from GitHub with verified bounds.
Transcript source: youtube-auto-caption. Use the film as the primary record.