Skip to content

Add Design Doc template#1384

Closed
anik120 wants to merge 1 commit intolightspeed-core:mainfrom
anik120:design-proposal-template
Closed

Add Design Doc template#1384
anik120 wants to merge 1 commit intolightspeed-core:mainfrom
anik120:design-proposal-template

Conversation

@anik120
Copy link
Contributor

@anik120 anik120 commented Mar 23, 2026

Description

Add Design Doc template.
Additionally, create folder for v0.6.0 design docs

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • None

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Documentation
    • Added a new design document template to standardize design documentation across the project. The template includes structured sections for problem statements, stakeholders, acceptance criteria, solution design, architecture guidance, benefits analysis, alternatives, non-goals, and key dependencies.

Additionally, create folder for v0.6.0 design docs

Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 23, 2026

Walkthrough

A new Markdown design document template is introduced at design-docs/design-template.md. The template provides a structured framework with sections for problem statements, stakeholders, acceptance criteria, solution design, benefits, alternatives, non-goals, and dependencies.

Changes

Cohort / File(s) Summary
Design Documentation Template
design-docs/design-template.md
Added new design template file with 102 lines of structured sections for documenting design proposals, including problem statement, stakeholders, acceptance criteria, solution design, benefits, alternatives, non-goals, and open questions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add Design Doc template' directly and clearly describes the main change: adding a new design document template file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
design-docs/design-template.md (1)

12-22: Consider using blockquotes instead of unlabeled code blocks for instructional text.

The template uses fenced code blocks without language specifications for instructional text. While this works, blockquotes (> prefix) would be more semantic for guidance text and would satisfy markdown linting rules.

📚 Example refactor for Problem Statement section
 ## Problem Statement 
 
-```
-Clearly and succinctly write the problem statement. What problem is this design proposing to
-solve and who is the intended audience / recipient of the benefit of the solution.
+> Clearly and succinctly write the problem statement. What problem is this design proposing to
+> solve and who is the intended audience / recipient of the benefit of the solution.
+>
+> Describe WHY we need this. Briefly describe the need for this proposed feature to be
+> built and work be done for it.
+>
+> This section focuses on the importance of an idea rather than on whether it is interesting. An
+> interesting idea is good, but not good enough. This method operates in terms of whether the
+> idea to be developed is sufficiently important.
 
-Describe WHY we need this. Briefly describe the need for this proposed feature to be
-built and work be done for it.
-
-This section focuses on the importance of an idea rather than on whether it is interesting. An
-interesting idea is good, but not good enough. This method operates in terms of whether the
-idea to be developed is sufficiently important.
-```

Apply the same pattern to the other instructional blocks throughout the template.

Also applies to: 27-34, 43-48, 55-64, 70-75, 81-85, 91-93, 99-102

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@design-docs/design-template.md` around lines 12 - 22, Replace instructional
fenced code blocks in design-template.md with markdown blockquotes: locate the
"Problem Statement" section and every other instructional block (the ranges
noted: lines roughly 27-34, 43-48, 55-64, 70-75, 81-85, 91-93, 99-102) and
convert the triple-backtick blocks into lines prefixed with "> " so guidance
becomes semantic blockquotes; ensure each paragraph of instructions is prefixed
with "> ", remove the surrounding code fences, and keep the original instruction
text intact and line breaks preserved so linting and readability improve across
the template.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@design-docs/design-template.md`:
- Line 92: Replace the misspelled word "explicity" with the correct spelling
"explicitly" in the guidance string "What are you not attempting to do? What is
this proposal not about? What is explicity out-of-scope?" so the sentence reads
"...What is explicitly out-of-scope?"; locate that exact text in
design-template.md and update the token.
- Around line 34-35: Add a blank line between the closing code fence (the ```
line) and the table header "| Stakeholder    | How are they impacted |" in
design-template.md so the Markdown table is rendered correctly; locate the
closing ``` immediately above that table and insert a single empty line before
the table row.

---

Nitpick comments:
In `@design-docs/design-template.md`:
- Around line 12-22: Replace instructional fenced code blocks in
design-template.md with markdown blockquotes: locate the "Problem Statement"
section and every other instructional block (the ranges noted: lines roughly
27-34, 43-48, 55-64, 70-75, 81-85, 91-93, 99-102) and convert the
triple-backtick blocks into lines prefixed with "> " so guidance becomes
semantic blockquotes; ensure each paragraph of instructions is prefixed with ">
", remove the surrounding code fences, and keep the original instruction text
intact and line breaks preserved so linting and readability improve across the
template.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0d3d339e-2638-46d1-bb58-4c4cf419d4e9

📥 Commits

Reviewing files that changed from the base of the PR and between 39116c7 and 0a5ac1f.

📒 Files selected for processing (1)
  • design-docs/design-template.md

Comment on lines +34 to +35
```
| Stakeholder | How are they impacted |
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add blank line before the table.

The table should be surrounded by blank lines for proper Markdown rendering. Add a blank line between the closing code fence and the table.

📝 Proposed fix
 

| Stakeholder | How are they impacted |

</details>

<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

```suggestion

🧰 Tools
🪛 markdownlint-cli2 (0.21.0)

[warning] 35-35: Tables should be surrounded by blank lines

(MD058, blanks-around-tables)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@design-docs/design-template.md` around lines 34 - 35, Add a blank line
between the closing code fence (the ``` line) and the table header "|
Stakeholder    | How are they impacted |" in design-template.md so the Markdown
table is rendered correctly; locate the closing ``` immediately above that table
and insert a single empty line before the table row.

## Non-goals

```
What are you not attempting to do? What is this proposal not about? What is explicity out-of-scope?
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix typo: "explicity" → "explicitly".

There's a spelling error in the guidance text.

✏️ Proposed fix
-What are you not attempting to do? What is this proposal not about? What is explicity out-of-scope? 
+What are you not attempting to do? What is this proposal not about? What is explicitly out-of-scope? 
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
What are you not attempting to do? What is this proposal not about? What is explicity out-of-scope?
What are you not attempting to do? What is this proposal not about? What is explicitly out-of-scope?
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@design-docs/design-template.md` at line 92, Replace the misspelled word
"explicity" with the correct spelling "explicitly" in the guidance string "What
are you not attempting to do? What is this proposal not about? What is explicity
out-of-scope?" so the sentence reads "...What is explicitly out-of-scope?";
locate that exact text in design-template.md and update the token.

@tisnik tisnik requested a review from max-svistunov March 24, 2026 08:15
Copy link
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

It seems to be very different from the document template we got from Ansible (ALIA). Why we won't use their template? @max-svistunov ?

@anik120
Copy link
Contributor Author

anik120 commented Mar 24, 2026

It seems to be very different from the document template we got from Ansible (ALIA). Why we won't use their template? @max-svistunov ?

I am fine using whatever template the team wants. I am not really married to one template over the other. I just don't see any other template being put out for the team, so this is an effort to bring us all to the table and agree on a template.

This PR is for feedback. We can iterate through different sections if you have feedback on them. @max-svistunov feel free to open another PR with a different template if you have, and if that looks better than what I have here I'm happy to close this PR.

@anik120
Copy link
Contributor Author

anik120 commented Mar 25, 2026

Closing in favor of #1399

@anik120 anik120 closed this Mar 25, 2026
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