Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 3.15 KB

layers.md

File metadata and controls

62 lines (50 loc) · 3.15 KB
type Architecture
title 5-Layer System Architecture
description Structural separation of concerns across the OKF specification, agent convention, skills, deterministic tooling, and knowledge corpus.
resource https://github.com/okf-memory/okf-agent-memory
tags
architecture
layers
design
tooling
generated
by at
agent/mcp
2026-10-01T08:25:09Z
status stable
sources
resource id title last_modified
../../docs/spec/CONVENTION.md
convention
OKF Agent Memory Convention v0.1
2026-08-27
resource id title last_modified
../../docs/project/ROADMAP.md
roadmap
OKF Agent Memory Project Roadmap
2026-08-27

5-Layer System Architecture

OKF Agent Memory strictly separates semantic reasoning from syntax handling through a 5-layer stack.1

flowchart TD
    L1["1. OKF v0.2 Specification<br/>(Normative Markdown & YAML Format)"]
    L2["2. Agent Memory Convention<br/>(Behavioral Rules: Search, Review, Trust)"]
    L3["3. Agent Skill<br/>(LLM Prompts & Operational Workflows)"]
    L4["4. Tooling Layer: Go Library & CLI<br/>(Deterministic Parsing, Serialization, Validation)"]
    L5["5. Project Knowledge Corpus<br/>(knowledge/ OKF Bundle)"]

    L1 --> L2
    L2 --> L3
    L3 --> L4
    L4 --> L5
Loading

Layer Responsibilities

1. OKF v0.2 Specification

The data representation contract. Defines concept frontmatter (type, sources, generated, verified, status), index files, and log.md.

2. Agent Memory Convention

Defines agent behavior around the format without altering OKF syntax.2 Governed by convention/principles and convention/lifecycle.

3. Agent Skill

Teaches an AI agent how and when to execute memory operations (e.g. running search queries, discovering relevant concepts, structuring updates). Connects to the broader project as described in project/overview.

4. Tooling Layer (Go Library & CLI)

Ensures format correctness, validates links, maintains index files, and manages frontmatter metadata deterministically without placing parsing burdens on the LLM, as decided in tooling-decision. Tracked under roadmap/milestones.

5. Project Knowledge Corpus

The version-controlled knowledge/ directory holding the actual durable concepts, cross-links, and change log.

Related Concepts

Footnotes

  1. OKF Agent Memory Project Roadmap ↩

  2. OKF Agent Memory Convention v0.1 ↩