Skip to content

feat: impact command and MCP tool that walk from a requirement to its SVCs, tests and results #492

Open

Description

@jimisola

Problem description

When a requirement, an SVC or the source behind them is about to change, nothing lists what has to be verified again. Today that means reading requirements.yml, software_verification_cases.yml, annotations.yml, the MVRs and the test results by hand, or post-processing the JSON export. The MCP tools return one requirement or SVC at a time and do not walk from one to the next.

Desired solution

An impact command and a matching MCP tool that walk the traceability chain from a starting point:

  • Start from a requirement, an SVC or, once references can point outside reqstool, an external reference.
  • Walk requirement → SVCs → implementation annotations → test annotations with their latest results → MVRs. Also include requirements that reference the starting requirement.
  • Show the current verdict of each requirement. It must come from the same per-requirement computation as status, not a re-implementation.
  • Output a console tree and --format json.
$ reqstool impact REQ_PRIV_001 local -p docs/reqstool
REQ_PRIV_001  Personal data is erased on request          met
├── SVC_PRIV_001  automated-test
│   ├── impl  com.example.privacy.ErasureService.erase
│   └── test  com.example.privacy.ErasureServiceTest.erasesAllRecords   passed
└── SVC_PRIV_002  manual-test
    └── MVR_PRIV_002  passed
referenced by: REQ_PRIV_003

Alternatives considered

  • Post-process reqstool export: possible, but every user writes the same walk, and gets the verdict rules wrong in their own way.
  • Only the per-ID MCP tools: an agent can chain them, at many calls and much context per question.

Additional context

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