gc_notify
Manage a durable notification mailbox: push events, drain unread notifications with checkpoint-based polling, and list mailbox contents by status to track consumer progress.
Instructions
Notification mailbox for durable consumer polling. Actions: "push" = append a mailbox event, "drain" = fetch unread items and mark them read, "list" = inspect mailbox contents by status/checkpoint.
Recommended integration pattern:
Persist a per-consumer checkpoint
Poll gc_notify with action: "drain", since:
Handle returned events
Advance the checkpoint to the newest handled created_at
Daemon guarantees durable mailbox creation plus unread/read semantics. Harnesses decide how to surface drained events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to drain/list (default 10 for drain, 50 for list) | |
| since | No | Optional ISO timestamp checkpoint. For drain/list, only return notifications newer than this. | |
| action | Yes | Action to perform | |
| source | No | Notification source (for push) | |
| status | No | For list: unread, read, all | |
| content | No | Notification content (for push) | |
| priority | No | Notification priority (for push, default 0) |