OKF graph, distillation & code links
Create structured knowledge, explore its relationships, and check references to source files.
Start with a small OKF node
An OKF document uses YAML frontmatter and a Markdown body. Give it a stable ID, a title, and an authority level. Use experimental for an unreviewed draft; canonical is an authority label, not a correctness check.
---
id: example-policy
title: Example output policy
domain: engineering
authority: experimental
version: "1.0"
tags: [outputs, review]
links:
- target: core/types.ts
relation: defined_in
---
# Example output policy
- Generated deliverables should have descriptive filenames.
- Verify an output before marking the task complete.
markdownImport the Markdown node through the Knowledge Base’s OKF controls. Replace the example code path with a real path in the workspace you intend to check.
Turn a document into a draft node
- In Knowledge Base, choose Auto-Distill.
- Use Ingest File or Paste Raw Text, then supply the document or excerpt.
- Optionally set the title and domain, then choose Start Distillation.
- Inspect the saved node’s extracted rules, tags, links, and authority before relying on it.
Explore the Force Graph
- Switch the OKF view from Table to Force Graph.
- Use the graph’s zoom and pan interactions to explore clusters.
- Select a node to inspect its content and relationships.
- Use the OKF search field to find nodes by title, tags, or domain.
Graph edges come from recorded relationships and wiki-style links. A displayed connection means the relationship was recorded; review the underlying node for its meaning.
Understand code-link verification
The verifier resolves code-reference targets against a workspace root and reports existing and missing paths. Recognized relationships include implemented_by, tested_by, validates, defined_in, and code_reference.
| Result | Meaning |
|---|---|
| Valid link | The resolved path exists. |
| Broken link | The path could not be found or resolved; check the workspace root and target. |
| Behavioral correctness | Not evaluated by this verifier. Run the relevant tests and review the implementation. |
Implementation sources
Paths in your AI Plate source checkout:
core/okf-store.tscore/hybrid-knowledge-router.tsui/index.htmlui/app.jstests/okf-distill-and-graph.test.ts
