#5032 Skill: software-opportunity-scanner - Pro Sports Teams

#5032 Skill: software-opportunity-scanner - Pro Sports Teams

Skill: software-opportunity-scanner

#5032 Pro Sports Teams

Stage 1: Domain Friction and Morphological Matrix

Structural Software Gap Professional sports franchises operate as bifurcated enterprises: the front office and coaching staff are buried in fragmented, sport-specific data silos (tracking feeds, video libraries, and medical EHRs), while the business side runs on generic enterprise CRMs and fragile Excel models. Because the total addressable market of top-tier pro teams is small, major software vendors either build bloated, one-size-fits-all platforms or ignore high-friction operational edge cases—leaving six-figure staff to manually reconcile contracts, compliance rules, sponsorship deliverables, and athlete load data across disconnected files.

DimensionABCD
Workflow BottleneckSalary Cap & CBA Compliance Auditing (modeling trades, incentives, and roster moves against league rules)Sponsorship Proof-of-Performance Verification (auditing broadcast & in-venue brand exposure against contract minimums)Cross-Department Injury & Load Reconciliation (aligning medical clearances, practice reps, and game-day availability)Pre-Draft & Free-Agent Scouting Synthesis (reconciling conflicting scout reports, medical flags, and film tags)
Trapped Artifact400+ page Collective Bargaining Agreement (CBA) PDFs + player contract addendum PDFsMulti-hour broadcast .mp4 feeds + LED ribbon board logs + sponsorship PDF contractsUnstructured athletic trainer SOAP notes + Catapult/Kinexon .csv wearable exports + MRI radiology PDFsFree-text scout voice memos + .xlsx grading sheets + Hudl/Catapult .xml video clip tags
Technical EnablerDeterministic rule-engine compilation (policy-as-code) + schema-gated PDF extractionComputer-vision logo/signage frame detection + automated contract-clause matchingCross-document entity/event graph linking + temporal anomaly detectionMulti-modal transcript/video alignment + contradiction-detection diffing
Commercial TriggerPreventing league cap penalties, forfeited draft picks, or dead-cap miscalculationsRecovering unbilled make-goods and protecting $10M+ annual sponsorship renewalsReducing soft-tissue injury games lost (costing $500K–$2M+ per starter per missed game)Eliminating costly draft busts and cutting 20+ hours/week of manual front-office prep

Stage 2: TRIZ Function-Oriented Search (FOS)

  1. Abstract Function: Validate complex, interdependent financial transactions against a shifting, multi-hundred-page regulatory rulebook before execution.

    • Mature Source Domain: Financial Clearinghouses & Cloud Infrastructure Compliance (DevSecOps).

    • Proven Mechanism: Policy-as-Code Linters & Pre-Commit Dry-Run Simulators (e.g., Open Policy Agent / Terraform plan), which compile legal/compliance rules into deterministic unit tests that flag violations before a transaction is committed.

  2. Abstract Function: Audit continuous, high-volume visual media streams to verify contractual delivery of physical or digital assets.

    • Mature Source Domain: Programmatic Ad-Tech & Retail Shelf-Audit Vision Systems.

    • Proven Mechanism: Automated Impression Verification & SLA Reconciliation Ledgers, which run frame-level object detection against contracted impression floors and auto-generate auditable proof-of-delivery (PoD) certificates.

  3. Abstract Function: Detect subtle, high-risk contradictions across asynchronous, multi-author clinical and telemetry logs.

    • Mature Source Domain: Hospital Pharmacovigilance & Aerospace Fault-Tree Monitoring.

    • Proven Mechanism: Deterministic Clinical Decision Support (CDS) & Cross-Modal Conflict Alerts, which normalize unstructured notes and sensor streams onto a shared timeline to flag threshold breaches or conflicting clearances.

  4. Abstract Function: Surface hidden disagreements and bias patterns across distributed, qualitative human evaluations of the same asset.

    • Mature Source Domain: Quantitative Credit Underwriting & Code Review Analytics.

    • Proven Mechanism: Structured Diffing & Evaluator Calibration Matrices, which map qualitative commentary onto fixed rubric dimensions and highlight where two reviewers contradict each other on the same underlying evidence.

Stage 3: Intersection Synthesis and Commercial Filtering

1. CapLint — Pre-Trade CBA & Contract Policy Compiler

  • Matrix Intersection: [A: Salary Cap & CBA Compliance Auditing] x [A: CBA & Contract Addendum PDFs] x [A: Policy-as-Code & Schema-Gated Extraction] x [A: Preventing Cap Penalties & Dead-Cap Errors]

  • FOS Source: DevSecOps Policy-as-Code Linters & Terraform plan Dry-Run Simulators.

  • The Problem: Front offices model complex multi-team trades, escalator clauses, and likely-to-be-earned (LTBE) incentives in fragile, custom Excel workbooks. One misread CBA exception or forgotten bonus trigger can void a deadline trade or trigger league fines and lost draft picks.

  • The Product:

    • Input: League CBA PDFs, team cap sheet CSVs, and player contract addendum PDFs.

    • Transformation: Extracts contract clauses into a strict JSON schema and runs proposed roster/trade scenarios against a deterministic, version-controlled CBA rule engine.

    • Output: A pass/fail "pre-flight" compliance diff showing exact cap-space deltas across 5 years, triggered CBA exceptions, and specific clause citations for any violation.

  • Why They Pay: A single avoided dead-cap miscalculation or blown deadline trade is worth millions in competitive and financial value; GMs and capologists will pay $25K–$75K/year for deterministic certainty.

2. SponsorProof — Automated Broadcast & Venue SLA Auditor

  • Matrix Intersection: [B: Sponsorship Proof-of-Performance Verification] x [B: Broadcast MP4 Feeds & Sponsorship PDFs] x [B: CV Logo Detection & Contract Matching] x [B: Protecting $10M+ Sponsorship Renewals]

  • FOS Source: Programmatic Ad-Tech Impression Verification & Proof-of-Delivery Ledgers.

  • The Product:

    • Input: Sponsorship agreement PDFs (specifying minimum LED minutes, camera-visible signage, or broadcast mentions) and post-game broadcast .mp4 + venue LED playback logs.

    • Transformation: Runs computer-vision logo detection and audio transcription against the extracted contractual minimums, flagging under-delivered assets before the season ends.

    • Output: An auditable, timestamped Proof-of-Performance packet (clipped video reels + exact exposure seconds) per sponsor, plus a "make-good" alert queue for account reps.

  • The Problem: Corporate partnership teams spend hundreds of manual hours scrubbing game tape to prove sponsors got what they paid for, and often discover under-delivery too late to schedule make-good inventory—leading to painful renewal discounts.

  • Why They Pay: Directly protects 7- and 8-figure sponsorship renewals and eliminates 15+ hours/week of junior coordinator grunt work per team.

3. LoadGuard — Cross-Modal Injury & Workload Conflict Detector

  • Matrix Intersection: [C: Cross-Department Injury & Load Reconciliation] x [C: Trainer SOAP Notes, Wearable CSVs, & MRI PDFs] x [C: Cross-Document Graph Linking & Anomaly Detection] x [C: Reducing Soft-Tissue Injury Games Lost]

  • FOS Source: Hospital Pharmacovigilance & Aerospace Fault-Tree Monitoring.

  • The Problem: Strength coaches look at Catapult/Kinexon GPS load CSVs, trainers write unstructured SOAP notes, and team doctors read MRI PDFs. Because these systems don't talk, a player with a minor hamstring flag in a trainer's note can get pushed through a high-sprint practice block, triggering a 6-week tear.

  • The Product:

    • Input: Daily wearable .csv exports, athletic trainer SOAP notes, and radiology/medical clearance PDFs.

    • Transformation: Maps every athlete's medical restrictions and acute-to-chronic workload spikes onto a unified temporal graph, running deterministic conflict checks (e.g., hamstring tightness noted < 48h ago + planned high-speed running > 85% max).

    • Output: A pre-practice "Red/Amber Conflict Brief" listing only the specific athletes whose scheduled drill load contradicts their latest medical or biomechanical signals.

  • Why They Pay: Preventing just one soft-tissue injury to a starting player saves $500K–$2M+ in sunk salary per missed game and preserves playoff odds.

4. ScoutDiff — Scouting Contradiction & Film Alignment Engine

  • Matrix Intersection: [D: Pre-Draft & Free-Agent Scouting Synthesis] x [D: Scout Voice Memos, Excel Grades, & Video XML Tags] x [D: Multi-Modal Alignment & Contradiction Diffing] x [D: Eliminating Draft Busts & Prep Time]

  • FOS Source: Quantitative Credit Underwriting & Code Review Calibration Matrices.

  • The Problem: Before a draft or free-agency window, a front office accumulates dozens of conflicting voice memos, spreadsheet grades, and video tags for the same prospect. Directors of Scouting waste weeks trying to figure out why two scouts graded the same player differently—and whether it's a real flaw or scout bias.

  • The Product:

    • Input: Regional scout voice memos, .xlsx grading sheets, and Hudl/Catapult .xml game-clip timestamps.

    • Transformation: Transcribes memos, normalizes trait ratings, aligns comments to the exact play timestamps, and computes a "disagreement matrix" highlighting where scouts contradict each other on the same trait.

    • Output: A 1-page prospect conflict dossier linking each disputed trait directly to the 3–5 specific game clips that explain the split, alongside each scout's historical grading bias.

  • Why They Pay: Cuts 20+ hours/week of pre-draft synthesis for high-paid executives and reduces the risk of multi-million-dollar draft or free-agent busts.

5. ClauseWatch — Live In-Game Incentive & Contract Trigger Tracker

  • Matrix Intersection: [A: Salary Cap & CBA Compliance Auditing] x [A: Player Contract Addendum PDFs] x [C: Cross-Document Graph Linking & Anomaly Detection] x [A: Preventing Cap Penalties & Dead-Cap Errors]

  • FOS Source: Financial Clearinghouse Real-Time Margin & Covenant Monitoring.

  • The Problem: Pro player contracts are loaded with snap-count, games-played, and statistical escalators (e.g., hitting 65% of defensive snaps triggers a $1.5M bonus that immediately hits next year's cap). Coaches and front offices are frequently blindsided late in the season when a player crosses a threshold during a blowout game.

  • The Product:

    • Input: Player contract incentive addenda PDFs + live/post-game official league play-by-play and snap-count feeds.

    • Transformation: Compiles every active roster player's statistical and playing-time escalators into live progress trackers with proximity thresholds.

    • Output: A weekly front-office "Proximity Alert" digest (e.g., Player X is 14 snaps away from triggering a $1.2M 2027 cap hit) with automated cap-impact projections.

  • Why They Pay: Gives GMs real-time visibility into millions of dollars in contingent liabilities before they lock in, enabling proactive contract renegotiations or rotation management.


Would SponsorProof work for College Sports as well?

Yes—in fact, College Sports is arguably a better initial wedge market for SponsorProof than Pro Sports.

While pro franchises have larger individual budgets, college athletics suffers from a much sharper operational bottleneck, a larger buyer pool, and a massive blind spot in how enterprise media-valuation tools cover non-national broadcasts.

Why College Sports Is a Stronger Fit

  • 3x–5x Larger Market with Agency Leverage: Instead of selling to ~125 major pro franchises, there are 350+ NCAA Division I athletic departments. More importantly, most schools outsource sponsorship fulfillment to Multimedia Rights (MMR) holders like Learfield, Playfly Sports, and Van Wagner. Winning a single pilot with an MMR agency unlocks dozens of campuses at once.

  • Severe Staffing Constraints: Pro teams employ dedicated partnership analytics staff. Campus MMR offices rely on 1–2 account coordinators and student interns to manually scrub game replays, snap photos of stadium LED ribbon boards, and stitch together end-of-season recap decks in PowerPoint.

  • The "Tier 3" Streaming Blind Spot: Enterprise computer-vision vendors (like Relo Metrics or Blinkfire) are priced for national TV broadcasts. Hundreds of college games air on ESPN+, SEC Network+, Big Ten Plus, or local school streams—where sponsors still buy signage and broadcast mentions, but nobody audits delivery because enterprise tools don't ingest those feeds.

  • Natural Expansion into NIL Compliance: The exact same contract-to-media verification engine solves a painful new problem: NIL (Name, Image, and Likeness) deliverable auditing. Collectives and brands pay athletes for specific Instagram/TikTok posts, hashtag usage, and appearance deliverables, and currently track fulfillment manually in spreadsheets.

How the Product Adapts: Pro vs. College

DimensionPro SportsCollege Sports
Primary BuyerVP of Corporate Partnerships (Team)General Manager of Campus Property (Learfield / Playfly) or AD Business Office
Trapped ArtifactsNational broadcast .mp4, stadium LED logs, 7-figure sponsorship PDFsESPN+/streaming replays, local radio reads, stadium LED logs, NIL contract PDFs + social URLs
Key Wedge FeatureHigh-precision broadcast exposure valuation & make-good alertsAutomated end-of-season Sponsor Recap Deck generator (eliminating intern grunt work)
Price Point$35K–$75K / year per franchise$8K–$20K / year per campus (or enterprise license to MMR agency)

The cleanest entry point is pitching SponsorProof to a single mid-major or Power 4 campus property as an "Automated Proof-of-Performance & Recap Deck Engine" for basketball and football—then expanding into their NIL collective once the core ingestion pipeline is running.


Map out the NIL Deliverable Auditor extension

While existing NIL platforms focus on athlete discovery and marketplaces (Opendorse, MOGL, NIL Club) or NCAA disclosure paperwork (Spry, Athliance), the operational breakdown happens after the contract is signed. Industry data shows that even in managed campaigns, 20% to 30% of opted-in athletes fail to post or miss specific deliverable terms.

The NIL Deliverable Auditor extends SponsorProof’s deterministic contract-to-media engine to automate post-signature verification and payout gating for NIL collectives, Multimedia Rights (MMR) agencies, and local brands.

1. Exact Inputs (Trapped Artifacts)

  • Signed NIL Agreement PDFs / Collective Term Sheets: Unstructured contracts specifying posting windows, required hashtags, FTC disclosures, exclusivity clauses, and in-person appearances.

  • Athlete Social Feeds & Submitted URLs: Public Instagram, TikTok, X, and YouTube links (plus ephemeral Story screenshots/screen-recordings submitted via a lightweight SMS/web upload link).

  • Physical Appearance Proof: Geotagged check-in photos, event sign-in sheets, or sponsor-rep QR scans for autograph signings, camps, and charity events.

2. Deterministic Verification Checks

Instead of a coordinator manually checking 50 athletes' Instagram accounts every Friday, the engine compiles each contract into a JSON Deliverable Spec and runs five automated checks:

Verification LayerWhat the Engine ChecksFailure / Flag Condition
1. Temporal & CadencePost timestamp vs. contracted window (e.g., "between 48h and 4h before kickoff").Missed deadline or posted outside the active campaign window.
2. Caption & FTC ComplianceRegex/NLP scan for required @mentions, #hashtags, promo codes, and mandatory FTC tags (#ad, #sponsored).Missing #ad disclosure (legal risk) or misspelled brand handle/promo code.
3. Visual & Audio PresenceComputer-vision logo/product detection on video frames + Whisper audio transcript check for required talking points.Product held off-camera, logo obscured, or mandatory call-to-action omitted from voiceover.
4. Persistence (Anti-Deletion)Automated re-crawl at T+7 days and T+30 days (or contract end).Athlete archived or deleted the post immediately after receiving payout.
5. Category ExclusivityCross-scans the athlete’s recent feed against competing brands in the same category (e.g., beverage or auto dealer conflicts).Athlete posted a rival brand within the contracted exclusivity blackout window.

3. Outputs & Workflow Triggers

  • Payout Release Gate (Pass/Fail Ledger): Outputs a deterministic APPROVED_FOR_PAYOUT or HOLD_PENDING_FIX status per deliverable, ready to export as a CSV or webhook into accounting/escrow tools (Bill.com, Stripe, or QuickBooks).

  • Automated Athlete Fix-It Nudge: When a check fails (e.g., missing #ad or wrong hashtag), generates a specific, plain-English SMS/email prompt telling the athlete the exact edit needed to unlock their check.

  • Sponsor / Collective Audit Packet: A single, timestamped PDF containing archived screenshots, video clips, engagement snapshots, and compliance pass/fail logs—serving as both a brand recap and an audit trail for collective governance.

4. Why Buyers Pay (Quantifiable ROI)

  • Eliminates Wasted Spend: Prevents paying out retainers or per-post fees to the 20–30% of athletes who miss deliverables, post late, or delete content early.

  • Cuts Coordinator Burnout: Replaces 10–15 hours/week of manual social media babysitting and screenshot-gathering across a 100-athlete roster.

  • Protects Legal & Tax Standing: Collectives and schools face strict scrutiny to prove NIL payments are tied to legitimate, fulfilled commercial deliverables rather than "pay-for-play." An immutable, timestamped verification ledger is their best defense.


Use additive-software-architect to design a contract-first Phase 0 architecture for the SponsorProof NIL Deliverable Auditor.

Stage 1: Iterative Refinement Loop (Active — Awaiting READY)

Per the contract-first workflow, no application code or Phase 0 schemas will be generated until all open ambiguities and schema-churn risks are resolved and you reply READY.

1. spec_draft

  • Vision: A deterministic, contract-to-media compliance engine (SponsorProof NIL Deliverable Auditor) that compiles signed NIL agreements into executable verification rules, audits athlete social/appearance deliverables across five deterministic checks, gates payout release, and generates immutable audit packets.

  • Target Platform / Stack (Proposed Default): Local-first / self-hosted Python backend (FastAPI + Pydantic v2 + SQLite3 in WAL mode or PostgreSQL) with a lightweight vanilla HTML/CSS/JS review dashboard; pluggable LLM/VLM extraction layer (Western models only, e.g., Gemini API or local Ollama) strictly bounded by Pydantic schemas.

  • Core Entities:

    • Organization (NIL Collective, MMR Agency, or Brand)

    • Athlete (roster profile, verified social handles, payout identifier)

    • Contract (source PDF artifact, effective dates, exclusivity categories, total value)

    • DeliverableSpec (compiled, machine-checkable rule derived from a Contract: platform, window, required tags/mentions, FTC flags, persistence duration)

    • SubmissionArtifact (submitted URL, ephemeral Story upload, or geotagged appearance check-in)

    • VerificationRun (immutable pass/fail audit record across Temporal, Caption/FTC, Visual/Audio, Persistence, and Exclusivity checks)

    • PayoutGate (HOLD_PENDING_SUBMISSION, HOLD_PENDING_FIX, APPROVED_FOR_PAYOUT, PAID, CLAWBACK_FLAGGED)

  • User Roles:

    • Compliance Coordinator (uploads contracts, reviews flagged exceptions, approves overrides, exports payout ledgers/audit packets)

    • Athlete (receives fix-it nudges, submits ephemeral Story screenshots/recordings or appearance check-ins via tokenized magic link—no full account required)

  • Primary Workflows:

    1. Contract PDF ingestion → schema-gated extraction → human approval of compiled DeliverableSpec.

    2. Submission ingestion (URL or Story upload) → 5-layer verification pipeline → PayoutGate state transition.

    3. Failure path → automated plain-English fix-it nudge → athlete resubmission.

    4. Scheduled T+7 / T+30 persistence re-crawl → CLAWBACK_FLAGGED if deleted/archived.

    5. Export of APPROVED_FOR_PAYOUT CSV/webhook + timestamped PDF Audit Packet.

  • Constraints: Deterministic rule evaluation (LLMs extract contracts and transcribe audio, but pass/fail gates are evaluated by deterministic code/regex/timestamps). Immutable audit trail for NCAA/IRS governance.

  • Non-Goals (Explicitly Out of Scope):

    • Athlete discovery marketplace, matchmaking, or rate-card valuation (handled by Opendorse/Blinkfire).

    • Direct money movement / escrow custody (we output payout gates/CSV/webhooks to Bill.com/Stripe/QuickBooks).

    • Automated NCAA disclosure filing (handled by Spry/Athliance).

2. decision_log

  • [ACCEPTED] Contract-First Verification: The signed NIL PDF is the single source of truth; all checks compile from a locked DeliverableSpec rather than ad-hoc campaign checklists.

  • [ACCEPTED] Five-Layer Check Pipeline: Temporal/Cadence, Caption/FTC, Visual/Audio Presence, T+7/T+30 Persistence, and Category Exclusivity.

  • [ACCEPTED] Payout Gating Over Valuation: Output is a binary Pass/Fail compliance ledger (APPROVED_FOR_PAYOUT / HOLD_PENDING_FIX), not equivalent media value ($).

  • [REJECTED] Full Athlete Mobile App: Rejected to avoid onboarding friction; athletes interact via frictionless tokenized web upload links and SMS/email nudges.

3. Adversarial Critique Pass

  1. Platform API & Scraping Fragility (High Coupling Risk): Instagram and TikTok aggressively block unauthenticated scraping and restrict API access for personal/creator accounts. If Phase 1 assumes direct URL scraping for public posts and T+7/T+30 persistence checks, the pipeline will break in production. Recommendation: Define an abstract MediaFetcher interface in Phase 0 so Phase 1 can use a safe manual/oEmbed/partner-API adapter, while allowing third-party compliance scrapers (e.g., Phyllo, Modash, or Apify) to plug in later without touching core logic.

  2. Ephemeral Story Verification Gap: Instagram/TikTok Stories expire in 24 hours, making T+7/T+30 persistence checks impossible. If DeliverableSpec doesn't distinguish EPHEMERAL vs. PERSISTENT media types in Phase 0, the persistence scheduler will throw false failures on Stories. Recommendation: Add media_persistence_type (PERSISTENT_FEED, EPHEMERAL_24H, PHYSICAL_APPEARANCE) to DeliverableSpec in Phase 0.

  3. Human Override & Audit Integrity: Coordinators will inevitably need to manually override a failed check (e.g., an athlete misspelled a hashtag by one letter, and the sponsor still approves payout). Without a first-class ManualOverride record in Phase 0, overrides will corrupt the deterministic audit trail. Recommendation: Include an immutable override_reason, overridden_by, and override_timestamp on VerificationRun / PayoutGate from day one.

  4. Multi-Deliverable Contracts & Partial Payouts: Many NIL deals pay a monthly retainer tied to 3 posts per month rather than per-post payouts. If PayoutGate is 1:1 with a single DeliverableSpec, you will face breaking schema churn when supporting bundled retainers. Recommendation: Anchor PayoutGate to a PayoutMilestone entity that aggregates 1-to-N DeliverableSpec records.

4. open_questions (Blocking READY)

  1. Database & Deployment Target: Should Phase 0 target a single-node SQLite3 (WAL mode) local-first architecture for rapid MVP/solo deployment, or PostgreSQL from day one for multi-tenant SaaS?

  2. Payout Granularity: Do we adopt the PayoutMilestone (1-to-N deliverables per payout) model in Phase 0 to support monthly retainers, or keep it strictly 1:1 per deliverable for MVP?

  3. Media Ingestion Strategy for MVP: For Phase 1, should social post ingestion rely on athlete-submitted URLs + screenshot/video uploads (zero API fragility), or do you want a specific third-party social data API adapter stubbed in Phase 0?

  4. Manual Overrides: Confirmed that we should include immutable coordinator overrides (APPROVED_WITH_OVERRIDE) in the Phase 0 state machine?

Reply with your answers to these 4 questions (or say READY to accept all four recommended defaults: SQLite3 WAL, PayoutMilestone 1-to-N, pluggable MediaFetcher with upload fallback, and immutable overrides) and I will compile the Phase 0 Contract Foundation and additive build plan.


Keep payouts strictly 1:1 per deliverable for MVP, use SQLite3 WAL, include pluggable MediaFetcher and immutable overrides, and mark READY to compile Phase 0.

Revised Software Application Specification: SponsorProof NIL Deliverable Auditor

1. System Vision and Explicit Non-Goals

  • Vision: A deterministic, contract-to-media compliance engine for college NIL collectives, Multimedia Rights (MMR) agencies, and local brands. It compiles signed NIL agreement PDFs into executable verification rules, audits athlete social and appearance deliverables across five deterministic checks, gates 1:1 payout releases, and generates immutable audit packets.

  • Target Platform and Stack:

    • Backend: Local-first / self-hosted Python 3.11+ with FastAPI, Pydantic v2, and SQLite3 (WAL mode).

    • UI: Single-file / zero-build vanilla HTML/CSS/JS review dashboard for Compliance Coordinators + tokenized magic-link upload page for Athletes.

    • AI / Media Layer: Pluggable Western-only LLM/VLM providers (Google Gemini API or local Ollama) strictly bounded by Pydantic v2 schemas for contract extraction and audio/visual transcription; all pass/fail compliance gates execute in deterministic Python.

  • User Roles:

    • ComplianceCoordinator: Uploads signed NIL PDFs, approves compiled DeliverableSpec rules, reviews flagged verification failures, executes immutable manual overrides, and exports payout CSVs and PDF audit packets.

    • Athlete: Receives plain-English fix-it nudges and submits public post URLs, ephemeral Story screenshots/recordings, or geotagged appearance check-ins via tokenized magic links (no account login required).

  • Explicit Non-Goals (Out of Scope):

    • Athlete Discovery & Valuation: Marketplace matchmaking and NIL rate cards are handled by Opendorse/Blinkfire.

    • Direct Money Movement / Escrow Custody: SponsorProof outputs deterministic payout gates (APPROVED_FOR_PAYOUT CSV/webhooks) to existing accounting tools (Bill.com, Stripe, QuickBooks) rather than holding funds.

    • Automated NCAA Disclosure Filing: Regulatory disclosure submission is handled by Spry/Athliance.

    • Multi-Deliverable Retainer Bundling (MVP): Payouts are strictly 1:1 per DeliverableSpec for MVP.

2. Architectural Overview and Future Capabilities Roadmap

  • System Topology: A modular, single-node monolith backed by SQLite3 (WAL mode). Signed PDFs enter through a ContractExtractor interface to produce human-approved DeliverableSpec records. Athlete submissions enter through a pluggable MediaFetcher interface (defaulting to direct upload + URL metadata fallback) and pass through five independent VerificationCheck plugins. Results append to an immutable VerificationRun ledger that drives the 1:1 PayoutGate state machine.

  • Future Capabilities Roadmap (Anticipated Extension Points):

    • Third-Party Social API Adapters (Phase 3+): Swapping manual/oEmbed ingestion for Phyllo, Modash, or Apify without modifying verification logic—reserved via the MediaFetcher interface in Phase 0.

    • Automated Accounting Webhooks (Phase 3+): Pushing APPROVED_FOR_PAYOUT events directly to Bill.com/Stripe—reserved via the PayoutExporter hook in Phase 0.

    • Automated SMS/Email Fix-It Nudges (Phase 3+): Sending athlete remediation prompts on HOLD_PENDING_FIX—reserved via the NotificationDispatcher hook in Phase 0.

    • Optional Retainer Bundling (Future): Reserved via an optional nullable payout_group_id field on DeliverableSpec so 1:1 MVP stays clean while preventing future schema churn.

3. Phase 0: Core Contracts, Data Schemas, and Extension Hooks

Phase 0 Rule: Contains only structural definitions, data schemas, state machines, interfaces, and stubbed extension hooks. Zero feature business logic.

3.1 Core Data Schemas and Primary Keys

Plaintext
Organization
  - org_id: UUID (PK)
  - name: str
  - org_type: Enum[COLLECTIVE, MMR_AGENCY, BRAND]
  - created_at: datetime (UTC)

Athlete
  - athlete_id: UUID (PK)
  - org_id: UUID (FK -> Organization.org_id)
  - full_name: str
  - sport: str
  - social_handles_json: dict[Platform, str]  # e.g., {"INSTAGRAM": "@handle"}
  - external_payout_ref: str | None           # ID in Bill.com / QuickBooks
  - created_at: datetime (UTC)

Contract
  - contract_id: UUID (PK)
  - org_id: UUID (FK -> Organization.org_id)
  - athlete_id: UUID (FK -> Athlete.athlete_id)
  - sponsor_name: str
  - source_pdf_path: str
  - source_pdf_sha256: str                    # Immutable integrity hash
  - effective_start: datetime (UTC)
  - effective_end: datetime (UTC)
  - exclusivity_categories: list[str]         # e.g., ["BEVERAGE", "AUTO_DEALER"]
  - exclusivity_blackout_days: int
  - created_at: datetime (UTC)

DeliverableSpec  (1:1 with PayoutGate)
  - spec_id: UUID (PK)
  - contract_id: UUID (FK -> Contract.contract_id)
  - platform: Enum[INSTAGRAM, TIKTOK, X, YOUTUBE, PHYSICAL_EVENT]
  - media_persistence_type: Enum[PERSISTENT_FEED, EPHEMERAL_24H, PHYSICAL_APPEARANCE]
  - window_start: datetime (UTC)
  - window_end: datetime (UTC)
  - required_hashtags: list[str]
  - required_mentions: list[str]
  - required_ftc_tags: list[str]              # Default: ["#ad", "#sponsored"]
  - required_talking_points: list[str]
  - required_logo_brands: list[str]
  - persistence_check_days: list[int]         # e.g., [7, 30]; empty for EPHEMERAL_24H
  - payout_amount_cents: int                  # Strictly 1:1 payout value
  - payout_group_id: str | None               # Reserved nullable hook for future bundling
  - approved_by_coordinator: bool
  - created_at: datetime (UTC)

SubmissionArtifact
  - submission_id: UUID (PK)
  - spec_id: UUID (FK -> DeliverableSpec.spec_id)
  - submitted_url: str | None
  - uploaded_file_path: str | None            # Screenshot, video, or geotagged photo
  - uploaded_file_sha256: str | None
  - captured_caption: str | None
  - captured_transcript: str | None
  - captured_posted_at: datetime | None (UTC)
  - submitted_at: datetime (UTC)

VerificationRun  (Append-only immutable audit record)
  - run_id: UUID (PK)
  - spec_id: UUID (FK -> DeliverableSpec.spec_id)
  - submission_id: UUID (FK -> SubmissionArtifact.submission_id)
  - run_type: Enum[INITIAL_AUDIT, RESUBMISSION_AUDIT, PERSISTENCE_T7, PERSISTENCE_T30]
  - overall_passed: bool
  - check_results_json: list[CheckResult]     # {layer, passed, failure_code, detail}
  - executed_at: datetime (UTC)

PayoutGate  (1:1 with DeliverableSpec; immutable override fields)
  - gate_id: UUID (PK)
  - spec_id: UUID (UNIQUE FK -> DeliverableSpec.spec_id)
  - status: PayoutGateStatus
  - latest_run_id: UUID | None (FK -> VerificationRun.run_id)
  - override_reason: str | None               # Mandatory if APPROVED_WITH_OVERRIDE
  - overridden_by: str | None                 # Coordinator identifier
  - override_timestamp: datetime | None (UTC)
  - updated_at: datetime (UTC)

3.2 State Machines and Lifecycle Transitions

  • PayoutGateStatus States:HOLD_PENDING_SUBMISSION -> HOLD_PENDING_FIX -> APPROVED_FOR_PAYOUT | APPROVED_WITH_OVERRIDE -> PAID -> CLAWBACK_FLAGGED

  • Allowed Transitions and Guards:

    • HOLD_PENDING_SUBMISSION -> APPROVED_FOR_PAYOUT: Guard: VerificationRun.overall_passed == True.

    • HOLD_PENDING_SUBMISSION -> HOLD_PENDING_FIX: Guard: VerificationRun.overall_passed == False.

    • HOLD_PENDING_FIX -> APPROVED_FOR_PAYOUT: Guard: New RESUBMISSION_AUDIT run has overall_passed == True.

    • HOLD_PENDING_FIX -> APPROVED_WITH_OVERRIDE: Guard: override_reason, overridden_by, and override_timestamp are all non-null; once set, override fields are write-once/immutable.

    • APPROVED_FOR_PAYOUT | APPROVED_WITH_OVERRIDE -> PAID: Guard: Coordinator confirms export/disbursement.

    • APPROVED_FOR_PAYOUT | PAID -> CLAWBACK_FLAGGED: Guard: PERSISTENCE_T7 or PERSISTENCE_T30 run fails on a PERSISTENT_FEED deliverable (post deleted/archived).

3.3 Interface Boundaries and Extension Hooks

  • ContractExtractor (Protocol):

    • Signature / Contract: extract(pdf_path: Path) -> list[DeliverableSpecDraft] (raises ExtractionSchemaError).

    • Purpose: Consumed in Phase 2 to plug in Gemini API or local Ollama structured extraction without coupling to core schemas.

  • MediaFetcher (Protocol):

    • Signature / Contract: fetch(url: str | None, uploaded_file: Path | None) -> NormalizedMediaPayload (raises MediaFetchError).

    • Purpose: Consumed in Phase 1 (local upload/URL fallback) and Phase 3 (third-party social API adapters + persistence re-crawlers).

  • VerificationCheck (Protocol):

    • Signature / Contract: evaluate(spec: DeliverableSpec, artifact: SubmissionArtifact, context: AuditContext) -> CheckResult.

    • Purpose: Implemented by each of the 5 deterministic compliance layers in Phase 1 (TemporalCheck, CaptionFTCCheck, VisualAudioCheck, PersistenceCheck, ExclusivityCheck).

  • NotificationDispatcher (Protocol):

    • Signature / Contract: send_fix_nudge(athlete: Athlete, spec: DeliverableSpec, failed_checks: list[CheckResult]) -> DispatchReceipt.

    • Purpose: Stubbed in Phase 0; implemented in Phase 3 for SMS/email athlete remediation prompts.

  • PayoutExporter (Protocol):

    • Signature / Contract: export_approved(gates: list[PayoutGate]) -> ExportArtifact (CSV file or webhook payload).

    • Purpose: Stubbed in Phase 0; implemented in Phase 2 (CSV) and Phase 3 (Bill.com/Stripe webhooks).

3.4 Phase 0 Verification Gate

  • [ ] All Pydantic v2 schemas and SQLite3 DDL statements compile/validate with zero circular dependencies.

  • [ ] JSON serialization/deserialization round-trip tests pass for all 7 core entities.

  • [ ] PayoutGate state machine rejects invalid transitions (e.g., HOLD_PENDING_FIX -> APPROVED_WITH_OVERRIDE without override_reason, or PERSISTENCE_T7 running on EPHEMERAL_24H).

  • [ ] All 5 extension hooks resolve cleanly with no-op default stubs.

4. Phased Additive Build Plan

Phase 1: SQLite3 WAL Persistence & Deterministic Verification Engine

  • New Files / Modules:

    • src/storage/sqlite_repo.py (WAL mode initialization, append-only VerificationRun ledger, 1:1 PayoutGate repository)

    • src/engine/checks/ (temporal.py, caption_ftc.py, visual_audio.py, persistence.py, exclusivity.py)

    • src/engine/runner.py (executes applicable checks based on media_persistence_type and transitions PayoutGate)

    • src/adapters/local_media_fetcher.py (MVP upload + URL metadata fallback)

  • Additive Capabilities:

    • Full CRUD for Organization, Athlete, Contract, and DeliverableSpec in SQLite3 WAL mode.

    • Deterministic execution of all 5 verification layers with unit-tested pass/fail rules and immutable coordinator overrides.

  • Touched Phase 0 Extension Hooks:

    • MediaFetcher, VerificationCheck

  • Phase 1 Verification Gate:

    • [ ] SQLite3 WAL mode verified active (PRAGMA journal_mode == wal) and foreign key constraints enforced.

    • [ ] Unit tests prove EPHEMERAL_24H skips PersistenceCheck while PERSISTENT_FEED enforces it.

    • [ ] Unit tests prove APPROVED_WITH_OVERRIDE cannot be mutated once written.

    • [ ] Zero modifications required to Phase 0 schemas or interfaces.

Phase 2: Contract PDF Extraction, FastAPI Routes & Coordinator Review UI

  • New Files / Modules:

    • src/adapters/llm_contract_extractor.py (Gemini API / Ollama schema-gated PDF-to-DeliverableSpec compiler)

    • src/adapters/csv_payout_exporter.py (exports APPROVED_FOR_PAYOUT & APPROVED_WITH_OVERRIDE ledgers)

    • src/api/app.py (FastAPI endpoints for contract upload, magic-link athlete submission, override approval, and CSV export)

    • src/ui/index.html (zero-build vanilla HTML/CSS/JS Compliance Coordinator dashboard + athlete upload view)

  • Additive Capabilities:

    • End-to-end workflow from PDF upload → coordinator spec approval → athlete submission → deterministic audit → payout CSV export.

  • Touched Phase 0 Extension Hooks:

    • ContractExtractor, PayoutExporter

  • Phase 2 Verification Gate:

    • [ ] Integration test passes full lifecycle: PDF upload → spec approval → failed submission (HOLD_PENDING_FIX) → resubmission (APPROVED_FOR_PAYOUT) → CSV export.

    • [ ] All Phase 0 and Phase 1 verification gates continue to pass unchanged.

Phase 3: Persistence Scheduler, Audit Packet PDF & Athlete Fix-It Nudges

  • New Files / Modules:

    • src/scheduler/persistence_jobs.py (T+7 and T+30 re-crawl scheduler triggering CLAWBACK_FLAGGED on deletion)

    • src/reports/audit_packet_pdf.py (generates timestamped PDF Audit Packets with archived screenshots and pass/fail logs)

    • src/adapters/notification_dispatcher.py (plain-English SMS/email fix-it nudge generator)

  • Additive Capabilities:

    • Automated post-payout anti-deletion monitoring, governance-ready PDF audit packets, and automated athlete remediation nudges.

  • Touched Phase 0 Extension Hooks:

    • NotificationDispatcher, MediaFetcher

  • Phase 3 Verification Gate:

    • [ ] Simulated T+7 deletion transitions PAID -> CLAWBACK_FLAGGED and appends a PERSISTENCE_T7 VerificationRun.

    • [ ] Generated Audit Packet PDF includes source_pdf_sha256, submission hashes, and override audit trail.

    • [ ] All Phase 0, Phase 1, and Phase 2 verification gates continue to pass unchanged.

5. Decision Log Summary

IDStatusDecision / RequirementRationale
D-01[ACCEPTED]Strictly 1:1 PayoutGate per DeliverableSpec for MVPSimplifies MVP state transitions and payout gating; nullable payout_group_id reserved for future bundling.
D-02[ACCEPTED]SQLite3 in WAL mode for local-first persistenceZero-ops single-node deployment with concurrent read/write safety and easy backup.
D-03[ACCEPTED]Pluggable MediaFetcher with upload fallbackInsulates core verification engine from Instagram/TikTok scraping blocks and API changes.
D-04[ACCEPTED]Immutable APPROVED_WITH_OVERRIDE stateAllows real-world coordinator flexibility while preserving an auditable NCAA/IRS governance ledger.
D-05[ACCEPTED]media_persistence_type enum on DeliverableSpecPrevents false persistence failures on 24-hour ephemeral Stories and physical appearances.
D-06[REJECTED]Full Athlete Mobile AppHigh onboarding friction; replaced by tokenized magic-link web uploads and SMS/email nudges.



From <https://gemini.google.com/app/7fd84a5f3b88bbea>  Google Gemini (4 Neon)

Comments

Popular posts from this blog

#4297 ISS Astronaut Unable to Speak

#3356 PHP and JavaScript to Retrieve and Set an API_Key

#761 New Ways to Access Online Content, particularly Virtual Reality Content