Skip to content

feat: add safe diagnostic bundle export - #32

Merged
ostapondo merged 3 commits into
mainfrom
feature/diagnostic-bundle
Aug 28, 2026
Merged

ostapondo merged 3 commits into
mainfrom
feature/diagnostic-bundle

Conversation

@ostapondo

@ostapondo ostapondo commented Aug 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • add preview-first rescueloop diagnostics export with explicit --confirm writes
  • package version/platform, health, bounded metrics, source status, integrity results, allowlisted configuration, and recent redacted logs
  • enforce fixed archive members and explicit read/member/content/archive bounds

Privacy and safety

  • excludes incident evidence, filesystem paths, launch arguments, tokens, endpoints, model payloads, and repair contents
  • applies a second support-export redaction pass to logs
  • refuses to overwrite an existing destination
  • bounds health-side ledger validation and configuration reads
  • no upload or telemetry is performed

MCP impact

No MCP change is needed. Diagnostic export is a privileged local filesystem operation and remains outside the read-only MCP incident surface.

Validation

  • cargo fmt --check
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • real preview/write/archive-content smoke test
  • verified preview-only creates no archive and repeated export cannot overwrite

@ostapondo
ostapondo merged commit 5c3f67e into main Aug 28, 2026
2 checks passed
@ostapondo
ostapondo deleted the feature/diagnostic-bundle branch August 28, 2026 15:04
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