Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The hook’s nonzero-exit check is unreachable, causing failed hooks to return success and publish potentially incomplete evidence instead of retaining an unpublished case.
1 open issue
What changed in this PR
This PR protects the diagnostic watchdog’s crash-evidence outbox, building on #4’s hook and process-output fixes. It introduces coordinated access and bounded admission while preserving evidence for upload or operator recovery.
Changes:
- Add permanent cross-process locks and defer manifest publication until after the crash hook.
- Replace automatic eviction with capacity limits and exit-code-only monitoring when capture cannot be admitted.
- Document the consumer protocol and migration requirements, and add lifecycle and concurrency tests.
| File | Description |
|---|---|
| tests/Bowl.TestPeer/Program.cs | Add a real-process lock mode for concurrency tests. |
| tests/Bowl.Console.Tests/OutboxManagerTests.cs | Update tests for session leases, protocol metadata, retention, and admission. |
| tests/Bowl.Console.Tests/OutboxConcurrencyTests.cs | Cover locking, publication ordering, capacity, and failure recovery. |
| tests/Bowl.Console.Tests/CliOptionsTests.cs | Test rejection of invalid version directory names. |
| tests/Bowl.Console.Tests/Bowl.Console.Tests.csproj | Add the test-peer build dependency. |
| src/GeneralUpdate.Bowl.Console/SupervisorLoop.cs | Hold session leases through capture and publication; support degraded monitoring. |
| src/GeneralUpdate.Bowl.Console/OutboxManager.cs | Introduce locking and capacity limits; preserve existing evidence. |
| src/GeneralUpdate.Bowl.Console/CliOptions.cs | Validate version directory names. |
| README.md | Link the diagnostic outbox guide. |
| docs/diagnostic-outbox.md | Define locking, publication, consumer, migration, and recovery requirements. |
Review effort: Balanced
| GeneralTracer.Warn("SupervisorLoop: on-crash hook timed out after 60s and was killed."); | ||
| return false; | ||
| } | ||
| else if (process.ExitCode == 0) |
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
Validation
dotnet test tests\Bowl.Console.Tests\Bowl.Console.Tests.csproj -c Release --no-restore(Windows)Stacked on #4.