Fairhaul Standard Freight Cost

v0.1.0
io.github.fpavia111-creator/fairhaul-standard-freight-cost Checked 4 hours ago Published 3 days ago

Compares the standard freight built into item costs with what freight actually cost per unit…

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)

costing_compare Compare freight standards with actual

[ALLOW] Per SKU: units, actual freight, standard, actual per unit, variance in money and percent, month-by-month per unit and trend, status, proposed standard with basis, and inventory revaluation estimate.

ParameterTypeDescription
actuals *stringActual freight by SKU: SKU, units, freight, optionally ship date and shipment id (allocation.csv from Fairhaul Freight Allocation works as is)
items *stringItem master under --root: SKU, standard freight per unit, optionally description, units on hand and standard cost
min_unitsintegerFewest units shipped before Fairhaul Standard Freight Cost proposes a new standard (default 20)
threshold_pctnumberPercent difference from standard that counts as stale (default 10)

costing_write_report Write the freight standard report

[ALLOW] Write costing-standards.csv and .html (one row per SKU) into out_dir (default fairhaul-out/costing).

ParameterTypeDescription
actuals *stringActual freight by SKU: SKU, units, freight, optionally ship date and shipment id (allocation.csv from Fairhaul Freight Allocation works as is)
items *stringItem master under --root: SKU, standard freight per unit, optionally description, units on hand and standard cost
min_unitsintegerFewest units shipped before Fairhaul Standard Freight Cost proposes a new standard (default 20)
out_dirstringFolder under --root for the report (default fairhaul-out/costing)
threshold_pctnumberPercent difference from standard that counts as stale (default 10)

costing_draft_standard_update Draft a standard update

[ASK] Write drafts/standard_update-<name>.md: the items whose freight standard moved past the threshold, the proposed standard and its basis, units on hand and the revaluation estimate. Marked DRAFT. Loading it goes through costing_request_apply (one click); a person changes the ERP.

ParameterTypeDescription
actuals *stringActual freight by SKU: SKU, units, freight, optionally ship date and shipment id (allocation.csv from Fairhaul Freight Allocation works as is)
items *stringItem master under --root: SKU, standard freight per unit, optionally description, units on hand and standard cost
effectivestringDate the new standards take effect
fromstringYour name
min_unitsintegerFewest units shipped before Fairhaul Standard Freight Cost proposes a new standard (default 20)
namestringName for this update (default freight-standards)
out_dirstringFolder under --root for the files this writes (default fairhaul-out/costing).
systemstringERP or costing system
threshold_pctnumberPercent difference from standard that counts as stale (default 10)
tostringWho loads the standards

costing_request_apply Approve the standard update (one click)

[ASK · production_deploy] After one named human click (even in Auto), record that the reviewed standard update draft is approved in standard_update-requests.csv. Tied to draft_sha256; refuses while open markers remain unless accept_open_issues is true with a note. Your cost accountant 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/costing).
tostringWho it goes to; must match the draft when the draft names someone

erp_update_item_cost Erp update item cost

[BLOCK · production_deploy] Listed so agents can see it is refused. Fairhaul Standard Freight Cost never changes standard costs in your ERP.

erp_revalue_inventory Erp revalue inventory

[BLOCK · move_money] Listed so agents can see it is refused. Fairhaul Standard Freight Cost never revalues inventory or posts the variance.