@@ -3,19 +3,19 @@ name: quality-checklist
33description : >
44 Use this skill when verifying that a new model is truly done and ready to
55 merge. Provides a Definition-of-Done checklist covering all five test
6- confidence levels (L1 graph build through L5 Foundry Local smoke-test),
7- ORT GenAI runtime validation , Olive quantization compatibility, multi-dtype
8- (f32/f16/bf16) and multi-EP (CPU/CUDA/DML) correctness, documentation
9- requirements, and code review criteria.
6+ confidence levels (L1 graph build through L5 generation), faithful runtime
7+ metadata, optional downstream runtime probes , Olive quantization
8+ compatibility, multi-dtype (f32/f16/bf16) and multi-EP (CPU/CUDA/DML)
9+ correctness, documentation requirements, and code review criteria.
1010---
1111
1212# Skill: Quality Checklist
1313
1414## When to use
1515
1616Use this checklist before marking a new model addition as ** done** .
17- Every item must be checked — or explicitly waived with a written reason —
18- before the PR is merged.
17+ Every required item must be checked — or explicitly waived with a written
18+ reason — before the PR is merged.
1919
2020---
2121
@@ -148,12 +148,6 @@ python examples/<model>_text_generation.py --compare-hf --dtype bf16
148148 opt-in via ` MOBIUS_ORT_LOWER_OPSET_FOR_EP=1 ` )
149149- [ ] Dead graph inputs removed after EP-aware optimization
150150 (` RemoveDeadGraphInputsPass ` in Stage 4 of ` optimize_model() ` )
151- - [ ] For models with dual head_dim (e.g. Gemma4: 256 for sliding,
152- 512 for full attention), verify whether ORT GenAI requires
153- ` search.past_present_share_buffer=false ` because GenAI allocates
154- uniform KV cache shapes; if so, explicitly override the generated
155- ` genai_config.json ` before runtime validation rather than assuming
156- the default generated setting is correct
157151- [ ] Vision/audio graph inputs match the real processor (normally float32);
158152 reduced-precision encoders cast once at graph entry
159153- [ ] Representative graph evidence covers raw/post-Mobius/post-weight and
@@ -162,30 +156,42 @@ python examples/<model>_text_generation.py --compare-hf --dtype bf16
162156- [ ] Final fusion claims use loaded weights/constants; no-weight graphs cannot
163157 prove initializer folding
164158
165- ### 9. ORT GenAI runtime
159+ ### 9. ORT GenAI metadata and downstream runtime
166160
167- - [ ] Model can be loaded with ` ort_genai.Model(output_dir) ` without error
168- - [ ] Actual generation with required media/features produces coherent output;
169- schema/config emission alone is not runtime support
170- - [ ] ORT GenAI test added to ` tests/ort_genai_test.py `
171- (or confirmed covered by an existing parametrized test)
172- - [ ] Structurally unsupported contracts fail before artifacts are emitted and
173- have a version-specific, evidence-based waiver
161+ - [ ] Generated metadata faithfully reflects graph filenames, semantic I/O,
162+ representable cache templates, and global cache-slot indices
163+ - [ ] Intrinsic schema/config errors are tested without inferring downstream
164+ runtime capability
165+
166+ Downstream evidence:
167+
168+ - [ ] If ORT GenAI load/generation is run, record the exact runtime version and
169+ result. Failures document limitations but never gate Mobius export based
170+ on the runtime registry, topology support, or cache executor capability.
171+ - [ ] If ORT GenAI validation is run for a model with dual head dimensions,
172+ determine whether that runtime requires
173+ ` search.past_present_share_buffer=false ` for its uniform KV-cache
174+ allocation, and override the generated config only for that probe.
175+ - [ ] Add an ORT GenAI integration test when useful, but do not require one for
176+ export acceptance.
177+
178+ Omitting these downstream probes requires no waiver or TODO.
179+
180+
181+ Waiver needed if any of the steps are not possible.
174182
175183Run the ORT GenAI integration test:
176184
177185``` bash
178186python -m pytest tests/ort_genai_test.py -m integration_slow -k " <model>" -sv
179187```
180188
181- ### 10. Foundry Local smoke test
182-
183- - [ ] Model exported package can be loaded and run in Foundry Local
184- - [ ] At minimum, verify that the ` genai_config.json ` and all ONNX files
185- are present and the model responds to a short prompt
189+ ### 10. Foundry Local package check
186190
187- > If Foundry Local is not available in the current environment, document the
188- > skip with a ` # TODO: verify with Foundry Local ` comment in the PR.
191+ - [ ] ` genai_config.json ` and all ONNX files are present and internally
192+ consistent
193+ - [ ] If Foundry Local is available, record its version and load/generation
194+ result as optional downstream evidence; limitations do not block export
189195
190196### 11. Olive quantization compatibility
191197
@@ -223,8 +229,8 @@ novel weight layouts (e.g. fused QKV, non-standard expert routing).
223229 after optimization or rebase changes
224230- [ ] Rebase linearly onto ` origin/main ` ; resolve shared registries/helpers
225231 semantically, run shared-surface tests, and push with ` --force-with-lease `
226- - [ ] After rebase, rerun config generation and actual runtime load/generation;
227- parity-only tests do not catch changed cache/runtime contracts
232+ - [ ] After rebase, rerun metadata generation and intrinsic config validation.
233+ If downstream runtime evidence is included, rerun that exact probe too.
228234- [ ] Confirm the remote PR head SHA, mergeability, replacement lint, and
229235 architecture checks after the final push
230236- [ ] Triage red CI at check/job/test granularity against the exact base SHA;
@@ -236,14 +242,13 @@ novel weight layouts (e.g. fused QKV, non-standard expert routing).
236242
237243## Waiver policy
238244
239- Any item that cannot be completed must be waived explicitly in the PR
245+ Any required item that cannot be completed must be waived explicitly in the PR
240246description:
241247
242248```
243249**Waivers:**
244250- L5 golden: Model is 70B — generating golden data exceeds CI resources.
245251 skip_reason added to YAML.
246- - Foundry Local: Not available in this environment. Tracked in issue #NNN.
247252```
248253
249254Unchecked items without a waiver are grounds to request changes before merge.
0 commit comments