-
Notifications
You must be signed in to change notification settings - Fork 4
Wiki Pages and Provenance
Language: English · 简体中文
Wiki Pages are LWC's maintained knowledge layer. A Page combines readable Markdown with stable identity, retrieval metadata, citations, provenance, and links.
| Field | Purpose |
|---|---|
| Slug | Stable identifier used by commands, filenames, and Wiki links |
| Title | Human-readable Page name |
| Kind | Retrieval and maintenance category |
| Summary | One-line index and search description |
| Body | Maintained Markdown knowledge |
| Source IDs | Immutable evidence cited by the Page |
| Provenance | Explicit non-source origin of durable claims |
| Links | Outgoing [[slug]] relationships extracted from the body |
Use stable slugs. Renaming by delete-and-recreate breaks links, retrieval history, and external references.
| Kind | Use |
|---|---|
source |
Traceable summary of one Source |
concept |
Technique, pattern, rule, or idea revised across evidence |
entity |
Named person, organization, product, component, or dataset |
query |
Durable answer, decision, or open question |
comparison |
Structured comparison across alternatives or evidence |
synthesis |
Cross-cutting conclusion that integrates several Pages or Sources |
Kinds improve discovery and maintenance. They do not grant authority by themselves.
Repeat --source for every immutable Source that supports the Page:
lwc page put storage-model \
--title "Storage model" \
--kind concept \
--summary "Canonical and derived storage boundaries" \
--file storage-model.md \
--source 12 \
--source 18Any cited Page automatically receives source-grounded provenance. Do not pass that value manually.
A citation means the Source supports the Page's claims. It is not merely a “related reading” link. Explain uncertainty and conflicting evidence in the Page body.
Use explicit provenance when durable knowledge does not come from an immutable Source:
lwc page put accepted-boundary \
--title "Accepted boundary" \
--kind query \
--summary "User decision and current verification state" \
--file boundary.md \
--provenance user-provided \
--provenance agent-observed-
user-providedrecords a durable user statement or decision. -
agent-observedrecords a fact the Agent verified from current authorized evidence. -
hypothesisrecords a useful possibility that is not yet verified.
Do not convert a hypothesis into an observation merely because it remained unchallenged.
page put replaces the complete Page body, citation set, explicit provenance set, and extracted links in one logical update. Before replacing a Page:
lwc page show storage-model
lwc page links storage-modelThen repeat every still-valid --source and non-source --provenance value. Omitting one removes it.
This behavior prevents stale hidden metadata, but it also means blind partial updates are unsafe.
Use [[stable-slug]] in the Markdown body:
The canonical database is described by [[storage-model]].
Recovery behavior is defined in [[checkpoint-policy]].page links returns outgoing links, backlinks, and unresolved links. Lint reports broken relationships and orphan maintenance issues.
Links express navigation and structural relationships. Strong semantic claims such as CONTRADICTS or DEPENDS_ON belong in explicit graph relations with provenance, reasons, confidence, and supporting Source IDs.
A useful Page:
- answers one retrievable question or explains one stable concept;
- states its scope and current status;
- distinguishes facts, decisions, and hypotheses;
- cites exact Sources when available;
- preserves meaningful contradictions;
- links to related concepts without duplicating their full content;
- includes operational verification when the claim concerns runtime behavior;
- avoids chat chronology and temporary progress.
- Search for the concept before creating a new slug.
- Open the current Page and its links.
- Inspect cited Sources whose freshness affects the claim.
- Merge verified new knowledge while preserving still-valid material.
- Repeat the complete citation and explicit provenance sets.
- Run lint and fixed retrieval checks.
Use a changeset when the revision depends on other Page, Source, Purpose, Schema, or ingest mutations.
lwc page remove obsolete-pageRemoval is guarded. LWC refuses to remove a Page with inbound Wiki links. Update or remove those references first. Never delete projected Markdown or database rows manually.
Provenance supports auditability; it does not automatically change search rank. If a verified canonical Page is hard to retrieve, first improve its title, summary, body, and links. Use explicit bounded weight or query feedback only after inspecting search --explain.
A Page update is complete when:
- the slug and kind match one stable concept;
- the summary makes the Page discoverable;
- all current claims have citations or explicit provenance;
- still-valid prior evidence and links were preserved;
- contradictions and uncertainty remain visible;
- lint and both fixed retrieval forms pass.
Next: Search and context
LWC Wiki
- Home · 首页
- Project overview · 项目简介
- Basic concepts · 基本概念
- Use cases · 应用场景
- Installation and upgrades · 安装与升级
- Quick start · 快速开始
- Persistent memory · 持久记忆体系
- Agent workflow and memory policy · Agent 工作流与主动记忆策略
- Sources and ingestion · 来源与知识整合
- Wiki pages and provenance · Wiki 页面与来源证明
- Search and context · 搜索与上下文载入
- Document knowledge graph · 文档知识图(记忆图网)
- Code graph · 代码图
- Word graph · 词图
- Tags and strong context · 标签与强上下文
- Document conversion · 文档转换
-
MCP server and
lwc_explore· MCP 服务与lwc_explore - Skills, Hooks, and Instructions · Skills、Hooks 与 Instructions
- AgentTarget installation · AgentTarget 安装与集成
- Changesets · Changeset 原子变更
- Work system · Work 任务系统
- Checkpoints and rollback · Checkpoint、恢复与回滚
- Read-only Viewer · 只读可视化界面
- Architecture overview · 总体架构
- Storage and data model · 存储与数据模型
- Retrieval and indexing · 检索与索引设计
- Graph projection and performance · 图投影与性能设计
- MCP, Hooks, and AgentTarget design · MCP、Hook 与 AgentTarget 设计
- Safety and trust boundaries · 安全模型与信任边界
- Maintenance and diagnostics · 维护与诊断
- Troubleshooting and FAQ · 故障排查与常见问题
- Migration and compatibility · 迁移与版本兼容
- Support and issue reporting · 获取帮助与问题反馈
- CLI and configuration reference · CLI 与配置参考
- JSON output and error contract · JSON 输出与错误契约
- Limits and glossary · 系统限制与术语表
- Contributing and development · 贡献与开发指南
- Testing and release process · 测试与发布流程
- Wiki style guide · Wiki 编写规范