Lacuna/Labs
revenue-today
white
#041 / 601

NAME

revenue-today — White read-cart in the 'Sales / revenue (16)' group. Operator-commanded data surface in the Analysis tab.

SYNOPSIS

id revenue-today tier white section §6. White — atomic tools (142 baseline, 149 post-matrix) trigger operator-commanded tools cortex_query, list_listings / list_orders source carry-forward

DESCRIPTION

Pure Cortex read against the receipts ledger. No LLM. Operator clicks a filter, the cart returns rows. The building blocks every higher tier composes on.

White read-cart in the 'Sales / revenue (16)' group. Operator-commanded data surface in the Analysis tab.

MECHANISM

PREfetchGUARDtier: whiteACTperformRESULTrenderON-ERRretry / esc
;;~ title    "Revenue today"
;;~ author   "lacuna"
;;~ version  1
;;~ mode     analysis
;;~ flavor   white
;;~ id       revenue-today
;;~ touches  ()
;;~ summary  "Today's net sales after fees. Fetches via etsy/receipts, sums, renders a single number."

(cart 'revenue-today
  '((author    . "lacuna")
    (version   . 1)
    (read-only . #t)))

(define (start ctx)
  (act 'etsy/receipts (list 'today) 'sum))

(define (sum ctx)
  (let* ((receipts (ctx-result ctx))
         (total    (sum-net receipts)))
    (next 'render (ctx-set 'total total ctx))))

(define (render ctx)
  (value 'revenue-today (ctx-get 'total ctx))
  (done))

source: curator-web/src/scheme/carts/etsy/revenue-today.sks · 25 lines

EXAMPLES

Operator asks "how much today?" Sakura sums today's receipts after Etsy fees. One number, your number, no internet involved.

TIER

white
atomic · free · operator-commanded

FITNESS

Ready

Fits any shop today — this one has no sample-size floor.

SEE ALSO

HISTORY

canonical source: curator/docs/AUTOMATIONS-CANONICAL.md · §6-white-atomic-tools-142-baseline-149-post-matrix
last regenerated: 2026-06-05 20:31 UTC (mechanical — edits land in the MD or sidecars, not here)

KNOWN BUGS

(none recorded — flag in AUTOMATIONS-CANONICAL.md or open an issue against the cart file)