How namanpahariya2009/pcb-auditor-knight-divers works
PCB Safety Auditor turns built-in tasks or parsed board files into an interactive audit: an agent or user requests electrical checks, the environment evaluates the topology, and a grader scores the findings and verdict. The same product is exposed through a FastAPI API, a Gradio diagnostic UI, and a model-driven inference runner. The README documents parser formats and safety checks beyond the sampled excerpts; the graph groups those capabilities without assuming unshown call paths.
Main entry points: environment.py Audit environment · server.py REST API · netlist_parser.py Board parsers · inference.py Inference runner
Components 14
Board input
- Board parsers
netlist_parser.py - Component inference
netlist_parser.py - Connection normalization
netlist_parser.py
Audit environment
- Audit environment
environment.py - Board topology
environment.py - Safety diagnostics
environment.py
Tasks and grading
- Benchmark tasks
tasks.py - Verdict grader
tasks.py
User interfaces
- REST API
server.py - Diagnostic UI
server.py
Automated agent
- Inference runner
inference.py
Other components
- User
- Audit agent
- Model service
Connections 17
- User → REST API: sends requests
README.md - User → Diagnostic UI: runs audits
README.md - Audit agent → Inference runner: starts runs
README.md - Model service → Inference runner: returns actions
inference.py - REST API → Audit environment: resets and steps
server.py - Diagnostic UI → Audit environment: runs checks
server.py - REST API → Benchmark tasks: lists tasks
server.py - REST API → Board parsers: uses parser
server.py - Diagnostic UI → Board parsers: accepts custom boards
README.md - Board parsers → Component inference: infers parts
netlist_parser.py - Board parsers → Connection normalization: normalizes nets
netlist_parser.py - Audit environment → Benchmark tasks: loads tasks
environment.py - Audit environment → Board topology: builds graph
environment.py - Audit environment → Safety diagnostics: runs checks
environment.py - Audit environment → Verdict grader: grades findings
environment.py - Inference runner → Audit environment: resets and steps
inference.py - Inference runner → Benchmark tasks: selects tasks
inference.py