You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note**: This is an alternative versioning approach for documentation and configuration files. The unified versioning strategy above remains the recommended default.
152
+
153
+
### Overview
154
+
155
+
For documentation-heavy repositories (like `.github`), individual files may evolve independently. This strategy allows per-file semantic versioning whilst maintaining coordination with the repository version.
156
+
157
+
### Rules
158
+
159
+
-**Repository version** (`/VERSION`): Uses `X.Y.0` format for coordinated releases
160
+
-**File version** (`version:` in frontmatter): Independent `X.Y.Z` versioning per file
161
+
-**Guardrail**: A file's minor version (`X.Y`) **must not exceed** the repository's minor version
162
+
163
+
### Version Bump Types
164
+
165
+
#### Patch Bump (`X.Y.Z` → `X.Y.Z+1`)
166
+
- Content edits, typo fixes, clarifications
167
+
- No schema or structural changes
168
+
- Safe for all consumers
169
+
170
+
#### Minor Bump (`X.Y.Z` → `X.Y+1.0`)
171
+
- Schema-related key changes in that file
172
+
- New required fields or breaking changes for agents
173
+
- Must not exceed repository minor version
174
+
175
+
### Examples
176
+
177
+
**Scenario 1: Edit instruction prose**
178
+
- Current: `version: 0.1.3`
179
+
- Action: Fix typos, clarify instructions
180
+
- Result: `version: 0.1.4` (patch bump)
181
+
182
+
**Scenario 2: Add required frontmatter field**
183
+
- Current: `version: 0.2.5`, Repo: `0.2.0`
184
+
- Action: Add new required `applyTo` field
185
+
- Result: Cannot bump to `0.3.0` (would exceed repo `0.2.0`)
186
+
- Must wait for repo bump to `0.3.0` first
187
+
188
+
**Scenario 3: Coordinated release**
189
+
- Repo bumps: `0.2.0` → `0.3.0`
190
+
- Files with breaking changes: bump to `0.3.0`
191
+
- Files with only content edits: remain at `0.2.x` or bump patch
192
+
193
+
### Guardrails
194
+
195
+
A file **must not** have a minor version exceeding the repository minor version:
0 commit comments