Skip to content

det: LE CEESECI and CEEDYWK on both runtimes (Part of #5003) - #6091

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5003-20261022T2326Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5003-20261022T2326Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5003 (siblings of #4949). First self-contained slice: CEESECI and CEEDYWK on both runtimes, copying the #5002 pattern (CEEISEC / CEEDATE). IBM LE reference is the source, GnuCOBOL the instrument; assumptions named in register L6.

Class table

Class: LE date/time callable services that convert between a Lilian value and calendar or weekday fields, with no picture string.

Member Status
CEESECI (seconds to integers; CEE2505 out of range, outputs 0) done here, C twin + LeTime.seci + Ceeseci
CEEDYWK (weekday 1 Sunday .. 7 Saturday; CEE2512 out of range, output 0) done here, C twin + LeTime.dywk + Ceedywk
CEEISEC, CEEDATE, CEEDATM, CEESECS, CEEGMT, CEEUTC, CEEQCEN, CEEGMTO already modelled (#5002 and after)
CEESCEN, CEEFMDA / CEEFMDT / CEEFMDV, null pictures, CEE2526 / CEE2527 not in this slice (below)

Hand-written files: 5 substantive (LeTime.java, le_time.c, gen.py, test_det_le_time.py, L6.md) plus mechanical registrations (two 14-line thin classes Ceeseci / Ceedywk, the cobolrt_rules.json entries the two-way registry check requires, two names in statement_inventory.py).

Checklist: done [c:7763488d]
Checklist: done [c:dce514bc]

Sibling gaps

  • CEESCEN: needs a different mechanism (a mutable century window shared with CEESECS YY input and CEEQCEN); not here.
  • CEEFMDA / CEEFMDT / CEEFMDV and null (country-default) pictures for CEEDATE / CEEDATM / CEESECS: need a country table; refused by name today.
  • CEE2526 / CEE2527: the C model cannot see the output item's size; needs the translator to pass lengths. Still Java-only refusal.

Remaining slices

  1. CEESCEN + CEESECS YY (LeTime, le_time.c, gen.py, test, L6). 2. CEEFMD* + null pictures (adds a country table). 3. CEE2526 / CEE2527 on both sides (gen.py passes output sizes).

Facts checked

  • IBM CEEDYWK page: day number 1 = Sunday .. 7 = Saturday, input 1..3 074 324, output 0 when invalid, failure CEE2512 (not CEE2513 as first assumed; the plan was corrected). The page has no sample; day 1 (15 Oct 1582) is a Friday, 148 138 a Monday (checked against Python's calendar for every vector).
  • IBM CEESECI page: input 86 400 .. 265 621 679 999.999, all outputs 0 and CEE2505 when invalid.
  • Tests: test_det_le_time.py 174 passed (C model gives IBM's answers; Java runtime byte-for-byte equal to the C model on every vector; CEESECI is the inverse of every CEEISEC row with whole milliseconds). test_cobolrt_rules.py, test_support_matrix.py, tree-wide guards pass.
  • pr_gates --fast 7/7, --ratchets 9/9 pass, det_port.py check 177/177 ports unchanged, per-test time ratchet 0 over limit. No golden bless (engine untouched).
  • Residual risk: a fraction not exact in binary (.12) can floor one millisecond differently in HFP vs IEEE (existing assumption 5); the vectors use exact fractions. No burned program calls either service.
  • Overlap: PRs X6: a WRITEQ LENGTH past FROM is FROM's bytes then spaces, ASSUMED on both sides (Part of #5252) #5898 / genapp lgdpvs01/lgucvs01: state LGSTSQ-path notes now X6 is modelled (Part of #5252) #5900 also touch cobolrt_rules.json; merge origin/main if it conflicts.

Lessons for agents

  • WebFetch the IBM page before taking a feedback code from a neighbouring service: CEEDYWK fails with CEE2512 (CEEDATE's), not CEE2513 (CEEISEC / CEESECS's).

🤖 Generated with Claude Code

… (Part of #5003)

Lilian seconds to integer fields (CEE2505 out of range) and the day of the week of a Lilian date
(1 Sunday .. 7 Saturday, CEE2512 out of range, per IBM's CEEDYWK page). One vector table through both sides,
register L6 updated.

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 Oct 22, 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 22, 2026 23:47
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 23:50
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1c29ec1 into main Oct 23, 2026
91 checks passed
@squid-protocol
squid-protocol deleted the churn/5003-20261022T2326Z branch October 23, 2026 00:31
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