WCHT: a local knowledge base, answered through OMP

WCHT turns attributable documents into a local SQLite knowledge base. The corrected D-167 product is Wiki Chat: authenticated conversations backed by OMP, with instant lexical search retained as a fallback over the approved public corpus. The public operational wiki remains a separate reading surface. The architecture below is the corrected delivery contract; current deployment and completed runtime gates are recorded separately in receipts/wcht-web.json.

The starting tutorial is Dave Ebbelaar’s company knowledge-base walkthrough, supported by its official guide and pinned author repository. WCHT reuses the pattern—maintain documents, retrieve, answer with evidence—rather than provisioning the tutorial’s optional Sanity and OpenAI API services.

flowchart LR
  A[Attributed source documents] --> B[Local ingestion and chunks]
  B --> C[SQLite FTS5 and lexical ranking]
  C --> D[OMP kb-answer skill]
  D --> E[Cited answer or explicit gap]
  C --> H[Wiki Chat and instant search]
  F[Operational wiki] --> G[Human-readable design and receipts]

Read by task

  • tutorial-dissection — all 12 real chapter starts, written-source steps and prompts, source classes, caveats, and the OMP mapping.
  • architecture — preparation, stable chunk identity, incremental indexing, lexical reciprocal rank fusion, citation flow, and privacy boundaries.
  • runbook — exact ingest, re-ingest, query, OMP, evaluation, source-recovery, and publication procedures.
  • eval-results — the 20-question contract, actual run status, and what a score cannot prove.
  • decisions — why browser chat reuses OMP OAuth and a confined retrieval tool rather than adding a paid-key integration, vector service, or independently deployed MCP service.
  • Restricted operations — authorized private-corpus handling, release evidence, and publication rollback.

What exists, and what does not

AreaCurrent scope
Local knowledge engineSchema-2 Python CLI; UTF-8 Markdown/MDX/text/HTML ingestion; ten guide documents and 54 indexed chunks; 9/9 exercised CLI scenarios passed
Operator chatkb-answer in OMP; retrieve first, cite current evidence, decline unsupported detail
Index maintenancekb-ingest and explicit hash-based re-ingestion, not a watcher or a hosted content editor
Tutorial inputTen SHA-256-verified official guide captures; preserved video metadata and pinned repository are separate source evidence
EvaluationFresh retrieval 20/20 = 1.00; actual-answer lexical contract 20/20 = 1.00, above unchanged 0.90; full coverage and citation/refusal integrity passed
Browser surfacesOMP-backed Wiki Chat with instant search fallback; six public wiki pages and a restricted operations area; deployment proof recorded separately
EmbeddingsNot implemented; both retrieval rankings are lexical
Paid-key integrationsNot added; existing OMP OAuth is the answer-generation route
Project automationOne bounded native research baseline, research explicitly off, one retained memory lesson, two project skills, zero new managed skills
Video-specific evidenceSupplied automatic captions normalized and analyzed alongside 56 sampled frames; not a full-video download or audio-verified verbatim transcript

Local storage and retrieval do not make model inference local. An OMP answer can send the user’s question, retrieved passages, and relevant session context to its configured remote provider. Do not ingest confidential documents for that workflow without permission for that disclosure. See architecture and decisions.

First useful operation

Open Wiki Chat and sign in through Authelia. The corrected interface supports persisted conversations tied to the trusted Remote-User, streaming answers and available thinking/tool activity, and an independent instant-search fallback. Search vocabulary such as Fumadocs Next.js returns original source links, captured line bounds, chunk provenance, and matching wiki dissection links. Neither chat nor search exposes ingestion, database selection, or private-corpus opt-in. Browser assets stay same-origin; OMP inference uses its configured external OAuth provider.

From the WCHT project checkout, prepare the captured guide corpus, ingest it, and query it:

python3 scripts/prepare_corpus.py &&
python3 -m wcht --db data/kb.sqlite ingest corpus/tutorial &&
python3 -m wcht --db data/kb.sqlite search 'What does Fumadocs provide and what does Next.js do?' --limit 5

The CLI returns evidence, not a generated policy answer. Use the kb-answer skill in OMP to compose an answer from those retrieved passages. Check the returned source URL, evidence class, location, and chunk identifier. A guide citation must never be relabeled as a transcript or frame citation. runbook explains the full workflow and failure cases.

Verified reconstruction and its limits

The initial host capture recovered metadata and 12 chapter starts, but playback returned LOGIN_REQUIRED; that historical failure remains preserved. The user has since supplied authorized captions and keyframes from the Mac, with chapter metadata and provenance. Those inputs are available locally; access is no longer the blocker.

The supplied JSON3 captions were normalized into 1,307 nonblank cues from 2,655 events with zero text/timing mismatches. VTT and JSON3 differ, and automatic-caption text is not independently verified verbatim audio. The visual analysis covers 56 unique 1280×720 frames: all 12 chapter starts plus two seconds and 44 scene samples, with no byte or pixel duplicates. This is sampled recording evidence, not continuous video coverage or a full-video download. tutorial-dissection keeps recording observations separate from guide and repository evidence; raw frames are not automatically safe to publish.

The fresh native OMP run used openai-codex/gpt-6-astra, 20 actual CLI retrieval queries, and 19 cited source-span readbacks, without reading gold or old answers. Retrieval and the answer lexical contract both passed 20/20 at the unchanged 0.90 threshold. The earlier 17/20 remains historical in receipts/history-d161-before-media-completion/; a class-level kb-answer skill repair requires self-contained subjects, exact technical identifiers, named source actors, and source topic spelling. The dataset and evaluator were not changed. eval-results explains the three earlier failures and why this mechanical pass is not semantic correctness proof.

The fictional handbook is educational source material, not WCHT policy. This wiki publishes analysis and links, not the full upstream corpus. Project memory helps maintain workflow context; only freshly retrieved attributable evidence supports factual answers.

Wiki Chat runtime evidence

The integration owner observed real HTTPS cited OMP answers, a contextual follow-up reusing the native ACP session, actual retrieval-tool activity, unsupported-question refusal, clickable source links, mobile interaction, owner isolation, queue/capacity behavior, cancellation cleanup, and safety-guard fault gates. eval-results gives the bounded counts and timing. The real provider returned no thinking blocks; only a fixture exercised that transport. Canonical ingress was restored and the former proof request again redirected to Authelia; temporary proof services were stopped. Active wiki builds and live publication checks are recorded separately in the final deployment receipt.

Wiki sync

D-167 supersedes the lexical-only web scope with real OMP-backed Wiki Chat and retains instant search. The protected static /showcase/ alias exists separately; its content directory is empty with user permission, and no showcase content is claimed available. Final D-161 publication/mission evidence belongs in receipts/wcht-first-task.json; its old exact version is preserved in receipts/history-d161-before-media-completion/wcht-first-task.json. D-167 deployment observations remain in receipts/wcht-web.json, with wiki_sync before final current_state. No active build identity or new runtime proof is embedded here.

State block

Measured on 2026-09-26: fresh retrieval and actual-answer lexical contract 20/20, complete answer coverage, and passing citation/refusal integrity. Supplied-caption analysis and 56-frame reconstruction replace the former access/unfinished-analysis status. Historical CLI 9/9, provenance, refusal-control, and D-167 runtime proofs remain separately scoped.

Publication and full D-161 mission completion are governed by receipts/wcht-first-task.json and its identical external copy /home/loca/.flowmaster-d161/wcht-first-task.json; this page does not assert that wcht-d161-complete was issued. D-167 deployment and its separate signal remain governed by receipts/wcht-web.json; no fresh D-167 runtime proof is claimed.