Skip to content
BIGDUST0Public

About

AI-assisted requirements engineering and verification based on ECSS standards

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VerifAI

AI-assisted review of technical requirements against ECSS-E-ST-10-06C

Status: V1 in development TypeScript Next.js Claude API Vitest

Requirements Reviewer is a local application for engineers who write and verify technical requirements in English. The V1 design pairs an ECSS checklist with AI feedback so engineers can improve their requirements and choose verification methods before consolidating them for testing. V1 is In development. The page currently offers the Excel template download.

The problem

A vague requirement leaves design and test teams to decide what it means. Discovering an ambiguous phrase, a missing limit or an unsuitable verification method during testing can mean reworking both the requirement and the test. Checking each requirement by hand against ECSS guidance is slow, and the same criteria are hard to apply consistently as the workbook changes.

What it does

The diagram shows the intended progression from a draft workbook to consolidated requirements and test documentation.

flowchart LR
    Review["V1 · Requirements review"] --> Trace["V1.1 · Customer traceability"]
    Trace --> Testing["V2 · Test cases and procedures"]
    Review --> Local["V1.2 · Local model for review"]
Loading
Version State Takes Returns
V1 In development An Excel workbook of English technical requirements, with verification methods where declared An ECSS-E-ST-10-06C checklist review with a percentage score and RED, YELLOW or GREEN status, suggested rewrites for red and yellow requirements, and a check of the verification method with a suggestion where needed
V1.1 Designed The engineer’s workbook with Traceability entries and a customer requirements file in PDF or Excel Coverage findings and a two-column matrix linking customer requirements to engineer requirements, with uncovered customer requirements flagged
V1.2 Planned The same Excel workbook as V1 V1 review results, with the AI model running on the engineer’s computer
V2 Planned Consolidated requirements, already improved with AI feedback from the earlier phases, and optionally an image of the system’s functional architecture for context A document of test cases and test procedures structured according to ECSS-E-ST-10-03C Rev.1

Example

This illustrative example follows one requirement across the proposed lifecycle.

Customer requirement CUS-012

The instrument shall provide housekeeping telemetry to the ground segment.

Engineer requirement SW-042 with declared method I (inspection) and Traceability CUS-012.

The software should send the housekeeping data in a quick way and store it as far as possible.

Review in V1 (In development)

Check Result Finding
C1 FAIL No "shall"
C2 FAIL Forbidden terms: quick, as far as possible
C3 PASS
A1 FAIL No measurable value for timeliness
A2 FAIL "quick way" and "as far as possible" are ambiguous
A3 FAIL Combines two requirements: send and store
A4 PASS
A5 FAIL Not verifiable as written
A6 N/A No parameter stated
A7 PASS
A8 FAIL Inspection cannot verify a behaviour over time
S1 PASS

The score is 36% and the status is RED. Four of the eleven applicable checks pass.

A3 fails, so the rewrite splits transmission and storage into separate requirements.

  • SW-042.1 — The software shall transmit each housekeeping telemetry packet to the ground segment within [TBD: maximum latency] of its generation.
  • SW-042.2 — The software shall store each housekeeping telemetry packet in the on-board mass memory.

The [TBD: …] placeholder marks a value for the engineer to supply. The AI never invents a missing value. The suggested verification method is T (test), since latency and storage are observable behaviours that a test can measure.

Customer traceability in V1.1 (Designed)

Customer requirement Engineer requirements
CUS-012 SW-042.1, SW-042.2
CUS-013 not covered

Test case preview for SW-042.1 in V2 (Planned)

V2 has yet to be designed. The example illustrates what a test case could contain.

Part Description
Objective Verify timely transmission of housekeeping telemetry packets to the ground segment.
Preconditions The engineer has resolved the maximum latency and prepared a setup that can generate packets and measure when they are transmitted.
Steps Generate housekeeping telemetry packets. Record the generation time and the transmission time to the ground segment for each packet.
Pass criteria Each generated packet is transmitted to the ground segment within the specified maximum latency.

How the review works

This is the design for V1, which is In development. The review modules exist as libraries. The current page exposes the template download.

flowchart TD
    Workbook["Completed Excel template"] --> Validate{"Validate workbook"}
    Validate -->|Invalid| Errors["Report validation errors"]
    Validate -->|Valid| Code["Code checks C1–C3"]
    Code --> Lookup{"Look up AI verdict in memory"}
    Lookup -->|Match| Score["Calculate score and status"]
    Lookup -->|No match| AI["AI checks A1–A8 and S1 in batches of 10"]
    AI -->|Valid verdict| Store["Store verdict in memory"]
    Store --> Score
    AI -->|No valid verdict| Unevaluated["NOT EVALUATED"]
    Score --> Outputs["Results table and annotated Excel"]
    Unevaluated --> Outputs
Loading

The verdict memory reuses a valid AI verdict when the requirement text, declared verification methods, checklist version, requested model and prompt version match. Validation errors are reported before any AI request. If no valid AI verdict is available for a requirement, the results retain C1–C3 and show NOT EVALUATED without a score.

The checklist

The review records a result for each check and explains failures.

Check definitions, clauses and scoring
Check Clause What it checks
C1 10-06C 8.3.2a Uses "shall" at least once
C2 10-06C 8.3.3 Contains no forbidden terms
C3 10-06C 8.2.9a Declares a verification method
A1 10-06C 8.2.1a Expresses performance in quantifiable terms
A2 10-06C 8.2.4 Is unambiguous
A3 10-06C 8.2.7 States a single requirement
A4 10-06C 8.2.8 Is self-contained
A5 10-06C 8.2.9a Can be verified
A6 10-06C 8.2.10 Gives a tolerance for each parameter
A7 10-06C 8.3.1 States what is required in a complete, positive sentence
A8 ECSS-E-ST-10-02C Uses appropriate declared verification methods
S1 Project rule Contains no spelling errors

Score (%) = 100 × PASS / (PASS + FAIL), rounded to the nearest integer with halves rounded up. Results marked N/A are excluded from the calculation.

  • RED — below 60, or whenever S1 fails.
  • YELLOW — 60 to 84 when S1 passes.
  • GREEN — 85 and above when S1 passes.
  • NOT EVALUATED — no valid AI result, so no score.

Design principles

  • Application code computes the score from check results using a fixed rule.
  • The review shows an explicit status for every requirement, including any requirement the AI could not assess.
  • Checks cite their defined ECSS clauses. The spelling check is identified as a project rule.
  • The web server listens only on 127.0.0.1.
  • AI responses are untrusted data. The review validates their structure and check results before using them.
  • reviewRequirements is the single interface to the model provider.

Architecture

The solid link from src/app to src/template shows the current download path. Dashed links show the designed integration of the review libraries into the application.

flowchart TD
    App["src/app · Page and routes"]
    Template["src/template · Workbook generation and validation"]
    Checks["src/checks · Checks and scoring"]
    Review["src/review · reviewRequirements"]
    Claude["Claude API"]
    Fake["Fake AI · Test responses"]
    App -->|Template download| Template
    App -.->|Review integration| Checks
    App -.->|Model calls| Review
    Review -->|Default| Claude
    Review -->|REVIEWER_FAKE_AI=1| Fake
Loading

The workbook definition is shared by the generator and validator. src/review contains the prompt, response validation, verdict memory and model interface. Automated review tests use fake responses through REVIEWER_FAKE_AI=1 or test doubles.

Roadmap

Version State Scope
V1 In development Technical requirements review and annotated Excel results. The template is available now.
V1.1 Designed Traceability and coverage against customer requirements.
V1.2 Planned Local AI model behind the review interface.
V2 Planned Generation of test cases and test procedures from consolidated requirements.

How it was built

Spec-driven, reviewed, ECSS-documented workflow built by Davide Finco, while the code is built by AI agents following the workflow.

flowchart LR
    Human["Engineer · Approves designs and user-visible decisions"]
    Claude["Claude · Design, tasks and review"]
    Codex["Codex · Code, tests and report"]
    Human <--> Claude
    Claude <--> Codex
Loading

Claude defines a task from the approved design. Codex implements and verifies it, then reports the evidence. Claude reruns the checks and reviews the change before approving the task.

Specifications, reviews and ECSS documents
Document What it records
Design specifications The design, scope and rationale for each version or change
Tasks Implementation scope, acceptance criteria and verification commands
Implementation reports What changed and the evidence from verification
Reviews Independent verification, findings and the approval decision
TS Technical requirements for the application
DDF The design and architecture at the documented baseline
DJF Design trade-offs and the links between requirements, implementation and verification
TR Test results, anomalies and verification status
SUM Installation, operation and features available at the documented baseline

Getting started

Use Node.js 24 and npm 11, the versions used to verify the application.

Note

V1 is under development: today the application serves the requirements template; uploading and reviewing requirements are not available yet.

From the repository root, install the dependencies and start the application.

npm install
npm start

In PowerShell, use npm.cmd install and npm.cmd start. Startup builds the application and then serves it at http://127.0.0.1:3000. Open the page and select Download template.

The review, once available, calls the Claude API and needs ANTHROPIC_API_KEY in .env.local at the repository root. The template download works without a key.

Run the automated suite from the repository root with npm test or npm.cmd test in PowerShell.

Repository layout

Top-level directories
Directory Contents
src/ The page, template and review libraries
tests/ Automated tests and verification scripts
docs/ Specifications, tasks, reports, reviews and ECSS documents
ECSS-standard-docs/ ECSS reference documents
.claude/ Claude’s workflow instructions, skills and subagent definitions
.agents/ Codex’s workflow skills
.codex/ Codex’s subagent definitions

Acknowledgements

See Third-Party Notices for sources used in the agent workflow.

About

AI-assisted requirements engineering and verification based on ECSS standards

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages