Lacuna/Labs
voice-transcript-cleanup
pink
#184 / 601

NAME

voice-transcript-cleanup — Tidy a raw voice-to-text transcript before commit. Matrix mod 2026-06-01: extended to clean STT outputs (operator speaking) — the main voice input path now.

SYNOPSIS

id voice-transcript-cleanup tier pink section §7. Pink — Sakura local (65 baseline, 131 post-matrix) trigger event tools (LLM only) source carry-forward

DESCRIPTION

cloud reasoning writes in your voice, grounded in Atlas pairs. The word 'voice' here means register, not microphone — STT isn't involved.

Tidy a raw voice-to-text transcript before commit. Matrix mod 2026-06-01: extended to clean STT outputs (operator speaking) — the main voice input path now.

MECHANISM

PREfetchGUARDtier: pinkACTperformRESULTrenderON-ERRretry / esc
;;~ title    "Voice transcript cleanup"
;;~ author   "lacuna"
;;~ version  1
;;~ mode     automation
;;~ flavor   pink
;;~ id       voice-transcript-cleanup
;;~ touches  ()
;;~ summary  "Tidy a raw voice-to-text transcript."

;; Tidy a raw voice-to-text transcript.
;;
;; Character loop. On-device Sakura only; never escalates to
;; cloud. The cart reads its seed from ctx and surfaces the
;; result back into the conversation via sakura/say or
;; sakura/decide. Calm voice, short, ~30 words.

(cart 'voice-transcript-cleanup
  '((author    . "lacuna")
    (version   . 1)
    (read-only . #t)))

(define (start ctx)
  (let ((seed (ctx-get 'seed ctx)))
    (if (null? seed)
        (next 'invoke ctx)
        (next 'invoke ctx))))

(define (invoke ctx)
  (let ((seed (ctx-get 'seed ctx)))
    (act 'sakura/say
         (list 'task 'voice-transcript-cleanup seed)
         'check-result)))

(define (check-result ctx)
  (let ((r (ctx-result ctx)))
    (cond
      ((null? r)                  (escalate 'sakura-empty null))
      ((eq? r 'rate-limited)      (after 5 'invoke ctx))
      (else                       (next 'announce (ctx-set 'output r ctx))))))

(define (announce ctx) (done))

source: curator-web/src/scheme/carts/etsy/voice-transcript-cleanup.sks · 41 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)