Harness Intelligence Wiki
Domains

Knowledge Freshness

The recorded source identities that let ingest tell fresh knowledge from stale, the three ingest outcomes, and the single log rule.

Knowledge Freshness

Freshness says whether integrated knowledge still matches the sources it came from. Ingest records the identity of every source it consumed; only those identities prove freshness. A path, a date or a legacy ingested: true proves nothing. Spec authority: AC-016, AC-021, AC-036; plan decisions P9 and P10.

Recorded identities

  • ingested_revision in SPEC.md and IMPLEMENTATION-NOTES.md frontmatter: the Git blob ID of the file as read, before this run's bookkeeping (git hash-object -w <path>).
  • sources in routed page frontmatter: one {path, sha256} entry per consulted raw original, with the sha256 from its verified provenance record.

Classes

  • fresh: the recorded blob differs from the current file only in ingested_revision, last_ingested, links and updated, and each sources entry is still the newest revision with an equal sha256.
  • stale: any other difference, a newer revision of a consulted original, or a recorded source that is gone.
  • freshness unknown: no identity recorded or the blob is unreadable; ingest evaluates it as stale.

Ingest outcomes

  • complete: bookkeeping writes the new ingested_revision and last_ingested.
  • partial: keeps the earlier ingested_revision, so the next run finds the source stale and resumes.
  • no-op: a freshness no-op writes nothing; a knowledge no-op writes bookkeeping.

Log

apps/wiki/log.md is the wiki chronology for capture, ingest, maintenance, grill and spec events. The single home of this rule is wiki-ingest.md#log.

  • Append each entry at the end. The log is append-only and oldest-first, with no entry cap.
  • Older entries keep their order, also where it is mixed. An archive is allowed only when the root log links it.
  • Entry heading: ## [YYYY-MM-DD] <kind> | <subject>, then Source, Outcome, Outputs and Unfinished.

Karpathy proposes the same parseable prefix so grep "^## \[" log.md | tail -5 lists recent entries (raw original, repository-only).

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: wiki-ingest.md, skills commit 0500473; requirements-grill and create-spec bookkeeping point to the same log rule (commit 3da47eb); tests tests/wiki-reconciliation.contract.test.mjs and tests/wiki-bookkeeping.contract.test.mjs.
  • First recorded identity: the knowledge-maintenance implementation notes carry ingested_revision.

On this page