Session 18 — Historical Intelligence Tools + Morning Context

What was built

  • Historical Intelligence Tools — 10 API endpoints at /history/* turning 85 GB of archive data into actionable intelligence
    • Endpoints: search, precedent, pricing, repeat-check, recon-check, morning-context, estimate-production, permit-timeline, communications, invoice-search, jurisdiction
    • history-service (900+ lines) with in-memory cache: match reports, Xero invoices/payments, Gmail manifest
    • Branch name normalizer for JES/GW aliases
  • Morning context wired into daily schedule + pipeline-shepherd
    • daily_schedule.py enriches each inspection with historical context
    • WhatsApp message includes history line per stop
    • Pipeline Shepherd summary includes Recon Watchdog section (unpaid >30d, cross-system mismatches)
  • Kulu skill file updated with all 10 tools

Services touched