Fairhaul Duplicate Payments
v0.1.1Fairhaul Duplicate Payments: searches years of freight payments for invoices paid twice: the same…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fairhaul_info
Show this pack: pinned model, mode, caps, Auto opt-ins, and the allow/ask/block decision for every tool.
fairhaul_inspect_input
Show how a CSV, TSV, Excel, JSON or JSONL file under the root would be read: its format, which export it looks like, which of its columns map to this pack's columns, and what each column holds. Returns column names and shapes only, never cell values. Use it before a tool when a file comes straight from another system.
| Parameter | Type | Description |
|---|---|---|
path * | string | A CSV, TSV, Excel .xlsx, JSON or JSONL file under the root |
as | string | Source kind to read it as (default: every kind this agent declares, best match first) |
sheet | string | integer | Excel sheet name or 0-based index (default: first visible sheet) |
duplicates_search Find invoices paid twice
[ALLOW] Groups of payments that look like one invoice paid more than once, each with a rule (exact_duplicate, invoice_number_variant, two_vendor_records, same_pro, same_amount_and_date), a confidence, the amount paid twice, credits already received and the amount left to recover.
| Parameter | Type | Description |
|---|---|---|
payments * | string | AP payment history under --root (CSV, Excel or JSON), any number of years: vendor, vendor id, invoice number and date, amount, paid date, payment ref, PRO; credit memos as negative amounts |
as_of | string | Date to count ages from, YYYY-MM-DD (default today) |
date_window_days | integer | Same carrier and amount with invoice dates this close counts as a low-confidence look-alike (default 3) |
duplicates_write_report Write the duplicate payment report
[ALLOW] Write duplicates.csv and .html (one row per group, by confidence, totals by vendor) into out_dir (default fairhaul-out/duplicates).
| Parameter | Type | Description |
|---|---|---|
payments * | string | AP payment history under --root (CSV, Excel or JSON), any number of years: vendor, vendor id, invoice number and date, amount, paid date, payment ref, PRO; credit memos as negative amounts |
as_of | string | Date to count ages from, YYYY-MM-DD (default today) |
date_window_days | integer | Same carrier and amount with invoice dates this close counts as a low-confidence look-alike (default 3) |
out_dir | string | Folder under --root for the report (default fairhaul-out/duplicates) |
duplicates_draft_recovery Draft a recovery
[ASK] Write drafts/recovery-<vendor>.md: a refund request listing each invoice the vendor was paid twice, with payment refs and dates. Includes only high-confidence groups unless confidence says otherwise. Marked DRAFT. Sending goes through duplicates_request_send (one click).
| Parameter | Type | Description |
|---|---|---|
payments * | string | AP payment history under --root (CSV, Excel or JSON), any number of years: vendor, vendor id, invoice number and date, amount, paid date, payment ref, PRO; credit memos as negative amounts |
vendor * | string | Vendor as named in the payments file |
as_of | string | Date to count ages from, YYYY-MM-DD (default today) |
confidence | array | Which confidence levels to include in the request (default high only) |
contact | string | Vendor accounts receivable contact |
date_window_days | integer | Same carrier and amount with invoice dates this close counts as a low-confidence look-alike (default 3) |
from | string | Your name and company |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/duplicates). |
duplicates_request_send Approve the recovery (one click)
[ASK · binding_send] After one named human click (even in Auto), record that the reviewed recovery draft is approved in recovery-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. A person on your team acts on it; the agent never does.
| Parameter | Type | Description |
|---|---|---|
draft * | string | Draft path returned by the draft tool |
draft_sha256 * | string | sha256 returned by the draft tool |
accept_open_issues | boolean | Set true, together with a note, to go ahead while open markers or issues remain. Default false (refused while any remain). |
note | string | Why it is fine to go ahead with open issues; required when accept_open_issues is true. Kept in the audit log. |
out_dir | string | Folder under --root for the files this writes (default fairhaul-out/duplicates). |
to | string | Who it goes to; must match the draft when the draft names someone |
ap_void_payment Ap void payment
[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Duplicate Payments never voids, reverses or offsets payments.
email_send Email send
[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Duplicate Payments never sends email.
erp_block_vendor Erp block vendor
[BLOCK · production_deploy] Listed so agents can see it is refused. Fairhaul Duplicate Payments never changes vendor records; a person merges or blocks them.
duplicates_recall Recall what this agent has learned
[ALLOW] Search this agent's own memory of the customer's setup: accepted facts (in use) and facts waiting for a person. Kinds: note (none (shown by recall only)); same_vendor (compares invoices under those vendor records with each other as one vendor in every duplicate search (more matches, never fewer)). Checks the memory file's hash chain; when it does not verify, no accepted fact is used.
| Parameter | Type | Description |
|---|---|---|
kind | string | Only facts of this kind (default all kinds) |
limit | integer | Most facts to return |
query | string | Text to look for |
status | string | current (default) = accepted, waiting, and accepted-but-unverified |
duplicates_learn Propose a fact to remember
[ALLOW] Propose one fact about the customer's setup for this agent to remember. It is stored as waiting and changes nothing until a named person accepts it with duplicates_accept_learning. Kinds: note (none (shown by recall only)); same_vendor (compares invoices under those vendor records with each other as one vendor in every duplicate search (more matches, never fewer)). Refuses credentials, personal identifiers and text that reads like instructions to an AI.
| Parameter | Type | Description |
|---|---|---|
kind * | string | What sort of fact this is (see recall for the kinds and what each changes) |
value * | object | The fact, in the shape of its kind (see recall for the kinds) |
note | string | Why, for the person who accepts it |
source_files | array | Files under --root this came from (their hashes are recorded) |
duplicates_accept_learning Accept or reject a learned fact
[ASK · accept_learning] A named person accepts or rejects a fact waiting in this agent's memory. Accepting makes it apply from the next run (see each kind's effect). Always needs a person's approval, even in Auto; the approver's name is recorded with the fact.
| Parameter | Type | Description |
|---|---|---|
decision * | string | accept puts the fact in use; reject keeps it out |
id * | string | Fact id from recall or learn, e.g. MEM-1a2b3c4d5e6f |
reason | string | Why, in a sentence. Kept in the memory file and the audit log |
duplicates_retire_memory Retire a learned fact
[ASK · accept_learning] A named person stops an accepted fact from applying. The history stays in the file. Always needs a person's approval, even in Auto.
| Parameter | Type | Description |
|---|---|---|
id * | string | Fact id from recall or learn, e.g. MEM-1a2b3c4d5e6f |
reason * | string | Why the fact no longer holds. Kept in the memory file and the audit log |