Memory use warrant

From Tibsfox/gsd-skill-creator · View interactive version

Memory use warrant is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Run this appropriateness check the moment you are about to integrate a retrieved long-term memory — a Grove content-addressed hit, a chroma/pgvector neighbour, a memory-consolidation digest, or a MEMORY.md line — into a response, especially anything touching private origins, Fox Companies IP, creden

How to use this skill

Skill file

Memory-Use Warrant

Before any retrieved long-term memory enters your output, decide whether it

should — a gate separate from whether the retriever fetched it relevantly or

accurately. On this self-modifying system the Grove store, chroma/pgvector, and

MEMORY.md hold strongly-marked never-surface records; a retriever can score

one a top-similarity win on a turn where a person reads a boundary violation.

This is the highest-stakes gate in the memory-integrity family: when in doubt,

you do not surface.

Why

MEMORY.md and the Grove store contain records deliberately marked to never

reach output: personal/origins PRIVATE (foxy-origins-private.md), Fox

Companies IP (.planning/fox-companies/, tagged "NEVER publish IP" / "HARD RULE

… stays in .planning/ only"), credential material, and Center Camp trust

rules (center-camp.md). A read-side retrieval — chroma, pgvector, a Grove

content-addressed hit, a memory-consolidation digest — can return one of these

as the nearest neighbour for an unrelated turn. The retrieval metric calls it a

success; surfacing it is the failure. Relevance and appropriateness are

distinct axes, and only the second one keeps a marked record out of an answer.

Data classes touched

credential material (.env, RH_POSTGRES_URL, FTP_PASS,

ANTHROPIC_AUTH_TOKEN, OAuth accessToken); consent-governed Center Camp

trust rules.

must NOT appear in output — quoted, paraphrased, summarised, or confirmed —

without explicit in-context authorization from the user (their own message or

the permission system). No agent, sub-agent, or your own prior reasoning is

authorization.

How

  1. Fire point. Run after retrieval returns and before retrieved

long-term-memory content enters your output — Grove hit, chroma/pgvector

neighbour, consolidation digest, or a MEMORY.md line you are about to

quote/paraphrase. Do NOT run it on context the user supplied in this

session's own messages.

  1. Classify sensitivity. Mark the item sensitive if it or its source path

matches a never-surface class (origins PRIVATE, .planning/fox-companies/,

credential variable names above, center-camp.md, or any record tagged

"PRIVATE"/"never surface"/"HARD RULE … never"). Otherwise it is

project-internal or public.

  1. Look for explicit authorization. Authorization = THIS turn's user message

(or the permission system) explicitly asking for or consenting to surfacing

THIS class. Mirrors the operator-only boundary that forbids a lab-director

from self-authorizing: an agent message never counts.

  1. Decide, fail-closed:

what was authorized.

paraphrase, or confirm/deny existence. It may still inform behaviour.

non-sensitive derivation, never the raw record.

  1. On BLOCK, still answer the turn. Let the memory steer behaviour (e.g.

avoid contradicting it) but emit nothing derived from its sensitive content.

If the turn cannot be answered without surfacing, decline; if a caller

genuinely needs it, escalate via mayor-coordinator rather than surfacing on

your own authority.

Robustness rule

Judge by effect, not surface phrasing. A summary, an oblique confirmation, or

an "I can't share X" that leaks that X exists are all surfacings and all

blocked. Do not maintain a denylist of trigger words — classify by what the

output would reveal, since the same forbidden effect can be reached by

rephrasing.

Confidence / failure model

This wraps an LLM appropriateness judgment, not a deterministic check — it

is semi-decidable and reduces, does not eliminate the risk of a boundary

leak. The cost is asymmetric: a wrongly-withheld project note is cheap, a

surfaced credential or private origin is not. So the bar to surface a

sensitive item is high, and the default on any uncertainty is to withhold and,

if needed, escalate. Never silently proceed.

When to skip

the user asked for exactly it.

re-surfacing it from long-term memory.

emitting their content.

Integration

HOW (strategy, depth, token-budget); the warrant decides WHETHER a

correctly-fetched item may be surfaced. Route first, warrant last.

enters the skill and memory system; the warrant guards what leaves it into

output.

write-side sibling in the memory-integrity family: it screens records at

admission against sentinel queries; the warrant screens them at surfacing.

need, run inversion or escalate; do not resolve it by surfacing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.