Harness Intelligence Wiki
Domains

Wiki Health and Recovery Flow

How docs-ingest-phase checks wiki structure and meaning separately, resumes interrupted work from durable evidence, and keeps the chronology.

Wiki Health and Recovery Flow

Health keeps the wiki sound as it grows, and recovery continues interrupted work without duplicate originals or a second completion claim. Spec authority: FLOW-005, AC-031–AC-036.

Karpathy calls this operation "Lint": a periodic health check for contradictions, stale claims, orphan pages and missing cross-references (raw original, repository-only). Harness splits that idea into a mechanical structural record and a scoped semantic record.

Trigger and actors

  • Trigger: a health or maintenance request, or a resume after an interruption, retry or lost acknowledgement.
  • Ingesting agent: runs the checks, reviews meaning in scope, repairs or reports.
  • Project owner: decides contradictions and conflicting concurrent changes. Inside AFK delivery-phase, the ingesting agent decides each one as an Autonomous Decision and posts each out-of-bounds one to the thread.

Steps

  1. Structural record. Run every validation command the wiki contract declares. Record command, covers and result for each; a check class without a covering command is unavailable.
  2. Semantic record. Read the pages in scope (touched pages, their linkers and pages that share their sources). Record each finding as stale_claim, contradiction, missing_connection or discovery_gap, with status resolved or unresolved.
  3. Lifecycle. A change to a learning artifact or projection gets one justified refresh outcome; references are repaired. Source absence alone never authorizes deletion.
  4. Overlap. Re-read a shared page from disk and Git before a write; preserve concurrent changes or report an explicit conflict.
  5. Resume. Inspect preserved originals, their commits, routed outputs and log entries; continue only the missing work.
  6. Chronology. Append the event to log.md by the log rule.

Terminal outcome

A health outcome with separate structural, semantic, refresh_outcomes, resume and conflicts parts (health outcome). A structural pass never claims semantic accuracy or deployed visibility.

Implemented behavior and evidence

  • Raw source (sources): apps/wiki/raw/external/karpathy-llm-wiki/ac46de1ad27f/llm-wiki.md, SHA-256 dc3efe98ae62f23dd08acad13aba2e95287beb20b6bec2f4af0423557fe37401, repository-only.
  • Skill text: health.md, skills commit 2319349; test tests/wiki-health.contract.test.mjs.
  • Project structural check: apps/wiki/scripts/check-health.mjs (bun run --cwd apps/wiki check:health), commit 1b6aa37fa. Since IP-439 it is report-only, runs in no gate, and has no fixture tests.
  • First real run (T9, 2026-10-08): 38 structural findings (30 link, 8 navigation) went to 0. Projected root docs then got their repository-relative links rewritten by scripts/sync-content.mjs (retired with root docs/ in IP-439); the other findings were fixed at their source.

On this page