Validate runtime evidence schema and target/shard selection before accepting CI reports
Problem
runtime_evidence checks row names/run results but ignores the report schema and selection identity. A report explicitly identifying another target/shard can satisfy the requested Linux evidence contract.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
Load the real linux-amd64 target and selected runtime-eligible source names. Build a synthetic report with pass/run/actual_exit=0 rows for those names, but schema_version=999 and selection id=windows-arm64, target=aarch64-pc-windows-msvc, shard_index=17, shard_count=20. Call runtime_evidence(report, linux_target, 0, 1). Observed: Ok(168). This is an executed negative validator fixture, not evidence of 168 new test executions.
Scope
Compare the existing report schema and selection fields against the requested target/executor/shard before checking rows. Do not invent source/run identity fields as a prerequisite for this bounded fix.
Starting points: tools/src/ci.rs:39.
Completion criteria
- [ ] Reject wrong/missing schema or incompatible target and shard identity.
- [ ] Accept real matching reports and retain complete selected-source/run checks.
- [ ] Test each mismatch with otherwise valid rows.
This is a bounded newcomer task with the starting point and focused negative/positive checks above.
Related: #462, #697. Related broad trackers or completed implementations are context, not claims that their entire scope is unfinished.