Fairhaul Carrier Vetting

v0.1.0
io.github.fpavia111-creator/fairhaul-carrier-vetting Checked 2 days ago Published 5 days ago

Checks your carrier master and booked loads for warning signs of fraud and double brokering

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.

ParameterTypeDescription
path *stringA CSV, TSV, Excel .xlsx, JSON or JSONL file under the root
asstringSource kind to read it as (default: every kind this agent declares, best match first)
sheetstring | integerExcel sheet name or 0-based index (default: first visible sheet)

vetting_vet Check carriers for warning signs

[ALLOW] Score each carrier on weighted warning signs with the detail behind each, and list booked loads with the action to take before pickup (hold, verify or none).

ParameterTypeDescription
carriers *stringCarrier master under --root (TMS or AP vendor export): id, name, MC, DOT, phone, email, address, remit-to, bank last 4, date payment details changed, authority date, insurance expiry, safety rating, s…
as_ofstringDate to judge from (default today)
loadsstringOptional booked loads: load id, carrier id, pickup date, cargo value, and the dispatch phone and email used for this load
new_authority_daysintegerAuthority younger than this many days is a signal (default 180)

vetting_write_report Write the carrier vetting report

[ALLOW] Write vetting-carriers.csv and .html (one row per carrier with its signals; loads to hold and verify) into out_dir (default fairhaul-out/vetting).

ParameterTypeDescription
carriers *stringCarrier master under --root (TMS or AP vendor export): id, name, MC, DOT, phone, email, address, remit-to, bank last 4, date payment details changed, authority date, insurance expiry, safety rating, s…
as_ofstringDate to judge from (default today)
loadsstringOptional booked loads: load id, carrier id, pickup date, cargo value, and the dispatch phone and email used for this load
new_authority_daysintegerAuthority younger than this many days is a signal (default 180)
out_dirstringFolder under --root for the report (default fairhaul-out/vetting)

vetting_draft_verification_request Draft a verification request

[ASK] Write drafts/verification_request-<carrier>.md: a polite request to one carrier for the documents that would clear its warning signs (insurance certificate from the agent, notice of assignment, payment detail confirmation), with an internal note to remove before sending. Marked DRAFT. Sending goes through vetting_request_send (one click).

ParameterTypeDescription
carrier_id *stringCarrier to write to
carriers *stringCarrier master under --root (TMS or AP vendor export): id, name, MC, DOT, phone, email, address, remit-to, bank last 4, date payment details changed, authority date, insurance expiry, safety rating, s…
as_ofstringDate to judge from (default today)
fromstringYour name
loadsstringOptional booked loads: load id, carrier id, pickup date, cargo value, and the dispatch phone and email used for this load
new_authority_daysintegerAuthority younger than this many days is a signal (default 180)
out_dirstringFolder under --root for the files this writes (default fairhaul-out/vetting).
tostringContact you already held for this carrier, not one from a change request

vetting_request_send Approve the verification request (one click)

[ASK · binding_send] After one named human click (even in Auto), record that the reviewed verification request draft is approved in verification_request-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. Your carrier relations or compliance person acts on it; the agent never does.

ParameterTypeDescription
draft *stringDraft path returned by the draft tool
draft_sha256 *stringsha256 returned by the draft tool
accept_open_issuesbooleanSet true, together with a note, to go ahead while open markers or issues remain. Default false (refused while any remain).
notestringWhy it is fine to go ahead with open issues; required when accept_open_issues is true. Kept in the audit log.
out_dirstringFolder under --root for the files this writes (default fairhaul-out/vetting).
tostringWho it goes to; must match the draft when the draft names someone

tms_block_carrier Tms block carrier

[BLOCK · production_deploy] Listed so agents can see it is refused. Fairhaul Carrier Vetting never blocks or deactivates a carrier. A person decides after verifying.

ap_change_remit_to Ap change remit to

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Carrier Vetting never changes payment details.

email_send Email send

[BLOCK · binding_send] Listed so agents can see it is refused. Fairhaul Carrier Vetting never emails carriers.

vetting_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)); watch_contact (adds the on_watch_list warning sign (high) to every carrier in the master, and a hold reason to every booked load, that uses this detail (more warning signs, never fewer)). Checks the memory file's hash chain; when it does not verify, no accepted fact is used.

ParameterTypeDescription
kindstringOnly facts of this kind (default all kinds)
limitintegerMost facts to return
querystringText to look for
statusstringcurrent (default) = accepted, waiting, and accepted-but-unverified

vetting_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 vetting_accept_learning. Kinds: note (none (shown by recall only)); watch_contact (adds the on_watch_list warning sign (high) to every carrier in the master, and a hold reason to every booked load, that uses this detail (more warning signs, never fewer)). Refuses credentials, personal identifiers and text that reads like instructions to an AI.

ParameterTypeDescription
kind *stringWhat sort of fact this is (see recall for the kinds and what each changes)
value *objectThe fact, in the shape of its kind (see recall for the kinds)
notestringWhy, for the person who accepts it
source_filesarrayFiles under --root this came from (their hashes are recorded)

vetting_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.

ParameterTypeDescription
decision *stringaccept puts the fact in use; reject keeps it out
id *stringFact id from recall or learn, e.g. MEM-1a2b3c4d5e6f
reasonstringWhy, in a sentence. Kept in the memory file and the audit log

vetting_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.

ParameterTypeDescription
id *stringFact id from recall or learn, e.g. MEM-1a2b3c4d5e6f
reason *stringWhy the fact no longer holds. Kept in the memory file and the audit log