Using versionCheckHook Running phase: unpackPhase unpacking source archive /nix/store/ifmx005iydxd7cfkvlkpnlf50ndvbp7x-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.28s) codex_fresh_composer_send_test.go:48: pane process never held the writer lock (live thread "") 2026/09/27 04:05:50 WARN codex_hook_status_unreadable instance=partial path=/private/tmp/nix-dMwexg/TestWriteCodexHookStatus_PartialPriorFailsClosed656583144/001/.local/share/agent-deck/hooks/partial.json bytes=10 Codex notify hook installed successfully. Config: /private/tmp/nix-dMwexg/TestCodexHooksInstallUninstall1593137181/001/.codex/config.toml Codex notify hook removed successfully. Codex notify hook upgraded successfully. Config: /private/tmp/nix-dMwexg/TestCodexHooksInstall_UpgradesLegacyTableWithoutMarkers2594944438/001/.codex/config.toml Codex notify hook upgraded successfully. Config: /private/tmp/nix-dMwexg/TestCodexHooksInstall_UpgradesLegacyMarkerBlock851216640/001/.codex/config.toml --- FAIL: TestCoreRegistryMatchesLegacyHandlers (15.56s) 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 5500) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5500 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 d549ca16-1790481951 Reap and clear: agent-deck session ownership reconcile d549ca16-1790481951 --- registry stderr --- Error: failed to restart session: restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 5540) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5540 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 d549ca16-1790481951 Reap and clear: agent-deck session ownership reconcile d549ca16-1790481951 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 5540) could not be identified, so anything it started is unaccounted for; nothing was signalled)\\n unverifiable: pid=5540 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 d549ca16-1790481951\\nReap and clear: agent-deck session ownership reconcile d549ca16-1790481951\",\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 5500) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5500 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 d549ca16-1790481951\nReap and clear: agent-deck session ownership reconcile d549ca16-1790481951", "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 5540) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5540 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 d549ca16-1790481951\nReap and clear: agent-deck session ownership reconcile d549ca16-1790481951", "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 5590) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5590 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 8568ca3e-1790481951\nReap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951", "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 5626) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5626 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 8568ca3e-1790481951\nReap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951", "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 5500) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5500 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 d549ca16-1790481951\nReap and clear: agent-deck session ownership reconcile d549ca16-1790481951", "id": "d549ca16-1790481951", "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 5590) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5590 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 8568ca3e-1790481951\nReap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951", "id": "8568ca3e-1790481951", "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 5662) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5662 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 60238f3d-1790481951\nReap and clear: agent-deck session ownership reconcile 60238f3d-1790481951", "id": "60238f3d-1790481951", "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 5540) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5540 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 d549ca16-1790481951\nReap and clear: agent-deck session ownership reconcile d549ca16-1790481951", "id": "d549ca16-1790481951", "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 5626) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5626 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 8568ca3e-1790481951\nReap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951", "id": "8568ca3e-1790481951", "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 5698) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=5698 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 60238f3d-1790481951\nReap and clear: agent-deck session ownership reconcile 60238f3d-1790481951", "id": "60238f3d-1790481951", "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 5500) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5500 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 d549ca16-1790481951 Reap and clear: agent-deck session ownership reconcile d549ca16-1790481951 Error: failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 5590) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5590 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 8568ca3e-1790481951 Reap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951 Error: failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 5662) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5662 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 60238f3d-1790481951 Reap and clear: agent-deck session ownership reconcile 60238f3d-1790481951 --- 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 5540) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5540 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 d549ca16-1790481951 Reap and clear: agent-deck session ownership reconcile d549ca16-1790481951 Error: failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 5626) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5626 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 8568ca3e-1790481951 Reap and clear: agent-deck session ownership reconcile 8568ca3e-1790481951 Error: failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 5698) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=5698 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 60238f3d-1790481951 Reap and clear: agent-deck session ownership reconcile 60238f3d-1790481951 --- FAIL: TestDaemonEnvelopesMatchArgv (3.85s) daemon_cmd_test.go:199: start (daemon CLI): ok=false, want true { "schema": "agent-deck/session.start/v1", "request_id": "48ecf700c2501331", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:224: start: envelopes differ argv: {"data":{"group":"work","id":"b9722e2d-1790481967","status":"started","title":"alpha","tmux":"agentdeck_alpha_87605b8d"},"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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967"},"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": "3b507133ceda4788", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:199: restart fresh session is skipped (daemon CLI): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "6b989d597b31b2f4", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:199: restart --force (argv): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "686c7f647df52170", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:199: restart --force (daemon CLI): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "fec9584112ce1df4", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:199: restart --all (argv): ok=false, want true { "schema": "agent-deck/session.restart/v1", "request_id": "28f5a99a8c1d81ef", "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": "eda6ef6f5e3a9e90", "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": "03fa606dcecdf689", "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": "ab91b8d549f63c5e", "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 6202) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6202 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 b9722e2d-1790481967\nReap and clear: agent-deck session ownership reconcile b9722e2d-1790481967" } } daemon_cmd_test.go:199: stop (daemon CLI): ok=false, want true { "schema": "agent-deck/session.stop/v1", "request_id": "daebfd3e72ffc9ab", "ok": false, "data": null, "warnings": [], "revision": null, "error": { "code": "NOT_RUNNING", "message": "session 'alpha' is not running" } } --- FAIL: TestDaemonRestartAllReturnsCompletedResult (7.74s) 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:0838ef6a-1790481971 Title:alpha Success:0x7ca9bb2d8cd9 Error:failed to restart session 'alpha': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 6391) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=6391 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 0838ef6a-1790481971 Reap and clear: agent-deck session ownership reconcile 0838ef6a-1790481971 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:ffddc408-1790481971 Title:beta Success:0x7ca9bb2d8ce0 Error:failed to restart session 'beta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 6429) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=6429 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 ffddc408-1790481971 Reap and clear: agent-deck session ownership reconcile ffddc408-1790481971 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:824318ca-1790481971 Title:gamma Success:0x7ca9bb2d8ce6 Error:failed to restart session 'gamma': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 6465) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=6465 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 824318ca-1790481971 Reap and clear: agent-deck session ownership reconcile 824318ca-1790481971 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:2ca4d9b7-1790481971 Title:delta Success:0x7ca9bb2d8cec Error:failed to restart session 'delta': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 6501) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=6501 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 2ca4d9b7-1790481971 Reap and clear: agent-deck session ownership reconcile 2ca4d9b7-1790481971 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false} {ID:1603a672-1790481971 Title:epsilon Success:0x7ca9bb2d8cf7 Error:failed to restart session 'epsilon': restart refused: this session still owns processes from an earlier spawn (the spawn's pane process (pid 6537) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=6537 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 1603a672-1790481971 Reap and clear: agent-deck session ownership reconcile 1603a672-1790481971 SpawnFailure: Warning: Skipped:false Reason: AuthDeath:false}]}}}: { "schema": "agent-deck/session.restart/v1", "request_id": "5694f26da6c4f3ce", "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": "0838ef6a-1790481971", "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 6391) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6391 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 0838ef6a-1790481971\nReap and clear: agent-deck session ownership reconcile 0838ef6a-1790481971" }, { "id": "ffddc408-1790481971", "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 6429) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6429 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 ffddc408-1790481971\nReap and clear: agent-deck session ownership reconcile ffddc408-1790481971" }, { "id": "824318ca-1790481971", "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 6465) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6465 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 824318ca-1790481971\nReap and clear: agent-deck session ownership reconcile 824318ca-1790481971" }, { "id": "2ca4d9b7-1790481971", "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 6501) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6501 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 2ca4d9b7-1790481971\nReap and clear: agent-deck session ownership reconcile 2ca4d9b7-1790481971" }, { "id": "1603a672-1790481971", "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 6537) could not be identified, so anything it started is unaccounted for; nothing was signalled)\n unverifiable: pid=6537 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 1603a672-1790481971\nReap and clear: agent-deck session ownership reconcile 1603a672-1790481971" } ] } }, "warnings": [], "revision": null } agent-deck: CLAUDE_CONFIG_DIR="/private/tmp/nix-dMwexg/TestEventProfileUsesStorageFallbackForMissingInference1929987373/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-dMwexg/TestGeminiHooksInstallUninstall2460371118/001/.gemini/settings.json Gemini hooks removed successfully. --- FAIL: TestStorageBytesGoldens (1.91s) 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 7470) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=7470 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 7470) could not be identified, so anything it started is unaccounted for; nothing was signalled) unverifiable: pid=7470 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 --- FAIL: TestIssue2394_HydratePrefersLiveThreadOverGuessedPaneIdentity (10.37s) issue2394_codex_foreign_identity_test.go:53: pane process never held the writer lock (live thread "") --- FAIL: TestIssue2400_ArchiveKeepsLiveCodexIdentity (10.36s) issue2396_2400_codex_launch_identity_test.go:95: pane process never held the thread open (live thread "") --- FAIL: TestIssue2396_FirstTurnOutputIsBoundToItsConversation (10.27s) issue2396_2400_codex_launch_identity_test.go:109: pane process never held the thread open (live thread "") remote-agent: probe: storage gone remote-agent: binary upgraded (running v1.16.20); 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 4253, started 4:08AM); waiting for it... ═══ Remote: lab (a@lab) ═══ – Skipped: sweep already in progress, remote lab is being updated by 4253 ═══ 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_8a88dddb": record restart outcome for "dd5fc13f-1790482097": 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 04:09:43) 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-dMwexg/TestImportChannels_EndToEnd2957208955/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-dMwexg/TestImportChannels_Idempotent3264563074/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-dMwexg/TestImportChannels_Idempotent3264563074/002/clients.json Imported 0 channel(s) Clients written to: /private/tmp/nix-dMwexg/TestImportChannels_EmptyChannels1495425047/002/clients.json Installed skill: watcher-creator -> /private/tmp/nix-dMwexg/TestWatcherInstallSkill1614971469/001/xdg-config/agent-deck/skills/pool/watcher-creator Installed skill: watcher-creator -> /private/tmp/nix-dMwexg/TestWatcherInstallSkill_DirMode3359023445/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-dMwexg/TestXDGTask6_WatcherInstallSkillUsesConfiguredPoolPath904797350/001/xdg-config/agent-deck/skills/pool/watcher-creator FAIL FAIL github.com/asheshgoplani/agent-deck/cmd/agent-deck 270.095s FAIL