Order-email triage for NanoClaw: fetches order-related Gmail, maintains the orders SQLite table, and flags recent anomalies (cancellations/refunds, large purchases until delivered, overdue deliveries), with a cadence companion that runs it on a schedule. NanoClaw per-chat overlay tile.
72
90%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
This wrapper was peeled off nightly-external-sync (jbaruch/nanoclaw#581) so check-orders runs in its own bounded container instead of competing for turn budget with four other syncs.
Precheck reads /workspace/group/state/nightly-order-sync-cursor.json. If last_run is missing or older than CADENCE = 3d, wake; otherwise skip. This preserves the effective cadence the orders check ran at inside the bundle (the bundle's own cap was 3 days).
The inner check-orders skill maintains its own Gmail after: cursor (orders_metadata.last_checked), so each run only fetches emails since the last successful fetch — a wake is cheap even when nothing new arrived.
If order alerts feel stale, tighten CADENCE toward daily — check-orders is script-driven with no sub-agent fan-out, so a daily run is inexpensive. If task_run_logs shows the wrapper going clean every fire for weeks, leave the cap as-is.