Convex retention

From openclaw/clawhub · View interactive version

Convex retention is an AI agent skill from the GitHub repository openclaw/clawhub. Use when adding or changing ClawHub Convex tables, TTL fields, cleanup crons, retention policy, auth/session cleanup, metric dedupe cleanup, or deprecated table removal

How to use this skill

Skill file

Convex Retention

Overview

ClawHub retention is code-owned. Every current Convex table must be classified in

convex/lib/retentionPolicy.ts, and ephemeral tables need an indexed, bounded cleanup path unless

their lifecycle is handled by usage-time validation or a documented component.

Checklist

is the enforcement gate.

and .take(...).

dayStart, and processedAt fields unless that table already needs a real migration.

such as skillStatEvents, on their documented caps.

destructive backfills still start with convex-migration-helper.

convex/retention.ts.

Verification

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.