Skip to content

Validate MTP artifact and performance evidence from exact inputs - #956

Closed
Gajesh2007 wants to merge 3 commits into
refactor/mtp-benchmark-operationsfrom
fix/mtp-evidence-validation
Closed

Gajesh2007 wants to merge 3 commits into
refactor/mtp-benchmark-operationsfrom
fix/mtp-evidence-validation

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

A changing config.json could give an MTP artifact receipt the hash of one payload and quantization metadata from another. Production reports also accepted malformed elapsed/aggregate throughput values such as booleans, negative numbers and nonfinite floats. These cases could misrepresent benchmark evidence.

Read the bounded config payload once and derive its size, SHA256 and parsed metadata from those bytes. Require production elapsed time and aggregate throughput to be finite, nonnegative numbers. Zero remains valid for a stream with no decode intervals; no speedup threshold, model default, report schema or native measurement formula changes.

Stacked on #901 so the fix uses the separated artifact/report modules. The process-group supervisor and runtime approvals remain unchanged.

flowchart TB
  subgraph Before
    A[artifact_facts] --> B[Hash config through one read]
    B --> C[Reopen and parse config]
    C --> D[Replacement can mismatch hash and metadata]
    E[validate_report] --> F[Check elapsed type and throughput presence]
    F --> G[Malformed measurements can pass]
  end
  subgraph After
    H[artifact_facts] --> I[One bounded config payload]
    I --> J[Size SHA256 and metadata from same bytes]
    K[validate_report] --> L[nonnegative_finite_number]
    L --> M[Malformed measurements refused]
    L --> N[Zero and finite numeric measurements retained]
  end
Loading

Validation: new CPU fixtures produce 18 failures on the unchanged #901 source (one deterministic config mutation and 17 accepted malformed metrics). The exact canonical make benchmark-wrapper-test passes (65 Gemma + 11 MTP CPU tests), after correcting the fixture import for package discovery; including unchanged raw-parity, expected-inactive and production matrix contracts. Sixty-four stable synthetic artifact receipts match baseline exactly, including JSON key order. Docs lint passes for 278 files. No Swift, real model, signing or native benchmark was executed; this is evidence validation, not a new performance claim.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 12, 2026 1:08am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 12, 2026 1:08am UTC
d-inference-landing Ready Ready Preview Sep 12, 2026 1:08am UTC

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Fixed canonical package discovery in 7d4f63a after independent integration review caught the new fixture import. The exact make benchmark-wrapper-test now passes: 65 Gemma tests + 11 MTP tests on pinned Python 3.12. Production source remains 9cf1d20. This supersedes the earlier directory-only test proof; no native model execution.

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

Please review the current head. Earlier requests reached the review quota; reviews are now completing again. The fixes and scoped validation are recorded in the PR description.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 7d4f63a6a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T22:51:26.436874Z 7d4f63a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head 7d4f63a6a02c3bbc3aa266436f4c682562775094 is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — 7d4f63a6 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 7d4f63a6 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-landing — 7d4f63a6 Deployed Sep 12, 2026 by vercel[bot]
benchmarks — 7d4f63a6 Deployed Sep 12, 2026 by Gajesh2007 via E2E Benchmarks #1050
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