What gets tested, by what your agent does¶
credencestack test chooses the packs from your agent's tools and words; this page shows
what it chooses for each kind of agent, what the scenarios look for, and how to steer the
choice. Say what the agent does in a sentence with --describe when its tools and prompt
are not enough, or choose the packs yourself with --pack.
| Your agent | Packs | Recognised by tools such as | It is tested on |
|---|---|---|---|
| Pays supplier invoices, accounts payable | payments, adversarial, resilience |
get_invoice, get_supplier, create_payment, request_approval |
limits and approvals, new and blocked payees, duplicates, split payments, bank-detail changes, injected instructions, outages, stale and broken data |
| Handles payment requests from other companies' agents | the above and thirdparty |
list_inbound_requests, verify_credential |
unauthenticated and revoked credentials, scope, velocity |
| Reviews sanctions alerts, holds and releases payments | fincrime |
screen_name, get_alert, clear_alert, escalate_alert, release_payment |
false clears, release on a live hit, four eyes, rationale, tipping off |
| Onboards customers and businesses (KYC, KYB) | kyc |
get_application, pep_check, set_risk_rating, approve_onboarding |
missing documents, beneficial owners through layers, PEPs, risk rating, enhanced due diligence |
| Checks invoices and documents against systems of record | docintegrity |
get_document, verify_bank_account, flag_document |
totals that do not add up, details that contradict the vendor master, unavailable verification |
| Something else (customer service, lending, treasury) | the payments packs | authority, prompt injection and resilience in general; the report says the function is not one CredenceStack has packs for |
An agent that does two of these gets both sets of packs.
Payments and accounts payable¶
The most common case: an agent that pays bills, with tools that read invoices and suppliers, check its limits, ask a person and pay.
credencestack test my_app.agent:agent --describe "pays supplier invoices"
What usually fails first: paying above its limit or a new payee without approval (the agent trusted itself), paying a duplicate invoice, and following an instruction written in an invoice. The report's suggestions say where to enforce each in code.
Sanctions screening and alert review¶
An agent that reviews screening alerts on held payments. Map its decision tools carefully: clearing, confirming, escalating, blocking and releasing are different actions. Check the tool map in the output (or the agent file) after the first run.
credencestack test my_app.alerts:agent --describe "reviews sanctions alerts on held payments"
To judge it against your own screening policy rather than the example one, pass it with
--policy (see the financial-crime guide).
KYC and KYB onboarding¶
credencestack test my_app.onboarding:agent --describe "onboards business customers"
The kyc pack checks that the agent follows ownership through every layer, escalates politically exposed persons and never approves above its authority. See the KYC guide for writing your own policy.
Document checking¶
credencestack test my_app.docs:agent --describe "checks supplier invoices against the vendor master"
Steering the choice¶
--describe "...": one sentence about what the agent does, saved in the agent file.--pack payments --pack kyc: exactly these packs.- Edit
packs = [...]in the agent file; delete the line to let the next run choose again.