-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
Port the Signal Score analysis tooling to Ruby to align with the existing Rails codebase.
Context
Initial prototyping for Signal Score (#590) was done in Bun/TypeScript. Now that the approach is validated, we should rewrite the scoring pipeline in Ruby so it can eventually become a Rails service object (app/extras/signal_scorer.rb) running via ActiveJob.
Scripts to Port
score_grants.rb— Batch scoring via Anthropic API with Trust Equation rubricdiscover_patterns.rb— Qualitative pattern analysis across labeled applicationsimport_data.rb— CSV → Parquet → DuckDB setup (already Ruby ✅)export_sample.rb— Stratified sample generation for validation
Dependencies
anthropicgem — Batch API for scoringduckdbgem — Analytical queries on historical datadotenv-rails— Already in Gemfile, use.envfor API keys
Data Setup
Historical application data (~64K rows) lives in a privileged Google Drive folder. Contact @divideby0 for access. Place CSVs in .scratch/data/ and run import_data.rb.
Refs: #590
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels