Skip to content

Restructure into codex/ and claude/ folders - #6

Merged
Fly-Carrot merged 3 commits into
mainfrom
migrate/monorepo
Nov 1, 2026
Merged

Fly-Carrot merged 3 commits into
mainfrom
migrate/monorepo

Conversation

@Fly-Carrot

Copy link
Copy Markdown
Owner

Summary

Restructures this repository so both trajectory implementations live side by side on main:

  • codex/ – the existing Codex implementation, moved with git mv (pure rename, no content changes; git log --follow keeps per-file history).
  • claude/ – the Claude Code implementation (claude-trajectory), added as one commit from its local adapter branch. Its earlier local history is intentionally not included.
  • Root: single LICENSE (both copies were identical), merged .gitignore, SECURITY.md pointing to each version's policy, an overview README.md, and one CI workflow with a component × OS × Python matrix (working-directory: ${{ matrix.component }}; the backports.zstd step stays Codex-only for Python < 3.14).

Folder READMEs now say to run commands from their own folder, and the LICENSE links point to ../LICENSE.

Not changed

Product names, install locations, hook commands, URL schemes, bundle IDs and Python package names (trace_viewer, claude_trajectory). Installed observers copy their files into user directories, so existing installs keep working. Existing tags v0.1.0 … v0.3.0 stay in place.

The repository rename to trajectory and prefixed tags (codex-v…, claude-v…) are follow-ups, not part of this PR.

Verification (local)

  • codex/ matches main at 77945e2 apart from the files moved to the root and README edits; claude/ matches its source tree likewise.
  • Codex: 241 tests OK on Python 3.14; 241 OK with 24 zstd skips on 3.12.
  • Claude: 86 tests OK on Python 3.14 and 3.12.
  • Installer --dry-run from both folders left empty isolated homes unchanged.

Not yet live-tested for the Claude version: /clear, --continue, compaction, desktop worktree sessions, the macOS recovery app.

🤖 Generated with Claude Code

Fly-Carrot and others added 3 commits October 31, 2026 23:53
Pure rename of every tracked file; no content changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Imported from the tree of the unpublished claude adapter branch at a93d4d2,
without its earlier history.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- One MIT LICENSE (both copies were identical); README links point to it.
- One CI workflow testing codex/ and claude/ separately across OS and Python.
- Merged .gitignore; root SECURITY.md links each folder's details.
- Overview README; each folder README says to run commands from that folder.

Product names, installers, hooks and runtime paths are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T17:11:50.603946Z 0199c39 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0199c39fcf

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +228 to +232
if old and old['identity'] != ident and not self.revalidate(db, path, source, old):
return False
if old and info.st_size < old['offset']:
raise IndexReset('Source truncated')
if old and not backward and old['offset'] == info.st_size:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Revalidate indexed records after same-inode rewrites

If a transcript is rewritten in place without becoming shorter, its device/inode identity remains unchanged, so record-proof validation is skipped. A same-length rewrite then hits the unchanged-size return and indefinitely serves the old events; a longer rewrite indexes only the appended bytes while retaining stale history. I reproduced this by indexing a prompt containing OLD and replacing it with NEW in the same file: subsequent snapshots still returned OLD without a warning. Track source modification metadata and revalidate changed indexed content before treating the source as unchanged.

Useful? React with 👍 / 👎.

Comment on lines +472 to +473
mains = [p for p in self.paths if p in available][:7]
for path in ([] if capacity_limited else mains):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rotate the indexing budget across all registered sources

When a session has more than seven registered transcript paths, every refresh selects the same first seven and never indexes the remaining paths. Those omitted paths are also excluded from the later completeness calculation, so the viewer reports indexing complete with no warning despite missing history. An eight-segment synthetic session reproduced this: only segments 0–6 appeared and indexing was false. Seven main paths also leave zero scheduling slots for linked subagents. Apply the per-refresh budget through a rotating schedule across main and subagent sources rather than permanently truncating the main-source list.

Useful? React with 👍 / 👎.

@Fly-Carrot
Fly-Carrot merged commit d9a6186 into main Nov 1, 2026
32 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