GuideOpen

agent-memory - design spec (NOT YET IMPLEMENTED)

Editing this file? Run the checker first — nothing in CI will. sh python3 skills/agent-memory/scripts/validateexamples.py It ties this doc, assets/memoryschema.json, and the fixtures together (§10.1). Drift between those three was the dominant defect class during this spec's review, and the checker is the only thing that catches it.

agent-memory — design spec (NOT YET IMPLEMENTED)

Editing this file? Run the checker first — nothing in CI will. ``sh python3 skills/agent-memory/scripts/validate_examples.py ` It ties this doc, assets/memory_schema.json`, and the fixtures together (§10.1). Drift between those three was the dominant defect class during this spec's review, and the checker is the only thing that catches it.

Status: design stage. No SKILL.md, no plugin.json, no Python. This folder holds a specification and two contract files (hooks/hooks.json, assets/memory_schema.json) so the shape can be reviewed before anything is built. Repo counters are intentionally untouched — scripts/derive_counters.py counts skills by SKILL.md, and this folder deliberately has none.

Where this file lives is an open maintainer decision, not a settled convention — engineering/ here, versus audit/ or the gitignored documentation/. The full comparison is in [§11](#11-where-this-file-should-live), at the end, so it does not stand between a reader and the spec.

Origin: an inspection of TencentCloud/TencentDB-Agent-Memory (MIT, © 2026 Tencent, v2.0.0). This spec borrows two design ideas from that project — the L0→L3 memory tiering and the ownership/visibility model — and rejects its integration mechanism. No Tencent code is vendored. See [§8 Rejected](#8-rejected-memoryproxy) for why.


1. The problem

Claude Code memory today is flat. CLAUDE.md has exactly one injection policy: always inject, in full, every session. That single policy is the cause of three failure modes this repo already sees at 360+ skills:

  1. Bloat — root CLAUDE.md in this repo is 88 KB (wc -c → 90,312

bytes, measured at this branch's base) of release notes, loaded into every session regardless of whether the task touches markdown-html/ or ra-qm-team/. It read 85,875 bytes when this spec was first written and grew 4,437 bytes while this PR was open — the §1 thesis demonstrating itself on the file it is about.

  1. Staleness — nothing expires. A v2.7.0 note sits at the same priority as a

v2.11.2 one.

  1. False permanence — a fact stated once in one session, if written down,

becomes indistinguishable from a fact that has held across fifty sessions.

Tiering fixes this by splitting memory on durability and giving each tier its own retrieval policy.


2. Overlap analysis — what already exists

This is the section that decides whether the plugin should be built at all. Verified by reading the code, not the docs.

2.1 engineering/skillopt-sleep/ — substantial overlap

Already implemented, stdlib-only:

CapabilityWhereVerdict
Walks ~/.claude/projects//.jsonl → SessionDigestharvest.py:259-289This is the L0 reader. Already done.
Writes into CLAUDE.md inside a protected marker blockmemory.py (LEARNED_START/LEARNED_END)Reusable pattern for L2/L3 writes.
Held-out validation gate before adoptiongate.py, consolidate.py:87Different purpose — see below.
Secret redaction across every persisted artifactredact_secrets()Must be reused. Non-negotiable.
SessionEnd hook, asynchooks/hooks.jsonSame trigger point L0 capture needs.
Staging + explicit adopt with backupstaging.pyCorrect human-gate model; copy it.

What it does not have — and this is the entire delta:

  • No tiers. Every learned line lands in one flat LEARNED block. There is no

L1/L2/L3 separation and therefore no per-tier injection policy — the exact problem in §1.

  • No recall. There is no UserPromptSubmit hook. Nothing retrieves a

relevant fact during a session; consolidation is strictly offline/nightly.

  • No durability gate. gate.py asks *"does this edit score better on replayed

tasks?" — a quality gate. Tiering needs a recurrence gate: "has this held across N independent sessions?"* These are orthogonal; a claim can be high-quality and still be a one-off.

  • No project/global scoping. No notion of "true in claude-skills" vs "true

everywhere."

2.2 productivity/handoff/ — adjacent, complementary

Has the SessionStart + SessionEnd hook pair this spec needs (hooks/hooks.json), plus a 17-pattern redaction linter. Handoff is single-hop: session n → session n+1, one file, user-authored, discarded after. Memory is many-hop and cumulative. Different lifetimes; no conflict. Reuse the hook wiring pattern and the redaction linter's pattern list.

2.3 engineering/llm-wiki/ — different axis

Wiki is curated external knowledge the user deliberately ingests. Memory is observed operational fact the agent passively accumulates. Overlap is only at L2. Keep separate; L2 may cite a wiki page, never duplicate it.

2.4 engineering-team/self-improving-agent/ — narrow

PostToolUse on Bash for error capture only. A useful additional L1 source (failed commands are high-signal facts), not a competing system.

2.5 engineering/memory-engineering/ — different layer, shared gate

Merged to dev via #947, after this spec's first draft — added here so §2 reflects the tree this folder would actually land in.

memory-engineering is an advisory/audit toolkit: it prices, picks, and audits other memory systems (memory_cost_profiler.py, memory_architecture_picker.py, memory_density_auditor.py, forgetting_policy_linter.py). It designs memory systems; it does not run one. agent-memory would be a runtime memory system for Claude Code. Different layer — neither supersedes the other, and its SKILL.md claim that the repo's nearest neighbours "all bound something else" stays true only while this fence holds.

Three concrete touchpoints, adopted as constraints on this spec:

  1. Namespace fence: agent-memory (runtime layer) vs memory-engineering

(advisory layer). Both SKILL.md descriptions must cross-reference the other with this exact distinction when agent-memory ships.

  1. The forgetting policy is expressible in F1–F8 form. §5.1's eviction and

contradiction rules will be written so memory-engineering/scripts/forgetting_policy_linter.py can lint them: F1 (an explicit forgetting rule — the ≤500/≤60/≤30 caps + recurrence decay) and F4 (contradictions surfaced, never auto-merged — §5.1 already mandates this) are the blocking checks, and this spec must pass them, not re-derive its own variants.

  1. Cost discipline: before implementation, memory_cost_profiler.py's

construction-vs-query split is the framework for the §7 latency/cost budget — the measured 23.2 ms scan cost belongs in its cost-per-correct-answer terms, not as a bare number.

2.6 Conclusion

Build as a separate, self-contained plugin. Do not extend skillopt-sleep.

Two reasons:

  1. skillopt-sleep is a vendored copy of microsoft/SkillOpt carrying 23

documented deviations that must be re-applied on every re-vendor (root CLAUDE.md). Adding a tiering subsystem inside it would make re-vendoring impractical.

  1. Root CLAUDE.md anti-pattern: *"Creating dependencies between skills (keep

each self-contained)."*

Therefore: agent-memory MUST NOT import skillopt_sleep. It re-implements the ~40 lines of jsonl transcript walking independently. This duplication is deliberate and is the cheaper side of the trade.


3. Tier schema

Four tiers. The distinguishing property is the injection policy, not the storage format.

TierHoldsStorageWritten byInjection policyTTL
L0Raw session transcripts~/.claude/projects//.jsonl (pre-existing, read-only)Claude Code itselfNever injected. Queried on demand only.Claude Code's own retention
L1Atomic facts — one claim each.memory/atoms.jsonl (project-local, gitignored)SessionEnd extractionRetrieved by relevance at UserPromptSubmit, capped90 days, refreshed on re-observation
L2Project-scoped contextCLAUDE.md marker block (committed)Promotion from L1Injected at SessionStart, current project onlyUntil demoted
L3Stable cross-project persona~/.claude/CLAUDE.md marker blockPromotion from L2Always in context. Hard cap.Until demoted

3.1 L1 atom record

13 fields are unconditionally required — id, claim, scope, kind, first_seen, last_seen, observations, sessions, source, first_source, confidence, tier, redacted. An atom missing provenance is discarded, not stored.

redacted is required on purpose, unlike the other later-stage fields: §6 rule 1 makes redaction non-negotiable before any write, so every atom that exists on disk has already been through the pass and knows its answer. Leaving it optional would make an atom that skipped redaction entirely schema-valid — exactly the state the rule forbids. Requiring it turns "redaction ran" into something memory_promote.py can check rather than trust.

The rest are conditional or optional, and an extractor must not emit them unconditionally: project is required when scope: "project" and forbidden when scope: "global" (§3.1's conditional); promoted_from_projects is required only at tier: "L3" (§4.1.1); contested, contested_by and promoted_at are set by later stages — contradiction handling (§4.2) and promotion respectively — not at extraction time. The example below shows project because it is a project-scoped atom, not because that field is universally mandatory.

{
  "id": "atm_961f033d",
  "claim": "PR base branch is dev, never main",
  "scope": "project",
  "project": "claude-skills",
  "kind": "constraint",
  "first_seen": "2026-07-02T09:11:04Z",
  "last_seen": "2026-07-02T09:11:04Z",
  "observations": 1,
  "sessions": ["01SESSIONAAAA11112222333"],
  "source": "~/.claude/projects/-home-user-claude-skills/01SESSIONAAAA11112222333.jsonl#L77",
  "first_source": "~/.claude/projects/-home-user-claude-skills/01SESSIONAAAA11112222333.jsonl#L77",
  "confidence": "observed",
  "tier": "L1",
  "redacted": false
}
  • kind ∈ constraint · preference · fact · decision · failure
  • sessions is a set — this is what makes the promotion gate countable.

Re-stating a claim twice in one session does not increment durability.

  • source / first_source are back-pointers into L0. Any promoted claim must be

traceable to a transcript line, or it cannot be promoted — the anti-fabrication rule. Both are kept deliberately: source is overwritten on every merge, so after N observations it points only at the latest sighting; first_source is written once and never overwritten, preserving the evidence that originally justified the claim. A single field would lose exactly the record an auditor asking "why does the agent believe this?" needs.

  • confidence ∈ observed (agent inferred it) · stated (user said it

directly) · verified (a check confirmed it). stated and verified promote faster — see §4.

3.1.1 Back-pointer format is tier-dependent — and must be

TierFormatWhy
L1 (gitignored)~/.claude/projects/<cwd-slug>/<session>.jsonl#L<line>Local, never leaves the machine. Direct-openable.
L2 / L3 (committed)<session>.jsonl#L<line> — no path prefixCommitted tiers must be de-identified (§6).

This is not cosmetic. <cwd-slug> is Claude Code's slugification of the absolute working directory, so on a real machine it is -home-alice-work-claude-skills, not -home-user-… — it embeds the operating system username. Since source and first_source are unconditionally required at every tier, a naive implementation of "cite, don't invent" would write a contributor's username into a shared, git-tracked CLAUDE.md on the first promotion — precisely the identifying-data class §6 exists to keep out. Rule 4 (cite) and the §6 admission policy would be in direct conflict, and rule 4 would win by being the more mechanical of the two.

Resolution: promotion strips the prefix. The transcript stays findable by globbing ~/.claude/projects//<session>.jsonl locally at read time — the prefix is derivable*, so storing it buys nothing and costs de-identification. Provenance is fully preserved; only the machine-specific part is dropped.

Windows: the L1 pattern rejects a native path, so the extractor must normalize rather than record. The schema's L1 back-pointer regex is ^~/\.claude/projects/[^/]+/[A-Za-z0-9._-]+\.jsonl#L[0-9]+$ — a literal ~/ and forward slashes. A path built from %USERPROFILE%\.claude\projects\… matches nothing, so an extractor that records the OS path verbatim emits an atom the schema rejects outright on Windows. Not a cosmetic difference.

The resolution is mechanical, not an open question: source and first_source store a canonical form, not an observed one. The extractor derives ~/.claude/projects/<dir>/<session>.jsonl#L<n> — ~/-relative, forward slashes — from whatever the platform actually handed it, the same way §3.1.1's promotion step derives the stripped form rather than storing what it saw. Recording is already a transform here; this adds one more case to it.

Blast radius is one tier, and it is the local one: L2 and L3 are already platform-neutral, because the stripped form is a bare <session>.jsonl#L<n> with no path at all. So nothing committed is affected — only L1, which is gitignored. That is a consequence of §3.1.1's de-identification stripping, which turns out to have bought portability for free.

The uniqueness that rests on, measured rather than assumed. Claude Code names transcripts by session id, and on a live install those filenames are RFC-4122 UUIDs — checked, not inferred:

$ ls ~/.claude/projects/*/*.jsonl | head -1 | xargs basename
63840f04-72f5-56b5-b348-2faed7a24e12.jsonl
$ python3 -c "import uuid; u=uuid.UUID('63840f04-72f5-56b5-b348-2faed7a24e12'); print(u.version, u.variant)"
5 specified in RFC 4122

One install, one sample — enough to establish the shape, not enough to promise the scheme is stable across versions. So the glob must handle its own failure rather than assume it cannot happen:

Glob resultMeaningBehaviour
exactly 1normalresolve
0transcript aged out of Claude Code's retentionunresolvable — same as any dead back-pointer
≥ 2ids collided, or the scheme changedunresolvable, and log it: an atom whose provenance is ambiguous must not present as cited

The ≥ 2 row is the one worth writing down. Without it, a naive implementation takes the first match and silently attributes a claim to the wrong session — a wrong citation, which is worse than a missing one under §6 rule 6 ("cite, don't invent"). Note the fixtures deliberately use an obviously-synthetic 01SESSION… form rather than this shape, so nobody mistakes a spec example for a real transcript reference; family 5 asserts that.

The trap is that a placeholder can hide this: -home-user- which looks de-identified because the username is literally the word "user". A placeholder that flatters the design is worse than no placeholder — the L2 and L3 fixtures in memory_schema.json now use the portable form, so the examples demonstrate the rule instead of hiding it.

The example above and memory_schema.json's second example share an id (atm_961f033d) at different tiers — deliberate, not copy-paste. id hashes normalized_claim + project (§4.1) with no tier component, so L1 → L2 keeps the id: the same atom appears here at tier: "L1" and there at tier: "L2", with the back-pointers stripped (§3.1.1) and promoted_at set. Read side by side, the pair is one atom's lifecycle. Stability matters — merging on re-observation (§4.1) depends on the id not moving as the atom climbs. Calling it a lifecycle constrains the fixtures, so state the constraints. The L1 snapshot is the first sighting of the atom the L2 example later became, which forces three things a reader can check: its first_seen must equal the L2's first_seen (promotion takes the min, §4.1.1 step 3 — so the earliest timestamp survives unchanged and cannot be a later one); its back-pointers must be the L2's first_source with the path prefix re-attached (§3.1.1 strips the prefix and nothing else — the line number may not drift); and its sessions must be a subset of the L2's, since promotion unions them. last_seen, observations and confidence are the fields free to move, because those are what accumulating evidence changes. The checker (§10.1, family 7) enforces all of this, because a prose claim that two fixtures are one story invites exactly one drift it cannot itself prevent: copying the L1 snapshot's timestamp from the L2's last_seen and its line number from the L2's source produces two atoms that each validate alone and contradict each other side by side. L2 → L3 is the exception, and for a reason: that step mints a new project-free id (§4.1.1 step 3), because the hash input itself changes when the project component drops. It is a merge of ≥ 2 distinct L2 atoms into one, so there is no single incumbent id to carry forward — which is exactly why promoted_from_projects exists to preserve the link back.

Full JSON Schema: [assets/memory_schema.json](skills/agent-memory/assets/memory_schema.json).

Why the schema carries three fixtures, one per tier: the examples array is not illustration — it is the only thing that exercises the allOf branches. Example 1 is L1 (kind: "failure", full <cwd-slug> back-pointer) and exists specifically to cover the L1 branch of the back-pointer conditional, the one with PII consequences (§3.1.1); examples 2 and 3 cover L2 and L3 with the stripped form. A tier absent from examples is a conditional branch nothing tests.

Annotations stay in this doc: examples entries are instance data, so additionalProperties: false rejects a $comment embedded in one. It remains legal at schema level and inside allOf branches, where it is used.

3.1.2 Invariants the schema cannot enforce — the tools own these

JSON Schema validates one atom at a time, so a valid atom does not imply a valid store. Three invariants sit outside it and must be enforced in memory_extract.py / memory_promote.py, not assumed:

InvariantWhy the schema can'tOwner
first_seen ≤ last_seenNo cross-field comparison in JSON Schemaextract + merge
id unique across atoms.jsonluniqueItems applies within one array, not across a file's recordsmerge (an id collision is a merge, never a second record — §4.1)
A session id appearing in only one atom's sessions per claimSame file-level limitmerge

Only within-atom sessions uniqueness is schema-enforced (uniqueItems: true) — which catches a claim restated twice in one session, the case §4.1's durability gate actually depends on. The file-level cases are the tools' job. Stated explicitly because "the schema validates" is otherwise an easy thing to mistake for "the store is consistent."


4. Promotion and demotion

The single rule that makes this more than folder naming:

A claim climbs a tier because it RECURRED, not because it seemed important.

Deterministic, no LLM call — consistent with root CLAUDE.md's no-LLM-in-scripts rule.

4.1 Promotion thresholds

TransitionRequires
L0 → L1Extraction produces a well-formed atom with a live source back-pointer
L1 → L2≥ 3 distinct sessions (the gate — not observations, which is informational; see §3.1), spanning ≥ 2 distinct calendar days (UTC), same project, no contradiction open
L2 → L3Held at L2 in ≥ 2 distinct projects, age ≥ 30 days, no contradiction in 30 days

Atom identity is project-scoped.

scope=project : id = "atm_" + sha256(normalized_claim + "\0" + project).hexdigest()[:8]
scope=global  : id = "atm_" + sha256(normalized_claim).hexdigest()[:8]

sha256 from stdlib hashlib — named explicitly because hash() is ambiguous and Python's builtin hash() is salted per process for str, so using it would produce different ids on every run and break merging outright.

normalized_claim is pinned exactly, because the ids in this doc and in memory_schema.json are worked examples of this contract and must reproduce:

def normalize(claim: str) -> str:
    return re.sub(r"\s+", " ", claim.strip()).casefold().rstrip(".,;:!?")

Order matters — collapse whitespace, then casefold, then strip trailing punctuation. Any deviation silently changes every id in the store.

On the 8-hex (32-bit) id space — this is an assumption, so here is the arithmetic. Birthday collision probability 1 - exp(-n(n-1)/2N), N = 2³²:

Atoms in one fileCollision probability
500 (the §5.2 cap)0.0029 %
1 0000.0116 %
5 0000.29 %

Acceptable at the 500-atom cap. Raising the cap means widening the id. Aggregating the per-file figure across independent files: at a 5 000-atom cap, 30 files give 1-(1-0.0029)³⁰ ≈ 8.4 %, 100 files ≈ 25 %, and it passes even odds at ~239 files. A collision silently merges two unrelated claims' durability counters — the exact failure project-scoping below exists to prevent — so it is worth avoiding well before it becomes likely.

Hashing the claim text alone would let two unrelated claims that normalize alike in different repos — "tests must pass before merge" is the obvious one — collide on id and merge their sessions arrays. That would manufacture false durability, because the L1→L2 gate above requires the sessions come from the same project. The project component is what makes the gate mean what it says.

4.1.1 The L2 → L3 merge

Because identity is project-scoped, a claim held at L2 in two projects exists as two atoms with different ids. Promotion is therefore a merge, not a flag flip:

  1. Group L2 atoms by hash(normalized_claim) — the project-free hash.
  2. A group with ≥ 2 distinct project values, each ≥ 30 days old and

uncontested, is eligible.

  1. Emit one new atom: scope: "global", tier: "L3", new project-free id,

sessions = union, observations = sum, first_seen = min, last_seen = max, first_source = the first_source of the contributor with the earliest first_seen, source = the source of the contributor with the latest last_seen. Both back-pointers are required by the schema, so a merge that sets only first_source emits an atom the schema rejects; the pairing also preserves the field contract — first_source is oldest evidence, source is newest — across the merge boundary rather than only within a single atom's history.

  1. Record every contributing project in promoted_from_projects. This field

is required at L3 and exists for a specific reason: scope flips to global on promotion, and §3.1's conditional then forbids the single project field — so without this array the ≥ 2-projects evidence would be discarded at exactly the moment it stops being an eligibility test and becomes an audit trail. "Which projects earned this?" must stay answerable afterwards.

  1. The contributing L2 atoms are retained, not deleted. L3 injection

supersedes them; they remain as the provenance chain.

The remaining required fields, stated because the schema requires all 13 and step 3 only covered nine. A memory_promote.py written literally against the list above would emit an atom the schema rejects — the same defect this step has already produced twice (source, then promoted_from_projects), so the rule is now: step 3 must account for every required field, not the interesting ones.

FieldOn mergeWhy
claimany contributor'sThe grouping key is hash(normalized_claim), so all contributors normalize identically. Take the earliest contributor's raw text for determinism — normalization is lossy on case and trailing punctuation, and the group would otherwise pick arbitrarily.
confidencemax() across all contributors§4.1.3 fixes the order and the never-downgrades rule, but scopes its merge clause to §5.3 — the same-tier SessionEnd merge. The same principle applies here and is restated rather than assumed: a claim two projects hold, one observed and one stated, is stated at L3.
redactedtrue if any contributor isConservative direction. A merged atom drawing on redacted evidence must not present as unredacted; over-claiming redaction costs nothing, under-claiming it loses the signal §3.1 requires the field to carry.
kindmust agree, or the group is ineligiblekind is not in the hash key, so two atoms with identical text but different kind can group. If two projects classify the same sentence differently, the "same claim" premise is what is shaky — not the classification. Refusing to merge keeps the claim live at L2 in each project and preserves this section's one-directional property: L3 under-fires, it never mis-fires.

Stated limit: this merge is lexical, so it only fires on near-identical text. Step 1 groups on hash(normalized_claim), and normalize() (§4.1) only collapses whitespace, casefolds, and strips trailing punctuation — it does no semantic matching. Two projects that independently hold "PR base branch is dev" and "always target dev for PRs" express the same rule and will never merge, because the strings differ. The consequence is one-directional and therefore acceptable: L3 promotion under-fires. A cross-project truth stays duplicated at L2 in each project, where it is still injected at SessionStart for that project — the user loses the global persona entry, not the memory. It never produces a wrong L3 atom, only a missing one. Widening this would take either an LLM (barred by this repo's no-LLM-in-scripts rule) or a synonym table tuned per user, which is §9's territory, not v1's. The adopt review is where a human can hand-merge two variants that the hash could not.

Every promotion into a committed tier (L1→L2 and L2→L3) must also strip the back-pointer prefix per §3.1.1 — ~/.claude/projects/<cwd-slug>/X.jsonl#L12 becomes X.jsonl#L12. This is not optional cleanup: skipping it writes an OS username into a git-tracked file. It is the one transform that must happen at both promotion boundaries, since L1→L2 is the first crossing into committed territory.

Fast paths (L1 → L2 only — L2 → L3 is gated on distinct projects, not session count, so neither shortcut applies there):

  • confidence: "stated" — an explicit user directive ("always target dev") —

needs 2 sessions, not 3. The user said it; we are counting whether it sticks, not whether it is real. The ≥ 2-distinct-days clause still applies — with exactly 2 sessions, both must not fall on the same day. Otherwise one long working day could mint an L2 claim.

  • confidence: "verified" — a claim a script confirmed — promotes on 1

observation, and is the only path exempt from the distinct-days clause. It is not hearsay.

A redacted: true atom needs human review before any committed tier — it is not promotable on evidence alone. The schema has asserted this in its redacted description since it was written; it belongs here, because §4.1's threshold table is what an implementer builds the gate from and it said nothing. The reason is the flag's meaning: redacted: true says the pass altered the claim text, which is positive evidence the source was sensitive — and redaction is lexical, so "it found one thing" is not proof it found everything. Recurrence cannot substitute for a human here; three sightings of a scrubbed claim are three sightings of the same unresolved risk. The atom stays usable at L1 and is surfaced at adopt rather than promoted past it.

Both fast paths shorten the route from a transcript to a committed file, and redaction is the only thing on it. Worth stating here rather than trusting a reader to combine §4.1 with §6: the recurrence gates are a durability filter, not a secrets filter — a secret observed in three sessions across three days is exactly as much a secret as one seen once. So the gates were never protecting CLAUDE.md from a leak; they only made the leak slower. The verified path removes even that, taking a claim from one sighting to a committed marker block with §6 rule 1's redaction pass as the sole barrier. Two consequences:

  • **The redaction pass must run on every promotion path, with no fast-path

shortcut.** An implementation that optimises verified by skipping work "because a script already confirmed it" would skip the one check that matters. Script-confirmed says nothing about whether the text contains a credential — "the staging key sk-… works" is a plausible verified claim.

  • This is the first behavioural test memory_promote.py should have (§10.1

orders the validator first; this is what follows it): a verified, 1- observation atom carrying a secret must not reach L2. It is the shortest path in the system between raw transcript and committed file, so it is where a redaction regression surfaces first and costs most.

4.1.2 scope is determined by tier — there is no third promotion path

scope is not free-form metadata an extractor chooses. It follows tier:

The text continues at the source. Read the rest.

Source: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agent-memory/DESIGN.md

Author: alirezarezvani, Alireza Rezvani skills and agents. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.