Skip to content

docs(adr): ADR 0003's corpus rule does not scope the sweep to a hook's actual deployment surface #1438

Closed

Description

@kyle-sexton

Observation

ADR 0003 (merged in #1357) requires a guard to measure firing rate and precision "on the real corpus, at real scale" before shipping default-on. It never says whose corpus.

For a PostToolUse guard shipped inside a plugin, that omission matters. The guard does not execute here — it executes in arbitrary consuming repositories, whose document, path, and command distributions can differ substantially from this marketplace's. A sweep across this repo's 975 tracked markdown files establishes precision for this repo. A guard can clear that bar here and then over-fire for every consumer.

The evidence the ADR itself cites illustrates the gap: asserted-path-verify's dominant failure class was consumer-project config paths (.claude/**) that a doc describes for a consuming repo and that a marketplace correctly lacks. That is precisely a deployment-scope mismatch, and the rule as written would not have caught it in the general case.

Direction (no open decision)

Amend decision rule 1 so the corpus requirement names the guard's deployment scope rather than the authoring repo. Two readings satisfy it and the ADR should say which:

  • A guard whose matcher explicitly confines it to this marketplace may measure here.
  • A guard that ships default-on into consumer projects measures against corpora representative of that deployment scope — and states which corpora, since a single-repo sweep is not evidence about them.

Acceptance

  • Rule 1 distinguishes "the authoring repo's corpus" from "the guard's deployment surface"
  • The asserted-path-verify consumer-config finding is cited as the motivating case
  • No restatement of docs/conventions/hook-precision/README.md

Related

Raised as review feedback on #1364 (closed as superseded by #1357). Refs #1352, #1270, #1314, #1319.

Activity

  1. added
    needs-triage
    on Jul 26, 2026
  2. added
    needs-human
    needs-owner-decision
    and removed
    needs-triage
    on Jul 26, 2026
  3. kyle-sexton commented on Jul 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Classification: needs-decision, human-gated. This is an ADR-scope interpretation question (does ADR 0003's "real corpus, at real scale" requirement mean the plugin author's own corpus, or every consuming repository's?) — a normative-policy-document question, not a code defect. Routing to a human/maintainer judgment call rather than resolving it inline.

  4. added a commit that references this issue on Aug 12, 2026
    c8aa3ba
  5. added a commit that references this issue on Aug 12, 2026
    92bab2f
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

    needs-humanneeds-owner-decision

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions