Skip to content

Family validity: worker skill, re-measure skill, checklist and red-cell tool (Part of #8863) - #9291

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
feat/family-validity-automation
Nov 25, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
feat/family-validity-automation

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

What this is

Churn's Eagle Eye focus (#8863) reports "nothing launchable": the epic's open - [ ] lines are large or owner-blocked, so workers fall back to filler while 91 red cells wait. This PR gives a worker everything it needs to claim one language and finish it.

Contents

  • .claude/skills/family-validity-fix/SKILL.md: the per-language loop. Re-measure first, name the cause class, read the contract, trace before editing, smallest fix, tests in both directions, CPU, rosetta, clean-venv bless with attribution, one draft PR. Includes the "do not" list and the report format.
  • .claude/skills/family-validity-remeasure/SKILL.md: sweep the pinned crucible, regenerate the grid, rewrite the epic's per-language lines, tell churn the focus is fed.
  • docs/agents/family-validity-checklist.md: the rulings already made (Keyword families: five definition questions for the owner (json, generators, closures, cleanup, telemetry) #8862, Keyword families in Go, Rust, JavaScript, TypeScript, Java, C: per-language differences that need a definition decision #8868) so workers do not re-ask, a cause table with the real examples that taught it (Go time. timers, C close, Go method declarations as closures, Rust || closures, self.logger), the recipes, and the PR checklist.
  • tests/tools/family_sweep_nightly.py (+ test): the nightly re-measure. Gates on box_status GREEN, once per main SHA per UTC day, its own clone of the pinned crucible, sweeps under heavy-run.sh, regenerates the grid, and keeps ONE standing draft PR (bot/family-validity-baseline, fast-forward only, regressions listed first). Dry-run on main: 73 s, 17 languages. It caught C debug_prints 0.83 -> 0.60 after Family oracle: C and C++ debug_prints count stdio writers only on stdout/stderr (Part of #8863, #8862) #9276.
  • tests/tools/family_red_cells.py (+ test): reads tests/family_validity_baseline.json and ranks the red cells (weaker of recall and precision under 0.8, at least 10 oracle functions); --lang adds each contract sentence; --slices prints one launchable - [ ] line per language; --json.

Checked

Done outside the diff (owner approved 2026-11-25)

Not in this PR

  • Nothing is merged or force-pushed by the nightly; it only opens or refreshes its draft PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ

squid-protocol and others added 4 commits November 25, 2026 06:40
…-cell ranking tool (Part of #8863)

- .claude/skills/family-validity-fix: the per-language loop (re-measure, name the cause class, read the contract,
  trace, smallest fix, both-direction tests, CPU, rosetta, clean-venv bless with attribution, one draft PR).
- .claude/skills/family-validity-remeasure: sweep the pinned crucible, regenerate the grid, rewrite the epic's
  per-language lines so the Eagle Eye focus always has launchable work.
- docs/agents/family-validity-checklist.md: the rulings made on #8862/#8868, a cause table with the real examples
  that taught it, the recipes, and the PR checklist.
- tests/tools/family_red_cells.py: ranks the grid's red cells from the baseline and prints one launchable
  `- [ ]` epic line per language (`--slices`).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ
@squid-protocol
squid-protocol marked this pull request as ready for review November 25, 2026 11:53
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 25, 2026 11:53
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit d62a92e into main Nov 25, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the feat/family-validity-automation branch November 25, 2026 12:02
squid-protocol added a commit that referenced this pull request Nov 25, 2026
…ses (Part of #8863)

#9291 merged with `bash heavy-run.sh` in a subprocess and no platform check, so
tests/test_shell_tests_platform_guard.py fails on main and on every PR's merge ref. The nightly is a Linux-box
job (heavy-run.sh needs flock(1)); on any other platform it now says so and exits 0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ
(cherry picked from commit 0177861)
squid-protocol added a commit that referenced this pull request Nov 25, 2026
…racts name (Part of #8868) (#9267)

* Go thread_sleeps counts timer constructors; Go time oracle follows the contract (Part of #8868, #8863)

Re-measured the Batch A rows of #8868 against origin/main (tokio, retrofit, redis, prometheus):
Rust, Java and C `time_date_logic` recall are already 1.00 (the old gaps were fixed since).
Go `time_date_logic`'s 0.77 recall was the oracle reading `time.After` / `NewTicker` / `Tick` /
`NewTimer` as time; the contract puts timed waits under thread_sleeps, so the oracle now lists
clock, calendar and duration forms only (Go time recall 1.00).

The real gap was Go `thread_sleeps` (#8868 contract: "a sleep, a timed wait, a timeout-driven
deferral"): it missed `time.NewTicker`, `Tick`, `NewTimer`, `AfterFunc`. Now counted:
prometheus recall 0.89 -> 1.00, precision 0.99. language-crucible Go: 2 -> 3 functions fire.
Scan CPU unchanged (5.5 s user, three alternating runs).

Goldens re-blessed with crucible_check.py --update --yes in clean venvs: 6 files per fixture,
all 18 file-level differences are .go.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Go time_date_logic no longer counts time.Sleep (owner decision, Part of #8868)

The contract files a sleep under thread_sleeps ("a sleep, a timed wait"); a clock, calendar value or
duration is time_date_logic. prometheus Go time_date_logic precision 0.69 -> 0.79 (recall 1.00).
Goldens re-blessed in clean venvs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* #8868 Batches B and C: Go/C/Rust/JS/TS rules count what their contracts name (Part of #8868, #8863)

Batch B (contract-named misses), after re-measuring each row on origin/main:
- C panics_and_aborts: `return -1` (an error return, not an abort) no longer counts; `_exit` does.
- Go io: http.Get/Post/..., net.Listen/Dial.
- Rust io: `fs::read/write/...` after `use std::fs;`.
- Oracle: C no longer reads close/fclose as io (cleanup's, per the contract and the rule's own comment);
  Rust no longer reads a bare `exit` (`span.exit()` is a method call, not a process exit).

Batch C (precision, causes traced):
- Go closures: the rule matched method declarations `func (s *S) Name() {`; now function literals only.
- Rust closures: also `|x| x + 1` and `move |x|`, anchored where an expression starts.
- Rust short_circuit: `||` after `(`/`,`/`=`/`move` is a no-argument closure and `&&T` is a reference type;
  an operator counts when an operand ends right before it.
- JS/TS time_date_logic: setTimeout/setInterval/clearTimeout/clearInterval are timed waits (thread_sleeps),
  not clock values (same ruling as Go time.Sleep); setImmediate joins thread_sleeps.
- TS io: same operative-form rule as JS (bare path/http/sql/database are everyday words).

Goldens re-blessed with crucible_check.py --update --yes in clean venvs; unmodified origin/main
re-blesses with 0 changed files, so every moved entry is attributable to this change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ

* Re-bless golden masters on the merged base (Part of #8868)

Merged origin/main (incl. #9263's Python bless) and the Go time/sleep branch (#9265), took main's
fixtures for the conflicts, and regenerated with crucible_check.py --update --yes in clean venvs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ

* Re-bless golden masters after merging main again (Part of #8868)

Main moved four commits; only the golden fixtures conflicted, so main's were taken and regenerated with
crucible_check.py --update --yes in clean venvs. Same files and languages as the previous bless.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ

* Update the tests that encoded the old time/sleep behavior; re-bless the two Rust DOOM ports (Part of #8868)

CI on #9267 found four real consequences of the intended rule changes:
- test_go_java_leading_boundary_4108: time.Sleep no longer counts as time (it is a timed wait); the case moves to a
  "timed waits are not time" test (time.Sleep, time.After, NewTicker).
- test_rule_overlap_guard_8010: setTimeout is now shared by concurrency+thread_sleeps only (it left time_date_logic).
- test_typescript_strict (double-classification sweep): clearTimeout is cleanup alone; setTimeout is not time.
- DOOM-rosetta goldens for room4doom and rust-doom: the Rust closure / short_circuit rules change the complexity inputs,
  so 56+ function hashes move (109 file-level changes, no verdict change). Unmodified origin/main checks clean on both
  ports, so the drift is this change's. Blessed with doom_rosetta_check.py --only room4doom,rust-doom --update --yes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ

* family_sweep_nightly: check the platform so the shell-spawn guard passes (Part of #8863)

#9291 merged with `bash heavy-run.sh` in a subprocess and no platform check, so
tests/test_shell_tests_platform_guard.py fails on main and on every PR's merge ref. The nightly is a Linux-box
job (heavy-run.sh needs flock(1)); on any other platform it now says so and exits 0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvgGYqVYmsdY3wcgsrQ
(cherry picked from commit 0177861)

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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