Lacuna/Labs
favorites-velocity-watcher
pink
#203 / 601

NAME

favorites-velocity-watcher — Daily climbers: which listings picked up favorites fastest in the last 24h.

SYNOPSIS

id favorites-velocity-watcher tier pink section §7. Pink — Sakura local (65 baseline, 131 post-matrix) trigger cron:daily tools etsy/listings source new

DESCRIPTION

Sakura's local 8B model handles this on-device. Free, private, Cortex-grounded. The 'I just know what you have' tier.

Daily climbers: which listings picked up favorites fastest in the last 24h.

MECHANISM

PREfetchGUARDtier: pinkACTperformRESULTrenderON-ERRretry / esc
;;~ title    "Favorites velocity watcher"
;;~ author   "lacuna"
;;~ version  1
;;~ mode     automation
;;~ flavor   pink
;;~ id       favorites-velocity-watcher
;;~ trigger  cron:daily
;;~ touches  ()
;;~ summary  "Daily: which listings picked up favorites fastest in the last 24h. Catch the climbers early."

;; Pulls active listings + 24h favorite delta from Cortex, ranks by
;; velocity, returns the top movers as a table. The numeric work is
;; pure Scheme; we don't need the model here.

(cart 'favorites-velocity-watcher
  '((author    . "lacuna")
    (version   . 1)
    (read-only . #t)))

(define (start ctx)
  (let ((connected (ctx-get 'shop-connected ctx)))
    (cond
      ((not connected) (escalate 'shop-not-connected null))
      (else            (next 'fetch ctx)))))

(define (fetch ctx)
  (act 'etsy/listings (list 'favorites-velocity '24h) 'render))

(define (render ctx)
  (let ((rows (ctx-result ctx)))
    (cond
      ((null? rows)              (escalate 'no-data null))
      ((eq? rows 'rate-limited)  (after 30 'fetch ctx))
      (else                      (begin
                                   (table rows '(listing-id title favs-24h velocity))
                                   (done))))))

source: curator-web/src/scheme/carts/etsy/favorites-velocity-watcher.sks · 36 lines

EXAMPLES

Example forthcoming — docs/automations/examples.json entry editable in place.

TIER

pink
Sakura local 8B · free · on-device

FITNESS

Ready

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

SEE ALSO

HISTORY

canonical source: curator/docs/AUTOMATIONS-CANONICAL.md · §7-pink-sakura-local-65-baseline-131-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)