Repository navigation
Description
Google Cloud published the Open Knowledge Format (OKF), an open spec (SPEC.md, Apache 2.0) for representing curated knowledge as a directory of markdown files with YAML frontmatter.
Conformance is deliberately cheap. Every non-reserved .md needs parseable frontmatter with a non-empty type. index.md and log.md are reserved. Consumers must not reject a bundle for unknown type values, additional frontmatter keys, broken links, or a missing index.
Why this is a fit for chant
Google's stated requirement list is the property set chant already argues for, applied to knowledge instead of configuration: producible without an SDK, consumable without an integration, survives moving between systems, lives in version control beside the code it describes, readable by humans and parseable by agents as the same file with no translation layer.
Two specific gaps this closes.
chant produces knowledge that only reaches agents through an integration. The typed graph, explain, describe, build provenance, ownership markers, and lexicon semantics all encode what a resource is and what governs it. Today that reaches an agent through the MCP server. A bundle in the repo needs no server.
chant has no home for what it cannot infer. Structure is inferable: types, props, dependency edges, ownership, applicable rules. Intent is not. Why a suppression exists, why two networks are peered, what the runbook is when a component fails. That knowledge currently lives in comments or nowhere, which is a real gap given the pitch is types plus semantic lint and intent sits outside both.
Explicit non-goal: this is not a lexicon
Lexicons target things you declare and then deploy. Knowledge is neither declared as typed objects nor deployed, and hand-authoring concept docs as TypeScript would be worse than writing markdown. The direction here is emit and consume, never declare.
Tasks
- feat(core): emit an OKF knowledge bundle from the discovered graph (
explain --format okf) #1058 —explain --format okf, emit a conformant bundle from the discovered graph - design(core): OKF bundles as project input — binding authored concepts to inferred entities #1059 — design, OKF bundles as project input and how a concept binds to an entity
- feat(lexicons): generate an OKF knowledge bundle per lexicon at build time #1060 — lexicon OKF bundles generated at build time
Sequenced deliberately. The emit path proves the mapping against a real graph for very little work. The input path carries the actual design risk. Lexicon bundles are the most mechanical and can land last.
Risk, stated plainly
OKF is v0.2 and Google calls it a starting point rather than a finished standard. Nothing load-bearing should depend on it yet.
The reason to start anyway is that the downside is bounded. Emitting markdown with frontmatter into git is useful whether or not the format is adopted, and if OKF goes nowhere the residue is documentation. That asymmetry is the argument, not confidence in the standard.
Input path implementation (from the #1059 design)
- feat(core): OKF knowledge bundle reader — load and bind authored concepts #1864 — OKF knowledge bundle reader,
bindsresolution,knowledgeconfig key - feat(core): COR022 stale knowledge binding warning #1865 — COR022 stale knowledge binding warning
- feat(core): lint suppressed section resolving okf: concept citations #1866 — lint suppressed section resolving
okf:concept citations - feat(core): explain knowledge sections and chant://knowledge MCP resource #1867 — explain knowledge sections and
chant://knowledgeMCP resource
Activity
lex00 commentedon Aug 7, 2026
#1058 (PR #1576) and #1060 (PR #1585) have shipped.
The emit side of the epic is now complete:
chant explain --format okfproduces a project bundle from the discovered graph, and every lexicon build emits its own knowledge bundle todist/okf/— one concept per resource type and per rule, cross-linked both directions, spec-sourced property descriptions carried through, shipped in the published packages. The two bundle kinds resolve the vocabulary question from #1060: a project concept'stypeis its resource type; a lexicon concept'stypeis its category (resource-type,lint-rule,post-synth-check).#1059 (design: OKF bundles as project input, and how a concept binds to an entity) is the only remaining task.
feat(core): OKF knowledge bundle reader — load and bind authored conc…
lex00 commentedon Aug 25, 2026
Reader side complete — all four children shipped and merged: #1864 (okf-read.ts reader + knowledge config key, PR #1898), #1865 (COR026 stale-binding warning, PR #1914), #1866 (okf: citation resolution in stylish suppressed output, PR #1906), #1867 (explain knowledge sections + chant://knowledge MCP resource, PR #1912). Emit side had shipped earlier (#1058/#1060). Closing the epic.