How bigsmellyhead/26inf1103p5-7 works
This is a command-line hawker-food dietary and ingredient safety auditor. A user sets or updates a restriction profile, enters a stall and dish, receives an AI-generated assessment that is adjusted by deterministic safety rules, and sees the report; audit records are persisted locally. The catalog supports restriction selection, while the ingredient tree and cross-contact considerations are part of the assessment. The main orchestration and module calls are shown in source; the README is empty, and some implementation details are unsampled.
Main entry points: main.py Audit orchestration · io_manager.py Profile and audit input · ai_manager.py AI safety assessment · data_manager.py Audit log access
Components 12
CLI interaction
- Audit orchestration
main.py - Profile and audit input
io_manager.py - Restriction catalog
allergen_catalog.py - Audit report display
io_manager.py
Safety assessment
- AI safety assessment
ai_manager.py - Ingredient breakdown
ai_manager.py - Safety rule processing
logic_manager.py
Local persistence
- Profile access
data_manager.py - Audit log access
data_manager.py - Audit history JSON
audit_history.json
External service
- Gemini API
Other components
- User
Connections 13
- User → Profile and audit input: provides input
io_manager.py - Profile and audit input → Restriction catalog: uses options
io_manager.py - Audit orchestration → Profile access: initializes and retrieves
main.py - Profile and audit input → Profile access: reads and saves profile
io_manager.py - Audit orchestration → Profile and audit input: collects audit details
main.py - Audit orchestration → AI safety assessment: requests assessment
main.py - AI safety assessment → Gemini API: requests generation
ai_manager.py - AI safety assessment → Ingredient breakdown: produces breakdown
ai_manager.py - Audit orchestration → Safety rule processing: processes assessment
main.py - Audit orchestration → Audit log access: appends audit record
main.py - Audit log access → Audit history JSON: reads and writes
data_manager.py - Audit orchestration → Audit report display: displays result
main.py - Audit report display → User: prints report
io_manager.py