Wiki Compile Page
Create or update a synthesized wiki page. Wiki pages are living documents that evolve as understanding deepens. They link to sources (evidence) and connect to other concepts via edges.
HARD-GATE
Tools
vault_search(existence check)vault_add_edge(relationship creation)vault_index(post-write index update)- CC file write/edit (page creation or modification)
Protocol
Create Flow
- Search vault to confirm topic is not already covered
- Determine entity type (concept, claim, entity, relation, question, evidence, failure, topic)
- Write page to
<type>s/<slug>.mdwith appropriate frontmatter:--- type: <entity_type> title: "<descriptive title>" created: <YYYY-MM-DD> confidence: <0.0-1.0> # required for claim/evidence types tags: [<relevant tags>] --- - Body contains synthesized content with
[[wikilinks]]to related pages - Add edges connecting this page to related pages
- Inline wikilinks: For each edge created, ensure the page body contains
[[dir/slug]]pointing to the target (dir/slug = target path minus.md). Place inline at semantically relevant location. Skip if already present. - Call
vault_index(incremental)
Update Flow
- Read existing page content
- Apply changes (add information, update confidence, add wikilinks)
- Add new edges if new relationships discovered
- Inline wikilinks: For each new edge, ensure the page body contains
[[dir/slug]]pointing to the target (dir/slug = target path minus.md). Place inline at semantically relevant location. Skip if already present. - Call
vault_index(incremental)
Yield
Returns: { operation: "create" | "update", path: string, edges_added: number }