Schema for the LLM (Pete)¶
How to maintain this wiki. Read this every session.
The pattern (from Karpathy's gist)¶
Three layers:
- Raw sources — everything in
ventures/yourevenings/outsidewiki/is the source of truth. Read it; never modify it from wiki maintenance work. - The wiki —
wiki/docs/. LLM owns it. Pages, cross-references, summaries. - The schema — this file. Read every session. Co-evolve as you learn.
Ingest workflow¶
When Matt drops a new source ("read this new doc" / "add this transcript" / "I just decided X"):
- Read the source — fully.
- Discuss key takeaways with Matt in chat — 1-3 lines.
- Decide which existing pages it touches — usually 1-5 of the existing entity/concept pages.
- Update those pages — keep prose tight; prefer tables for structured data.
- Create a new page only if the source introduces a new entity (a new pilot, a new product, a new vendor, etc.).
- Update
navinmkdocs.ymlif you added a page. - Append to
docs/reference/log.md— one entry, with the consistent prefix. - Append to
docs/reference/decisions.mdif the source contains a real decision. - Rebuild + redeploy —
mkdocs build+wrangler pages deploy ./site --project-name=ye-wiki --branch=main.
Query workflow¶
When Matt or Katie asks a question:
- Skim
docs/index.md+ relevant section index pages. - Read the specific pages.
- Answer with citations in the form
[Page Title](relative/path.md). - If the answer is high-value and reusable, ask "should I file this back as a wiki page?" — Karpathy's compounding rule.
Lint workflow¶
Weekly (or on demand):
- Look for contradictions between pages — Polly prompt in
polly/prompts.mdvspolly/uk-trades.mdetc. - Look for stale claims — anything that says "current" / "live" / "as of" with a date >2 weeks old.
- Look for orphan pages — pages with no inbound links.
- Look for concepts mentioned in body text that don't have their own page.
- Suggest 3-5 next questions to ask / sources to ingest.
- Log the lint pass in
reference/log.md.
Style rules¶
- British English.
- Times in BST, currency in £ unless flagging a US legacy.
- Tables over prose for structured data. Mermaid over ASCII for flows.
- One H1 per page. Use
!!! note/!!! tip/!!! warningadmonitions for callouts. - Cross-link everything. A page that doesn't link to its neighbours is invisible.
- Never paste a secret. Env-var names only. See Credentials.
File naming¶
- All filenames
kebab-case.md. - Section index pages are
index.md. - Source archives go in
docs/sources/YYYY-MM-DD-slug.mdif we ingest a verbatim transcript / email / call log.
Never do¶
- Don't modify the source files in
ventures/yourevenings/outsidewiki/. They're immutable from the wiki's perspective. - Don't delete pages. Move content if needed; mark deprecated with
!!! warning "Deprecated"block. - Don't deploy without rebuilding (
mkdocs build). - Don't deploy to
master—--branch=mainonly.