# knowledge-memory — bucket knowledge scaffold

**Bucket:** 4 of 7. Referenced from CLAUDE.md.template Bucket 4.

## What this bucket carries

Right information at the right time. Repo is truth; memory is cache. Retrieval discipline (`pa knowledge`), staging discipline, Librarian synthesis mandate, CLAUDE.md hygiene doctrine.

## Scope — core vs operator overlay

**In core.** Universal knowledge/memory mechanism: `pa knowledge` retrieval verbs, repo-as-single-source-of-truth, staging category taxonomy, real-time-capture discipline, journal discipline, memory-as-cache semantics, Librarian synthesis mandate + anti-append rule, CLAUDE.md immutability + 7-bucket sizing doctrine.

**In operator overlay** (`operator/knowledge/knowledge-memory/`). Operator-specific memory conventions: per-agent staging dir names, cross-machine sync path, distillation cadence, operator's own destination map for observations.

## Canonical entries in this scaffold

| File | Purpose |
|---|---|
| `knowledge-retrieval-discipline.md` | The `pa knowledge` verbs, repo-as-truth, memory-as-cache, verify-via-retrieval-then-file-read pattern. |
| `staging-and-observations.md` | Staging category taxonomy, real-time-capture discipline, staging-file naming. |
| `journal-and-self-improvement.md` | Journal discipline — self-improvement notes as a running log. |
| `librarian-synthesis-mandate.md` | The Librarian's synthesis-not-append rule; cross-machine memory sync pointer. |
| `claude-md-hygiene.md` | CLAUDE.md immutability + 7-bucket sizing-by-need discipline. |

## How operators adopt this

Copy the shape into `operator/knowledge/knowledge-memory/`. Populate operator-specific staging conventions and cross-machine sync in the marked hooks.

## Related

- CLAUDE.md.template Bucket 4 — the rule list that references this deeper doc.
- `packages/core/roles/librarian/definition.md` — the Librarian role.
- `pa knowledge --help` — retrieval CLI reference.
