Skip to content

AGENTS.md: a PASS must list the command it ran #690

Closed

Description

@Birfy

Summary

review-gate.mjs refuses a PASS that lists no command it ran (parseReport → ran: [] → decide() returns ok:false — "PASS lists no command it ran"), and merge-gate.mjs reuses the same decide() on the queue entry. The rule exists only in the script's comments and in docs/autonomous-dev.md; AGENTS.md — the file the routines actually read — never states it, so eight PASSes were written in a shape the gate cannot read (among them the PASS at #681/4af18994 and the one on #574).

What the rule is

  • A Verdict: PASS comment must carry Ran: <command> on its own line, or a Ran …: heading followed by a $ command block, plus a Not run: line saying what was not executed. A PASS that ran nothing is not evidence.
  • When a PASS is unreadable for having no Ran: line, the same tip may get one replacement PASS: it keeps the original conclusion, adds the commands actually run, and carries Replaces: the PASS at <sha> merge-gate rejected for having no Ran: line. That is a correction, not a second conclusion — the "one conclusion per tip" rule still holds everywhere else.

Acceptance

  • AGENTS.md, Gates section: both sentences above are present — a PASS must list the command it ran (with the Ran: / Ran …: + $ block forms), and the one replacement PASS with Replaces: … is allowed when the gate cannot read one.
  • No code changes in the PR that closes this: review-gate.mjs already enforces it, and Replaces: is an ordinary line that parseReport ignores, so the parser needs no change.
  • The three tokens a reader can search for — Ran:, Not run:, Replaces: — each appear in the Gates section, and docs/autonomous-dev.md does not contradict them.
  • Tier: AGENTS.md → T3.

PR #688 (docs/pass-must-list-ran, tip 96e43838, AGENTS.md only) implements this; it pre-dates the issue because the rule was written before it was filed.

Activity

  1. added
    bug
    agent-working
    agent-pr
    area:automation
    on Oct 22, 2026
  2. Birfy commented on Oct 22, 2026

    @Birfy
    CollaboratorAuthor

    Implemented by PR #688 (docs/pass-must-list-ran, tip 96e43838, AGENTS.md only, +1 line). The PR pre-dates this issue because the rule was written before the issue existed.

    A Closes #690 line belongs in the PR body, which is the author's to edit; a comment on the PR carries the cross-reference until then.

    Tier: T3 (AGENTS.md). The PASS is on the tip; it needs a maintainer approve before the queue.

  3. Birfy commented on Oct 22, 2026

    @Birfy
    CollaboratorAuthor

    Closing as completed: AGENTS.md now carries both sentences — a PASS must list the command it ran (Ran: / Ran …: plus Not run:), and one replacement PASS with Replaces: the PASS at <sha> merge-gate rejected for having no Ran: line is allowed when the gate cannot read one.

    Landed in PR #688 (96e43838, merged 2026-10-22; main reached d9f9db07 with it). The PR body has no closing keyword, so it never auto-closed this issue — the cross-reference is in the PR's comments.

    Labels removed with the close: nothing was left but agent-working/agent-pr from the claim.

  4. removed
    agent-working
    agent-pr
    on Oct 22, 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

    area:automationbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions