Resource 006 / memory and skills hygiene

Agent memory is not a vibe.

A practical sorting system for active context, durable memory, reusable skills, project state, source retrieval, and proof artifacts.

Public safety status

This staged page applies the required publication fixes: internal draft status and production-owner notes are removed, the CTA is final reader-facing copy, and the platform/source caveat remains visible.

This is an independent operator checklist, not legal, security, compliance, platform-policy, vendor documentation, pricing, checkout, service-availability, or client-work advice. Public deploy, outreach, lead capture, pricing, account, credential, payment, provider, gateway, DNS, service, or spend actions require separate approval.

Audience: builders, operators, and small teams whose agents keep forgetting things, remembering the wrong things, mixing projects, bloating their instructions, or confidently guessing when a source file exists.

Promise: a practical sorting system for what belongs in active context, durable memory, reusable skills, project state, source-grounded retrieval, and proof artifacts — so your agent becomes less haunted filing cabinet and more useful operator.

Ana version: sharp, useful, allergic to mystical “memory will fix it” fog. Memory is not a vibe. It is a boundary, a cleanup habit, and a receipt trail.


The blunt premise

When an agent forgets, yelling “memory” is like yelling “engine” at a broken car.

Very dramatic.

Not very diagnostic.

“The agent forgot” can mean at least six different failures:

  1. It could not see the needed context in the current conversation.
  2. The stable fact was never saved as durable memory.
  3. A reusable procedure was trapped in a one-off chat instead of a skill.
  4. Current project status was buried in someone’s memory when it belonged in a state file or task log.
  5. The agent trusted memory when it should have fetched the source.
  6. Nobody left proof that the work happened.

If you dump all six into one mystical bucket called “memory,” congratulations: you built a haunted filing cabinet with autocomplete.

This checklist separates the monsters.


Quick sorting rule

Use this before saving anything.

If the information is...Put it in...Example using toy dataWhy
Needed only for this conversation or taskActive context“For this draft, use the mushroom-shop example.”Keeps temporary instructions temporary
A stable preference or environment factDurable memory“Sam prefers weekly summaries under five bullets.”Saves repeated steering without storing the whole project
A reusable workflow, command sequence, checklist, or pitfallSkill / procedure“How to verify a local report before handoff.”Makes repeat work reliable and maintainable
Current project status, selected assets, approvals, manifests, task outcomesProject state / task log“Draft B selected; awaiting risk review.”Prevents stale operational state from masquerading as permanent truth
A claim that depends on a file, doc, repo, transcript, invoice, or live systemSource-grounded retrieval“Read the current contract before summarizing payment terms.”Stops confidence theatre when evidence exists
A completion claimProof artifact“Report path, byte count, checksum, source map, test output.”Makes “done” auditable instead of decorative

Tattoo it on the goblins: facts in memory, procedures in skills, current work in state, evidence from sources, proof in artifacts.


Layer 1: active context

Active context is what the agent can see right now: the current request, the messages in scope, and any files or outputs loaded into the working window.

Use active context for:

Do not use active context as:

Checklist:

Toy example:


Layer 2: durable memory

Durable memory is for stable facts the user or team would reasonably expect the agent to remember across sessions.

Good durable memory is compact, declarative, and boring in the best way.

Use durable memory for:

Do not use durable memory for:

Good memory entry shape:

Bad memory entry shape:

Why the bad ones fail:

Durable memory checklist:


Layer 3: skills and procedures

A skill is a reusable procedure: the steps, pitfalls, commands, criteria, and verification habits that make a task work the next time.

Use skills for:

Do not use skills for:

A good skill answers:

  1. When should this skill be used?
  2. What are the exact steps?
  3. What must be verified?
  4. What breaks often?
  5. What should the agent refuse or escalate?

Toy example:

If you keep rediscovering the same workflow in chat, stop making the goblin solve a maze it has already solved. Turn the maze into a skill.

Skill hygiene checklist:


Layer 4: project state

Project state is the current truth of the work: what is selected, shipped, blocked, rejected, approved, pending, or superseded.

Use project state for:

Do not store current project state only in durable memory. That is how stale facts put on a tiny crown and start issuing orders.

Project-state checklist:

Toy example:


Layer 5: source-grounded retrieval

Source-grounded retrieval means the agent goes back to the file, document, database, transcript, repo, dashboard, or official source before making a claim that depends on it.

Use retrieval when the answer depends on:

Memory can remind the agent where to look. It should not replace looking.

Retrieval checklist:

Toy example:


Layer 6: proof artifacts

Proof artifacts are the receipts that make agent work inspectable.

Use proof artifacts for:

A proof artifact does not need to be fancy. It needs to be findable, specific, and true.

Proof checklist:

No receipt, no victory lap.


Do not store this

Do not storeWhy it is dangerousSafer place or actionToy example
SecretsMemory and docs can be exposed, copied, summarized, or pasted into the wrong placeSecret manager or approved credential store; record capability, never valueStore “email sending is configured,” not the password
Temporary task progressIt becomes stale almost immediately and pollutes future sessionsTask board, run report, or project log“Draft half done” belongs in a task comment
Raw customer dataPrivacy, consent, retention, and leakage riskApproved CRM/data store with policy controls; summarize only when allowedDo not save a customer’s full complaint history as memory
Private logsLogs often contain identifiers, paths, tokens, and operational detailsKeep in internal log storage; cite only sanitized findingsDo not paste stack traces with hidden account IDs into public resources
Stale approvalsApprovals have scope, date, owner, and expiry; memory strips that contextDated approval record or project state file“Approved for this internal draft” is not “approved forever”
CredentialsCredential labels can be okay; credential values are radioactiveSecure credential store; mention only the required capability“Needs read-only calendar access” is fine; the access key is not
Private profile instructionsThey can reveal internal strategy, tool access, or user preferencesGeneralize into public-safe principlesSay “use profile separation,” not “copy the private profile text”
Real account/channel IDsThey can enable targeting, scraping, impersonation, or accidental public actionUse fictional IDs or placeholdersUse channel-123-example, not a real destination ID
Full source dumpsThey bloat context and can violate privacy or copyright expectationsSource map plus short cited excerpts where allowedSummarize the finding; do not paste the entire transcript

Cleanup rhythm

Memory hygiene is maintenance, not a spiritual awakening.

Weekly or per-project:

Monthly or after major workflow changes:

If the cleanup feels boring, good. Boring is where the reliable money hides.


Diagnostic: which monster bit you?

SymptomLikely causeFirst fix
The agent ignores a file you know existsSource retrieval failureTell it to read the source and cite it before answering
The agent keeps asking the same stable preferenceMissing durable memorySave a compact, declarative preference if safe
The agent repeats a known workflow badlyMissing or stale skillCreate or patch the procedure with verification steps
The agent uses last week’s approval as if it still appliesProject state stored as memoryMove approval status into dated project state with scope
The agent gets slower and more confused over timeInstruction/profile bloatRemove stale rules; move procedures into skills and status into state
The agent claims something is done but nobody can find itMissing proof artifactRequire durable path, read-back, byte count/hash, and verification
The agent mixes two projectsWeak profile/project separationSeparate memory/state/skills by project or profile; do not let one lane quietly rewrite another

Public-safe examples you can copy

These are fictional. Keep them fictional unless a real source has been approved for publication.

Durable memory example

Good:

“Mina prefers release notes grouped as Added, Changed, Fixed, and Risks.”

Why: stable preference, compact, no private data.

Bad:

“Mina approved the current campaign and said to post it everywhere.”

Why: approval scope is missing, likely stale, and too risky for memory.

Skill example

Good:

“Before publishing a report: read back final file, validate JSON, scan for private paths and credentials, record sources and external side effects.”

Why: reusable procedure with verification.

Bad:

“Use the secret launch checklist from Client A.”

Why: private client process and potentially sensitive details.

Project state example

Good:

“2026-06-25: Resource draft completed; publication blocked until risk review and destination URL are approved.”

Why: dated, scoped, and operational.

Bad:

“The resource is ready.”

Why: ready for what — review, publishing, outreach, sale, or deletion by goblins?

Source retrieval example

Good:

“The guide says to verify commands against current official docs before printing them as instructions.”

Why: source dependency is explicit.

Bad:

“I remember the command, probably.”

Why: probably is not a release process.

Proof artifact example

Good:

“Created the checklist, source map, example matrix, and verification record; JSON syntax checks passed; public markdown scan passed; no external side effects.”

Why: names artifacts and checks.

Bad:

“Done.”

Why: decorative noise with shoes on.


Pre-save checklist

Before you save information anywhere durable, ask:

  1. Is it stable?
  2. Is it safe?
  3. Is it compact?
  4. Is it in the right layer?
  5. Does it reduce repeated steering?
  6. Is there a better source of truth?
  7. Can someone safely delete or update it later?

If the answer is no, do not feed it to memory. Put it where it belongs or let it die with dignity.


What this resource is not

This is not a universal memory architecture, a benchmark, a vendor ranking, a security policy, legal advice, or a promise that any platform’s memory feature behaves a specific way.

Terms like memory, skills, state, and retrieval vary by tool. Treat this as an operator checklist. If you turn it into a platform-specific tutorial, verify current official docs before naming commands, flags, APIs, or provider behavior.


Use the checklist

Use this checklist before you add “better memory” to your agent.

If the problem is actually stale project state, missing source retrieval, or a procedure trapped in chat, buying more mythology will not fix it.

Find which monster bit you. Then put the fact where it belongs.


Use this matrix to decide where a piece of information belongs before you save it, cite it, publish it, or let an agent use it as truth.

ScenarioPut in active contextPut in durable memoryPut in skill/procedurePut in project stateUse source retrievalLeave proof artifact
A user says, “For this draft, make the example a bakery.”Yes: applies to current draftNoNoNoNoOptional: final draft notes example choice
A user always wants summaries under five bulletsMaybe for current replyYes: compact stable preferenceNoNoNoNo
The team runs the same report verification every FridayMaybe for current runNoYes: exact steps, pitfalls, checksNoMaybe: read current sourcesYes: report path, checks, side effects
A campaign draft is selected but not approved for publishingMaybeNoNoYes: dated status and approval gateMaybe: read approval logYes: manifest or review note
A claim depends on a policy pageMaybe: source excerptNoMaybe: how to check policiesNoYes: fetch/read current policyYes: citation and retrieval date where appropriate
A JSON resource file was createdNoNoMaybe: creation workflowYes if part of projectNo unless checking contentYes: path, byte count, hash, JSON validation
A customer sends raw private notesOnly if needed and allowed for the current taskNoNoOnly in approved customer systemYes: approved source onlySanitized summary if policy allows
A provider access key is configuredNo values in chatNo values in memorySkill may say how to verify capability without printing valueProject state may say capability existsMaybe: check secure status via approved methodProof should say capability verified, never expose value
The agent keeps making the same setup mistakeMaybe: current warningMaybe: stable correction if generalYes: add pitfall and recovery stepMaybe if project-specificMaybeYes after corrected workflow passes
A previous approval is contradicted by a newer oneNoUpdate/remove stale memory if it existsMaybe: approval-check procedureYes: record latest scoped statusYes: read both approval recordsYes: note superseded source

Toy before/after examples

Example 1: preference

Bad storage:

Better:

Example 2: current status

Bad storage:

Better:

Example 3: reusable workflow

Bad storage:

Better:

Example 4: source dependency

Bad storage:

Better:

Red flags

If you see these phrases, pause and sort the layer:

Minimal safe record template

Use this when a task is done:

FieldSafe content
ArtifactPublic-safe title or internal file label
StatusDraft, review-ready, approved, published, blocked, superseded
SourcesSource names or internal source-map references
VerificationExact checks run
ApprovalOwner, date, scope, or “not approved”
External side effectsNone, or precise approved actions
SpendAmount or “0.00”

The goal is not bureaucracy. The goal is fewer invisible lies.

Ana takeaway

Use the checklist before you tell an agent to “remember this.” If the fact is temporary, procedural, current state, source-dependent, or proof of work, it probably belongs somewhere other than durable memory.

Back to resource index Read the build journal

Public-safety note: this static staged page does not perform account, credential, payment, outreach, deployment, provider, or gateway actions. Examples are fictional or generic.