Skip to content

A verification gate CI cannot run is discoverable only through a repo's own description of its topical doc #597

Closed

Description

@ptr727

Filed from ptr727/Blog after an agent skipped a mandatory pre-pull-request gate while following every carried rule correctly. Reporting the miss and the shape of it; where the guidance belongs is the hub's call, which is why this proposes no wording.

The miss

Blog's OPERATIONS.md has a section titled "Local Verification Before a Pull Request". It opens with "CI cannot prove a redirect." The validation workflow builds the site and checks only the render half of that repo's URL contract; the remaining 917 URLs are redirects, which no build exercises. The section therefore requires releasing to a local mirror and running a live check before opening a pull request that touches any of six paths, layouts/ among them.

Blog PR #40 added layouts/_partials/extend_head.html. The gate applied. It was not run. CI went green, a review found nothing relevant, and the pull request was opened and merged without the one check that could have caught a redirect regression.

Why it was missed, which is the part worth generalizing

Nothing was hidden. The agent had read the file's headings early in the session and classified it from the routing sentence in that repo's AGENTS.md:

... and the deploy, rollback, and server procedures in OPERATIONS.md.

That description is accurate and incomplete. It names what the file does after a merge, so an agent deciding how to verify a change before opening a pull request has no reason to open it. The same agent, in the same session, explicitly reasoned that a question "is not operational" on the strength of that framing, and was wrong for the same reason twice.

The general shape:

  1. Carried AGENTS.md correctly sends project-specific conventions to a project's own topical doc.
  2. A repo names that doc after its most visible function, which is usually a post-merge one.
  3. A gate that CI structurally cannot perform ends up inside that doc.
  4. An agent routing by the description never opens it, and skips the gate while following every carried rule.

Nothing in the chain is a rule violation, which is why it produced no signal.

Why the existing carried rules do not catch it

GOVERNANCE.md "Verification Discipline" is the natural home and does not cover this. Its unifying property is "every failure below is green", and its bullets address gates that stop gating, filters that match less, and green checks that are not evidence. Every one assumes the agent already knows which gate to run. The failure here is upstream of all of them: the gate was never located, so there was no green to distrust.

The closest bullet, "Run the repo's whole lint gate before every push, not the parts that look relevant," is the right instinct at the wrong scope. It generalizes to lint tooling, not to a project-specific verification step that only a topical doc knows about.

What might need deciding

Stated as questions rather than a patch, since placement is the hub's:

  • Should a repo whose verification cannot be fully performed by CI be required to say so where an agent routing a task will see it, rather than only inside the doc that owns the procedure?
  • Is that an AGENTS.md routing obligation, a GOVERNANCE.md "Verification Discipline" rule about locating gates before running them, an audit check that a repo declaring such a gate surfaces it, or a spec field?
  • Should the carried guidance on naming a topical doc's contents say that a description by post-merge function is insufficient when the doc also holds a pre-merge gate?

There is a plausible argument that this needs nothing carried and is a per-repo documentation defect. If that is the conclusion, saying so explicitly is still useful, because the next agent will reason its way into the same classification.

Meanwhile, in Blog

The gate has now been run against the local mirror and passes, all 1,245 URLs honored. No fleet-facing change has been made there, and none will be until this is decided.

Activity

  1. ptr727 commented on Aug 7, 2026

    @ptr727
    OwnerAuthor

    Decided, and the answer is in #598.

    Where it belongs

    Not an AGENTS.md routing obligation. A per-repository prose description is exactly the thing that failed here, and requiring it to be better leaves the guarantee resting on how well each repository worded a pointer. Fixing the sentence in one repository also leaves the next one to reinvent the same shape. So the routing description is the symptom rather than the defect.

    A GOVERNANCE.md "Verification Discipline" rule, and a declared destination for it to point at. Neither half works alone. The rule alone tells an agent to go looking without saying where, and a destination alone is not read by anyone who does not already know to look. Together, finding the check stops depending on any repository's own wording.

    The rule leads the section, because your diagnosis of why the existing bullets miss it is right and is the reason for the placement. Every one of them assumes the gate is already known, so this one has to sit upstream of them.

    Locate every check a change owes before running any of them, and CI's coverage is not that list. The checks are read from what the repository declares, meaning its OPERATIONS.md "Local Verification" section alongside the workflows, rather than inferred from whatever the pipeline happens to run. Part of a repository's contract is routinely unreachable from a runner, a redirect no build serves, a deploy no pull request performs, hardware no runner holds, so the check covering that part lives in a document rather than in a workflow and is run by hand before the pull request opens. Green is then the precise signal that it was skipped, because the pipeline reports success over the half it reaches while saying nothing about the half it cannot. Reading a document's own description of itself is not how such a check is found, since a topical document is named for its most visible function, usually a post-merge one, and an accurate description of that function routes a pre-merge task away from the file holding the gate. The destination is declared fleet-wide for that reason, so finding the check never depends on how well one repository worded a pointer.

    And a spec change: Local Verification becomes a sixth declared OPERATIONS.md heading, leading the file as the only pre-merge one. spec/section-model.md states the test a destination has to meet, that its content class recurs across repositories. This one does, because a runner reaches a build and not a redirect, a deploy, or a device, so every repository has some part of its contract only a local run or a human covers. The heading is required on the same footing as the file, and a repository whose gates are entirely in CI says that under it, since a stated nothing beyond CI is an answer a reader can act on where an absent heading is one they have to guess at.

    Explicitly not a per-repository documentation defect. You named that as the plausible alternative and asked for it to be said either way. It is not, because the routing description was accurate and the reasoning that followed from it was sound, and a class of failure that survives everyone doing their job correctly is a missing rule rather than a local mistake.

    Two things in Blog, reported rather than acted on

    Both are that repository's to fix, and no write was made there.

    OPERATIONS.md carries none of the five declared headings. It uses twelve of its own, and the gate sits under one of them. This is the mechanism underneath the miss, and it matters more than the routing sentence: under the declared shape the gate would have been under Runbooks, and under the new shape it is under Local Verification, which is where an agent verifying a change now looks by rule.

    The accurate description was already in the file, one paragraph away. The map sentence in paragraph 2 names the doc by deploy, rollback, and server procedures, while paragraph 3 of the same file already says the doc covers how the site is run and verified. The incomplete one won because it is the one an agent building a task map reads. That is worth recording, because it shows the failure is structural rather than an authoring oversight.

    The gap #598 leaves, stated rather than hidden

    The audit will not catch a repository that ignores the heading, because OPERATIONS.md is presence-checked only. That is why the full audit of Blog on 2026-08-05 reported nothing about a file using none of the declared headings. The heading check is #523's cluster, and until it ships the sweep is verified by reading each file rather than by a run. TODO.md records that, and indexes this issue under "Fleet Sweeps" rather than as complete, since every repository still owes the heading.

    Nothing is asked of Blog until #598 merges and the re-vendor visit reaches it.

  2. ptr727 commented on Aug 21, 2026

    @ptr727
    OwnerAuthor

    Closing as completed by #598 (a75a6f9). The hub now requires agents to locate every change’s checks in OPERATIONS.md "Local Verification", declares that heading as the leading pre-merge destination in spec/section-model.md and STANDUP.md, and carries the worked example in this repository’s OPERATIONS.md.

    Downstream adoption is conformance drift, not unfinished issue work. It should be surfaced and worked from the audit rather than keeping this issue open as a rollout tracker. The audit’s current inability to enforce the topical heading/destination remains tracked by #523.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions