Repository navigation
crucible: answered bytes must equal the RETURN's bytes; byte-overload mutants proven on COMEN01C det port (Part of #4965) - #5050
Merged
Conversation
…(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]>
Contributor
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-onlyreturnTransid(t, ca, len), soreturnedBytes()is null on every path. Only the deterministic port callsreturnTransid(.., 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 requiresArrays.equals(answered, task.returnedBytes()), asequivalence_cics.pyalready 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: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.lastAnswerBytes()vs the task's RETURN bytesequivalence_cics.py)returnImmediate(.., byte[]))returnedBytesis set by the 4-arg form)caller_commareain the crucible driverhandleLinkto proveNot done / why
PC-STEPX'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.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