Repository navigation
Shell keyword families: five red cells (bitwise, time, panics, io, debug_prints) to ok (Part of #8863, #9338) - #9371
squid-protocol wants to merge 8 commits into
Conversation
…eyword families (Part of #8863, #9338) Goldens move only for shell files (including .sh/.csh inside the zig and fortran corpora) and the repo-wide rollups; scope_check --expect shell shows no other language. Baseline: the five Shell cells (bitwise_ops, time_date_logic, panics_and_aborts, io, debug_prints) go from dead/over-counts to ok. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No description provided. |
|
PR #9371 @ deffecd: 1 failed check(s) == rosetta-audit (failure) -- real |
|
No description provided. |
|
PR #9371 @ e719276: 11 failed check(s) == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra == publish-history (cancelled) -- infra == rosetta-audit (failure) -- real == shard ${{ matrix.shard }} (cancelled) -- infra == shard ${{ matrix.shard }} (${{ matrix.loc }} LOC) (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
|
CI shepherd: the head of this PR (2128fdc) is not the one a maintainer labelled |
1 similar comment
|
CI shepherd: the head of this PR (2128fdc) is not the one a maintainer labelled |
|
No description provided. |
|
PR #9371 @ 02e82a2: 1 failed check(s) == rosetta-audit (failure) -- main |
What
Shell keyword families: the five red cells on the pinned crucible (bitwise_ops, time_date_logic, panics_and_aborts, io, debug_prints) are now
okintests/family_validity_baseline.json(Part of #8863, #9338).Changes in
gitgalaxy/standards/language_standards/languages/shell.py:_CMDPOS: line start, after; & | ( { \`` orthen/do/else, optionalsudo/env/exec-style wrappers and a path prefix, not a backslash-continuation line).exit,date/time/uptime,echo/printf`, and the file/network commands only count where a command runs, not as an argument, a word in a string or a path component.io: redirections to a real file plus the command list (cat, cp, mv, mkdir, touch, ln, tee, dd, curl, wget, scp, rsync, nc, read, mapfile, mktemp)./dev/null|stdout|stderr|fd|ttytargets do not count.debug_prints: echo/printf/print at command position, not when the output feeds a pipe or a file.panics_and_aborts:exitat command position.bitwise_ops: operators only inside(( ))andlet, so&&,||,>>redirects and<<heredocs stop counting.time_date_logic: clock commands plus$EPOCHSECONDS,$EPOCHREALTIME,$SECONDS.Before, the cells read
dead(no signal) orover-counts(precision 0.26-0.68); all five now readok(precision 0.92-1.0, recall 0.95-1.0): see thetests/family_validity_baseline.jsondiff.Tests
tests/extraction/languages/test_shell_family_validity_9338.py(positive and negative shapes per family, a continuation-line case).test_shell_strict.pyupdated where old behavior was the bug:exit 1abort case, thesleepassertion (sleep is a thread sleep, not a clock read), the retiredkilldual.pr_gates --fast(the stale family-validity SVGs were regenerated),pr_gates --ratchets,audit_check.py(ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage),family_oracle_sweep.py --write,scope_check.py --expect shell --mode both.Golden re-bless
Re-blessed with
golden-lock.sh crucible_check.py --update --yeson top of the merged origin/main.scope_check --expect shellattributes the drift to shell files (including.sh/.cshfiles inside the zig and fortran corpora, which are shell files by extension) and the repo-wide rollups that follow from them. No other language moved after the merge of main's C keyword-family PR (an earlier run showed C drift only because the local base was behind main).Class / Sibling gaps
Class: Shell keyword families on the pinned crucible. Siblings checked: thread_sleeps is 0.83 precision (not red, left alone); ipc_rpc_bridges not measured by the oracle for Shell; telemetry overlaps debug_prints on
>/dev/stderrechoes;rm/rmdirare in the oracle's io list but the io contract (C2, cleanup ruling) gives removals to cleanup, so they are not inio(recall is still 0.95): contract question if the oracle list should drop them; grep/tail/find/xargs/jq/ssh are not in the oracle's io list and were left out.Checklist: done [c:2bff1f05]
Facts checked: all five Shell cells read
okin the regeneratedtests/family_validity_baseline.json(only Shell cells moved);scope_checkshows no non-shell language drift; origin/main merged, not rebased.Lessons for agents
scope_check.pydiffs against a base that may lag origin/main: a C/C++ drift in a shell PR means main moved;git fetch, merge main and re-bless before attributing.date/echoat the start of a\-continued line is an argument, not a command: guard command-position anchors with(?<!\\\n)^.🤖 Generated with Claude Code