docs: factory integration grill — decision record, ADRs, and chunk scope update

- Decision record covering 12 decisions from the factory integration grill
- ADR-0008 (factory boundary: this repo is a provider, not a factory instance)
- ADR-0009 (flat skill taxonomy with category metadata in frontmatter)
- ADR-0010 (role skills in .agents/skills/; core/agents/ for subagent definitions)
- Issue 0013 (LESSONS.md at repo root)
- Issue 0014 (docs/spec/ living spec layer + VISION.md refactor)
- ROADMAP Chunk 3 scope expanded: skills rebuild, new skills (session-handoff,
  governance-check, git-guardrails, write-adr), IaC/Gitea global optional
- Per-skill process: implementation guidance Sections 4-5 and skills index
  referenced as starting point before web research and grilling
- factory-research-gaps-conflicts.md marked superseded

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-17 10:23:20 +00:00
parent d78e01f4c1
commit eae5c37b35
9 changed files with 263 additions and 7 deletions

View File

@@ -0,0 +1,32 @@
# 0013 — LESSONS.md for this repo
## What to build
Create `LESSONS.md` at the repo root. This file is the long-loop feedback mechanism for this repo — patterns noticed during active development get written here, and repeated patterns graduate to standing rules.
**File structure:**
```markdown
# Lessons
Patterns observed during development of this repo. Three or more entries on the same pattern → promote to CONTEXT.md (or the relevant instruction file) as a standing rule.
## [date] [short title]
[observation — what happened, what was learned, what should change]
```
**Graduation rule:** When three or more entries cover the same pattern, the human reviews and promotes the pattern to the appropriate standing location: CONTEXT.md for domain-level principles, `core/instructions/coding.md` for coding conventions, `core/instructions/git.md` for git conventions, or `core/instructions/testing.md` for testing conventions. The graduated entries are marked `[graduated → target file]` rather than deleted (audit trail).
**Who writes to it:** The session-handoff skill (Chunk 3) prompts LESSONS.md extraction before closing a session. The human may also write directly.
**What belongs here:** Non-obvious observations — a rule that was misapplied, a pattern that caused friction, a decision that turned out wrong in practice. Not summaries of what was built (that's git history) or planned changes (that's issues).
## Acceptance criteria
- [ ] `LESSONS.md` exists at repo root with the structure above
- [ ] Graduation rule is documented in the file header
- [ ] CONTEXT.md docs convention is updated to reference LESSONS.md as an artifact type
## Blocked by
None.

View File

@@ -0,0 +1,45 @@
# 0014 — docs/spec/ and VISION.md refactor
## What to build
Introduce `docs/spec/` as the living spec layer for this repo, and refactor `docs/VISION.md` to goals and intent only.
**The distinction:**
- `docs/VISION.md` — purpose, goals, non-goals, long-term roadmap. Stable. Describes what the repo is for and where it is going.
- `docs/spec/overview.md` — current deployed state. What is working today. Updated in the same PR as any behavior change.
- `docs/spec/architecture.md` — current directory structure, install behavior, provider model, deployment pipeline, as-deployed. Replaces the architecture section of VISION.md.
**1. Refactor VISION.md**
Remove the Architecture section (directory structure diagram, content deployment model, governance layer description, provider model, this repo's own CLAUDE.md description, architectural decisions pointer). These describe current state, not intent. Move this content to `docs/spec/architecture.md`.
Keep in VISION.md: Purpose, Goals, Non-Goals, V1 Definition, Long-term Management Application vision.
**2. Create docs/spec/overview.md**
Current state snapshot: what chunks are complete, what is deployed, what works end-to-end. This is the "what does this repo do right now" document. Updated at the close of each chunk.
**3. Create docs/spec/architecture.md**
Current architecture: directory structure, install pipeline, provider adapter model, content deployment model, governance layer, CLAUDE.md two-tier model. Sourced from the VISION.md architecture section but written as current state, not design intent. Keep diagrams and tables.
**4. Update CONTEXT.md docs convention**
Add `docs/spec/<slug>.md` to the docs naming convention. Describe when spec files are updated (same PR as any behavior change).
**5. Update CLAUDE.md key documents section**
Add `docs/spec/` to the list of documents to read at session start, alongside CONTEXT.md, VISION.md.
## Acceptance criteria
- [ ] `docs/spec/overview.md` exists with current state of the repo
- [ ] `docs/spec/architecture.md` exists with current architecture content (sourced from VISION.md architecture section)
- [ ] `docs/VISION.md` contains only Purpose, Goals, Non-Goals, V1 Definition, and Management Application vision
- [ ] No content is lost — everything from the removed VISION.md sections appears in spec files
- [ ] CONTEXT.md docs convention references `docs/spec/`
- [ ] CLAUDE.md key documents section references `docs/spec/`
## Blocked by
None.