Skip to content

crucible: answered bytes must equal the RETURN's bytes; byte-overload mutants proven on COMEN01C det port (Part of #4965) - #5050

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4965-bytes-commarea
Oct 13, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4965-bytes-commarea

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #4965.

What this found

The brief assumed a model-written port that RETURNs TRANSID with a COMMAREA would kill the byte overload's assign mutant. It does not. Re-running the four COMMAREA crucible ports (PCWIZ, PCCONF, PCMENU, PCDETL) showed the accessor mutant killed but lastAnswerBytes = task.returnedBytes(); deleted surviving on all four. The reason: model ports RETURN through the DTO-only returnTransid(t, ca, len), so returnedBytes() is null on every path. Only the deterministic port calls returnTransid(.., byte[]) (#4817). So the deletion is an equivalent mutant on any model port, COMMAREA or not.

Changes

  • tests/tools/cics_crucible.py (Java driver): the byte pass now requires Arrays.equals(answered, task.returnedBytes()), as equivalence_cics.py already does. Before, a null/stale answer silently fell back to the DTO bytes. Model ports still pass (null == null); checked pc-wizard, pc-aid-menu, ca-link-lengths on both sides (28/28).
  • tests/tools/mutation_bytes.py + test: proves exactly the assign and accessor mutants of a case's committed port and of its det port.
  • docs/language_status/mutation_testing.md: the measured table.

COMEN01C (carddemo-menu, RETURN TRANSID with COMMAREA, det 91/91), measured 2026-10-13:

port deleted assignment inverted accessor
committed model port survives (equivalent) killed
det port (byte RETURN) killed killed

Class sweep

Class: harness checks that fall back to the DTO when the byte-carrying channel is null, so a facade/accessor that stops producing the bytes is never seen; and the facade accessor mutants that stay equivalent because model ports RETURN through the DTO-only returnTransid.

member status
crucible java-facade: lastAnswerBytes() vs the task's RETURN bytes fixed here (was a DTO fallback)
equivalence harness: same check already present (equivalence_cics.py)
RETURN IMMEDIATE bytes (returnImmediate(.., byte[])) covered by the same equality (returnedBytes is set by the 4-arg form)
LINK / XCTL COMMAREA and caller_commarea in the crucible driver sibling gap: compared through the DTO only; no byte overload on handleLink to prove
model ports' assign mutant (CALINK, CAXA, GTSTART, HCQREAD, PC*) equivalent by construction (DTO-only RETURN); only a det port can kill it
crucible taking a det port's bytes (ASCII vs EBCDIC logs) sibling gap: needs a page-aware comparison

Not done / why

  • The crucible cannot run a det port's bytes: they are in the runtime's ASCII page, the expected logs are EBCDIC (PC-STEP X'31' vs X'F1'). A det port of PCWIZ translates 39/39 and passes java-ported, fails every java-facade scenario for that reason. Crucible ports are also "no hand edits" model output, so I did not alter them.
  • No committed det port: det ports are generated per run; the proof of the kill is the tool + table above.
  • mutation_scores.json / test_proof_reach counts unchanged (the PC* records were not re-judged; their assign mutants are equivalent for the reason above).

Cross-repo

None. Touches tests/tools/cics_crucible.py (driver Java string, ~10 lines); does not touch equivalence_cics.py, ggcics.c or the forge.

Gates: pr_gates --fast 5/5, --ratchets 7/7. Crucible harness change makes the crucible evidence records stale-on-harness; the scheduled refresh re-proves them.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 13, 2026 15:51
…(Part of #4965)

The byte pass fell back to the DTO's bytes when the facade answered null, so a facade
that stopped assigning lastAnswerBytes was never seen. Killed now on PCDETL, PCMENU,
PCCONF, PCWIZ.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…mutation_bytes.py proves the byte overload's mutants (Part of #4965)

The earlier owed-bytes cut broke the model ports (DTO-only RETURN): replaced with the
equivalence harness's own check. COMEN01C: deleted assignment equivalent on the model
port, killed on the det port; accessor killed on both.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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

Copy link
Copy Markdown
Owner Author

No description provided.

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