Harness Intelligence Wiki
Domains

Wiki Contract

The six fields a project declares in its wiki-root AGENTS.md so every docs-ingest branch knows where wiki knowledge lives and who owns it.

Wiki Contract

The wiki contract is the project's own declaration of its wiki. It lives in the wiki-root AGENTS.md, which the project owns. Every docs-ingest-phase branch reads it; only setup and adoption writes it. Spec authority: AC-001–AC-004.

Fields

A resolved contract declares all six:

FieldDeclaresHarness value
Wiki locationWiki root and rendererapps/wiki, Next.js Fumadocs
Raw homeRaw sources and provenance recordsraw/
Canonical article treeThe one routed tree and its navigation metadatacontent/docs with meta.json
Discovery entrypointsRoot and section indexes, machine viewscontent/docs/project/index.mdx, section indexes, /llms.txt, /llms-full.txt, per-page Markdown, search
Source ownersAuthored, projected or other-owned areas; visibilityProjections from specs/ via scripts/sync-content.mjs; every other page authored; whole app private
Validation commandsChecks for storage, knowledge/navigation, renderingcheck:health, check:content

The Harness values are declared in the ## Wiki contract section of apps/wiki/AGENTS.md. That file is the authority; this table is a reading aid.

Open defect (found 2026-10-08). The contract declares per-page Markdown at /llms.mdx/docs/<path>/content.md; that route works. The shorter rewrite /docs/<path>.mdx returns 404 in the production build: apps/wiki/proxy.ts is not compiled because the app uses src/app. The proxy fix is open; see the knowledge-maintenance implementation notes.

Invariants

  • Each field is resolved, missing or conflicting against the working tree. Anything other than six resolved fields is a gap.
  • A gap blocks writes to the destination it covers. Without setup authority the run writes a gap report instead.
  • Readiness has three separate results: source storage, knowledge/navigation, rendering. A failure stays in its own area.

Implemented behavior and evidence

  • Skill text: wiki-contract.md, skills commit 2319349; test tests/wiki-knowledge-entry.contract.test.mjs.
  • Harness contract: commit 7308b0837. The T9 run resolved all six fields from apps/wiki/AGENTS.md lines 15–20.

On this page