Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
]
},
"demaconsulting.reqstream": {
"version": "1.10.0",
"version": "1.11.0",
"commands": [
"reqstream"
]
Expand Down
163 changes: 163 additions & 0 deletions docs/reqstream/quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
---
# Repository quality requirements
#
# These requirements express repository/process-level quality outcomes that are
# satisfied through the CI pipeline's use of off-the-shelf compliance and
# documentation tools. They are distinct from the ReviewMark product requirements
# in review-mark.yaml: each requirement here states WHAT quality outcome the
# repository needs (e.g. "changes are peer reviewed"), never HOW that outcome is
# currently achieved. The OTS tool that currently satisfies each outcome is
# recorded only as a `children` link, never in the requirement title or
# justification, so that satisfying the outcome by different or additional means
# in the future would not require rewriting the requirement itself.
sections:
- title: Repository Quality Requirements
requirements:
- id: ReviewMark-Quality-BuildIntegrity
title: >-
Every release shall carry a documented record of the CI build that
produced it, captured automatically from pipeline metadata.
justification: |
Regulated and quality-conscious consumers of ReviewMark require assurance that
each release artifact was produced by a specific, auditable build rather than
an ad-hoc or undocumented process. Capturing build provenance (workflow run
identity, commit, timestamp) automatically as part of the CI pipeline, rather
than relying on manual record-keeping, ensures the record is always present,
accurate, and resistant to after-the-fact tampering.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by the atomic child requirement's tests.
Comment thread
Malcolmnixon marked this conversation as resolved.
Resolved
tags: [quality]
children:
- BuildMark-Core-GenerateBuildNotes

- id: ReviewMark-Quality-TraceableVersions
title: >-
Every release shall have version information traceable to its source
commit and build.
justification: |
Consumers and auditors need to know exactly which tool and dependency
versions produced a given release artifact, to reproduce builds, diagnose
defects, and confirm license and security compliance. Capturing version
information automatically as part of the release pipeline prevents version
drift and the manual record-keeping errors that would otherwise undermine
traceability.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-VersionMark-Capture
- ReviewMark-OTS-VersionMark-Report

- id: ReviewMark-Quality-StaticAnalysis
title: >-
Code shall be automatically scanned for defects, vulnerabilities, and
quality regressions before merge.
justification: |
Manual code review alone cannot reliably catch every security vulnerability,
code smell, or quality regression introduced by a change. Automated static
analysis on every pull request, with results captured as auditable reports,
provides continuous, objective quality and security assurance that scales
with the size of the codebase and does not depend solely on reviewer
attentiveness.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-SarifMark
- ReviewMark-OTS-SonarMark

- id: ReviewMark-Quality-PeerReview
title: >-
Every change shall receive documented, enforced peer review evidence
before merge.
justification: |
Peer review is a core defense against defects and unintended behavior
reaching production, but review activity that is not tracked cannot be
audited or enforced. Generating a review plan identifying the reviews
required for a change, and a review report documenting the reviews actually
completed, provides objective, auditable evidence that the review process
was followed, supporting compliance and quality assurance activities.
Because this repository builds ReviewMark itself, an earlier released
version of the tool is used in CI to scan, plan, report, and enforce
review coverage for the repository's own source (a project cannot treat
its own package as OTS).
Comment thread
Malcolmnixon marked this conversation as resolved.
Resolved
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-ReviewMark-Scan
- ReviewMark-OTS-ReviewMark-Enforce
- ReviewMark-OTS-ReviewMark-Plan
- ReviewMark-OTS-ReviewMark-Report

- id: ReviewMark-Quality-DocumentationGeneration
title: >-
Repository documentation shall be generated in reviewable and
distributable formats and validated before release.
justification: |
Design, verification, review, and user-guide documentation authored in
Markdown must be converted into distributable formats (HTML for review,
PDF for archival and distribution) as part of the release pipeline, and
each generated document must be validated to confirm it exists, is
well-formed, and contains the expected content, so that a broken
conversion step cannot silently ship incomplete or corrupt compliance
documentation.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-Pandoc-ConvertMarkdown
- ReviewMark-OTS-WeasyPrint
- ReviewMark-OTS-FileAssert

- id: ReviewMark-Quality-TestInfrastructure
title: >-
The project's own developer test suite shall execute automatically
and report results in every CI run.
justification: |
Requirements traceability depends on evidence that tests actually executed
and passed; that evidence has no value unless the test framework reliably
discovers, runs, and reports every test method on every CI run, across all
supported platforms and .NET versions, without manual intervention.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-xUnit-Execute
- ReviewMark-OTS-xUnit-Report

- id: ReviewMark-Quality-RequirementsTraceability
title: >-
Every requirement shall be linked to passing tests and enforced as part
of the release pipeline.
justification: |
Requirements that are not linked to verifying tests, or whose tests are not
checked as part of the pipeline, provide no real assurance that the software
behaves as documented. Automatically enforcing requirements-to-test
traceability on every CI run ensures untested or orphaned requirements are
caught before release rather than discovered later.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by the atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-ReqStream

- id: ReviewMark-Quality-ArchitectureTraceability
title: >-
The project's software structure shall be modeled, validated, and
rendered independent of source code, so its architecture can be
queried and reviewed without reading implementation.
justification: |
Reviewers, auditors, and automated agents need to understand system
structure and responsibilities without reading through source code line by
line. Maintaining an explicit architecture model that is automatically
validated for structural correctness and rendered as diagrams embedded in
design documentation ensures the documented architecture remains
internally consistent and stays usable as a standalone reference.
This requirement is satisfied by its children: it is a non-requirement grouping
node, and verification evidence is carried by each atomic child requirement's tests.
tags: [quality]
children:
- ReviewMark-OTS-SysML2Tools-Lint
- ReviewMark-OTS-SysML2Tools-Render
- ReviewMark-OTS-SysML2Tools
26 changes: 26 additions & 0 deletions docs/reqstream/review-mark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sections:
In regulated environments, auditors require evidence that every file subject to review
is covered by at least one named review-set. The Review Plan document provides this
evidence automatically on each CI/CD run, replacing manual tracking spreadsheets.
tags: [system]
tests:
- ReviewMark_PlanFlag_WithDefinitionFile_GeneratesReviewPlan
children:
Expand All @@ -25,13 +26,15 @@ sections:
that the reviewed files have not changed since the review was conducted. The Review
Report provides this evidence automatically, showing Current, Stale, Missing, or
Failed status for each review-set.
tags: [system]
tests:
- ReviewMark_ReportFlag_WithDefinitionFile_GeneratesReviewReport
children:
- ReviewMark-Cmd-Report
- ReviewMark-Configuration-Fingerprinting
- ReviewMark-Configuration-ReportGeneration
- ReviewMark-Indexing-LoadEvidence
- ReviewMark-Indexing-CreateEvidence

- id: ReviewMark-System-Enforce
title: The tool shall return a non-zero exit code when enforcement is enabled and any review-set is not current.
Expand All @@ -42,6 +45,7 @@ sections:
review-set, or when the Review Report shows that any review-set has Stale, Missing, or
Failed status. This makes incomplete file coverage, out-of-date reviews, and failed
reviews all build-breaking conditions.
tags: [system]
tests:
- ReviewMark_EnforceFlag_WithNoEvidence_ReturnsNonZero
children:
Expand All @@ -57,6 +61,7 @@ sections:
intervention. Reading credentials from environment variables (username-env and
password-env) avoids storing secrets in the configuration file and integrates
cleanly with CI/CD secret management.
tags: [system]
tests:
- ReviewMark_LintFlag_WithValidConfig_ProducesNoOutput
- ReviewMarkConfiguration_Parse_EvidenceSourceWithCredentials_ParsedCorrectly
Expand All @@ -70,6 +75,7 @@ sections:
Keywords field. The --index command scans a directory of such PDFs and writes an
index.json, enabling the evidence store to be refreshed after new review PDFs are added
without manual maintenance of the index file.
tags: [system]
tests:
- ReviewMark_IndexFlag_OnEmptyDirectory_CreatesIndexJson
children:
Expand All @@ -88,6 +94,7 @@ sections:
repeated --index flags allows users to aggregate evidence from all relevant
locations into a single index.json without requiring separate tool invocations
or manual merging.
tags: [system]
tests:
- ReviewMark_IndexFlag_WithRepeat_ScansAllPaths
children:
Expand All @@ -100,6 +107,7 @@ sections:
Regulated environments require tool qualification evidence to demonstrate that the tool
functions correctly in its specific deployment environment. The --validate flag triggers
a built-in test suite that exercises core tool behaviors and produces a pass/fail report.
tags: [system]
tests:
- ReviewMark_ValidateFlag_Invoked_RunsValidation
children:
Expand All @@ -113,16 +121,19 @@ sections:
justification: |
Users need to quickly identify the version of the tool they are using for
troubleshooting and compatibility verification.
tags: [system]
tests:
- ReviewMark_VersionFlag_Invoked_OutputsVersion
children:
- ReviewMark-Cmd-Version
- ReviewMark-Program-Dispatch
- ReviewMark-Program-ExecuteOperation

- id: ReviewMark-System-Help
title: The tool shall display usage information when the --help flag is provided.
justification: |
Users need access to command-line usage documentation without requiring external resources.
tags: [system]
tests:
- ReviewMark_HelpFlag_Invoked_OutputsUsageInformation
children:
Expand All @@ -133,6 +144,7 @@ sections:
justification: |
Allows users to target an evidence store or project directory without changing
the process working directory, enabling consistent scripting and CI/CD usage.
tags: [system]
tests:
- ReviewMark_DirFlag_Invoked_OverridesWorkingDirectory
children:
Expand All @@ -143,6 +155,7 @@ sections:
justification: |
When preparing for a review, the reviewer needs the review set ID, its title,
its current fingerprint, and the full sorted list of files to be reviewed.
tags: [system]
tests:
- ReviewMark_ElaborateFlag_WithValidId_OutputsElaboration
children:
Expand All @@ -156,6 +169,7 @@ sections:
Users need a way to verify that the .reviewmark.yaml configuration file is valid
before running the main tool. Reporting only the issue messages (not a banner or
summary) keeps the output suitable for direct use in linting scripts and CI pipelines.
tags: [system]
tests:
- ReviewMark_LintFlag_WithValidConfig_ProducesNoOutput
- ReviewMark_LintFlag_WithInvalidConfig_ReportsOnlyIssueMessages
Expand All @@ -169,17 +183,20 @@ sections:
Suppressing all output on successful lint (silence-on-success) allows the exit code
alone to signal whether the file is valid. This follows the Unix convention and
improves integration with linting scripts and CI pipelines.
tags: [system]
tests:
- ReviewMark_LintFlag_WithValidConfig_ProducesNoOutput
children:
- ReviewMark-Cmd-Lint
- ReviewMark-Program-LintVerbosity
- ReviewMark-Cmd-LintSilence

- id: ReviewMark-System-Silent
title: The tool shall support --silent flag to suppress console output.
justification: |
Enables automated scripts and CI/CD pipelines to run the tool without cluttering
output logs when only the exit code is needed.
tags: [system]
tests:
- ReviewMark_SilentFlag_Invoked_SuppressesOutput
children:
Expand All @@ -190,6 +207,7 @@ sections:
justification: |
Provides persistent logging for debugging and audit trails when running in CI/CD
environments where console output may not be captured.
tags: [system]
tests:
- ReviewMark_LogFlag_Invoked_WritesOutputToFile
children:
Expand All @@ -202,6 +220,7 @@ sections:
justification: |
Allows users to set the heading depth once and have it apply to the review plan,
review report, and self-validation report. Default depth is 1 when not specified.
tags: [system]
tests:
- ReviewMark_DepthFlag_Invoked_SetsDefaultHeadingDepth
- ReviewMark_DepthFlag_WithValidate_SetsValidationHeadingDepth
Expand All @@ -216,6 +235,7 @@ sections:
Allows the review plan to be embedded at any heading level within a larger Markdown
document, overriding the --depth default when specified. Default depth is 1 when
neither --plan-depth nor --depth is specified.
tags: [system]
tests:
- ReviewMark_DepthFlag_Invoked_SetsDefaultHeadingDepth
- ReviewMark_PlanDepthFlag_Invoked_OverridesPlanHeadingOnly
Expand All @@ -230,6 +250,7 @@ sections:
Allows the review report to be embedded at any heading level within a larger Markdown
document, overriding the --depth default when specified. Default depth is 1 when
neither --report-depth nor --depth is specified.
tags: [system]
tests:
- ReviewMark_DepthFlag_Invoked_SetsDefaultHeadingDepth
- ReviewMark_ReportDepthFlag_Invoked_OverridesReportHeadingOnly
Expand All @@ -241,6 +262,7 @@ sections:
justification: |
Providing clear feedback for invalid arguments helps users quickly correct mistakes
and prevents silent misconfiguration in automated environments.
tags: [system]
tests:
- ReviewMark_UnknownArgument_Provided_ReturnsNonZeroAndError
children:
Expand All @@ -255,6 +277,7 @@ sections:
justification: |
Enables integration with CI/CD systems and requirements traceability tools that
expect standard TRX or JUnit XML test result formats.
tags: [system]
tests:
- ReviewMark_ValidateFlag_WithTrxResultsPath_GeneratesTrxFile
- ReviewMark_ValidateFlag_WithXmlResultsPath_GeneratesJUnitFile
Expand All @@ -270,6 +293,7 @@ sections:
for example when targeting a different project directory or using a non-standard file name.
The --definition flag enables ReviewMark to be used with multiple configurations in the
same repository or CI/CD pipeline.
tags: [system]
tests:
- ReviewMark_PlanFlag_WithDefinitionFile_GeneratesReviewPlan
children:
Expand All @@ -283,6 +307,7 @@ sections:
runtimes so that teams can use ReviewMark regardless of their development or CI/CD
platform. Supporting .NET 8 (LTS), 9, and 10 ensures long-term compatibility and
access to the latest runtime features.
tags: [system]
tests:
- ReviewMark_VersionFlag_Invoked_OutputsVersion
children:
Expand All @@ -301,6 +326,7 @@ sections:
derived from the command-line arguments, and all output channels and exit-code
state must be managed consistently for the full duration of an invocation. This
ensures predictable, auditable behavior in both interactive and CI/CD environments.
tags: [system]
tests:
- ReviewMark_VersionFlag_Invoked_OutputsVersion
- ReviewMark_UnknownArgument_Provided_ReturnsNonZeroAndError
Expand Down
Loading
Loading