Repository navigation
Ruby keyword families: print, io, regex, time, doc rules count the operative form (Part of #8863, #9331) - #9360
Conversation
…s to the operative form; oracle counts modifier-if appends (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…art of #8863) 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 #9360 @ 6eb7b00: 1 failed check(s) == rosetta-audit (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ldens after main merge (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (0a35286) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9360 @ 0a35286: 13 failed check(s) == crucible (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part 1/4 (cancelled) -- infra == ground-truth part 2/4 (cancelled) -- infra == ground-truth part 3/4 (cancelled) -- infra == ground-truth part 4/4 (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
…9331) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (c0b9f64) is not the one a maintainer labelled |
|
No description provided. |
…documents it; sig and :nodoc: do not (Part of #8863, #9331) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (9293be5) is not the one a maintainer labelled |
…s only (Part of #8863, #9331) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9360 @ f3beb42: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
PR #9360 @ 4c3f2a4: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
No description provided. |
|
PR #9360 @ 2aa572c: 1 failed check(s) == rosetta-audit (failure) -- real |
…9331) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…churn/9331-20261126T0148Z
|
CI shepherd: the head of this PR (7e3bd0f) is not the one a maintainer labelled |
1 similar comment
|
CI shepherd: the head of this PR (7e3bd0f) is not the one a maintainer labelled |
|
No description provided. |
|
CI shepherd: the head of this PR (7e3bd0f) is not the one a maintainer labelled |
…ew rules, adopt main's display-name headings) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
CI shepherd: the head of this PR (baf1959) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
What this does
Brings the Ruby red keyword-family cells on the pinned crucible (language-crucible v1.9.0) to 0.8 or better, one language, one PR. Part of #8863, #9331.
debug_printsp/printas bare words, method defs, args)iofind,where,create... and bareFile/Dirconstants)regex_execution/re/literals,%r,!~,Regexp.union)time_date_logicsleep) and missedTime.at,strftime,Benchmarkdoc(is_documented)data/ruby(oracle 68, family 74)sig {is code;:nodoc:means hide) + wrong anchor (5-line window) + oracle misses a form (comment abovesig)Plain words, what each rule now counts:
doc: a contiguous#comment block directly above adef(skipping a Sorbetsig, one-line ordo...end) documents it; a blank line detaches. Magic comments only (rubocop:,typed:,frozen_string_literal,encoding:,sorbet:,:nodoc:) do not. A baresigor:nodoc:is no longer a doc hit. The oracle (family_oracle_specs_b.py) now also walks back oversigcalls, so a comment above asigdocuments the method.io: file/dir/socket/HTTP operations (File.read,Dir.glob,IO.x,Net::HTTP,Socket,.read/.write...), not ActiveRecord-stylefind/where/create.debug_prints:puts/print/pp/p/warnused as a call (parens or an argument),$stdout.putsand friends.regex_execution,time_date_logic: see the rule diff inruby.py.Contract judgement call: a plain RDoc
#block counts as the structured doc form foris_documentedonly. Thedocrule keeps its tag-based hits (YARD tags,=begin rdoc).File cap
This PR touches 7 hand-written files (cap 5):
detector.py,ruby.py,test_ruby_doc_family_9331.py,test_ruby_family_validity_9331.py,test_ruby_strict.py,test_leading_boundary_all_languages_4108.py,family_oracle_specs_b.py. It grew across the branch's commits (5 rule cells, thendoc, which needs the detector anchor). No exception was granted to the worker; the orchestrator decides whether to accept it or splitdoc(detector + doc rule + oracle + its test) from the other four cells.Not in this PR
bitwise_ops,thread_sleeps: red only on the hatched, unpinned brew repo; on the pinned cruciblebitwise_opshas 1 function (under 10). Rules were narrowed, nothing quoted; the nightly sweep refreshes the baseline.doccounts fall wheresig {/:nodoc:used to count.Evidence
data/ruby, three alternating runs, mean user s: base 3.03, branch 2.94 (noise).golden-lock.sh crucible_check.py --update --yes. 22 fixture files changed; 100 mismatch lines, 84 under/ruby/, 16 are the brew.rbfiles and the aggregates built from them (directory groups, health, column digests, LLM brief). Nothing non-Ruby moved.rebless.py ruby --dry-runrefuses ("expected_signals.json does not round-trip");verify_language.py ruby: PASS on main (88 assertions), FAIL on the branch with 2:main.rbioexpected 3 got 1 (bareFile/Dir/Socketconstants no longer count) andunits_documentedexpected 1 got 0 (comment block is separated fromdef entrybyrequire 'a'and a blank line). Both are intended; a rosetta rebless is owed (rosetta:rebless-owed).test_ruby_doc_family_9331.py(new, both directions),test_ruby_family_validity_9331.py,test_ruby_strict.py,test_kotlin_family_validity_9330.py;audit_check.pyclear.Cross-repo
Companion: keyword-rosetta
data/ruby/expected_signals.jsonrebless (io3 -> 1,units_documented1 -> 0 inmain.rb), to run after this merges. Overlap: PR #9360 touchesruby.py,test_ruby_family_validity_9331.py,family_oracle_specs_b.py; this PR is expected to merge after it and re-bless if main moves.Remaining slices
bitwise_ops/thread_sleepson the pinned crucible once the nightly sweep re-scores.Sibling gaps (class sweep)
_DOC_ADJACENT_LANGS) may show the same doc over-count and should be checked per language in their own PRs.is_documentedforms with a decorator-like line between comment and def (Sorbetsigis the Ruby one) are handled only forsig.Checklist: done [c:f3acbbc3]
Lessons for agents
verify_language.pycan FAIL whererebless.py --dry-runrefuses on formatting: run it against both main and the branch and compare.main.rbencodes the old 5-line doc anchor: a doc-anchor change always owes a rosetta rebless.🤖 Generated with Claude Code
File cap: 7 hand-written files, not cut. The detector and ruby.py edits are one change, and the strict-test and leading-boundary edits and the oracle spec move with them (the grid baseline is measured against that oracle). No exception was granted; the orchestrator can requeue with
--file-cap-exception.