Skip to content

[Task]: techniques catalogue has no entry for fail-closed defaults over an unenumerable input space #673

Closed as not planned

Description

@sumithr

Problem

The loaded techniques catalogue has no entry for the design move that carried the most weight in #662, and the nearest entry points the wrong way.

The situation: the eval runner must abort on a quota or usage-limit failure and never write a degraded baseline — the #651 regression. The failures arrive from the Claude Code CLI as an exit code plus text, not as typed exceptions, and the exact wording used when a subscription hits its usage limit cannot be captured without exhausting the account. Any allowlist of "fatal phrases" written from documentation is a guess.

The move that solves it is to invert the default: enumerate only the failures that are demonstrably transient, and treat everything else — including every shape never seen — as fatal. The classifier then does not depend on having guessed right. A false stop costs one re-run; a false continue writes a wrong baseline nobody notices.

decision tables covers enumerating the rows and was cited for that. It says nothing about which way the unenumerated remainder should fall, which is the decision that actually protects the artifact.

error guessing is the closest catalogue entry and points the opposite way: it is senior-QA judgment about where defects appear. Here the whole design exists because that judgment is unavailable — the point is to be correct without guessing the vocabulary.

Expected outcome

A technique in knowledge/techniques.md for fail-closed defaults over an unenumerable input space. It should name:

  • when it applies: the input classes cannot be fully enumerated (an external tool's error text, a third-party webhook, a user-supplied format) and the two error directions have asymmetric cost;
  • the design rule: enumerate the cheap-to-be-wrong branch, default to the safe one;
  • how to test it: a row asserting an unrecognised input lands on the safe branch, distinct from the enumerated rows — otherwise the test suite only proves the allowlist matches itself;
  • the failure mode: an allowlist of "bad" values that fails open, so an unanticipated value is silently accepted.

The test that came out of this reads:

def test_an_unrecognised_failure_defaults_to_fatal_not_retryable():
    assert ce.classify_failure("☃ an emoji nobody planned for") == ce.FATAL

That assertion is the whole guarantee, and no catalogue entry told me to write it.

Context

Logged as a mandatory gap close-out from the /work-issue run on #662. Worth recording alongside it that real-capture fixtures for external-output matchers did its job in the same run: it is why the CLI's JSON envelope in the test fixtures is a real capture, with its camelCase modelUsage keys and canonicalModel field that no invented fixture would have contained.

Roadmap fields

Status: Backlog; Priority: P2; Size: S; Depends on: none.

Acceptance criteria

  • knowledge/techniques.md contains a technique for fail-closed defaults over an unenumerable input space.
  • The entry distinguishes this from decision tables and error guessing.
  • The examples include an unrecognised input landing on the safe branch.
  • Tests prove the technique is loadable and can be cited by the relevant skill/eval path.

Test plan

Add or update the catalogue-loader tests and a focused skill/eval fixture that expects the fail-closed technique to be selected for the #662 classifier scenario.

Non-goals

Activity

  1. added
    enhancement
    priority: later
    on Sep 10, 2026
  2. sumithr commented on Sep 29, 2026

    @sumithr
    OwnerAuthor

    Triaged under the review-miss policy (epic #753): this is a pattern miss (a careful reviewer applying the generic lens reaches it), category test-adequacy. Recorded on the review-miss ledger: #752 (comment)

    It is absorbed by the category issue #756, which strengthens the review lens for test-adequacy as a whole.

    Closing as not planned in favour of that record. Reopen if this turns out to be a class gap (sumo-qa steered the run wrong or had no move for the step).

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

    ai-taskenhancementpriority: laterqa-output-qualitytooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions