SpecsWikiKnowledge Unification
Knowledge Unification Implementation Notes
Implementation Notes: Knowledge Unification
Execution Mode
Direct execution by user request ("no delivery or anything"): planning-only task identities, no backlog projection. Wave 1 ran T1, T2 and T4 as scoped workers and T3 and T5 in the parent; T6, T7 and T8 ran in the parent.
Wave Log
- Wave 1, T1 (wiki content): tech debt moved from
project/reference/tech-debt/**toproject/tech-debt/**; rootdocs/README.mdentries folded intoproject/index.mdxand the newreference/index.mdx; knowledge-maintenance grill log entry supersedes the root-docs bullet of Q8; live authority statements rewritten (decisions/wiki-content-ownership.mdx, knowledge-maintenanceSPEC.mdandARCHITECTURE.md,apps/wiki/AGENTS.md). - Wave 1, T2 (wiki runtime):
sync-content.mjsprojects onlyspecs/;check-health.mjsreports a rootdocs/and unresolved frontmattersource:paths and always exits 0; wiki scripts arebuild,dev,start,check:content,check:health; 5 test files,vitest.config.ts,oxlint.config.ts,tools/,test-fixtures/and six dev dependencies removed;vercel.jsonignoreCommandis[ "$VERCEL_GIT_COMMIT_REF" != "main" ]. - Wave 1, T3 (root CI): wiki
check:contentdocs/**input,check-typesandtest:citurbo entries and changelog inputs removed;buildno longer depends oncheck:content;--filter=!@punks/wikiadded to the affected task list and the first roottest:cirun;scripts/assert-wiki-generated-source.mjsand itslint:repoargument removed; classifierdocs/prefix removed. The affected-selection test fixture gained a@punks/wikiworkspace and asserts it is never selected. - Wave 1, T4 (guidance):
AGENTS.mdduties say "update the owning wiki page and its section index";HI-DOCS-001rewritten as a review rule;HI-REPO-003activation repointed;docssubagent removed; 84 harness mirrors regenerated. - Wave 1, T5 (shared skills):
wearedevpunks/skills@3f8c6aecff7a47a68caee7706245ff8a5ba89729(sync/knowledge-unification-3f8c6aecff7a);repo-docs.mdreplaced bylegacy-root-docs.md; pin moved;bun run sync:skillsreceipt names that commit. - Wave 2, T6:
git rm -r docs(25 files); 46 frontmattersource:entries and the Harness index source link repointed to wiki paths; wiki pin quote updated. - Wave 3, T7:
BASELINE_CHANGELOG.mdUnreleasednote; validation below.ARCHITECTURE.mdFLOW heading anchors moved onto their own line (<a id="flow-00n" />) because Fumadocsrehype-toccannot render raw HTML inside a heading; anchors and wording are unchanged, the retained commitd795b03eestays the decision source.
Validation Evidence
| Check | Result |
|---|---|
bun run --cwd apps/wiki check:content | "Wiki content is current." (root docs/ deleted) |
bun run --cwd apps/wiki check:health | exit 0; 12 pre-existing frontmatter findings (report only) |
bun run --cwd apps/wiki build | exit 0 |
TURBO_SCM_BASE=origin/main TURBO_SCM_HEAD=HEAD bun scripts/behavior-contract/run-ci-verification.mjs affected --dry=json | 46 tasks, none in @punks/wiki |
bun test scripts/behavior-contract/affected-verification.test.ts | 21 pass; fails without the wiki filter (RED proof) |
bun test apps/cli/src/scripts/release-path-ownership.test.ts | 2 pass |
bun run check:repo | pass |
bun install --frozen-lockfile | no changes |
ignoreCommand | feature → 0 (skip), main → 1 (build) |
Harness mirrors vs buildHarnessAgentFiles | 84 files, 0 differences |
| Skills contract suite | 303 pass, 14 fail; the same 14 fail on clean skills main |
git ls-files docs | empty |
| Reference and runbook pages | pre-change list kept; reference/index.mdx added |
Skill Application Evidence
| Task | Skill | Evidence |
|---|---|---|
| T1, T4, T5 | writing-for-agents | One statement per meaning, positive target phrasing, stale duties pruned; legacy root docs named once in legacy-root-docs.md |
| T3 | turborepo | --affected combined with a negated --filter, proved by dry run |
| T4 | rule-authoring | HI-DOCS-001 keeps id, requirement, verification and exceptions fields |