Skip to content

First contact: every vendor pointer and every gate failure shows the preflight answer #448

Backlog

Description

@stackbilt-admin

Problem

The first thing an agent sees decides whether it ever comes back. Today, at pinned 5412100:

  • CLAUDE.md says to call charter_context before anything else. That returns a snapshot with branch, dirty state and recent commits, which is a weaker git status, and is sometimes stale (context-refresh --once and charter_context serve a stale snapshot as fresh after a branch, HEAD or working-tree change #440). The first impression teaches the agent to skip Charter.
  • AGENTS.md, GEMINI.md, .cursorrules and the Copilot pointer each say only "see .ai/manifest.adf", and show nothing about what Charter can tell you.
  • .ai/state.adf says CURRENT: v1.9.3 while the package is 3.0.0.
  • When the pre-commit evidence gate fails, it says "Fix failing constraints before merging" with no source file, no repair, and no test.

Proposed

  1. Every vendor pointer (generated by the pointer templates and adf compile, not hand-edited) shows one real, short example of the preflight answer and one line: "Before editing a file, run charter adf context --files <path>: it tells you the rule that binds it, its headroom, whether it's a published contract, and the test to run first." Same content for every vendor; Charter is cross-agent by design.
  2. Replace "call charter_context first" with the preflight line. Keep charter_context available but don't lead with it.
  3. Gate failure output ends with the preflight answer for the failing file: source, measured vs ceiling, the smallest legitimate repair ("remove N lines or extract"), and the verification command. Raising the ceiling is shown as an owner decision, never the default next step.
  4. Refresh state.adf so the repo's own first impression is current.

Acceptance

  • charter adf compile / pointer generation produces the new text for every supported vendor file. A snapshot test covers each vendor.
  • An induced ceiling failure (fixture: baseline 4, ceiling 5, add 2 lines) prints the source file, 6/5, the repair, and the rerun command. After the repair, the same command exits 0.
  • No vendor file gets content the others lack.

Depends on the preflight answer (#447) for full value; items 2–4 can ship first. Part of #437.

Coordination with existing issues

Activity

  1. added
    enhancement
    type:feature
    priority:p1
    epic:preflight
    on Nov 28, 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

    enhancementepic:preflightpriority:p1type:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions