Repository navigation
Conversation
A third lock PAM stack, omarchy-lock-face, runs beside the password and fingerprint ones when setup has written it. It takes no prompt: looking at the camera is the act, and only PamResult.Success opens the screen. While the panel is blank the lock screen asks the face daemon for one short look every three seconds and wakes only for a face turned to the screen and near enough to judge. The panel stays lit while a face attempt or its retry runs. Three misses with the panel lit hand over to the same probe, which then waits for that face to leave or come noticeably closer, so sitting back in view does not cycle the panel. Scans are spaced at least a second apart when the daemon answers at once, and the face lane logs to the console only, so the lock status IPC says nothing about who is at the machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchy setup security face checks for a supported IR camera, installs omarchy-faceauth and omarchy-faceauth-models, and asks faceauth doctor whether the daemon can open the camera and drive its illuminator; a stock kernel stops here, before the service is enabled. It then enrols five looks from the terminal, verifies them with a live match, and only then writes the omarchy-lock-face PAM service, closed by pam_deny. Add Look enrols another look into the same identity. Removal takes the PAM service out first, deletes the templates (directly when the daemon is stopped or will not delete them), then drops both packages. The IR camera lister reads sysfs only and lists an ov7251 on an ipu3-cio2 graph, the one camera the daemon drives, so the menu guard opens no device. The menu gains Setup > Security > Face (Enroll, Add Look, Status) and Remove > Security > Face. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The face daemon summons omarchy.faceauth.enrol when an enrolment starts. The window reads the daemon's per-frame stream over its own socket connection and draws a dot for where the head points and a dashed ring for the target; it never asks for, receives or shows a camera image. Its buttons send continue, redo and cancel back, and it closes when the session ends. After the looks the daemon runs its gesture and everyday rounds in the same window. Setup and Add Look enrol through the window instead of the terminal, and Setup > Security > Face gains Tune Gestures, which runs the rounds again through omarchy-setup-security-face --gestures so the menu names no sudo. A layer rule keeps the window instant and out of screen shares. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quickshell asks polkit for the agent slot once, when the PolkitAgent object is created. A shell relaunched by its crash handler asks while the crashed instance still holds the slot, loses, and every pkexec after that fails for want of an agent. The agent now lives in a Loader, and while it is not registered a timer makes a fresh one every three seconds. References to the agent tolerate the moment it is being replaced. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the polkit PAM stack carries a pam_faceauth consent line, the face daemon's own window owns the request: the agent keeps its dialog hidden until PAM asks for a password. As a request starts, the agent tells the daemon polkit's action, message and cookie, and polkitd's caller and subject pids when Quickshell exposes the request's details, over its own socket connection; the daemon labels a request only from the process that connected polkit's helper. A Quickshell without the details is warned about once per shell, and its cards show the requester unverified. A refusal at the face window reaches the agent as an authentication failure with nothing submitted, and the agent cancels the request instead of letting polkit ask again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Setup adds one consent line to the sudo stack and one to polkit-1, after any fingerprint or FIDO2 line so a touch or a tap still answers first. The face daemon then opens omarchy.faceauth for every request: the card names the command and who asked, labelled by whether the daemon read them from /proc itself, and the request is approved by two nods at the camera or the password typed into the card, and refused by two shakes, Dismiss or Escape. The card belongs to one request token, acknowledges it before the daemon reads a nod, and hides without answering when the daemon goes quiet. On sudo a no falls to the terminal prompt; on polkit it ends the request. When polkit-1 does not exist, setup creates it from the vendor stack and keeps a copy of what it wrote; removal deletes the file only while it still matches that copy and otherwise strips our line alone, as fingerprint and FIDO2 removal do. A face line setup did not write is replaced. The layer rule now also covers the consent card. The daemon accepts a passwordless-sudo rider on a sudo request over its socket, so the card already shows one it reports: the command line reads "and passwordless sudo for N min" and a changed rider is acknowledged afresh before any nod counts. The controls that arm one come separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The face daemon's walk-away watch locks the session through the lock IPC's new lockPresence. That lock keeps the panel lit for ten minutes instead of the usual few seconds, so the waiting screen is visible from across the room and the face scan can open it when the owner comes back. The lit window is granted once per lock: a repeat on the same lock leaves the blank timer alone, so no process of the user's can keep the panel, the camera and its illuminator on by calling it again. The ordinary lock resets the delay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Setup > Security > Face gains Walk-Away Lock: Off, or on after 20, 30 or 60 seconds away. The rows run omarchy-setup-security-face --walk-away, which turns the daemon's presence watch on or off, and each row is checked from the daemon's config. Setup puts the omarchy.faceauth.presence bar widget before the power widget and removal takes it off, so machines without face authentication never run it. The widget shows only while the watch is on; a left click switches between the default and secure modes, a right click lists them, and the mode lasts until the service restarts. Super + Alt + L, bound only where faceauth is installed, switches between the same two modes. The top bar and hotkey manual pages list both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The obscured face lock time is how long a face that is partly covered or turned away (a hand on the chin, a look down) keeps the session open while the same shape stays in the chair, one time per walk-away mode. Walk-Away Lock gains an Obscured Face row, which opens a panel titled Obscured face lock time with a Default mode and a Secure mode row. Default mode offers never, the shipped choice, or 4 hours down to 1 minute, and secure mode 10, 5, 2 or 1 minutes, 2 shipped. Each time row runs omarchy-setup-security-face with --obscured-face-lock or --secure-obscured-face-lock, which accept only those values and run faceauth presence obscured-lock. That saves the time and never switches the walk-away lock on, so the row always shows. Rows are checked from the daemon's config, with never and 2 minutes checked while unset. After a verified enrolment setup asks for both times with gum, the shipped ones selected, and saves them the same way. Without a terminal, or when a question is cancelled, it saves nothing and says the times stay as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After enrolment and the obscured face lock questions, setup says where the walk-away lock is turned on and its times changed, what the bar icon does on a left and right click, and that Super + Alt + L switches the modes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a sudo request the card offers a minutes box and a button that ask the daemon, with the request's token, to turn Omarchy's passwordless sudo on for that long when this request is approved. The button approves nothing: the nod or the password stays the only consent, and the daemon writes the same sudoers rule and expiry timer omarchy-sudo-passwordless does. The controls are greyed unless the daemon reports the enrolled face in front of the camera, the card carries omarchy-sudo-passwordless's warning word for word while arming and while a rider is armed, and an armed rider replaces the controls with a note. Polkit requests and the passwordless command's own card get no controls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Everything the live checkout ran uncommitted on top of the five face PRs, kept as one commit for the restack to sort into them: - Face setup takes --add in place of omarchy-setup-security-face-add, and the walk-away menu has Enable, Disable, Away Time and Obscured Face. - FaceAuthOverlay, the shared base of the consent card and the enrollment walk-through, on Commons.Color. - The lock screen's face cascade in LockFaceModel.js, with a start guard so the face lane cannot spin during a cooldown. - The presence widget refreshes over ShellIpc on every monitor. - Secure walk-away is offered only on a camera that can flash its IR light: the widget and Super + Alt + L say why when it is not, and a refused switch shows the daemon's reason. - American spelling in the enrollment plugin and the manual pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With face set up, the key line in sudo and polkit becomes the face service's own key line, right below the face line, so every use of the key goes through the service: the consent card offers the key alongside the nod and the password, one request at a time, and a PIN field when the key asks for one. Without face, the pam_u2f line stays as Omarchy writes it, and removing face puts the key back on its own. - install/helpers/pam-stack.sh places, checks and creates the face and key lines for face setup, Fido2 setup and both removals, under the PAM edit lock with atomic edits; a key line the service cannot carry over stops setup before anything changes. - The lock screen gains a key lane, omarchy-lock-fido2, the service's key-unlock line: while locked a touch can only unlock, and the lock screen says when faceauth isn't running. - omarchy-shell -s reads its last argument from stdin and sends it over the shell's socket only, so the card's answer token never sits in argv. - Face setup makes the infrared capture node the face service's alone when it can tell the node carries only infrared; removal gives it back. Kept as one commit for the live test, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pam_faceauth asks the polkit agent, through polkit's own helper, for the cookie of the request it serves, and the face service matches the request to the agent's context by that cookie alone, so the consent card names this request and no other. The agent answers the question at once and never shows it: the cookie behind the tag "faceauth-cookie ", which the module requires, or the tag alone without face set up. - PolkitModel.js holds the prompt's exact text, the check for it and the tagged answer. - The context line names that prompt (context_cookie_prompt), so the service asks only a shell that answers exactly that text. - polkit-test.sh covers the match and the answer. Kept as its own commit on the live-test branch, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The face service's cookie question now ends with a fresh challenge, and the module takes only an answer that carries it back, so nothing typed into the question, were an agent ever to show it as a field, is taken for a cookie: a password was chosen before its challenge existed. - PolkitModel.js recognizes the question by its start, reads the challenge off its end, and answers the tag, the challenge and the cookie. A question with a malformed challenge is answered with nothing and still never shown. - The context line names the question's new start, so a face service that asks the old question never asks this shell. - polkit-test.sh covers the challenge, malformed questions and the answer. Kept as its own commit on the live-test branch, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The face service takes a card down from its side after a head shake, a dismissal, or a requester killed or gone, and the shell's hide calls the card's close(). close() hid the card but kept the request's state and token, and stopped the timer that would have cleared them, so the card held a finished request as pending and turned away every later summon as a stranger's: each request after a no or a killed pkexec fell to the password until the shell restarted. close() now ends the card's request, whoever closed it, after any dismiss it sends (which already carries the token), and remembers the token, so a payload for that request that arrives late changes nothing. Expiry still clears without closing, so a live request's next re-send brings its card back. faceauth-window-test.sh runs the card's own open() and close() through the case seen live, a late payload for a closed request, and a re-send after expiry. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The lock screen asked the key again every half minute for as long as the session stayed locked, so the key blinked all night and the face service logged a check every thirty seconds. The key is now asked only while the lock's displays are lit, as the face scan is: blanking ends the attempt, so the face service stops its check and cancels the key's wait, and any wake (a key, a click, a move, or the face probe finding the owner) asks again at once. The hint to touch the key shows only while the lane can be asking, by the lane's own dark state. lock-fido2-test.sh runs the lane's functions through a dark start, a blank mid-attempt and a wake. Kept as its own commit on the live-test branch, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… kill From the second live test of the key on the card: - The card logs each answer it sends by kind and how consent-answer ended, and each close with whether it said no, never a token, password or PIN, so an answer that never reached the face service leaves a trace. - A no that did not get through, consent-answer exiting non-zero or never starting at all, lets go of the card's close, so the service's re-send of a request still waiting shows its card again rather than leave a live request, its key armed, with no card. The card draws nothing itself: a request the service has ended is never re-sent. - Deny and kill sends the no first, then asks faceauth kill-requester to end the process the service pinned for the card, named by pid and pidfs id, so a pid another process holds by then is never signalled; the button shows only for a pinned process, and /usr/bin/kill is gone. faceauth-window-test.sh runs the card's own functions through each of these. Kept as its own commit on the live-test branch, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The setup's own sudo calls leave a timestamp that passed its closing test without asking anything, as the second live test showed. The cache is now cleared right before it. Kept as its own commit on the live-test branch, for the restack to sort into the face PRs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Upstream now closes the polkit card the moment a request ends, so a face request granted after a nod, which never showed the card, ends with the card still hidden and no password field behind it. A new flow also drops a failure flash still showing from the request before it. polkit-test.sh checks both on the agent's vm harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The daemon counts nods only from the scan's match, but the card looked the same while it was still looking for the face, so a nod made too early was thrown away without a sign. In the nod state the status icon and message now take the accent and the message goes bold. A card waiting for "Ready to nod", one whose face has left the camera's view, and one that names a passwordless rider (whose nods the daemon holds back) stay plain. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Setup > Security > Face > Report a Bug runs `faceauth triage` in the presentation terminal, as Status runs `faceauth doctor`. It collects FaceAuth's state on this machine and opens Claude or Codex to find what went wrong and help file an issue, posting nothing without the user's yes; with no agent installed it prints the prompt and the issue links, and the Done prompt keeps them on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Findings Ledger
Expected base: upstream-quattro-20261201 |
The FaceAuth fork on homepc ran a checkout frozen at the 2026-11-12 Omarchy base (2d33fd5), with its
bin/ahead of/usr/binon PATH. This morning's update installed Omarchy 4.6 (omarchy-dev 4.6.0.r8727), whose agent-account dispatchers expect 4.6'somarchy-agent-account-*scripts. The fork's stale copies made the dispatchers find themselves again and loop until "Argument list too long", so claude, codex and grok failed, and T3's providers with them. About 50 Omarchy migrations are pending, so Mike chose to bring the fork current first.This PR rebases the 22 live FaceAuth commits onto upstream quattro at c0f16f3. The base branch
upstream-quattro-20261201is a plain copy of that upstream commit, so the diff shows only FaceAuth's changes.omarchy-agent-account-*script; they were upstream files frozen at the old base. On this branch all 12 are byte-identical to 4.6's (git diff upstream-quattro-20261201 -- 'bin/omarchy-agent-account-*'is empty).PolkitAgent.qml,PolkitModel.js, and its vm test harness.const fsinpolkit-test.sh, and a no-opsyncSessionLocked()stub in the lock-face test, which upstream'sfinishUnlocknow calls.Nothing here goes live. Activation on homepc (PAM backups, a proven password path, a
sudo -isafety net) and the pending migrations come after Mike's review, and need his word.Push exception, recorded. Mike, 2026-12-01, relayed: "go with the agentright fix", then "also allow the push". This one time, the three refs (
upstream-quattro-20261201at c0f16f3,backup/faceauth-live-20261112at 0d80030, and this branch at 3b5d8bf) were pushed with the hook skipped, all as new branches with nothing rewritten. Before the push, the hook's own gate command was run by hand on each ref. Its only refusals were these six tracked symlinks, which are upstream Omarchy's files, not FaceAuth's, plus a "not the checked-out HEAD" notice on the mirror and backup refs:default/alsa/ucm2/conf.d/amd-soundwire/HP-HPZBookUltraG3a16inchMobileWorkstationPC-SBKPFV3-8F6D.conf,default/alsa/ucm2/conf.d/glymur/COMPAL-QualcommGlymur-V0.04-NY4P9.conf,default/alsa/ucm2/conf.d/mt8901-soundwir/mt8901-soundwir.conf,default/alsa/ucm2/conf.d/x1e80100/HP-HPEliteBookUltraG1q14inchNotebookAIPC-ConfigID-8CBE.conf,default/alsa/ucm2/conf.d/x1e80100/X1E80100-HP-ELITEBOOK-ULTRA-G1Q.conf,default/chromium/extensions/copy-url/icon.png.The gate's tracked-symlink refusal is being fixed in AgentRight (coordinator thread 30db2c93). Every later push to this fork goes through the hook, and the real pre-push gate runs on this PR's head once that fix reaches the Mac.
Finish: full stop. This is Mike's login system, so it stops at ready for his review.
🤖 Generated with Claude Code