Lacuna/Labs
listing-shipping
white
#073 / 601

NAME

listing-shipping — White read-cart in the 'Listing inspection (12)' group. Operator-commanded data surface in the Analysis tab.

SYNOPSIS

id listing-shipping 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 for one listing or shop attribute. No LLM, no spend. Renders the requested slice in the Analysis tab. Operator clicks; the data shows up.

White read-cart in the 'Listing inspection (12)' group. Operator-commanded data surface in the Analysis tab.

MECHANISM

PREfetchGUARDtier: whiteACTperformRESULTrenderON-ERRretry / esc
;;~ title    "Listing shipping profile"
;;~ author   "lacuna"
;;~ version  1
;;~ mode     analysis
;;~ flavor   white
;;~ id       listing-shipping
;;~ touches  ()
;;~ summary  "How this ships."

;; How this ships.
;;
;; Read-only inspection cart. Needs 'listing-id (or 'shop-id) in ctx.
;; Standard wrapper: precondition_fetch (ctx has the id) -> act -> render.

(cart 'listing-shipping
  '((author    . "lacuna")
    (version   . 1)
    (read-only . #t)))

(define (start ctx)
  (let ((id (ctx-get 'listing-id ctx)))
    (if (null? id)
        (escalate 'missing-listing-id null)
        (next 'fetch ctx))))

(define (fetch ctx)
  (let ((id (ctx-get 'listing-id ctx)))
    (act 'etsy/listing (list id) 'render)))

(define (render ctx)
  (let ((r (ctx-result ctx)))
    (cond
      ((null? r)                       (escalate 'no-data null))
      ((eq? r 'rate-limited)           (after 30 'fetch ctx))
      ((eq? r 'auth-stale)             (escalate 'auth-relogin null))
      (else                            (begin
                                         (table r '(field value))
                                         (done))))))

source: curator-web/src/scheme/carts/etsy/listing-shipping.sks · 38 lines

EXAMPLES

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

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)