Memory file mapping by `type` field
Memory file mapping by type field
Rule
The OKF type frontmatter field determines the destination directory for every knowledge file. Routing table:
type: |
Goes to |
|---|---|
rule |
knowledge/rules/<area>/ |
decision |
knowledge/decisions/<area>/ |
service |
knowledge/services/ |
runbook |
knowledge/runbooks/ |
glossary |
knowledge/glossary/ |
concept |
knowledge/core-concepts/ |
playbook |
knowledge/runbooks/ |
log |
knowledge/log/<grills|sessions>/ |
convention |
top-level knowledge/ (e.g. _okf.md) |
policy |
knowledge/policy/ |
architecture |
knowledge/decisions/architecture/ |
design-brief |
knowledge/design/ |
How to apply
- Before writing a new knowledge file: pick
typefirst, then path falls out. - When migrating a memory bullet: determine the
typeit should have, then route per table. - Sub-areas under
rules/anddecisions/are free-form (e.g.rules/agent/,rules/agent/preferences/,decisions/agent-tooling/). - New
typevalues require updating_okf.mdin the same commit perokf-graph-discipline.
Why
User locked this on 2026-06-26 (Q22). Routing-by-type is mechanical, deterministic, and prevents "where does this go?" hesitation during migrations.
Captured
2026-06-26 session, Q22 of 24-question grill.