docs: establish integrated project memory

This commit is contained in:
2026-08-12 19:33:12 +08:00
parent 50ac5bddc4
commit 1eb36645e4
31 changed files with 872 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Reflection Index
Use this index for second-order workflow lessons.
| Date | Reflection | Trigger | Action | Detail |
|---|---|---|---|---|
| 2026-08-12 | Initializing project memory during a feature task can deadlock ownership-based drift checks | Initial canonical templates appeared as foreign task changes | Use an explicitly authorized Integration task to adopt the baseline; consider a first-install mode | [Case](cases/20260811-native-display-f2456ea9__initialization-drift-deadlock.md) |
## When To Reflect
Create a reflection only when work reveals a reusable lesson: skipped gates, repeated mistakes, durable debugging patterns, ineffective plans, human corrections, or candidates for new scripts or skills.
Routine task completion belongs in `30-worklog/task-history.md`.

View File

@@ -0,0 +1,54 @@
# Reflection: {short title}
## Trigger
What happened?
## Expected Behavior
What should the agent or workflow have done?
## Actual Behavior
What happened instead?
## Root Cause
Classify the cause:
- Missing trigger
- Weak gate
- Stale docs
- Unclear ownership
- Missing script
- Human decision not promoted
- Agent ignored context
- Other:
## Evidence
- Commit:
- Files:
- Session/thread:
- Command output:
- Docs involved:
## Lesson
What should future agents learn?
## Action
Choose one:
- Update docs
- Update gate
- Create script
- Create/update skill
- Add check/eval
- Ask human to decide
- No action
## Promotion
Should this become a rule, ADR, architecture note, task-history entry, skill change, or script?

View File

@@ -0,0 +1,11 @@
# Skill Candidates
Track repeated workflow lessons that may deserve a reusable skill, script, or stronger gate.
| Date | Candidate | Evidence | Proposed Action | Status |
|---|---|---|---|---|
| 2026-08-12 | First-install ownership mode for `maintain-project-docs` | [Initialization drift deadlock](cases/20260811-native-display-f2456ea9__initialization-drift-deadlock.md) | Let an explicitly authorized Integration task claim initializer-created canonical templates without classifying them as foreign feature drift | Proposed; wait for recurrence or skill-maintainer review |
## Promotion Rule
If the same reflection pattern appears repeatedly or prevents a serious mistake, propose a skill update, new skill, script, or deterministic check.