Harness Intelligence Wiki
Grilling

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 the apps/wiki versus root docs/ divide.
  • The IP-439 consultation found that the accepted knowledge-maintenance Q8 keeps root docs/ as the authority for implemented operations, enforced by rule HI-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) and runbooks/ (3 pages). docs/requirements/ and docs/tech-decisions.md do not exist.
  • apps/wiki/scripts/sync-content.mjs:119-160 copies docs/{requirements,reference,runbooks} and docs/tech-decisions.md into content/docs/project/; lines 214-228 rewrite their links. The copies are committed (34 files under project/reference/ and project/runbooks/).
  • turbo.json:117 lists $TURBO_ROOT$/docs/** as an input of @punks/wiki#check:content only.
  • Authority statements for root docs/: root AGENTS.md:3,30; 14 nested AGENTS.md files that require docs/README.md updates; apps/wiki/AGENTS.md:11,19; rule HI-DOCS-001 (.agents/rules/docs/knowledge-boundary.md); rule HI-REPO-003 names docs/reference/dp-requirements.md; decisions/wiki-content-ownership.mdx; the docs subagent in .agents/subagents/manifest.mjs:658-665 and its 4 generated agent mirrors.
  • Nested AGENTS.md files 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,142 records docsRoot only when a target already has an un-ignored docs/.
  • Shared skills hard-code root docs/: resolve-debt-phase/SKILL.md:13,21,33 and implement-spec/references/lifecycle.md:54,92 (docs/reference/tech-debt/...); docs-ingest-phase/references/repo-docs.md:20-31 (docs/README.md and paths that do not exist here). Other docs-ingest-phase routes are generic or <wiki-root>-aware.
  • Tech debt has two routed sections: wiki-authored project/tech-debt/ (18 files) and projected project/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 frontmatter source:; 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/wiki is the only Knowledge home.
  • Keep no stub docs/README.md or redirect page in root docs/.

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/docs routed 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) and docs-ingest-phase (references/repo-docs.md). Edit them in the shared skills source on main, 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 of hi update only if needed. The CLI gets no migration code.
  • Consequence: the skill change is release-bearing for the baseline and needs reviewed BASELINE_CHANGELOG.md notes.

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 fog when 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/* and project/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.mdx and 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-phase and implement-spec at 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 root docs/ 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.md and apps/wiki/AGENTS.md statements that give root docs/ authority.

Q10

Prerequisites:

  • Q1

Question: Retire docs/AGENTS.md and the docs subagent, or repoint the subagent?

Accepted answer (R2):

  • Retire both. The apps-wiki subagent owns all knowledge pages. Remove the docs entry from .agents/subagents/manifest.mjs and 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.md and ARCHITECTURE.md that make root docs/ the authority.

Q13

Prerequisites:

  • Q1

Question: What happens to historical docs/... mentions?

Accepted answer (R2):

  • Leave historical text unchanged: grill logs, log.md entries, 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 from sync-content.mjs and the $TURBO_ROOT$/docs/** input from turbo.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:health reports these findings. It never fails a build, a CI job or a commit gate.
  • Agents run it through docs-ingest-phase and 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 turbo build, check-types, test, test:packaged, test:browser with --affected. @punks/wiki has build, check-types and test, so a wiki change runs a Next.js build, tsc and vitest in CI.
  • turbo.json:96-115: @punks/wiki#build depends on check:content, so a stale projection fails the build. Its inputs include root CHANGELOG.md and BASELINE_CHANGELOG.md, so a changelog edit makes the wiki affected.
  • Already excluded: changed-file lint and format (run-ci-verification.mjs:69) and root test:ci check (--filter=!@punks/wiki, package.json:63). The commit gate contracts (.devpunks/commit-gate-contracts.json) name no wiki task.
  • apps/wiki/package.json postinstall: fumadocs-mdx runs on every bun install, also in CI jobs that do not touch the wiki.
  • The Vercel project harness-intelligence-wiki posts 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/wiki from every CI turbo run (--filter=!@punks/wiki in affected, plan and static).
  • Remove root CHANGELOG.md and BASELINE_CHANGELOG.md from 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 in apps/wiki/vercel.json skips 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:check and check scripts 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 test and test:ci scripts and the 5 wiki test files. Tests that CI never runs decay into dead code.
  • Rejected alternative: keep sync-content.test.mjs as an on-demand script.

Q20

Prerequisites:

  • Q2

Question: How is install and build friction removed?

Accepted answer (R2):

  • Remove postinstall: fumadocs-mdx; build and dev run fumadocs-mdx themselves. A wiki failure can then not break bun install.
  • Remove the build dependency on check:content. build writes the specs/ 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.json runs bun run build, which calls sync-content.mjs directly, not turbo. Removing the changelog turbo inputs (Q16) cannot make a deployed wiki stale.
  • apps/cli/scripts/classify-release-impact.mjs:168 classifies docs/ paths as non-product. After Q1 that prefix is dead; remove it with the migration.
  • .devpunks/installed.json records docsRoot for this repository, from apps/cli/src/registry/shape.ts:142. The next hi update derives it again from the tree, so deleting root docs/ needs no CLI change (Q3).
  • scripts/assert-wiki-generated-source.mjs is used only by the wiki type-check scripts; root lint:repo (package.json:48) also names it. Q18 orphans it; delete it, its turbo input and its lint:repo argument.
  • packages/config/AGENTS.md:26 and the other nested AGENTS.md files carry the Q9 rule text.
  • Q15 keeps check:health and Q19 deletes check-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, then create-spec, under project/specs/wiki/knowledge-unification/.

On this page