Repository navigation
test(gate): reject vacuous non-promotion charters - #3203
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Summary by CodeRabbit
WalkthroughThe evidence-promotion honesty gate now requires every ChangesEvidence promotion honesty
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: 🔵 Low · up to The PR makes negative evidence-promotion charters require non-clean findings, preventing empty reports from passing them. The change appears low risk, but merge readiness remains bounded by the full pre-merge validation timing out without a result. Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Confirmed findings
- PR body claims
cargo xtask check-prtimed out at 10 minutes without result; this is an environment/throughput concern, not a correctness defect of the validator invariant itself.
Verification questions
- Confirm artifact-verifier failed exit 2 in this packet; combined with PR-body claim that
check-prtimed out 10m with no result, the CI-witness chain for this exact head is incomplete. Body itself disclaims full CI/release readiness, so not a blocker, but reviewers should weigh this when deciding merge posture. - Confirm existing Rust charters rust_weak_error_oracle and rust_error_path_sibling_oracle gained must_not_report_clean plus expected_class=weakly_exposed, matching the new invariant; no other charters regressed.
- Confirm corpus coverage: PR fixes Python and Rust must_not_promote charters but TS negative charter example in spec table does not show the same assertion pair; corpus may have stale typed-vocabularly assertion omitted.
- Confirm manifest invariant added at validate_evidence_promotion_honesty_corpus_at only checks the typed-assertions branch (case.get('assertions').is_some()). If any tier branch (pure/observed_evidence/...) skips or duplicates the invariant, a vacuous charter could still slip through. ast-grep scan of the function body would confirm invariant is single-source.
- Confirm validator only checks presence of must_not_report_clean anywhere in assertions array; order/duplicates not canonicalized, so a stray duplicate still passes.
Test proof
- Focused HEAD proof failed (exit 101):
cargo test --locked --package xtask --test tests evidence_promotion_honesty_rejects_vacuous_non_promotion_charter. This is a current failure, not a red/green witness.
Refuted
- Allocation failure from any new allocation in the validator path; refuted because: The vacuity guard is pure iteration over an existing slice (
assertions.iter().any(...)) plusformat!of a small fixed string; no new heap allocation introduced on the validator hot path, and the PR diff does not touch any allocation-prone surface. - The vacuity guard fails to fire when assertions list is empty because .any() returns false on an empty iterator, so the case passes the new check vacuously.; refuted because: Refuted: the guard only requires must_not_report_clean when must_not_promote is also present; if neither is asserted the case simply lacks a non-promotion charter and is not subject to the new invariant. The guard's contract is correct as scoped to must_not_promote cases.
Evidence gaps
- artifact-verifier sensor failed with exit code 2; orthogonal to this manifest-validator change but should not block correctness conclusion.
- Model proof intent was rejected by deterministic validation.
Parked follow-ups
- Duplication risk: the vacuity assertion text is constructed in one site (
must_not_promote requires must_not_report_clean so an empty findings re-bless cannot pass vacuously) and consumed viaviolations.join("\n")in the new test. Acceptable for now, but if more such schema rules accumulate, consider a typed error enum like neighboring validators.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head convergence review for c8a3064bbeff8a56d6fa3c820a8a43b96a97be1f: REVIEW_READY.
Independent review found no actionable source, proof, fixture, or documentation defect. I reverified the current head and the review questions against source truth: the invariant is enforced once in validate_evidence_promotion_honesty_corpus_at before tier dispatch; all 51 typed must_not_promote cases carry must_not_report_clean; both affected Rust charters additionally pin expected_class=weakly_exposed; the temporary empty-findings Python corpus is rejected while Rust/TypeScript guarded and promoted controls retain parity. Duplicate assertion ordering is not part of this bounded non-vacuity claim.
Exact-head hosted evidence is green: both routed Rust-small runs, including required gates, advisory reports, PR evidence, and Ripr Rust Small Result; JUnit; coverage/Codecov; source-of-truth; UB review; dependency/security checks. Local proof recorded in the PR body remains: focused xtask tests, precommit, honesty gate, fixture contracts, goldens, fmt, and diff check passed; cargo xtask check-pr timed out after ten minutes without a result and is not represented as a pass. The earlier artifact-verifier sensor gap and CodeRabbit description warning are advisory/instrument/template observations, not defects in this claim.
REST reports zero inline comments and GraphQL reports zero review threads. Droid Auto Review remains queued with zero steps and is not a required branch-protection or ruleset check. This review is a COMMENT because the PR author account cannot self-approve.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm manifest-level invariant enforced at validate_evidence_promotion_honesty_corpus_at before tier dispatch; gates only the typed-assertions branch via case.get('assertions').is_some().
- Confirm negative regression test rejects py_vacuous_non_promotion while retaining Rust/TS guarded and promoted controls; existing typed-vocab test and dishonest Perl test updated with must_not_report_clean.
- Confirm tS negative charter example in spec table uses expected_class=weakly_exposed + must_not_report_clean but corpus rows may not be updated to assert the pair uniformly.
- Confirm artifact-verifier exited 2 in this packet; combined with PR-body claim that cargo xtask check-pr timed out 10m without result, the CI-witness chain for exact head is incomplete. Body disclaims full CI/release readiness.
Refuted
- TS negative charter in spec table lacks must_not_report_clean pair; refuted because: Spec table only documents the two Rust non-promotion charters' assertion set inline; other TS entries are illustrative, not a typed charter schema. Corpus updates are the authoritative typed source.
- Invariant may need a shared helper or be duplicated across tiers; refuted because: Single-call, single-site invariant does not warrant extraction; current inline form matches surrounding style and avoids speculative reuse.
Evidence gaps
- artifact-verifier failed exit 2 combined with check-pr 10m timeout creates incomplete CI witness chain for exact head.
- Model proof intent was rejected by deterministic validation.
Claim
Make evidence-promotion honesty charters non-vacuous: every typed
must_not_promotecase must also requiremust_not_report_clean, so a re-blessed empty findings report cannot satisfy a negative charter without evidence.Closes #3202
Changes
validate_evidence_promotion_honesty_corpus_at.weakly_exposedplus non-clean expectations.Proof
cargo fmt --check— passcargo test -p xtask evidence_promotion_honesty -- --nocapture— pass (12 tests)cargo xtask precommit— passcargo xtask check-evidence-promotion-honesty— passcargo xtask check-fixture-contracts— passcargo xtask goldens check— passgit diff --check— passcargo xtask check-pr— timed out after 10 minutes without emitting a result; no assertion failure was observedClaim boundary
This closes the manifest-level vacuity gap and preserves the existing runtime
must_not_report_cleanenforcement. It does not establish full CI or release readiness; the draft is awaiting independent exact-head review and hosted checks.Rollback
Revert commit
c8a3064bto restore the prior charter schema and validator behavior.