# LoadMaster (Ghost Developer Studio)

- **Event:** [Meta Global AI Developer Hackathon](https://cerebralvalley.ai/e/meta-ai-developer-hackathon)
- **When:** Oct 26, 12:00 PM – Nov 4, 9:00 PM (EST)
- **Where:** Online
- **Team:** [Ryan Cotten](https://cerebralvalley.ai/u/ghostdev)
- **GitHub:** https://github.com/littlestjames82-sys/loadmaster
- **Demo video:** https://www.youtube.com/watch?v=5zYO0hLyHgo
- **Gallery:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery
- **Page:** https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1278

LoadMaster checks a loaded trailer against the federal cargo securement rules (49 CFR 393) from photos, and tells the driver in plain words what passes, what to fix first, and what a photo honestly cannot tell. It is built on Meta AI: SAM 3.1 segments and measures the load through the Meta Model API, and Muse Spark cross-checks every photo and writes the fix-first report.

Built with Meta's AI models, end to end:

- Meta SAM 3.1 (Meta Model API) segments the trailer bed, the axles, and every piece of cargo in the photo, mask by mask, each with a confidence score. Because the driver enters the trailer bed length once, those masks become calibrated measurements: rear overhang in inches, the load's bulk position against the axle line, and tarp coverage as a percentage.
- A deterministic rules engine built on 49 CFR 393 turns that geometry into verdicts: PASS, CHECK THIS, or COULD NOT TELL. The model never sets a verdict. When a photo cannot decide a check (strap tension, tie-down ratings, and load weight cannot be verified from a photo), the app says so instead of guessing.
- Muse Spark (Meta Model API) works two jobs. It reads each photo independently as a cross-check: where Spark disagrees with the SAM geometry, the verdict is demoted to CHECK THIS, and disagreement can only move a verdict down, never up. And it writes the "What to fix first" report in plain words from the rules engine's verdicts, risk-ranked, with the minimum fix for each flag.
- When SAM misses a tie-down (thin straps are its known weak spot), the driver taps it on the photo and every dependent verdict recomputes instantly, with a WHAT CHANGED delta. No new photo and no second segmentation run.

LoadMaster is for people who haul and have no safety department: firewood, equipment, and freight on their own trailers, held to rules most drivers have never read. Cargo securement was the official vehicle focus area of CVSA Roadcheck 2026 and still ranked fourth for vehicle out-of-service violations, with 1,724 violations in three days.

Built solo during the hackathon (Oct 26 to Nov 4, 2026) by Ryan Cotten, Ghost Developer Studio, Oakdale, Tennessee. Everything in the repo was built in that window: the SAM 3.1 multi-prompt segmentation pipeline and mask geometry, the calibrated measurement layer, the deterministic 49 CFR 393 rules engine with its CFR-derived unit tests (190 automated tests), the Muse Spark cross-check and report layer, tap-to-correct recheck with delta, guided capture, the printable report card, and the judges' sample gallery of real runs. Reused libraries are named in the repo README (FastAPI, Pillow, meta-sam-parser, Modal hosting); no pre-event project code is included.

Live app: https://littlestjames82-sys--loadmaster-fastapi-app.us-east.modal.run
Sample runs: https://littlestjames82-sys--loadmaster-fastapi-app.us-east.modal.run/gallery
Public repo: https://github.com/littlestjames82-sys/loadmaster

## More from Meta Global AI Developer Hackathon

- [ClearFirst](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1275)
- [EarCaster](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1276)
- [Childhood Confidence Learning Lab](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1277)
- [Breakfast](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1279)
- [DPM Agent](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1280)
- [Thakhin Bwor](https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1281)

---

Markdown version of https://cerebralvalley.ai/e/meta-ai-developer-hackathon/hackathon/gallery/1278. Site index for agents: https://cerebralvalley.ai/llms.txt · full text: https://cerebralvalley.ai/llms-full.txt
