{ "validator": "onnx_genai_metadata validate_metadata (authoritative Rust cross-reference + graph-port validator)", "onnx_genai_ref": "PR #1716 branch copilot/gemma4-e2b-metadata @ ca8d9d1", "note": "jsonschema (draft 2020-12) checks structure only; this Rust validator additionally cross-checks that state-service alias keys are real state cells, layer pairing, rollback coverage, AND that declared component ports match the actual ONNX graph inputs/outputs.", "results": { "target_decoder": {"file": "onnx-genai-example-gemma4-e2b/inference_metadata.yaml", "result": "valid"}, "assistant_speculative": {"file": "onnx-genai-example-gemma4-e2b-assistant/inference_metadata.yaml (combined-package layout: target/model.onnx + model.onnx)", "result": "valid"} }, "combined_package_layout": "The speculative workflow spans components {target, assistant}; the Rust validator enforces that all artifacts live within one package root (no symlink/.. escape) and opens each ONNX to check ports. Validated with target graph placed at target/model.onnx alongside the assistant model.onnx. The two hosting repos keep model.onnx at their roots for standalone ORT use." }