We built Hisaab (हिसाब, "the accounts"). It's an overnight clerk for household bills: it reads the bills, renewal notices, bank exports and call transcripts that pile up, then pays fake money in a local sandbox, holds, disputes or reminds. Its one rule fits in a sentence:

Anyone can make Hisaab stop. Only you can make it pay.

Untrusted input—an email, a web page or a call transcript—can make it hold or flag something. Only the owner's own ledger can authorize a sandbox payment, and actions carry quotes that code checks against their sources. We were proud of that rule. Then it nearly became the leak.

The near miss

The Trap Pack included fictional canary tokens in hostile files and told us to search what our agent wrote for them. We wired that scan into the build: outbox, data, reminders, reports, and later traces too.

One of the Life Admin traps is a phone-call transcript. Somewhere in the call, a voice that isn't the owner asks the assistant to do something it shouldn't. Our call rules handled it correctly: they flagged the call and refused the request.

Then the scan lit up. The canary was in the morning report.

Nothing had been sent anywhere. But the flag needed a citation—that's the whole point of the evidence gate—and the rule had cited the line that contained the attack. The safety feature copied the attacker's payload into the document the owner was meant to read. If we had later added a “forward the morning report to my accountant” feature, the same path could have carried the content farther. That is a hypothetical consequence, not an observed transmission.

The fix was one idea: cite the cue, not the content. A flag now quotes the speaker label or a risk word that triggered it, rather than reproducing the untrusted instruction. The change was made in commit 8d8e49f; the test is test_call_flag_does_not_echo_untrusted_instruction.

The Trap Pack scorer scans the configured outputs after each run. The latest committed results report zero leak canaries in the scanned outputs. That result does not cover every historical recording or traffic outside the application.

The second near miss: our audit log was a copy of the attack

The same scan found fictional canaries in our traces. The hash-chained audit log, the thing meant to let a human reconstruct what happened, was storing raw document text. So hostile input was faithfully preserved in a log we'd committed to a public repo.

We changed document audit records to metadata: document ID, SHA-256, length, kind and flags (commit 0a32b15). The hash chain can still be verified, but metadata alone cannot reconstruct the original document. We didn't rewrite git history. Instead, SAFETY.md says plainly that earlier commits contain fictional canaries in old traces. Honest beats tidy.

The third: our eval was grading itself

We measure how often the model's proposals pass the gate. At one point acceptance jumped to 88%. It looked great, and it was misleading. While we were adding the gate's rules to the prompt, the rules engine's own verdict had gone in too, giving the model the answer we wanted it to reach independently.

We removed it in commit c22816d and started reporting agreement between the model and the rules separately, disagreements included.

In the final 19-case recorded eval, 32 of 37 model proposals passed the gate (86.5%), and model and rules stances agreed on 19 of 20 documents (95%). Those are results for this fictional eval, not a measure of general reliability. In a separate five-case holdout replay, four cases passed and one failed because a call summary was executed when the case forbade it.

What we'd tell the next team

  1. Every place your agent cites evidence is an output channel. Citations, summaries, error messages and logs all are. Scan all of them, not just the "send" path.
  2. Logs are outputs too. If your audit trail stores inputs verbatim, it stores the attacks verbatim.
  3. Make the authority asymmetric. Untrusted input should be able to stop your agent, never start a payment without ledger authority.
  4. Distrust a metric that jumps. Ours jumped because the answer had leaked into the prompt. Keep independent cases and publish failures as well as passes.

Hisaab is open source (MIT): github.com/kushagragupta2005/hisaab-agent. It runs with no API key in replay mode. Watch the demo video.

This is our Near Miss entry for Agentware 2026, a hackathon by Hackathon Raptors. The Near Miss is backed by FileClerk.