Skip to content

getProjectState reports 'All constraints pass' while live evidence fails #441

Done

Description

@stackbilt-admin

Problem

MCP getProjectState (serve.ts:216) validates the static numbers written in .adf METRICS and never auto-measures. With a file over its ceiling, charter adf evidence --auto-measure --ci fails (exit 1) while getProjectState returns "All constraints pass — no violations detected."

That's a false green from the governance tool itself, which is the worst failure mode for a standard agents are meant to trust.

Reproduction (pinned 5412100)

Append 20 lines to packages/adf/src/bundler.ts (ceiling 144, current 129).

  • charter adf evidence --auto-measure --ci: [FAIL] bundler_loc: 149 / 144, exit 1
  • MCP getProjectState: "All constraints pass"

Expected

getProjectState auto-measures the METRICS sources, as adf evidence --auto-measure does. If it can't, it labels its result measured: false / "static values, not measured".

Acceptance

Repeating the reproduction makes getProjectState report the failing constraint with measured value and ceiling. Existing response shape is preserved, with additive fields only.

Works on its own. Part of #437.

Activity

  1. added
    bug
    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

    bugepic:preflightpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions