Skip to content

Make orphan-count message wording consistent regardless of count - #213

Merged
Malcolmnixon merged 1 commit into
mainfrom
fix/orphan-message-consistent-wording
Sep 2, 2026
Merged

Make orphan-count message wording consistent regardless of count#213
Malcolmnixon merged 1 commit into
mainfrom
fix/orphan-message-consistent-wording

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Summary

Agreed with the maintainer that varying the orphan-summary line's grammar
by count (requirements are orphaned for plural totals/counts vs.
1 of N requirements is orphaned for a singular orphan count) makes the
message inconsistent to match against programmatically. This drops the
is/are verb switch and the requirement/requirements noun switch, so the
message always reads:

X of Y requirements orphaned (not reachable from any requirement tagged: ...).

Changes

  • Program.cs: simplified ReportOrphans to emit the fixed wording
    regardless of OrphanIds.Count/TotalRequirements.
  • Updated ProgramTests.cs assertions, README.md, and
    .github/standards/reqstream-usage.md example output to match.

Validation

  • pwsh ./build.ps1 -> build succeeded, 1002 passed / 3 skipped (Unix-only) across net8/9/10.
  • pwsh ./fix.ps1 / pwsh ./lint.ps1 -> clean, no lint errors.

Previously the orphan summary line varied its verb and noun forms based
on count (e.g. 'requirements are orphaned' vs '1 of 382 requirements is
orphaned'), which made the message harder for tooling/agents to match
on a single consistent pattern. Drop the is/are verb and the
singular/plural requirement noun switch entirely, always producing
'X of Y requirements orphaned (...)'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 2, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are narrowly scoped to message wording and all known references in tests and docs were updated consistently.

Pull request overview

Standardizes the orphan-summary output line so it no longer switches grammar based on the orphan/total counts, improving stability for programmatic matching in ReqStream CLI output.

Changes:

  • Simplified ReportOrphans to always emit X of Y requirements orphaned ... (no is/are or requirement/requirements switching).
  • Updated test assertions to match the new fixed wording.
  • Updated documentation examples (README and usage standard) to match the new output.
File summaries
File Description
src/DemaConsulting.ReqStream/Program.cs Removes count-based grammar switching and emits a fixed orphan-summary line.
test/DemaConsulting.ReqStream.Tests/ProgramTests.cs Updates assertions to match the new orphan-summary wording.
README.md Updates example CLI output to the fixed orphan-summary message.
.github/standards/reqstream-usage.md Updates standards/example output to the fixed orphan-summary message.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Malcolmnixon
Malcolmnixon merged commit 4cd0808 into main Sep 2, 2026
16 checks passed
@Malcolmnixon
Malcolmnixon deleted the fix/orphan-message-consistent-wording branch September 2, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants