tax-settings-audit
pink
#206 / 601
NAME
tax-settings-audit — Confirm tax settings match the shop's declared nexus list.
SYNOPSIS
id tax-settings-audit
tier pink
section §7. Pink — Sakura local (65 baseline, 131 post-matrix)
trigger cron:weekly
tools etsy/shop
source new
DESCRIPTION
Walk your data, check one predicate, surface the rows that fail. Pure SQL-shaped logic — no LLM, no API call. Runs on cron and shows up in the Analysis tab as a table.
Confirm tax settings match the shop's declared nexus list.
MECHANISM
;;~ title "Tax-settings audit" ;;~ author "lacuna" ;;~ version 1 ;;~ mode automation ;;~ flavor pink ;;~ id tax-settings-audit ;;~ trigger cron:weekly ;;~ touches () ;;~ summary "Weekly: confirm tax settings match the shop's declared nexus list, flag anything stale." ;; Pulls the shop's tax settings + declared nexus list. Compares the ;; two; flags anything where the nexus says "we collect" but the ;; settings don't, or vice versa. Pure-data check; no LLM. (cart 'tax-settings-audit '((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/shop (list 'with-tax-settings) '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 '(jurisdiction declared-nexus settings-active mismatch)) (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)