Skip to content

[DRAFT Formal RDTE] Cross-layer effect replay, ambiguous ACK and human STOP model - #216

Closed
mark-e-deyoung wants to merge 2 commits into
integration/protected-control-cas-volume-custody-r1-20261123from
formal/mvp-cross-layer-effect-replay-r1-20261123
Closed

mark-e-deyoung wants to merge 2 commits into
integration/protected-control-cas-volume-custody-r1-20261123from
formal/mvp-cross-layer-effect-replay-r1-20261123

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

R040 parallel cross-layer atomicity audit — independent of protected IPC prototype

New source e4456ea41147ec1b1055ea96b12d5f9d7b12ce99, parent immutable #214 f61c5ed45ccff505fcabf69268fcf05585d44500, three additive files only; no overlap with peer-authorization source #215, original controller branches, or main.

The Python stdlib finite-state BFS explicitly models prepare durable generation → apply guest effect → crash before durable ACK → restart → retry. Negative control must discover a duplicate effect without actual guest/target-side idempotency. Positive model assumes an atomic target-local operation-ID+effect dedup record; checks at-most-once conditional on this assumption and asserts new effects are blocked after human STOP even if the supervisor restarts. All state/inputs are synthetic, no emulator/Windows guest, no privileged filesystem or raw trace. A dedicated public 5-minute .github/workflows/external-effect-replay-rdte.yml runs positive + expected unsafe cases; exact-head terminal needed.

Release consequence: durable owner CAS does NOT make arbitrary Windows side effects exactly once. Explicitly classify external operations as read-only, target-proven idempotent, or non-retryable/UNKNOWN on ambiguous ACK; ensure STOP priority and no blind replay in the later actual broker. This is source-only abstract proof, not implementation evidence or TLC. Wine guest UID1000's writable writer lock (#210) and untrusted runtime promotion remain BLOCKED. All branches draft, no private GHA, no hardware or protected merge.

Copy link
Copy Markdown
Collaborator Author

R040 cross-layer effect atomicity model with required counterexample

First e4456ea41147ec1b1055ea96b12d5f9d7b12ce99 dedicated CI #45260016441 FAILED before tests because checkout SHA was accidentally prefixed by '\'; separate full CI #45260016346 Ruff I001 due one missing blank line between imports and dataclass. Both source hygiene errors corrected together at exact 4ab3b09fd372e53de6b05a59c4b04f6bef392618. Dedicated source-only finite model #45260692865 TERMINAL SUCCESS, existing TLC #45260692463 SUCCESS (the new Python model itself is not TLC), full CI #45260692470 still IN PROGRESS. The unsafe abstract model must exhibit prepare→effect→crash-before-ACK→restart→effect again; conditional safe variant assumes the guest target itself atomically deduplicates operation IDs; STOP blocks new effects but cannot roll back committed ones. Arbitrary Windows effects are not exactly-once under controller CAS alone. This is a design/release gate, not runtime proof.

Copy link
Copy Markdown
Collaborator Author

R040 explicit source-exact supersession and release HOLD

This standalone formal model source at 4ab3b09fd372e53de6b05a59c4b04f6bef392618 is a direct second parent of integration PR #219 exact 6a1a2ec46321ddb2ac4fc5d52188299d52e3337a, with all three original model/docs/workflow Git blobs preserved unchanged. Independent bounded abstract model #45265055473 terminal SUCCESS and successor full CI #45265055432 terminal SUCCESS. #220 continues the same stack with mandatory unsafe runtime writer test.
Housekeeping action: close THIS redundant draft review surface without merge to main. Keep the original remote ref/commit and DLE provenance; only remove the duplicate open-PR burden. No untrusted Windows runtime release; the safe model assumes target-side deduplication and does not prove real effect exactly-once or an actual STOP broker. Reopen if independent unresolved obligations are found.

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