Repository navigation
Java branch counts && and ||; catch stays out per the branch contract (Closes #8867) - #8897
Conversation
…#8867) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8897 @ a387470: 1 failed check(s) == shard 4 (1669847 LOC) (failure) -- real |
…8867) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (95e4104) is not the one a maintainer labelled |
|
No description provided. |
|
PR #8897 @ 95e4104: 19 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 == 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]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Closes #8867
What
catchstays out of Javabranch/complexity:docs/branch_rule_contract.mdcorollary 1 (branch has no stated contract: handler keywords, the syntax words of one conditional, and goto count as decisions in some languages and not in others #2822) already says a handler is not a decision (catch/try/finally/throwbelong tosafety), andtest_java_strict.pyplants it. That is the issue's second option; the contract row for Java now records it (WITHDRAWN: Java complexity does not count catch (not a bug: branch contract corollary 1) #8867).branchregex omitted&&/||, which every sibling C-style rule counts (JS, TS, C, C++, Go, Kotlin, Scala, Dart, PHP, Swift, Rust). Added.tests/core_engine/test_java_complexity_catch_8867.py(the issue'scaughtcase = 0,&&/||+1 each, operators in string literals 0) and strict pins intest_java_strict.py.Class
Class: a
branchrule that disagrees with the stated branch contract. Siblings checked: catch is already excluded in kotlin, scala, javascript, python, csharp. Sibling gaps: csharp (keywordsand|or|notonly) and groovy lack&&/||inbranch; no burned mainframe estate needs either.Timing
Regex-only change: findall over 378 KB of crucible Java, CPU best of 5: 6.7 ms -> 7.2 ms (+7%, 676 -> 730 hits).
Golden drift
Java files' branch/complexity/derived scores move (49 Java lines of the capped list); 6 python/tabular lines are X/Z layout coordinates shifting with the global spatial map. Blessed with
golden-lock.sh crucible_check.py --update --yes.audit_check.py: all clear.Cross-repo
keyword-rosetta has no
&&branch plant for Java; companion plant is a follow-up there (no merge-order dependency).Lessons for agents
function_datacomplexity is thebranchkey of a function dict fromStructuralExtractor.splice(nocomplexitykey there).Facts checked: the family oracle (#8864) is not on main, so I could not read how it counts
catch; if it counts it, its Java reading disagrees with the contract (comment on #8867).🤖 Generated with Claude Code