Repository navigation
Kotlin keyword families: io, panics, bitwise, regex, time rules count the named construct (Part of #8863, #9330) - #9387
squid-protocol wants to merge 10 commits into
Conversation
… the named construct (Part of #8863, #9330) Regraft of #9376 onto current main. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
PR #9387 @ 6e869e3: 1 failed check(s) == rosetta-audit (failure) -- main |
|
CI shepherd: the head of this PR (714e969) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t' into churn/8863-20261126T1402Z-regraft
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (6b3e0c3) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9387 @ 6b3e0c3: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9387 @ a601ce9: 1 failed check(s) == rosetta-audit (failure) -- real |
|
CI shepherd: |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9387 @ 8d1123c: 2 failed check(s) == rosetta-audit (failure) -- real == shepherd (label event) (failure) -- infra |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (f1ddba5) is not the one a maintainer labelled |
|
Waiting on an owner decision (asked privately, 2026-11-26). Nothing is needed from contributors; work resumes once it is answered. |
|
Closing as superseded: this change merged in #9409 ( 🤖 Generated with Claude Code |
Part of #8863, #9330
Supersedes #9376
Checklist: partial [c:3d9860c9] -- the crucible corpus + pin bump above
Summary
The five remaining Kotlin red cells (io, panics_and_aborts, bitwise_ops, regex_execution, time_date_logic) came from crude rules: bare type names for io (
File,Retrofit,Dao),returncounted as an abort,.matches(/.find(counted as regex, no infixand/or, a four-name time list. Each rule now matches the construct its contract names (call forms, not type names)._scope_filtersshields string literals for bitwise_ops (branch and short_circuit kept). Per-family#9330comments inkotlin.py.Class / Sibling gaps
Class: a keyword-family rule that matches a name that merely co-occurs with the construct (a type name in a signature, a member shared with collections) instead of the operation itself.
Sibling gaps (no issues filed):
/nvme-data/gitgalaxy-data/okhttp) and cannot be quoted as pinned. Needs a language-crucible corpus PR plus a pin bump; until then the cells stay hatched.fun Byte.and(declarations still count as.and(in bitwise_ops.Remaining slices: the crucible corpus + pin bump above.
Evidence
family_oracle.py --lang kotlin(exploratory, unpinned): all five cells now above 0.8; see the 18-line Kotlin-only diff intests/family_validity_baseline.json. Closures and doc stay green on the pinned crucible.scope_check.py --expect kotlin: 399 Kotlin diffs; the 70 "unattributed" are repo-wide rollup fields that reference the same Kotlin files). Blessed withgolden-lock.sh crucible_check.py --update --yes.data/kotlin.test_kotlin_family_validity_9330.py); twotest_kotlin_strict.pysnippets updated (the.matches(regex collision, aClocknegative).pr_gates --fast(after regenerating the family-validity SVGs),--ratchets, andaudit_check.pyall pass.Family-validity checklist
Cross-repo
keyword-rosetta moves on Kotlin, as intended:
rosetta-auditreportsREG kotlin: main.kt: io expected 3, got 0. Rosetta's KotlinprobeIoplants three bare type names (val disk = File,val web = Retrofit,val net = Ktor). Under the io contract (docs/io_rule_contract.md: an operation that moves data; declarations and type references are not opens) those are no longer io sites, which is the precision fix this PR makes on okhttp. The PR carriesrosetta:rebless-owed.data/kotlin/main.kt, changeprobeIoto three call-form plants, one hit each (for exampleFile("disk"),Socket("host", route),URL("web"), the same shape as Java'snew Socket(route)plants), then re-blessdata/kotlin/expected_signals.json.tools/rebless.py kotlinrefuses that file today because it does not round-trip underindent=2, ensure_ascii=False, so the companion PR reformats it first (or usestools/verify_language.py kotlin --engine <checkout>).bias-history.yml.Lessons for agents
family_oracle_sweep --writerewrites unrelated languages' cells; revert them by hand before committing._scope_filters, not the code stream, so unit tests that read the code stream cannot see it.docs/self_scan/family_validity_*.svg: runfamily_validity_chart.py --write.🤖 Generated with Claude Code
Regrafted onto current main from #9376 (main moved; baseline, SVGs and goldens regenerated).