Finance agents
Agents with a written job and a limit Petawork Finance's tools enforce. Jobs, templates, schedules and event triggers, read scope, authority rules, what is never allowed, recommendations and the evaluate queue, hints, runs, spend caps, the monthly report and the tools.
A Finance agent is one of your Tasks service agents with a job: a description in plain words of the work, and an authority that says what it may do by itself. The limit is enforced by Finance's tools. When an agent asks a Finance tool to change something, the tool checks the job first and either does it, or files a recommendation for a person and changes nothing. A prompt cannot widen a limit, because the agent's words never reach the check.
Finance agents are the module finance.agents. Open them in Finance > Agents (/finance/agents); a job opens at
/finance/agents/job (with its id), where a new one is made too. Controllers create and change jobs; controllers and
auditors read them and their runs.
A job
| Field | What it is |
|---|---|
| Name | What people call it: "Low-value approver" |
| Agent | The Tasks service agent that does the work. An agent works under one active job at a time |
| Entity | The entity it works on, or every entity |
| Description | The job in plain words. The agent reads it as its instructions |
| Trigger | Run now only, a schedule (daily, weekly or monthly at a time) or a Finance event (a document arrives, an approval is overdue, a reconciliation case opens, an invoice is overdue, a month is closing). An active job runs by itself on its trigger; see Schedules and events |
| What it reads | Its read scope: the Finance modules whose tools it is given (core always), the entities it may see, and the dimension values it may see. See Read scope |
| Authority | The rules below |
| Recommendations go to | The person who receives what the agent may not do alone, in their Drafts and the bell |
| Monthly spend cap | In US dollars. At the cap the job pauses itself and tells that person |
| Status | Draft, active or paused |
Every change writes the job's next version, and every change is an event on the audit trail. The person who saved the job is its configurer: they and the agent count as one party in every segregation of duties check (see Finance roles). So a job you configured never approves your own expense report, and an agent whose job you set up never verifies a vendor you created.
Schedules and events
An active job runs by itself; nobody has to press Run now (which still works for any active job).
- A schedule runs it daily at its time, weekly on Mondays at its time, or monthly on the 1st at its time, in its entity's time zone (UTC for a job on every entity). The job page shows the next run. A run missed while Petawork was down is passed over, not piled up.
- An event runs it when that happens in Finance, once for each thing it is about: one run per document received, per overdue approval, per reconciliation case, per overdue invoice, per month moving to closing. The run is told what happened and works on that record.
| Event | Starts when |
|---|---|
| A document arrives | Capture files a document (upload, email or API) |
| An approval is overdue | An approval step passes its time limit and is escalated |
| A reconciliation case opens | A reconciliation run opens a case for a difference it found |
| An invoice is overdue | A sales invoice passes its due date unpaid: collections marks it overdue once |
| A month is closing | A month's status moves to closing |
Jobs triggering jobs stay bounded:
- what a job's own run writes never starts that same job again;
- a run started by another job's run is one step deeper, and past two steps nothing starts;
- a job whose last five event runs within an hour were all started by other agents' writes is paused as a likely loop. The job page says why; check the jobs that trigger each other, then resume it.
A paused job (by a person, at its spend cap, or as a loop) and a draft skip their triggers. Each skipped schedule occurrence or event is kept in the job's run history as Skipped, with the reason. An event job runs only on events on the entities it may see.
A job's schedule or event is a routine that belongs to the job: it is made, changed and removed with the job, and it is
not listed or editable in Agents or Computers. Switching a job to Run now only, or back to draft, removes it. Runs are
started every minute by the cron /api/cron/finance-agents, which reads Finance's event chain and runs the waiting runs
one at a time.
Read scope
A job's read scope limits what its agent sees and does, for reads as well as writes. The agent sees what its Finance roles allow and what the job's scope allows, never more. It holds whenever the agent acts: in a run, and when it calls the Finance tools with its own key.
| Part | What it limits |
|---|---|
| Modules | The Finance tools it may call. Core is always included; a tool of any other module needs that module in the scope. A tool outside it is refused with agent_scope. Core is the reference data, roles, the audit trail, exceptions, parties, approvals, journals, policies and budgets, and the period close; bills, payment runs, expenses, reconciliation runs and cases, collections, subscriptions and folios belong to their modules (Payables, Payments, Expenses, Reconciliation, Billing). A tool that belongs to no module is refused for every scoped job |
| Entities | The entities whose records it sees, in every list, every lookup and every change. None ticked: the job's own entity, or for a job on every entity, every entity its roles reach. Records shared by all entities stay visible as its roles allow |
| Dimensions | Dimension values by dimension (for example cost centre CC-A). They apply to approval requests, journals, bills, purchase orders (with their goods receipts), purchase requests, sales invoices, credit memos, expense reports, expenses and budgets, in their lists and lookups. Rows that name an invoice or report are hidden with it: a receipt suggested from a bank line, a receipt applied to the invoice (and a credit kept from that receipt), the invoice's reminders, a billing or folio run that made it, and a report waiting to be reimbursed. Not filtered by dimension yet: subscriptions and their next-invoice preview (they carry no dimensions), an advance's list of the expenses spent from it, and the expense risk report's aggregates. A document is hidden whole when any of its lines has a value outside the list, so the agent never sees half a document. A line with no value for a limited dimension counts as outside, so lines must be coded for every dimension the job limits. A budget is visible when its dimension is one the job limits and its value is in the list; budgets without a dimension are hidden. People are not affected |
A record outside the scope reads as if it did not exist, so the agent cannot tell it is there. The job page says the read scope in sentences.
Templates
Start from a template on the jobs page fills in a job for you: its name and description in your language, its
trigger, what it reads, a careful authority and a small monthly cap (USD 5). Choose the agent that will do the work and
press Create a draft. The job is always saved as a draft: read it, set its entity, contact and limits, then make it
active. Over MCP, pass template (and locale for the language) to finance_agentjob_create; any field you give wins
over the template's.
| Template | What it does | Authority | Needs |
|---|---|---|---|
| Low-value approver | Approves in-policy expense reports up to USD 200 with no open exception, and passes the rest to a person | Approve or reject expense_report up to USD 200.00, only within policy, only with no open exception |
Approvals (core) |
| Month-end pack | Lists what blocks the month's close (open exceptions, waiting approvals, unlocked periods, vendors waiting to be verified) and drafts a summary | None: it only reads and recommends | Core |
| Vendor onboarding checker | Compares the details a vendor submitted through their onboarding link with their evidence. Where they agree it says so (a person verifies the vendor); where they differ it recommends sending the link again with what to correct | None: it only reads and recommends | Payables (vendor onboarding) |
| Invoice reviewer | When a document arrives, checks the vendor invoice against its extraction, the vendor's purchase order and receipts and earlier bills, and recommends what a person should confirm, correct or look at | None: it only reads and recommends | Capture and Payables (document review, bills) |
| Reconciliation clerk | When a reconciliation case opens, confirms a suggested match only when its difference is zero and its confidence at least 95%; everything else is a recommendation | Work reconciliation (recon.work) only with a confidence of at least 95% and a difference of zero. Its read scope keeps it to Reconciliation's tools |
Reconciliation (suggestions) |
The low-value approver works on whatever the approvals engine routes. Expense reports arrive with the Expenses module; until then, change its rule's document types to the ones your organisation sends for approval.
A template is offered only when your organisation has the modules it needs. Each template is checked when Petawork starts, with the same checks a saved job gets, so a template can never grant something on the never-allowed list below.
More templates come with the modules they work in: a receipt chaser with expenses and cards, and a collections assistant with sales invoices.
Authority rules
Each rule grants one Finance action under conditions. A condition the record does not meet, or one Petawork cannot tell, does not hold: the agent recommends instead.
| Condition | Holds when |
|---|---|
| Document types | The document is one of these types (expense_report, bill, …) |
| Entities | The record belongs to one of these entities |
| Largest amount, currency | The amount is at most this, in this currency |
| Highest exception severity | The exception is at most this severe |
| Lowest confidence | A match or a reading is at least this sure (0 to 1) |
| Largest difference | Two amounts differ by at most this many minor units |
| Within policy | The document carries no out-of-policy flag (over_po, risk_high, out_of_policy) |
| No open exception | Neither the document nor its approval request has an open exception |
The job page shows each rule as a sentence, for example: "Approve or reject, for expense_report, up to USD 200.00, only within policy, only with no open exception (rule r1)".
The actions a rule can grant are the Finance roles' write actions, such as approvals.decide,
exceptions.work, exceptions.waive (low severity only), parties.write, capture.review and recon.work. Within a
granted action the agent still needs the Finance roles for it: a rule never gives more than the agent's roles allow.
Never allowed for any agent
These are refused when a job is saved and again when an agent asks, whatever the job says:
- releasing or exporting a payment run;
- adding, changing or verifying bank details;
- verifying a vendor;
- closing, locking or unlocking a month;
- changing policies, approval chains or any agent's job, its own included (and handing approvals to someone else);
- giving or taking away Finance roles;
- waiving an exception above low severity;
- forcing an approval past its chain (break-glass);
- confirming that your accounting system took an export file, which marks its journals posted;
- reviewing an agent's recommendation, its own or another's;
- connecting or disconnecting your accounting system (connecting is a consent a person gives in the browser; disconnecting deletes the connection's tokens).
The agent gets a typed refusal, agent_never, and the attempt is kept in the action log.
What happens when an agent asks
Every Finance write tool, when the caller is an agent, goes through one check before it acts:
| Outcome | What happens |
|---|---|
| Allowed | A rule of the job's active version grants it. The tool acts, and the event on the audit trail carries the job, its version and the rule |
| Recommended | No rule grants it (no job, a paused job, no rule, or a condition that does not hold). Nothing changes. The recommendation, with the reason, goes to the job's contact in Drafts and the bell |
| Refused | One of the never-allowed actions. Nothing changes |
Drafts are different: creating a draft vendor, sending in a document or commenting on an approval changes nothing anyone relies on, so an agent does them with its own Finance roles.
An agent with no job, such as a member's own assistant over MCP, reads and drafts with its roles and recommends every decision. Its recommendations go to the member who set the agent up.
An agent's approval counts only at a step of an approval policy that allows agents, and only when its job's authority allows that approval.
Runs
Run now on a job (or finance_agentjob_run), its schedule or its event starts a run: the agent works the job with the
Finance tools in its read scope, a few model calls at most, through your organisation's gears, budgets and spend cap.
Each run:
- counts one of your organisation's monthly agent runs (
agent_runs_month); at the plan's limit the run is refused; - adds what it cost to the job's month. At the job's cap the job pauses itself, the run is skipped, and the contact sees it in the bell. Raise the cap or wait for the next month, then resume the job.
Finance > Agents > Run history (/finance/agents/runs) lists the runs, newest first, with what started each (Run
now, the schedule or an event) and the skipped ones with why. A run shows its summary and every action its agent asked
for: the tool, the action, the outcome, the rule that allowed it and the reason.
The evaluate queue
Finance > Agents > Evaluate queue (/finance/agents/review) lists the recommendations agents left, newest first. A
recommendation in Drafts opens here. You see the ones sent to you, and if you read agent jobs (controllers and
auditors) those of the jobs you read. The person a recommendation went to, or a controller on the job's entity, reviews
it once:
| Verdict | What happens |
|---|---|
| Accept | The recommended call is done as you, through the same tool: your own Finance roles, the segregation checks and the audit trail apply. If you may not do it (you are not an approver at that step, for example), nothing is done and nothing is stored: the recommendation stays open |
| Edit | Your version is done as you: the fields you change over the recommended call (never what it is about). Your correction is kept on the recommendation, and your note becomes a hint for that job |
| Reject | Nothing is done. Your reason is kept on the recommendation |
A recommendation is reviewed once. If two people review it at the same moment, one review wins and the other is told it
was already reviewed. No agent can review a recommendation, its own or another's: the tool refuses any agent with
agent_never.
Hints
An edit's note (or, without a note, a line saying what you changed) becomes a hint for that job only. The agent reads its job's hints with its instructions, under a heading that says they never change what it may do, from the job's next run: a run already under way keeps the instructions it started with. The queue shows each hint with the run it applies from ("applies from run 3").
A hint can never widen what the job may do. Authority lives only in the job, which only a controller changes, and the
check before every tool call reads the job, never a hint. A hint is one line of plain words, at most 500 characters; a
note that names a Finance action (such as approvals.decide) or holds rules is refused. A job keeps its 20 newest hints;
an older one is retired when a new one comes.
The monthly report
Finance > Agents > Monthly report (/finance/agents/report, with ?month=2026-11 for another month) shows what agents
did in a month (UTC), for each job and in total:
| Column | What it counts |
|---|---|
| Runs | The job's runs that started in the month |
| Done, recommended, refused | Its actions by outcome |
| Value handled | The sum of the amounts on the actions its authority allowed, per currency. Amounts in different currencies are never added together |
| Accepted, overridden | Of the recommendations people reviewed, the share accepted, and the share edited or rejected |
| Spend | What its runs cost in model calls |
It is worked out when you open it, from the action log and the runs, for the jobs on the entities you read. Controllers and auditors see it.
For agents
The tools are on the Finance MCP server (/workspace/mcp/finance) and need the module finance.agents; without it
they answer 403 product_not_enabled.
| Tool | Scope | What it does |
|---|---|---|
finance_agentjob_list |
finance:read |
The jobs you may read |
finance_agentjob_get |
finance:read |
One job, with its authority in words, this month's spend and its next run (next_run_at) |
finance_agentjob_create |
finance:admin |
A new job (controller), or a draft from a template |
finance_agentjob_update |
finance:admin |
The job's next version (controller) |
finance_agentjob_pause |
finance:admin |
Pause, or resume with paused: false (controller) |
finance_agentjob_run |
finance:admin |
Run it now (controller) |
finance_agentrun_list |
finance:read |
Runs, newest first |
finance_agentrun_get |
finance:read |
One run with every action |
finance_agentaction_list |
finance:read |
The evaluate queue: recommendations, open or reviewed |
finance_agentaction_review |
finance:write |
Accept, edit or reject one recommendation (a person, never an agent) |
finance_agentreport_get |
finance:read |
The monthly report |
An agent can never call finance_agentjob_create, _update, _pause or _run, on any job, nor
finance_agentaction_review. The REST twins are under /api/v1/finance/agent-jobs, /api/v1/finance/agent-runs,
/api/v1/finance/agent-actions and /api/v1/finance/agent-report.
A job's trigger is {kind: "manual"}, {kind: "schedule", frequency, time} or {kind: "event", event}; its
read_scope is {modules, entities, dimensions} (for example {"modules": ["core"], "entities": ["…"], "dimensions": {"project": ["P1"]}}). An agent's call to a tool outside its job's modules answers agent_scope.
A Finance write tool called by an agent answers as usual when its job allows it. When it does not, the answer is not an
error: it says the action was recommended, not done, with outcome: "recommended", the reason and the action's id. Do
not retry it.