Repository navigation
Go keyword families: bitwise_ops, time_date_logic, io and doc read 0.8 or better on the pinned crucible (Part of #8863) - #9313
squid-protocol wants to merge 7 commits into
Conversation
…8 or better on the pinned crucible (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…y pass (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #9313 @ 28408c3: 2 failed check(s) == full-suite part 2/5 (failure) -- real == rosetta-audit (failure) -- main |
…, re-bless follows) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ucible v1.9.0 (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (b9e9717) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (015790c) is not the one a maintainer labelled |
|
Waiting on an owner decision (asked privately, 2026-11-25). Nothing is needed from contributors; work resumes once it is answered. |
|
Superseded by merged #9325 (one rebless for Go/TypeScript/Crystal). |
Part of #8863 (Go slice, checklist line
**go** [c:go]).Checklist: done [c:go]
Class / Sibling gaps
Class: Go keyword-family cells that read under 0.8 on the pinned crucible. Four were red; closures was already green (fixed by #9267), so it is no change.
&|&=|=) and oracle misses a form (Go unary^complement)time.Durationin field and param types)io.Reader,bufio.Writer) and import paths; oracle lackedio.Copy/ReadAll/ReadFull/WriteStringfamily_red_cells.py --lang gonow lists onlydecoratorsandregex_execution, both hatched (not a pinned crucible).Sibling gaps (not in this PR). No burned-estate COBOL program needs any of them:
decorators(Go struct tags): open owner question on Epic: keyword-family validity -- do the per-function signals measure what their names say? #8863. No burned-estate program needs it.regex_execution: unpinned, measured on prometheus only. No burned-estate program needs it.bitwise_opsin c, cpp, java, javascript: same mechanism, other language files. No burned-estate program needs it.&/|rule: Go generic type-set unions (int | string) and spaced&/|inside string literals could over-count. Measured precision is 1.0 on the crucible.ioalternatives (grpc.,sqlx.,pgx.) that no crucible function exercises.Changes
go.py:iocounts operations (io.Copy|ReadAll|ReadFull|WriteString,bufio.New*) and drops type mentions and thenet/http/database/sqlimport paths.docis a column-0// textline (godoc ruling).bitwise_opsadds operand-anchored binary&/|(spaced or tight, with=), excluding&&,||,&^handled separately, and unary address-of.time_date_logiccountstime.Duration(conversions andtime.Now(), not type mentions. All bounded quantifiers.family_oracle_ts.py: Go io list gains the fourio.*calls; unary complement accepts^as well as~.test_go_family_validity_8863.py(new): positives and false-positive forms per family, plus an adversarial-input test for the new regex.test_go_strict.py: thedocnegative moves from// foo does something usefulto//nolint:errcheck, because a column-0 godoc comment now counts by ruling.family_validity_baseline.json, the two validity SVGs, both golden masters.Golden diff attribution
scope_check.py --expect go: the only changes outsidego/are 55.gofiles that moby ships inside the dockerfile corpus, plus repo-wide rollup fields. No non-Go file changed.Gates
pr_gates --fast: green after regenerating the validity SVGs (they were stale from the baseline).pr_gates --ratchets: 9 pass, 0 fail.audit_check.py: all clear.ruff format --checkandruff checkon changed files: clean.time_ratchet.py check: 0 over the limit.language-crucible/data/go, 3 alternating runs, mean user seconds: main 3.10, branch 3.06 (no change).Cross-repo
keyword-rosetta rebless owed for
go(rosetta:rebless-owed; a person adds the label).rosetta_audit.pyagainst keyword-rosetta main: the Go manifest moves ondoc(main.go 1 -> 4, c.go 0 -> 5) andunits_documented(a.go, b.go 0 -> 1, c.go 0 -> 2). Engine PR merges first; the corpus PR re-blesses the Go manifest after.main.goencapsulation(expected 1, got 0) already fails on engine main and is not from this PR. The c, db2_sql, hlasm, java and python moves in the same audit run were not checked against a baseline build; I did not touch those files.Plan vs result
The plan expected closures to need work: it was already green. The
bitwise_opsover-counts were an oracle gap (Go's unary^), not a rule bug.Lessons for agents
docrule runs over both the comment stream and the code stream and is attributed by line range from 5 lines above (_DOC_ANCHOR_LINES_ABOVE), so it cannot be anchored on the following declaration.time.Durationorio.Readertype mention is not an operation: count the call or conversion form.dis.pyshadows stdlibdisand gives a circular-import error.tests/tools/test_family_validity_chart.pyfail untilfamily_validity_chart.py --writeis run.scope_checkreports the.gofiles inside the dockerfile corpus underdockerfile: check the file extensions before reading it as out of scope.🤖 Generated with Claude Code