5.1 KiB
Wiki Schema
This directory is a personal knowledge wiki for the ESP32-S3-LCD-1.3 project — Inst. Cluster, the slave/extension unit of the BMW M57N → Nissan Patrol swap display system. It is maintained by the LLM agent; the human curates sources and asks questions. Read this file before doing anything in wiki/.
It is the sibling of the wiki in ../../ESP32-S3-Touch-LCD-5B/wiki/ (Main CTRL). The two repos are separate git repositories with separate remotes. Never create or edit files outside this repo's directory. Cross-references into the sibling wiki are plain text, not [[wikilinks]] (Obsidian vaults do not link across vaults) — write them as (sibling: 5B wiki → page-name).
What this wiki is for
Domain knowledge that is NOT derivable from the firmware repo:
- Waveshare ESP32-S3-LCD-1.3 hardware: pinout, free GPIO, peripherals, power, quirks, gotchas
- The link between Main CTRL and Inst. Cluster: physical layer, packet contract, timing, failure modes, and the wired + BLE redundancy design
- Inst. Cluster's outputs into the Nissan Patrol: driving the cluster's RPM and coolant-temperature gauges, driver electronics, cluster behaviour
- Design decisions and their rationale; what was tried and why it was rejected
- Findings from datasheets, forum posts, Waveshare docs, bench measurements, scope traces
What does NOT belong here: code structure, build commands, firmware implementation details. The repo (its root CLAUDE.md and README.md) is the source of truth for those. The wiki may reference firmware facts when they matter for domain reasoning (e.g. "firmware currently times out after 1 s without a packet"), always marked (repo).
Division of labour with the sibling wiki: CAN bus decoding, the BMW engine, the donor vehicle and the swap itself live in the 5B wiki. This wiki only records what Inst. Cluster needs from that work (which signals it consumes, which packet fields carry them). Do not duplicate CAN ID tables here — point at the sibling.
Layout
wiki/
CLAUDE.md # this schema — co-evolves with the workflow
index.md # catalog of all pages, by category — update on EVERY change
log.md # append-only chronological record of ingests/queries/lints
raw/ # immutable source documents (web clips, PDFs, photos, scope captures, logs) — NEVER edit
sources/ # one summary page per raw source
pages/ # entity & concept pages (the heart of the wiki)
Page conventions
- Filenames: kebab-case, e.g.
esp32-s3-lcd-1-3.md. - Every page starts with YAML frontmatter:
--- type: entity | concept | source | synthesis tags: [hardware, link, gauges, ble, ...] updated: 2026-09-21 --- - Link liberally with
[[wikilinks]]. A link to a not-yet-existing page marks future work, not an error. - Confidence labels are mandatory for factual claims — this unit drives real gauges in a real vehicle:
(verified)— confirmed on real hardware / with a meter or scope by the user(source: X)— from an ingested source inraw/(summarised insources/)(repo)— what the firmware currently does (not necessarily correct!)(sibling: 5B wiki → page)— established in the Main CTRL wiki; check there before relying on it(unverified)— LLM prior knowledge, forum lore, or a design proposal; treat as a hypothesis
- Contradictions between sources — including between the two repos' copies of the shared protocol header — get flagged inline with a
> [!warning]callout, not silently resolved.
Workflows
Ingest
- User drops a file into
raw/and asks to process it. - Read it fully. Discuss key takeaways with the user if interactive.
- Write
sources/<name>.md: frontmatter, 1-paragraph summary, key facts as bullets, relevance to open questions. - Update every affected page in
pages/— integrate, don't append blindly. Flag contradictions. - Update
index.md, append tolog.md.
Query
- Read
index.mdfirst, then drill into relevant pages. If the question touches CAN decoding or the vehicle, also read the sibling wiki'sindex.md. - Synthesize an answer with citations (page links + confidence labels).
- If the answer is durable (a comparison, an analysis, a decision), file it as a new page and index it.
Lint (periodic, on request)
Check for: contradictions, stale claims, orphan pages, [[links]] to pages worth creating, unverified claims that could now be verified, drift between this repo's and the sibling repo's protocol header, gaps worth a web search. Report findings; fix with user's blessing.
Log format
Append-only. Each entry starts with ## [YYYY-MM-DD] <op> | <title> where <op> is ingest, query, lint, update, or setup. Greppable with grep "^## \[" log.md.
Prime directives
raw/is immutable.- Never let an
(unverified)claim silently upgrade itself — only real-world verification by the user promotes a claim to(verified). - Keep
index.mdandlog.mdcurrent on every operation; a stale index is worse than no index. - Nothing outside this repo directory is ever written by work on this wiki.