Repository navigation
feat(analysis): enforce non-vacuous complete-zero and outcome consistency (slice of #6473) - #10015
Conversation
…tcome (#6473) Internal, deterministic, debug-asserted invariant; no public projection, gate, analyzer-semantics or support-tier change. - validate(): repo complete_zero needs production_files > 0; repo no_current_scope needs exactly 0; a label recorded twice where one row would allow completeness and another blocks is a visible conflict (the TypeScript family is exempt: bridge-profile Rust-line findings make its two loop runs legitimately differ). validate_selected(): every selected language has a child. - reconcile(): child findings equal retained findings (relaxed to >= only when both TypeScript ids run, a pre-existing retained-list duplication); AnalysisOutcome finding_count equals retained findings; a complete kind cannot sit over a partial/unavailable/invalid/failed/unsupported child; an unsupported child needs a top-level LanguageScopeUnsupported limitation. - Pipelines call reconcile at the existing debug_assert sites. - Deferred: diff complete-zero touched re-check, stale identity, cancellation/timeout, per-project accounting, not_selected vs kind. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cuuiz4GRfXbHkeQuoNnjcz
…scriminating (#6473) A typescript label recorded twice with one complete and one failed row is a recorded conflict that only the family exemption lets validate() accept. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cuuiz4GRfXbHkeQuoNnjcz
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 14 minutes. View limit details
Comment |
|
Required check failed on Generated by Claude Code |
|
Update: #10018 is superseded by #10019, which repairs main's traceability, protocol golden and Perl ledger omissions. I'll merge main into this branch and re-request CI once #10019 lands. Generated by Claude Code |
|
Required check failed on three Generated by Claude Code |
Governing issue or accepted claim: #6473 (internal invariant slice; the issue stays open)
Acceptance delta (one sentence): The internal language aggregate and a new pure
reconcilecheck now reject complete-zero without discovery proof, findings or counts that disagree with the child rows, an omitted selected language, a conflicting duplicate child, a complete outcome kind over a hard blocker, and unsupported changed source without its top-level limitation, all without changing release behavior or any public output.Changes
language_outcome/diff_aggregate.rs:validate()rejects a repocomplete_zerochild unlessproduction_files > 0, and a repono_current_scopechild unlessproduction_files == 0.conflictsset, excluded from the digest, records a label recorded twice when one row lets the aggregate claim completeness and the other blocks it.validate()fails on a conflict, except for thetypescriptandjavascriptlabels, which legitimately differ between the two loop runs.validate_selected(selected)requires a child for every selected language.language_outcome/reconcile.rs,reconcile(aggregate, selected, findings, outcome):validate()plus the omitted-language check.AnalysisOutcome.counts.finding_countmust equal the retained findings.AnalysisOutcome.kind.LanguageScopeUnsupportedlimitation.reconcileinside their existingdebug_assert!sites. Repo mode passes no outcome. Release builds are unchanged.Proof
language_outcometests pass at 51 under default features and under--no-default-features --features lang-rust.validate()discovery check, a partial child counted as complete, the omitted-language check, the count-union check, the outcomefinding_countcheck, the hard-blocker-versus-kind check, the unsupported-limitation check, and conflict recording. Each turned the intended test red.cargo xtask precommitpasses. The full pipeline suite runs throughreconcilein debug without any abort.typescriptrow, and dropping the exemption turns it red.Real findings from running reconcile over the suite
reconcileonly tolerates it for that selection.unavailableadapter row and anot_selectedadvisory row). The conflict rule is narrowed to the dangerous case, so this is not a conflict.not_selectedchildren are not tied to the outcome kind, because uncompiled preview adapters are aggregate-only (slice(#5546 PR C): implement deterministic mixed-language diff-mode aggregation without sibling evidence loss #6468) with no top-level limitation. The module doc says so.Deliberate non-claims (left open on #6473)
complete_zerotouched-fact re-check invalidate()(needs a new child field).Generated by Claude Code