# AUN Memory Health Check

> AUN Memory Health Check is a paid API for AI agents from a-upgradenet.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-22).

Audits a batch of AI agent memories for issues like secrets, contradictions, duplicates, and vague entries, then returns a graded cleanup plan with redacted/cleaned versions.

## Facts

- Endpoint: POST https://a-upgradenet.com/x402/memory-health?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aun-memory-health-check-cf9f345c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4iYnQM0dw7bwkpN8l5Ows

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aun-memory-health-check-cf9f345c -d '<json body>'
```

Example prompt: Can you audit the health of my customer support agent's memory bank? It's a shopping assistant that handles delivery preferences. Here are 50 memory entries — check them for secrets, contradictions, duplicates, or anything that should be redacted, and give me a grade and a cleanup plan.

## When to prefer this

Choose this endpoint when you need to audit and sanitize AI agent memory stores before deployment, compliance reviews, or periodic hygiene checks — especially when secrets, PII, contradictions, or stale data may have accumulated. Prefer it over generic LLM prompting when you need structured issue categorization, severity ratings, and actionable cleanup plans with IDs tied back to original memory entries.

## Known failure modes

- Empty or missing 'memories' array returns a validation error
- Exceeding 300 memory items results in rejection
- Malformed memory objects missing required 'text' field cause parse errors
- Payment failure or insufficient USDC balance blocks the request
- Ambiguous or very short memory texts may produce inaccurate grading

## How this service works

Memory Health Check: scans an AI agent's long-term memory for leaked secrets, personal data, duplicates, contradictions and vague entries; returns a 0-100 score, issues and a cleaned memory list ready to apply.

## Output

Returns a letter grade (e.g. 'C') and numeric score (0-100) for the memory batch, a list of specific issues (type, severity, affected memory IDs, recommended action), a summary count of issue categories (vague, secrets, duplicates, personal_data, contradictions), a structured cleanup plan listing which memory IDs to delete, redact, or rewrite, and the cleaned/redacted versions of affected memories.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "purpose": {
   "type": "string",
   "description": "What the agent is for (improves the relevance check)."
  },
  "memories": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "string"
     },
     {
      "type": "object",
      "required": [
       "text"
      ],
      "properties": {
       "id": {
        "type": "string"
       },
       "text": {
        "type": "string"
       },
       "created_at": {
        "type": "string"
       }
      }
     }
    ]
   },
   "maxItems": 300,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "C",
  "score": 62,
  "issues": [
   {
    "ids": [
     "m3"
    ],
    "type": "secret",
    "action": "redact",
    "severity": "critical"
   },
   {
    "ids": [
     "m1",
     "m2"
    ],
    "type": "contradiction",
    "action": "delete",
    "severity": "high"
   }
  ],
  "status": "completed",
  "summary": {
   "vague": 0,
   "secrets": 1,
   "duplicates": 0,
   "personal_data": 0,
   "contradictions": 1
  },
  "cleanup_plan": {
   "delete": [
    "m2"
   ],
   "redact": [
    "m3"
   ],
   "rewrite": []
  },
  "cleaned_memories": [
   {
    "id": "m1",
    "text": "Customer Ana prefers delivery after 6pm"
   },
   {
    "id": "m3",
    "text": "[REDACTED_SECRET]"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aun-memory-health-check-cf9f345c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from a-upgradenet.com](https://www.zero.xyz/host/a-upgradenet.com/llms.txt)
