Skip to content

C time_date_logic: call-anchored, gmtime/strptime/timegm/ctime/asctime counted, bare time_t not (Part of #8863, #9334) - #9373

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/9334-20261126T0623Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/9334-20261126T0623Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863, #9334.

Checklist: done [c:e86a22fb]

What

Four of the five red C cells (bitwise_ops, debug_prints, panics_and_aborts, io) were already fixed by #9367 (baseline cells on language-crucible v1.9.0 are all 0.93+). The fifth, time_date_logic, is measured only on redis (unpinned, hatched; the pinned crucible has under 10 oracle functions for it). Cause class: rule counts another construct (type declarations) and misses named calls.

Triage on redis (oracle vs rule, per function, 117 oracle functions): 30 over-counted functions, 28 of them a bare time_t declaration or cast; recall was already 1.0 for the calls the rule knew. The rule did not read gmtime, gmtime_r, strptime, timegm, ctime, asctime, which the oracle does. After the change: 1 oracle-only, 4 rule-only functions of 117 (about 0.96 / 0.99). The cell in the baseline file is the old redis triage number (hand-kept, unpinned); it is not re-recorded here, and the sweep on the pin leaves every C cell unchanged.

Class / Sibling gaps

Class: C time_date_logic rule forms vs the declared contract ("at its invocation"): call-anchored time functions, member and longer-name forms excluded, type names not counted. Handled here: time/clock, clock_gettime, gettimeofday, localtime(_r), gmtime(_r), strftime, strptime, difftime, mktime, timegm, ctime(_r), asctime(_r). Sibling gaps (not touched, no burned-estate program needs them): C++ and Objective-C time rules share the idiom (a time_t / NSDate type mention); the C decoy keyword in the baseline is still time_t (decoys re-run is a separate refresh). Contract is declared, not stated: dropping the bare type follows its "at its invocation" wording, no question filed.

Tests

tests/test_c_family_validity_8863.py: time_date_logic positive and negative forms. test_c_strict / test_c pass.

Gates

pr_gates --fast 9/9, --ratchets 9/9 (via heavy-run). Golden blessed with crucible_check.py --update --yes under golden-lock: 5 differences per leg, all one file (cobol/gnucobol_internals/fileio.c time_date_logic) plus its derived snapshots. Not run: CPU A/B (the rule has fewer alternatives and one lookbehind) and keyword-rosetta dry run (no checkout on this box); the rule narrows to call forms, so a re-bless there is possible.

🤖 Generated with Claude Code

…e counted, bare time_t declarations not (Part of #8863, #9334)

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 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 06:44
@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 26, 2026 06:46
@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-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 labels Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 06:51
@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 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 (28c9d3d) 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 07:13
@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
@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 26, 2026 07:16
@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-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 labels Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 07:19
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 07:21
@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 labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 08:24
@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 26, 2026
@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 (3907225) 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 08:55
@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
@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 26, 2026 08:58
@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.

2 similar comments
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 08:59
@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 26, 2026
@squid-shepherd
squid-shepherd Bot merged commit a684752 into main Nov 26, 2026
134 of 167 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9334-20261126T0623Z branch November 26, 2026 09:28
squid-protocol added a commit that referenced this pull request Nov 26, 2026
…rt of #9335)

Main's PHP/JS/C family PRs (#9370, #9375, #9373) conflicted in generated files;
took main's side and regenerated each with its tool. Drift vs main: C++ only.

Co-Authored-By: Claude Opus 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