Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/vs8l8kqllnnj4g03miz2y7qjsqkqf892-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase Building subPackage ./cmd/agent-deck Running phase: checkPhase --- FAIL: TestCodexAcceptanceGuardAcceptsFreshComposerThread (10.33s) codex_fresh_composer_send_test.go:48: pane process never held the writer lock (live thread "") 2026/09/26 20:50:46 WARN codex_hook_status_unreadable instance=partial path=/private/tmp/nix-etu9cV/TestWriteCodexHookStatus_PartialPriorFailsClosed4220919963/001/.local/share/agent-deck/hooks/partial.json bytes=10 Codex notify hook installed successfully. Config: /private/tmp/nix-etu9cV/TestCodexHooksInstallUninstall2516402032/001/.codex/config.toml Codex notify hook removed successfully. Codex notify hook upgraded successfully. Config: /private/tmp/nix-etu9cV/TestCodexHooksInstall_UpgradesLegacyTableWithoutMarkers3061739776/001/.codex/config.toml Codex notify hook upgraded successfully. Config: /private/tmp/nix-etu9cV/TestCodexHooksInstall_UpgradesLegacyMarkerBlock3826558353/001/.codex/config.toml --- FAIL: TestCoreRegistryMatchesLegacyHandlers (17.60s) core_cli_test.go:271: "session restart alpha --force" differs exit legacy=1 registry=1 --- legacy stdout --- --- registry stdout --- --- legacy stderr --- Error: failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67142) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67142 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 5d9bd4a8-1790455847 Reap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847 --- registry stderr --- Error: failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67217) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67217 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 5d9bd4a8-1790455847 Reap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847 core_cli_test.go:266: "session restart alpha --force --json": exit 1, stdout "{\n \"code\": \"INVALID_OPERATION\",\n \"error\": \"failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67217) could not be identified, so anything it started is unaccounted for; nothing was signalled)\\n unverifiable: pid=67217 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \\\"sysctl\\\": executable file not found in $PATH\\nNothing was started and nothing was signalled.\\nInspect: agent-deck session ownership inspect 5d9bd4a8-1790455847\\nReap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847\",\n \"success\": false\n}\n", want success containing "\"success\": true" (stderr "") core_cli_test.go:271: "session restart alpha --force --json" differs exit legacy=1 registry=1 --- legacy stdout --- { "code": "INVALID_OPERATION", "error": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67142) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67142 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 5d9bd4a8-1790455847\nReap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847", "success": false } --- registry stdout --- { "code": "INVALID_OPERATION", "error": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67217) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67217 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 5d9bd4a8-1790455847\nReap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847", "success": false } --- legacy stderr --- --- registry stderr --- core_cli_test.go:271: "session restart beta --env FOO=bar --json" differs exit legacy=1 registry=1 --- legacy stdout --- { "code": "INVALID_OPERATION", "error": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67279) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67279 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 4f61d8c6-1790455847\nReap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847", "success": false } --- registry stdout --- { "code": "INVALID_OPERATION", "error": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67319) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67319 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 4f61d8c6-1790455847\nReap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847", "success": false } --- legacy stderr --- --- registry stderr --- core_cli_test.go:271: "session restart --all --json" differs exit legacy=1 registry=1 --- legacy stdout --- { "abandoned": 0, "auth_deaths": 0, "auth_tripped": false, "failed": 3, "restarted": 0, "sessions": [ { "error": "failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67142) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67142 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 5d9bd4a8-1790455847\nReap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847", "id": "5d9bd4a8-1790455847", "success": false, "title": "alpha" }, { "error": "failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67279) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67279 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 4f61d8c6-1790455847\nReap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847", "id": "4f61d8c6-1790455847", "success": false, "title": "beta" }, { "error": "failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67356) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67356 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect cc50f4d7-1790455847\nReap and clear: agent-deck session ownership reconcile cc50f4d7-1790455847", "id": "cc50f4d7-1790455847", "success": false, "title": "gamma" } ], "skipped_auth": 0, "success": false, "total": 3, "trip_message": "" } --- registry stdout --- { "abandoned": 0, "auth_deaths": 0, "auth_tripped": false, "failed": 3, "restarted": 0, "sessions": [ { "error": "failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67217) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67217 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 5d9bd4a8-1790455847\nReap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847", "id": "5d9bd4a8-1790455847", "success": false, "title": "alpha" }, { "error": "failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67319) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67319 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 4f61d8c6-1790455847\nReap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847", "id": "4f61d8c6-1790455847", "success": false, "title": "beta" }, { "error": "failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67392) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=67392 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect cc50f4d7-1790455847\nReap and clear: agent-deck session ownership reconcile cc50f4d7-1790455847", "id": "cc50f4d7-1790455847", "success": false, "title": "gamma" } ], "skipped_auth": 0, "success": false, "total": 3, "trip_message": "" } --- legacy stderr --- --- registry stderr --- core_cli_test.go:271: "session restart --all" differs exit legacy=1 registry=1 --- legacy stdout --- Restarting alpha... Restarting beta... Restarting gamma... Restarted 0/3 sessions (3 failed) --- registry stdout --- Restarting alpha... Restarting beta... Restarting gamma... Restarted 0/3 sessions (3 failed) --- legacy stderr --- Error: failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67142) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67142 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 5d9bd4a8-1790455847 Reap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847 Error: failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67279) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67279 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 4f61d8c6-1790455847 Reap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847 Error: failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67356) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67356 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect cc50f4d7-1790455847 Reap and clear: agent-deck session ownership reconcile cc50f4d7-1790455847 --- registry stderr --- Error: failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67217) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67217 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 5d9bd4a8-1790455847 Reap and clear: agent-deck session ownership reconcile 5d9bd4a8-1790455847 Error: failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67319) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67319 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 4f61d8c6-1790455847 Reap and clear: agent-deck session ownership reconcile 4f61d8c6-1790455847 Error: failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 67392) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=67392 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect cc50f4d7-1790455847 Reap and clear: agent-deck session ownership reconcile cc50f4d7-1790455847 --- FAIL: TestDaemonEnvelopesMatchArgv (5.46s) daemon_cmd_test.go:199: start (daemon CLI): ok=false, want true { "schema": "agent-deck/session.start/v1", "request_id": "3b8443d1c22b3302", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to start session: start refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:224: start: envelopes differ argv: {"data":{"group":"work","id":"135a3a71-1790455866","status":"started","title":"alpha","tmux":"agentdeck_alpha_b948e914"},"ok":true,"request_id":"\u003cID\u003e","revision":null,"schema":"agent-deck/session.start/v1","warnings":[]} daemon: {"data":null,"error":{"code":"INVALID_OPERATION","message":"failed to start session: start refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866"},"ok":false,"request_id":"\u003cID\u003e","revision":null,"schema":"agent-deck/session.start/v1","warnings":[]} daemon_cmd_test.go:199: restart fresh session is skipped (argv): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "b37c403912048edd", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:199: restart fresh session is skipped (daemon CLI): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "a6a899ded47f3eb4", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:199: restart --force (argv): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "e47e9a9fb21cc24e", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:199: restart --force (daemon CLI): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "3d2e2b09d6c5848a", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:199: restart --all (argv): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "a0399a14a772e244", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "NO_ACTIVE_SESSIONS", "message": "no active sessions to restart" } } daemon_cmd_test.go:199: restart --all (daemon CLI): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "ac2b8c5beac8be84", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "NO_ACTIVE_SESSIONS", "message": "no active sessions to restart" } } daemon_cmd_test.go:199: stop (argv): ok=false, want true { "schema": "agent-deck/session.stop/v1", "request_id": "bed9f597efe80159", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "NOT_RUNNING", "message": "session 'alpha' is not running" } } daemon_cmd_test.go:199: stop setup session start alpha --json=envelope: ok=false, want true { "schema": "agent-deck/session.start/v1", "request_id": "ca7bb53438dbbffa", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "INVALID_OPERATION", "message": "failed to start session: start refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68594) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68594 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 135a3a71-1790455866\nReap and clear: agent-deck session ownership reconcile 135a3a71-1790455866" } } daemon_cmd_test.go:199: stop (daemon CLI): ok=false, want true { "schema": "agent-deck/session.stop/v1", "request_id": "3b357e1b447ee525", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "NOT_RUNNING", "message": "session 'alpha' is not running" } } --- FAIL: TestDaemonRestartAllReturnsCompletedResult (8.08s) daemon_cmd_test.go:281: restart --all returned exit 1, result {OK:true Data:{All:{Total:5 Restarted:0 Failed:5 SkippedAuth:0 AuthDeaths:0 Abandoned:0 AuthTripped:false TripMessage: Sessions:[{ID:60b881a1-1790455871 Title:alpha Success:0x3446435cb959 Error:failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68878) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=68878 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 60b881a1-1790455871 Reap and clear: agent-deck session ownership reconcile 60b881a1-1790455871 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:43d38770-1790455871 Title:beta Success:0x3446435cb960 Error:failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68916) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=68916 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 43d38770-1790455871 Reap and clear: agent-deck session ownership reconcile 43d38770-1790455871 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:266c9063-1790455871 Title:gamma Success:0x3446435cb966 Error:failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68952) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=68952 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 266c9063-1790455871 Reap and clear: agent-deck session ownership reconcile 266c9063-1790455871 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:851acb45-1790455871 Title:delta Success:0x3446435cb96c Error:failed to restart session 'delta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68988) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=68988 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 851acb45-1790455871 Reap and clear: agent-deck session ownership reconcile 851acb45-1790455871 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:4d8fec94-1790455871 Title:epsilon Success:0x3446435cb977 Error:failed to restart session 'epsilon': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 69024) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=69024 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect 4d8fec94-1790455871 Reap and clear: agent-deck session ownership reconcile 4d8fec94-1790455871 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false}]}}}: { "schema": "agent-deck/session.restart/v1", "request_id": "064501ff41323875", "ok": true, "data": { "all": { "total": 5, "restarted": 0, "failed": 5, "skipped_auth": 0, "auth_deaths": 0, "abandoned": 0, "auth_tripped": false, "trip_message": "", "sessions": [ { "id": "60b881a1-1790455871", "title": "alpha", "success": false, "error": "failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68878) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68878 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 60b881a1-1790455871\nReap and clear: agent-deck session ownership reconcile 60b881a1-1790455871" }, { "id": "43d38770-1790455871", "title": "beta", "success": false, "error": "failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68916) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68916 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 43d38770-1790455871\nReap and clear: agent-deck session ownership reconcile 43d38770-1790455871" }, { "id": "266c9063-1790455871", "title": "gamma", "success": false, "error": "failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68952) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68952 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 266c9063-1790455871\nReap and clear: agent-deck session ownership reconcile 266c9063-1790455871" }, { "id": "851acb45-1790455871", "title": "delta", "success": false, "error": "failed to restart session 'delta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 68988) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=68988 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 851acb45-1790455871\nReap and clear: agent-deck session ownership reconcile 851acb45-1790455871" }, { "id": "4d8fec94-1790455871", "title": "epsilon", "success": false, "error": "failed to restart session 'epsilon': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 69024) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=69024 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: \"sysctl\": executable file not found in $PATH\nNothing was started and nothing was signalled.\nInspect: agent-deck session ownership inspect 4d8fec94-1790455871\nReap and clear: agent-deck session ownership reconcile 4d8fec94-1790455871" } ] } }, "warnings": [], "revision": null } agent-deck: CLAUDE_CONFIG_DIR="/private/tmp/nix-etu9cV/TestEventProfileUsesStorageFallbackForMissingInference15724648/001/.claude-ghost" would select profile "ghost", which does not exist; falling back to profile "work" instead of creating it. Known profiles: none yet. Pass -p/--profile or set AGENTDECK_PROFILE explicitly to pick a different profile, run `agent-deck profile create ghost` if you intend to create it, or unset CLAUDE_CONFIG_DIR to use the default profile. Gemini hooks installed successfully. Config: /private/tmp/nix-etu9cV/TestGeminiHooksInstallUninstall1045154558/001/.gemini/settings.json Gemini hooks removed successfully. --- FAIL: TestStorageBytesGoldens (3.26s) goldens_storage_test.go:81: agent-deck session start golden-sess-shell --no-wait (exit 0): stdout: ✓ Started session: storage bytes shell stderr: goldens_storage_test.go:85: agent-deck session stop golden-sess-shell (exit 0): stdout: ✓ Stopped session: storage bytes shell stderr: goldens_storage_test.go:89: agent-deck session restart golden-sess-shell (exit 1): stdout: stderr: Error: failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 70025) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=70025 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect golden-sess-shell Reap and clear: agent-deck session ownership reconcile golden-sess-shell goldens_storage_test.go:89: agent-deck session restart golden-sess-shell: exit 1 stdout: stderr: Error: failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 70025) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=70025 start= uid=0 role=leader — identity could not be read at spawn: process identity is unreadable: read kern.boottime: exec: "sysctl": executable file not found in $PATH Nothing was started and nothing was signalled. Inspect: agent-deck session ownership inspect golden-sess-shell Reap and clear: agent-deck session ownership reconcile golden-sess-shell ✓ Reordered group 'Beta': position 1 → 0 ✓ Reordered group 'Beta': position 1 → 2 ✓ Reordered group 'Gamma': position 2 → 0 ✓ Reordered group 'Alpha': position 0 → 0 ✓ Reordered group 'Gamma': position 2 → 2 ✓ Reordered group 'Alpha': position 0 → 2 Removing worktree at ~/wt-1576... ✓ Worktree removed swept 1 stale inbox event(s) for removed session ✓ Finished: session 'wt-finish-1576' removed, worktree cleaned up remote-agent: probe: storage gone remote-agent: binary upgraded (running v1.16.19); exiting so the controller reconnects remote-agent: probe produced no listing (Error: database is locked) remote-agent: probe produced no listing ([]) remote-agent: no input for 300ms, exiting ═══ Remote: offline (a@offline) ═══ – Skipped: agent-deck not found on remote or host unreachable ═══ Remote: offline (a@offline) ═══ ✗ Failed: stub: no platform A remote sweep is already running on this controller (pid 63972, started 8:52PM); waiting for it... ═══ Remote: lab (a@lab) ═══ – Skipped: sweep already in progress, remote lab is being updated by 63972 ═══ Remote: other (a@other) ═══ ✓ Up to date (v1.16.0) ═══ Remote: lab (a@lab) ═══ ✓ Up to date (v1.16.0) ═══ Remote: other (a@other) ═══ ✓ Up to date (v1.16.0) Warning: the session restarted, but its new tmux name could not be recorded: record restart outcome for tmux session "agentdeck_cli-restart-target_925fb4a9": record restart outcome for "94de1109-1790455966": instance row not found The session is running; agent-deck may show it as errored until the name is saved. Warning: output freshness timeout (300ms) — response may be stale Warning: output freshness timeout (300ms) — response may be stale Warning: output freshness timeout (300ms) — response may be stale Launch agent re-registration deferred: a remote sweep (pid 12345, started 20:54:09) is still running Imported 2 channel(s) C0AABSF5GKD -> si-bugs/watcher.toml C1BBCDF6HLE -> feat-req/watcher.toml Note: Set the ntfy topic in each watcher.toml (all Slack channels share one ntfy topic from the Cloudflare Worker). Clients written to: /private/tmp/nix-etu9cV/TestImportChannels_EndToEnd2099549594/002/clients.json Imported 1 channel(s) C0AABSF5GKD -> si-bugs/watcher.toml Note: Set the ntfy topic in each watcher.toml (all Slack channels share one ntfy topic from the Cloudflare Worker). Clients written to: /private/tmp/nix-etu9cV/TestImportChannels_Idempotent668003948/002/clients.json Imported 1 channel(s) C0AABSF5GKD -> si-bugs/watcher.toml Note: Set the ntfy topic in each watcher.toml (all Slack channels share one ntfy topic from the Cloudflare Worker). Clients written to: /private/tmp/nix-etu9cV/TestImportChannels_Idempotent668003948/002/clients.json Imported 0 channel(s) Clients written to: /private/tmp/nix-etu9cV/TestImportChannels_EmptyChannels2038208866/002/clients.json Installed skill: watcher-creator -> /private/tmp/nix-etu9cV/TestWatcherInstallSkill1026934495/001/xdg-config/agent-deck/skills/pool/watcher-creator Installed skill: watcher-creator -> /private/tmp/nix-etu9cV/TestWatcherInstallSkill_DirMode2343347386/001/xdg-config/agent-deck/skills/pool/watcher-creator Created watcher: create-topic-ntfy (type: ntfy) Created watcher: create-topic-slack (type: slack) Installed skill: watcher-creator -> /private/tmp/nix-etu9cV/TestXDGTask6_WatcherInstallSkillUsesConfiguredPoolPath2408637468/001/xdg-config/agent-deck/skills/pool/watcher-creator FAIL FAIL github.com/asheshgoplani/agent-deck/cmd/agent-deck 236.235s FAIL