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 ¶
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.3