Skip to content

CSUTLDTC Julian YYYYDDD: DDD token in the port, 18 calls, mutation re-judge 197/260 (Part of #4049) - #6243

Merged
squid-protocol merged 7 commits into
mainfrom
churn/4049-20261023T1255Z
Oct 23, 2026
Merged

squid-protocol merged 7 commits into
mainfrom
churn/4049-20261023T1255Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Part of #4049 (slice: CSUTLDTC Julian YYYYDDD).

Checklist: partial [c:610b125c] -- Julian DDD covered; the other documented CEEDAYS paths are in #6232 (open); re-judge after both merge.

What

The CSUTLDTC port (CsutldtcService.ceedays) had no DDD token: it answered a YYYYDDD call as a bad picture string where the LE model (tests/equivalence/le/ceedays.c, register L1) answers a date, so such a call could not even be proven. The port now accepts YYYY + DDD (either order, with or without one separator) and answers like the model: 2508 for a day outside 1..365/366 by leap year, 2513 before 1582-10-15 or year 0. The case gains 18 Julian calls, each with a why citing IBM.

Class and members (CEEDAYS Julian input)

member status
day 000, 367 2508, calls added
day 366 leap (2024, 2000) / non-leap (2023, 1900) calls added
day 001, 365, 9999 day 365 valid, calls added
non-digit in day / in year 2520, calls added
1582 day 287 / 288, year 0000 2513 / valid / 2513, calls added
DDDYYYY, YYYY-DDD calls added
DDD with MM/DD, YY, month names, month outside 1-12 refused by the model (exit 98); unchanged

Evidence

  • equivalence.py run carddemo-dateutil: 34/34 calls equal; evidence.py prove carddemo-dateutil: proven.
  • mutation.py run carddemo-dateutil --record (seed 0, all 276 mutants, 659 s): 145/195 (74%) -> 197/260 (76%) caught; adjusted 100% -> 100%. 38 new survivors triaged by reading the port: 0 case gaps (guards need a repeated token or DDD beside MM/DD, which the oracle refuses; year <= 1 gives the same 2513; sentinels equivalent).
  • pr_gates --fast 7/7, --ratchets 9/9 pass. Tree-wide guards + test_det_ceedays, test_mutation_scores: 295 passed.
  • carddemo-report and carddemo-tranadd CALL CSUTLDTC, so their proofs fingerprint the dateutil port: re-proven here (evidence.py prove), test_evidence.py green. (The earlier "stale on main" note was wrong; main is green.)
  • det_sweep_coverage/carddemo-dateutil.json regenerated from the det sweep (34 calls, 2/2 paragraphs, 4/10 branches); det_coverage_ledger.py check: as expected.
  • test_a_call_cases_file_is_well_formed pinned the case to the two YYYY MM DD pictures; it now also admits the Julian pictures le/ceedays.c models (register L1).

Cross-repo / overlap

No companion repo. Overlaps open #6232 (same case.json, port, evidence.json, mutation_testing.md, and the 17 calls line in test_evidence.py). Whichever merges second merges main and re-runs mutation.py run carddemo-dateutil --record + evidence.py prove carddemo-dateutil; the call count in test_evidence.py becomes the sum.

Hand-written files: 8 (test_evidence.py, test_porting_loop_tooling.py and test_proof_reach.py are pin updates: a call count, the modelled pictures, and 114 -> 112 flagged survivors because CORPT00C / COTRN02C's mutation records now judge the older callee port); the three evidence.json files, mutation_scores.json and the det coverage ledger are regenerated.

Lessons for agents

  • A port edit makes every case that CALLs it blocking-stale (its record's port.paths lists the callee's port): grep -l "<case>/port" tests/equivalence/*/evidence.json and re-prove each in the same PR.
  • A CALL case that grows calls also needs det_coverage_ledger.py update <sweep dir>, or CI's det job fails.
  • mutation.py --record leaves new survivors untriaged when the port's lines move; write a <case>/<PROG>:<id> triage file and run mutation_scores.py retriage --triage T.json, which also refreshes the evidence record.

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

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 13:25
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 13:29
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #6243 @ 7ca6bff: 2 failed check(s)

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39961118687/job/120439707561
repro: python -m pytest -q tests/cobol_mainframe/test_evidence.py::test_every_committed_record_is_current
failing tests: tests/cobol_mainframe/test_evidence.py::test_every_committed_record_is_current
errors:
fail-on-cache-miss: false
E AssertionError: re-prove these in this PR (python tests/tools/evidence.py prove KEY):
tests/cobol_mainframe/test_evidence.py:59: AssertionError
FAILED tests/cobol_mainframe/test_evidence.py::test_every_committed_record_is_current - AssertionError: re-prove these in this PR (python tests/tools/evidence.py prove KEY):
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 6f020c4a49994a5c350b65bedb7946589166f886a8e5928365439ad27d5e160b
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 117794
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is f19e89804b2593b73483d4418d3ca1088a9252b8e98c514c6130e9ddb4898116
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 12505276878
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 117794 bytes. Artifact ID is 12505276878
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39961118687/artifacts/12505276878
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/edcce3ec-38c7-47f4-9825-ca2aa944d1f0' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39961118687/job/120439707594
repro: python -m pytest -q tests/cobol_mainframe/test_porting_loop_tooling.py::test_a_call_cases_file_is_well_formed
failing tests: tests/cobol_mainframe/test_porting_loop_tooling.py::test_a_call_cases_file_is_well_formed
errors:
fail-on-cache-miss: false
tests/cobol_mainframe/test_porting_loop_tooling.py:183: AssertionError
FAILED tests/cobol_mainframe/test_porting_loop_tooling.py::test_a_call_cases_file_is_well_formed - assert False
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 6f020c4a49994a5c350b65bedb7946589166f886a8e5928365439ad27d5e160b
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 117686
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is f820bee4a295bde1e45bfbe35ef8e92a2c68f21caeb611183ac93527015ac64b
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12504852564
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 117686 bytes. Artifact ID is 12504852564
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39961118687/artifacts/12504852564
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/77dcf952-8ee4-4815-b098-29ff9893b04d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 23, 2026
squid-protocol and others added 2 commits October 23, 2026 09:40
…r, allow the Julian pictures (Part of #4049)

- carddemo-report and carddemo-tranadd CALL CSUTLDTC: their proofs include the dateutil port, so the port edit
  made them blocking-stale. Re-proven (evidence.py prove).
- det_sweep_coverage/carddemo-dateutil.json: 17 -> 34 calls (det_coverage_ledger.py update).
- test_a_call_cases_file_is_well_formed: the picture pin now admits YYYY DDD, which le/ceedays.c models (L1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (f958723) 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).

@squid-protocol squid-protocol 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 Oct 23, 2026
… 114 -> 112 (Part of #4049)

Re-proving carddemo-report and carddemo-tranadd on the new dateutil port moved their proof's port digest, so their
recorded mutation runs (which judged the older callee) are stale and their 2 flagged survivors, both unreachable,
are skipped until the next run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit af57379 into main Oct 23, 2026
32 checks passed
@squid-protocol
squid-protocol deleted the churn/4049-20261023T1255Z branch October 23, 2026 14:28
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

squid-protocol added a commit that referenced this pull request Oct 23, 2026
…anch's overlapping one (Part of #4049)

The dateutil case, port, evidence, coverage and mutation docs come from main.
This branch keeps the carddemo-tranadd det-mutation ledger re-run.

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