Skip to content

Intent-tier checks have no mechanical floor, so a codecov.yml that gates PRs passes the audit #1110

Closed as not planned

Description

@ptr727

Raised by CodeRabbit against PR #1107 and separated out from it, since the observation is about the fidelity model rather than about that PR's MTP migration.

The Observation

A requirement stated in WORKFLOW.md and carried in spec/files.json at fidelity: intent is evaluated by a reading agent against a catalog/ reference, never mechanically. Nothing fails when the repo drifts from it. The concrete case raised was codecov.yml:

{ "path": "codecov.yml", "fidelity": "intent", "reference": "catalog/snippets/configs/codecov.yml", "intentRef": "WORKFLOW.md", "appliesTo": ["csharp", "python"] }

D1.6 requires that file to set project and patch statuses to informational: true, so a coverage delta never gates a pull request, and to exclude intentionally-untested code from the denominator via ignore. The reference snippet carries both. But a repo whose codecov.yml sets informational: false, or drops the statuses entirely, passes every mechanical check the fleet runs. Codecov then gates pull requests in that repo and nothing reports it until someone notices a blocked PR.

This is not specific to codecov.yml. It is a property of every intent-tier entry, and the question is which of them deserve a mechanical floor underneath the intent reading.

Why It Is Not Simply "Make It Letter Tier"

Intent tier is the correct choice for codecov.yml as a whole file. Each repo's ignore paths are its own, so a byte-match against the reference would be wrong by construction, and that is exactly why the entry is not verbatim.

What is mechanically checkable is narrower than the whole file: that coverage.status.project.default.informational and coverage.status.patch.default.informational are both true, where the file exists and the repo claims coverage. The ignore block stays a judgment call, since only a human or a reading agent knows which of a repo's paths are legitimately untested.

So the shape worth considering is a partial mechanical assertion inside an otherwise intent-tier file, which the fidelity model does not currently express. That is the actual design question.

Prior Art and Constraints

  • spec/audit.py currently evaluates no check belonging to a type in spec/project-types.json, and AUDIT.md states this in two places, with matching statements in audit.py itself. Any move here has to reconcile those, the same constraint noted in Audit check: an MTP-based dotnet test project with no global.json runner opt-in #1108.
  • codecov.yml is YAML, and the audit runs on the standard library with no YAML parser, so a check would need the same anchored-regex approach the Dependabot ecosystem check already uses, with its documented limits.
  • coverage_active already derives whether a repo claims coverage at build profile, so the gate for such a check exists.

Not Blocking

PR #1107 declined this as out of its scope, correctly: the codecov.yml requirement is pre-existing text that PR does not touch, and spec/files.json does already carry the file at intent fidelity against a reference containing both requirements. This issue captures the deeper point rather than the one that was declined.

Related: #1108, which needs the same AUDIT.md reconciliation.

Activity

  1. added a commit that references this issue on Aug 30, 2026
  2. added
    gate
    on Sep 5, 2026
  3. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Decision needed (decision triage, 2026-11-01)

    Question: Should spec/audit.py gain a mechanical assertion inside the intent-tier codecov.yml entry (spec/files.json:38) that project and patch statuses are informational: true, or a general partial-assertion form for intent-tier entries?

    Options, recommended first:

    1. Decline and close, no mechanical floor (recommended): No repository has drifted, and the 2026-10-23 cost-first decision closes gate work with no observed failure. No work in flight.
    2. Add one narrow codecov.yml informational check: Cheap now the audit parses YAML and has a check registry, and catches the one planned flip in the fleet, but owes a reconcile with AUDIT.md section 4. No work in flight.
    3. Add partial assertions to the fidelity model: Answers the design question for every intent-tier entry, the costliest option (fidelity-model.md, files.json, audit.py), with no second candidate entry. No work in flight.

    Evidence: Live read of the default branch of all 15 csharp- or python-typed registry repositories: informational: true on both statuses in every one. The one risk is a LanguageTags codecov.yml comment planning to flip to blocking after a baseline upload, against WORKFLOW.md D1.6, so if wanted that change belongs in D1.6. The "no YAML parser" constraint is overtaken by #3416 (c66778b: PyYAML and spec/checks.json). The "no project-type check" constraint stands (AUDIT.md:73, audit.py:2325), and a gate exists (coverage_types, audit.py:199-211).

    Blocks: none

  4. added
    decision
    on Nov 1, 2026
  5. ptr727 commented on Nov 1, 2026

    @ptr727
    OwnerAuthor

    Maintainer answer (decision triage, 2026-11-01): Option 1: decline and close with no mechanical floor. No repository has drifted. A repository wanting coverage to block belongs in WORKFLOW.md D1.6, not an audit check.

  6. removed
    decision
    on Nov 1, 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

    gate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions