@tickernelz/wardmote-adapter-utils 2026.1108.2 → 2026.1111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +1 -1
  2. package/dist/acpx-engine/composed-run-characterization.test.js +13 -16
  3. package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -1
  4. package/dist/acpx-engine/ephemeral-session-environment.test.js +6 -6
  5. package/dist/acpx-engine/ephemeral-session-environment.test.js.map +1 -1
  6. package/dist/acpx-engine/execute-identity.test.js +12 -12
  7. package/dist/acpx-engine/execute-identity.test.js.map +1 -1
  8. package/dist/acpx-engine/execute.d.ts +2 -28
  9. package/dist/acpx-engine/execute.d.ts.map +1 -1
  10. package/dist/acpx-engine/execute.js +162 -224
  11. package/dist/acpx-engine/execute.js.map +1 -1
  12. package/dist/acpx-engine/execute.test.js +234 -250
  13. package/dist/acpx-engine/execute.test.js.map +1 -1
  14. package/dist/acpx-engine/filesystem-protocol.test.js +2 -2
  15. package/dist/acpx-engine/filesystem-protocol.test.js.map +1 -1
  16. package/dist/acpx-engine/managed-codex-skills-manifest.d.ts +3 -0
  17. package/dist/acpx-engine/managed-codex-skills-manifest.d.ts.map +1 -0
  18. package/dist/acpx-engine/managed-codex-skills-manifest.js +30 -0
  19. package/dist/acpx-engine/managed-codex-skills-manifest.js.map +1 -0
  20. package/dist/acpx-engine/managed-codex-skills-manifest.test.d.ts +2 -0
  21. package/dist/acpx-engine/managed-codex-skills-manifest.test.d.ts.map +1 -0
  22. package/dist/acpx-engine/managed-codex-skills-manifest.test.js +29 -0
  23. package/dist/acpx-engine/managed-codex-skills-manifest.test.js.map +1 -0
  24. package/dist/acpx-engine/operator-stop.test.js +3 -3
  25. package/dist/acpx-engine/operator-stop.test.js.map +1 -1
  26. package/dist/acpx-engine/remote-spawn-smoke.test.js +5 -5
  27. package/dist/acpx-engine/remote-spawn-smoke.test.js.map +1 -1
  28. package/dist/acpx-engine/run-contracts.d.ts +5 -15
  29. package/dist/acpx-engine/run-contracts.d.ts.map +1 -1
  30. package/dist/acpx-engine/run-contracts.js.map +1 -1
  31. package/dist/acpx-engine/run-fault-matrix.test.js +7 -7
  32. package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -1
  33. package/dist/acpx-engine/run-site-sandbox.d.ts +5 -12
  34. package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -1
  35. package/dist/acpx-engine/run-site-sandbox.js +4 -16
  36. package/dist/acpx-engine/run-site-sandbox.js.map +1 -1
  37. package/dist/acpx-engine/run-site-sandbox.test.js +13 -16
  38. package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -1
  39. package/dist/acpx-engine/settlement-characterization.test.js +20 -20
  40. package/dist/acpx-engine/settlement-characterization.test.js.map +1 -1
  41. package/dist/acpx-engine/spawn-smoke.test.js +12 -12
  42. package/dist/acpx-engine/spawn-smoke.test.js.map +1 -1
  43. package/dist/acpx-engine/startup-characterization.test.js +27 -31
  44. package/dist/acpx-engine/startup-characterization.test.js.map +1 -1
  45. package/dist/acpx-engine/startup-timing.d.ts +27 -45
  46. package/dist/acpx-engine/startup-timing.d.ts.map +1 -1
  47. package/dist/acpx-engine/startup-timing.js +1 -19
  48. package/dist/acpx-engine/startup-timing.js.map +1 -1
  49. package/dist/acpx-engine/startup-timing.test.js +2 -2
  50. package/dist/acpx-engine/startup-timing.test.js.map +1 -1
  51. package/dist/acpx-engine/terminal-session-failure.js +1 -1
  52. package/dist/acpx-engine/terminal-session-failure.js.map +1 -1
  53. package/dist/acpx-engine/turn-characterization.test.js +3 -3
  54. package/dist/acpx-engine/turn-characterization.test.js.map +1 -1
  55. package/dist/acpx-engine/turn-sequence.js +1 -1
  56. package/dist/acpx-engine/turn-sequence.js.map +1 -1
  57. package/dist/chat-file-delivery.d.ts +2 -2
  58. package/dist/chat-file-delivery.d.ts.map +1 -1
  59. package/dist/chat-file-delivery.js +4 -4
  60. package/dist/chat-file-delivery.js.map +1 -1
  61. package/dist/chat-file-delivery.test.js +9 -9
  62. package/dist/chat-file-delivery.test.js.map +1 -1
  63. package/dist/command-managed-runtime.js +5 -5
  64. package/dist/command-managed-runtime.js.map +1 -1
  65. package/dist/command-managed-runtime.test.js +38 -40
  66. package/dist/command-managed-runtime.test.js.map +1 -1
  67. package/dist/directory-merge-lock.test.js +3 -3
  68. package/dist/directory-merge-lock.test.js.map +1 -1
  69. package/dist/execution-target-sandbox.test.js +361 -369
  70. package/dist/execution-target-sandbox.test.js.map +1 -1
  71. package/dist/execution-target-stdin-race.test.js +80 -90
  72. package/dist/execution-target-stdin-race.test.js.map +1 -1
  73. package/dist/execution-target.d.ts +6 -36
  74. package/dist/execution-target.d.ts.map +1 -1
  75. package/dist/execution-target.js +92 -144
  76. package/dist/execution-target.js.map +1 -1
  77. package/dist/execution-target.test.js +3 -3
  78. package/dist/execution-target.test.js.map +1 -1
  79. package/dist/forbidden-config-env.test.d.ts +2 -0
  80. package/dist/forbidden-config-env.test.d.ts.map +1 -0
  81. package/dist/forbidden-config-env.test.js +35 -0
  82. package/dist/forbidden-config-env.test.js.map +1 -0
  83. package/dist/git-workspace-sync.d.ts +2 -2
  84. package/dist/git-workspace-sync.d.ts.map +1 -1
  85. package/dist/git-workspace-sync.js +8 -8
  86. package/dist/git-workspace-sync.js.map +1 -1
  87. package/dist/git-workspace-sync.test.js +61 -61
  88. package/dist/git-workspace-sync.test.js.map +1 -1
  89. package/dist/github-launcher-environment.test.js +36 -36
  90. package/dist/github-launcher-environment.test.js.map +1 -1
  91. package/dist/github-launcher.js +16 -16
  92. package/dist/github-launcher.js.map +1 -1
  93. package/dist/github-launcher.test.js +5 -5
  94. package/dist/github-launcher.test.js.map +1 -1
  95. package/dist/http2-bridge-server.test.js +1 -1
  96. package/dist/http2-bridge-server.test.js.map +1 -1
  97. package/dist/index.d.ts +5 -5
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +2 -2
  100. package/dist/index.js.map +1 -1
  101. package/dist/local-process-sandbox.js +7 -7
  102. package/dist/local-process-sandbox.js.map +1 -1
  103. package/dist/local-process-sandbox.test.js +24 -24
  104. package/dist/local-process-sandbox.test.js.map +1 -1
  105. package/dist/mcp-isolation.integration.test.js +4 -4
  106. package/dist/mcp-isolation.integration.test.js.map +1 -1
  107. package/dist/prompt-sections.test.js +11 -11
  108. package/dist/prompt-sections.test.js.map +1 -1
  109. package/dist/provider-models/claude.d.ts +0 -1
  110. package/dist/provider-models/claude.d.ts.map +1 -1
  111. package/dist/provider-models/claude.js +0 -1
  112. package/dist/provider-models/claude.js.map +1 -1
  113. package/dist/provider-models/codex.d.ts.map +1 -1
  114. package/dist/provider-models/codex.js +2 -2
  115. package/dist/provider-models/codex.js.map +1 -1
  116. package/dist/remote-managed-runtime.js +6 -6
  117. package/dist/remote-managed-runtime.js.map +1 -1
  118. package/dist/remote-managed-runtime.test.js +14 -14
  119. package/dist/remote-managed-runtime.test.js.map +1 -1
  120. package/dist/retired-marker-names.d.ts +2 -0
  121. package/dist/retired-marker-names.d.ts.map +1 -0
  122. package/dist/retired-marker-names.js +2 -0
  123. package/dist/retired-marker-names.js.map +1 -0
  124. package/dist/retired-skill-names.d.ts +3 -0
  125. package/dist/retired-skill-names.d.ts.map +1 -0
  126. package/dist/retired-skill-names.js +8 -0
  127. package/dist/retired-skill-names.js.map +1 -0
  128. package/dist/run-oom-score.d.ts +1 -1
  129. package/dist/run-oom-score.d.ts.map +1 -1
  130. package/dist/run-oom-score.js +1 -1
  131. package/dist/run-oom-score.js.map +1 -1
  132. package/dist/runner-connectivity.d.ts +7 -7
  133. package/dist/runner-connectivity.d.ts.map +1 -1
  134. package/dist/runner-connectivity.js +16 -16
  135. package/dist/runner-connectivity.js.map +1 -1
  136. package/dist/runner-connectivity.test.js +21 -21
  137. package/dist/runner-connectivity.test.js.map +1 -1
  138. package/dist/runtime-progress.d.ts.map +1 -1
  139. package/dist/runtime-progress.js +1 -4
  140. package/dist/runtime-progress.js.map +1 -1
  141. package/dist/runtime-progress.test.js +13 -13
  142. package/dist/runtime-progress.test.js.map +1 -1
  143. package/dist/sandbox-callback-bridge.d.ts +1 -16
  144. package/dist/sandbox-callback-bridge.d.ts.map +1 -1
  145. package/dist/sandbox-callback-bridge.js +55 -88
  146. package/dist/sandbox-callback-bridge.js.map +1 -1
  147. package/dist/sandbox-callback-bridge.test.js +94 -115
  148. package/dist/sandbox-callback-bridge.test.js.map +1 -1
  149. package/dist/sandbox-file-sync.test.js +9 -9
  150. package/dist/sandbox-file-sync.test.js.map +1 -1
  151. package/dist/sandbox-install-command.js +4 -4
  152. package/dist/sandbox-install-command.js.map +1 -1
  153. package/dist/sandbox-managed-runtime.d.ts +0 -30
  154. package/dist/sandbox-managed-runtime.d.ts.map +1 -1
  155. package/dist/sandbox-managed-runtime.js +12 -34
  156. package/dist/sandbox-managed-runtime.js.map +1 -1
  157. package/dist/sandbox-managed-runtime.test.js +134 -144
  158. package/dist/sandbox-managed-runtime.test.js.map +1 -1
  159. package/dist/sandbox-run-log-stream.js +5 -5
  160. package/dist/sandbox-run-log-stream.js.map +1 -1
  161. package/dist/server-utils-env.test.js +10 -9
  162. package/dist/server-utils-env.test.js.map +1 -1
  163. package/dist/server-utils.d.ts +121 -147
  164. package/dist/server-utils.d.ts.map +1 -1
  165. package/dist/server-utils.js +319 -346
  166. package/dist/server-utils.js.map +1 -1
  167. package/dist/server-utils.test.js +339 -322
  168. package/dist/server-utils.test.js.map +1 -1
  169. package/dist/skill-library-manifest.d.ts +2 -2
  170. package/dist/skill-library-manifest.d.ts.map +1 -1
  171. package/dist/skill-library-manifest.test.js +4 -4
  172. package/dist/skill-library-manifest.test.js.map +1 -1
  173. package/dist/ssh-fixture.test.js +57 -57
  174. package/dist/ssh-fixture.test.js.map +1 -1
  175. package/dist/ssh.d.ts.map +1 -1
  176. package/dist/ssh.js +18 -40
  177. package/dist/ssh.js.map +1 -1
  178. package/dist/test-fixtures/prompt-context.d.ts +5 -5
  179. package/dist/test-fixtures/prompt-context.js +5 -5
  180. package/dist/test-fixtures/prompt-context.js.map +1 -1
  181. package/dist/test-support/mcp-isolation-harness.js +1 -1
  182. package/dist/test-support/mcp-isolation-harness.js.map +1 -1
  183. package/dist/tool-profile.d.ts +1 -1
  184. package/dist/tool-profile.d.ts.map +1 -1
  185. package/dist/tool-profile.js +1 -1
  186. package/dist/tool-profile.js.map +1 -1
  187. package/dist/types.d.ts +13 -31
  188. package/dist/types.d.ts.map +1 -1
  189. package/dist/{paperclip-mcp-mount.d.ts → wardmote-mcp-mount.d.ts} +10 -10
  190. package/dist/wardmote-mcp-mount.d.ts.map +1 -0
  191. package/dist/{paperclip-mcp-mount.js → wardmote-mcp-mount.js} +17 -17
  192. package/dist/wardmote-mcp-mount.js.map +1 -0
  193. package/dist/wardmote-mcp.d.ts +51 -0
  194. package/dist/wardmote-mcp.d.ts.map +1 -0
  195. package/dist/wardmote-mcp.js +148 -0
  196. package/dist/wardmote-mcp.js.map +1 -0
  197. package/dist/wardmote-mcp.test.d.ts +2 -0
  198. package/dist/wardmote-mcp.test.d.ts.map +1 -0
  199. package/dist/wardmote-mcp.test.js +133 -0
  200. package/dist/wardmote-mcp.test.js.map +1 -0
  201. package/dist/{paperclip-runner-permissions.d.ts → wardmote-runner-permissions.d.ts} +31 -36
  202. package/dist/wardmote-runner-permissions.d.ts.map +1 -0
  203. package/dist/{paperclip-runner-permissions.js → wardmote-runner-permissions.js} +30 -35
  204. package/dist/wardmote-runner-permissions.js.map +1 -0
  205. package/dist/wardmote-runner-permissions.test.d.ts +2 -0
  206. package/dist/wardmote-runner-permissions.test.d.ts.map +1 -0
  207. package/dist/wardmote-runner-permissions.test.js +80 -0
  208. package/dist/wardmote-runner-permissions.test.js.map +1 -0
  209. package/dist/workspace-git-stream.test.js +1 -1
  210. package/dist/workspace-git-stream.test.js.map +1 -1
  211. package/dist/workspace-manifest.js +1 -1
  212. package/dist/workspace-manifest.js.map +1 -1
  213. package/dist/workspace-manifest.test.js +5 -5
  214. package/dist/workspace-manifest.test.js.map +1 -1
  215. package/dist/workspace-restore-diagnostics.js +1 -1
  216. package/dist/workspace-restore-diagnostics.js.map +1 -1
  217. package/dist/workspace-restore-diagnostics.test.js +5 -5
  218. package/dist/workspace-restore-diagnostics.test.js.map +1 -1
  219. package/dist/workspace-restore-merge.js +8 -8
  220. package/dist/workspace-restore-merge.js.map +1 -1
  221. package/dist/workspace-restore-merge.test.js +76 -82
  222. package/dist/workspace-restore-merge.test.js.map +1 -1
  223. package/dist/workspace-restore-result.test.js +2 -2
  224. package/dist/workspace-restore-result.test.js.map +1 -1
  225. package/dist/workspace-restore-teardown.test.js +6 -6
  226. package/dist/workspace-restore-teardown.test.js.map +1 -1
  227. package/node_modules/@clack/core/dist/index.d.mts +5 -3
  228. package/node_modules/@clack/core/dist/index.mjs +70 -67
  229. package/node_modules/@clack/core/package.json +3 -2
  230. package/node_modules/@clack/prompts/dist/index.d.mts +5 -4
  231. package/node_modules/@clack/prompts/dist/index.mjs +212 -187
  232. package/node_modules/@clack/prompts/package.json +3 -3
  233. package/node_modules/sisteransi/dist/index.d.ts +33 -0
  234. package/node_modules/sisteransi/dist/index.js +57 -0
  235. package/node_modules/sisteransi/package.json +18 -7
  236. package/node_modules/sisteransi/readme.md +19 -6
  237. package/package.json +2 -2
  238. package/dist/env-aliases-run.test.d.ts +0 -2
  239. package/dist/env-aliases-run.test.d.ts.map +0 -1
  240. package/dist/env-aliases-run.test.js +0 -49
  241. package/dist/env-aliases-run.test.js.map +0 -1
  242. package/dist/paperclip-mcp-mount.d.ts.map +0 -1
  243. package/dist/paperclip-mcp-mount.js.map +0 -1
  244. package/dist/paperclip-mcp.d.ts +0 -53
  245. package/dist/paperclip-mcp.d.ts.map +0 -1
  246. package/dist/paperclip-mcp.js +0 -149
  247. package/dist/paperclip-mcp.js.map +0 -1
  248. package/dist/paperclip-mcp.test.d.ts +0 -2
  249. package/dist/paperclip-mcp.test.d.ts.map +0 -1
  250. package/dist/paperclip-mcp.test.js +0 -133
  251. package/dist/paperclip-mcp.test.js.map +0 -1
  252. package/dist/paperclip-runner-permissions.d.ts.map +0 -1
  253. package/dist/paperclip-runner-permissions.js.map +0 -1
  254. package/dist/paperclip-runner-permissions.test.d.ts +0 -2
  255. package/dist/paperclip-runner-permissions.test.d.ts.map +0 -1
  256. package/dist/paperclip-runner-permissions.test.js +0 -80
  257. package/dist/paperclip-runner-permissions.test.js.map +0 -1
  258. package/node_modules/sisteransi/src/index.js +0 -58
  259. package/node_modules/sisteransi/src/sisteransi.d.ts +0 -35
@@ -27,8 +27,8 @@ describe("sandbox callback bridge", () => {
27
27
  (input.command === "sh" || input.command === "bash") &&
28
28
  (args[0] === "-c" || args[0] === "-lc") &&
29
29
  typeof args[1] === "string") {
30
- env.PAPERCLIP_TEST_STDIN = input.stdin;
31
- args[1] = `printf '%s' \"$PAPERCLIP_TEST_STDIN\" | (${args[1]})`;
30
+ env.WARDMOTE_TEST_STDIN = input.stdin;
31
+ args[1] = `printf '%s' \"$WARDMOTE_TEST_STDIN\" | (${args[1]})`;
32
32
  }
33
33
  try {
34
34
  const result = await execFile(command, args, {
@@ -93,7 +93,7 @@ describe("sandbox callback bridge", () => {
93
93
  }
94
94
  });
95
95
  it("round-trips localhost bridge requests over the sandbox queue without forwarding the bridge token", async () => {
96
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-runtime-"));
96
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-runtime-"));
97
97
  cleanupDirs.push(rootDir);
98
98
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
99
99
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -170,7 +170,7 @@ describe("sandbox callback bridge", () => {
170
170
  authorization: `Bearer ${bridgeToken}`,
171
171
  accept: "application/json",
172
172
  "if-none-match": '"client-cache-key"',
173
- "x-paperclip-run-id": "run-bridge-1",
173
+ "x-wardmote-run-id": "run-bridge-1",
174
174
  "x-bridge-debug": "drop-me",
175
175
  },
176
176
  });
@@ -216,13 +216,13 @@ describe("sandbox callback bridge", () => {
216
216
  },
217
217
  });
218
218
  expect(seenRequests[0]?.headers.authorization).toBeUndefined();
219
- expect(seenRequests[0]?.headers["x-paperclip-run-id"]).toBeUndefined();
219
+ expect(seenRequests[0]?.headers["x-wardmote-run-id"]).toBeUndefined();
220
220
  const githubResponse = await fetch(`${bridge.baseUrl}/runtime-tools/github/credentials`, {
221
221
  method: "POST",
222
222
  headers: {
223
223
  authorization: `Bearer ${bridgeToken}`,
224
224
  "content-type": "application/json",
225
- "x-paperclip-github-capability": "test-run-scoped-capability",
225
+ "x-wardmote-github-capability": "test-run-scoped-capability",
226
226
  },
227
227
  body: "{}",
228
228
  });
@@ -230,7 +230,7 @@ describe("sandbox callback bridge", () => {
230
230
  await githubResponse.arrayBuffer();
231
231
  expect(seenRequests[1]).toMatchObject({
232
232
  method: "POST", path: "/runtime-tools/github/credentials", body: "{}",
233
- headers: { "x-paperclip-github-capability": "test-run-scoped-capability" },
233
+ headers: { "x-wardmote-github-capability": "test-run-scoped-capability" },
234
234
  });
235
235
  expect(seenRequests[1]?.headers.authorization).toBeUndefined();
236
236
  const feedbackBody = JSON.stringify({ kind: "complaint", body: "😭".repeat(5000), idempotencyKey: "bridge-feedback" });
@@ -243,7 +243,7 @@ describe("sandbox callback bridge", () => {
243
243
  expect(seenRequests[2]?.headers.authorization).toBeUndefined();
244
244
  });
245
245
  it("publishes complete fixture envelopes before queue readers can reserve their size", async () => {
246
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-publication-"));
246
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-publication-"));
247
247
  cleanupDirs.push(rootDir);
248
248
  const client = createFileSystemSandboxCallbackBridgeQueueClient();
249
249
  const requestPath = path.join(rootDir, "fixture.json");
@@ -276,7 +276,7 @@ describe("sandbox callback bridge", () => {
276
276
  }
277
277
  });
278
278
  it("keeps the bounded reader fail-closed when a visible request grows after its size is reserved", async () => {
279
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-growing-request-"));
279
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-growing-request-"));
280
280
  cleanupDirs.push(rootDir);
281
281
  const queueDir = path.join(rootDir, "queue");
282
282
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -319,7 +319,7 @@ describe("sandbox callback bridge", () => {
319
319
  }
320
320
  });
321
321
  it("serves schema discovery over the queue and denies schema mutations and lookalikes", async () => {
322
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-schema-"));
322
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-schema-"));
323
323
  cleanupDirs.push(rootDir);
324
324
  const queueDir = path.join(rootDir, "queue");
325
325
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -360,7 +360,7 @@ describe("sandbox callback bridge", () => {
360
360
  expect(forwarded).toEqual(["GET /api/openapi.json"]);
361
361
  });
362
362
  it("denies non-allowlisted requests by default", async () => {
363
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-default-policy-"));
363
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-default-policy-"));
364
364
  cleanupDirs.push(rootDir);
365
365
  const queueDir = path.posix.join(rootDir, "queue");
366
366
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -394,7 +394,7 @@ describe("sandbox callback bridge", () => {
394
394
  });
395
395
  });
396
396
  it("drains already-queued requests on stop", async () => {
397
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-drain-"));
397
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-drain-"));
398
398
  cleanupDirs.push(rootDir);
399
399
  const queueDir = path.posix.join(rootDir, "queue");
400
400
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -436,7 +436,7 @@ describe("sandbox callback bridge", () => {
436
436
  await expect(readFile(path.posix.join(directories.responsesDir, "req-b.json"), "utf8")).resolves.toContain("\"req-b\"");
437
437
  });
438
438
  it("writes fast 503 responses for queued requests that miss the drain deadline", async () => {
439
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-drain-timeout-"));
439
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-drain-timeout-"));
440
440
  cleanupDirs.push(rootDir);
441
441
  const queueDir = path.posix.join(rootDir, "queue");
442
442
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -484,7 +484,7 @@ describe("sandbox callback bridge", () => {
484
484
  await expect(readFile(path.posix.join(directories.responsesDir, "req-b.json"), "utf8")).resolves.toContain("Bridge worker stopped before request could be handled.");
485
485
  });
486
486
  it("handles SSH queue polling failures without emitting an unhandled rejection", async () => {
487
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-ssh-failure-"));
487
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-ssh-failure-"));
488
488
  cleanupDirs.push(rootDir);
489
489
  const queueDir = path.posix.join(rootDir, "queue");
490
490
  const unhandled = [];
@@ -498,7 +498,7 @@ describe("sandbox callback bridge", () => {
498
498
  makeDir: async () => { },
499
499
  makeDirs: async () => { },
500
500
  listJsonFiles: async () => {
501
- throw new Error("list /remote/.paperclip-runtime/gemini/paperclip-bridge/queue/requests failed with exit code 255: kex_exchange_identification: read: Connection reset by peer");
501
+ throw new Error("list /remote/.wardmote-runtime/gemini/wardmote-bridge/queue/requests failed with exit code 255: kex_exchange_identification: read: Connection reset by peer");
502
502
  },
503
503
  readTextFile: async () => {
504
504
  throw new Error("unexpected readTextFile");
@@ -531,7 +531,7 @@ describe("sandbox callback bridge", () => {
531
531
  // terminal catch, killing the relay for the rest of the run. The loop must
532
532
  // instead back off, retry, and still deliver requests queued after the
533
533
  // failure window.
534
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-transient-"));
534
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-transient-"));
535
535
  cleanupDirs.push(rootDir);
536
536
  const queueDir = path.posix.join(rootDir, "queue");
537
537
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -580,19 +580,13 @@ describe("sandbox callback bridge", () => {
580
580
  expect(listCalls).toBeGreaterThan(3);
581
581
  });
582
582
  it("keeps the queue-directory setup on the startup step but resets the poll loop store", async () => {
583
- // The worker starts inside the measured `bridge.paperclip` step. Its awaited
584
- // queue-directory setup is startup work, so a `makeDir` `sandbox.exec` span
585
- // must keep the active step and its `criticalPath` flag. The long-lived poll
586
- // loop runs run-time execs for the whole run, so a loop `sandbox.exec` span
587
- // must open unparented with no stale flag. This test reads the active step in
588
- // both places and proves the boundary sits at the loop, not the whole worker.
589
583
  let setupStep = "unset";
590
584
  let loopStep = "unset";
591
585
  let resolveFirstPoll = () => { };
592
586
  const firstPoll = new Promise((resolve) => {
593
587
  resolveFirstPoll = resolve;
594
588
  });
595
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-step-store-"));
589
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-step-store-"));
596
590
  cleanupDirs.push(rootDir);
597
591
  const queueDir = path.posix.join(rootDir, "queue");
598
592
  const worker = await measureStartupStep({}, () => 0, "bridge.paperclip", () => startSandboxCallbackBridgeWorker({
@@ -633,15 +627,7 @@ describe("sandbox callback bridge", () => {
633
627
  // stale `criticalPath` flag.
634
628
  expect(loopStep).toBeNull();
635
629
  });
636
- it("test_paperclip_loop_exec_parents_to_run_context", async () => {
637
- // The worker starts inside the measured `bridge.paperclip` step. Its awaited
638
- // queue-directory setup is startup work and keeps the active step. The poll
639
- // loop shell stays outside that store. But a per-request unit of work is
640
- // run-time work, so the worker runs each request under the current-run
641
- // parent context. A request `sandbox.exec` span then parents to the live run
642
- // span, not to the ended startup step. This test drives the worker with a
643
- // `getRuntimeParentContext` that returns a known token, queues one request,
644
- // and proves the request work reads that token from the active step store.
630
+ it("test_wardmote_loop_exec_parents_to_run_context", async () => {
645
631
  const runParentToken = { marker: "run-parent-token" };
646
632
  let setupStep = "unset";
647
633
  let requestStep = "unset";
@@ -650,7 +636,7 @@ describe("sandbox callback bridge", () => {
650
636
  const requestServed = new Promise((resolve) => {
651
637
  resolveServed = resolve;
652
638
  });
653
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-run-parent-"));
639
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-run-parent-"));
654
640
  cleanupDirs.push(rootDir);
655
641
  const queueDir = path.posix.join(rootDir, "queue");
656
642
  const worker = await measureStartupStep({}, () => 0, "bridge.paperclip", () => startSandboxCallbackBridgeWorker({
@@ -703,7 +689,7 @@ describe("sandbox callback bridge", () => {
703
689
  const requestServed = new Promise((resolve) => {
704
690
  resolveServed = resolve;
705
691
  });
706
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-relay-span-"));
692
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-relay-span-"));
707
693
  cleanupDirs.push(rootDir);
708
694
  const queueDir = path.posix.join(rootDir, "queue");
709
695
  const worker = await startSandboxCallbackBridgeWorker({
@@ -733,7 +719,7 @@ describe("sandbox callback bridge", () => {
733
719
  await worker.stop();
734
720
  expect(wrapped).toContain("sandbox.callbackBridge.relayRequest");
735
721
  });
736
- it("test_paperclip_loop_exec_stays_unparented_without_getter", async () => {
722
+ it("test_wardmote_loop_exec_stays_unparented_without_getter", async () => {
737
723
  // With no `getRuntimeParentContext`, a request runs with an empty active
738
724
  // step store, exactly like the earlier `runWithoutActiveStep` behavior. So a
739
725
  // request `sandbox.exec` span opens unparented with no stale startup flag.
@@ -743,7 +729,7 @@ describe("sandbox callback bridge", () => {
743
729
  const requestServed = new Promise((resolve) => {
744
730
  resolveServed = resolve;
745
731
  });
746
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-no-getter-"));
732
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-no-getter-"));
747
733
  cleanupDirs.push(rootDir);
748
734
  const queueDir = path.posix.join(rootDir, "queue");
749
735
  const worker = await measureStartupStep({}, () => 0, "bridge.paperclip", () => startSandboxCallbackBridgeWorker({
@@ -770,7 +756,7 @@ describe("sandbox callback bridge", () => {
770
756
  expect(requestStep).toBeNull();
771
757
  });
772
758
  it("serializes remote response writes so stop does not recreate a late orphaned response", async () => {
773
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-response-lock-"));
759
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-response-lock-"));
774
760
  cleanupDirs.push(rootDir);
775
761
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
776
762
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -843,10 +829,10 @@ describe("sandbox callback bridge", () => {
843
829
  });
844
830
  await new Promise((resolve) => setTimeout(resolve, 300));
845
831
  await expect(readdir(directories.responsesDir)).resolves.toEqual([]);
846
- await expect(readdir(directories.responsesDir).then((entries) => entries.filter((entry) => entry.endsWith(".tmp") || entry.includes(".paperclip-write.lock")))).resolves.toEqual([]);
832
+ await expect(readdir(directories.responsesDir).then((entries) => entries.filter((entry) => entry.endsWith(".tmp") || entry.includes(".wardmote-write.lock")))).resolves.toEqual([]);
847
833
  });
848
834
  it("rejects non-JSON request bodies and full queues at the bridge server", async () => {
849
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-server-guards-"));
835
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-server-guards-"));
850
836
  cleanupDirs.push(rootDir);
851
837
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
852
838
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -928,7 +914,7 @@ describe("sandbox callback bridge", () => {
928
914
  });
929
915
  });
930
916
  it("returns a 502 when the host response times out", async () => {
931
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-timeout-"));
917
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-timeout-"));
932
918
  cleanupDirs.push(rootDir);
933
919
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
934
920
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -974,7 +960,7 @@ describe("sandbox callback bridge", () => {
974
960
  });
975
961
  });
976
962
  it("returns a 502 for malformed host response files", async () => {
977
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-malformed-response-"));
963
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-malformed-response-"));
978
964
  cleanupDirs.push(rootDir);
979
965
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
980
966
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -1024,10 +1010,10 @@ describe("sandbox callback bridge", () => {
1024
1010
  });
1025
1011
  });
1026
1012
  it("reuses an already-uploaded bridge entrypoint when the remote file hash matches", async () => {
1027
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-sync-"));
1013
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-sync-"));
1028
1014
  cleanupDirs.push(rootDir);
1029
1015
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
1030
- const remoteAssetDir = path.posix.join(remoteWorkspaceDir, ".paperclip-runtime", "codex", "paperclip-bridge", "server");
1016
+ const remoteAssetDir = path.posix.join(remoteWorkspaceDir, ".wardmote-runtime", "codex", "paperclip-bridge", "server");
1031
1017
  await mkdir(remoteWorkspaceDir, { recursive: true });
1032
1018
  const bridgeAsset = await createSandboxCallbackBridgeAsset();
1033
1019
  cleanupFns.push(bridgeAsset.cleanup);
@@ -1052,15 +1038,15 @@ describe("sandbox callback bridge", () => {
1052
1038
  expect(first.uploaded).toBe(true);
1053
1039
  expect(second.uploaded).toBe(false);
1054
1040
  await expect(readFile(path.posix.join(remoteAssetDir, "paperclip-bridge-server.mjs"), "utf8")).resolves.toBe(expandedSource);
1055
- await expect(readdir(remoteAssetDir).then((entries) => entries.filter((entry) => entry.endsWith(".paperclip-upload.b64") ||
1041
+ await expect(readdir(remoteAssetDir).then((entries) => entries.filter((entry) => entry.endsWith(".wardmote-upload.b64") ||
1056
1042
  entry.endsWith(".partial") ||
1057
- entry === ".paperclip-bridge-upload.lock"))).resolves.toEqual([]);
1043
+ entry === ".wardmote-bridge-upload.lock"))).resolves.toEqual([]);
1058
1044
  });
1059
1045
  it("rejects a corrupted bridge entrypoint upload without committing a torn remote file", async () => {
1060
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-sync-corrupt-"));
1046
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-sync-corrupt-"));
1061
1047
  cleanupDirs.push(rootDir);
1062
1048
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
1063
- const remoteAssetDir = path.posix.join(remoteWorkspaceDir, ".paperclip-runtime", "codex", "paperclip-bridge", "server");
1049
+ const remoteAssetDir = path.posix.join(remoteWorkspaceDir, ".wardmote-runtime", "codex", "paperclip-bridge", "server");
1064
1050
  await mkdir(remoteWorkspaceDir, { recursive: true });
1065
1051
  const bridgeAsset = await createSandboxCallbackBridgeAsset();
1066
1052
  cleanupFns.push(bridgeAsset.cleanup);
@@ -1078,22 +1064,16 @@ describe("sandbox callback bridge", () => {
1078
1064
  timeoutMs: 30_000,
1079
1065
  })).rejects.toThrow(/sha mismatch/i);
1080
1066
  await expect(readFile(path.posix.join(remoteAssetDir, "paperclip-bridge-server.mjs"), "utf8")).rejects.toThrow();
1081
- await expect(readdir(remoteAssetDir).then((entries) => entries.filter((entry) => entry.endsWith(".paperclip-upload.b64") ||
1067
+ await expect(readdir(remoteAssetDir).then((entries) => entries.filter((entry) => entry.endsWith(".wardmote-upload.b64") ||
1082
1068
  entry.endsWith(".partial") ||
1083
- entry === ".paperclip-bridge-upload.lock"))).resolves.toEqual([]);
1069
+ entry === ".wardmote-bridge-upload.lock"))).resolves.toEqual([]);
1084
1070
  });
1085
- // The process-session remote script is a static, Paperclip-authored `.mjs`
1086
- // written into the sandbox on every bridge start. `syncRemoteTextFileWithHashSkip`
1087
- // (which now backs that write, mirroring the bridge-entrypoint sha256 gate)
1088
- // content-hash-skips it so a warm start where the remote script already matches
1089
- // costs ZERO write execs instead of the prior ~3 (prepare/append/finalize base64
1090
- // upload).
1091
1071
  it("test_process_session_script_skipped_when_remote_hash_matches: warm start with a matching remote hash writes 0 execs", async () => {
1092
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-hashskip-warm-"));
1072
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-hashskip-warm-"));
1093
1073
  cleanupDirs.push(rootDir);
1094
1074
  const remoteDir = path.join(rootDir, "runtime", "codex", "process-sessions");
1095
1075
  const remotePath = path.posix.join(remoteDir, "paperclip-process-session-remote.mjs");
1096
- const lockDir = path.posix.join(remoteDir, ".paperclip-process-session-script.lock");
1076
+ const lockDir = path.posix.join(remoteDir, ".wardmote-process-session-script.lock");
1097
1077
  const body = "console.log('process session remote script v1');\n";
1098
1078
  let execCount = 0;
1099
1079
  const inner = createExecRunner();
@@ -1128,16 +1108,16 @@ describe("sandbox callback bridge", () => {
1128
1108
  expect(second.sha256).toBe(first.sha256);
1129
1109
  // The remote file is unchanged and no upload/partial/lock leftovers remain.
1130
1110
  await expect(readFile(remotePath, "utf8")).resolves.toBe(body);
1131
- await expect(readdir(remoteDir).then((entries) => entries.filter((entry) => entry.endsWith(".paperclip-upload.b64") ||
1111
+ await expect(readdir(remoteDir).then((entries) => entries.filter((entry) => entry.endsWith(".wardmote-upload.b64") ||
1132
1112
  entry.endsWith(".partial") ||
1133
- entry === ".paperclip-process-session-script.lock"))).resolves.toEqual([]);
1113
+ entry === ".wardmote-process-session-script.lock"))).resolves.toEqual([]);
1134
1114
  });
1135
1115
  it("test_process_session_script_rewritten_on_hash_mismatch: a mismatched remote hash still rewrites the script", async () => {
1136
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-hashskip-cold-"));
1116
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-hashskip-cold-"));
1137
1117
  cleanupDirs.push(rootDir);
1138
1118
  const remoteDir = path.join(rootDir, "runtime", "codex", "process-sessions");
1139
1119
  const remotePath = path.posix.join(remoteDir, "paperclip-process-session-remote.mjs");
1140
- const lockDir = path.posix.join(remoteDir, ".paperclip-process-session-script.lock");
1120
+ const lockDir = path.posix.join(remoteDir, ".wardmote-process-session-script.lock");
1141
1121
  const body = "console.log('process session remote script v2');\n";
1142
1122
  // Pre-seed the remote with a DIFFERENT script (a prior/stale build).
1143
1123
  await mkdir(remoteDir, { recursive: true });
@@ -1157,11 +1137,11 @@ describe("sandbox callback bridge", () => {
1157
1137
  await expect(readFile(remotePath, "utf8")).resolves.toBe(body);
1158
1138
  });
1159
1139
  it("fails loud when the hash-skip sync exec errors instead of silently re-uploading", async () => {
1160
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-hashskip-fail-"));
1140
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-hashskip-fail-"));
1161
1141
  cleanupDirs.push(rootDir);
1162
1142
  const remoteDir = path.join(rootDir, "runtime", "codex", "process-sessions");
1163
1143
  const remotePath = path.posix.join(remoteDir, "paperclip-process-session-remote.mjs");
1164
- const lockDir = path.posix.join(remoteDir, ".paperclip-process-session-script.lock");
1144
+ const lockDir = path.posix.join(remoteDir, ".wardmote-process-session-script.lock");
1165
1145
  // A runner whose exec fails: the hash-gate cannot be evaluated. The write
1166
1146
  // must surface the failure, never swallow it and re-upload behind a green
1167
1147
  // return value.
@@ -1215,7 +1195,6 @@ describe("sandbox callback bridge", () => {
1215
1195
  { method: "GET", path: "/api/companies/co-1/email/tasks/issue-1" },
1216
1196
  { method: "GET", path: "/api/companies/co-1/email/deliveries/send-1" },
1217
1197
  { method: "POST", path: "/api/companies/co-1/email/send" },
1218
- // Hire skill (paperclip-create-agent): discovery + submit + issue linking
1219
1198
  { method: "GET", path: "/llms/agent-configuration.txt" },
1220
1199
  { method: "GET", path: "/llms/agent-configuration/claude_local.txt" },
1221
1200
  { method: "GET", path: "/llms/agent-icons.txt" },
@@ -1397,7 +1376,7 @@ describe("sandbox callback bridge", () => {
1397
1376
  const scripts = runner.execute.mock.calls.map(([input]) => input.args?.[1] ?? "");
1398
1377
  expect(scripts.filter((script) => script.startsWith("printf"))).toHaveLength(1);
1399
1378
  expect(scripts.some((script) => script.startsWith("base64 -d"))).toBe(false);
1400
- expect(scripts.at(-1)).toMatch(/^rm -f .*paperclip-upload/);
1379
+ expect(scripts.at(-1)).toMatch(/^rm -f .*wardmote-upload/);
1401
1380
  expect(vi.getTimerCount()).toBe(0);
1402
1381
  }
1403
1382
  finally {
@@ -1431,8 +1410,8 @@ describe("sandbox callback bridge", () => {
1431
1410
  expect(error).toEqual(new Error("Sandbox bridge control command timed out after 30000ms."));
1432
1411
  await operation;
1433
1412
  expect(runner.execute.mock.calls[0]?.[0].env).toMatchObject({
1434
- PAPERCLIP_BRIDGE_TOKEN: "private-bridge-token",
1435
- PAPERCLIP_SANDBOX_EXEC_CHANNEL: "bridge",
1413
+ WARDMOTE_BRIDGE_TOKEN: "private-bridge-token",
1414
+ WARDMOTE_SANDBOX_EXEC_CHANNEL: "bridge",
1436
1415
  });
1437
1416
  expect(runner.execute).toHaveBeenLastCalledWith(expect.objectContaining({ timeoutMs: 30_000 }));
1438
1417
  expect(vi.getTimerCount()).toBe(0);
@@ -1458,15 +1437,15 @@ describe("sandbox callback bridge", () => {
1458
1437
  remoteCwd: "/workspace",
1459
1438
  timeoutMs: 30_000,
1460
1439
  });
1461
- await client.makeDir("/workspace/.paperclip-runtime/codex/paperclip-bridge/queue");
1440
+ await client.makeDir("/workspace/.wardmote-runtime/codex/wardmote-bridge/queue");
1462
1441
  expect(runner.execute).toHaveBeenCalledWith(expect.objectContaining({
1463
1442
  env: {
1464
- PAPERCLIP_SANDBOX_EXEC_CHANNEL: "bridge",
1443
+ WARDMOTE_SANDBOX_EXEC_CHANNEL: "bridge",
1465
1444
  },
1466
1445
  }));
1467
1446
  });
1468
1447
  it("creates the bridge queue directories in one directory-creation exec", async () => {
1469
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-makedirs-"));
1448
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-makedirs-"));
1470
1449
  cleanupDirs.push(rootDir);
1471
1450
  const queueDir = path.posix.join(rootDir, "queue");
1472
1451
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -1499,7 +1478,7 @@ describe("sandbox callback bridge", () => {
1499
1478
  ]);
1500
1479
  });
1501
1480
  it("falls back to sequential makeDir when the queue client omits makeDirs", async () => {
1502
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-makedir-fallback-"));
1481
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-makedir-fallback-"));
1503
1482
  cleanupDirs.push(rootDir);
1504
1483
  const queueDir = path.posix.join(rootDir, "queue");
1505
1484
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -1587,7 +1566,7 @@ describe("sandbox callback bridge", () => {
1587
1566
  })}\n`;
1588
1567
  }
1589
1568
  it("times out a stalled poll, surfaces a run-level error, and recovers to deliver the request", async () => {
1590
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-hang-"));
1569
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-hang-"));
1591
1570
  cleanupDirs.push(rootDir);
1592
1571
  const queueDir = path.posix.join(rootDir, "queue");
1593
1572
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -1892,7 +1871,7 @@ describe("sandbox callback bridge", () => {
1892
1871
  const responseBody = JSON.parse(parsed.body);
1893
1872
  expect(responseBody.outcome).toBe("indeterminate");
1894
1873
  expect(responseBody.retryable).toBe(false);
1895
- expect(parsed.headers?.["x-paperclip-bridge-outcome"]).toBe("indeterminate");
1874
+ expect(parsed.headers?.["x-wardmote-bridge-outcome"]).toBe("indeterminate");
1896
1875
  expect(responseWrites.some((write) => write.status === 503)).toBe(false);
1897
1876
  expect(responseWrites.some((write) => write.status === 502)).toBe(false);
1898
1877
  // The backstop removed the request file, so it does not strand in the queue.
@@ -1985,7 +1964,7 @@ describe("sandbox callback bridge", () => {
1985
1964
  const responseBody = JSON.parse(parsed.body);
1986
1965
  expect(responseBody.outcome).toBe("indeterminate");
1987
1966
  expect(responseBody.retryable).toBe(false);
1988
- expect(parsed.headers?.["x-paperclip-bridge-outcome"]).toBe("indeterminate");
1967
+ expect(parsed.headers?.["x-wardmote-bridge-outcome"]).toBe("indeterminate");
1989
1968
  expect(requestRemovals).toContain(requestPath);
1990
1969
  await worker.stop({ drainTimeoutMs: 10 });
1991
1970
  });
@@ -2238,7 +2217,7 @@ describe("sandbox callback bridge", () => {
2238
2217
  const responseBody = JSON.parse(parsed.body);
2239
2218
  expect(responseBody.outcome).toBe("indeterminate");
2240
2219
  expect(responseBody.retryable).toBe(false);
2241
- expect(parsed.headers?.["x-paperclip-bridge-outcome"]).toBe("indeterminate");
2220
+ expect(parsed.headers?.["x-wardmote-bridge-outcome"]).toBe("indeterminate");
2242
2221
  // The finalize writes failed before the backstop wrote, so it took a later
2243
2222
  // attempt.
2244
2223
  expect(writeAttempts).toBeGreaterThanOrEqual(4);
@@ -2427,7 +2406,7 @@ describe("sandbox callback bridge", () => {
2427
2406
  // possibly-committed mutation. The outcome header and body still forward, so a
2428
2407
  // caller that reads them still sees the indeterminate result.
2429
2408
  const source = getSandboxCallbackBridgeServerSource();
2430
- expect(source).toContain("x-paperclip-bridge-outcome");
2409
+ expect(source).toContain("x-wardmote-bridge-outcome");
2431
2410
  expect(source).toContain('=== "indeterminate"');
2432
2411
  expect(source).toContain("res.statusCode = 409");
2433
2412
  });
@@ -2511,7 +2490,7 @@ describe("sandbox callback bridge", () => {
2511
2490
  await worker.stop({ drainTimeoutMs: 10 });
2512
2491
  });
2513
2492
  it("trips the watchdog on a stalled poll, writes a 503, and surfaces a run-level error", async () => {
2514
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-watchdog-"));
2493
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-watchdog-"));
2515
2494
  cleanupDirs.push(rootDir);
2516
2495
  const queueDir = path.posix.join(rootDir, "queue");
2517
2496
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -2551,7 +2530,7 @@ describe("sandbox callback bridge", () => {
2551
2530
  await worker.stop({ drainTimeoutMs: 400 });
2552
2531
  });
2553
2532
  it("processes a fast request with no false-positive timeout and no run-level error", async () => {
2554
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-fast-"));
2533
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-fast-"));
2555
2534
  cleanupDirs.push(rootDir);
2556
2535
  const queueDir = path.posix.join(rootDir, "queue");
2557
2536
  const directories = sandboxCallbackBridgeDirectories(queueDir);
@@ -2611,7 +2590,7 @@ describe("sandbox callback bridge", () => {
2611
2590
  };
2612
2591
  }
2613
2592
  it("cleans up a timed-out request file and keeps serving after the host recovers", async () => {
2614
- const fixture = await prepareGatewayFixture("paperclip-bridge-timeout-clean-");
2593
+ const fixture = await prepareGatewayFixture("wardmote-bridge-timeout-clean-");
2615
2594
  const bridge = await startSandboxCallbackBridgeServer({
2616
2595
  runner: fixture.runner,
2617
2596
  remoteCwd: fixture.remoteWorkspaceDir,
@@ -2659,7 +2638,7 @@ describe("sandbox callback bridge", () => {
2659
2638
  await expect(recovered.json()).resolves.toMatchObject({ ok: true });
2660
2639
  }, 30_000);
2661
2640
  it("sweeps stale request files before rejecting at the queue-depth cap", async () => {
2662
- const fixture = await prepareGatewayFixture("paperclip-bridge-stale-sweep-");
2641
+ const fixture = await prepareGatewayFixture("wardmote-bridge-stale-sweep-");
2663
2642
  const bridge = await startSandboxCallbackBridgeServer({
2664
2643
  runner: fixture.runner,
2665
2644
  remoteCwd: fixture.remoteWorkspaceDir,
@@ -2751,7 +2730,7 @@ describe("sandbox callback bridge", () => {
2751
2730
  // Before readiness, the crash handlers must not keep the process alive: a
2752
2731
  // failed bind means the gateway can never serve, and surviving would only
2753
2732
  // leave an un-ready zombie while the host waits out its readiness poll.
2754
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-bind-fail-"));
2733
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-bind-fail-"));
2755
2734
  cleanupDirs.push(rootDir);
2756
2735
  const entrypoint = path.join(rootDir, "paperclip-bridge-server.mjs");
2757
2736
  await writeFile(entrypoint, getSandboxCallbackBridgeServerSource(), "utf8");
@@ -2768,9 +2747,9 @@ describe("sandbox callback bridge", () => {
2768
2747
  const child = spawn(process.execPath, [entrypoint], {
2769
2748
  env: {
2770
2749
  ...process.env,
2771
- PAPERCLIP_BRIDGE_QUEUE_DIR: queueDir,
2772
- PAPERCLIP_BRIDGE_TOKEN: "test-token",
2773
- PAPERCLIP_BRIDGE_PORT: String(blockedPort),
2750
+ WARDMOTE_BRIDGE_QUEUE_DIR: queueDir,
2751
+ WARDMOTE_BRIDGE_TOKEN: "test-token",
2752
+ WARDMOTE_BRIDGE_PORT: String(blockedPort),
2774
2753
  },
2775
2754
  stdio: ["ignore", "ignore", "pipe"],
2776
2755
  });
@@ -2782,14 +2761,14 @@ describe("sandbox callback bridge", () => {
2782
2761
  child.on("close", resolve);
2783
2762
  });
2784
2763
  expect(exitCode).toBe(1);
2785
- expect(stderr).toContain("[paperclip-bridge] server error");
2764
+ expect(stderr).toContain("[wardmote-bridge] server error");
2786
2765
  expect(stderr).toContain("EADDRINUSE");
2787
2766
  }, 15_000);
2788
2767
  it("exits nonzero for the retired duplex_v1 mode instead of starting the queue gateway", async () => {
2789
2768
  // The closed mode allowlist rejects `duplex_v1` before the queue-directory
2790
2769
  // check, so a stale `duplex_v1` launch environment fails startup instead
2791
2770
  // of silently falling through to the queue gateway.
2792
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-mode-duplex-"));
2771
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-mode-duplex-"));
2793
2772
  cleanupDirs.push(rootDir);
2794
2773
  const entrypoint = path.join(rootDir, "paperclip-bridge-server.mjs");
2795
2774
  await writeFile(entrypoint, getSandboxCallbackBridgeServerSource(), "utf8");
@@ -2798,10 +2777,10 @@ describe("sandbox callback bridge", () => {
2798
2777
  const child = spawn(process.execPath, [entrypoint], {
2799
2778
  env: {
2800
2779
  ...process.env,
2801
- PAPERCLIP_API_BRIDGE_MODE: "duplex_v1",
2802
- PAPERCLIP_BRIDGE_QUEUE_DIR: queueDir,
2803
- PAPERCLIP_BRIDGE_TOKEN: "test-token",
2804
- PAPERCLIP_BRIDGE_PORT: "0",
2780
+ WARDMOTE_API_BRIDGE_MODE: "duplex_v1",
2781
+ WARDMOTE_BRIDGE_QUEUE_DIR: queueDir,
2782
+ WARDMOTE_BRIDGE_TOKEN: "test-token",
2783
+ WARDMOTE_BRIDGE_PORT: "0",
2805
2784
  },
2806
2785
  stdio: ["ignore", "ignore", "pipe"],
2807
2786
  });
@@ -2813,12 +2792,12 @@ describe("sandbox callback bridge", () => {
2813
2792
  child.on("close", resolve);
2814
2793
  });
2815
2794
  expect(exitCode).not.toBe(0);
2816
- expect(stderr).toContain("Unsupported PAPERCLIP_API_BRIDGE_MODE: duplex_v1");
2795
+ expect(stderr).toContain("Unsupported WARDMOTE_API_BRIDGE_MODE: duplex_v1");
2817
2796
  }, 15_000);
2818
2797
  it("exits nonzero for an unknown bridge mode instead of starting the queue gateway", async () => {
2819
2798
  // The closed mode allowlist rejects every value it does not name, not
2820
2799
  // only the retired duplex transport.
2821
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-mode-unknown-"));
2800
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-mode-unknown-"));
2822
2801
  cleanupDirs.push(rootDir);
2823
2802
  const entrypoint = path.join(rootDir, "paperclip-bridge-server.mjs");
2824
2803
  await writeFile(entrypoint, getSandboxCallbackBridgeServerSource(), "utf8");
@@ -2827,10 +2806,10 @@ describe("sandbox callback bridge", () => {
2827
2806
  const child = spawn(process.execPath, [entrypoint], {
2828
2807
  env: {
2829
2808
  ...process.env,
2830
- PAPERCLIP_API_BRIDGE_MODE: "totally_unknown_mode",
2831
- PAPERCLIP_BRIDGE_QUEUE_DIR: queueDir,
2832
- PAPERCLIP_BRIDGE_TOKEN: "test-token",
2833
- PAPERCLIP_BRIDGE_PORT: "0",
2809
+ WARDMOTE_API_BRIDGE_MODE: "totally_unknown_mode",
2810
+ WARDMOTE_BRIDGE_QUEUE_DIR: queueDir,
2811
+ WARDMOTE_BRIDGE_TOKEN: "test-token",
2812
+ WARDMOTE_BRIDGE_PORT: "0",
2834
2813
  },
2835
2814
  stdio: ["ignore", "ignore", "pipe"],
2836
2815
  });
@@ -2842,7 +2821,7 @@ describe("sandbox callback bridge", () => {
2842
2821
  child.on("close", resolve);
2843
2822
  });
2844
2823
  expect(exitCode).not.toBe(0);
2845
- expect(stderr).toContain("Unsupported PAPERCLIP_API_BRIDGE_MODE: totally_unknown_mode");
2824
+ expect(stderr).toContain("Unsupported WARDMOTE_API_BRIDGE_MODE: totally_unknown_mode");
2846
2825
  }, 15_000);
2847
2826
  it("test_http2_gateway_writes_no_frame_between_ready_and_the_preface", async () => {
2848
2827
  // Spawn the real generated gateway in http2_v1 mode and read its raw
@@ -2851,7 +2830,7 @@ describe("sandbox callback bridge", () => {
2851
2830
  // with nothing in between, because the gateway hands stdout to the
2852
2831
  // HTTP/2 client immediately after it writes READY and starts no
2853
2832
  // heartbeat timer and writes no envelope frame on this path.
2854
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-http2-gateway-"));
2833
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-http2-gateway-"));
2855
2834
  cleanupDirs.push(rootDir);
2856
2835
  const entrypoint = path.join(rootDir, "paperclip-bridge-server.mjs");
2857
2836
  await writeFile(entrypoint, getSandboxCallbackBridgeServerSource(), "utf8");
@@ -2871,10 +2850,10 @@ describe("sandbox callback bridge", () => {
2871
2850
  const child = spawn(process.execPath, [entrypoint], {
2872
2851
  env: {
2873
2852
  ...process.env,
2874
- PAPERCLIP_API_BRIDGE_MODE: "http2_v1",
2875
- PAPERCLIP_BRIDGE_TOKEN: "test-token",
2876
- PAPERCLIP_BRIDGE_PORT: String(assignedPort),
2877
- PAPERCLIP_BRIDGE_NONCE: nonce,
2853
+ WARDMOTE_API_BRIDGE_MODE: "http2_v1",
2854
+ WARDMOTE_BRIDGE_TOKEN: "test-token",
2855
+ WARDMOTE_BRIDGE_PORT: String(assignedPort),
2856
+ WARDMOTE_BRIDGE_NONCE: nonce,
2878
2857
  },
2879
2858
  stdio: ["pipe", "pipe", "pipe"],
2880
2859
  });
@@ -2925,7 +2904,7 @@ describe("sandbox callback bridge", () => {
2925
2904
  * receives, proving the send path carries no intermediate string.
2926
2905
  */
2927
2906
  async function startHttp2GatewayForTest(options) {
2928
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-http2-test-"));
2907
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-http2-test-"));
2929
2908
  cleanupDirs.push(rootDir);
2930
2909
  const entrypoint = path.join(rootDir, "paperclip-bridge-server.mjs");
2931
2910
  await writeFile(entrypoint, getSandboxCallbackBridgeServerSource(), "utf8");
@@ -2944,12 +2923,12 @@ describe("sandbox callback bridge", () => {
2944
2923
  const child = spawn(process.execPath, [entrypoint], {
2945
2924
  env: {
2946
2925
  ...process.env,
2947
- PAPERCLIP_API_BRIDGE_MODE: "http2_v1",
2948
- PAPERCLIP_BRIDGE_TOKEN: options.bridgeToken,
2949
- PAPERCLIP_BRIDGE_PORT: String(assignedPort),
2950
- PAPERCLIP_BRIDGE_NONCE: "test-nonce",
2926
+ WARDMOTE_API_BRIDGE_MODE: "http2_v1",
2927
+ WARDMOTE_BRIDGE_TOKEN: options.bridgeToken,
2928
+ WARDMOTE_BRIDGE_PORT: String(assignedPort),
2929
+ WARDMOTE_BRIDGE_NONCE: "test-nonce",
2951
2930
  ...(options.maxBodyBytes != null
2952
- ? { PAPERCLIP_BRIDGE_MAX_BODY_BYTES: String(options.maxBodyBytes) }
2931
+ ? { WARDMOTE_BRIDGE_MAX_BODY_BYTES: String(options.maxBodyBytes) }
2953
2932
  : {}),
2954
2933
  },
2955
2934
  stdio: ["pipe", "pipe", "pipe"],
@@ -3212,7 +3191,7 @@ describe("sandbox callback bridge", () => {
3212
3191
  bridgeToken,
3213
3192
  forwardRequest: async () => ({
3214
3193
  status: 504,
3215
- headers: { "content-type": "application/json", "x-paperclip-bridge-outcome": "indeterminate" },
3194
+ headers: { "content-type": "application/json", "x-wardmote-bridge-outcome": "indeterminate" },
3216
3195
  body: Buffer.from(indeterminateBody, "utf8"),
3217
3196
  }),
3218
3197
  });
@@ -3223,7 +3202,7 @@ describe("sandbox callback bridge", () => {
3223
3202
  });
3224
3203
  expect(response.status).toBe(409);
3225
3204
  expect(response.status).toBeLessThan(500);
3226
- expect(response.headers.get("x-paperclip-bridge-outcome")).toBe("indeterminate");
3205
+ expect(response.headers.get("x-wardmote-bridge-outcome")).toBe("indeterminate");
3227
3206
  const responseBytes = Buffer.from(await response.arrayBuffer());
3228
3207
  expect(responseBytes.toString("utf8")).toBe(indeterminateBody);
3229
3208
  }, 15_000);
@@ -3245,10 +3224,10 @@ describe("sandbox callback bridge", () => {
3245
3224
  headers: { authorization: `Bearer ${bridgeToken}` },
3246
3225
  });
3247
3226
  expect(response.status).toBe(503);
3248
- expect(response.headers.get("x-paperclip-bridge-outcome")).toBeNull();
3227
+ expect(response.headers.get("x-wardmote-bridge-outcome")).toBeNull();
3249
3228
  }, 15_000);
3250
3229
  async function startQueueGatewayForFileTest(options) {
3251
- const root = await mkdtemp(path.join(os.tmpdir(), "paperclip-file-codec-"));
3230
+ const root = await mkdtemp(path.join(os.tmpdir(), "wardmote-file-codec-"));
3252
3231
  cleanupDirs.push(root);
3253
3232
  const asset = await createSandboxCallbackBridgeAsset();
3254
3233
  cleanupFns.push(asset.cleanup);
@@ -3311,12 +3290,12 @@ describe("sandbox callback bridge", () => {
3311
3290
  method: "POST", headers: { authorization: `Bearer ${gateway.bridgeToken}`, "content-type": "multipart/form-data; boundary=boundary" }, body: Buffer.from([0xff]),
3312
3291
  });
3313
3292
  expect(response.status).toBe(409);
3314
- expect(response.headers.get("x-paperclip-bridge-outcome")).toBe("indeterminate");
3293
+ expect(response.headers.get("x-wardmote-bridge-outcome")).toBe("indeterminate");
3315
3294
  await expect(response.json()).resolves.toMatchObject({ retryable: false, outcome: "indeterminate" });
3316
3295
  expect(handled).toHaveBeenCalledTimes(1);
3317
3296
  });
3318
3297
  it("rejects a request body over maxBodyBytes on the queue path before it writes the queue file", async () => {
3319
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-queue-maxbody-"));
3298
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-queue-maxbody-"));
3320
3299
  cleanupDirs.push(rootDir);
3321
3300
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
3322
3301
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");
@@ -3366,7 +3345,7 @@ describe("sandbox callback bridge", () => {
3366
3345
  expect(requestFiles.filter((name) => name.endsWith(".json"))).toHaveLength(0);
3367
3346
  });
3368
3347
  it("keeps the queue request payload's body field as a plain JSON string", async () => {
3369
- const rootDir = await mkdtemp(path.join(os.tmpdir(), "paperclip-bridge-queue-body-shape-"));
3348
+ const rootDir = await mkdtemp(path.join(os.tmpdir(), "wardmote-bridge-queue-body-shape-"));
3370
3349
  cleanupDirs.push(rootDir);
3371
3350
  const localWorkspaceDir = path.join(rootDir, "local-workspace");
3372
3351
  const remoteWorkspaceDir = path.join(rootDir, "remote-workspace");