Fix/operational recovery journal hardening - #1216
Open
gonos2k wants to merge 29 commits into
Open
Conversation
ci: run prime-agent-runtime Python tests across supported versions
fix(coding-agent): harden daemon command recovery journal invariants
…tract fix(coding-agent): complete command journal tail and acknowledgement recovery
fix(coding-agent): complete daemon journal writes before fsync
Keep MCP transport tests independent of optional SDK installation while asserting strict call shapes, lazy imports, header precedence, and async cleanup.
…gration-v2 fix(coding-agent): integrate compaction reliability hardening
…ening fix(coding-agent): complete compaction lifecycle hardening
…g-followup fix(coding-agent): complete compaction lifecycle hardening
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.
Harden operational recovery journals with tail repair, strict validation, and atomic writes
writeAllSyncto guarantee full buffer writes by looping on short-write OS reports, used by all journal append and compact paths.'a+', capture original file size, fsync after write, and truncate back to the prior size on failure; compact paths use atomic temp-file rename with fsync.AgentSession, with a user-visible exhaustion notice when the cap is reached.chars/4heuristic, which shifts compaction thresholds and cut-point selection.Macroscope summarized fc9b6e4.