Repository navigation
fix(context): keep generated snapshots out of module routing and pointer bloat - #416
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A bootstrap/context-refresh/bootstrap cycle treated Charter's live context snapshot as an orphaned instruction module and registered the generic trigger
context. Doctor then counted the generated CLAUDE Session Start paragraphs as user trigger density. Skip automatic registration only for the known runtime snapshot signature, and omit one exact canonical CLAUDE session block from pointer-bloat scanning. Existing explicit registrations, hand-authored context modules, edited instructions and user additions remain visible and preserved.Closes #401.
Validation in isolated issue-401 worktree, Windows Node 24.19.0 / pnpm 9.15.9:
git diff --check: pass; existing tracked LF line endings preserved. No LOC ceiling changes.pnpm run test: 1,933 passed and four failed (1,937 total); all four failures exactly match the established Windows baseline. Log:.cache/issue-401-case-full-tests.log. The established four Windows baseline failures concern bootstrap's POSIX premise, context-refresh/serve path separators, and Ctrl-D fake TTY.This changes no routing entries already selected by the user, does not modify runtime snapshots, and does not add custom-ai-dir support to commands that currently use .ai. Main CI's dependency audit is handled separately by #404 and #413; no gate is weakened. No merge, publication, deployment, production write, tag/main push, or remote deletion performed.
Independent review follow-up: bootstrap now passes its detected filesystem case-sensitivity into generated filename identification. On case-insensitive filesystems,
Context.adfis the runtime snapshot and is not auto-registered; on case-sensitive filesystems it remains a distinct name. A real renamed-snapshot cycle and strict/manual-name negative controls cover this. Existing explicit registrations and user content remain preserved. One earlier focused run under concurrent full-suite load hit a 5-second timeout in an existing vendor scoring test; the completed final full suite passes that test.