GeezerVison is showing github.com — chore: stop tracking local agent session state by lidge-jun · Pull Request #567 · lidge-jun/opencodex
Conversation
lidge-jun
commented
Jul 27, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
.gitignore has listed .codexclaw/ since the directory existed, but four files
were tracked anyway on dev, main, and preview:
.codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/goalplan.json
.codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/ledger.jsonl
.codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/goalplan.json
.codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/ledger.jsonl
These are per-machine agent state — goalplans and append-only ledgers describing
one operator's local work loop. They are not product code, they carry local
worktree paths and session ids, and no reader of this repository can act on them.
Why the ignore rule did not stop it
Two properties of git combine badly here:
git add -f overrides .gitignore with no warning.
- Once a path is tracked, the ignore rule stops applying to it entirely — every
later edit is staged like any normal file.
So a single forced add is permanent until someone explicitly untracks the path.
That is what happened, and the files then rode along into main and preview
through ordinary promotion.
Changes
- Untrack the four
.codexclaw/ files with git rm --cached. Files stay on
disk; only the index entry goes away.
- Untrack
devlog/.DS_Store and devlog/_plan/.DS_Store, which reached the repo
the same way (.DS_Store is also already ignored).
- Add
tests/repo-hygiene.test.ts, which asserts against git ls-files rather
than against .gitignore. A forced add now fails CI on the commit that
introduces it, instead of being discovered months later.
- Drop a comment in
src/providers/registry.ts citing
.codexclaw/evidence/260710_wp9_ollama_cloud_model_ids.md — that file was
never committed, so the reference cannot be resolved by anyone. The adjacent
verification date is kept.
devlog/ is deliberately left alone: unlike .codexclaw/, it is referenced from
source comments across src/ and is part of how this project records design
evidence.
Verification
bun test tests/repo-hygiene.test.ts → 3 pass / 0 fail
- The hygiene test was confirmed to actually catch violations: on first run it
failed and reported the two tracked .DS_Store files, which is how they were
found.
bun x tsc --noEmit → pass
- pre-push
bun scripts/test.ts → full suite pass, privacy scan pass
Summary by CodeRabbit
-
Bug Fixes
- Prevented local agent and session artifacts from being included in the repository.
- Removed outdated planning and triage records from version control.
-
Tests
- Added repository hygiene checks for unwanted tracked files and required ignore rules.
-
Maintenance
- Expanded ignore rules to cover nested agent-state directories.
- Updated verification notes for available Ollama Cloud models.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
coderabbitai
Bot
commented
Jul 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: e77344f4-72eb-4306-a2c5-bf36810775fe
📥 Commits
Reviewing files that changed from the base of the PR and between 5f76d58 and 6f1de73.
⛔ Files ignored due to path filters (2)
devlog/.DS_Store is excluded by !**/.DS_Store
devlog/_plan/.DS_Store is excluded by !**/.DS_Store
📒 Files selected for processing (7)
.codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/goalplan.json
.codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/ledger.jsonl
.codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/goalplan.json
.codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/ledger.jsonl
.gitignore
src/providers/registry.ts
tests/repo-hygiene.test.ts
💤 Files with no reviewable changes (5)
- .codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/ledger.jsonl
- .codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/goalplan.json
- .codexclaw/goalplans/opencodex-live-unfinished-issues-and-prs-triage/goalplan.json
- .codexclaw/goalplans/opencodex-4-pabcd-work-phase-wp1-wp2-dev2-go-pr/ledger.jsonl
- src/providers/registry.ts
📝 Walkthrough
Walkthrough
The change removes two stored agent goal plans and their ledgers, broadens .gitignore coverage for agent artifacts, adds repository hygiene tests, and updates the Ollama Cloud model verification comment.
Changes
Repository hygiene
| Layer / File(s) |
Summary |
Agent state cleanup and hygiene enforcement .codexclaw/goalplans/..., .gitignore, tests/repo-hygiene.test.ts |
Stored goal plans and ledgers are deleted; nested .codexclaw/ and .omo/ directories are ignored; Bun tests verify tracked-file and .gitignore hygiene. |
Provider metadata
| Layer / File(s) |
Summary |
Ollama Cloud model verification src/providers/registry.ts |
Updates the ollama-cloud model-list comment to indicate live ID verification and qwen3-coder:480b retirement without changing provider fields or model data. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Suggested labels: enhancement
Suggested reviewers: wibias, ingwannu
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly matches the main change: untracking local agent session state and related ignored files. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
📝 Generate docstrings
- Create stacked PR
- Commit on current branch
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
codex/untrack-codexclaw
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lidge-jun
added a commit
that referenced
this pull request
Jul 27, 2026
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
lidge-jun
added a commit
that referenced
this pull request
Jul 27, 2026
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
lidge-jun
added a commit
that referenced
this pull request
Jul 27, 2026
It was committed despite the ignore rule and carries no content. Matches the
same cleanup on dev/main/preview in #567.
This was referenced Jul 28, 2026
This was referenced Aug 3, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
The .codexclaw/ goalplans and ledgers are per-machine agent state. They were
committed with 'git add -f' despite the ignore rule, and once tracked the rule
stopped applying, so they rode along into main and preview.
Untrack them (files stay on disk), drop two .DS_Store files that got in the same
way, and add tests/repo-hygiene.test.ts so a forced add fails CI instead of
landing silently. Also drop a registry.ts comment pointing at a .codexclaw
evidence file that was never committed and cannot be resolved by any reader.
Reviewers
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Wibias
Awaiting requested review from Wibias
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
chore
Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|