How az967252-creator/ml-model-architect works
ML Model Architect is a reference-driven governance framework for AI-assisted ML engineering. Its documented workflow moves from requirements and literature-grounded model selection through a cryptographically locked plan, sandboxed construction, static and policy checks, empirical evaluation, and production handoff. The CLI dispatches several governance operations; the repository also provides reference utilities and decision-review tools. Some product capabilities are documented in the README but their implementation wiring was not sampled, so those links are shown only where explicitly documented.
Main entry points: cli.py Project CLI · scanner.py AST Security Scanner · local_knowledge.py MCP Research Server · sandbox Execution Sandbox
Components 21
Governed ML Workflow
- Project CLI
src/ml_model_architect/cli.py - Requirements and Goals
src/ml_model_architect/cli.py - Technique Selection
src/ml_model_architect/model_selection.py - Execution Sandbox
sandbox - Empirical Evaluation
src/ml_model_architect/model_selection.py - Production Handoff
src/ml_model_architect/policy.py - Dashboard
app.py
Integrity and Validation
- Plan Locking
src/ml_model_architect/locker.py - AST Security Scanner
src/ml_model_architect/scanner.py - Execution Policy
src/ml_model_architect/policy.py - Constitution Enforcer
src/ml_model_architect/enforcer.py
Research and References
- MCP Research Server
mcp_server/local_knowledge.py - SOTA Discovery
src/ml_model_architect/sota.py - DOI Verification
src/ml_model_architect/doi.py - PDF Conversion
src/ml_model_architect/tools/pdf_to_markdown.py
Decision Support
- Pre-Mortem Review
src/ml_model_architect/tools/pre_mortem.py - Red-Team Review
src/ml_model_architect/tools/red_team.py - Decision Diagram
src/ml_model_architect/tools/diagram.py - Executive Summary
src/ml_model_architect/tools/executive_summary.py
Other components
- ML Engineer
- Constitutional Agent
Connections 26
- ML Engineer → Constitutional Agent: sets constraints
README.md - Constitutional Agent → Requirements and Goals: elicits goals
README.md - Constitutional Agent → MCP Research Server: queries literature
README.md - MCP Research Server → Constitutional Agent: returns references
README.md - Constitutional Agent → Technique Selection: proposes models
README.md - Constitutional Agent → Plan Locking: locks plan
README.md - Constitutional Agent → Execution Sandbox: emits pipeline
README.md - Constitutional Agent → AST Security Scanner: requests scan
README.md - AST Security Scanner → Constitutional Agent: returns verdict
README.md - Constitutional Agent → Execution Sandbox: executes validation
README.md - Constitutional Agent → Execution Policy: checks assertions
README.md - Constitutional Agent → Empirical Evaluation: presents results
README.md - Constitutional Agent → Production Handoff: presents deployment
README.md - ML Engineer → Project CLI: runs commands
README.md - Project CLI → Plan Locking: dispatches locking
src/ml_model_architect/cli.py - Project CLI → Execution Policy: dispatches checks
src/ml_model_architect/cli.py - Project CLI → AST Security Scanner: dispatches scans
src/ml_model_architect/cli.py - Project CLI → Constitution Enforcer: dispatches enforcement
src/ml_model_architect/cli.py - Project CLI → DOI Verification: dispatches verification
src/ml_model_architect/cli.py - Constitutional Agent → SOTA Discovery: discovers research
- ML Engineer → PDF Conversion: converts references
- ML Engineer → Pre-Mortem Review: reviews decisions
- ML Engineer → Red-Team Review: reviews decisions
- ML Engineer → Decision Diagram: visualizes decisions
- ML Engineer → Executive Summary: summarizes results
- ML Engineer → Dashboard: opens dashboard