Repository navigation
fix(score): ignore the generated optional snapshot fallback - #406
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 freshly generated CLAUDE pointer offers to read the context snapshot or generate it, but
charter scoretreats the not-yet-generated file as broken documentation. Exclude only that exact generated fallback line from grounding extraction in pointer mode. User-authored references to the same path, unrelated missing paths, and unmanaged/README references remain checked. The scoring rubric and maximum score are unchanged; scoring never writes a snapshot.Closes #402.
Validation on Windows Node 24.19.0 / pnpm 9.15.9:
pnpm install --frozen-lockfile: passed in an isolated worktree.pnpm run build: passed.pnpm run typecheck: passed.pnpm exec vitest run packages/cli/src/__tests__/score.test.ts: 23/23 passed. Covers default/custom AI directory and negative cases for genuine missing references.git diff --check: passed; existing LF line endings preserved.pnpm run test: 1,929 passed, four failed (1,933 total). The four failures match the known baseline: bootstrap POSIX-path premise, context-refresh/serve-context path separators, and Ctrl-D fake-TTY behavior. No new failing test identified.Main CI already fails its dependency-audit step before build/tests (run 41207088055); audit remediation is coordinated separately under #397. Known Windows full-suite baseline failures concern path normalization and TTY behavior. No merges, publication, deployment, production writes, or remote deletion performed.