Repository navigation
Scala keyword families: io, debug_prints, thread_sleeps, time_date_logic, regex_execution count their own construct (Part of #8863, #9332) - #9378
Merged
Conversation
…gic, regex_execution count their own construct (Part of #8863, #9332) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 26, 2026
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 26, 2026
…9378, all 0.8 or better (Part of #8863, #9332) (#9382) Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8863, Part of #9332. Supersedes #9364.
Checklist: partial [c:4fe6001e] -- the five remaining cells are on an unpinned corpus (kafka), so none can be confirmed on a pinned crucible; no contract question was needed, each contract was clear.
Regraft of #9364 onto current main (the old branch conflicted on four golden snapshot parts after #9361 merged). The two hand-written files (
languages/scala.py,test_scala_family_validity_9332.py) applied cleanly against main; the golden masters were re-blessed fresh, not carried over.What changed
Scala
io,debug_prints,thread_sleeps,time_date_logicandregex_executionnow count their own construct (languages/scala.py):debug_prints: a console call (println(,print(,printf(,Console.err.println,System.out.print); no longerwriter.print(x),def print(, or a bareforeach(println).io: a call or constructor (Source.from*,Files.*,new FileWriter,new ServerSocket,.listFiles,readLine(,Http(); no longer a bare type or package name (java.io.File,ByteBuffer, an akkaSource,SocketServerConfigs).thread_sleeps:sleep(on any receiver,Await.result/ready,LockSupport.park*, plus the forced delays.time_date_logic:Instant/Duration/LocalDateTime/...calls,System.nanoTime,.toMillis-style conversions,new Date,5.secondsliterals.regex_execution:Pattern.compile/matches/quote,.matcher(,replaceFirstIn,findFirstMatchIn,findAllMatchIn.Evidence
All five cells, measured with
family_oracle.py --lang scalaon a local copy of kafka's Scala files (unpinned: not a grid number, not quoted as one), moved from under 0.8 to 0.8 or better on both recall and precision; closures and bitwise_ops did not move. Tests: both directions per family intest_scala_family_validity_9332.py;test_scala_strict.py,test_scala.pyand the validity test pass on this branch (237 passed).Golden bless on current main (
golden-lock.sh crucible_check.py --update --yes): the same 14 parts as #9364, the Scala files'ioandtime_date_logicsignal parts, the repository fingerprint / drift (cobrix) and the scan-output snapshots that carry them. debug_prints, thread_sleeps and regex_execution moved nothing on the pinned corpus.Gates:
pr_gates --fast9/9.Class / Sibling gaps
Class: a Scala keyword-family rule matches words or names rather than the construct its contract states (over-counts: debug_prints, io; misses: thread_sleeps, time_date_logic, regex_execution). All five members are handled here. Sibling gaps: none burned-estate related. Not in this PR: a pinned-crucible Scala corpus large enough to carry these five cells (needed to turn the grid cells from hatched to pinned); residuals such as
time.milliseconds()clock reads (the oracle does not count them) andlatch.await(timeout)timed waits are left out.keyword-rosetta
tools/verify_language.py scala --engine <this branch>: one move,data/scala/main.scala: io expected 3, got 0. Intended: the ScalaprobeIoplants are bare names (Source,Socket,Http), which the io contract ("an operation that moves data",docs/io_rule_contract.md) does not count and this PR stops counting. Java's shell plants calls (new Socket(route),Files.readAllLines(route)). Labelledrosetta:rebless-owed.Cross-repo
Companion: a keyword-rosetta corpus PR, opened after this one merges (its CI checks out gitgalaxy main). It re-plants Scala
probeIoas calls (for exampleSource.fromFile(route),new Socket(route),Http(route)) and re-blessesdata/scala/expected_signals.json. Merge order: this PR first, then the corpus PR. What re-runs after: rosetta-audit on main and keyword-rosetta'sbias-history.yml.Lessons for agents
probeIo) are corpus debt, so label the PRrosetta:rebless-owedand name the corpus PR under Cross-repo.🤖 Generated with Claude Code