Skip to content

feat: optional checks that SVC descriptions are testable #489

Open

Description

@jimisola

Problem description

validate checks references and coverage (every requirement has an SVC, manual SVCs have MVRs), but not whether an SVC's description can actually be tested. An SVC that says "the order is handled correctly" passes validation and gets linked to a test, even though no test can check it.

Desired solution

Optional, deterministic checks on SVC text in validate (warnings by default, errors with --strict):

  • The description of an automated SVC contains GIVEN, WHEN and THEN.
  • The THEN part names something a test can check: a value, a status or error code, a field name or a number.
  • Vague words are flagged, with a configurable list (for example "correctly", "as expected", "appropriate", "properly").

Keep the checks simple and predictable, so a warning always points at something the author can fix. Judging whether an outcome is meaningful is better left to a reviewer or an AI skill.

Alternatives considered

  • Leave text quality to review: works, but the same problems come back in every review.
  • An AI skill in reqstool-ai that reviews SVC text: complements these checks, and could also check that the linked tests actually assert the values the THEN part names.

Additional context

None.

Activity

  1. jimisola commented on Nov 20, 2026

    @jimisola
    MemberAuthor

    Two possible extensions:

    • Apply the same checks to requirement text, not only SVC descriptions. A requirement that says "the system shall respond quickly" cannot get a meaningful SVC either.
    • More rules from the INCOSE Guide for Writing Requirements, still deterministic:
      • escape clauses: "if possible", "where appropriate", "as far as practicable"
      • open-ended lists: "including but not limited to", "etc.", "and so on"
      • absolutes that cannot be verified: "always", "never", "100%", "all" without a bound
      • more than one statement: several "shall" in one requirement, or "and/or"
      • unmeasurable targets: "fast", "user-friendly", "minimal", "sufficient" without a number or unit

    Each could be its own rule ID, so a project can turn individual rules off in config.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions