Skip to content

feat: add prime recovery and safe session imports - #3

Merged
bfirestone merged 1 commit into
mainfrom
bfirestone/review-fixes
Sep 6, 2026
Merged

bfirestone merged 1 commit into
mainfrom
bfirestone/review-fixes

Conversation

@bfirestone

@bfirestone bfirestone commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex startup and compaction hooks now request om prime, so prepared memory arrives as bounded tool output with checkpoint time and pending backlog. Hooks no longer embed a memory body that exceeds Codex's context allowance.

This also fixes the review's memory ordering, self-capture, failed-fork retry, retirement redaction, and session handoff findings:

  • Rank importance across observations and reflections, quote historical entries, and cap the complete view by UTF-8 bytes.
  • Parse actual Bash command identity instead of dropping any input mentioning scripts/run.sh.
  • Prepare snapshots before publishing a destination; add atomic import for an already-started, uncheckpointed session while retaining its pending prompt.
  • Redact retirement reasons, report checkpoint freshness, preserve interruption backlog, and support [om:pause] before prompt capture.
  • Pin the existing CI/release Actions to verified commit SHAs.

Validation: go test ./..., go test -race ./..., go vet ./..., go mod verify, and mise exec -- goreleaser check pass. The marketplace's eight integration tests and native Codex 0.153.4 canary also pass against a build of this tree. The native canary uses a local stub model and verifies sandbox denial without a data-directory grant, successful prime/pending/apply with a scoped grant, failed shell evidence, mid-turn compaction, Stop, and resume.

Claude Code remains deferred to #1. Go, SQLite, protocol 1, and schema 1 are retained. The marketplace will pin the resulting 0.3.0 release and its published checksums.

@bfirestone
bfirestone merged commit 92522f8 into main Sep 6, 2026
4 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