RF — TFW-18: Knowledge Consolidation¶
Дата: 2026-04-03 Автор: Executor (AI) Статус: 🟢 RF — Выполнено Parent HL: HL-TFW-18 TS: TS TFW-18
1. Что сделано¶
Новые файлы¶
| Файл | Описание |
|---|---|
.tfw/workflows/knowledge.md |
4-phase consolidation workflow (Orient → Gather → Consolidate → Prune), ~100 lines |
.tfw/templates/TOPIC_FILE.md |
Template for topic files in knowledge/ folder |
.tfw/knowledge_state.yaml |
Initial knowledge tracking state with zeroed stats |
.agent/workflows/tfw-knowledge.md |
Antigravity adapter for the new knowledge workflow |
Изменённые файлы¶
| Файл | Изменения |
|---|---|
.tfw/templates/RF.md |
Added §6 Fact Candidates with quality filter + anti-patterns + categories |
.tfw/templates/REVIEW.md |
Added §5 Fact Candidates with quality filter + anti-patterns + categories |
.tfw/templates/RES.md |
Added Fact Candidates subsection in Closure (before Conclusion) |
.tfw/workflows/handoff.md |
Added 💡 mindset reminder about Fact Candidates in RF writing step |
.tfw/workflows/research.md |
Added 💡 mindset reminder about Fact Candidates before Closure Protocol |
.tfw/workflows/review.md |
Added 💡 mindset reminder about Fact Candidates in REVIEW writing step |
.tfw/templates/KNOWLEDGE.md |
Added §5 Project Facts compact index with category/count/link table |
.tfw/workflows/init.md |
Added Step 5: .user_preferences.md template + .gitignore guidance |
.tfw/PROJECT_CONFIG.yaml |
Added tfw.knowledge section (6 params) + knowledge in workflows list |
.tfw/workflows/docs.md |
Added item 6 to checklist: Fact Candidates marker |
.tfw/conventions.md |
Added Fact Candidates to §3, knowledge.md row to §8, §10.1 Fact Categories, §10.2 Knowledge Infrastructure |
.tfw/glossary.md |
Added 4 terms: Fact Candidate, Topic File, Knowledge Gate, Consolidation |
.tfw/workflows/plan.md |
Added Phase 0: Knowledge Gate Check before Phase 1 |
.agent/workflows/tfw-handoff.md |
Synced from canonical |
.agent/workflows/tfw-research.md |
Synced from canonical |
.agent/workflows/tfw-review.md |
Synced from canonical |
.agent/workflows/tfw-docs.md |
Synced from canonical |
.agent/workflows/tfw-plan.md |
Synced from canonical |
2. Ключевые решения¶
- REVIEW.md §5 placement: TS said "After §4 Verdict" but REVIEW template §4 is "Traces Updated", §2 is "Verdict". Added §5 FC after §4 (end of review), which is the logical position per HL intent.
- Adapter sync: All 5 existing adapters are byte-identical copies of canonical workflows. Used
cpto overwrite after modifying canonicals, ensuring exact sync.
3. Acceptance Criteria¶
- [x] RF.md template has §6 Fact Candidates with quality filter and anti-patterns
- [x] REVIEW.md template has §5 Fact Candidates with quality filter
- [x] RES.md template has Fact Candidates in Closure section
- [x] handoff.md, research.md, review.md each have 1 mindset reminder about Fact Candidates
- [x] KNOWLEDGE.md template has §5 Project Facts compact index
- [x]
.tfw/workflows/knowledge.mdexists with 4-phase process, role lock, behavior rules - [x]
.tfw/templates/TOPIC_FILE.mdexists - [x]
.tfw/knowledge_state.yamlexists with initial state - [x] PROJECT_CONFIG.yaml has
tfw.knowledgesection with 6 configurable parameters - [x] tfw-docs checklist has item 6 (Fact Candidates marker)
- [x] plan.md has Phase 0 Knowledge Gate Check
- [x] conventions.md has Fact Candidates definition + categories + new files
- [x] glossary.md has 4 new terms
- [x] All 6 adapters synced (5 modified + 1 new)
- [x] No changes to main pipeline diagrams
- [x] Grep verification: "Fact Candidates" appears in RF.md, REVIEW.md, RES.md templates
4. Верификация¶
- Lint (
echo "configure your lint command"): N/A (markdown files only) - Tests (
echo "configure your test command"): N/A (markdown files only) - Verify: Grep verification passed — "Fact Candidates" found in all 3 templates, all 5 modified workflows, and all 6 adapter files. Phase 0 confirmed in both plan.md and adapter. 4 glossary terms confirmed. Knowledge config section confirmed with 6 parameters.
5. Observations (out-of-scope, not modified)¶
| # | File | Line(s) | Type | Description |
|---|---|---|---|---|
| 1 | .tfw/conventions.md |
170-196 | naming | §10.1 and §10.2 numbering breaks the existing section numbering flow — §10 "Context Loading Order" follows immediately after §10.2. A future renumbering pass would fix this (§10/§11/§12 for the three new subsections, renumber old §10-§15 accordingly) |
| 2 | .tfw/workflows/init.md |
100-113 | style | Phase 5 verify checklist still references old numbering (Steps 5/6 → now Steps 6/7 after .user_preferences.md insertion). Tutorial text and anti-patterns unaffected |
| 3 | KNOWLEDGE.md (project) |
120 | todo | Live KNOWLEDGE.md doesn't have §5 Project Facts yet — only the template does. Will be added during first /tfw-knowledge run or next /tfw-docs |
6. Fact Candidates¶
Record what you learned about this project that would change how the NEXT agent approaches a similar task. If it wouldn't change their decision — don't record it.
Anti-patterns: "project uses git", "code is in Python", "tests exist" These are NOT verified facts. They become facts after
/tfw-knowledgeconsolidation.
| # | Category | Candidate | Source | Confidence |
|---|---|---|---|---|
| 1 | convention | Adapter files in .agent/workflows/ are exact byte-copies of .tfw/workflows/ — cp is the correct sync method, not manual editing |
Verified during execution — file sizes match | High |
| 2 | convention | Some .tfw/ files use CRLF (KNOWLEDGE template, docs.md) while others use LF. No consistency rule exists |
Observed during template editing | Medium |
| 3 | environment | .tfw/conventions.md section numbering is flat (§1-§15 at time of TFW-18) with no hierarchy — adding subsections (§10.1, §10.2) is a first and may need future normalization |
conventions.md structure observation | Medium |
Categories (open list):
environment,process,stakeholder,constraint,convention,domain,context,riskfact-candidates: processed 2026-04-03
RF — TFW-18: Knowledge Consolidation | 2026-04-03