Skip to content

fix(observability): preserve native evidence through log and storage failures - #99

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/desktop-incident-evidence-20261005
Oct 5, 2026
Merged

rldyourmnd merged 1 commit into
mainfrom
fix/desktop-incident-evidence-20261005

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Native incident windows previously lost later control/recovery reasons, and a failed file write discarded the completed window. Snapshot/log success also gave no independent view of telemetry loss. The recorder now merges later reasons, captures control silence/repair and evidence-loss transitions, and includes weak non-owning log health plus storage success/error/backlog counters.

Four bounded incident payloads survive failed persistence and retry once per diagnostic tick. Complete private publication prevents a partially written JSON file from looking like a completed incident, preserves existing files and cleans its own temporary inode. Queue overflow and unavailable observations remain explicit. Wire, input replay, path defaults, bitrate and server lifecycle are unchanged; this is not a lossless audit guarantee.

Validation: 22 CLI library and 30 observation library tests pass, including synthetic ENOSPC/recovery, bounded overflow, partial-publication cleanup, existing-file preservation, reason merging through cooldown and weak-counter lifetime/sink failure. Strict expanded native workspace clippy and formatting pass. Full both-OS CI and installed qualification remain separate evidence. Generic research/contract/receipt updated; private runtime facts remain in the estate.

@rldyourmnd
rldyourmnd merged commit e1673be into main Oct 5, 2026
23 checks passed
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