Skip to content

[Deferred] test: validate resource measurements and reject malformed CPU evidence - #778

Draft
zzylol wants to merge 37 commits into
test/accuracy-evidencefrom
test/resource-measurements
Draft

zzylol wants to merge 37 commits into
test/accuracy-evidencefrom
test/resource-measurements

Conversation

@zzylol

@zzylol zzylol commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Deferred follow-up. Not required for the current #728 → #742 → #775 synthetic-selection and data-plane execution milestone. Online ERP feedback and runtime replanning are explicitly out of scope for that milestone.

Prevent malformed resource measurements from becoming valid candidate prices, and separate resource arithmetic from ranking.

Before this PR: batch CPU normalization silently truncated mismatched user/system sample arrays; negative raw components could pass when their sum was positive, and infinite work could produce a zero per-operation cost.

After this PR: normalization rejects those inputs, preserves paired repetitions and units, and keeps missing resources unknown. A public ERP test checks update/read/merge multiplicities and retained byte-seconds with record identity.

Validation: the new regression failed before the fix (seven failing cases); all nine exporter tests and the Rust resource_measurements integration test pass afterward. Coefficients in the tests are synthetic; real measurements and provenance remain a Level 3 requirement.

Base: accuracy-evidence tests. Next: #759 measured selection and execution audit.

@zzylol zzylol changed the title test: validate resource measurements and reject malformed CPU evidence [Deferred] test: validate resource measurements and reject malformed CPU evidence Sep 28, 2026
@zzylol
zzylol marked this pull request as draft September 28, 2026 02:28
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