You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
laptop keyring stays locked after daemon restart — Secret Service consumers (agy) blocked until manual unlock #10724
After the laptop's 2026-11-16 ~05:35–05:39 CT outage and recovery, gnome-keyring-daemon restarted (05:38) outside a desktop login session and stayed locked. agy's login lives in that keyring (Secret Service, go-keyring scheme), so the Antigravity account switch ordered by Drew was blocked at the delete step — "Cannot delete a locked item" — until Drew physically unlocked the keyring at the laptop screen.
Why it should not happen
The keyring normally unlocks via PAM at desktop login. A daemon restart during service recovery bypasses that, leaving every keyring consumer (agy today; anything else using Secret Service) silently unauthenticated until a human goes to the screen. Drew's position: "it should unlock itself."
Scope
Make keyring unlock survive daemon/service restarts on the laptop: e.g. tie the daemon to the desktop session so a recovery restart re-unlocks the way login does, or an equivalent mechanism that does not store the keyring password in plaintext.
Verify agy (and other Secret Service consumers) can read their items after a daemon restart with no manual unlock.
Acceptance check
Restart gnome-keyring-daemon out-of-session (simulating the recovery path), then confirm agy --print authenticates with no unlock prompt and no manual step.
code-j pickup (task 17508): claimed the left-on-ground checker for keyring self-unlock. Issue OPEN, no PRs reference it yet, no held/Drew-owned flags. Plan: inspect current daemon state on laptop, determine fix location, attempt fix + acceptance (out-of-session restart, agy read with no unlock), post proof, close. Run budget ~10 min remaining; will park with resume brief if fix needs more.
code-j parked (task 17508, 20min delay): run budget ended, claim parked — not evaporated. Diagnosis recorded in task checkpoints: daemon (PID 29771, up since 05:38 recovery) is dbus-activated, which bypasses PAM login-unlock — that is the root cause shape. Login collection currently unlocked (manual unlock held). Restart-test deliberately deferred: re-running it now would re-lock the live daytime keyring. Resume needs: fix-location call (nix repo vs code repo) + fix implementation + out-of-hours acceptance test.
code-f pickup (task 17508): re-claimed the checker. Issue still OPEN, no PRs reference it, no held/Drew-owned flags. Found an orphaned fix draft uncommitted in the laptop primary clone (intent-to-add staged, written ~15:33–15:37Z, no live owner found): nixos/services/keyring-auto-unlock/ (module + stash/unlock scripts + isolated test) with wiring in nixos/hosts/default.nix + nixos/users/user/default.nix. Repo files untouched; live keyring untouched.
code-f parked (task 17508): verified the draft in isolation (private bus, scratch HOME, scratch kernel key — never touched the live keyring) and found a critical bug: the scripts query D-Bus interface org.freedesktop.secrets.Service / .Collection, but the real interface is org.freedesktop.Secret.Service / org.freedesktop.Secret.Collection (proven against the live daemon introspection — the plural form fails identically there). As drafted the collection resolves empty and the unlocker exits 0 silently forever: the fix would deploy dead. Test harness also needs repair: it never creates ${T}/run (dbus-run-session XDG dir), uses conflicting --start --foreground, and its step-1 assumption is false (fresh daemon + --unlock leaves login Locked=true — the isolated test must simulate PAM: create collection + set default alias). Shellcheck on the scripts is otherwise clean (only benign SC2097/2098 in the test). Resume: (1) fix Secret.* names in both scripts + test, (2) repair harness, prove ALL PASS isolated, (3) commit onto queue/17508-10724-<slug> + PR, (4) nixos-rebuild switch + out-of-hours live acceptance (restart daemon out-of-session, agy reads with no manual unlock — do NOT restart mid-day, it re-locks the live keyring).
any-b parked (task 17508): checker revalidation — the resume condition (a quiet window for the laptop switch) is still NOT met, fresh-verified this shift (2026-11-17T02:26Z):
Load is finally low (4.61 / 3.76 / 3.58) and no nix/cargo builds are running — but the opencode serve session (PID 1096107, live since 19:04 CST, ~45% CPU sustained) is still active, the same blocker named in the 01:24Z code-d park. A nixos-rebuild switch in this window can restart services under that live fleet session.
Resume: claim again when no live opencode serve / fleet session is running on the laptop; the switch itself is fleet-executable per standing doctrine once the window is quiet.
any-b parked again (task 17508): resume condition still unmet on fresh check (2026-11-17T02:53Z). The opencode serve session (PID 1096107) is still live and actively working — its CPU time grew 36:48 -> 43:45 since the 02:26Z check — so the laptop switch window is still unsafe. Everything else is ready: load is moderate, no nix/cargo builds running, merged fix (PR #10829) still undeployed (no keyring-auto-unlock units in /run/current-system). Parking with a longer 1-hour delay this time to stop the 20-minute re-park churn; resume unchanged: quiet window (no live opencode serve/fleet session) -> amd switch -> packaged tests -> post-graphical-login stash -> out-of-session restart + agy --print proof -> close #10724. Live keyring untouched.
The window is busier than at the last park, not quieter: load average 20.95 / 11.15 / 10.60, with a nix build and multiple cargo build/test processes actively running (including lane work for task 18486's fleet smoke build), and an opencode serve is live on the laptop (PID 2145915, port 13420 — a successor process to the PID 1096107 named in earlier parks). A nixos-rebuild switch in this window contends with those builds and can restart services under live fleet sessions.
Resume: claim again when no live opencode serve / fleet session is running on the laptop and load is low; the switch itself is fleet-executable per standing doctrine once the window is quiet. Parked 1 hour to stop re-park churn.
Progress since the last check: the keyring-auto-unlock units are now IN the running system — keyring-auto-unlock.path (enabled) and keyring-auto-unlock.service (linked) appear in the user unit files, and the current system is /nix/store/dp3rcjazhkxssg4cix50rg25z1cinnyx-nixos-system-amd-26.11.20261102.f9887a8 (the prior check's system j7ndg17m… lacked them). The switch the earlier checks waited on has landed.
Fresh state (2026-11-17T04:52Z / 22:52 CST): issue laptop keyring stays locked after daemon restart — Secret Service consumers (agy) blocked until manual unlock #10724 OPEN (status:in-review, parked labels stand). Login collection Locked=false — the manual unlock still holds. Laptop load 1.63 / 5.19 / 9.38 (decaying, not quiet). Live sessions:opencode serve (port 13420), the fleet queue-broker + search services, and the embedding llama-server are all running — this infrastructure is mid-shift for multiple lanes right now.
Why the acceptance proof still cannot run: the proof needs (1) a stash taken after a fresh graphical login — the current graphical session is 17h old, no new login event; (2) an out-of-session gnome-keyring-daemon restart — restarting it now re-locks the live keyring under running fleet/opencode sessions, the exact harm this checker exists to prevent; (3) a quiet laptop — condition (per the task's own resume text) is unmet with serve/broker processes live. Running the restart tonight would trade a proof for a fleet-wide secrets outage.
Condition 1 — fresh graphical login: UNMET. The wayland session timestamp is still Mon 2026-11-16 05:37:58 CST (loginctl, this check) — no new graphical login since the last check; the session is ~24h old, so no post-login stash can have fired.
Condition 2 — quiet window: UNMET, worse than last check. Load average 18.94 / 21.44 / 26.91 (uptime, this check) and multiple opencode serve processes are live (including the port-13420 service and fleet worktree serves on 4799/35459).
The acceptance proof (out-of-session gnome-keyring-daemon restart + agy --print) still must not run under these conditions: restarting the daemon now re-locks the live keyring under running fleet/opencode sessions — the exact harm this checker exists to prevent.
Fresh check 2026-11-17T06:54Z (00:54 CST): the graphical session timestamp is still Mon 2026-11-16 05:37:37 CST (no fresh graphical login — the stash step of the acceptance proof has nothing new to capture); load average 38.82 / 38.93 / 31.45 (heavier than the evening checks, fleet builds running); opencode.serviceactive; current system generation unchanged (nixos-system-amd-26.11.20261102.f9887a8, no keyring-auto-unlock units in the live system).
Every resume condition from the earlier checkpoints therefore still fails, and the deployment switch remains Drew-gated (no passwordless sudo for nixos-rebuild). Restarting the live keyring daemon under this load, with opencode live and no fresh login to stash from, would re-lock the keyring the proof depends on.
Fresh check 2026-11-17T09:07Z (03:07 CST): load average 90.31 / 96.42 / 92.28 — far heavier than the overnight checks (fleet work saturating the laptop); the graphical session is still the same seat0/tty2 session (no fresh graphical login since Mon 2026-11-16 05:37 CST — the stash step of the acceptance proof still has nothing new to capture).
Every resume condition therefore still fails: the proof needs a fresh graphical login + a quiet laptop + the Drew-gated nixos-rebuild switch reaching the live system (no passwordless sudo for the worker). Restarting the live keyring daemon under this load would re-lock the keyring the proof depends on.
Parked — task 17508 (lane code-d): acceptance proof still gated on a fresh graphical login (fresh evidence)
Re-checked the resume conditions directly this shift (2026-11-17, ~04:10 CST):
Stash key absent (the binding condition). The deployed mechanism (keyring-auto-unlock.path active/waiting; service reads the kernel user keyring entry keyring:login-unlock, written by keyring-password-stash at graphical login) has nothing to read: keyctl search @u user keyring:login-unlock → "Required key not available", and keyctl show @u lists no such key. The only graphical session (seat0/tty2) still dates from Mon 2026-11-16 05:37:37 CST (loginctl), which predates the deployed fix — no post-deploy login has occurred, so no stash can exist.
Restarting the daemon now would cause the outage, not prove the fix. The auto-unlock script itself, finding no cached password, logs "leaving locked". The running daemon is currently unlocked only because of Drew's manual unlock on 2026-11-16; killing it for the proof would strand Secret Service consumers (agy) locked until the next physical unlock. I did not restart it.
Quiet window also unmet: load average 19.4 / 37.1 / 42.0 at check time (fleet builds running).
Resume condition (unchanged, now with the exact probe): after the next graphical login on the laptop, verify keyctl search @u user keyring:login-unlock succeeds, then restart gnome-keyring-daemon out-of-session and confirm agy --print authenticates with no prompt. Task 17508 is parked with a 7-day term so it stops re-serving every cycle before its condition can be true; the first lane to see the stash key present can run the proof in minutes.
Merged work, still open. Every pull request that references this issue has merged (#10829, #10932) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
The acceptance proof (restart gnome-keyring-daemon out of session, then agy --print authenticates with no unlock prompt) needs a desktop login on the laptop. Lingering sessions exist, but the graphical seat (seat0/tty2) is the one the unlock depends on. That check cannot be run from this lane.
Disposition: parked for 24 hours. Resume when a graphical login is available to run the proof, or when a remote check of keyring:login-unlock can confirm it.
Activity
developing-today commentedon Nov 16, 2026
CODE-3887
dezren39 commentedon Nov 16, 2026
code-j pickup (task 17508): claimed the left-on-ground checker for keyring self-unlock. Issue OPEN, no PRs reference it yet, no held/Drew-owned flags. Plan: inspect current daemon state on laptop, determine fix location, attempt fix + acceptance (out-of-session restart, agy read with no unlock), post proof, close. Run budget ~10 min remaining; will park with resume brief if fix needs more.
dezren39 commentedon Nov 16, 2026
code-j parked (task 17508, 20min delay): run budget ended, claim parked — not evaporated. Diagnosis recorded in task checkpoints: daemon (PID 29771, up since 05:38 recovery) is dbus-activated, which bypasses PAM login-unlock — that is the root cause shape. Login collection currently unlocked (manual unlock held). Restart-test deliberately deferred: re-running it now would re-lock the live daytime keyring. Resume needs: fix-location call (nix repo vs code repo) + fix implementation + out-of-hours acceptance test.
dezren39 commentedon Nov 16, 2026
code-f pickup (task 17508): re-claimed the checker. Issue still OPEN, no PRs reference it, no held/Drew-owned flags. Found an orphaned fix draft uncommitted in the laptop primary clone (intent-to-add staged, written ~15:33–15:37Z, no live owner found):
nixos/services/keyring-auto-unlock/(module + stash/unlock scripts + isolated test) with wiring innixos/hosts/default.nix+nixos/users/user/default.nix. Repo files untouched; live keyring untouched.code-f parked (task 17508): verified the draft in isolation (private bus, scratch HOME, scratch kernel key — never touched the live keyring) and found a critical bug: the scripts query D-Bus interface
org.freedesktop.secrets.Service/.Collection, but the real interface isorg.freedesktop.Secret.Service/org.freedesktop.Secret.Collection(proven against the live daemon introspection — the plural form fails identically there). As drafted the collection resolves empty and the unlocker exits 0 silently forever: the fix would deploy dead. Test harness also needs repair: it never creates${T}/run(dbus-run-session XDG dir), uses conflicting--start --foreground, and its step-1 assumption is false (fresh daemon +--unlockleavesloginLocked=true — the isolated test must simulate PAM: create collection + set default alias). Shellcheck on the scripts is otherwise clean (only benign SC2097/2098 in the test). Resume: (1) fixSecret.*names in both scripts + test, (2) repair harness, prove ALL PASS isolated, (3) commit ontoqueue/17508-10724-<slug>+ PR, (4)nixos-rebuild switch+ out-of-hours live acceptance (restart daemon out-of-session, agy reads with no manual unlock — do NOT restart mid-day, it re-locks the live keyring).38 remaining items
dezren39 commentedon Nov 17, 2026
any-b parked (task 17508): checker revalidation — the resume condition (a quiet window for the laptop switch) is still NOT met, fresh-verified this shift (2026-11-17T02:26Z):
Resume: claim again when no live opencode serve / fleet session is running on the laptop; the switch itself is fleet-executable per standing doctrine once the window is quiet.
dezren39 commentedon Nov 17, 2026
any-b parked again (task 17508): resume condition still unmet on fresh check (2026-11-17T02:53Z). The opencode serve session (PID 1096107) is still live and actively working — its CPU time grew 36:48 -> 43:45 since the 02:26Z check — so the laptop switch window is still unsafe. Everything else is ready: load is moderate, no nix/cargo builds running, merged fix (PR #10829) still undeployed (no keyring-auto-unlock units in /run/current-system). Parking with a longer 1-hour delay this time to stop the 20-minute re-park churn; resume unchanged: quiet window (no live opencode serve/fleet session) -> amd switch -> packaged tests -> post-graphical-login stash -> out-of-session restart + agy --print proof -> close #10724. Live keyring untouched.
Merge pull request #10932 from developing-today/fix/10724-pam-verify-…
dezren39 commentedon Nov 17, 2026
state: parked
lane: any-b, worker: repo-worker-code, task 17508
any-b parked again (task 17508): resume condition still NOT met, fresh-verified this shift (2026-11-17T03:50Z):
Resume: claim again when no live opencode serve / fleet session is running on the laptop and load is low; the switch itself is fleet-executable per standing doctrine once the window is quiet. Parked 1 hour to stop re-park churn.
dezren39 commentedon Nov 17, 2026
🤖 Agent note · checker re-verification — task 17508 (lane code-a)
keyring-auto-unlock.path(enabled) andkeyring-auto-unlock.service(linked) appear in the user unit files, and the current system is/nix/store/dp3rcjazhkxssg4cix50rg25z1cinnyx-nixos-system-amd-26.11.20261102.f9887a8(the prior check's systemj7ndg17m…lacked them). The switch the earlier checks waited on has landed.Locked=false— the manual unlock still holds. Laptop load 1.63 / 5.19 / 9.38 (decaying, not quiet). Live sessions:opencode serve(port 13420), the fleet queue-broker + search services, and the embedding llama-server are all running — this infrastructure is mid-shift for multiple lanes right now.agy --printproof, then close laptop keyring stays locked after daemon restart — Secret Service consumers (agy) blocked until manual unlock #10724 with the evidence. Task 17508 parks on that condition.dezren39 commentedon Nov 17, 2026
Agent note — checker re-verification (task 17508, lane any-c, 2026-11-17T05:52Z)
State: parked — resume condition still unmet on fresh check.
Task 17508 parks 1 hour on that condition.
dezren39 commentedon Nov 17, 2026
🤖 Agent note · acceptance-proof conditions re-checked overnight, still unmet — task 17508 (lane code-a)
opencode.serviceactive; current system generation unchanged (nixos-system-amd-26.11.20261102.f9887a8, no keyring-auto-unlock units in the live system).dezren39 commentedon Nov 17, 2026
Agent note — task 17508 re-parked (lane any-t): acceptance-proof conditions re-checked, still unmet
dezren39 commentedon Nov 17, 2026
Parked — task 17508 (lane code-d): acceptance proof still gated on a fresh graphical login (fresh evidence)
Re-checked the resume conditions directly this shift (2026-11-17, ~04:10 CST):
keyring-auto-unlock.pathactive/waiting; service reads the kernel user keyring entrykeyring:login-unlock, written bykeyring-password-stashat graphical login) has nothing to read:keyctl search @u user keyring:login-unlock→ "Required key not available", andkeyctl show @ulists no such key. The only graphical session (seat0/tty2) still dates from Mon 2026-11-16 05:37:37 CST (loginctl), which predates the deployed fix — no post-deploy login has occurred, so no stash can exist.Resume condition (unchanged, now with the exact probe): after the next graphical login on the laptop, verify
keyctl search @u user keyring:login-unlocksucceeds, then restartgnome-keyring-daemonout-of-session and confirmagy --printauthenticates with no prompt. Task 17508 is parked with a 7-day term so it stops re-serving every cycle before its condition can be true; the first lane to see the stash key present can run the proof in minutes.dezren39 commentedon Nov 22, 2026
Merged work, still open. Every pull request that references this issue has merged (#10829, #10932) and none is open, but the issue kept
status:in-review. Tasks that name it as a blocker have been waiting on it.status:in-reviewis removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").By: Claude, 2026-11-22 flow review.
Generated by Claude Code
dezren39 commentedon Nov 23, 2026
Agent note · task 17508 parked (lane code-j): acceptance proof still needs a live graphical login
keyring-auto-unlock.pathand.serviceunits are deployed (home-manager store links dated 2026-11-22).gnome-keyring-daemonout of session, thenagy --printauthenticates with no unlock prompt) needs a desktop login on the laptop. Lingering sessions exist, but the graphical seat (seat0/tty2) is the one the unlock depends on. That check cannot be run from this lane.keyring:login-unlockcan confirm it.