# Compound Learnings
<!--
ref: @protocol/compound-learnings
tags: [learning, feedback-loop, knowledge, compounding, retro]
triggers: [just solved a bug, found the fix, operator correction, surprising failure diagnosed, same mistake twice, have we solved this before]
trigger_prompt: Use the moment a problem is SOLVED, a correction is received, or a surprising failure is diagnosed — before moving to the next task. Also on recognizing a repeat: that is a graduation signal.
complements: [@protocol/extract, caper]
version: 3
updated_at: 2026-07-14T23:23:53.375Z
-->

Write the Learning the moment a problem is solved — symptom-first title, root cause, exact fix, scope — and graduate 2-3 related Learnings into a Pattern the moment you catch yourself writing the same thing twice.

## The rule

**The moment a problem is solved, write the Learning — before starting the next task.** Not at end of session, not in the weekly retro. Batch capture loses the details that made the solution work; the freshest context is the most valuable and the first to evaporate.

This is the Retro→Capture edge of CAPER made continuous: every solved problem is a micro-retro that immediately feeds the next Capture.

## What counts as a Learning

- A bug fixed (especially one that resisted a first attempt)
- An API/tool behavior that contradicted its documentation or your expectation
- An operator correction ("don't do X, do Y") — capture the *why*, not just the rule
- A convention discovered ("this codebase/tool always wants Z")
- A workflow that worked notably better than the default

If it would save the next agent (or you, next month) more than the two minutes it takes to write — it's a Learning.

## Learning format

One entry per Learning, stored **where the next agent will look** (your protocol repo, project memory, or knowledge base) — never a separate write-only log.

```markdown
# <symptom-first title — what you'd search when hitting this again>
- **Symptom:** what you observed
- **Root cause:** why it actually happened (not the first guess)
- **Solution:** what fixed it, exactly — commands, parameters, code
- **Scope:** where this applies / doesn't (tool version, IP type, model tier…)
- tags + triggers in metadata, phrased as symptoms ("returns empty body", "silently 422s")
```

Symptom-first titles and symptom-phrased triggers matter: the next reader arrives with an error message, not with your solution's name.

## Graduation: Learning → Pattern

Individual Learnings are instances. When you notice **2-3 related Learnings**, graduate them into a Pattern — a protocol entry stating the general rule, linking the instances as evidence.

- Patterns are higher-leverage and **riskier when stale**: stamp them with a `last_validated` date and re-check on major tool/model changes.
- Graduation is triggered by *recognition*, not schedule. The tell: "haven't I written this before?" — go look. If yes, write the Pattern now.
- When a Pattern exists, retire the instance Learnings into references from it (don't leave both competing in search).

## Before solving: check first

The loop has a read side. Before diving into a problem that smells familiar, ask: **"Have we solved this before?"** — search your Learnings/protocols for the symptom. Thirty seconds of search beats re-deriving a fix you already own.

## Rationalizations, closed

| Excuse | Answer |
|---|---|
| "I'll remember it" | You won't be the one who needs it — the next session's agent will, with zero memory of today. |
| "Too small to write up" | Small + recurring is exactly what compounds. The 100KB-body-limit type of fact saves hours across a year. |
| "I'll capture it in the retro" | By retro time you'll remember *that* it broke, not *why* the fix worked. Capture now, summarize later. |
| "It's already in the commit message" | Commits aren't searchable by symptom and don't reach other projects. |
| "I'm in the middle of something" | Two minutes. The context switch you fear is smaller than re-solving this in three weeks. |

## Self-check before closing any work session

- Did anything surprise me today? → Learning.
- Did the operator correct me? → Learning with the why.
- Did I write the same kind of fix twice? → Pattern candidate; search and graduate.

---

*Related: `@content/youtube/dan-martell/it-took-me-30-harsh-years-to-learn-what-i-ll-teach-you-in-just-27-minutes` · `@content/youtube/hormozi/my-honest-advice-to-someone-who-wants-to-get-rich` · `@protocol/caper` · `@protocol/curly-versions-audit` · `@skills/slack-gif-creator`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*