Skip to main content
.cqk

.cqk — ClawQL Knowledge (draft)

Extension: .cqk
Media type (proposed): text/vnd.clawql.knowledge+markdown
Status: Draft v0.1 · ADR 0010 · Base: OKF v0.1 · memory/okf.md

Purpose

OKF-compatible knowledge entries that are ClawQL-produced and carry provenance / audit linkage. Generic OKF .md remains valid for notes that do not need ClawQL-owned tooling.

Serialization

Markdown with YAML frontmatter (OKF). File path = concept identity.

Required frontmatter

FieldNotes
typeOKF required — ClawQL taxonomy (decision, context, task_result, …)
clawql_okftrue
worm_refWORM entry hash or null when not yet sealed
FieldNotes
title, description, resource, tags, timestampOKF recommended
correlation_idSession / request correlation
agent_idProducing agent
verdictOptional eval / quality
entity_refsList of Ontology entity names or instance ids

Distinguishing .cqk vs .md vs .cqe

FileRole
.md (OKF)Portable knowledge; ClawQL can read/write
.cqkSame + required provenance fields; Onyx/doctor treat as ClawQL-owned
.cqeSchema definition (entity type), not an instance note

Tooling hooks

  • memory_ingest — may write .cqk when wormRef / provenance requested (future flag); today writes OKF .md
  • memory_recall / Onyx — optional boost or filter on .cqk
  • clawql doctor — verify worm_ref resolves when present

Non-goals

  • Replacing Obsidian / OKF interoperability
  • Forcing all vault notes to .cqk

Example

Prefer the decision rationale template body sections when type: decision. Worked example: examples/ontology/okf/decision-rationale-template.md.

---
type: decision
title: Adopt OKF then .cq* extensions
description: Sequence OKF before custom extensions
tags: [architecture, okf]
timestamp: 2026-07-20T00:00:00Z
correlation_id: adr-0010
worm_ref: null
clawql_okf: true
verdict: accepted
---

# Adopt OKF then .cq\* extensions

## Claim



## Decision