How padmesh6119/batchguard works
BatchGuard is a medicine-quality evidence and inspection-follow-up application. Users review published CDSCO findings, choose a report month and capacity, and receive a prioritized follow-up queue with historical evidence; a separate replay path handles simulated pack scans. Data refresh, normalization, and snapshot publication support that workflow. The tree also contains a separate PDF-cleaning review toolset. README content was not provided, and unsampled implementation details are represented only where the source index documents references.
Main entry points: refresh_data.py Data refresh · decision_core.py Decision fusion · batchguard_engine.py Evidence summaries · app.py BatchGuard UI
Components 19
User workflow
- BatchGuard UI
BatchGuard/app.py - Follow-up queue
BatchGuard/primary_workflow.py - Evidence summaries
BatchGuard/batchguard_engine.py
Evidence data
- Data refresh
BatchGuard/refresh_data.py - Monthly parsing
BatchGuard/src/process_month.py - Canonical schema
BatchGuard/src/schema.py - Spurious cleanup
BatchGuard/src/clean_spurious.py - Dataset assembly
BatchGuard/src/build_dataset.py - Manufacturer mapping
BatchGuard/src/normalize_manufacturers.py - Failure mapping
BatchGuard/src/normalize_failure_types.py - Snapshot store
BatchGuard/snapshot_store.py
Inspection analysis
- Decision fusion
BatchGuard/decision_core.py - Scan event stream
BatchGuard/inspection_stream.py - Scan features
BatchGuard/scan_features.py
Modeling and replay
- Training inputs
BatchGuard/model_foundation.py - Replay runner
BatchGuard/replay.py
PDF review
- PDF extraction
PDF_CLEANING_REVIEW/tools/extract_all.py - Integrity review
PDF_CLEANING_REVIEW/tools/review_integrity.py
Other components
- Reviewer
Connections 24
- Reviewer → BatchGuard UI: uses
BatchGuard/app.py - BatchGuard UI → Follow-up queue: requests queue
BatchGuard/app.py - BatchGuard UI → Evidence summaries: loads evidence
BatchGuard/app.py - Follow-up queue → Evidence summaries: uses summaries
BatchGuard/primary_workflow.py - BatchGuard UI → Data refresh: starts refresh
BatchGuard/app.py - Data refresh → Monthly parsing: processes months
BatchGuard/refresh_data.py - Data refresh → Dataset assembly: builds dataset
BatchGuard/refresh_data.py - Data refresh → Manufacturer mapping: normalizes names
BatchGuard/refresh_data.py - Data refresh → Failure mapping: normalizes failures
BatchGuard/refresh_data.py - Data refresh → Snapshot store: publishes snapshot
BatchGuard/refresh_data.py - Monthly parsing → Canonical schema: uses schema
BatchGuard/src/process_month.py - Monthly parsing → Spurious cleanup: cleans records
BatchGuard/src/process_month.py - Dataset assembly → Canonical schema: uses schema
BatchGuard/src/build_dataset.py - Evidence summaries → Snapshot store: reads snapshot
BatchGuard/batchguard_engine.py - Decision fusion → Evidence summaries: uses history
BatchGuard/decision_core.py - Decision fusion → Scan event stream: uses scan events
BatchGuard/decision_core.py - Decision fusion → Training inputs: uses training inputs
BatchGuard/decision_core.py - Decision fusion → Scan features: uses features
BatchGuard/decision_core.py - Decision fusion → Snapshot store: reads snapshot
BatchGuard/decision_core.py - Scan features → Scan event stream: parses events
BatchGuard/scan_features.py - Replay runner → Evidence summaries: loads history
BatchGuard/replay.py - Replay runner → Scan event stream: runs replay
BatchGuard/replay.py - Replay runner → Snapshot store: uses root paths
BatchGuard/replay.py - Integrity review → PDF extraction: checks extraction
PDF_CLEANING_REVIEW/tools/review_integrity.py