reqdemo

a real corpus, four projects, one claim model

Requirements that keep their meaning
and their links.

The four examples of sphinx-needs-demo put through req: imported, canonicalized, linked to architecture, code and tests, and gated. The spec, the matrix and this site are compiled views; the obligations are the source.

135claims
220requirement relations
58design / code links
16test links
96structured

The four projects

Each page has its own graph and coverage; the counts are this corpus.

🧰

Basic Example

The feature showcase: directives, filtering, imported needs and external needs. None of it is an obligation, so this project deliberately contributes zero claims.

0 claims 0 structured 0 relations 0 test links
☕️

Coffee Machine

A small end-to-end chain: system requirements → software requirements → components → passing JUnit tests. The clearest example of the full V-model.

8 claims 7 structured 5 relations 7 test links
🚗

Automotive ADAS

The V-model at scale: stakeholder needs → SYS.2 → SWE.1 → architecture and code, with the upstream's SYS.5 qualification evidence. The prose was re-worded into obligations.

53 claims 48 structured 44 relations 9 test links
🛡️

ISO 26262 Functional Safety

HARA → safety goals → functional safety requirements → system requirements. The best-structured example and most of the corpus's relation edges.

74 claims 41 structured 171 relations 0 test links

The views

A claim is an obligation with a stable id and a content-addressed meaning. Everything else is a view over it.

What the gate says

UNVERIFIABLE no signed Baseline, and 121 claims have no linked test. The projections are current.

FAIL with both JUnit reports, nine ADAS claims are linked to three failing SYS.5 cases.

The policy is not “green at any cost”: “we could not tell” and “a test failed” are different answers.

How it is made

  1. Import the pinned export with --links --tests --areas: 362 needs in, 135 claims out, 8 named skips, 219 not selected by type.
  2. Author: 39 claims remain unstructured; the ADAS pass is done. Pins hold where a bound is load-bearing.
  3. Link: 220 claim relations, 58 req-satisfies links to architecture/components/code, 16 JUnit links.
  4. Gate: req check runs both variants, both projections and completeness; req gate --test-report judges the evidence.
  5. Render: the graph and this site are regenerated from the JSON views, never edited by hand.