Skip to content

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

Closed

Description

@stackbilt-admin

Problem

A freshly bootstrapped repo loses Grounding points in charter score because of a reference Charter wrote itself.

Reproduction (CLI 2.1.0, throwaway repo)

  1. charter bootstrap --ci github --preset fullstack --mode lean --yes --skip-install
  2. charter score

Actual

[warn] Grounding    10/20  23/24 referenced paths resolve; no runnable command blocks found; 1 broken reference(s)
- Fix or remove 1 broken path reference(s): .ai/context.snapshot.json.

The generated CLAUDE.md tells agents to read .ai/context.snapshot.json or generate it (packages/cli/src/commands/adf.ts:353,370 on main), but bootstrap doesn't create the file. The recommendation to "fix or remove" also points at a managed file that says not to edit it. The other 10 lost points may come from the missing command blocks, so this reference may not account for all of them.

Expected

Either the scorer ignores this generated-on-demand path, or bootstrap creates the snapshot. Committing the snapshot has freshness tradeoffs, so ignoring it in the scorer may be the simpler fix.

Scope

Score output measured on 2.1.0; the template was read on main.

Activity

  1. added
    bug
    priority:p2
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions