Skip to content

Rust bare exit, sleep and named-type io forms follow their contracts (Part of #8863, #8868) - #9231

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8863-20261124T1817Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/8863-20261124T1817Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863, #8868.

Checklist: partial [c:a9dfa2bb] -- no draft contracts remain; this lands three more Rust rows of #8868; the owner readings (C assert as abort, Go writer prints, doc styles) and the other per-language rule rows are left.

What changed

  • Rust panics_and_aborts: bare exit( (after use std::process::exit;) counts as a process-exit call; a method .exit( and a definition fn exit( do not.
  • Rust thread_sleeps: time::sleep, thread::sleep and a bare sleep( (after use ...::sleep) count; .sleep( and fn sleep( do not.
  • Rust io: named-type opens OpenOptions::, TcpListener::, TcpStream::, UdpSocket::, UnixStream::, UnixListener:: and io::stdin/stdout/stderr. Rust io precision was 0.25, so only unambiguous call forms were added.
  • Strict tests: a positive and an identifier look-alike / method / definition negative per form (test_rust_strict.py; 136 pass with test_rust.py).
  • Golden masters re-blessed with golden-lock.sh; mismatches are in rust/tokio files plus the repo-level aggregates they feed (fingerprint, drift, network I/O).

Timing (CPU seconds, best of 3, regex only over the 49 .rs files, 1.6 MB, in language-crucible)

io 0.018 -> 0.019; panics_and_aborts 0.027 -> 0.051; thread_sleeps 0.016 -> 0.046. Absolute cost under 0.05 s per family per 1.6 MB.

Gates

pr_gates --fast 9/9 pass; --ratchets 9 pass, 0 fail, 0 skipped.

Class / Sibling gaps

Class: a Rust language rule narrower than its declared signal contract (#8868's contract-answerable rows); all three same-mechanism Rust members (panics_and_aborts exit, thread_sleeps sleep, io named types) are handled here with a test each. Sibling gaps, none needing a burned mainframe estate: TypeScript regex literals and .test; Go io (os.ReadDir, WriteFile, MkdirAll); C close/mmap/fgets; Zig unreachable (design question); Dart/Rust doc counting bare ///; Rust branch precision (0.70, cause untraced); Go closures precision (0.36); Go/TypeScript decorators false fires; Rust closures recall. Java/C time is #9229. Owner readings still needed: C assert as abort, Go writer prints, doc styles.

Remaining slices

Go io (go.py + test_go_strict.py); TypeScript regex_execution literals (typescript.py + test); C io (c.py, after #9229 merges).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 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 24, 2026 18:32
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 18:33
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 24, 2026 18:33
@squid-shepherd

Copy link
Copy Markdown
Contributor

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 the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits November 24, 2026 13:52
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (4c41efa) 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 24, 2026 18:59
@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 24, 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 24, 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 marked this pull request as ready for review November 24, 2026 19:02
@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 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 19:04
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd
squid-shepherd Bot merged commit 3388993 into main Nov 24, 2026
131 of 171 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261124T1817Z branch November 24, 2026 19:34
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