Skip to content

Go keyword families: pragma decorators, MatchString oracle (Part of #8863, #9343) - #9383

Draft
squid-protocol wants to merge 6 commits into
mainfrom
churn/9343-20261126T0911Z
Draft

squid-protocol wants to merge 6 commits into
mainfrom
churn/9343-20261126T0911Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Go keyword families: decorators red cell fixed on the pinned crucible (0/151 -> 151/151, recall and precision 1.0); regex_execution oracle now reads MatchString method 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

  • decorators (engine): every oracle token was a //go: pragma on the line(s) above a func. The unit text starts at func, so the engine never saw them. detector._go_leading_pragmas walks 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 to decorators. The contract wording ("pragma or directive line attached to the declaration it precedes") already covers it; the rule regex is unchanged, only commented.
  • regex_execution (oracle): the tree-sitter oracle counted only a regexp. callee prefix and missed re.MatchString(...) method calls the engine counts. Cause class: oracle misses a form. Added MatchString to the Go calls["regex"].
  • Baseline, charts regenerated. The Rust cell moved from the unpinned repo to the pinned crucible (functions 1905) in the same regeneration.

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 with golden-lock.sh crucible_check.py --update --yes.

Gates

audit_check.py all clear; pr_gates.py --fast --ratchets 9 pass / 0 fail; new test file 11 pass; tree-wide guard tests 216 pass; time_ratchet.py check 0 over limit; full tests/tools 6023 pass (the one failure, test_pin_requirements_check_all, is ci/requirements/mypy.txt out of sync with mypy.in on 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_execution engine recall on the unpinned measurement is 0.93; the misses are about three sites (for example regexp.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_execution can 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.py now lists 1 Go cell (regex_execution, unpinned); merge-tree against origin/main conflicted only on the generated family_validity_chart.svg, taken from main and regenerated.

Lessons for agents

  • In _slice_by_braces the code text has comments blanked, so a pragma/comment lookback must read self.raw_content_lines with the 1-based func line.
  • The family sweep caches scans by engine SHA: delete the cached scan dir after an engine edit or the sweep re-reads the old result.

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

squid-protocol and others added 3 commits November 26, 2026 04:18
… MatchString calls (Part of #8863, #9343)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… of #8863, #9343)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 10:05
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 10:06
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

, #9343)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (704b4b5) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 10:37
auto-merge was automatically disabled November 26, 2026 10:37

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 26, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 10:39
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 10:52
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9383 @ 704b4b5: 1 failed check(s)

== suite time budget (#5166) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45803002324/job/139864708635
repro: python tests/tools/pr_gates.py --fast
errors:
##[error]Process completed with exit code 1.
log tail:
over=0
if [ "$EVENT" = "schedule" ]; then
python3 tests/tools/time_ratchet.py over --times $parts --enforce | tee over.txt || over=1
{ echo "### Tests over 10 s"; echo; echo ''; cat over.txt; echo ''; } >> "$GITHUB_STEP_SUMMARY"
fi
if { [ "$status" = 1 ] || [ "$over" = 1 ]; } && [ "$EVENT" = "schedule" ]; then
body="The nightly full suite is over its time budget or has tests over 10 s (tests/test_time_baseline.json): $(tail -n 2 report.txt | head -n 1)"$'\n\n'"$(cat over.txt)"$'\n\n'"Run: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITH
n=$(gh issue list --repo "$GITHUB_REPOSITORY" --state open --search 'in:title "Suite time over budget"' --json number -q '.[0].number')
if [ -n "$n" ]; then gh issue comment "$n" --repo "$GITHUB_REPOSITORY" --body "$body"
else gh issue create --repo "$GITHUB_REPOSITORY" --title "Suite time over budget (nightly)" --body "$body"; fi
fi
exit $status
shell: /usr/bin/bash -e {0}
env:
EVENT: pull_request
GH_TOKEN: ***
SPLITS: 5
##[endgroup]
expected 5 parts' test times:
times/test-times-part-1/times-part-1.json
times/test-times-part-2/times-part-2.json
times/test-times-part-4/times-part-4.json
times/test-times-part-5/times-part-5.json
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/503b2c2c-8cf6-44f1-8122-c2fe89bbb873' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 11:04
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
…8863, #9343)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (62738ce) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 11:17
@squid-shepherd squid-shepherd Bot added the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 11:18
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 11:19
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 11:40
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9383 @ 62738ce: 1 failed check(s)

== shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45808905244/job/139872351447
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 26, 2026
…8863, #9343)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (25521d3) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 11:48
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 26, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant