Version: 0.1.0
Status: Draft
Specification: SPECIFICATION.md
The Open Reasoning Format (ORF) defines a lightweight, file-based memory architecture for AI agents. It synthesizes principles from:
- The Reasoning Bank paper (Google): Procedural knowledge, abstracted heuristics, and execution traps learned through experience.
- Open Knowledge Format (OKF): Human-readable, token-optimized Markdown and YAML.
- Agent Skills Specification: Progressive disclosure and zero-runtime indirection layers.
- Zero Runtime Infrastructure: Operates via local workspace file I/O (
./experiences), requiring no vector databases or external server processes. - Progressive Disclosure: Agents query high-level category metadata (~200 tokens) before fetching targeted experience playbooks (~800 tokens), optimizing context window usage.
- Standardized Schema: 5-section Markdown architecture with YAML frontmatter for explicit indexing and trigger conditions.
- Agent Skill Ready: Interoperable with agentskills.io via the included
manage-experienceskill and reference CLI tool.
.
βββ AGENTS.md # AI agent operational guidelines
βββ README.md # Overview and usage instructions
βββ SPECIFICATION.md # Full ORF v0.1.0 Specification
βββ requirements.txt # Python dependencies (PyYAML)
βββ experiences/
β βββ INDEX.md # Root category index & indirection layer
β βββ python-scripting/ # Domain directory
β βββ EXP-20260720-0001.md # Frontmatter parsing playbook
β βββ EXP-20260720-0002.md # Atomic file storage playbook
β βββ EXP-20260720-0003.md # Subprocess pipe deadlock playbook
βββ manage-experience/
β βββ SKILL.md # Agent Skill Specification (agentskills.io)
β βββ scripts/
β βββ experiences.py # Reference Python helper CLI script
βββ evals/ # Trajectory Evaluation & A/B Testing Framework
β βββ README.md # Evaluation harness & scenario authoring guide
β βββ runner.py # Evaluation CLI benchmark runner
β βββ harness/ # Sandbox, evaluator, and spec validator
β βββ scenarios/ # Isolated scenario benchmarks (problem.md & test_verify.py)
β βββ reports/ # Exported evaluation matrix reports (Markdown / JSON)
βββ tests/
βββ test_experiences.py # Automated unit test suite
- Python 3.10+
- PyYAML (
pip install -r requirements.txt)
pip install -r requirements.txtThe reference implementation script provides deterministic file I/O operations for viewing and creating experience records.
python3 manage-experience/scripts/experiences.py list-categoriespython3 manage-experience/scripts/experiences.py get-frontmatter --category python-scriptingpython3 manage-experience/scripts/experiences.py read-experience --id EXP-20260720-0001python3 manage-experience/scripts/experiences.py create-experience \
--domain "cloud-run" \
--title "Set explicit memory limit on container deployment" \
--description "Trigger when deploying containerized apps to Cloud Run experiencing OOM kills." \
--keywords "cloud-run,container,memory,oom" \
--complexity "medium" \
--objective "Deploy service to Cloud Run without container OOM restarts." \
--trap "Default 512MiB allocation caused container crashes under load." \
--insight "Always set memory limit to at least 1GiB for Node/Python runtimes during initial provisioning." \
--validated-path "Pass --memory 1Gi to gcloud run deploy command." \
--checklist-item "Verify memory utilization in Cloud Monitoring."The Open Reasoning Format includes a pre-built Agent Skill located in manage-experience/SKILL.md, adhering strictly to the agentskills.io specification.
- Name:
manage-experience - Specification:
ORF-0.1 - Location:
manage-experience/SKILL.md - Helper Script:
manage-experience/scripts/experiences.py - Compatibility: Requires local filesystem read/write permissions and Python 3.10+ (with
PyYAML).
---
name: manage-experience
description: Dynamically routes, retrieves, and records procedural playbooks from the local `./experiences` folder. Use at the start of complex tasks to consult past experience, and at the end of a successful execution to record new operational learnings.
license: Apache-2.0
compatibility: Requires local file-system read/write permissions and Python 3.10+
metadata:
version: "0.1.0"
spec_format: "ORF-0.1"
---Host agent frameworks that support the Agent Skills specification automatically discover manage-experience/SKILL.md upon initialization. The skill provides step-by-step instructions guiding the agent through a two-phase workflow:
-
Phase 1: Progressive Discovery & Retrieval
- Step 1 (Category Search): The agent runs
list-categoriesto check if the user prompt matches known domain categories. - Step 2 (Metadata Inspection): If a category matches, the agent runs
get-frontmatter --category <domain-id>to inspect triggers and descriptions of relevant experiences (~500 tokens). - Step 3 (Experience Loading): When a specific trigger condition matches the active task or error trap, the agent runs
read-experience --id EXP-...to load the full playbook (~800 tokens) into its context.
- Step 1 (Category Search): The agent runs
-
Phase 2: Post-Task Learning & Experience Recording
- After successfully solving a non-trivial problem, handling an unexpected edge case, or finding a domain-specific workaround, the agent runs
create-experienceto append a newEXP-<YYYYMMDD>-<sequence>.mdfile and automatically updateexperiences/INDEX.md.
- After successfully solving a non-trivial problem, handling an unexpected edge case, or finding a domain-specific workaround, the agent runs
ORF experiences can be loaded dynamically into any agent framework that supports local tool calling or skill execution.
- Category Retrieval: Call
list-categoriesto check if past experiences match the user task domain. - Metadata Inspection: Call
get-frontmatter --category <domain-id>to find matching playbooks or traps. - Experience Retrieval: Call
read-experience --id EXP-...to inject the Abstracted Insight and Validated Path into the prompt context. - Learning & Post-Task Recording: After resolving a complex issue or trap, call
create-experienceto store the operational learning for future runs.
ORF includes a built-in evaluation harness (./evals) to empirically measure whether experience playbooks improve AI agent trajectories, reduce step counts, eliminate trial-and-error debugging cycles, and validate dynamic experience recording.
[ Stage 1: Cold Run ] --> [ Stage 2: Spec Validation ] --> [ Stage 3: Warm Run ]
Without Prior Experience Validate New EXP-*.md File With Newly Minted EXP
- Measures baseline steps - Checks YAML frontmatter - Evaluates Phase 1 retrieval
- Tests Phase 2 recording - Audits 5 required sections - Measures step reduction &
(`create-experience`) - Confirms INDEX.md update first-attempt trap avoidance
- Stage 1 (Cold Run - Baseline): An agent attempts a scenario without prior experience playbooks. If it encounters and resolves a trap, we measure whether it automatically triggers Phase 2 of the skill (
create-experience) to record a new playbook. - Stage 2 (Spec Validation): An automated validator (
spec_validator.py) audits any dynamically generatedEXP-*.mdfile against the 7 required YAML frontmatter fields and 5 mandatory Markdown headers. - Stage 3 (Warm Run - Accelerated Execution): A fresh agent context attempts the scenario with the newly recorded playbook available. We evaluate Phase 1 retrieval (
manage-experience), first-attempt trap avoidance, and percentage step count reduction.
frontmatter-parser: Parses and updates Markdown index files without corrupting YAML frontmatter headers block (EXP-20260720-0001.md).atomic-writer: Updates JSON state persistent files atomically using temporary files andos.replace(EXP-20260720-0002.md).subprocess-pipe: Executes CLI subcommands with non-blocking stdout/stderr pipe streaming (EXP-20260720-0003.md).- SWE-bench Multilingual Pilot: Evaluates real-world GitHub issues across Python (
SWE-bench_Lite) and Java (SWE-bench_Multilingual) containerized via Podman.
| Dataset / Language | Cold Run Pass Rate (No ORF) | Warm Run Pass Rate (With ORF) | Step Count Reduction |
|---|---|---|---|
π Python (SWE-bench_Lite) |
66.7% (2/3) | 100.0% (3/3) | 73.5% (11.3 β 3.0 steps) |
β Java (SWE-bench_Multilingual) |
66.7% (2/3) | 100.0% (3/3) | 74.3% (11.7 β 3.0 steps) |
| π Overall Multilingual | 66.7% (4/6) | 100.0% (6/6) | 73.9% Net Step Reduction |
# 1. Run local evaluation scenarios in dry-run verification mode
python3 evals/runner.py --dry-run
# 2. Run live A/B testing benchmarks using local `agy` (Antigravity CLI) binary
python3 evals/runner.py --agy
# 3. Run SWE-bench 2-pass evaluation benchmarks via Podman
.venv/bin/python evals/harness/swebench_orf_runner.py
# 4. Export Markdown and JSON comparative reports
python3 evals/runner.py --agy \
--export-markdown evals/reports/agy_report.md \
--export-json evals/reports/agy_report.jsonTo verify script parsing, experience generation, and index updates:
python3 -m unittest discover -s testsApache-2.0
This is not an official Google project.

