How nvidia/autofa works
AutoFA analyzes completed agent-evaluation runs: it imports and prepares rollout data, optionally screens it for cheating, then supports bottom-up detector discovery and top-down taxonomy classification, with optional efficiency analysis. Results and evidence are persisted for browsing and reuse. Users can drive workflows through the CLI/UI or delegate them to a coding agent through MCP. The graph reflects README-documented workflow and SOURCE INDEX references; unsampled implementation details and their internal call paths are not asserted.
Main entry points: cli.py CLI and menu · pipeline.py Taxonomy classification · main.py Local results library · input_view.py Input preparation
Components 25
User entry and orchestration
- CLI and menu
src/autofa/cli.py - Run configuration
src/autofa/config.py - Agent tools
src/autofa/mcp/server.py - Analysis runtime
src/autofa/mcp/runtime.py
Run data and preparation
- Run readers
src/evalrdl_readers/convert.py - Input preparation
src/autofa/data/input_view.py - Trace decoding
src/autofa/data/structured.py - Trajectory access
src/autofa/trace.py
Failure analysis
- Cheating checks
src/autofa/preflight/cheating/pipeline.py - Failure discovery
src/autofa/session/family_discovery.py - Detector library
src/autofa/core/library.py - Taxonomy classification
src/autofa/taxonomy/pipeline.py - Efficiency analysis
src/autofa/data/evalrdl_efficiency.py - Review and scoring
src/autofa/metrics/final_review.py
Models and execution
- LLM connection settings
src/autofa/llm/endpoints.py - Claude and Codex harnesses
src/autofa/harness/base.py - Run recovery
src/autofa/session/recovery.py
Evidence and library
- Review evidence history
src/autofa/session/review_evidence.py - Local results library
src/autofa_library_server/main.py - Artifact storage
src/autofa_library_server/storage.py - Failure reports
src/autofa/reports/failure_cards.py - Library metadata
src/autofa_library_server/db.py
Other components
- Analyst
- Coding agent
- Evaluation runs
Connections 25
- Analyst → CLI and menu: starts workflow
README.md - Coding agent → Agent tools: delegates work
README.md - CLI and menu → Run configuration: configures run
- Evaluation runs → Run readers: provides run data
README.md - Run readers → Input preparation: prepares rollouts
- Input preparation → Trace decoding: decodes structure
src/autofa/data/input_view.py - Input preparation → Trajectory access: reads trajectory
src/autofa/data/input_view.py - CLI and menu → Cheating checks: runs optional checks
README.md - CLI and menu → Failure discovery: starts discovery
README.md - CLI and menu → Taxonomy classification: starts classification
README.md - CLI and menu → Efficiency analysis: requests metrics
README.md - Failure discovery → Detector library: produces detectors
README.md - Taxonomy classification → Review and scoring: classifies failures
- Failure discovery → LLM connection settings: requests model calls
- Taxonomy classification → LLM connection settings: requests model calls
- LLM connection settings → Claude and Codex harnesses: supports agent judges
- Agent tools → Analysis runtime: uses shared state
src/autofa/mcp/server.py - Analysis runtime → Detector library: loads library
src/autofa/mcp/runtime.py - Detector library → Review evidence history: merges review history
src/autofa/core/library.py - CLI and menu → Local results library: opens results
README.md - Local results library → Artifact storage: serves artifacts
src/autofa_library_server/main.py - Local results library → Library metadata: reads library metadata
src/autofa_library_server/main.py - Local results library → Failure reports: shows failure cards
src/autofa_library_server/main.py - Agent tools → Run recovery: handles resumable work
src/autofa/mcp/server.py - Taxonomy classification → Input preparation: uses prepared evidence
src/autofa/taxonomy/pipeline.py