# TODO This file tracks larger Lumi work that cannot safely be completed in one pass. Keep pending work under the relevant category and move completed items to the Done section with a short note. ## OKF Knowledge System - Add `knowledge/core`, `knowledge/plugins`, `knowledge/community`, and `knowledge/corrections` directories with documented ownership rules. - Implement OKF Markdown/frontmatter parsing with stable IDs, scopes, status, priority, tags, generated/editable flags, and timestamps. - Generate fixed core/plugin OKF from routes, commands, schemas, plugin metadata, README docs, and defaults. - Add admin-editable community OKF for community names, owner/admin names, bot name, currency, items, roles, lore, links, moderation rules, command rules, and local terminology. - Add corrections OKF files created only through admin review. - Implement safe placeholder resolution for core/plugin OKF references such as `{{community.currency.primary_name}}`. - Preserve source metadata for every retrieved OKF chunk: path, id, heading, score, and excerpt. ## OKF Retrieval and Indexing - Implement or adapt an OKF indexer that chunks Markdown by heading. - Re-index only changed OKF files when possible. - Enforce retrieval priority: active corrections, community OKF, plugin OKF, core OKF. - Add retrieval boosts for corrections. - Ensure missing placeholders never crash context injection. ## Feedback Loop - Add thumbs up/down controls to Lumi chat answers. - Store feedback payloads with rating, prompt, response, retrieved context, optional comment, model/provider, timestamp, and review status. - Show an optional comment field for thumbs down and keep thumbs up lightweight. - Ensure feedback never directly modifies OKF. ## Admin Feedback Review - Add an admin feedback review page or section. - Show prompt, response, rating, comment, retrieved OKF sources, model/provider, and timestamp for each feedback item. - Add review actions: reviewed/no action, good, bad retrieval, bad response, missing knowledge, archive/delete. - Add correction creation UI with title, tags, affected topic/file, and Markdown body. - Save approved corrections as OKF files and re-index after save. - Add links from feedback rows to generated correction files. ## Storage and Preservation - Store feedback queue, review status, source context snapshots, and correction links in SQLite or existing app storage. - Keep community OKF, corrections OKF, feedback/review data, and source metadata preserved across updates. - Ensure generated OKF is reproducible and not accidentally overwritten by admin edits. ## Done - 2026-06-17: Added permanent repo-update architecture for ZIP-origin installs using `data/update-cache/repo`, non-live-git metadata checks, snapshot-copy apply, update-state recording, and preservation of user-owned paths. - 2026-06-17: Separated Lumi AI `tool_info.json` tools from normal plugin update rows and rendered tools under the `lumi_ai` plugin row.