Banking Agent Harness
A banking agent harness that keeps model-selected actions inside deterministic Python policies. The deployed FastAPI service stores each browser’s isolated ledger and pending confirmations in Upstash Redis across requests.
The problem
A banking agent harness that keeps model-selected actions inside deterministic Python policies. The deployed FastAPI service stores each browser’s isolated ledger and pending confirmations in Upstash Redis across requests.
My contribution
Integrated the ADK agent with deterministic transfer policies, confirmation state, isolated ledger execution, request admission, and redacted audit controls.

Product features
- Five banking tools manage account lookup, beneficiary validation, transfer requests, and ledger results.
- Python validates beneficiaries, amounts, balances, and daily limits.
- A staged transfer requires explicit confirmation in a later turn.
- Tool outcomes and account balances expose whether a ledger operation executed.
- Upstash Redis persists browser-scoped ledger and confirmation state across requests.
Engineering work
- Policy before execution: Validate beneficiaries, balance, and transfer limits in Python before a ledger operation is allowed.
- Confirmation state: Require explicit confirmation in a later invocation, and invalidate pending approval when transfer details change.
- Isolated hosted state: Preserve each browser’s ledger in Redis, with bounded model usage and guarded execution.
Outcome
Keeps approval in application code: ledger state changes only after a separate confirmation, and changed transfer details invalidate stale approvals. Redis isolates each session's balances and execution history.
Architecture & tech stack
Design decision
Policy before execution: Validate beneficiaries, balance, and transfer limits in Python before a ledger operation is allowed.
Preventing model instructions from bypassing confirmation and ensuring changed transfer details invalidate stale pending state.
Failure handling & recovery
Changed transfer details invalidate pending confirmation; execution results are checked against the isolated ledger.