[Sprint V04.1.0] feat: Add cross-linking between issues, wiki, and lessons

- Add Metadata section to lesson structure with Implementation link
- Update lesson examples to include metadata with wiki reference
- Enable bidirectional traceability: lessons ↔ implementation pages

Phase 3 of V04.1.0 Wiki-Based Planning Enhancement.
Closes #163

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-26 10:21:53 -05:00
parent 30b379b68c
commit 1a0f3aa779
2 changed files with 49 additions and 1 deletions

View File

@@ -357,6 +357,11 @@ Let's capture lessons learned. I'll ask some questions:
```markdown
# Sprint {N} - {Clear Title}
## Metadata
- **Implementation:** [Change VXX.X.X (Impl N)](wiki-link)
- **Issues:** #XX, #XX
- **Sprint:** Sprint N
## Context
Brief background - what were you doing?
@@ -373,11 +378,37 @@ How can future sprints avoid this or optimize it?
technology, component, issue-type, pattern
```
**IMPORTANT:** Always include the Metadata section with implementation link for traceability.
**D. Save to Gitea Wiki**
Include the implementation reference in lesson content:
```
create_lesson(
title="Sprint 18 - Claude Code Infinite Loop on Validation Errors",
content="[Full lesson content]",
content="""
# Sprint 18 - Claude Code Infinite Loop on Validation Errors
## Metadata
- **Implementation:** [Change V1.2.0 (Impl 1)](wiki-link)
- **Issues:** #45, #46
- **Sprint:** Sprint 18
## Context
[Lesson context...]
## Problem
[What went wrong...]
## Solution
[How it was solved...]
## Prevention
[How to avoid in future...]
## Tags
testing, claude-code, validation, python
""",
tags=["testing", "claude-code", "validation", "python"],
category="sprints"
)