Skip to content

Treat an exact error-message assertion as a change detector unless someone reads the message #15838

Closed

Description

@kyle-sexton

Parent

Refs #15661 (the map decision this implements).

Depends on

  • none: on the frontier now

Outcome

/testing:test-value says that asserting an exact error message is a change detector unless someone reads that message, so tests pin the error type callers branch on and not wording nobody consumes.

Demo: ask /testing:test-value whether a test asserting an exact exception message is worth keeping; it answers that the type is the contract unless a caller or user reads the message, and names the exemption for when one does.

Source: Lauren Tan's pstack (cursor/plugins, MIT), pstack/skills/principle-test-behavior-not-implementation/SKILL.md:18: "An exact error message pins wording that no caller reads. The error type that callers branch on is the contract."

Decisions

  • Owner, 2026-11-12: a take must land in its proper home. The home is /testing:test-value, in its judgment-only list: this is a change detector, not a weak oracle, so it does not belong on the weak-oracle row.
  • No audit rule: a deterministic scan cannot tell which messages callers read.
  • When a message is user-facing text or a published error string it is a contract, kept with the existing cant-fail-ok reason. No new setting.
  • Not in /tdd:principles, which is distilled from two named books.

Key interfaces

None.

Done when

  • The judgment-only list carries the rule and its exemption.
  • The three places that today assert an exact message as a good example (the paired-presence example in the skill, the audit's pytest "good" fixture, and the pytest adapter's comment on message matching) either say the message there is the contract or assert the error type; the audit's corpus test stays green.
  • The pull request says whether the skill has eval cases; if it does, one new case covers the rule on a two-version compare (opus and sonnet aliases, three runs per side, --case filter, a --max-cost-usd ceiling, no new batch after a usage-limit error), run in the one local eval-runner session.
  • The pull request body names this repository's dogfooding step.

Out of scope

  • A new audit rule or rule id.

Activity

  1. added
    agent-ready
    on Nov 13, 2026
  2. added theissue type on Nov 13, 2026
  3. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    No work-resolve-issue run started in the 1 hour since agent-ready was last added. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  4. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    No work-resolve-issue run started in the 1 hour since agent-ready was last added. work-unblock removed and added agent-ready back to start a fresh run on main's workflow files. If this run ends the same way, it re-fires the issue again, waiting longer each time.

  5. removed
    agent-ready
    on Nov 13, 2026
  6. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

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

    Understood: add a rule to the judgment-only list in /testing:test-value. An exact error-message assertion is a change detector unless a caller or user reads the message. The error type is the contract. User-facing or published error strings stay exempt under the existing cant-fail-ok reason. Three places that currently show an exact message as a good example need to change (the skill's paired-presence example, the audit's pytest fixture, and the pytest adapter comment). The PR also needs to say whether the skill has eval cases and name the dogfooding step.

    The scope is bounded and the owner decisions are already in the body, so nothing is missing. I found no duplicate in the open issues and no merged PR that already covers it. The local eval-runner step can't run in this unattended lane, so it is left for admission to route.

    Automated triage. A maintainer reviews it.

  7. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"3400baabaa59413f3017a16967733f5d21ebf4573fe35a667c39e115c39774a7","body_sha256":"1f5b3c58c26e949f94561f15022970b8f39b12279270c19aa69dc9cad51eb828"}

  8. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor
    No description provided.
  9. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    Pull request #15917 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  10. github-actions commented on Nov 13, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  11. melodic-automation-lanes commented on Nov 13, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: merged pull request #15917 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  12. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    Eval record for the done-when item "one new case covers the rule on a two-version compare".

    Registered before any run; launched by the owner in the local eval-runner session; every batch valid; no usage-limit stop; no rerun; Claude Code 2.1.325; 12 runs, 1.22 USD list price against a 5 USD ceiling.

    Model Grader Before After
    sonnet skill-fired 3 of 3 3 of 3
    sonnet type-is-contract 2 of 3 3 of 3
    sonnet meets-expectations 1 of 3 3 of 3
    opus skill-fired 3 of 3 3 of 3
    opus type-is-contract 3 of 3 3 of 3
    opus meets-expectations 2 of 3 3 of 3

    Verdict: met on both models. Outside the verdict: the rule changed the answer on sonnet (2 more passing runs after); on opus the before side already passed 2 of 3, so 3 runs do not show a change there.

    The rule and its three example sites landed in #15917 and the upstream record row in #16413; this compare was the last open item, so this issue is closed.

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

    Fields

    Work status

    confirmed

    Priority

    low

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions