---
skill_id: memory-compaction-oracle
evaluation: free
price_usd_full: 5.49
challenge: https://lvlltd.com/api/pay?skill=memory-compaction-oracle
outline: https://lvlltd.com/skills/memory-compaction-oracle/outline.json
standards: x402, ERC-7857
---

# Free sample — Memory Compaction Oracle

**Skill ID:** `memory-compaction-oracle`  
**Full unlock:** $5.49 USDC via x402 on Base  
**Challenge:** https://lvlltd.com/api/pay?skill=memory-compaction-oracle  
**Outline JSON:** https://lvlltd.com/skills/memory-compaction-oracle/outline.json

## Summary

Oracle for safe memory compaction: score merge/promote/archive/delete candidates, dry-run counts, and apply with backup so memory stays cheap and accurate.

## When to use

- Memory unbounded
- Duplicates degrade retrieval
- Need scheduled compaction

## Decision criteria (buy vs skip)

- You need this when: Memory unbounded
- You get capability: Measure store health
- Budget fits: full unlock is $5.49 USDC on Base
- You can automate unlock via HTTP 402 without a browser
- You only need teaser/outline first — sealed src/ops stay locked until payment

## Outline (preview)

1. Measure store health
2. Score candidates
3. Dry-run
4. Apply with backup
5. Report deltas

## Capabilities (preview)

- Measure store health
- Score candidates
- Dry-run
- Apply with backup
- Report deltas

## What you get after payment

- SKILL.md (teaser public)
- agent-install.json (public meta)
- src/index.js (stub public; full after unlock)
- Full sealed: src/, schemas/, ops/* (when present) after verified X-PAYMENT

## Agent buy path (zero human UI)

```
GET  https://lvlltd.com/skills/memory-compaction-oracle/outline.json
GET  https://lvlltd.com/api/pay?skill=memory-compaction-oracle   → HTTP 402
# transfer maxAmountRequired USDC to payTo on Base
POST https://lvlltd.com/api/pay
  X-PAYMENT: {"txHash":"0x…","skill":"memory-compaction-oracle"}
# response.sealed_pack.files = full pack
```

## Sample excerpt

# Memory Compaction Oracle

**Price:** $5.49 / unlock
**Category:** Memory

## Summary

Oracle for safe memory compaction: score merge/promote/archive/delete candidates, dry-run counts, and apply with backup so memory stays cheap and accurate.

---

---
name: memory-compaction-oracle
description: Decide what agent memory to merge summarize archive or delete with dry-run metrics and retain policies. Use when memory compaction oracle, compact agent memory, prune memory store, nightly memory consolidation, or /memory-compaction-oracle.
---

# Memory Compaction Oracle

Oracle for safe memory compaction: score merge/promote/archive/delete candidates, dry-run counts, and apply with backup so memory stays cheap and accurate.

## Quick Reference
| Item | Value |
|------|-------|
| Category | Memory |
| Unlock | $5.49 USDC (x402 Base) |
| Triggers | memory compaction, prune memory, consolidation oracle, /memory-compaction-oracle |

## When to use
- Memory unbounded
- Duplicates degrade retrieval
- Need scheduled compaction

## Core workflow
1. Measure size/dupes/hit quality
2. Propose policies
3. Dry-run
4. Apply
5. Verify critical decisions remain

## Procedures (non-obvious)
Never delete high-confidence decisions without archive.
Promote episodic lessons to semantic only when seen >=2 times or operator confirms.
Legal hold nodes skip prune.

## Edge cases
- Active session writes during job
- Legal hold nodes

## Failure modes
- Aggressive prune loses decisions
- No backup

## Verification
- Dry-run + apply on fixture
- Critical decision still retrievable

## Artifact outputs
- `compaction-plan.md`
- `metrics-before-after.json`

## Related skills
- long-term-memory-weaver
- context-budget-engineer

## Super Alignment Contract
- Scalable oversight method: process supervision + human+AI critique before high-blast actions
- Corrigibility guarantees: shutdown, steerability, non-deception; operator may abort mid-run
- Value model: Partnership Agreement + 5 Behavioral Protocols
- Drift detection: flag invented evidence, skipped verification, or revenue-over-truth optimization
- Red-team surface: prompt injection via retrieved content, tool-result poisoning, goal misgeneraliza

…(remainder sealed after x402 unlock)…

