Skip to content

fix(score): ignore the generated optional snapshot fallback - #406

Merged
stackbilt-admin merged 2 commits into
mainfrom
fix/issue-402-snapshot-score
Nov 2, 2026
Merged

stackbilt-admin merged 2 commits into
mainfrom
fix/issue-402-snapshot-score

Conversation

@stackbilt-admin

@stackbilt-admin stackbilt-admin commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

A freshly generated CLAUDE pointer offers to read the context snapshot or generate it, but charter score treats 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.
  • Smart-commit pre-commit TypeScript and ADF evidence gates: passed.
  • Full 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.

@stackbilt-admin
stackbilt-admin marked this pull request as ready for review November 2, 2026 20:28
@stackbilt-admin
stackbilt-admin merged commit ce1daac into main Nov 2, 2026
7 checks passed
@stackbilt-admin
stackbilt-admin deleted the fix/issue-402-snapshot-score branch November 27, 2026 23:55
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.

Fresh bootstrap loses score points for its own .ai/context.snapshot.json reference

2 participants