Skip to content

test(blackbox): assert cross-stack slots against the model like any other slot - #658

Merged
JeroenSoeters merged 1 commit into
mainfrom
test/cross-stack-model-derivation
Aug 22, 2026
Merged

test(blackbox): assert cross-stack slots against the model like any other slot#658
JeroenSoeters merged 1 commit into
mainfrom
test/cross-stack-model-derivation

Conversation

@JeroenSoeters

Copy link
Copy Markdown
Collaborator

Why

Cross-stack slots were excluded from both directions of CheckModelVsInventory, and correctModelFromCommandOutcome step 2 never reverted a failed/canceled command's unmentioned cross-stack slots, on the stated grounds that "the command response alone can't tell us whether they were persisted". That left 2 of the 12 slots per consumer stack entirely unasserted — the largest remaining strictness hole after the drift-determinism rewrite (#656).

What

The claimed nondeterminism does not reproduce on the deterministic harness. Cross-stack resource updates carry per-resource terminal states like any other slot (visible in every drained command's updates), and the conditions that plausibly produced the original flakiness — silently no-op sync settles, the drift exemption retirement, verbatim patch predictions — were all fixed in #656/#657. With all three exclusions removed, TestProperty_FullChaos holds green over four consecutive 25-check runs (100 iterations) locally.

  • Delete the two skips in CheckModelVsInventory and the one in correctModelFromCommandOutcome step 2.
  • Pin the restored coverage with three tests (written first, verified failing against the skips): the forward model-vs-inventory check reports a missing cross-stack row; the reverse check reports an unexpected cross-stack row; a failed command's unmentioned cross-stack slot reverts to its snapshot.

If a genuine cross-stack nondeterminism exists after all, this suite will now find and report it instead of silently skipping it — which is the point.

Fixes the gap tracked in PLA-713 (internal).

…ther slot

Cross-stack slots were excluded from both directions of the
model-vs-inventory check, and a failed or canceled command's unmentioned
cross-stack slots were never reverted to their snapshots, on the grounds
that their persistence behavior was not derivable from the command
response. That left two of the twelve slots per consumer stack entirely
unasserted.

The claimed nondeterminism does not reproduce on the deterministic
harness: cross-stack resource updates carry per-resource terminal states
like any others, and with the drift-tolerance mechanism gone and sync
observation working, repeated full-chaos runs hold green with the
exclusions removed. Delete all three skips and pin the restored coverage
with tests for the forward check, the unexpected-inventory check, and the
unmentioned-slot revert.
@JeroenSoeters
JeroenSoeters merged commit 6bc1d54 into main Aug 22, 2026
31 checks passed
@JeroenSoeters
JeroenSoeters deleted the test/cross-stack-model-derivation branch August 22, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant