The Cards Moved Into the Fairy: A Nudge Ladder Instead of Popup Windows
Decision cards now arrive as a nudge, not a window. The desktop fairy carries them: a count on its badge, a glow where it rests, a flutter to your pointer, or an insist — four levels earned by being ignored and capped by how much the card matters. awdesk shows the card's own options in a window that cannot take focus, and a heartbeat tells the Python side to keep its own window down while the fairy has it.
The card still exists, the queue still ranks it, and answering it still goes through the same store. What changed is delivery: a pure module decides which card, how loudly, and when; the fairy flies to the pointer and shows the options; and the answer comes back through the card's own keys.
Why the window had to go
A popup asks for the same attention whether it is a disk under its free-space floor or a report that only needs an acknowledgement. After enough of them all of them get ignored — not because they were unimportant, but because reading one had a cost and the answer was usually "nothing to do". "I ignore the cards and popups because I have so much info in front of me." The fix is not a prettier window: it is a signal that starts quiet, gets louder only when ignored, and cannot exceed how much the card matters.
The ladder
Four levels. The step up is earned: every ignored nudge counts, and every
escalateEvery ignored nudges lift the card one level — capped by its importance, so an
ordinary card can never nag at full volume.
| Level | What you see | Gap before the next nudge | Re-nudge the same card | Whisper stays up |
|---|---|---|---|---|
| L0 badge | the count on the fairy; no whisper | — | — | — |
| L1 glow | the fairy pulses in place, one line beside it | 15 min | 45 min | 9 s |
| L2 flutter | flies to your pointer, flutters there, then goes home | 5 min | 15 min | 14 s |
| L3 insist | same flight, brighter and longer, spoken on a repeat | 90 s | 5 min | 20 s |
Those are DEFAULTS in electron/fairy-attention.cjs, and the pacing reads them by level:
gapMs: Object.freeze({ 1: 15 * MIN, 2: 5 * MIN, 3: 90_000 }),
intervalMs: Object.freeze({ 1: 45 * MIN, 2: 15 * MIN, 3: 5 * MIN }),
showMs: Object.freeze({ 1: 9000, 2: 14000, 3: 20000 }),
The base level comes from importance; the climb is arithmetic on ignored nudges. The cap is the point — an ordinary card tops out at a glow and then rests, while something that matters can reach an insist.
const base = imp >= 3 ? LEVEL.INSIST : imp === 2 ? LEVEL.FLUTTER : LEVEL.GLOW;
const cap = imp >= 2 ? LEVEL.INSIST : LEVEL.GLOW;
const steps = Math.floor((Number(mem && mem.ignored) || 0) / Math.max(1, cfg.escalateEvery));
return Math.min(cap, base + steps);
With escalateEvery: 2, a high-importance card ignored four times reaches L3. An ordinary
one ignored six times is still a glow — and after three ignored glows (restAfter: 3) it
leaves the rotation for four hours (restMs: 4 * HOUR). The backlog drips; it does not nag.
What a card is worth
Importance runs 0 to 3 and is mostly about the shape of the question, not its urgency label. A card whose every option is an acknowledgement — "Noted", "Got it", "Seen" — is a report, not a decision. It gets a badge, unless marked critical, which earns a flutter:
const ACK_LABEL_RE = /^(noted|ok|okay|got it|ack|acknowledged?|seen|thanks|dismiss|understood)\.?$/i;
...
if (ackOnly(card)) {
score = urgency === "critical" ? 2 : 0;
}
For everything else: critical is 3, high 2, normal 1, low 0. A blocked session or a
credential ask lifts to at least 2 and 1, because a session is stopped until you answer. A
deadline inside 30 minutes pins it to 3; inside two hours it adds a level. Then age works the
other way:
if (age > cfg.freshMs && kind !== "credential" && urgency !== "critical") score = Math.min(score, 1);
if (age > cfg.staleMs) score = Math.min(score, 0);
freshMs is 24 hours and staleMs 48: an old ask that is neither a credential nor critical
decays to a glow at most, then a badge. "Later" is the exception — postponing says it matters,
just not now, so when the hour is up it returns one level louder.
The whisper cannot block anything
The window that carries the card is built focusable: false and click-through:
// focusable:false -- the whisper NEVER takes the keyboard from what the owner is doing.
alwaysOnTop: true, hasShadow: false, focusable: false, title: "Aither nudge",
...
nudgeWindow.setIgnoreMouseEvents(true, { forward: true });
Click-through is turned off only while the pointer is on the card and back on when it leaves,
so the transparent margin never eats a click meant for the app underneath. It is shown with
showInactive(), so it cannot take focus even when it appears.
Answers go through the card's own options and nothing else — the renderer sends an action and a key, and main looks the key up in that card's option list before doing anything:
const opt = (Array.isArray(card.options) ? card.options : []).find((o) => o && o.key === String(key));
if (!opt || String(card.kind).toLowerCase() === "credential") {
return { ok: false, error: "not one of this card's options" };
}
A credential card renders no answer buttons at all — it opens the masked Inbox row, where the value goes into the vault's own door.
Where it flies, and where it does not
A flutter has to be near where you are looking, and must never cover the thing you are aiming
at. nudgePlacement() tries four spots around the cursor and takes the first whose combined
fairy-plus-whisper box fits the work area and stays clear of a 48 px guard around the pointer;
otherwise it falls back to the upper middle of the screen, clamped and still clear of the
cursor where it can be.
The loop holds still for the obvious reasons: Do not disturb, NOW mode, a game posture, or a
full-screen app hold every nudge, and so does two minutes of idleness (idleHoldMs) — nobody
is looking, so nothing should fly. Come back from five minutes away and the top card gets one
nudge led by "While you were away".
The full-screen test exists on both sides of the wire. On Windows the probe asks the shell, then checks the foreground window's geometry:
const QUNS_QUIET = Object.freeze({ 2: "a full-screen app", 3: "a full-screen game",
4: "presentation mode", 6: "Focus Assist" });
SHQueryUserNotificationState covers the operating system's own answer; the geometry check
covers a plain window that fills its monitor. The shell and the desk's own windows are
excluded, and anything unreadable reads as not quiet — a probe that cannot answer must
not silence the fairy forever.
The handshake that removed the popups
The desktop alone cannot stop Python from opening its own card window. That took a claim on
the existing liveness heartbeat. awdesk already writes ~/.aither/decisions/.desk-alive
every 20 seconds; it now carries one extra key, only while the fairy is genuinely on screen
and its nudge loop is running:
claim: () => (companionMode() === "fairy" && orbWindow.ownsAttention() ? { attention: "fairy" } : null),
and, in the heartbeat body:
if (extra && typeof extra.attention === "string" && /^[a-z]{1,24}$/.test(extra.attention)) {
body.attention = extra.attention;
}
On the Python side, desk_attention_claim() reads that key under the same 90-second
staleness rule the liveness check already used, and notify() skips the window only on a
fresh claim:
if time.time() - path.stat().st_mtime >= DESK_ALIVE_STALE_SECONDS:
return ""
...
claim = payload.get(DESK_ATTENTION_KEY)
return claim.strip() if isinstance(claim, str) else ""
Every failure mode falls toward a visible window: a stale, absent, unreadable, oversized or non-JSON heartbeat, or a non-string value, all return no claim. The claim is re-judged every beat, never cached, because the desk can start or die between two cards — a dead desk or a hidden fairy brings the window back. That half is rolling out now; the desk half is merged and live.
How it was verified
The desk's node suite is 2,612 tests, all passing, 23 of them new: triage rules, ladder arithmetic, pacing, placement, and one that matters most — a whisper asked to answer with an option the card does not have must refuse. It was mutation-checked; reintroduce the invented-option path and the suite fails. CI is green on Linux, Windows and macOS, twice each.
It also ran on a real desk before merge: the heartbeat carried {"attention":"fairy"}, and
the fairy flew to the pointer carrying a critical card — disk space below its free floor.
One design note shaped a default. The arrival rule originally fired for any card never
nudged, which on a restart means the whole backlog, and the fairy fluttered through it 20
seconds at a time. The fix is a definition, not a delay: an arrival is a card raised in the
last ten minutes (arrivalWindowMs). A card that has been sitting there is not news; it
waits its turn on the ladder.
Known limits
- The full-screen check runs only when a nudge is due, so a game that goes full-screen between two nudges is caught at the next one, not instantly.
- A maximized window with an auto-hidden taskbar can measure as covering its monitor and read as full-screen. Holding a nudge is the safe direction to be wrong in.
- Voice plays only on a repeat at L3, never on the first arrival, and never while the microphone is muted — unless the owner presses "Read it to me".
Get the update: awdesk is free for Windows, macOS and Linux at aitherium.com/download. Your next decision card will arrive as a bird, not a dialog.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.