Ordinum Labs · Case Studies
Ordinum found a bug in our own reference agent
A cancel that never reached an in-flight sub-agent call, in the build we believed was correct. Found by a planted-defect comparison, confirmed, reduced and fixed. Our own reference application, not third-party software.
By Armaan SinglaRevision 1 · release candidate ordinum-2-release · fix at 9a70c5c
The finding
While checking a planted defect, Ordinum found a real bug we had not planted, in the hardened build of our own reference agent: cancelling delegated work did not reach a sub-agent call that was already in flight. Ordinum confirmed it 5/5, and we fixed it test-first.
Evidence classification: Our own reference application · real, unplanted bug · release candidate
What was tested
Does the hardened build of our own reference agent really keep its permissions when work is retried or cancelled, including work handed to a sub-agent?
examples/agent_reference: the reference agent application in Ordinum's own repository, at the release candidate ordinum-2-release. It is ours. It is not third-party software and not a customer system.
It comes as a hardened build, meant to be correct, and planted variants, each with one defect we added on purpose: 9 in total. One of them, pc_delegate_parent, plants a defect in delegated work.
The property: stale_authorization_on_retry_or_cancel. In the report's words: a retried call is re-authorized against the current state, and a cancelled task executes nothing.
Why it matters
Agents increasingly hand work to other agents and call tools on someone's behalf. If a cancel stops the parent but not a call already in flight, an action can still run after the user or a policy said stop.
The hardened build was the version we believed was correct, and its own search campaign had not caught this. The planted-defect comparison did, because a violation on the build that was meant to be the fix is itself a finding.
How it worked
The strict per-defect matrix runs ordinum verify for each planted variant against the hardened build, using the feedback_full search arm with a budget of 40.
For pc_delegate_parent, the comparison came back NOT_FIXED: stale_authorization_on_retry_or_cancel was violated in 12/12 runs on the planted build and in 12/12 runs on the hardened build. The hardened build also violated it.
Ordinum confirmed the violation 5/5 and minimized the fault schedule from 3 faults to 2. Whether the result is 1-minimal was not verified.
We then wrote a regression unit test first, test_hardened_cancel_reaches_a_delegated_call_already_in_flight, and checked that it fails before the fix. The fix in commit 9a70c5c makes the cancel reach a delegated call that is already in flight.
After the fix, the 9 planted cases were regenerated on the fixed build and replayed.
What it shows
- Finding
- A cancel of delegated work did not reach a sub-agent call already in flight
- Property
- stale_authorization_on_retry_or_cancel
- Before the fix
- NOT_FIXED: violated in 12/12 planted-build runs and 12/12 hardened-build runs
- Confirmation
- 5/5
- Reduction
- 3 faults to 2; 1-minimality not verified
- Fix
- Commit 9a70c5c, test-first; the regression unit test fails before the fix
- After the fix
- No NOT_FIXED in the strict matrix. Overall strict verdict: CANNOT_VERIFY, because strict evidence for sibling defects was inconclusive
- Planted cases
- Regenerated on the fixed build: 9/9 PASS FIXED (2af351c)
The hardened build's own 40-run campaign did not catch the bug; the comparison against a planted variant did.
What it does not establish
- This is our own reference application, not third-party software. It is not a vulnerability in any external project.
- It is from the release candidate ordinum-2-release, not the stable checkpoint.
- The overall strict verdict after the fix is CANNOT_VERIFY, not FIX_VERIFIED.
- 1-minimality of the reduced case was not verified.
- No review round is logged for this finding.
- One bug in one application says nothing about how often such bugs occur in other agents.
Artifacts and reproduction
Technical details
- Application
- examples/agent_reference (Ordinum's own), release candidate ordinum-2-release
- Pre-fix strict verify
- Commit 6806931, variant pc_delegate_parent against the hardened (safe) build
- Search
- feedback_full arm, budget 40
- Regression unit test
- test_hardened_cancel_reaches_a_delegated_call_already_in_flight
- Fix
- Commit 9a70c5c
- Fixed build
- agentref@0.1.0-4f1bacd749c7
- Planted-case replay
- 9/9 PASS FIXED at 2af351c; ordinum ci: 9 PASS
Related
Corrections
- 1 November 2026First published.
Methods note
Engineering and review used AI coding and review agents; reviews were not independent human audits.
EVALUATIONS
Request an evaluation. Bring one system and one failure.
We start with a short discussion and a demo, then agree on a suitable system and testing scope with you.
Research-stage. Runs on your machines; evaluations are guided by the founders.