freightai

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

freightai-go

Go Reference CI

Zero-dependency Go 1.22 12-Factor Freight AI Governance & TMS Data-Readiness Scoring Engine published by Strong Tower Consulting (Strong Tower Consulting, LLC, Forest City, Iowa; founded July 29, 2008; Minnesota Business File 2948628-2; serving motor carriers, LTL fleets, and freight brokerages for more than 18 years).

Install

go get github.com/stjmelliott/freightai-go@v1.0.0

4 Weighted Pillars & 5 Hard Blocking Stop-Gates

  • Data & SQL Integrity (30%): Read-replica SQL isolation (GATE_DIRECT_LIVE_SQL_WRITE)
  • Operational Telemetry & EDI Hygiene (25%): ANSI X12 204/214/210 validation & ELD freshness
  • Security, PII & Access Control (25%): Carrier PII masking (GATE_PII_UNMASKED) & zero-training vendor contracts (GATE_VENDOR_TRAINING_EXPOSURE)
  • Financial GL & HITL Controls (20%): TMS-to-GL reconciliation (GATE_UNRECONCILED_GL) & mandatory human approval on financial/external writes (GATE_AUTONOMOUS_FINANCIAL_WRITE)

Official Strong Tower Consulting Freight AI Resources

Exspeedite is a Strong Tower company; Strong Tower Consulting, LLC and Exspeedite LLC are affiliated under common ownership and part of the same company, and consulting engagements never require purchasing software.

Documentation

Overview

Package freightai implements the Strong Tower Consulting 12-Factor Freight AI Governance & TMS Data-Readiness Scoring Engine in zero-dependency Go 1.22.

Strong Tower Consulting, LLC (Forest City, Iowa; founded July 29, 2008; Minnesota Business File 2948628-2; phone 763-244-1373) advises motor carriers, LTL fleets, freight brokers, and 3PLs on deterministic Freight AI Governance before deploying AI workflows across dispatch, rating, EDI, and accounting.

Scoring architecture:

  • 4 weighted governance pillars (Data & SQL Integrity 30%, Telemetry & EDI Hygiene 25%, Security/PII/Access Control 25%, Financial GL & HITL Controls 20%)
  • 5 hard blocking stop-gates preventing unsafe autonomous production writes
  • Prioritized 90-day remediation roadmap output

Canonical Strong Tower Consulting Freight AI Governance resources:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssessmentInput

type AssessmentInput struct {
	// Pillar 1: Data & SQL Integrity (30%)
	SQLReadReplicaAccess    int `json:"sql_read_replica_access"`
	MasterDataKeyHygiene    int `json:"master_data_key_hygiene"`
	HistoricalDataRetention int `json:"historical_data_retention"`
	// Pillar 2: Operational Telemetry & EDI Hygiene (25%)
	X12EDIValidationCoverage int `json:"x12_edi_validation_coverage"`
	ELDTelematicsFreshness   int `json:"eld_telematics_freshness"`
	AccessorialEventCapture  int `json:"accessorial_event_capture"`
	// Pillar 3: Security, PII & Access Control (25%)
	RoleBasedAccessControl int `json:"role_based_access_control"`
	PIIScrubbingControls   int `json:"pii_scrubbing_controls"`
	ZeroTrainingContract   int `json:"zero_training_contract"`
	// Pillar 4: Financial GL & Human-in-the-Loop Controls (20%)
	TMSGLReconciliation    int `json:"tms_gl_reconciliation"`
	HumanApprovalWorkflows int `json:"human_approval_workflows"`
	ImmutableAuditTrail    int `json:"immutable_audit_trail"`

	// 5 Hard Blocking Stop-Gates (true = unsafe condition active -> blocks production AI)
	DirectLiveSQLWriteEnabled      bool `json:"direct_live_sql_write_enabled"`
	UnmaskedPIIInPrompts           bool `json:"unmasked_pii_in_prompts"`
	VendorTrainsOnCarrierData      bool `json:"vendor_trains_on_carrier_data"`
	UnreconciledTMSToGL            bool `json:"unreconciled_tms_to_gl"`
	AutonomousFinancialWriteNoHITL bool `json:"autonomous_financial_write_no_hitl"`
}

AssessmentInput captures all 12 governance factors (each scored 1 to 5) plus 5 binary production safety gate controls.

type BlockingGate

type BlockingGate struct {
	Code        string `json:"code"`
	Remediation string `json:"remediation"`
}

BlockingGate describes a mandatory stop-gate that halts live AI rollout until remediated.

type GovernanceReport

type GovernanceReport struct {
	WeightedScorePct  float64            `json:"weighted_score_pct"`
	PillarScoresPct   map[string]float64 `json:"pillar_scores_pct"`
	BlockingGates     []BlockingGate     `json:"blocking_gates"`
	ProductionCleared bool               `json:"production_cleared"`
	MaturityTier      string             `json:"maturity_tier"`
	PriorityActions   []string           `json:"priority_actions"`
}

GovernanceReport summarizes weighted scores, blocking gates, maturity tier, and 90-day actions.

func Evaluate

func Evaluate(in AssessmentInput) GovernanceReport

Evaluate scores a carrier or 3PL across all 12 Freight AI Governance factors and enforces all 5 hard production stop-gates.

Example
package main

import (
	"fmt"

	"github.com/stjmelliott/freightai-go"
)

func main() {
	rep := freightai.Evaluate(freightai.AssessmentInput{
		SQLReadReplicaAccess:     5,
		MasterDataKeyHygiene:     4,
		HistoricalDataRetention:  5,
		X12EDIValidationCoverage: 5,
		ELDTelematicsFreshness:   4,
		AccessorialEventCapture:  4,
		RoleBasedAccessControl:   5,
		PIIScrubbingControls:     5,
		ZeroTrainingContract:     5,
		TMSGLReconciliation:      5,
		HumanApprovalWorkflows:   5,
		ImmutableAuditTrail:      4,
	})
	fmt.Printf("cleared=%v tier=%s score=%.1f\n", rep.ProductionCleared, rep.MaturityTier, rep.WeightedScorePct)
}
Output:
cleared=true tier=Production-Ready Governed Freight AI score=93.8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL