Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the added recovery regression coverage and lock-scope documentation.
No open issues 🎉
What changed in this PR
Adds regression coverage for fail-closed recovery when an independent process writes to the installation during and after a Host crash. This is a test-and-documentation change stacked on PR #3; production recovery behavior and defaults remain unchanged.
Changes:
- Adds a test peer that accepts write commands independently of the Host.
- Verifies that recovery is refused, external changes and the snapshot are preserved, and a later attempt is blocked.
- Clarifies that the installation lock coordinates Hosts sharing a state root but does not prevent external writes.
| File | Description |
|---|---|
tests/Bowl.TestPeer/Program.cs |
Adds the command-driven, non-cooperating writer mode. |
tests/Bowl.Host.Tests/ProcessTests.cs |
Adds the real-process crash and recovery-refusal regression. |
docs/protocol-v1.md |
Documents lock limitations and the regression’s safety scope. |
Review effort: Balanced
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Summary
Safety and dependency
This is a test and documentation change only. It does not enable recovery, establish writer exclusion, or provide a crash-safe recovery handoff. Production recovery remains fail-closed and defaults are unchanged.
This PR requires both of these independent dependencies:
97e9540c03c0167c0c81ac7cc086ea9cc0afca8c(current base).47b5a065100c4f017b636eb4c9068978fbf33151(ProcessRunner stdout/stderr EOF-drain fix).#3 and #4 both target
main; #4 is not an ancestor of #3, and this PR's current branch contains #3 but not #4. Do not merge #6 until both dependencies are integrated. No #4 production changes were copied into this PR.Validation
7538f2c35192da4e0d3d62147f025ef467f352ee: run 45114622842 failed on Ubuntu tests; the Windows job was cancelled by fail-fast. The push run 45114618009 had the same platform outcomes.25779915600772435e270edee7ece0a53830a4d4(parents Test fail-closed recovery with a non-cooperating writer #67538f2c35192da4e0d3d62147f025ef467f352eeand Fix Windows crash hooks and process output capture #447b5a065100c4f017b636eb4c9068978fbf33151) passed both Windows and Ubuntu in run 45116805648. Windows also passed migration verification. The temporary branch was deleted after the run.