Repository navigation
072 increment 3, step 1: rustev-eval's dependency test admits schemars - #591
Conversation
AI review (findings)Looking at the two changed files:
The concrete defect: the let with = [
"rustev-contract",
"rustev-core",
"serde",
"serde_json",
"schemars", // last
];Alphabetically,
The transitional test fails precisely when it is supposed to pass, defeating its stated purpose. The fix is to put {"head": "72dabab492d0087440632270359fa0cdcd1f2580", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/tests/dependencies.rs", "line": 26, "severity": "medium", "category": "correctness", "summary": "The 'with' array places 'schemars' after 'serde_json', but alphabetically 'schemars' precedes 'serde'; if the follow-on PR adds the dependency in sorted order the parsed list will not match either array, causing the transitional assertion to panic instead of passing."}]}Subject: 4e575a1...72dabab, diff digest 889060ae013e9ca24815c4e1f0b2ba6f3be3b3b2aa7c18ddc5e684d36bf80834, 1 call(s). An AI comment is not an approval. |
Test only. The test accepts either exact dependency list, with or without schemars, so the dependency-only change can pass on its own; the schema change tightens it again.
72dabab to
1a8163c
Compare
AI review (findings)Reviewing the two changed files.
One concrete defect: the let with = [
"rustev-contract",
"rustev-core",
"serde",
"serde_json",
"schemars", // ← assumed last
];Cargo.lock entries are sorted alphabetically. Alphabetically, The correct let with = [
"rustev-contract",
"rustev-core",
"schemars",
"serde",
"serde_json",
];{"head": "1a8163c9cc6cf1459271804e09dcc6006031ccf5", "verdict": "findings", "findings": [{"path": "crates/rustev-eval/tests/dependencies.rs", "line": 24, "severity": "medium", "category": "correctness", "summary": "The `with` array places `schemars` after `serde_json`, but Cargo.lock entries are alphabetically sorted, so `schemars` (sch < ser) would appear before `serde`, causing `deps == with` to be false when schemars is actually added and defeating the transitional test's stated purpose."}]}Subject: 589185f...1a8163c, diff digest 889060ae013e9ca24815c4e1f0b2ba6f3be3b3b2aa7c18ddc5e684d36bf80834, 1 call(s). An AI comment is not an approval. |
Spec 072 increment 3, step 1 (test only). Stacked on #588.
rustev-eval'stests/dependencies.rs(spec 004) pins its normal dependencies exactly. Increment 3 addsschemars(already a dependency ofrustev-contract) in a dependency-only pull request, as the policy-isolation guard requires; that pull request cannot also change this test. So this change comes first: the test accepts either exact list, with or withoutschemars, and the schema change (step 3) tightens it to the list withschemars. Nothing else is admitted, and the target and build dependency checks are unchanged.Order: this → the
Cargo.toml/Cargo.lockchange → the emitter, committed schemas and tests.Local:
cargo test -p rustev-eval --test dependenciespasses; clippy and fmt clean;make gatepasses;spec-spine couplereports no drift.Review note (1a8163c): 620727a81636 is a false positive. The test parses the
[dependencies]table ofcrates/rustev-eval/Cargo.tomlin file order (include_str!("../Cargo.toml")), not Cargo.lock. The dependency-only commit appendsschemars.workspace = trueafterserde_json, and this test passes against that commit (cargo test -p rustev-eval --test dependencies: 1 passed), as it does on this head.