Which linked records and fields does a receipt-matching task depend on?
A field-level view of the records a task pack needs, the keys that join them, and the file formats and harness hooks that make scoring unambiguous.
A payment workflow becomes testable when the records link by stable identifiers. A task pack for this workflow could use the following structure.
- **bank_line**: line_id, value_date, amount, currency, payer_text, reference_text, source_account. - **customer**: customer_id, legal_name, related_customer_ids, terms_code. - **invoice**: invoice_id, customer_id, issue_date, due_date, amount_open, status. - **credit_note**: credit_id, invoice_id, amount, approval_state. - **allocation**: allocation_id, line_id, invoice_id, amount_applied, posted_by, posted_at. - **case**: case_id, line_id, reason_code, owner_role, status. - **policy**: policy_id, rule_text, applies_to.
The links that matter are line_id to allocation, invoice_id to allocation and credit_note, and case.line_id back to the originating bank line. If these joins are broken, scoring becomes ambiguous.
Files can be delivered as JSONL, one record type per file, or as Parquet tables for larger sets. Each task can carry a task_id, an initial-state snapshot reference and an expected-final-state reference.
For an evaluation harness, the useful hooks are a reset that restores the initial snapshot, a log of every tool call, and a diff of ledger state before and after. Agree the exact fields with MirrorFirm in a pilot, since the schema can be adapted to your harness.
Stable identifiers across bank lines, items, allocations and cases are what make scoring exact, so agree them before generation starts.
- Audience:
- Evaluation teams
- Content type:
- Integration
- Buyer question:
- What it is and why it matters
Content release: r-a220eb6e099b243b
Related questions
- Where does an agent sit among the systems in a payment matching process?
- What traits make a payment workflow a good test for an agent?
- What does a multi-account remittance look like at a water utility?
- What does matching incoming payments to obligations involve in a real business?
- Why can't an agent just match payments by amount and reference?
- How does this workflow map onto environment state, tool actions and observations?