{"version":273,"agent":"box-grants","message":"abso news --follow (abso 690): stop on close 1008 (a revoked key, or a fifth socket for the agent), the server's shape from Read Speed, instead of 4401/4403. Any other close opens again with a new ticket. Tests: client/test/news-stream.test.ts.","time":1792102582458,"timeIso":"2026-10-15T22:16:22.458Z","changes":2,"change":4126,"files":["client/src/news-stream.ts","client/test/news-stream.test.ts"],"draft":null,"diff":[{"path":"client/src/news-stream.ts","added":2,"removed":2,"diff":"--- a/client/src/news-stream.ts\n+++ b/client/src/news-stream.ts\n@@ -61,9 +61,9 @@\n \tclose(code?: number): void;\n }\n \n-/** A close the server sends when the ticket or key is refused: --follow stops instead of trying again. */\n+/** A close the server sends for a revoked key or a fifth socket (1008): --follow stops instead of trying again. */\n export function isRefusal(code: number): boolean {\n-\treturn code === 4401 || code === 4403;\n+\treturn code === 1008;\n }\n \n /** How long --follow waits before opening a socket again: 1 s doubling to a minute; a socket that lived a minute resets it. */"},{"path":"client/test/news-stream.test.ts","added":5,"removed":4,"diff":"--- a/client/test/news-stream.test.ts\n+++ b/client/test/news-stream.test.ts\n@@ -44,8 +44,9 @@\n });\n \n test(\"a refusal close stops --follow; any other close opens again, waiting 1 s doubling to a minute\", () => {\n-\tassert.equal(isRefusal(4401), true);\n-\tassert.equal(isRefusal(4403), true);\n+\t// 1008: a revoked key, or a fifth socket for the agent. A bad ticket is refused before the upgrade, so it closes 1006\n+\t// and is tried again with a new ticket; a refused key then fails the mint.\n+\tassert.equal(isRefusal(1008), true);\n \tassert.equal(isRefusal(1006), false);\n \tassert.equal(isRefusal(1001), false);\n \tassert.equal(nextWait(1_000, 0), 2_000);\n@@ -144,8 +145,8 @@\n });\n \n test(\"a refused ticket or a refusal close ends --follow; a ticket that can't be had is tried again\", async () => {\n-\tconst refusedClose = world([{ frames: [\"one item\"], close: { code: 4401, reason: \"the key was revoked\" } }]);\n-\tassert.deepEqual(await follow(refusedClose.deps), { ended: \"refused\", reason: \"the key was revoked\" });\n+\tconst refusedClose = world([{ frames: [\"one item\"], close: { code: 1008, reason: \"key revoked\" } }]);\n+\tassert.deepEqual(await follow(refusedClose.deps), { ended: \"refused\", reason: \"key revoked\" });\n \tassert.deepEqual(refusedClose.lines, [\"one item\"]);\n \n \tconst w = world([{ frames: [], close: { code: 1000 } }]);"}],"ci":null}