Repository navigation
Go keyword families: pragma decorators, MatchString oracle (Part of #8863, #9343) - #9383
squid-protocol wants to merge 6 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No description provided. |
, #9343) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
CI shepherd: the head of this PR (704b4b5) is not the one a maintainer labelled |
Pull request was converted to draft
|
No description provided. |
|
PR #9383 @ 704b4b5: 1 failed check(s) == suite time budget (#5166) (failure) -- real |
|
CI shepherd: the head of this PR (62738ce) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9383 @ 62738ce: 1 failed check(s) == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra |
|
CI shepherd: the head of this PR (25521d3) is not the one a maintainer labelled |
Go keyword families:
decoratorsred cell fixed on the pinned crucible (0/151 -> 151/151, recall and precision 1.0);regex_executionoracle now readsMatchStringmethod calls (Part of #8863, #9343).Checklist: partial [c:5966e84f] -- regex_execution is measured only on an unpinned repo: the pinned Go crucible has no regexp use, so that cell cannot be shown green on the pinned grid (engine recall 0.93, precision 1.00 on the unpinned measurement)
What changed
//go:pragma on the line(s) above afunc. The unit text starts atfunc, so the engine never saw them.detector._go_leading_pragmaswalks the raw lines above the func (stepping over plain//comments, stopping at a blank line or any code) and adds each//go:<lowercase word>line todecorators. The contract wording ("pragma or directive line attached to the declaration it precedes") already covers it; the rule regex is unchanged, only commented.regexp.callee prefix and missedre.MatchString(...)method calls the engine counts. Cause class: oracle misses a form. AddedMatchStringto the Gocalls["regex"].Golden drift (attributed)
Go function archetypes in the Go corpus moved to "Annotated & Test Methods" (pragma-bearing functions now carry a decorator), which shifts file and cluster values, the composition and function archetype distributions, and the GPU JSON / graph snapshots.
scope_check.py --expect go: 237 differences, 210 in Go, 27 repo-wide rollup fields (summary, composition and archetype distributions) that follow from the Go shift. Blessed withgolden-lock.sh crucible_check.py --update --yes.Gates
audit_check.pyall clear;pr_gates.py --fast --ratchets9 pass / 0 fail; new test file 11 pass; tree-wide guard tests 216 pass;time_ratchet.py check0 over limit; fulltests/tools6023 pass (the one failure,test_pin_requirements_check_all, isci/requirements/mypy.txtout of sync withmypy.inon main, untouched here); CPU A/B on the Go crucible, 3 alternating runs, mean user 3.10s base vs 3.06s branch (flat). Not run: keyword-rosetta dry-run (no rule regex changed).Class / Sibling gaps
Class: a language whose decorator-like construct lives on a line above the declaration, outside the sliced unit (Haskell pragmas #8904 and Erlang attributes already have a hook; Go now does). Siblings: other brace languages with directive lines above a function are not checked here. Go
regex_executionengine recall on the unpinned measurement is 0.93; the misses are about three sites (for exampleregexp.MatchString,MustCompilePOSIX), left for a follow-up since the pinned corpus cannot show them.Remaining slices
Pin a Go regexp fixture in the crucible (cross-repo) so
regex_executioncan be measured green, then close the checklist item.Facts checked: Go decorators cell 151/151 on language-crucible v1.9.0 via
family_oracle_sweep.py --write;family_red_cells.pynow lists 1 Go cell (regex_execution, unpinned); merge-tree against origin/main conflicted only on the generatedfamily_validity_chart.svg, taken from main and regenerated.Lessons for agents
_slice_by_bracesthecodetext has comments blanked, so a pragma/comment lookback must readself.raw_content_lineswith the 1-based func line.Cross-repo
No companion PR is required for the engine change. A crucible Go regexp fixture (see Remaining slices) would be the companion; engine side merges first.
🤖 Generated with Claude Code