Server command: ["node", "apps/server/src/bin.ts", "--port", "17631", "--host", "127.0.0.1", "--base-dir", "/tmp/17310-home", "--no-browser"] cwd= /home/ubuntu/wt/issue-17310
Captured server PID: 681338
{"stage":"restart","fixture":"old5","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":false}
{"stage":"restart","fixture":"old5","transport":"HTTP","path":"/api/auth/websocket-ticket","status":401,"issued":false}
{"stage":"restart","fixture":"paired5","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"],"scopes":["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]}
{"stage":"restart","fixture":"paired5","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"paired5","transport":"WS","method":"filesystem.browse","result":"denied","error":{"_tag":"Failure","cause":[{"_tag":"Fail","error":{"_tag":"EnvironmentAuthorizationError","message":"The authenticated token is missing required scope: filesystem:read.","requiredScope":"orchestration:read","requiredPermission":"filesystem:read"}}]}}
{"stage":"restart","fixture":"narrow2","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","relay:read"],"scopes":["orchestration:read","relay:read"]}
{"stage":"restart","fixture":"narrow2","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"narrow2","transport":"WS","method":"filesystem.browse","result":"denied","error":{"_tag":"Failure","cause":[{"_tag":"Fail","error":{"_tag":"EnvironmentAuthorizationError","message":"The authenticated token is missing required scope: filesystem:read.","requiredScope":"orchestration:read","requiredPermission":"filesystem:read"}}]}}
{"stage":"restart","fixture":"pre4","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","orchestration:operate","terminal:operate","relay:read"],"scopes":["orchestration:read","orchestration:operate","terminal:operate","relay:read"]}
{"stage":"restart","fixture":"pre4","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"pre4","transport":"WS","method":"filesystem.browse","result":"denied","error":{"_tag":"Failure","cause":[{"_tag":"Fail","error":{"_tag":"EnvironmentAuthorizationError","message":"The authenticated token is missing required scope: filesystem:read.","requiredScope":"orchestration:read","requiredPermission":"filesystem:read"}}]}}
{"stage":"restart","fixture":"fresh","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","orchestration:operate","settings:write","providers:manage","environment:maintain","preview:operate","diagnostics:read","terminal:read","terminal:operate","source-control:write","filesystem:read","filesystem:write","relay:read","access:read","access:write","relay:write"],"scopes":["orchestration:read","orchestration:operate","terminal:operate","relay:read","access:read","access:write","relay:write"]}
{"stage":"restart","fixture":"fresh","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"fresh","transport":"WS","method":"filesystem.browse","result":"success","entries":["expected-directory"]}
{"stage":"restart","fixture":"new4","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","orchestration:operate","terminal:operate","relay:read"],"scopes":["orchestration:read","orchestration:operate","terminal:operate","relay:read"]}
{"stage":"restart","fixture":"new4","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"new4","transport":"WS","method":"filesystem.browse","result":"denied","error":{"_tag":"Failure","cause":[{"_tag":"Fail","error":{"_tag":"EnvironmentAuthorizationError","message":"The authenticated token is missing required scope: filesystem:read.","requiredScope":"orchestration:read","requiredPermission":"filesystem:read"}}]}}
{"stage":"restart","fixture":"post5","transport":"HTTP","path":"/api/auth/session","status":200,"authenticated":true,"permissions":["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"],"scopes":["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]}
{"stage":"restart","fixture":"post5","transport":"HTTP","path":"/api/auth/websocket-ticket","status":200,"issued":true}
{"stage":"restart","fixture":"post5","transport":"WS","method":"filesystem.browse","result":"denied","error":{"_tag":"Failure","cause":[{"_tag":"Fail","error":{"_tag":"EnvironmentAuthorizationError","message":"The authenticated token is missing required scope: filesystem:read.","requiredScope":"orchestration:read","requiredPermission":"filesystem:read"}}]}}
PASS restart assertions
Stopped captured PID: 681338 exit: 130
Migration state: [(69, '2026-10-24 02:36:10', 'RevokePreSplitCloudConnectSessions'), (68, '2026-10-24 02:32:12', 'ShellStopRequestIndex')]
Persisted fixture rows: [('cloud-connect', 'dpop-access-token', '["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]', 1), ('one-time-token', 'dpop-access-token', '["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]', 0), ('cloud-connect', 'dpop-access-token', '["orchestration:read","relay:read"]', 0), ('cloud-connect', 'dpop-access-token', '["orchestration:read","orchestration:operate","terminal:operate","relay:read"]', 0), ('cloud-connect', 'dpop-access-token', '["orchestration:read","orchestration:operate","settings:write","providers:manage","environment:maintain","preview:operate","diagnostics:read","terminal:read","terminal:operate","source-control:write","filesystem:read","filesystem:write","relay:read","access:read","access:write","relay:write"]', 0), ('cloud-connect', 'dpop-access-token', '["orchestration:read","orchestration:operate","terminal:operate","relay:read"]', 0), ('cloud-connect', 'dpop-access-token', '["orchestration:read","orchestration:operate","terminal:operate","review:write","relay:read"]', 0)]
DB SHA256: 56ee8042cc761f42d4b3eea36830f013df1ae269109b692a504ecab2df77ed18
