Skip to content

docs: document the Errored conformance outcome, and gate the examples on it #258

Closed

Description

@thomasfosterau

Problem

The fix for #246 adds a fourth Conformance.Outcome, Errored: a rule that dies (a defect, not a finding) is now reported as that rule's outcome instead of failing the whole verify / verifyWith run. Two places that the #246 PR deliberately does not touch, because they belong to the concurrent work on #148, still assume the run dies on a defect:

  • docs/conformance.md describes the outcomes as Passed / Failed / Skipped and says nothing about Errored, the DIED mark in format, the errored count in summarise, or that assert dies on an Errored outcome.
  • examples/{blog,github,northwind}/test/conformance.test.ts gate on outcome._tag === "Failed" and never call Conformance.assert. Before bug: a conformance rule that dies loses the whole Report, including the writes ledger #246 a defect in any rule failed the whole run, so these tests went red; now the run returns a report, and an Errored rule outside the write-rule list (which is checked for Passed) would not fail them.

Proposal

  • Add a line to docs/conformance.md (next to the Skipped / applicability-gating text) describing Errored: what it means, how format prints it, that summarise counts it as errored, that assert dies on it, and that interruption still stops the run.
  • In each example's conformance test, assert that no outcome is Errored (for example expect(Conformance.summarise(report).errored).toBe(0), printing Conformance.format(report) when it is not), so a defect in a rule still fails the example's suite.

Done when


Generated by Claude Code

Activity

  1. added
    documentation
    on Oct 8, 2026
  2. added a commit that references this issue on Oct 8, 2026
    ff44b7f
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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions