Skip to content

feat(scanner): add model artifact validation#5

Merged
duriantaco merged 2 commits into
mainfrom
feat/model-metadata-validation
May 27, 2026
Merged

feat(scanner): add model artifact validation#5
duriantaco merged 2 commits into
mainfrom
feat/model-metadata-validation

Conversation

@duriantaco

Copy link
Copy Markdown
Owner

Summary

  • add bounded ONNX and GGUF metadata parsers with baseline drift checks
  • add pinned real-artifact fixture validation for ONNX/GGUF plus corrupt-artifact checks
  • harden policy loading, waiver handling, pickle parsing, diff mode, parquet reads, and related regression coverage

Verification

  • python -m pytest -q
  • python -m ruff check .
  • python -m compileall -q ceres tests scripts
  • python scripts/model_fixture_check.py --corpus examples/model-fixture-corpus.yml --workdir /private/tmp/ceres-model-fixture-check --json-out /private/tmp/ceres-model-fixture-check/report-final.json
  • python scripts/real_world_check.py examples/clean-ai-repo --separate-scenarios --workdir /private/tmp/ceres-real-world-manual-final --keep-workdir --json-out /private/tmp/ceres-real-world-manual-final/report.json

Add bounded ONNX and GGUF metadata parsing, baseline drift checks, and pinned fixture validation for real model artifacts.
Reject missing or malformed explicit policies, surface invalid waivers as findings, avoid pickle false positives, and bound expensive diff/dataset paths.
@duriantaco duriantaco merged commit 8dbacf8 into main May 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant