| muster and muster-pattern-library. (https://github.com/azide0x37/muster) an agentic coding scaffold/framework you can reference when building out your next random raspi project. prefer to build around systemd units first; make an idempotent installer script, then put as little as possible custom coding around that. `impl muster` comes down to: /build out this tool wiring together `patterns` like: C3.dropfolder-trigger; R2.device-binding; C4.lazy-resource-gate or composite patterns like: T2R4.device-triggered-conveyor
"Bind a physical device event to a bounded ingest job that waits for hot-storage capacity, proves cold-storage capability, stages local work, and hands output to a hot/cold conveyor." I need to back up a couple hundred DVDs, so with muster I get out: dvd-ingester
T2R4.device-triggered-conveyor Architecture
DVD media becomes ready
-> udev rule adds SYSTEMD_WANTS=dvd-rip@%k.service
-> systemd runs /opt/dvd-ingester/current/bin/dvd-rip-one /dev/%I --apply
-> dvd-rip-one proves DEST_DIR and waits for HOT_DIR capacity
-> completed rip moves to HOT_DIR/<run-id>
-> dvd-publish-one.timer drains HOT_DIR to DEST_DIR
-> publish writes DEST_DIR/.incoming-<run-id> and atomically renames final output Pipelined; ejects after rip completed. Monitors local disk capacity, retries after NAS comes back online; resumes after random reboot; etc. |