Repository navigation
fix(dx-scoreboard): require typed limitations array before complete admission - #7284
Conversation
…dmission Complete-kind warm-check admission no longer treats omitted, non-array, or kind-less outcome.limitations as an empty allowlist. Empty arrays and eol_only_churn still admit; producer_failure still rejects. Closes #7276 Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
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
Summary by CodeRabbit
WalkthroughThe DX scoreboard now requires ChangesComplete-kind admission
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is identified; the change is mergeable after normal checks. Security Architecture Review
Pre-merge checks |
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT)
GitHub cannot request changes from the author; this is not approval.
reviewed_head_sha: 5755a247453e90837a24a194d9d5d2b561d3ba6c
integration_basis: origin/main 5d889347851db00c63f5ec31c4ef76c44d40ad73
claim_boundary: #7276 — complete-kind admission requires a present typed limitations array whose every entry has a string kind; [] and eol_only_churn still admit; producer_failure still rejects. Local xtask predicate only.
changed_surfaces_and_semantic_owners_inspected:
- xtask/src/reports/dx_scoreboard/measure/check_admission.rs::complete_kind_has_incomplete_limitation and admit_check_document call site (admission owner)
- changelog.d/7276-typed-limitations-admission.md
- consumers: measure.rs still only calls admit_check_sample/admit_check_document (not edited; #7275/#7283 fence)
- non-owners confirmed untouched: scan_check_contradictions (#7277), portable_root (#7274), measure.rs (#7275), analyzer/public schema
blocking_findings: none in source/oracle on this head
non_blocking_suggestions: none in-claim
refuted_or_stale_findings: none yet (no bot threads on this head)
proof_and_ci_observed:
- pre-repair red: omitted limitations admitted as Complete
- cargo test -p xtask reports::dx_scoreboard::measure::check_admission: 10 passed
- cargo test -p xtask reports::dx_scoreboard: 82 passed
- cargo xtask precommit: pass
- cargo xtask check-fast: 10 gates, 2 files, skipped check-fixture-contracts; matches independent origin/main...HEAD path set
proof_or_review_missing: hosted required checks (Ripr Rust Small Result / merge gate) and any external review providers — not yet current on this published head
affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (changelog). integration basis and candidate head identity bound above. generated/conflict: n/a
residual_assumptions_and_non_claims: not a live producer hole; not a copy of AnalysisLimitation; not a general schema validator; incomplete kinds still rejected by kind, not this predicate; trust-row tightening remains #7277
disposition: REVIEW_INCOMPLETE
Maintainer lens
Diff is the named seam plus a changelog fragment. Did not copy private ripr validators, did not touch measure.rs / check.rs / output/json / triage.rs, did not take #7273/#7274/#7275/#7277. Distinct reject reasons (missing array vs missing string kind vs allowlist) stay inside the local predicate and make the discriminator distinguish shape failure from producer_failure.
Test/oracle lens
Discriminator calls admit_check_document (retained production authority). Old flatten is retained as permissive_complete_kind_limitation_flatten so restoring the hole fails. Controls: omitted, object, [{}], non-string kind, mixed eol_only_churn+kindless reject; [] and eol_only_churn admit; producer_failure still uses the allowlist reason. Pre-repair red was the intended Complete admission, not a compile failure.
Hosted exact-head checks are missing until Draft → Ready completes. Re-enter this pass on the same SHA after those receipts exist before merge convergence.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm discriminator omits
nulllimitations variant and entries with non-object shape (e.g.[null], strings, numbers). - Confirm pR claims tightening
speed.warm_check_*baselines but emits no live produce-side proof that the real check JSON writer always emits a vector.
Refuted
- Allocation failure on Some(reason) could cause the function to silently admit, but the function only inspects existing JSON and returns a 'static str; no allocation occurs on the rejection path.; refuted because: Path is borrow-only: matches on Value variants and returns &'static str literals; no Vec, String, or Box allocation touched by the new code or its callers.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Source-backed reply to the verification review on Null / non-object entries. Production already fail-closes both shapes in
#7276 required controls are omitted, object, and Producer-side vector. This is not a live producer hole (#7276 current-source evidence; the check JSON writer already emits a typed Classification: incorrect-as-blocker / already in the claim boundary. Unresolved inline threads: none. |
Summary
Complete-kind DX scoreboard admission treated a missing, non-array, or kind-less
analysis_outcome.outcome.limitationsvalue as “no incomplete limitations,” so omitted, object-valued, and[{}]envelopes could admit as complete work.This PR requires a present typed array whose every entry has a string
kindbefore applying the complete-kind allowlist. Empty[]andeol_only_churnstill admit.producer_failurestill rejects.Closes #7276 (Advances #3794/#5363). Residual of #7259 / #7271; not a live producer hole.
Exact candidate SHA:
5755a247453e90837a24a194d9d5d2b561d3ba6c.Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmsurface
If this PR moves crates.io publishing, VS Marketplace publishing, Open VSX
publishing, GitHub Release assets, signing, release environments, or release
secrets, close or retarget it. Those surfaces belong in
EffortlessMetrics/riprunless a dedicated release-boundary change has already been approved.
Source-of-truth Links
Proposal:
Spec: native check JSON / analysis-outcome producer contract (producer already emits a typed
limitationsvector)ADR:
Plan item:
Governing issue or accepted claim: #7276; parents #3794 / #5363; reuse #5299 and the #7259/#7271 admission predicate
Acceptance delta (one sentence): A complete kind cannot admit unless
outcome.limitationsis a present array of entries that each carry a stringkind.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
cursor/typed-limitations-admission-40e5Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
All-state search for
#7276,complete_kind_has_incomplete_limitation, andtyped limitations arrayfound no equivalent owner. Neighbor fences respected: nomeasure.rs(#7275 / #7283); no files from #7281/#7282; nocheck.rs/output/json/triage.rs(#7258); no #7273/#7274/#7277.Scope
One local xtask admission predicate in the existing DX scoreboard consumer. Do not copy private
AnalysisLimitationinto xtask.Scope Classification
This PR is scoped by:
Production delta:
complete_kind_has_incomplete_limitationfail-closes unlesslimitationsis an array.kindbefore theeol_only_churnallowlist is applied.[{}], and non-stringkindvalues reject complete admission.[]andeol_only_churnstill admit;producer_failurestill rejects with the existing allowlist reason.Evidence/support delta:
omitted_object_and_kindless_limitations_cannot_admit_as_completeexercisesadmit_check_document.permissive_complete_kind_limitation_flattenso restoring it fails the discriminator.changelog.d/7276-typed-limitations-admission.md.Single acceptance criterion:
[{}]limitations cannot admit as complete; restoring the flatten helper as the production predicate would fail the discriminator;[]andeol_only_churnstill admit;producer_failurestill rejects.Non-goals:
AnalysisLimitation) across the crate boundary.measure.rs.Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
serde_jsonalready in xtask.Proof
Result, failures, or skipped proof:
reports::dx_scoreboard(82) passed on5755a2474.precommitpassed.check-fastselected the same 2-file set independently resolved fromorigin/main...HEAD; clippy ran as part of that set.Ripr Rust Small Resultruns on Draft → Ready for this head.Claim Boundary
What may be claimed after this PR? What must not be claimed yet?
limitationsarray with a stringkindon every entry; omitted / object / kind-less entries cannot improve complete-work baselines; empty arrays andeol_only_churnstill admit;producer_failurestill rejects.Rollback
How can this PR be reverted safely?
Spec-Test-Code Traceability
xtask/src/reports/dx_scoreboard/measure/check_admission.rs::omitted_object_and_kindless_limitations_cannot_admit_as_completextask/src/reports/dx_scoreboard/measure/check_admission.rsspeed.warm_check_*admission tightened; no new metricAnalysisLimitationinto xtaskStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
Local focused suite and
precommitpassed on5755a2474. Hosted merge-gate matrix owns required checks. The requiredRipr Rust Small Resultcheck runs on Draft → Ready.