Skip to content

docs(rules): give each requirement an identifier and point scenarios at it - #227

Draft
rnetser wants to merge 1 commit into
RedHatQE:mainfrom
rnetser:feat/requirement-ids
Draft

rnetser wants to merge 1 commit into
RedHatQE:mainfrom
rnetser:feat/requirement-ids

Conversation

@rnetser

@rnetser rnetser commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Draft — depends on #221 → #222 → #225. A fork PR cannot target an unmerged branch, so this branch
carries their content plus the requirement-identifier change. Once those three merge, this rebases and
the diff shrinks to roughly 40 lines. Do not review the template/rule text here; review the identifier
rule and the Section III entry shape only.

What

Requirements in Section I.1 gain a local identifier, and every scenario in Section III points at one:

I.1
  - **[req-1]** VMs must migrate without network downtime exceeding the defined threshold
    during node maintenance.
  - **[req-2]** …

III
  - **[req-1]**
      - *Test Scenario:* [Tier 1] Verify a VM keeps serving traffic during node drain
      - *Priority:* P0
  - **[req-1]**
      - *Test Scenario:* [Tier 2] Verify a second scenario for the same requirement
      - *Priority:* P1

The identifier is local to the STP — [req-1], [req-2], … — not a Jira key. That is the point: the
Jira requirement behind it is recorded once, in Section I.1, instead of being repeated as a per-scenario
key that nobody can trace back.

What changes

  • Both templates: the I.1 requirement line carries **[req-N]** and the guidance says to use that
    identifier in Section III; the Section III entry becomes - **[req-N]** plus Test Scenario (tier
    inline) and Priority. The user story stays in I.1 beside its requirement, so Section III no longer
    repeats it.
  • Traceability rule (AGENTS.md, guide, .coderabbit.yaml, .pr_agent.toml): every requirement in
    I.1 carries an identifier, every scenario references one, and each requirement has at least one
    scenario. [Jira-ID] is retired from the entry shape and from the sanctioned-token list.

Why not a Jira key

A per-scenario Jira key invites a ticket per test, which is not what the plan needs; the requirement is
the unit the customer and the feature epic care about, and one requirement legitimately has several
scenarios at different tiers.

Follow-up

Once this lands, the three dependency PRs' bodies point here: #221, #222, #225. A quick follow-up may also
re-shape the guide's "Purpose of Each Part" table row for Section III, which still reads generically.

Notes

  • No feature STP is changed by this PR; it changes the template that future STPs are written from.
  • After the three dependency PRs merge, this rebases cleanly: the change touches the I.1 requirement
    line, the Section III entry shape and the traceability sentences, nothing else.

…at it

Requirements in an STP are numbered so scenarios, test steps and reviews can
cite them by name instead of by prose. Every doc that defines or consumes the
requirement structure now uses the same identifier scheme, so a scenario can
be traced back to the requirement it verifies.

Co-authored-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: rnetser <rnetser@redhat.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

Parsing errors: 1

Validation error: Too big: expected string to have <=250 characters at "tone_instructions"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant