Skip to content

LE date services: the oracle refuses an output item shorter than the result, CEE2526 / CEE2527 (Part of #5003) - #6608

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5003-20261025T0710Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5003-20261025T0710Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5003.

Checklist: done [c:a06ff706]

The C oracle of CEEDATE / CEEDATM (tests/equivalence/le/le_time.c) now refuses, by name (exit 98), a result longer than the caller's output item (CEE2526 / CEE2527), as the Java runtime already did. GnuCOBOL passes a CALLed C routine a bare pointer, so the size comes from the harness: tests/tools/le_out_size.py reads the program's DATA DIVISION and equivalence.py puts GG_LE_OUT_SIZES=CEEDATE=n,CEEDATM=n before ./program. Before this, a short item was silently overwritten past its end in the oracle.

Class / Sibling gaps

Class: an LE output item whose size the oracle's C model cannot see, so it cannot refuse a result that does not fit. Members: CEEDATE output_char_date and CEEDATM output_timestamp (the only VSTRING outputs; CEESECS / CEEISEC / CEESECI / CEEDYWK / CEEQCEN write fixed items). Both handled, tested against the Java probe byte for byte (short / exact / long).
Sibling gaps:

  • Items the resolver cannot size exactly (COPY or LINKAGE member, REDEFINES, OCCURS, non-DISPLAY usage, subscripted operand, a name declared twice) stay unchecked on the C side. No burned program needs this: BANKDATA's DATM-CONV resolves to 80 bytes for a 16-byte result; the census test test_le_fmd_census_5003.py still guards it.
  • With several calls of one service, the smallest resolved item counts (may over-refuse a program with one short, unreached site; a refusal, never a looser proof).
  • CEEFMDA / CEEFMDT / CEEFMDV and null pictures: other checklist items, unchanged.

Evidence

  • test_det_le_time.py + census: 225/232 passed; new tests cover the C side (short refused, exact and long filled, equal to Java; another service's size ignored; no size stated = as before) and the resolver (declared sizes, groups, min over calls, six unresolved shapes left out).
  • pr_gates --fast 7/7, --ratchets 9/9 (none skipped). No gitgalaxy/ change, so no golden bless.
  • No BANKDATA equivalence case exists (register L6), so no equivalence run; the resolver on the real BANKDATA source gives CEEDATM=80.

Cross-repo: none.

🤖 Generated with Claude Code

…result, CEE2526 / CEE2527 (Part of #5003)

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 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 07:20
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 07:30
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit fc4484e into main Oct 25, 2026
68 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5003-20261025T0710Z branch October 25, 2026 08:08
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