Skip to content

Google OKF (Open Knowledge Format)

OKF (Open Knowledge Format) is a specification from GoogleCloudPlatform/knowledge-catalog for machine-readable frontmatter on knowledge pages. It enables:

  • Trust tier display โ€” human-reviewed vs agent-authored content
  • Automated staleness detection โ€” stale_after dates trigger annual review
  • Provenance tracking โ€” generated.at, verified.at, generated.by, verified.by
  • Cross-repo bundle exchange โ€” OKF-conformant bundles can be shared between repositories

Colibri adopted OKF v0.2 in commit 0c964cd (2026-07-26).

Every docs/wiki/*.md page now carries this frontmatter:

---
type: "Agent Harness Reference" # Type taxonomy (see below)
title: "Agent Harness Reference" # Human-readable title
description: "The zot (agent) + Colibri (control plane) split..."
tags: [architecture, cost, skill, task, agent, harness, hive, deploy, jail, mother, vault, terminal, tmux, ssh, benchmark, pricing, tokenomics, naming, quality, contract, store, pull, daemon, factory, rust, bare, llama, glm, deepseek, a2a, model, doctor, headroom, dashboard, operator, routing, pane, external]
status: "stable" # stable | draft | deprecated
stale_after: "2026-12-31" # ISO date โ€” triggers annual review
generated:
by: "human:sam" # human:sam | agent:zot/v1.2.3
at: "2026-06-15T10:00:00Z" # ISO 8601 timestamp
verified:
- by: "human:sam"
at: "2026-06-20T09:00:00Z"
---
TypePages
Agent Harness Referenceagent-harness, agent-events-reference, glasspane, hive-pane, hive-routing, runtime-inventory
Cost Modelcost-model, deepseek-pricing, glm-pricing, tokenomics
Skill Catalog Entryskills-catalog, layered-soul
Task Board Designtask-board, task-dispatch-flow
Operational Proceduredeployment, doctor, jail-confinement, mother-hive, updating-a-node, vault-provision, terminal, tmux-safety
Glossaryabbreviations
Referencecontracts, store-schema, pull-requests, naming-decisions, quality-gates, factory-model, rust-glossary, bare-metal-freebsd, llama-cpp, llama-cpp-benchmarks, glm-pricing, deepseek-pricing, a2a-complexity-audit, model-selection-and-eval, doctor, headroom-sidecar, ssh-bridge, cost-dashboard, operator-attention, operator-cli, external-mcp
Architecture Decision(reserved for ADRs)
Tiergenerated.byverified.byDisplay
Human-reviewedhuman:samhuman:samโœ… Green badge
Agent-authored, human-verifiedagent:zot/v1.2.3human:sam๐ŸŸก Yellow badge
Agent-authored, unverifiedagent:zot/v1.2.3โ€”๐Ÿ”ด Red badge

The operator-attention predicate uses these tiers to surface pages needing review.

The script at scripts/wiki-to-okf.sh adds frontmatter to all wiki pages:

Terminal window
# Dry run โ€” show what would change
./scripts/wiki-to-okf.sh --dry-run
# Apply frontmatter to all pages
./scripts/wiki-to-okf.sh
# Apply and run wiki-lint --strict
./scripts/wiki-to-okf.sh --verify
  1. Skips index.md (gets okf_version: "0.2" only) and log.md
  2. Extracts title from first # heading
  3. Extracts description from first paragraph after title
  4. Infers type from filename keywords
  5. Generates tags from filename keywords
  6. Sets stale_after: "2026-12-31" (annual review cycle)
  7. Sets generated.by: "human:sam" and verified.by: "human:sam" (all current pages are human-reviewed)
Terminal window
case "$filename" in
*pricing*|*cost*|*tokenomics*) type="Cost Model" ;;
*skill*|*catalog*|*layered-soul*) type="Skill Catalog Entry" ;;
*task*|*board*|*scheduler*|*dispatch*) type="Task Board Design" ;;
*agent*|*harness*|*event*|*hive*|*runtime*|*glasspane*) type="Agent Harness Reference" ;;
*deploy*|*jail*|*mother*|*updating*|*vault*|*terminal*|*tmux*) type="Operational Procedure" ;;
*abbrev*) type="Glossary" ;;
*naming*|*quality*|*contract*|*store*|*pull*|*daemon*|*factory*|*rust*|*bare*|*llama*|*bench*|*glm*|*deepseek*|*a2a*|*model*|*doctor*|*headroom*|*ssh*|*cost-dash*|*operator*|*hive-pane*|*hive-rout*|*external*) type="Reference" ;;
*) type="Architecture Decision" ;;
esac

The OKF frontmatter is validated at three points:

  1. wiki-lint --strict (in CI build)
    Checks all wiki pages for:

    • dangling references (broken links) โ€” links pointing to non-existent pages
    • resurrected names โ€” old terms that reappeared after being renamed
    • orphan pages โ€” pages that exist but nothing links to them
  2. ci-checks.sh --strict (in CI build)
    Runs the full test suite including wiki-lint โ€” part of the pre-merge gate that runs before pushing to Git repository

  3. Pre-push hook (before git push, local)
    Blocks git push if wiki-lint fails โ€” same as clippy warnings blocking push

---
type: "Glossary"
title: "Abbreviations"
description: "Expansions for acronyms and technical terms used across Colibri wikis. When a new term enters a wiki page, add it here so the next reader doesn't have to search."
tags: [abbreviations, glossary]
status: "stable"
stale_after: "2026-12-31"
generated:
by: "human:sam"
at: "2026-06-15T10:00:00Z"
verified:
- by: "human:sam"
at: "2026-06-20T09:00:00Z"
---
FeatureHow it helps
Staleness alertsstale_after: 2026-12-31 โ†’ annual review reminder in TUI/CLI
Trust transparencyOperator sees which pages are human-verified vs agent-generated
Audit trailgenerated.at / verified.at timestamps for compliance
Cross-repo syncOKF bundles can be exchanged with other GoogleCloudPlatform/knowledge-catalog consumers
Agent authorshipFuture agent-authored pages get generated.by: agent:zot/vX.Y.Z for traceability

The โ€œthree cost parallelsโ€ from tokenomics.md โ€” three strategies to reduce LLM API costs:

Price
โ†‘
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚ PEAK โ”‚ โ”‚ PEAK โ”‚ โ† daytime / high demand
โ”‚ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
โ”‚ โ”‚ โ”‚
โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚ VALLEY โ”‚ โ”‚ VALLEY โ”‚ โ† night / low demand
โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ Time
Day 1 Day 2
LeverWhat it meansHow it saves money
(valley)Timing โ€” run workloads during off-peak hours when providers charge lessDeepSeek has โ€œpeak-valley pricingโ€: ~50% cheaper at night (UTC 16:00โ€“08:00) / Ljubljana night
predpomnilnik (prefix)Caching โ€” reuse the prompt prefix so you donโ€™t pay for re-processing the same contextByte-stable prefixes = cache hits = pay only for new tokens
proraฤun (cost modes)Budget mode โ€” choose cheaper models / smaller contexts / fewer tokens for non-critical taskse.g. use GLM-5-Turbo instead of GLM-5.2, or 8B instead of 14B

Why โ€œvalleyโ€? It comes from DeepSeekโ€™s pricing model (and AWS spot instances): the โ€œvalleyโ€ is the cheap time window. Schedule heavy workloads (evals, batch jobs, indexing) into the valley to cut costs ~50%.

  • TUI/CLI trust-tier display (operator-attention predicate)
  • Automated staleness detection via stale_after date
  • Agent-authored page auditing (generated.by = agent/version)
  • Cross-repo bundle exchange (OKF conformant)
  • Integration with colibri doctor for wiki health checks