Skip to content

[drift] CLI surface changed, consumers need update #16

Description

@areales

Drift Detection Report

Consumer expectations (last synced) vs live bbdata source code:

Finding: Query Template Count Mismatch

scout-app expectations (src/lib/bbdata.ts, agent/system-prompt.md):

  • References all 21 query templates

ai-baseball-data-analyst expectations (skills/query-data/SKILL.md):

  • References all 21 query templates

Live bbdata code (src/templates/queries/index.ts):

  • Registers 22 query templates

The live code includes 22 imported templates:

  1. pitcher-arsenal
  2. pitcher-velocity-trend
  3. pitcher-handedness-splits
  4. hitter-batted-ball
  5. hitter-vs-pitch-type
  6. hitter-hot-cold-zones
  7. hitter-handedness-splits
  8. matchup-pitcher-vs-hitter
  9. matchup-situational
  10. leaderboard-custom
  11. leaderboard-comparison
  12. trend-rolling-average
  13. trend-year-over-year
  14. pitcher-rolling-trend
  15. pitcher-raw-pitches
  16. hitter-raw-bip
  17. hitter-zone-grid
  18. pitcher-recent-form (BBDATA-011)
  19. pitcher-by-count (BBDATA-011)
  20. pitcher-tto (BBDATA-011)
  21. pitcher-season-profile (BBDATA-003/004)
  22. hitter-season-profile (BBDATA-003/004)

All Other Checks: PASS ✓

  • Report templates: 13 registered, 13 expected ✓
  • scout-app report templates: All 5 (pro-pitcher-eval, pro-hitter-eval, advance-sp, relief-pitcher-quick, trade-target-onepager) registered ✓
  • Query flags: All expected (--player, --players, --season, --format, --stat, --min-ip, --min-pa, --top, --pitch-type, --seasons) present ✓
  • Report flags: All expected (--player, --season, --audience, --format, --validate) present ✓
  • Audience values: All expected (coach, gm, scout, analyst) present ✓
  • JSON meta fields: All expected (source, cached, queryTimeMs, season, sampleSize) in envelope ✓

Action Required

Update consumer expectations in:

  • ../ai-baseball-data-analyst/skills/query-data/SKILL.md — update template count from 21 to 22
  • ../scout-app/src/lib/bbdata.ts or docs — update template count reference if present

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions