Inspiration

Paying a supplier should be the boring part of finance. It isn't.

The most common payment fraud doesn't need malware. A "supplier" emails accounts payable with new bank details, and the next payment goes to the attacker. Business email compromise cost US victims $3,046,598,558 across 24,768 complaints in 2025 (FBI IC3 2025 report).

Most tools try to spot the fake email. That fails exactly when it matters, because often the email really does come from the supplier's own mailbox. It was just hacked.

So I wanted the opposite. A process where it doesn't matter how convincing the email is. What a request claims is just context. Only verified context can release money.

AP teams already run on Jira Service Management (Atlassian runs its own Accounts Payable desk on it), so Safi lives right there, in the desk where the request arrives.

What it does

Safi is a Forge app for Jira Service Management. When a supplier or employee asks to change their bank details:

  1. Hold. Safi opens a case and holds the payee automatically when the request comes in through the service desk portal.
  2. Callback. Someone who is not the requester calls a number that has been on file for at least 14 days. A number from the email, signature or invoice is never offered. A number added recently shows as "cooling off" and can't be called. Every time a number is shown, that's logged first.
  3. Two approvals. Two more people approve. Requester, verifier and both approvers have to be four different people.
  4. Release. Only then does Safi write the new account to its registry and lift the hold.
  5. Payment file check. Every payment run's CSV is checked line by line against verified accounts and locked to its hash when approved. A line paying an account Safi never verified, a file changed after approval, or a payee on hold blocks the release.

Around that:

  • An AI agent that can't decide anything. Safi Analyst (a Rovo agent) explains cases and answers "is it safe to pay this account?". It has no approve, release, verify or registry write action, and the build fails if one is ever added. An agent always counts as the person it works for, so ask it to approve your own request and it refuses.
  • Other agents can ask first. A rovo:mcp server exposes two read only tools, is-safe-to-pay and get-case-status. They answer match or no match, never return an account number, and every call is logged as "an AI agent over MCP, for" the person asking.
  • A ledger you can't quietly edit. Every step by every person or agent goes into a hash chained ledger. An hourly check verifies it, and if it fails, every release freezes by itself. Unfreezing takes two admins.
  • A health check that admits what it can't see. Where Forge can't tell (is the validator attached, is Rovo on), it says "Check by hand" instead of a green tick.
  • Judge mode. One press of Set up judge demo creates sample cases and payment runs through the real services, so you can try every moment alone, on your own site, in about 5 minutes.

How it fits Codegeist 2026

The theme is "Build with context. Ship with confidence." Safi's whole idea is telling two kinds of context apart: what a request claims, and what was actually verified. Only the second can move money, so a finance team can pay with confidence.

I'm entering Apps for Business Teams ("Give business teams the context to act decisively"). AP and finance teams act on one question: is this account verified and safe to pay? Safi answers it from the record, for the people in the desk and for the AI agents working for them.

It's also built for Best Agents (Safi Analyst is a rovo:agent, and its read only actions are tools other Rovo agents can use) and Best app with Atlassian MCP (Safi exposes a rovo:mcp server, called live from a Rovo Studio agent and logged as acting for the person).

How I built it

  • Forge, Runs on Atlassian. No egress, no external servers, no app side LLM spend.
  • Modules: jira:issuePanel, jira:globalPage (callback screen and registry), jira:adminPage, jira:workflowValidator (payment run gate), triggers for intake and tamper detection, a scheduled trigger for the hourly ledger check, rovo:agent with read only actions, a rovo:skill, and rovo:mcp.
  • UI Kit and Atlassian Design System tokens, light and dark themes.
  • Forge SQL for the registry, cases, payment runs and the ledger, plus an in app self test that runs the SQL on the real database.
  • An actor engine that works out who is really accountable for every action: a person, an agent acting for a person, a customer, or Safi itself.
  • Account numbers are stored only as a mask and a keyed hash.
  • Five scopes, frozen before the first production deploy. No Confluence or Teamwork Graph scopes, on purpose: context is never evidence.
  • Testing: 493 automated tests. For every gate rule I planted a bug, watched a test fail, then put the code back. A threat model covers 73 attack surfaces.

Challenges I ran into

  • Making "only Safi can move a gate" true. Jira lets field edits, Automation and other apps change a work item. I combined a workflow validator with an in code hold that moves back any payment run that skips Safi, and logs it as tampering.
  • Agents and separation of duties. "The AI did it" can't be a loophole. Every action resolves to an accountable human, and an agent acting for the requester is treated as the requester.
  • Being honest when the platform is slow. If Safi doesn't confirm a write in time, the screen checks what really happened instead of guessing.
  • Demo data that ages. The planted number is "10 days old" when you set up the demo, but real time keeps moving. So there's a Refresh demo dates button for judges who come back days later.

Accomplishments I'm proud of

  • A perfect fraudulent email from a supplier's real mailbox gets held exactly like a clumsy one.
  • An AI agent that's useful and provably powerless.
  • An AI to AI safety check: another agent asks before it pays, and the question itself goes in the ledger.
  • Installed from the shared link on a brand new site, the judge path worked as a stranger would use it.

What I learned

  • The strongest control isn't the smartest detector. It's a rule that makes the attacker's best email worthless.
  • "Who is accountable for this?" is a better question than "which account made this call?", especially once agents act for people.

What's next for Safi

  • Invoice PDF scanning (today it's CSV payment files only).
  • More payment file formats.
  • Attributing remote agents that write as a user, instead of only refusing them.

Known limitations

  • A deepfake voice or hijacked phone line answering the number on file can pass the callback. Two other people still approve, and the payment file is still checked.
  • Four people working together can get a change through.
  • Money sent outside a Safi checked payment run is outside what Safi can see.
  • Judge steps that use Safi Analyst need Rovo on your site. Everything else works without it.
  • Forge panels don't render in the Jira mobile app. Use a desktop browser.

Built With

Share this project:

Updates

Submission history