Repository navigation
fix(dart): branch ignores nullable ?/?., closures ignores declaration =>, generic >> not a shift (#8906) - #9055
squid-protocol wants to merge 6 commits into
Conversation
… =>, generic >> is not a shift (#8906) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #9055 @ 9dded0c: 1 failed check(s) == rosetta-audit (failure) -- real |
…ops (#8906) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (e648e77) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9055 @ e648e77: 20 failed check(s) == crucible (cancelled) -- infra == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == det (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == evidence report level deltas (advisory) (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == plan the suite parts (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (80e9fd6) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
|
PR #9055 @ 80e9fd6: 15 failed check(s) == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
Opus rescue: this head has no real defect. The only red check that isn't infra is Unblock: add |
|
Waiting on an owner decision (asked privately, 2026-11-22). Nothing is needed from contributors; work resumes once it is answered. |
|
The owner decided (2026-11-22); the bot applies it on its next tick. |
#9056 #9057 #9058 #9059 #9061 #9067) (#9111) * apply #9053 (non-snapshot changes) * apply #9054 (non-snapshot changes) * apply #9057 (non-snapshot changes) * apply #9059 (non-snapshot changes) * apply #9061 (non-snapshot changes) * apply #9067 (non-snapshot changes) * apply #9055 (non-snapshot changes) * golden: re-bless once for the seven stacked engine fixes (#9053 #9054 #9055 #9057 #9059 #9061 #9067) Each of the seven PRs conflicted with the others in the golden-master snapshots, so merging them one at a time would have re-conflicted the rest each time. One combined branch, one bless (crucible_check.py --update --yes through golden-lock.sh, both legs) plus the dartdoom DOOM golden. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * apply #9056 #9058 (non-snapshot changes) * golden: re-bless with #9056 and #9058 folded in (powershell, perl) plus odamex and prboom-plus DOOM goldens Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Fixes #8906 (part of #8863). Rule-level changes in
dart.py:branch:?now counts only at a ternary position (whitespace before it, not?.,?..,?[, notT?);??/??=once.int? f(int? a)2 -> 0,a?.x2 -> 0,a?.x ?? 13 -> 1.closures: the bare=>is gone.=>counts only after an expression-position parameter list (= (x) => ..,f((x) => ..),return (x) => ..), so an arrow body on a named function, getter, operator or switch arm no longer reads as an anonymous callable.bitwise_ops: a>>closing a generic list is not a shift (the bitwise_ops: counts closing generics as a shift and ignores & and | that its contract names; string text counts by design (#2535) against the contract #8866 shape, which skipped dart); real<<,>>,>>>,>>=still count.Class / Sibling gaps
Class: Dart signal rules counting a shape their contract does not name (nullable-type
?and null-aware access as branch, a declaration's=>as closure, a generic's closing>>as shift). All three members are fixed here, each pinned intests/extraction/languages/test_dart_nullable_closures_8906.py(branch 12 cases, closures 13, bitwise 8, plus a ReDoS-bound check).Sibling gaps: none in scope. Known limit: an unspaced ternary
a?b:cis no longer counted (dart format always spaces it). Other languages with a nullableT?(swift, kotlin, csharp, typescript) were not measured here; no burned estate (all COBOL) needs them.Golden / evidence
Blessed via
golden-lock.sh crucible_check.py --update --yes(both legs).scope_check.py --expect dart: dart per-file function/signal values move (framework.dart, events.dart, theme_data.dart, editable_text.dart, ...). Outside dart the only drift is Topological Coordinates (the global layout re-projects when dart's signal totals move) and repo-wide rollups (avg_cognitive_load 19.772 -> 19.762, composition distribution); no other language's signal counts moved.Test changed:
test_dart_strict.pyasserted thatfoo(a, b) => a + b;matchesclosures; that is exactly the declaration shape the issue says is not a closure, so it now assertsx = (a, b) => a + b;matches andfoo(a, b) => ...does not.Overlap: #9053 also edits
docs/branch_rule_contract.md; this PR adds one line there.Cross-repo
rosetta:rebless-owed: keyword-rosetta dart counts may move. Companion: a keyword-rosetta rebless PR after this merges (this side merges first; rerun the rosetta sweep against main after merge). Crucible pin unchanged.Checklist: n/a
🤖 Generated with Claude Code