Skip to content

Run the rules-index check in CI #15933

Closed

Description

@kyle-sexton

Parent

Refs #15663 (the map decision this implements; map #15651).

Depends on

  • none: on the frontier now

Outcome

A pull request that adds, removes or renames a file under .claude/rules/ without updating the rules table in AGENTS.md fails a CI check that says which row to add or remove. Today the check exists only as an opt-in local git hook, and the table has drifted twice.

Demo: on a branch, add a rule file without a table row; the hygiene check fails and names the missing row.

Source: the talk, slide 23, 1:10:19: "every time we correct our agents, it turns into one of these deterministic checks".

Decisions

Key interfaces

  • The instruction-placement plugin's rules-index check script.
  • The repository's hygiene checks in the pull-request workflow and their aggregate result.

Done when

  • The rules-index check runs in CI on every pull request and its result is a row in the aggregate hygiene result.
  • Its failure message names the row to add, remove or change.
  • It passes on the default branch as it stands.
  • The AGENTS.md sentence about the table points at the check.
  • The pull request body names this repository's dogfooding step.

Out of scope

  • Changing the check's logic beyond what CI wiring and the message need.

Activity

  1. added
    agent-ready
    on Nov 13, 2026
  2. added theissue type on Nov 13, 2026
  3. removed
    agent-ready
    on Nov 13, 2026
  4. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: wire the existing instruction-placement rules-index check into the pull-request hygiene checks so it runs on every PR and feeds the aggregate hygiene result. Its failure message should name the row to add, remove or change. It must pass on main today. The AGENTS.md sentence about the table should point at the check. The PR body should name the dogfooding step.

    The outcome and done-when items are exact, so nothing is missing. I found no duplicate among open issues and no merged PR that already does this.

    Automated triage. A maintainer reviews it.

  5. added
    host-run
    on Nov 13, 2026
  6. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its body or a criterion names .claude/rules/, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  7. self-assigned this
    on Nov 13, 2026
  8. kyle-sexton commented on Nov 13, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  9. removed
    host-run
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Work status

confirmed

Priority

medium

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions