IP-439 Knowledge Unification Grill Log
IP-439 Knowledge Unification Grill Log
Decision record for Linear IP-439, "Unify Harness knowledge into one domain-oriented documentation system". Current state: grill status.
Origin
- IP-439 (Backlog, label
fog, created 2026-09-02) proposes to supersede the scaffolded Fumadocs project and remove theapps/wikiversus rootdocs/divide. - The IP-439 consultation found that the accepted knowledge-maintenance Q8 keeps root
docs/as the authority for implemented operations, enforced by ruleHI-DOCS-001. - User direction, 2026-10-09, on the PR #253 review and closeout:
no docs we keep apps/wiki only
no we should merge
- This grill decides how that direction replaces Q8 and
HI-DOCS-001.
Evidence
Collected 2026-10-09 on origin/main 0777e5bd7.
- Root
docs/holds 24 tracked files:README.md(258 lines, about 94 KB, 53 index entries),AGENTS.md,reference/(3 pages plus 17 tech-debt pages) andrunbooks/(3 pages).docs/requirements/anddocs/tech-decisions.mddo not exist. apps/wiki/scripts/sync-content.mjs:119-160copiesdocs/{requirements,reference,runbooks}anddocs/tech-decisions.mdintocontent/docs/project/; lines 214-228 rewrite their links. The copies are committed (34 files underproject/reference/andproject/runbooks/).turbo.json:117lists$TURBO_ROOT$/docs/**as an input of@punks/wiki#check:contentonly.- Authority statements for root
docs/: rootAGENTS.md:3,30; 14 nestedAGENTS.mdfiles that requiredocs/README.mdupdates;apps/wiki/AGENTS.md:11,19; ruleHI-DOCS-001(.agents/rules/docs/knowledge-boundary.md); ruleHI-REPO-003namesdocs/reference/dp-requirements.md;decisions/wiki-content-ownership.mdx; thedocssubagent in.agents/subagents/manifest.mjs:658-665and its 4 generated agent mirrors. - Nested
AGENTS.mdfiles are repository-authored; the CLI does not generate them. - The CLI never creates
docs/in a target repository.apps/cli/src/registry/shape.ts:37,142recordsdocsRootonly when a target already has an un-ignoreddocs/. - Shared skills hard-code root
docs/:resolve-debt-phase/SKILL.md:13,21,33andimplement-spec/references/lifecycle.md:54,92(docs/reference/tech-debt/...);docs-ingest-phase/references/repo-docs.md:20-31(docs/README.mdand paths that do not exist here). Otherdocs-ingest-phaseroutes are generic or<wiki-root>-aware. - Tech debt has two routed sections: wiki-authored
project/tech-debt/(18 files) and projectedproject/reference/tech-debt/(17 files). They share no file names. - Inbound references: 403 lines in 190 wiki files mention
docs/...paths; 49 pages cite root docs in frontmattersource:; 397 lines in 109 files link the projected routes/docs/project/{reference,runbooks}.
Branch: Scope and identity
Q1
Prerequisites:
- none
Question:
Delete root docs/ completely and make apps/wiki the only knowledge home in this repository?
Accepted answer (R1, "agree all"):
- Delete root
docs/completely.apps/wikiis the only Knowledge home. - Keep no stub
docs/README.mdor redirect page in rootdocs/.
Q2
Prerequisites:
- none
Question:
Keep Fumadocs and the one content/docs routed tree, and reject the IP-439 premise to supersede the Fumadocs project?
User evidence:
lets keep fumadocs but just reduce friction and make sure we never lint it or typecheck it or whatever. no lints or ci or whatever must EVER fail due to wiki
Accepted answer (R1):
- Keep Fumadocs and the one
content/docsrouted tree. Reject the IP-439 premise to replace the Fumadocs project. - New requirement: no lint, type check, test, CI job or other repository gate may fail because of the wiki. The wiki gets no lint and no type check. See branch "Wiki gate isolation" (Q16-Q20).
- Reduce wiki friction. Scope of "friction" is open in Q19 and Q20.
Q3
Prerequisites:
- none
Question:
Reach: change this repository only, or also make the shared skills and the CLI stop routing knowledge to a root docs/ in target repositories?
User evidence:
will apply here only due to baseline update and eventual post command reconciliation if needed
yes (to: plus the shared skills that hard-code paths here)
Accepted answer (R1):
- Apply the migration in this repository only.
- Change the shared skills that hard-code root
docs/paths:resolve-debt-phase,implement-spec(docs/reference/tech-debt) anddocs-ingest-phase(references/repo-docs.md). Edit them in the shared skills source onmain, then sync. - Target repositories receive the changed skills through the baseline update. A target that keeps a root
docs/reconciles it in the post-command handoff ofhi updateonly if needed. The CLI gets no migration code. - Consequence: the skill change is release-bearing for the baseline and needs reviewed
BASELINE_CHANGELOG.mdnotes.
Q4
Prerequisites:
- none
Question: IP-439 disposition: rewrite IP-439 to the accepted scope and deliver under it, or close it and open a new issue?
Accepted answer (R1, "agree all"):
- Rewrite IP-439 to the accepted scope in the HARNESS INTELLIGENCE project and deliver under it.
- Remove the label
fogwhen the grill closes. Do the Linear edit at grill closure, not before.
Branch: Placement and routes
Q5
Prerequisites:
- Q1
Question:
Write the moved root docs/ pages at their current wiki routes, or reorganize them by domain?
Accepted answer (R2, "agree all"):
- Write each moved page directly at its current projected route:
project/reference/*andproject/runbooks/*. About 400 route links stay valid. - A domain-based reorganization of these pages is separate later work, not part of IP-439.
Q6
Prerequisites:
- Q1
Question:
Fate of the 94 KB docs/README.md index?
Accepted answer (R2):
- Move its current entries into
project/index.mdxand the section index pages. Do not keep a second index. - Drop its "Historical records" block. Git history keeps it.
Q7
Prerequisites:
- Q1, Q3
Question: Merge the two tech-debt sections?
Accepted answer (R2):
- One tech-debt section:
project/tech-debt/<domain>/.... Move the 17 projected root files there. - Point
resolve-debt-phaseandimplement-specat that section in the shared skills source.
Branch: Authority and guidance
Q8
Prerequisites:
- Q1
Question:
Rewrite or retire rule HI-DOCS-001?
Accepted answer (R2):
- Rewrite it: all project knowledge lives in
apps/wiki; no rootdocs/knowledge tree may exist. - It stays a review rule. It is not a CI check (see Q2, Q15).
Q9
Prerequisites:
- Q1
Question:
What replaces the "update docs/README.md" rule in the nested AGENTS.md files?
Accepted answer (R2):
- Replace it with "update the owning wiki page and its section index". The duty stays; its location moves.
- Apply the same change to root
AGENTS.mdandapps/wiki/AGENTS.mdstatements that give rootdocs/authority.
Q10
Prerequisites:
- Q1
Question:
Retire docs/AGENTS.md and the docs subagent, or repoint the subagent?
Accepted answer (R2):
- Retire both. The
apps-wikisubagent owns all knowledge pages. Remove thedocsentry from.agents/subagents/manifest.mjsand its generated agent mirrors.
Q11
Prerequisites:
- Q1, Q3
Question:
Repoint HI-REPO-003 and other rules that name root docs/ paths?
Accepted answer (R2):
- Point every such rule at the moved wiki page.
Branch: Prior decisions and history
Q12
Prerequisites:
- Q1, Q2
Question: How does this grill treat knowledge-maintenance Q8?
Accepted answer (R2):
- Add an entry to the knowledge-maintenance grill log that supersedes its Q8 and links this grill.
- Update the live statements in the knowledge-maintenance
SPEC.mdandARCHITECTURE.mdthat make rootdocs/the authority.
Q13
Prerequisites:
- Q1
Question:
What happens to historical docs/... mentions?
Accepted answer (R2):
- Leave historical text unchanged: grill logs,
log.mdentries, research reports and links pinned to a commit. The log is append-only, and pinned links still resolve. - Live guidance and live links are in scope (Q8-Q11).
Branch: Migration safety
Q14
Prerequisites:
- Q1
Question:
What happens to the copy step in sync-content.mjs?
Accepted answer (R2):
- Delete the root-
docs/copy and link-rewrite code fromsync-content.mjsand the$TURBO_ROOT$/docs/**input fromturbo.json. - Keep the
specs/copy step (about 50 files).
Q15
Prerequisites:
- Q1, Q2
Question:
How is a returned root docs/, a broken source: path or a dead link detected?
Accepted answer (R2, supersedes the R1 draft that proposed a failing guard):
check:healthreports these findings. It never fails a build, a CI job or a commit gate.- Agents run it through
docs-ingest-phaseand the knowledge-maintenance flow and act on the report.
Branch: Wiki gate isolation
Opened by Q2. Evidence collected 2026-10-09:
scripts/behavior-contract/run-ci-verification.mjs:259-291(affected, the "Affected Verification (trusted)" GitHub check) runs turbobuild,check-types,test,test:packaged,test:browserwith--affected.@punks/wikihasbuild,check-typesandtest, so a wiki change runs a Next.js build,tscand vitest in CI.turbo.json:96-115:@punks/wiki#builddepends oncheck:content, so a stale projection fails the build. Its inputs include rootCHANGELOG.mdandBASELINE_CHANGELOG.md, so a changelog edit makes the wiki affected.- Already excluded: changed-file lint and format (
run-ci-verification.mjs:69) and roottest:cicheck(--filter=!@punks/wiki,package.json:63). The commit gate contracts (.devpunks/commit-gate-contracts.json) name no wiki task. apps/wiki/package.jsonpostinstall: fumadocs-mdxruns on everybun install, also in CI jobs that do not touch the wiki.- The Vercel project
harness-intelligence-wikiposts a GitHub status on every PR. On PR #253 it failed once with an out-of-memory build kill and passed on redeploy. - Branch protection is not available (GitHub free plan), so no check is required. A failed status still shows the PR as failing.
Q16
Prerequisites:
- Q2
Question: Remove the wiki from every CI run?
Accepted answer (R2):
- Exclude
@punks/wikifrom every CI turbo run (--filter=!@punks/wikiinaffected,planandstatic). - Remove root
CHANGELOG.mdandBASELINE_CHANGELOG.mdfrom the wiki turbo inputs, so release PRs do not mark the wiki affected.
Q17
Prerequisites:
- Q2
Question: How is the Vercel wiki status on PRs handled?
Accepted answer (R2):
- Build wiki deployments only on
main. An ignore step inapps/wiki/vercel.jsonskips other branches, so no wiki status can fail a PR. - Rejected alternative: keep PR previews and accept a non-blocking red status.
Q18
Prerequisites:
- Q2
Question: What happens to the wiki lint, format and type-check scripts?
Accepted answer (R2):
- Delete the wiki
lint,format,format:check,check-types,types:checkandcheckscripts and their turbo entries. Nothing can then run them.
Q19
Prerequisites:
- Q2
Question: What happens to the wiki tests?
Accepted answer (R2):
- Delete the wiki
testandtest:ciscripts and the 5 wiki test files. Tests that CI never runs decay into dead code. - Rejected alternative: keep
sync-content.test.mjsas an on-demand script.
Q20
Prerequisites:
- Q2
Question: How is install and build friction removed?
Accepted answer (R2):
- Remove
postinstall: fumadocs-mdx;buildanddevrunfumadocs-mdxthemselves. A wiki failure can then not breakbun install. - Remove the
builddependency oncheck:content.buildwrites thespecs/copies and continues.
R2 checkpoint
Brainstorm review after the R2 response set, 2026-10-12. No new decision opened. Findings for planning:
apps/wiki/vercel.jsonrunsbun run build, which callssync-content.mjsdirectly, not turbo. Removing the changelog turbo inputs (Q16) cannot make a deployed wiki stale.apps/cli/scripts/classify-release-impact.mjs:168classifiesdocs/paths asnon-product. After Q1 that prefix is dead; remove it with the migration..devpunks/installed.jsonrecordsdocsRootfor this repository, fromapps/cli/src/registry/shape.ts:142. The nexthi updatederives it again from the tree, so deleting rootdocs/needs no CLI change (Q3).scripts/assert-wiki-generated-source.mjsis used only by the wiki type-check scripts; rootlint:repo(package.json:48) also names it. Q18 orphans it; delete it, its turbo input and itslint:repoargument.packages/config/AGENTS.md:26and the other nestedAGENTS.mdfiles carry the Q9 rule text.- Q15 keeps
check:healthand Q19 deletescheck-health.test.mjs. The report script stays without tests, by decision.
Closure
- 2026-10-12: the user confirmed shared understanding ("yes i do") and asked to compile the architecture and spec. All branches are closed. No branch is parked.
- Next:
create-architecture, thencreate-spec, underproject/specs/wiki/knowledge-unification/.