Skip to content

Rust unreachable!/time types and Go time calls follow their contracts (Part of #8863, #8868) - #9227

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261124T1725Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261124T1725Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863, #8868.

Checklist: partial [c:a9dfa2bb] -- no draft contracts remain; three contract-answerable rule rows from #8868 land here; 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: adds unreachable! and unimplemented! (the contract names "an unreachable marker").
  • Rust time_date_logic: adds the bare Duration:: / Instant:: / SystemTime:: forms (the rule only matched std::time::... paths).
  • Go time_date_logic: adds time.Date, Unix, UnixMilli, Until, ParseDuration, LoadLocation.
  • Strict tests: a positive and a negative case for each addition. Golden masters re-blessed with golden-lock.sh; drift is in rust/go files plus the repo-level archetype aggregates they feed.

Class / Sibling gaps

Class: a language rule narrower than its declared signal contract (#8868's contract-answerable rows). Handled: the three above. Sibling gaps, none needing a burned mainframe estate (core/sweep work): Rust exit under panics_and_aborts, Rust sleep/time::sleep under thread_sleeps, Rust io; TypeScript regex literals and .test; Go io (os.ReadDir, WriteFile, ...); Java System.nanoTime/TimeUnit.; C close/mmap/fgets and bare time(; Zig unreachable (design question); Dart/Rust doc counting bare ///. Owner reading still needed: C assert as an abort.

Gates

pr_gates --fast 9/9 pass; strict tests for both languages pass (171); ruff format --check clean. --ratchets not run here beyond the golden bless.

🤖 Generated with Claude Code

…ix/Until/ParseDuration/LoadLocation follow their contracts (Part of #8863, #8868)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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.

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 17:39
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 17:43
@squid-shepherd
squid-shepherd Bot merged commit 4b4de26 into main Nov 24, 2026
124 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8863-20261124T1725Z branch November 24, 2026 17:58
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