Skip to content

feat: Phase C C10 benchmark governance CI -- rejects missing BMC cards for governed benchmark scripts - #885

Merged
cschanhniem merged 1 commit into
mainfrom
feat/c10-benchmark-governance-ci
Jul 10, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
feat/c10-benchmark-governance-ci

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Implements C10 from NEXT_100_PR_MAP: benchmark governance CI check.

What

  • src/openamp_foundry/evidence/benchmark_governance.py: check_governance() + format_governance_report() + GovernanceReport dataclass + BenchmarkGovernanceError
  • GOVERNED_SCRIPTS frozenset + SCRIPT_TO_BMC_ID mapping (5 scripts, BMC-0001 to BMC-0005)
  • Governed scripts without a registry card → is_compliant=False with violation detail
  • Ungoverned scripts → warning only, not a CI failure
  • 63 tests; BASELINE 6961 → 7024

Why

Prevents benchmark sprawl: new benchmark scripts must declare a BMC- card in BENCHMARK_REGISTRY before they can be governed. The SCRIPT_TO_BMC_ID mapping is the contract — add here before adding a script.

Disconfirming pass

  • Does not block ungoverned scripts (grandfathered path exists).
  • Does not modify any existing BMC cards or registry entries.
  • No safety/release policy touched.

@cschanhniem
cschanhniem merged commit fa1b852 into main Jul 10, 2026
1 check failed
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.

1 participant