Skip to content

fix(ci): enforce the local verification baseline in PR checks #585

Closed as not planned

Description

@Sinity

Summary

CI does not run the same structural verification baseline as local devtools verify --quick, and it under-covers the verification control plane in type and coverage checks.

Evidence

Local quick verification includes structural gates:

  • devtools/verify.py:42 defines quick verification steps.
  • devtools/verify.py:48 through devtools/verify.py:56 include topology, layering, file budgets, test ownership, schema roundtrip, cross-cuts, suppressions, manifests, and witness lifecycle.

CI omits those gates:

  • .github/workflows/ci.yml:31 through .github/workflows/ci.yml:35 run dependency sync, render checks, ruff check, and ruff format.
  • .github/workflows/ci.yml:50 runs devtools coverage-gate.
  • .github/workflows/ci.yml:73 runs mypy polylogue/, not the configured repo-wide mypy command.
  • .github/workflows/ci.yml:84 runs only showcase baseline verification.
  • .github/workflows/nix.yml:194 through .github/workflows/nix.yml:207 define a packaged CLI smoke check of polylogue --help.

Workflow grep found none of these local quick gates in GitHub workflow files:

verify-topology False
verify-layering False
verify-file-budgets False
verify-test-ownership False
verify-schema-roundtrip False
verify-cross-cuts False
verify-suppressions False
verify-manifests False
verify-witness-lifecycle False

Control-plane type/coverage under-coverage:

  • pyproject.toml:166 through pyproject.toml:169 configure mypy over polylogue, tests/**/*.py, and devtools/**/*.py.
  • .github/workflows/ci.yml:73 runs uv run mypy polylogue/, excluding tests and devtools.
  • devtools/coverage_gate.py:38 through devtools/coverage_gate.py:45 always builds a pytest-cov command with --cov=polylogue.
  • pyproject.toml:144 through pyproject.toml:152 set the coverage source and floor for polylogue only.

Acceptance criteria

  • CI runs the same structural gates as devtools verify --quick, either by invoking devtools verify --quick directly or by matching its gate list intentionally.
  • CI mypy covers the same files as the configured local mypy baseline, or the narrower CI scope is documented with a dedicated issue and acceptance criteria.
  • Devtools verification code is either included in coverage enforcement or explicitly covered by a separate measurable gate.
  • A test or workflow-policy check fails when devtools verify --quick gains a structural gate that CI does not run.

Activity

  1. added
    type:fix
    theme:verifiability
    area:devtools
    on May 1, 2026
  2. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Superseded by #590. CI enforcement of the local verification baseline is now part of the broader executable-verification-contract issue, alongside manifest truth checks, quick-gate behavior, and coverage declaration enforcement.

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

    area:devtoolstheme:verifiabilitytool:codextype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions