Repository navigation
Codex Retain 0.1.2
Codex Retain 0.1.2
Removes the blanket skip for spawn-related archives and consistent physical
copies while preserving the configured retention period.
- Plans removal from leaves to roots. Expired children can be removed while a
pinned or active parent survives; surviving children and shared-history
dependents protect their prerequisites. Fully expired chains finish in one run. - Rechecks SQL and file-header dependencies under the state transaction and
locks each candidate plus its owning ancestors. Incident spawn edges are
removed in the same transaction as the selected rows. - Includes every verified physical copy owned by an eligible archived thread,
acrosssessionsandarchived_sessions, plain JSONL and zstd. Directory
placement alone does not determine whether its owner is active. - Adds
preview --at RFC3339for a read-only future retention forecast. It
changes neither the policy nor archive clocks, and cannot be used withrun. - Adds journal schema 4 with distinct physical-file slots and cross-directory
recovery. Earlier journals remain readable. The journal and ancestor locks
remain bounded to 128 files/IDs; ambiguous ownership and unsafe files fail closed. - Explicitly releases the scheduler installation lock when its guard is dropped.
Update
brew update
brew upgrade dankosik/codex-retain/codex-retain
codex-retain --version
codex-retain statusThe existing policy, exclusions, pins and archive grace periods are preserved.
Finish pending recovery with 0.1.2 before downgrading: older releases cannot
recover schema-4 journals.
Compatibility remains Codex 0.153.4 on macOS 15+ for ARM64 and Intel. Validation
uses synthetic profiles; the organizational harness constructs hierarchy
metadata after native thread creation and shutdown rather than claiming native
model-driven spawning. Separate projection caches, secondary stores and global
traces remain outside cleanup. Supported-client coordination is not a guarantee
of complete erasure or protection against arbitrary foreign writers.