Epic 5, Story 8, Task 2: Notion Hub, Knowledge Base Container, and KB Index
Task ID: E5:S08:T02
Status: ✅ COMPLETE (v0.5.8.2+8)
Priority: HIGH
Estimated Effort: Medium
Created: 2026-02-20
Last updated: 2026-02-22
Version: v0.5.8.2+8
Code: E5S08T02
Input
- Notion workspace (RMS Teamspace); Cursor Notion plugin/MCP
- Repo:
rw-config.yaml,.cursorrules,docs/tree,scripts/ - KB structure docs:
docs/architecture/standards-and-adrs/kb-structure-overview.md,ultimate-canonical-kb-structure.md
Scope
Establish the AI Dev Kit project hub and Knowledge Base container in Notion (RMS Teamspace), wire the repo to the hub via config, and index the entire project KB so the structure and content are known for optimization and migration.
Deliverables
-
Notion – AI Dev Kit hub page (in RMS Teamspace)
- Purpose statement (single entry point for project context)
- Repo and docs links (GitHub, README, CHANGELOG, install guide, vision)
- Knowledge Base section linking to the container page
- Quick links section for future Notion pages
-
Project config – hub URL
rw-config.yaml:notion_hub_urlpointing to the hub page.cursorrules: File Paths bullet for Notion project hub (vianotion_hub_url)
-
Notion – Knowledge Base container page (child of hub)
- Purpose: decisions, patterns, reference docs, captured context
- Areas: Decisions, Patterns & practices, Reference, How-tos (placeholders for child pages/databases)
- Linked from hub
-
KB index (repo)
scripts/kb_index.py: script to walkdocs/, collect paths, sizes, word counts, frontmatter; emit Markdown and optional JSONdocs/knowledge/KB-INDEX.md: human-readable index (section summary, optimization signals, full inventory; changelog archive summarized)docs/knowledge/KB-INDEX.json: machine-readable index for migration tooling
-
Story rename
- E5:S08 renamed from "Persistent Knowledge Base Investigation" to "Knowledge Base"
- Story file:
Story-008-knowledge-base.md; Epic-5 checklist and Story 8 section updated
Acceptance Criteria
- AI Dev Kit hub page exists in Notion (RMS Teamspace) with purpose, repo links, and Knowledge Base link
-
rw-config.yamlcontainsnotion_hub_url -
.cursorrulesFile Paths references Notion hub via config - Knowledge Base container page exists under the hub with purpose and area placeholders
-
scripts/kb_index.pyruns and generates KB-INDEX.md (and optional KB-INDEX.json) - KB-INDEX.md includes section summary, optimization signals (e.g. missing frontmatter, expired), and full inventory (archive summarized)
- E5:S08 story title and file name updated to "Knowledge Base"; Epic-5 updated
References
- Notion hub (RMS Teamspace): URL in
rw-config.yaml→notion_hub_url - KB structure: kb-structure-overview.md, ultimate-canonical-kb-structure.md
- Doc lifecycle: doc-lifecycle-policy.md