Compaction-loss audit
Compaction witness for agents: pin invariants, name dropped spans, re-inject verbatim or HALT.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (2)
- LOWen snapshot
- LOWen audit
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"compaction-loss-audit": {
"url": "https://textforagents.com/products/compaction-loss-audit/mcp"
}
}
}Puntos de conexión remotos
https://textforagents.com/products/compaction-loss-audit/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (4)
⚪snapshot(event_id, spans, pinned_ids)
pin invariants verbatim pre-compaction (classify + hash-pin spans)
Esquema de entrada
{
"type": "object",
"properties": {
"event_id": {
"type": "string"
},
"spans": {
"type": "array",
"items": {
"type": "string"
}
},
"pinned_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"event_id",
"spans"
]
}🟡pin(text)
write-time pinning: classify + hash-pin ONE span at write time
Esquema de entrada
{
"type": "object",
"properties": {
"text": {
"type": "string"
}
},
"required": [
"text"
]
}🟡audit(event_id, snapshot_ref, snapshot, post_text)
diff post-compaction context against the pinned snapshot; returns the Ed25519-signed receipt (one metered event)
Esquema de entrada
{
"type": "object",
"properties": {
"event_id": {
"type": "string"
},
"snapshot_ref": {
"type": "string"
},
"snapshot": {
"type": "object"
},
"post_text": {
"type": "string"
}
},
"required": [
"post_text"
]
}⚪reinject(event_id, snapshot_ref, snapshot, post_text, allow, ...)
restore DEGRADED/LOST spans verbatim, or HALT on critical loss when allow=false; requires the audit's signed receipt
Esquema de entrada
{
"type": "object",
"properties": {
"event_id": {
"type": "string"
},
"snapshot_ref": {
"type": "string"
},
"snapshot": {
"type": "object"
},
"post_text": {
"type": "string"
},
"allow": {
"type": "boolean"
},
"receipt": {
"type": "object"
}
},
"required": [
"post_text",
"receipt"
]
}Comunidad
Evidencia