Media transcription

From joelhooks/joelclaw · View interactive version

Media transcription is an AI agent skill from the GitHub repository joelhooks/joelclaw. Run, monitor, cancel, and resume the durable media transcription pipeline (media-transcription-pipeline-v2) for raw meeting media on <media-mount>. Use when the user asks to transcribe a meeting or media file from the NAS, check transcription progress, cancel a transcription, resume a failed/partial

How to use this skill

Skill file

Media Transcription

For private addresses, accounts, ports, and host roles, see .brain/resources/operator-network-context.svx in the private dark-wizard repo and the tailnet-topology skill. Replace angle-bracket placeholders with the configured values before running commands.

Durable, event-driven transcription of raw meeting media on the NAS. Inngest

orchestrates; MLX Whisper (chunked ASR) and pyannote (whole-file diarization)

run as detached local actor processes — no Inngest step ever holds a

request open across inference. Built 2026-07-11 after the v1 monolith died to

request-bound 2h timeouts and Whisper hallucination loops (design receipt:

.brain/projects/transcription-pipeline-v2-2026-07-11.svx).

Where it runs (hard constraints)

com.joel.system-bus-worker). Needs the direct NFS mount

<media-mount> and the rig checkout.

(public repo joelhooks/transcript-rig; override path with

TRANSCRIPT_RIG_ROOT). Raw media on the NAS is immutable — the pipeline

only writes derived artifacts.

worker) or SSH to central host to inspect on-disk state.

Start a transcription

joelclaw send media/transcription.requested -d '{
  "requestId": "req-'$(uuidgen | tr 'A-Z' 'a-z')'",
  "sourcePath": "<media-mount>/joel/meetings/<meeting-dir>"
}'

id is silently deduped. Optional flags: "publish": false, "index": false

(both default true).

NonRetriable.

Monitor

trace. Orchestrator steps keep NN- prefixes for the pi job-monitor

widget (packages/pi-extensions/inngest-monitor).

index/total/cached), terminal media/transcription.completed or .failed.

pointer + artifact directory.

Cancel

joelclaw send media/transcription.cancelled -d '{"requestId": "<the-request-id>"}'

Cancels all runs (cancelOn) AND triggers transcription-cleanup-v1, which

SIGTERM→10s→SIGKILLs live actor process groups (identity-verified via ps —

PID reuse safe) and writes orchestration/cancelled.v1.json, which blocks

new actor spawns. Optionally include artifactId to skip the plan scan.

Resume / re-drive

Re-send media/transcription.requested with a fresh requestId and the

same sourcePath. Everything valid on disk is adopted, nothing recomputes:

track done. A repetitive one is quarantined (.rejected-<ts>) and the

track re-chunks.

adopted; offsets recomputed from ffprobe. Valid chunk out/<i>/asr.json ⇒

cached, no actor spawned.

cached.

previously cancelled.

Failure modes (typed, in actor status / run errors)

| Error | Meaning | Action |

|---|---|---|

| repetitive_output: … | Whisper hallucination loop survived collapse (decode mostly padding) | Retries respawn actors; deterministic loops usually pass after collapse-then-screen. Inspect the chunk WAV — genuinely silent/broken audio fails honestly |

| inference_required: … | A fast rig stage (resume --no-inference) found a missing claim check | Inference didn't complete/adopt; check chunk statuses |

| cancelled_by_signal | Actor's child died to un-initiated SIGTERM/SIGKILL (group kill, operator, or Bun's in-process signal-dispatch race) | Expected during cancel/reap; standalone occurrences mean someone killed processes manually |

| actor stalled | Heartbeat stale >3m | Watchdog killed + retried automatically |

| chunk_result_missing | Aggregation found no valid chunk output | Chunk failed all retries; see its actor.log |

| mount_unavailable | NFS mount down | media/transcription.blocked emitted; remount and re-drive |

Design invariants (don't regress these)

consecutive-duplicate segments collapse to one; >50% collapsed ⇒ failed

decode. Aggregation persists the collapsed form.

--hallucination-silence-threshold 2`; diarization uses MPS

(TRANSCRIPT_RIG_DIARIZE_DEVICE=cpu to opt out).

the dev-mode Inngest server leaks foreign events past match expressions.

not enforced; expect parallel whispers until the Inngest server is

upgraded.

Code: packages/system-bus/src/transcription/ +

packages/system-bus/src/inngest/functions/{media-transcription-pipeline,transcription-asr-chunk,transcription-diarize,transcription-cleanup}.ts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.