Skip to content

Commit b389e03

Browse files
committed
Fix heading hierarchy in spike and spec doc templates
1 parent 42e171a commit b389e03

2 files changed

Lines changed: 34 additions & 34 deletions

File tree

docs/contributing/templates/spec-doc-template.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ TODO (example, delete): [conversation-compaction.md](../../design/conversation-c
1111
| **Spike** | TODO: [LCORE-XXXX](https://redhat.atlassian.net/browse/LCORE-XXXX) |
1212
| **Links** | TODO |
1313

14-
# What
14+
## What
1515

1616
TODO: What does this feature do?
1717

18-
# Why
18+
## Why
1919

2020
TODO: What problem does this solve? What happens today without it?
2121

22-
# Requirements
22+
## Requirements
2323

2424
TODO: Numbered, testable requirements. For each, it should be easy to provide clear acceptance criteria.
2525

2626
- **R1:**
2727
- **R2:**
2828

29-
# Use Cases
29+
## Use Cases
3030

3131
TODO: User stories in "As a [role], I want [X], so that [Y]" format.
3232

3333
- **U1:**
3434
- **U2:**
3535

36-
# Architecture
36+
## Architecture
3737

38-
## Overview
38+
### Overview
3939

4040
TODO: Flow diagram showing the request/response path with the new feature.
4141

@@ -45,15 +45,15 @@ TODO: flow diagram
4545

4646
TODO: Add subsections below for each relevant component. Delete any that don't apply, add feature-specific ones.
4747

48-
## Trigger mechanism
48+
### Trigger mechanism
4949

5050
TODO: When and how the feature activates.
5151

52-
## Storage / data model changes
52+
### Storage / data model changes
5353

5454
TODO: Schema changes, which backends need updates.
5555

56-
## Configuration
56+
### Configuration
5757

5858
TODO: YAML config example and configuration class.
5959

@@ -65,45 +65,45 @@ TODO: config example
6565
TODO: configuration class
6666
```
6767
68-
## API changes
68+
### API changes
6969
7070
TODO: New or changed fields in request/response models.
7171
72-
## Error handling
72+
### Error handling
7373
7474
TODO: How errors are surfaced — new error types, HTTP status codes, recovery behavior.
7575
76-
## Security considerations
76+
### Security considerations
7777
7878
TODO: Auth, access control, data sensitivity implications. Remove if not applicable.
7979
80-
## Migration / backwards compatibility
80+
### Migration / backwards compatibility
8181
8282
TODO: Schema migrations, API versioning, feature flags for gradual rollout. Remove if not applicable.
8383
84-
# Implementation Suggestions
84+
## Implementation Suggestions
8585
86-
## Key files and insertion points
86+
### Key files and insertion points
8787
8888
TODO: Table of files to create or modify.
8989
9090
| File | What to do |
9191
|------|------------|
9292
| TODO | TODO |
9393
94-
## Insertion point detail
94+
### Insertion point detail
9595
9696
TODO: Where the feature hooks into existing code — function name, what's available at that point, what the code should do.
9797
98-
## Config pattern
98+
### Config pattern
9999
100100
All config classes extend `ConfigurationBase` which sets `extra="forbid"`.
101101
Use `Field()` with defaults, title, and description. Add
102102
`@model_validator(mode="after")` for cross-field validation if needed.
103103

104104
Example config files go in `examples/`.
105105

106-
## Test patterns
106+
### Test patterns
107107

108108
- Framework: pytest + pytest-asyncio + pytest-mock. unittest is banned by ruff.
109109
- Mock Llama Stack client: `mocker.AsyncMock(spec=AsyncLlamaStackClient)`.
@@ -113,21 +113,21 @@ Example config files go in `examples/`.
113113

114114
TODO: Describe any feature-specific test considerations (e.g., tests that need a running service, special fixtures, concurrency testing).
115115

116-
# Open Questions for Future Work
116+
## Open Questions for Future Work
117117

118118
TODO: Things explicitly deferred and why.
119119

120-
-
121-
-
120+
- TODO
121+
- TODO
122122

123-
# Changelog
123+
## Changelog
124124

125125
TODO: Record significant changes after initial creation.
126126

127127
| Date | Change | Reason |
128128
|------|--------|--------|
129129
| | Initial version | |
130130

131-
# Appendix A
131+
## Appendix A
132132

133133
TODO: Supporting material — PoC evidence, API comparisons, reference sources. Add appendices as needed.

docs/contributing/templates/spike-template.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ TODO (example, delete): [conversation-compaction-spike.md](../../design/conversa
22

33
# Spike for TODO: feature name
44

5-
# Overview
5+
## Overview
66

77
**The problem**: TODO
88

99
**The recommendation**: TODO
1010

1111
**PoC validation**: TODO
1212

13-
# Decisions for TODO specify reviewer(s)
13+
## Decisions for TODO specify reviewer(s)
1414

1515
These are the high-level decisions that determine scope, approach, and cost.
1616
Each has a recommendation — please confirm or override.
1717

18-
## Decision 1: TODO title
18+
### Decision 1: TODO title
1919

2020
TODO: Context, options table, recommendation. Link to the relevant background section(s) below.
2121

@@ -26,17 +26,17 @@ TODO: Context, options table, recommendation. Link to the relevant background se
2626

2727
**Recommendation**: TODO
2828

29-
# Technical decisions for TODO specify reviewer(s)
29+
## Technical decisions for TODO specify reviewer(s)
3030

3131
Architecture-level and implementation-level decisions.
3232

33-
## Decision N: TODO title
33+
### Decision N: TODO title
3434

3535
TODO: Context, options table, recommendation. Link to the relevant background section(s) below.
3636

3737
**Recommendation**: TODO
3838

39-
# Proposed JIRAs
39+
## Proposed JIRAs
4040

4141
TODO: One subsection per JIRA. Each JIRA's agentic tool instruction should point to the spec doc (the permanent reference), not this spike doc.
4242

@@ -61,23 +61,23 @@ Read the "[section]" section in docs/design/<feature>/<feature>.md.
6161
Key files: [files].
6262
```
6363

64-
# PoC results
64+
## PoC results
6565

6666
TODO: If a PoC was built, document what it does, what it proved, and how it diverges from the production design.
6767

68-
## What the PoC does
68+
### What the PoC does
6969

7070
**Important**: The PoC diverges from the production design in these ways:
7171
- TODO
7272

73-
## Results
73+
### Results
7474

7575
TODO
7676

77-
# Background sections
77+
## Background sections
7878

7979
TODO: Research and analysis that supports the decisions above. These sections are linked from the decisions, not read front-to-back. Common topics: current architecture, existing approaches, design alternatives. Add or remove as needed.
8080

81-
# Appendix A
81+
## Appendix A
8282

8383
TODO: Supporting material — external references, responses to suggestions from team members. Add appendices as needed.

0 commit comments

Comments
 (0)