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_revisioninSPEC.mdandIMPLEMENTATION-NOTES.mdfrontmatter: the Git blob ID of the file as read, before this run's bookkeeping (git hash-object -w <path>).sourcesin routed page frontmatter: one{path, sha256}entry per consulted raw original, with thesha256from its verified provenance record.
Classes
- fresh: the recorded blob differs from the current file only in
ingested_revision,last_ingested,linksandupdated, and eachsourcesentry is still the newest revision with an equalsha256. - 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_revisionandlast_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>, thenSource,Outcome,OutputsandUnfinished.
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-256dc3efe98ae62f23dd08acad13aba2e95287beb20b6bec2f4af0423557fe37401, repository-only. - Skill text:
wiki-ingest.md, skills commit0500473;requirements-grillandcreate-specbookkeeping point to the same log rule (commit3da47eb); teststests/wiki-reconciliation.contract.test.mjsandtests/wiki-bookkeeping.contract.test.mjs. - First recorded identity: the knowledge-maintenance implementation notes carry
ingested_revision.