← Back to Pull requests

design/testplan: add index, shared preconditions, and compact format #142

Open
unknown opened this pull request with 385 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 12, 2026 15:02 UTC
Author

Summary

Test plans generated from the design workflow's draft.md template are too long for effective human review. The bootc-delta-updates plan (EDM-4867) runs to 2,238 lines / 106 test cases. The primary bloat comes from every test case repeating full Preconditions/Steps/Expected Results subsections even when many cases under the same requirement share identical setup.

This PR restructures the testplan template to serve both audiences — comprehensive for AI verification, scannable for human review — without losing any information.

Changes

1. Test Case Index (new section in 9b template)


A ## Test Case Index section between Overview and Test Cases provides a one-screen markdown table (ID, Scenario, IC, Priority) so reviewers can assess coverage at a glance.

2. Shared Preconditions (9a rules + 9b template)


##### Shared Preconditions under each ### FR-N / ### NFR-N heading. Individual test cases list only ##### Additional Preconditions (delta from shared). This is the biggest size reduction — eliminates the repeated "device enrolled, writable registry configured" blocks.

3. Compact inline format (9a rules + 9b template)


Cases with ≤ 2 steps and a single expected result can use inline Steps: / Expected: format instead of full subsections.

4. Parameterized assertion tables (9a rules)


When multiple cases share identical preconditions AND steps but differ only in a parameter value, they can merge into a single TC with a variation table.

5. Updated self-review checklist (9c)


Four new checklist items validate correct use of the new format (shared preconditions present, compact format used correctly, parameterized cases used where appropriate, index complete).

Version bump


0.11.5 → 0.12.0 (MINOR — behavioral template change per AGENTS.md versioning rules).

Expected impact


Estimated ~60-70% reduction in testplan line count (e.g. the 2,238-line bootc plan would drop to ~800-900 lines) while keeping full traceability for AI implementation verification.

---
AI-generated. Review for accuracy.

@adalton requested from Slack

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary

  • Affected package: design. Its version changes from 0.11.5 to 0.12.0.

  • Test-plan guidance: design/skills/draft.md adds a Test Case Index and shared preconditions under requirement headings. Cases can list additional preconditions. Eligible cases can use compact inline steps and expected results, or parameterized tables when they share preconditions and steps.

  • Verification guidance: Expected results must assert outcomes observable through public interfaces. The self-review checklist covers observability, required test-plan formats, index consistency, and counting parameterized rows in totals.

  • Shared resources and conventions: The changed-file list contains only design/SKILL.md and design/skills/draft.md. No _shared/ files or cross-package conventions changed.

  • <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 385 lines (+288 / -97) across 4 files Reviewer: redhat-chai-bot Review duration: 1611m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 385 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.356
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #142"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43% (MEDIUM) · Higher = larger blast radius
    43%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.9% · Safe to merge
    22.9%