contrast-with-similar
pink
#181 / 601
NAME
contrast-with-similar — Diff against a near-twin in the shop.
SYNOPSIS
id contrast-with-similar
tier pink
section §7. Pink — Sakura local (65 baseline, 131 post-matrix)
trigger analysis-pattern
tools search_listings
source carry-forward
DESCRIPTION
Sakura's local 8B model handles this on-device. Free, private, Cortex-grounded. The 'I just know what you have' tier.
Diff against a near-twin in the shop.
MECHANISM
;;~ title "Contrast with a similar listing" ;;~ author "lacuna" ;;~ version 1 ;;~ mode automation ;;~ flavor pink ;;~ id contrast-with-similar ;;~ touches () ;;~ summary "How does this listing differ from a near-twin in the shop." ;; How does this listing differ from a near-twin in the shop. ;; ;; Local Sakura runs over one listing's context. precondition_fetch ;; pulls the listing record, sakura/decide produces the summary or ;; comparison, type-trap on the output, then announce. (cart 'contrast-with-similar '((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) 'invoke))) (define (invoke ctx) (let ((listing (ctx-result ctx))) (cond ((null? listing) (escalate 'no-data null)) ((eq? listing 'rate-limited) (after 30 'fetch ctx)) (else (act 'sakura/decide (list 'task 'contrast-with-similar listing) 'check-result))))) (define (check-result ctx) (let ((r (ctx-result ctx))) (cond ((null? r) (escalate 'sakura-empty null)) ((not (string? r)) (escalate 'sakura-garbled null)) (else (next 'announce (ctx-set 'output r ctx)))))) (define (announce ctx) (done))
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)