Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

OKF Runtime

OKF Runtime is a lightweight, deterministic consumption engine for Open Knowledge Format (OKF) bundles. It is designed to help agents and tools discover, index, and traverse OKF repositories without requiring a database, daemon, or heavy external dependencies.

OKF Runtime

What it is

  • A filesystem-first runtime for OKF markdown bundles
  • A deterministic metadata and link graph builder
  • A cache-friendly engine for bundle discovery, link analysis, and composition
  • A thin, JSON-friendly runtime API for downstream tools and agent integrations
  • Provenance, lifecycle, and derived trust signals for OKF v0.2 bundles

Why this exists

Most existing OKF tooling focuses on authoring, validation, or enrichment. OKF Runtime focuses on efficient consumption:

  • discover bundles and markdown concepts
  • parse YAML frontmatter and markdown bodies
  • index metadata, tags, and types
  • build forward and reverse link graphs
  • compose temporary topic bundles without mutating source files
  • validate links, anchors, and graph structure
  • derive trust tiers and staleness from v0.2 frontmatter

Core design principles

  • Deterministic before AI: solve retrieval tasks without consuming LLM context
  • Library first: runtime logic belongs in reusable modules, not only CLI wrappers
  • Filesystem is source of truth: markdown files remain authoritative
  • Zero infrastructure: no database server, no background daemon, no cloud service
  • Progressive enhancement: features should layer cleanly from filesystem to CLI to optional agent integrations

Current focus

The implemented Phase 1 and 1.5 surface includes:

  • filesystem scanner and bundle discovery
  • markdown/YAML parser and metadata extraction
  • cache-based metadata and link indexes
  • graph construction for forward and reverse links
  • v0.2 nested frontmatter, provenance, trust, lifecycle, and okf_version support
  • lightweight CLI commands for discovery, catalog, query, graph, compose, and linting

Repository structure

  • okf_runtime/ - runtime library and CLI
  • scripts/ - thin agent-facing entry point
  • references/ - agent-facing usage and specification material
  • docs/ - architecture, decisions, contribution guidance, and plans
  • tests/ - runtime tests and fixtures

Documentation

  • docs/ARCHITECTURE.md – runtime architecture and goals
  • docs/CONTRIBUTING_GUIDE.md – contribution principles
  • docs/IMPLEMENTATION_PLAN.md - phased roadmap and acceptance criteria
  • references/OKFmin.SPEC.md – distilled OKF v0.1 specification
  • references/USAGE.md - implemented functionality and command examples

Agent Skills packaging

This directory is a conformant Agent Skill package: its okf-runtime directory matches the frontmatter name. The Python implementation lives in okf_runtime/, agent-facing material in references/, and maintainer documentation in docs/.

Contributing

Contributions should include:

  • tests
  • documentation
  • performance considerations
  • rationale for changes

See docs/CONTRIBUTING_GUIDE.md for more details.

License

This repository is intended to be a community-driven open source project. Please refer to the repository license file for licensing details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages