0095. Test digests, previewed with plugins' estimates
- Status: Superseded by 0096
- Date: 2026-11-24
Context
A user checking a plugin that adds to digests, such as the digest summary, could only wait for their next digest, and Send test ran only the plugin's own check. A digest's additions can cost money (the digest summary reads up to 2,000 entries with Claude), and nothing said what a digest would cost before it was sent. Plugins get API functions only where the core has the function they extend.
Decision
- The core sends a test digest on request (
POST /account/digest/test): the unread entries shown in All from the last 24 hours, with the additions of the plugins on for the user, not counted toward turning them off, and why any added nothing; it leaves the digest schedule and read state alone. The worker, or on AWS thepluginfunction, sends it within a minute. - The core previews one first (
GET /account/digest/test): how many entries it would hold, and each plugin's estimate from a new hook,digest.estimate, given whatdigest.composewould get, making no billed requests, under 10 s; plugins without it show no estimate. - Settings → Account → Digest and a user's Send test of a plugin with
digest.composeshow the preview, then Send or Cancel.Plugin.digestssays which plugins add to digests. digest.estimateis part of plugin API 0.1.1.
Consequences
- Previews run plugins' code in the API process (and the
apifunction on AWS), and thepluginfunction sends mail. - An estimate is the plugin's own; the digest summary prices its requests from list prices it carries, which change only with its releases.