Skip to content

fix: contain session import paths and add offline fixture CI - #1

Merged
SamZebrado merged 4 commits into
mainfrom
codex/estate-finalization-20261002
Oct 2, 2026
Merged

SamZebrado merged 4 commits into
mainfrom
codex/estate-finalization-20261002

Conversation

@SamZebrado

@SamZebrado SamZebrado commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Importing a bundle with an absolute explicit session ID could write JSONL outside the supplied Codex home. Validate bundle and explicit IDs as filename-safe values, preserve UUID and non-UUID IDs, and check all rewritten JSONL destinations before backups, deletions, or writes. Reject escaping session and temporary-file symlinks. Correct checksum and backup-recovery documentation to describe manual checksum auditing and manifest-directed recovery.

The existing offline fixture CI is retained with pinned actions, read-only permissions, and Linux/macOS Python 3.10/3.13 coverage.

Validation: 52 synthetic stdlib tests pass locally on Python 3.14.2 and cached Python 3.12.14; the new path regressions cover absolute IDs, both separators, traversal, invalid and valid IDs, basename containment, symlinks and mutation-free preflight. Manual restore of a closed fixture database and JSONL matches the original bytes. No real Codex sessions/workdirs or external agents were used.

Limits: import does not automatically verify bundle checksums or provide cross-file rollback. Live Codex schema/Desktop/extension compatibility, cross-OS real migrations and concurrent mutation remain unverified. The repair requires fresh independent review before merge. A follow-up preserves the .jsonl extension and rewrites only the terminal source ID in the filename stem, including short IDs jsonl and l with overlapping prefix text. The copied independent probe now passes all 58 cases; original failing evidence is preserved.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T14:49:47.585637Z 841816d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamZebrado SamZebrado changed the title ci: verify migration fixtures without live session data fix: contain session import paths and add offline fixture CI Oct 2, 2026
@SamZebrado
SamZebrado merged commit 7b9a0de into main Oct 2, 2026
9 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