Repository navigation
Kotlin family validity: io, time_date_logic, panics_and_aborts, bitwise_ops, regex_execution read the construct their contract names (Part of #8863, #9330) - #9392
Conversation
…se_ops, regex_execution read the construct their contract names (Part of #8863, #9330) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9392 @ a0efd4b: 1 failed check(s) == rosetta-audit (failure) -- real |
|
Waiting on an owner decision (asked privately, 2026-11-26). Nothing is needed from contributors; work resumes once it is answered. |
|
Closing as superseded by #9387. Both PRs fix the same five Kotlin red cells of #9330 in the same lines of 🤖 Generated with Claude Code |
Part of #8863. Issue #9330: Kotlin keyword-family red cells.
Checklist: done [c:3d9860c9]
What changed
Five Kotlin rules in
languages/kotlin.pynow read the construct their contract names.closuresanddocwere already green on main (fixed by #9358): no change.Measured on okhttp (the only corpus with 10+ oracle functions for these cells; they are hatched, not a pinned crucible), oracle recall / precision, before -> after:
return, ruled not an abort in #8868) + missingTODO(/error(File,Dao,HttpClientin imports and types), not an operationSystem.nanoTime,Duration.,.toMillis,Date(,measureTime*, ...);Instant.parsestays out (not a clock read, pinned by test_kotlin_strict)and/or; right operand must be a literal, constant, paren or member so English in strings and backticked test names do not count.find(/.matches(are collection / domain calls; regex members now namedfamily_red_cells.py --lang kotlin: 0 red cells. Baseline rows (okhttp) and the two chart SVGs regenerated.Family-validity checklist
test_kotlin_family_validity_9330.py);test_kotlin_strict.pyregex test moved off.matches(verify_language.py kotlinPASS on main, FAIL on branch:main.kt io expected 3, got 0(the plant is the bare wordsFile,Retrofit,Ktor, which are exactly the type mentions the io contract excludes). Companion plant change needed, see Cross-repo.golden-lock.sh crucible_check.py --update --yes; diff is the Kotlin files plus aggregates (error exits, file/network i/o, regex, time/date signal parts, fingerprint, snapshots). Did not separately bless unmodified main to zero.pr_gates --fast(only stale chart SVGs, regenerated) and--ratchets9/9 passCross-repo
Companion: keyword-rosetta
data/kotlin/main.ktplantsval disk = File,val web = Retrofit,val net = Ktorforio; these become 0 here. Its plant needs a call form (e.g.File(path),x.readText()) and a rebless (rosetta:rebless-owed). This PR merges first; rosetta CI checks out this repo's main, so the rosetta PR follows. Itsexpected_signals.jsondoes not round-trip underrebless.py, so the rebless needs the file's own formatting fixed first.Class / Sibling gaps
Class: Kotlin keyword-family cells whose rule counts a type or word mention instead of the operation the contract names, or lacks the contract's keyword forms. All five red cells share the mechanism (a rule in
kotlin.py) and are handled here with positive and false-positive tests; closures and doc were already handled (#9358). Sibling gaps: the five cells are hatched (okhttp, not pinned), so no pinned-crucible number backs them; a crucible Kotlin corpus with io / time / bitwise use would. String literals are still not shielded for these families (#2535): bitwiseand/orandtimewords inside a string can still count, mitigated by operand anchors. Scala (#9332) and Java siblings carry their own issues.Lessons for agents
rebless.pyrefuses keyword-rosettadata/kotlin/expected_signals.json("does not round-trip"); usetools/verify_language.py <lang> --engine <tree>on main and branch.ruff checkwithout the repo's pinned config reports S101 on every test assert; ignore it and usepr_gates --fast.🤖 Generated with Claude Code