@intentic/sandbox-contract 1.428.0 → 1.430.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 (192) hide show
  1. package/dist/contracts/accounts.contract.d.ts +7 -0
  2. package/dist/contracts/accounts.contract.d.ts.map +1 -1
  3. package/dist/contracts/agent.contract.d.ts +24 -0
  4. package/dist/contracts/agent.contract.d.ts.map +1 -1
  5. package/dist/contracts/agents.contract.d.ts +84 -0
  6. package/dist/contracts/agents.contract.d.ts.map +1 -1
  7. package/dist/contracts/bookmarks.contract.d.ts +101 -0
  8. package/dist/contracts/bookmarks.contract.d.ts.map +1 -0
  9. package/dist/contracts/bookmarks.contract.js +51 -0
  10. package/dist/contracts/bookmarks.contract.js.map +1 -0
  11. package/dist/contracts/browser.contract.d.ts +176 -0
  12. package/dist/contracts/browser.contract.d.ts.map +1 -0
  13. package/dist/contracts/browser.contract.js +150 -0
  14. package/dist/contracts/browser.contract.js.map +1 -0
  15. package/dist/contracts/capabilities.contract.d.ts +36 -0
  16. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  17. package/dist/contracts/device.contract.d.ts +60 -0
  18. package/dist/contracts/device.contract.d.ts.map +1 -1
  19. package/dist/contracts/device.contract.js +4 -0
  20. package/dist/contracts/device.contract.js.map +1 -1
  21. package/dist/contracts/remote.contract.d.ts +120 -0
  22. package/dist/contracts/remote.contract.d.ts.map +1 -0
  23. package/dist/contracts/remote.contract.js +80 -0
  24. package/dist/contracts/remote.contract.js.map +1 -0
  25. package/dist/contracts/runner.contract.d.ts +14 -14
  26. package/dist/contracts/seal.contract.d.ts +20 -0
  27. package/dist/contracts/seal.contract.d.ts.map +1 -1
  28. package/dist/contracts/settings.contract.d.ts +26 -0
  29. package/dist/contracts/settings.contract.d.ts.map +1 -1
  30. package/dist/contracts/system.contract.d.ts +150 -0
  31. package/dist/contracts/system.contract.d.ts.map +1 -1
  32. package/dist/contracts/system.contract.js +57 -1
  33. package/dist/contracts/system.contract.js.map +1 -1
  34. package/dist/contracts/translator.contract.d.ts +7 -0
  35. package/dist/contracts/translator.contract.d.ts.map +1 -1
  36. package/dist/events/failure-rows.d.ts +2 -2
  37. package/dist/events/failure-rows.d.ts.map +1 -1
  38. package/dist/events/failure-rows.js +13 -13
  39. package/dist/events/failure-rows.js.map +1 -1
  40. package/dist/events/resume.d.ts.map +1 -1
  41. package/dist/events/resume.js +12 -12
  42. package/dist/events/resume.js.map +1 -1
  43. package/dist/events/sandbox-notice.d.ts.map +1 -1
  44. package/dist/events/sandbox-notice.js.map +1 -1
  45. package/dist/events/system-events.d.ts +16 -0
  46. package/dist/events/system-events.d.ts.map +1 -1
  47. package/dist/index.d.ts +10 -4
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +10 -4
  50. package/dist/index.js.map +1 -1
  51. package/dist/netd/browser-wire.d.ts +50 -1
  52. package/dist/netd/browser-wire.d.ts.map +1 -1
  53. package/dist/netd/browser-wire.js +22 -0
  54. package/dist/netd/browser-wire.js.map +1 -1
  55. package/dist/netd/generated/browser-wire.d.ts +135 -0
  56. package/dist/netd/generated/browser-wire.d.ts.map +1 -1
  57. package/dist/netd/generated/wire.d.ts +14 -0
  58. package/dist/netd/generated/wire.d.ts.map +1 -1
  59. package/dist/protocol/raw/raw-json-routes.d.ts +6 -0
  60. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  61. package/dist/protocol/raw/raw-json-routes.js +1 -0
  62. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  63. package/dist/protocol/raw/raw-routes.d.ts +18 -0
  64. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  65. package/dist/protocol/raw/raw-routes.js +4 -0
  66. package/dist/protocol/raw/raw-routes.js.map +1 -1
  67. package/dist/schemas/agent.d.ts +16 -0
  68. package/dist/schemas/agent.d.ts.map +1 -1
  69. package/dist/schemas/agent.js +3 -4
  70. package/dist/schemas/agent.js.map +1 -1
  71. package/dist/schemas/agents-list.d.ts +8 -0
  72. package/dist/schemas/agents-list.d.ts.map +1 -1
  73. package/dist/schemas/agents.d.ts +12 -0
  74. package/dist/schemas/agents.d.ts.map +1 -1
  75. package/dist/schemas/bookmarks.d.ts +85 -0
  76. package/dist/schemas/bookmarks.d.ts.map +1 -0
  77. package/dist/schemas/bookmarks.js +56 -0
  78. package/dist/schemas/bookmarks.js.map +1 -0
  79. package/dist/schemas/browser-tools.d.ts +167 -0
  80. package/dist/schemas/browser-tools.d.ts.map +1 -0
  81. package/dist/schemas/browser-tools.js +121 -0
  82. package/dist/schemas/browser-tools.js.map +1 -0
  83. package/dist/schemas/browsing.d.ts +139 -0
  84. package/dist/schemas/browsing.d.ts.map +1 -0
  85. package/dist/schemas/browsing.js +83 -0
  86. package/dist/schemas/browsing.js.map +1 -0
  87. package/dist/schemas/capabilities.d.ts +36 -0
  88. package/dist/schemas/capabilities.d.ts.map +1 -1
  89. package/dist/schemas/capabilities.js +3 -0
  90. package/dist/schemas/capabilities.js.map +1 -1
  91. package/dist/schemas/context-trim.js +3 -3
  92. package/dist/schemas/context-trim.js.map +1 -1
  93. package/dist/schemas/device-remote.d.ts +84 -0
  94. package/dist/schemas/device-remote.d.ts.map +1 -0
  95. package/dist/schemas/device-remote.js +54 -0
  96. package/dist/schemas/device-remote.js.map +1 -0
  97. package/dist/schemas/hosts.d.ts +6 -0
  98. package/dist/schemas/hosts.d.ts.map +1 -1
  99. package/dist/schemas/hosts.js +6 -0
  100. package/dist/schemas/hosts.js.map +1 -1
  101. package/dist/schemas/keep-warm.d.ts.map +1 -1
  102. package/dist/schemas/keep-warm.js +2 -3
  103. package/dist/schemas/keep-warm.js.map +1 -1
  104. package/dist/schemas/providers/handoff.d.ts.map +1 -1
  105. package/dist/schemas/providers/handoff.js +11 -11
  106. package/dist/schemas/providers/handoff.js.map +1 -1
  107. package/dist/schemas/providers/provider-oauth.d.ts +14 -0
  108. package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
  109. package/dist/schemas/providers/provider-oauth.js +6 -2
  110. package/dist/schemas/providers/provider-oauth.js.map +1 -1
  111. package/dist/schemas/providers/switched.js +1 -1
  112. package/dist/schemas/providers/switched.js.map +1 -1
  113. package/dist/schemas/queued-trial-retry.d.ts +7 -0
  114. package/dist/schemas/queued-trial-retry.d.ts.map +1 -0
  115. package/dist/schemas/queued-trial-retry.js +8 -0
  116. package/dist/schemas/queued-trial-retry.js.map +1 -0
  117. package/dist/schemas/remote-access.d.ts +137 -0
  118. package/dist/schemas/remote-access.d.ts.map +1 -0
  119. package/dist/schemas/remote-access.js +71 -0
  120. package/dist/schemas/remote-access.js.map +1 -0
  121. package/dist/schemas/seal.d.ts +1 -1
  122. package/dist/schemas/seal.d.ts.map +1 -1
  123. package/dist/schemas/seal.js +1 -1
  124. package/dist/schemas/seal.js.map +1 -1
  125. package/dist/schemas/settings.d.ts +26 -0
  126. package/dist/schemas/settings.d.ts.map +1 -1
  127. package/dist/schemas/settings.js +5 -0
  128. package/dist/schemas/settings.js.map +1 -1
  129. package/dist/schemas/terminal.d.ts +136 -0
  130. package/dist/schemas/terminal.d.ts.map +1 -1
  131. package/dist/schemas/terminal.js +41 -1
  132. package/dist/schemas/terminal.js.map +1 -1
  133. package/dist/state/auth-state.d.ts.map +1 -1
  134. package/dist/state/auth-state.js +1 -0
  135. package/dist/state/auth-state.js.map +1 -1
  136. package/dist/state/definition.d.ts +52 -0
  137. package/dist/state/definition.d.ts.map +1 -1
  138. package/dist/state/runtime-state.d.ts +3 -0
  139. package/dist/state/runtime-state.d.ts.map +1 -1
  140. package/dist/state/runtime-state.js +1 -0
  141. package/dist/state/runtime-state.js.map +1 -1
  142. package/dist/text/land-rows.d.ts.map +1 -1
  143. package/dist/text/land-rows.js +13 -17
  144. package/dist/text/land-rows.js.map +1 -1
  145. package/dist/text/notice-rows.js +6 -6
  146. package/dist/text/notice-rows.js.map +1 -1
  147. package/package.json +5 -5
  148. package/src/contracts/bookmarks.contract.ts +66 -0
  149. package/src/contracts/browser.contract.ts +181 -0
  150. package/src/contracts/device.contract.ts +15 -0
  151. package/src/contracts/remote.contract.ts +104 -0
  152. package/src/contracts/system.contract.ts +78 -0
  153. package/src/events/failure-rows.ts +13 -14
  154. package/src/events/resume.test.ts +3 -3
  155. package/src/events/resume.ts +12 -18
  156. package/src/events/sandbox-notice.ts +2 -0
  157. package/src/index.ts +15 -6
  158. package/src/netd/browser-wire.ts +84 -0
  159. package/src/netd/generated/browser-wire.json +894 -0
  160. package/src/netd/generated/browser-wire.ts +62 -3
  161. package/src/netd/generated/netd-wire.json +75 -0
  162. package/src/netd/generated/wire.ts +11 -2
  163. package/src/netd/wire-manifests.test.ts +76 -1
  164. package/src/protocol/ingress-contract.fixture.json +4 -0
  165. package/src/protocol/raw/raw-json-routes.ts +3 -0
  166. package/src/protocol/raw/raw-routes.ts +11 -0
  167. package/src/schemas/agent.ts +3 -4
  168. package/src/schemas/bookmarks.ts +79 -0
  169. package/src/schemas/browser-tools.ts +164 -0
  170. package/src/schemas/browsing.ts +129 -0
  171. package/src/schemas/capabilities.ts +9 -0
  172. package/src/schemas/context-trim.test.ts +6 -6
  173. package/src/schemas/context-trim.ts +3 -3
  174. package/src/schemas/device-remote.ts +106 -0
  175. package/src/schemas/hosts.ts +13 -0
  176. package/src/schemas/keep-warm.test.ts +1 -1
  177. package/src/schemas/keep-warm.ts +2 -3
  178. package/src/schemas/providers/handoff.test.ts +8 -10
  179. package/src/schemas/providers/handoff.ts +11 -12
  180. package/src/schemas/providers/provider-oauth.ts +10 -2
  181. package/src/schemas/providers/switched.test.ts +6 -6
  182. package/src/schemas/providers/switched.ts +1 -1
  183. package/src/schemas/queued-trial-retry.ts +14 -0
  184. package/src/schemas/remote-access.ts +140 -0
  185. package/src/schemas/seal.ts +2 -1
  186. package/src/schemas/settings.ts +9 -0
  187. package/src/schemas/terminal.ts +59 -1
  188. package/src/state/auth-state.ts +3 -0
  189. package/src/state/runtime-state.ts +4 -0
  190. package/src/text/land-rows.ts +13 -18
  191. package/src/text/notice-rows.ts +6 -6
  192. package/src/text/transcript-fold.test.ts +37 -37
@@ -15,7 +15,7 @@ const SENT_AT = 1_767_225_600_000;
15
15
  const openingOf = (prompt: string): TranscriptRow[] => [userRow(prompt, SENT_AT, [])];
16
16
  const foldOf = (prompt: string, events: readonly AgentEvent[]): TranscriptRow[] => foldTurn(openingOf(prompt), events);
17
17
  // What an armed credential renewal's row promises.
18
- const RENEWING_TEXT = "The credential is being renewed and this turn continues automatically.";
18
+ const RENEWING_TEXT = "Renewing the credential; the turn continues by itself.";
19
19
  // The same row as a code, which an app words in its reader's language (sandbox-notice.ts).
20
20
  const RENEWING_CODE = { code: "renewing", params: { message: "Token refused.", error: "claude-token-refused" } };
21
21
 
@@ -347,13 +347,13 @@ describe("foldTurn", () => {
347
347
  // the chat card's, asked once (ChatContinueStrip), not a second switch on a transcript line.
348
348
  expect(foldOf("hi", outage).at(-1)).toEqual({
349
349
  role: "notice",
350
- text: "Anthropic is down. Retrying by itself: attempt 2 of 6.",
350
+ text: "Anthropic is down. Retrying: attempt 2 of 6.",
351
351
  noticeCode: { code: "retrying", params: { message: "Anthropic is down.", error: "provider-outage", attempt: 2, of: 6 } },
352
352
  });
353
353
  const renewal: AgentEvent[] = [{ kind: "error", code: "claude-token-refused", message: "Token refused.", autoResume: "scheduled" }];
354
354
  expect(foldOf("hi", renewal).at(-1)).toEqual({
355
355
  role: "notice",
356
- text: "Token refused. The credential is being renewed and this turn continues automatically.",
356
+ text: "Token refused. Renewing the credential; the turn continues by itself.",
357
357
  noticeWait: "credentialRenewal",
358
358
  noticeCode: RENEWING_CODE,
359
359
  });
@@ -370,7 +370,7 @@ describe("foldTurn", () => {
370
370
  // The code moves with the words, so an app wording the row itself says the stop too, not the old promise.
371
371
  const withdrawn: TranscriptRow = {
372
372
  role: "notice",
373
- text: "Token refused. The credential was being renewed, but the turn stopped before it could continue: it will not carry on by itself, so press Continue to pick it back up.",
373
+ text: "Token refused. The renewal didn't resume the turn: press Continue to pick it up.",
374
374
  noticeCode: { code: "renewalWithdrawn", params: { message: "Token refused.", error: "claude-token-refused" } },
375
375
  };
376
376
  // The live window hears the rewrite as a patch on the row it already drew, then the stop's own row.
@@ -398,13 +398,13 @@ describe("foldTurn", () => {
398
398
  const booked: AgentEvent[] = [{ kind: "error", message: timedOut, autoResume: "scheduled", nextAt: 1, retries: { made: 1, max: 3 } }];
399
399
  expect(foldOf("hi", booked).at(-1)).toEqual({
400
400
  role: "notice",
401
- text: `${timedOut} Retrying by itself: attempt 2 of 3.`,
401
+ text: `${timedOut} Retrying: attempt 2 of 3.`,
402
402
  noticeCode: { code: "retrying", params: { message: timedOut, attempt: 2, of: 3 } },
403
403
  });
404
404
  const spent: AgentEvent[] = [{ kind: "error", message: timedOut, autoResume: "available", retries: { made: 3, max: 3 } }];
405
405
  expect(foldOf("hi", spent).at(-1)).toEqual({
406
406
  role: "notice",
407
- text: `${timedOut} Retried 3 of 3 times by itself; nothing more is sent automatically.`,
407
+ text: `${timedOut} Retried 3 of 3 times; no more retries.`,
408
408
  noticeCode: { code: "retried", params: { message: timedOut, made: 3, of: 3 } },
409
409
  });
410
410
  // An outage nobody armed says so, instead of promising the breaker's retry.
@@ -420,7 +420,7 @@ describe("foldTurn", () => {
420
420
  ];
421
421
  expect(foldOf("hi", unarmed).at(-1)).toEqual({
422
422
  role: "notice",
423
- text: "Anthropic is down. Nothing is retrying it, so the turn is waiting here.",
423
+ text: "Anthropic is down. Not retrying; the turn waits here.",
424
424
  noticeCode: { code: "outageWaiting", params: { message: "Anthropic is down.", error: "provider-outage" } },
425
425
  });
426
426
  });
@@ -431,13 +431,13 @@ describe("foldTurn", () => {
431
431
  const sync = cause === undefined ? { commits: 1, blocked: [] } : { commits: 1, blocked: [], cause };
432
432
  return { kind: "worktree", branch: "agent/x", base: "abc1234", sync };
433
433
  };
434
- const waited = "Your workspace moved on while this agent waited, its branch was rebased onto your latest 1 commit.";
434
+ const waited = "Rebased onto your latest 1 commit while this agent waited.";
435
435
  expect(foldOf("go", [frame()]).at(-1)?.text).toBe(waited);
436
436
  expect(foldOf("go", [frame("turn-open")]).at(-1)?.text).toBe(waited);
437
437
  expect(foldOf("go", [frame("answer")]).at(-1)?.text).toBe(waited);
438
438
  expect(foldOf("go", [frame("between-tools")]).at(-1)).toEqual({
439
439
  role: "notice",
440
- text: "The main line moved on during this turn: its 1 newer commit was rebased under this agent's branch between two of its tool calls. None of the files this agent changed were touched. `git diff abc1234` shows this agent's own changes on top of the new base.",
440
+ text: "Rebased mid-turn onto 1 new commit, none of its files touched (base abc1234).",
441
441
  noticeCode: { code: "synced", params: { commits: 1, cause: "between-tools", base: "abc1234" } },
442
442
  });
443
443
  });
@@ -452,21 +452,21 @@ describe("foldTurn", () => {
452
452
  expect(foldOf("go", events).slice(1)).toEqual([
453
453
  {
454
454
  role: "notice",
455
- text: "Your workspace moved on while this agent waited, its branch was rebased onto your latest 2 commits.",
455
+ text: "Rebased onto your latest 2 commits while this agent waited.",
456
456
  noticeCode: { code: "synced", params: { commits: 2 } },
457
457
  },
458
458
  { role: "assistant", text: "on it" },
459
459
  { role: "notice", text: "Context compacted to free up space.", noticeCode: { code: "compacted" } },
460
460
  {
461
461
  role: "notice",
462
- text: "Changes landed in your workspace: review them in the Changes panel. Installing 1 dependency it added or changed; the project's checks run when that finishes, and the outcome lands in Activity.",
462
+ text: "Landed in your workspace. Installing 1 changed dependency, then checks.",
463
463
  noticeAction: "depsInstall",
464
464
  noticeCode: { code: "landed", params: { deps: 1 } },
465
465
  },
466
466
  ]);
467
467
  expect(foldOf("go", [{ kind: "landed", landed: true, held: true }]).at(-1)).toEqual({
468
468
  role: "notice",
469
- text: "Finished: the work is on this agent's branch, ready to land from its review.",
469
+ text: "Finished: ready to land from this agent's review.",
470
470
  noticeCode: { code: "landHeld" },
471
471
  });
472
472
  });
@@ -492,25 +492,25 @@ describe("foldTurn", () => {
492
492
  it("says where an agent's own install writes, naming its projects", () => {
493
493
  expect(foldOf("go", [{ kind: "install", reach: "own-copy", projects: ["video"] }]).at(-1)).toEqual({
494
494
  role: "notice",
495
- text: "Installing packages in video/ into this conversation's own copy. The manifest and lockfile land with the work, and the review lists what it adds.",
495
+ text: "Installing packages in video/ into this conversation's own copy.",
496
496
  noticeCode: { code: "installing", params: { ownCopy: true, projects: "video/" } },
497
497
  });
498
498
  expect(foldOf("go", [{ kind: "install", reach: "main-tree", projects: [""] }]).at(-1)).toEqual({
499
499
  role: "notice",
500
- text: "Installing packages in the workspace root in the main tree, one install at a time.",
500
+ text: "Installing packages in the workspace root in the main tree.",
501
501
  noticeCode: { code: "installing", params: { ownCopy: false, root: true } },
502
502
  });
503
503
  // The workspace root is named first, and counts toward the three named.
504
504
  expect(foldOf("go", [{ kind: "install", reach: "main-tree", projects: ["a", "", "b", "c", "d"] }]).at(-1)).toEqual({
505
505
  role: "notice",
506
- text: "Installing packages in the workspace root, a/, b/ and 2 more in the main tree, one install at a time.",
506
+ text: "Installing packages in the workspace root, a/, b/ and 2 more in the main tree.",
507
507
  noticeCode: { code: "installing", params: { ownCopy: false, root: true, projects: "a/, b/", more: 2 } },
508
508
  });
509
509
  expect(foldOf("go", [{ kind: "install", reach: "main-tree", projects: ["a", "b", "c", "d", "e"] }]).at(-1)?.text).toBe(
510
- "Installing packages in a/, b/, c/ and 2 more in the main tree, one install at a time.",
510
+ "Installing packages in a/, b/, c/ and 2 more in the main tree.",
511
511
  );
512
512
  expect(foldOf("go", [{ kind: "install", reach: "own-copy", projects: [] }]).at(-1)?.text).toBe(
513
- "Installing packages into this conversation's own copy. The manifest and lockfile land with the work, and the review lists what it adds.",
513
+ "Installing packages into this conversation's own copy.",
514
514
  );
515
515
  });
516
516
 
@@ -519,7 +519,7 @@ describe("foldTurn", () => {
519
519
  it("says a land's dependency install is on its way, not waiting for other agents", () => {
520
520
  expect(foldOf("go", [{ kind: "landed", landed: true, deps: { missing: 3, started: [], deferred: true } }]).at(-1)).toEqual({
521
521
  role: "notice",
522
- text: "Changes landed in your workspace: review them in the Changes panel. 3 dependencies it added or changed are being installed in your tree: the install waits for any other install to finish, appears in Work terminals, and its outcome lands in Activity.",
522
+ text: "Landed in your workspace. 3 changed dependencies queued to install.",
523
523
  noticeCode: { code: "landed", params: { deps: 3, queued: true } },
524
524
  });
525
525
  });
@@ -527,7 +527,7 @@ describe("foldTurn", () => {
527
527
  // A home's land is named on its row, so the commit its card files under that name is told on the same row.
528
528
  it("names a home's land on its row", () => {
529
529
  expect(foldOf("go", [{ kind: "landed", landed: true, land: "land-1" }]).at(-1)).toMatchObject({
530
- text: "Landed in your workspace and committed.",
530
+ text: "Landed and committed.",
531
531
  noticeCode: { code: "landed", params: { land: "land-1" } },
532
532
  });
533
533
  });
@@ -536,7 +536,7 @@ describe("foldTurn", () => {
536
536
  it("marks a home's fresh session with a row of its own", () => {
537
537
  expect(foldOf("go", [{ kind: "fresh_start", why: "budget", from: 182_000, summarized: true, model: "haiku" }]).at(-1)).toEqual({
538
538
  role: "notice",
539
- text: "This chat's memory was full at about 182k tokens, so it went on in a fresh session, opened with a summary of the conversation written by haiku and its latest messages.",
539
+ text: "Memory full at ~182k tokens: fresh session, from a summary by haiku.",
540
540
  noticeCode: { code: "freshStart", params: { why: "budget", from: "182k", model: "haiku", summarized: true } },
541
541
  });
542
542
  });
@@ -546,12 +546,12 @@ describe("foldTurn", () => {
546
546
  it("marks a turn's switch with a row of its own, coded for the reader's language", () => {
547
547
  expect(foldOf("go", [{ kind: "switched", segment: "provider", provider: "codex", model: "gpt-5-codex", loop: "Codex", fresh: true }]).at(-1)).toEqual({
548
548
  role: "notice",
549
- text: "Switched to Codex: this message started a fresh session, with the conversation so far carried over.",
549
+ text: "Switched to Codex: fresh session, conversation carried over.",
550
550
  noticeCode: { code: "switched", params: { segment: "provider", provider: "codex", model: "gpt-5-codex", loop: "Codex", fresh: true } },
551
551
  });
552
552
  expect(foldOf("go", [{ kind: "switched", segment: "model", provider: "claude", model: "claude-sonnet-5", fresh: false }]).at(-1)).toEqual({
553
553
  role: "notice",
554
- text: "Switched to Claude Sonnet 5: same session, so the model re-reads the conversation once.",
554
+ text: "Switched to Claude Sonnet 5: same session, re-read once.",
555
555
  noticeCode: { code: "switched", params: { segment: "model", provider: "claude", model: "claude-sonnet-5", fresh: false } },
556
556
  });
557
557
  });
@@ -561,13 +561,13 @@ describe("foldTurn", () => {
561
561
  it("says a child's work went into its parent's checkout, or was held off it by a clash", () => {
562
562
  expect(foldOf("go", [{ kind: "landed", landed: true, into: "p1" }]).at(-1)).toEqual({
563
563
  role: "notice",
564
- text: "Changes went into the parent agent's checkout, as its in-process subagents' edits do: they reach your workspace with its land.",
564
+ text: "Changes went into the parent agent's checkout; they land with it.",
565
565
  noticeCode: { code: "intoParent" },
566
566
  });
567
567
  const clash: AgentEvent = { kind: "landed", landed: false, into: "p1", conflicts: [{ repo: "root", paths: [{ path: "app.ts", reason: "diverged" }], clean: 0 }] };
568
568
  expect(foldOf("go", [clash]).at(-1)).toEqual({
569
569
  role: "notice",
570
- text: "1 file(s) clash with the parent agent's own edits, so nothing was written into its checkout. The parent was told, and can bring the changes in to resolve.",
570
+ text: "1 file clashes with the parent agent's edits; the parent was told.",
571
571
  noticeCode: { code: "intoParentClash", params: { files: 1 } },
572
572
  });
573
573
  });
@@ -582,7 +582,7 @@ describe("foldTurn", () => {
582
582
  expect(foldOf("go", [blocked]).slice(1)).toEqual([
583
583
  {
584
584
  role: "notice",
585
- text: "Couldn't rebase onto your workspace in intentic: the turn is running from the older base, so its land may need a resolve.",
585
+ text: "Couldn't rebase in intentic; its land may need a resolve.",
586
586
  noticeCode: { code: "synced", params: { commits: 0, blocked: "intentic" } },
587
587
  },
588
588
  ]);
@@ -591,7 +591,7 @@ describe("foldTurn", () => {
591
591
  expect(foldOf(resolve, [mixed]).slice(1)).toEqual([
592
592
  {
593
593
  role: "notice",
594
- text: "Your workspace moved on while this agent waited, its branch was rebased onto your latest 3 commits.",
594
+ text: "Rebased onto your latest 3 commits while this agent waited.",
595
595
  noticeCode: { code: "synced", params: { commits: 3 } },
596
596
  },
597
597
  ]);
@@ -1026,7 +1026,7 @@ describe(`a refusal that ran nothing`, () => {
1026
1026
 
1027
1027
  it(`tells the reader that sending again starts it, and offers both presses when there is a ceiling to raise`, () => {
1028
1028
  const row = foldOf(`land it`, [lowMemory]).at(-1);
1029
- expect(row?.text).toBe(`${lowMemory.message} Your message is held: send it again to start anyway.`);
1029
+ expect(row?.text).toBe(`${lowMemory.message} Message held: send again to start anyway.`);
1030
1030
  expect(row?.noticeAction).toBe(`sandboxMemory`);
1031
1031
  });
1032
1032
 
@@ -1034,7 +1034,7 @@ describe(`a refusal that ran nothing`, () => {
1034
1034
  const { memory: _stalled, ...noReading } = lowMemory;
1035
1035
  const row = foldOf(`land it`, [noReading]).at(-1);
1036
1036
  expect(row?.noticeAction).toBe(`sendAnyway`);
1037
- expect(row?.text).toContain(`send it again to start anyway`);
1037
+ expect(row?.text).toContain(`send again to start anyway`);
1038
1038
  });
1039
1039
 
1040
1040
  it(`offers nothing on a background turn, which has no message to send`, () => {
@@ -1120,7 +1120,7 @@ describe(`a refusal that ran nothing`, () => {
1120
1120
  expect(fold.rows.map((row) => row.role)).toEqual([`user`, `assistant`, `notice`]);
1121
1121
  expect(fold.rows.at(-1)).toEqual({
1122
1122
  role: `notice`,
1123
- text: `${SPENT.message} The run stopped partway. The changes it made so far are kept: continue with another model to pick up from here.`,
1123
+ text: `${SPENT.message} Stopped partway, changes kept: continue with another model.`,
1124
1124
  noticeAction: `switchModel`,
1125
1125
  noticeCode: { code: `stoppedPartway`, params: { message: SPENT.message, error: `trial-exhausted`, switchModel: true } },
1126
1126
  });
@@ -1132,7 +1132,7 @@ describe(`a refusal that ran nothing`, () => {
1132
1132
  const disk = { kind: `error`, code: `sandbox-disk-low`, message: `The sandbox's disk is full.` } as const satisfies AgentEvent;
1133
1133
  expect(foldOf(`change the heading`, [...EDITED, disk]).at(-1)).toEqual({
1134
1134
  role: `notice`,
1135
- text: `${disk.message} The run stopped partway. The changes it made so far are kept: send a message to pick up from here.`,
1135
+ text: `${disk.message} Stopped partway, changes kept: send a message to go on.`,
1136
1136
  noticeCode: { code: `stoppedPartway`, params: { message: disk.message, error: `sandbox-disk-low` } },
1137
1137
  });
1138
1138
  });
@@ -1141,7 +1141,7 @@ describe(`a refusal that ran nothing`, () => {
1141
1141
  expect(foldOf(`change the heading`, [SPENT])).toEqual([
1142
1142
  {
1143
1143
  role: `notice`,
1144
- text: `${SPENT.message} Your message was not delivered: it is held for you to send again.`,
1144
+ text: `${SPENT.message} Not delivered: held for you to send again.`,
1145
1145
  noticeCode: { code: `undelivered`, params: { message: SPENT.message, error: `trial-exhausted` } },
1146
1146
  },
1147
1147
  ]);
@@ -1164,7 +1164,7 @@ describe(`a refusal that ran nothing`, () => {
1164
1164
 
1165
1165
  it(`offers to send it again, as the sandbox's to run rather than the composer's`, () => {
1166
1166
  const row = foldOf(`land it`, [kept]).at(-1);
1167
- expect(row?.text).toBe(`${REFUSED.message} Nothing has run yet: the message above is kept here to send again once that is sorted.`);
1167
+ expect(row?.text).toBe(`${REFUSED.message} Nothing ran; the message above is kept to send again.`);
1168
1168
  expect(row).toMatchObject({ noticeAction: `sendAgain`, sandboxHeld: true });
1169
1169
  });
1170
1170
 
@@ -1178,7 +1178,7 @@ describe(`a refusal that ran nothing`, () => {
1178
1178
  held: { ran: false },
1179
1179
  } as const satisfies AgentEvent;
1180
1180
  const row = foldOf(`land it`, [lowMemory]).at(-1);
1181
- expect(row?.text).toBe(`${lowMemory.message} Nothing has run yet: the message above is kept here, and sending it anyway starts it.`);
1181
+ expect(row?.text).toBe(`${lowMemory.message} Nothing ran; send the message above anyway to start it.`);
1182
1182
  expect(row).toMatchObject({ noticeAction: `sandboxMemory`, sandboxHeld: true });
1183
1183
  });
1184
1184
  });
@@ -1215,7 +1215,7 @@ describe(`the code beside a notice's words`, () => {
1215
1215
  it(`names each land outcome, with the counts and repos its sentence was worded from`, () => {
1216
1216
  expect(lastOf([{ kind: `landed`, landed: true }])).toEqual({
1217
1217
  role: `notice`,
1218
- text: `Changes landed in your workspace: review them in the Changes panel.`,
1218
+ text: `Landed in your workspace.`,
1219
1219
  noticeCode: { code: `landed` },
1220
1220
  });
1221
1221
  expect(lastOf([{ kind: `landed`, landed: true, deps: { missing: 2, started: [], deferred: true } }])?.noticeCode).toEqual({
@@ -1228,7 +1228,7 @@ describe(`the code beside a notice's words`, () => {
1228
1228
  ];
1229
1229
  expect(lastOf([{ kind: `landed`, landed: false, conflicts }])).toEqual({
1230
1230
  role: `notice`,
1231
- text: `3 file(s) couldn't land automatically in root, web. Open the agent's review to see what blocked them and land from there.`,
1231
+ text: `3 files couldn't land in root, web: resolve in the agent's review.`,
1232
1232
  noticeCode: { code: `landConflict`, params: { files: 3, repos: `root, web` } },
1233
1233
  });
1234
1234
  });
@@ -1264,7 +1264,7 @@ describe(`the code beside a notice's words`, () => {
1264
1264
  });
1265
1265
  expect(lastOf([{ kind: `error`, code: `claude-token-refused`, message: `Token refused.` }])).toEqual({
1266
1266
  role: `notice`,
1267
- text: `Token refused. Reconnect the account to pick this conversation back up.`,
1267
+ text: `Token refused. Reconnect the account to continue.`,
1268
1268
  noticeCode: { code: `reconnect`, params: { message: `Token refused.`, error: `claude-token-refused` } },
1269
1269
  });
1270
1270
  });
@@ -1471,7 +1471,7 @@ describe("transcriptIncidents", () => {
1471
1471
  it("words the move with both accounts' names, and codes it", () => {
1472
1472
  expect(moved).toEqual({
1473
1473
  role: "notice",
1474
- text: "Ran on radarsu@gmail.com: the Work account's plan or organization does not allow it.",
1474
+ text: "Ran on radarsu@gmail.com: Work's plan or organization doesn't allow it.",
1475
1475
  noticeCode: { code: "accountMoved", params: { why: "refused", from: "Work", to: "radarsu@gmail.com", said: ORG_OFF } },
1476
1476
  });
1477
1477
  expect(sandboxNoticeOf(accountMovedRow({ why: "cold", from: "Work", to: "Home" }))).toEqual({ code: "accountMoved", params: { why: "cold", from: "Work", to: "Home" } });