Summary
Implement a comprehensive build report that summarizes the full model build pipeline stage-by-stage, including metrics, EP compatibility results, and optimization summary.
Context
Users and developers need visibility into what happened during wmk build — how long each stage took, what the graph optimizer changed, and which EP is compatible. This report also serves as an audit artifact.
From plans/release/0501_release_plan/P0_CHECKLIST.md (P1-FEATURE-010).
Current State
wmk build produces console output but no structured report artifact
- No per-stage timing or graph metrics
- No EP compatibility analysis summary in build output
Desired State
wmk build saves artifacts/build_report.json with:
- Stage timing: export, analyze, optimize, quantize (ms each)
- Graph metrics: node count before/after each stage, op type distribution
- EP compatibility: per-EP compatibility score from static analyzer
- Optimization summary: nodes added/removed per pass
- Errors: any non-fatal warnings or skipped stages
Acceptance Criteria
Technical Notes
- Report schema: define a stable JSON schema (will be public API)
- Console summary: print a table of stages + timing + key metrics
- Must not break existing
wmk build behavior — report is additive
Related Files
plans/release/0501_release_plan/feature-scale.md — P1.10 Build Report
plans/release/0501_release_plan/P0_CHECKLIST.md — P1-FEATURE-010
Summary
Implement a comprehensive build report that summarizes the full model build pipeline stage-by-stage, including metrics, EP compatibility results, and optimization summary.
Context
Users and developers need visibility into what happened during
wmk build— how long each stage took, what the graph optimizer changed, and which EP is compatible. This report also serves as an audit artifact.From
plans/release/0501_release_plan/P0_CHECKLIST.md(P1-FEATURE-010).Current State
wmk buildproduces console output but no structured report artifactDesired State
wmk buildsavesartifacts/build_report.jsonwith:Acceptance Criteria
artifacts/build_report.jsongenerated on everywmk buildrunTechnical Notes
wmk buildbehavior — report is additiveRelated Files
plans/release/0501_release_plan/feature-scale.md— P1.10 Build Reportplans/release/0501_release_plan/P0_CHECKLIST.md— P1-FEATURE-010