Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The manifest violates the existing evidence-file contract by listing itself, and real ProcDump capture plus processAlive cancellation behavior lack integration coverage.
2 open issues
What changed in this PR
Adds opt-in Windows crash collection to Bowl.Host’s update supervision, reusing GeneralUpdate.Bowl to capture mini dumps and stage evidence for Core Client uploads. Default behavior remains metadata-only; the host does not upload crash artifacts.
Changes:
- Adds request validation, updater/application capture, and per-target capture status.
- Stages dump/report pairs outside rollback scope and publishes schema-2 crash cases.
- Adds capture tests, a crash-capable test process, and deployment and operational documentation.
| File | Description |
|---|---|
tests/Bowl.TestPeer/Program.cs |
Adds an intentional crash mode. |
tests/Bowl.Host.Tests/CrashCollectionTests.cs |
Tests validation, publication, rollback preservation, and tool ownership. |
src/GeneralUpdate.Bowl/InternalsVisibleTo.cs |
Grants Bowl.Host access to library internals. |
src/Bowl.Host/Supervisor.cs |
Integrates capture startup, shutdown, and status persistence. |
src/Bowl.Host/Protocol.cs |
Adds the opt-in flag and capture-status records. |
src/Bowl.Host/Disk.cs |
Validates target versions before capture-enabled readiness. |
src/Bowl.Host/CrashCollection.cs |
Implements capture sessions and crash-case publication. |
src/Bowl.Host/CaptureJob.cs |
Adds Windows job-based ownership of capture tools. |
src/Bowl.Host/Bowl.Host.csproj |
References the diagnostic library. |
README.md |
Introduces optional capture and separate Client uploads. |
docs/protocol-v1.md |
Documents configuration, evidence lifecycle, and security requirements. |
docs/migration.md |
Updates guidance for the host’s optional diagnostics. |
Review effort: Balanced
| if (target.HasExited || !Processes.SameProcessStart(target.StartTime.ToUniversalTime(), identity.StartTimeUtc)) | ||
| throw new InvalidDataException("Capture target exited before attach."); | ||
| using var job = CaptureJob.Create(); | ||
| using var tool = Process.Start(info) ?? throw new InvalidOperationException("Capture tool failed to start."); |
|
@copilot 修复修改建议和CI失败 |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
已修复建议并补充 Windows ProcDump 崩溃发布及 |
|
@copilot CI失败 |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
已修复 Windows CI 失败:崩溃测试的更新超时现设为 30 秒,取消测试不再依赖 ProcDump 进程名。完整测试套件本地通过(260 项),提交 |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

No description provided.