How harushhh/grid_tools works
Grid tools converts insurer rate grids and commission documents into portal upload CSVs, with insurer-specific rules; the README describes the input formats and output behavior. The web app provides a job-running interface, while preflight, insurer review, edge-case capture, and feedback tools support checking and improving uploads. The graph includes all listed converter scripts and the SOURCE INDEX core modules. Some tool internals and app routes were not sampled, so uncertain connections are omitted.
Main entry points: agent.js Job agent · app.js HTTP routes · liberty_grid_to_config.py Liberty converter · magma_grid_to_config.py Magma converter
Components 30
Grid conversion
- Liberty converter
liberty_grid_to_config.py - Magma converter
magma_grid_to_config.py - RSA GCV converter
rsa_gcv4w_comp_to_config.py - RSA car converter
rsa_pvtcar_to_config.py - United converter
united_commission_to_config.py - Shriram broker converter
shriram_broker_grid_to_config.py - Shriram 2W converter
shriram_2w_to_config.py - Go Digit converter
godigit_agency_to_config.py - SBI converter
sbi_grid_to_config.py - ICICI converter
icici_grid_to_config.py - IndusInd converter
indusind_grid_to_config.py
Job web app
- Browser interface
webapp/public/app.js - HTTP routes
webapp/src/app.js - Converter registry
webapp/src/registry.js - Job agent
webapp/src/agent.js - Converter runner
webapp/src/runner.js - Rule memory
webapp/src/memory.js - SQLite database
webapp/src/db.js - Job store
webapp/src/store.js
Upload quality
- Upload preflight
tools/preflight/preflight_check.py - Month comparison
tools/preflight/mom_diff.py - Grid diagnostics
grid_doctor.py
Review and learning
- Correction feedback
tools/feedback/loop.py - CSV comparison
tools/insurer_review/review_lib.py - Flag capture
tools/edge_cases/capture.py - Wording proposals
tools/wording_proposer/llm_proposer.py
Other components
- Operator
- Insurer grid
- Upload CSV
- Web user
Connections 48
- Operator → Liberty converter: runs with grid
README.md - Operator → Magma converter: runs with grids
README.md - Operator → RSA GCV converter: runs with grid
README.md - Operator → RSA car converter: runs with grid
README.md - Operator → United converter: runs with circular
README.md - Operator → Shriram broker converter: runs with grid
README.md - Operator → Shriram 2W converter: runs with grid
README.md - Operator → Go Digit converter: runs with grid
README.md - Operator → SBI converter: runs with grid
README.md - Operator → ICICI converter: runs with grids
README.md - Operator → IndusInd converter: runs with grid
README.md - Insurer grid → Liberty converter: provides workbook
README.md - Insurer grid → Magma converter: provides grids
README.md - Insurer grid → RSA GCV converter: provides workbook
README.md - Insurer grid → RSA car converter: provides workbook
README.md - Insurer grid → United converter: provides PDF
README.md - Insurer grid → Shriram broker converter: provides workbook
README.md - Insurer grid → Shriram 2W converter: provides grids
README.md - Insurer grid → Go Digit converter: provides workbook
README.md - Insurer grid → SBI converter: provides workbook
README.md - Insurer grid → ICICI converter: provides workbooks
README.md - Insurer grid → IndusInd converter: provides workbook
README.md - Liberty converter → Upload CSV: writes CSV
README.md - Magma converter → Upload CSV: writes CSV
README.md - RSA GCV converter → Upload CSV: writes CSV
README.md - RSA car converter → Upload CSV: writes CSV
README.md - United converter → Upload CSV: writes CSV
README.md - Shriram broker converter → Upload CSV: writes CSV
README.md - Shriram 2W converter → Upload CSV: writes CSV
README.md - Go Digit converter → Upload CSV: writes CSV
README.md - SBI converter → Upload CSV: writes CSV
README.md - ICICI converter → Upload CSV: writes CSV
README.md - IndusInd converter → Upload CSV: writes CSV
README.md - Web user → Browser interface: uses
- Browser interface → HTTP routes: requests jobs
- HTTP routes → Converter registry: lists scripts
webapp/src/app.js - HTTP routes → Job agent: creates jobs
webapp/src/app.js - Job agent → Converter registry: selects converter
webapp/src/agent.js - Job agent → Converter runner: runs converter
webapp/src/agent.js - Job agent → Rule memory: matches rules
webapp/src/agent.js - Rule memory → SQLite database: reads and writes
webapp/src/memory.js - Job store → SQLite database: stores jobs
webapp/src/store.js - Operator → Upload preflight: checks upload
tools/preflight/preflight_check.py - Upload CSV → Upload preflight: validates
tools/preflight/preflight_check.py - Operator → Month comparison: compares grids
tools/preflight/mom_diff.py - Operator → Grid diagnostics: diagnoses grid
- Operator → Correction feedback: reviews corrections
tools/feedback/loop.py - Correction feedback → CSV comparison: compares CSVs
tools/feedback/loop.py