Skip to content

epic: OKF as chant's knowledge surface #1057

Closed

Description

@lex00

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

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)

Activity

  1. added
    epic
    on Jul 26, 2026
  2. lex00 commented on Aug 7, 2026

    @lex00
    ContributorAuthor

    #1058 (PR #1576) and #1060 (PR #1585) have shipped.

    The emit side of the epic is now complete: chant explain --format okf produces a project bundle from the discovered graph, and every lexicon build emits its own knowledge bundle to dist/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's type is its resource type; a lexicon concept's type is 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.

  3. added
    area:core
    on Aug 23, 2026
  4. lex00 commented on Aug 25, 2026

    @lex00
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreepic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions