Files
dais/ai
Tommi Kyntola c0f43c9c21 Mic hygiene: force voice-off across suspend/lid-close
The daemon watches logind's PrepareForSleep on the system bus (a
dbus-monitor subprocess, argv vector like the ear) and forces voice-off
on BOTH edges: at the sleep edge, and re-checked at resume — the
pre-sleep write races the freeze since no delay inhibitor is held, so
resume is the guarantee that opening the lid never resumes listening.

Only acts (and notifies "Voice off · suspending") when the mic was
open; an already-closed mic stays silent. A latch recording in flight
is discarded, not transcribed — same "off means OFF" rule as a
deliberate stop. The line fold (sleep-edge) is pure and tested; the
daemon runs fine without dbus-monitor (stderr note, watch disabled).
Deliberately not configurable.
2026-06-12 00:48:29 +03:00
..

ai/

Curated, AI-friendly context for this repository. Treat it as ground truth on the same footing as code — when a fact here disagrees with the code, the code wins and the file gets fixed.

Purpose

Reduce the cost of reconstructing dais-specific context every agent session. Only facts that are hard to infer from the source or the other .md files belong here: platform quirks discovered in field trials, invariants whose violation fails silently, distinctions that are easy to confuse. Nothing that a quick read of the code already states.

How content gets added

  • Small, human-verified chunks — checked against reality before landing.
  • Opportunistic: when a discovery during normal work would have saved an hour had it been written down, it goes here.
  • Code wins on conflict; stale entries get fixed or deleted.

Layout

  • glossary.md — one line per term, TERM :: definition. Grep-friendly.
  • where-to-look.md — task :: path # note pointers. Grep-friendly.
  • gotchas.md — fact :: detail lines; the platform/field-trial knowledge this project paid for. Read before touching audio, tmux, or delivery code.