Skip to content

feat: add sovereign-ci.yml reusable workflow (§2.1.1) - #1

Open
noahgift wants to merge 1 commit into
mainfrom
feat/sovereign-ci-reusable
Open

feat: add sovereign-ci.yml reusable workflow (§2.1.1)#1
noahgift wants to merge 1 commit into
mainfrom
feat/sovereign-ci-reusable

Conversation

@noahgift

Copy link
Copy Markdown
Contributor

Single reusable workflow for all per-repo CI. Change once, applies to all 31 repos.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
noahgift added a commit that referenced this pull request Jun 25, 2026
…stem audit gap #1)

The strongest quality signal (line coverage) was purely advisory: the
coverage job runs `cargo llvm-cov` but never enforced a floor, and the
codecov upload is continue-on-error. A coverage regression therefore
merged SILENTLY despite the 95% / ZERO-tolerance rule.

This adds two OPT-IN inputs to the fleet-shared reusable workflow:

  - coverage_min (default '')          — line-coverage floor
  - coverage_baseline_file (default
    .pmat/coverage-baseline.txt)        — ratchet baseline path

When coverage_min is EMPTY (the default for all 72 non-pilot callers),
a new `if: inputs.coverage_min != ''` guard SKIPS the enforcement step
entirely — coverage stays exactly as advisory as before. Zero behavior
change for every repo that does not opt in.

When coverage_min is set, the new step derives line coverage from the
just-produced lcov.info (no extra compile/test cost), computes an
effective floor = max(coverage_min, committed baseline), and FAILS the
coverage job on a drop below it. The coverage job result is already
wired into the top-level `gate` (needs: [...coverage...]), so a
regression now blocks merge. It is a RATCHET, not an absolute jump:
a repo green today records its current % as the baseline, so enabling
the gate can never break the currently-green state.

Pilot: aprender only (paiml/aprender PR). NOT enabled fleet-wide.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
noahgift added a commit that referenced this pull request Jun 25, 2026
…stem audit gap #1) (#37)

The strongest quality signal (line coverage) was purely advisory: the
coverage job runs `cargo llvm-cov` but never enforced a floor, and the
codecov upload is continue-on-error. A coverage regression therefore
merged SILENTLY despite the 95% / ZERO-tolerance rule.

This adds two OPT-IN inputs to the fleet-shared reusable workflow:

  - coverage_min (default '')          — line-coverage floor
  - coverage_baseline_file (default
    .pmat/coverage-baseline.txt)        — ratchet baseline path

When coverage_min is EMPTY (the default for all 72 non-pilot callers),
a new `if: inputs.coverage_min != ''` guard SKIPS the enforcement step
entirely — coverage stays exactly as advisory as before. Zero behavior
change for every repo that does not opt in.

When coverage_min is set, the new step derives line coverage from the
just-produced lcov.info (no extra compile/test cost), computes an
effective floor = max(coverage_min, committed baseline), and FAILS the
coverage job on a drop below it. The coverage job result is already
wired into the top-level `gate` (needs: [...coverage...]), so a
regression now blocks merge. It is a RATCHET, not an absolute jump:
a repo green today records its current % as the baseline, so enabling
the gate can never break the currently-green state.

Pilot: aprender only (paiml/aprender PR). NOT enabled fleet-wide.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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