@sema-agent/client-core 0.108.0 → 0.109.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 (103) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/README.md +37 -24
  3. package/dist/adapt/arms.js +23 -8
  4. package/dist/adapt/textStream.d.ts +2 -0
  5. package/dist/adapt/textStream.js +37 -16
  6. package/dist/adapter/activeRunSelfHeal.js +1 -1
  7. package/dist/adapter/downstream/eventToSdkMessage.js +2 -1
  8. package/dist/agentSession/engineAgentRegistryRead.js +2 -0
  9. package/dist/bashExitReading.d.ts +12 -0
  10. package/dist/bashExitReading.js +44 -0
  11. package/dist/checkpointRowVerdict.d.ts +1 -1
  12. package/dist/checkpointRowVerdict.js +4 -2
  13. package/dist/compensations.js +1 -1
  14. package/dist/engineAgentAbsence.d.ts +2 -0
  15. package/dist/engineAgentAbsence.js +28 -0
  16. package/dist/engineErrorCodes.d.ts +4 -0
  17. package/dist/engineErrorCodes.js +4 -0
  18. package/dist/engineHealthFacts.d.ts +17 -0
  19. package/dist/engineHealthFacts.js +42 -3
  20. package/dist/engineNoticeCodes.d.ts +128 -0
  21. package/dist/engineNoticeCodes.js +630 -55
  22. package/dist/errorSupplementRoles.js +4 -1
  23. package/dist/fleetTaskDesc.js +3 -3
  24. package/dist/generated/engineFactTables.d.ts +1 -0
  25. package/dist/generated/engineFactTables.js +6 -0
  26. package/dist/generated/engineNoticeTables.js +3 -0
  27. package/dist/hitl/approvalCardReasons.js +22 -4
  28. package/dist/hitl/approvalRequestFrameReading.d.ts +14 -0
  29. package/dist/hitl/approvalRequestFrameReading.js +79 -0
  30. package/dist/hitl/approvalsFeed.js +1 -1
  31. package/dist/hitl/askParkRowRouting.js +5 -2
  32. package/dist/hitl/automaticAnswerVerdict.d.ts +5 -2
  33. package/dist/hitl/automaticAnswerVerdict.js +16 -2
  34. package/dist/hitl/decisionConflict.d.ts +2 -1
  35. package/dist/hitl/decisionConflict.js +4 -1
  36. package/dist/hitl/frameRouter.js +9 -1
  37. package/dist/hitl/hitlBridge.d.ts +4 -0
  38. package/dist/hitl/hitlBridge.js +9 -5
  39. package/dist/hitl/livePendingAsk.js +17 -16
  40. package/dist/hitl/localAllowRule.js +2 -1
  41. package/dist/hitl/noAllowCause.d.ts +1 -1
  42. package/dist/hitl/noAllowCause.js +4 -2
  43. package/dist/hitl/parkExpiryJudgements.js +26 -1
  44. package/dist/hitl/parkOwnership.d.ts +2 -0
  45. package/dist/hitl/parkOwnership.js +48 -8
  46. package/dist/hitl/parkResolver.js +7 -7
  47. package/dist/hitl/parkedUnresumable.d.ts +13 -0
  48. package/dist/hitl/parkedUnresumable.js +80 -0
  49. package/dist/hitl/permissionRuleScope.d.ts +4 -0
  50. package/dist/hitl/permissionRuleScope.js +31 -0
  51. package/dist/hitl/persistedRulesWire.d.ts +2 -0
  52. package/dist/hitl/persistedRulesWire.js +11 -10
  53. package/dist/hitl/sessionAllowRoute.js +5 -4
  54. package/dist/hitl/standingRows.d.ts +1 -5
  55. package/dist/hitl/standingRows.js +15 -14
  56. package/dist/hitl/toolApprovalWire.d.ts +8 -2
  57. package/dist/hitl/toolApprovalWire.js +35 -14
  58. package/dist/hooksWireCaps.js +4 -3
  59. package/dist/hostSettingsSource.js +2 -0
  60. package/dist/i18n/messages.en.d.ts +168 -0
  61. package/dist/i18n/messages.en.js +169 -1
  62. package/dist/i18n/messages.zh.js +169 -1
  63. package/dist/index.d.ts +29 -7
  64. package/dist/index.js +16 -4
  65. package/dist/localEngineJudge.d.ts +75 -0
  66. package/dist/localEngineJudge.js +242 -0
  67. package/dist/localEngineOccupancy.d.ts +88 -0
  68. package/dist/localEngineOccupancy.js +269 -0
  69. package/dist/localEngineSeatReading.d.ts +29 -0
  70. package/dist/localEngineSeatReading.js +294 -0
  71. package/dist/localEngineSpawn.d.ts +113 -0
  72. package/dist/localEngineSpawn.js +486 -0
  73. package/dist/localEngineStep.d.ts +286 -0
  74. package/dist/localEngineStep.js +1086 -0
  75. package/dist/localEngineStopLadder.d.ts +29 -0
  76. package/dist/localEngineStopLadder.js +139 -0
  77. package/dist/localEngineSwapCard.d.ts +43 -0
  78. package/dist/localEngineSwapCard.js +205 -0
  79. package/dist/localEngineTiming.d.ts +8 -0
  80. package/dist/localEngineTiming.js +8 -0
  81. package/dist/mcpReconnect.js +12 -5
  82. package/dist/mcpWireCaps.js +2 -2
  83. package/dist/memoryEntriesWire.d.ts +1 -1
  84. package/dist/memoryEntriesWire.js +5 -0
  85. package/dist/noticePresentation.d.ts +2 -0
  86. package/dist/noticePresentation.js +79 -1
  87. package/dist/ownKey.d.ts +10 -0
  88. package/dist/ownKey.js +15 -1
  89. package/dist/ruleReadings.js +1 -1
  90. package/dist/seam.d.ts +13 -2
  91. package/dist/seam.js +8 -1
  92. package/dist/seatContract.d.ts +42 -4
  93. package/dist/seatContract.js +180 -3
  94. package/dist/sessionBackground.js +2 -0
  95. package/dist/subagentContentStore.d.ts +12 -0
  96. package/dist/subagentContentStore.js +72 -11
  97. package/dist/toolResult.js +18 -5
  98. package/dist/wireFailureShape.d.ts +20 -0
  99. package/dist/wireFailureShape.js +37 -6
  100. package/dist/wireRefusalCopy.d.ts +21 -1
  101. package/dist/wireRefusalCopy.js +91 -2
  102. package/docs/INTEGRATION-CLIENTS.md +1152 -10
  103. package/package.json +3 -3
@@ -550,6 +550,8 @@ export function adoptHostSettingsRead(read, session, allowAdmitted = () => true,
550
550
  return true;
551
551
  if (LOADED.has(c.status))
552
552
  return false;
553
+ if (c.status === 'absent')
554
+ return false;
553
555
  return !(c.status === 'empty' && c.emptyKind === 'empty-object');
554
556
  });
555
557
  trusted = !newIssue && !lost && !anyMalformed;
@@ -261,11 +261,14 @@ declare const EN: {
261
261
  'approval.rowUnresumable.askNotSurfaced': string;
262
262
  'approval.park.stillParked': string;
263
263
  'approval.park.refusedNotResumable': string;
264
+ 'approval.park.argsFromModelCall': string;
265
+ 'approval.park.questionsFromModelCall': string;
264
266
  'approval.policyDeny.denyRule': string;
265
267
  'approval.policyDeny.dontAsk': string;
266
268
  'approval.policyDeny.engineFloor': string;
267
269
  'approval.policyDeny.tail': string;
268
270
  'approval.decision.grantChanged': string;
271
+ 'approval.decision.answerInvalid': string;
269
272
  'approval.decision.settledElsewhereContrary.deniedFirst': string;
270
273
  'approval.decision.settledElsewhereContrary.approvedFirst': string;
271
274
  'approval.decision.unconfirmedAfterRetry': string;
@@ -550,6 +553,9 @@ declare const EN: {
550
553
  'approval.mandate.wayOut.crossBoundaryTaint': string;
551
554
  'approval.mandate.unknownWord': string;
552
555
  'approval.card.payloadUnreadable': string;
556
+ 'approval.card.payloadUnreadable.versionUnknown': string;
557
+ 'approval.card.payloadUnreadable.fieldsMalformed': string;
558
+ 'approval.card.payloadUnreadable.partUnknown': string;
553
559
  'approval.card.more.one': string;
554
560
  'approval.card.more.other': string;
555
561
  'approval.card.denialLimit.plain': string;
@@ -653,6 +659,83 @@ declare const EN: {
653
659
  'notice.userInputUndrained.approvalFeedback.other': string;
654
660
  'notice.askUnresolvable.remedy.approver': string;
655
661
  'notice.askUnresolvable.remedy.permissionMode': string;
662
+ 'notice.durableGate.lead': string;
663
+ 'notice.durableGate.mandate.forceDurableGate': string;
664
+ 'notice.durableGate.mandate.durableApproval': string;
665
+ 'notice.durableGate.mandate.other': string;
666
+ 'notice.durableGate.cause.noDeploymentStore': string;
667
+ 'notice.durableGate.cause.taskStoreDisabled': string;
668
+ 'notice.durableGate.cause.other': string;
669
+ 'notice.durableGate.approver.live': string;
670
+ 'notice.durableGate.approver.noneAttached': string;
671
+ 'notice.durableGate.approver.unreported': string;
672
+ 'notice.durableGate.question.refused': string;
673
+ 'notice.durableGate.exit.noDeploymentStore': string;
674
+ 'notice.durableGate.exit.taskStoreDisabled': string;
675
+ 'notice.durableGate.exit.other': string;
676
+ 'notice.durableGate.exitAlt.forceDurableGate': string;
677
+ 'notice.durableGate.exitAlt.durableApproval': string;
678
+ 'notice.memory.sessionPolluted': string;
679
+ 'notice.memory.harvestQuarantined.counts': string;
680
+ 'notice.memory.harvestQuarantined.indexOnly': string;
681
+ 'notice.memory.harvestQuarantined.indexAlso': string;
682
+ 'notice.memory.delegationWaived.lead': string;
683
+ 'notice.memory.delegationWaived.agentType': string;
684
+ 'notice.memory.delegationWaived.reason': string;
685
+ 'notice.memory.delegationWaived.tail': string;
686
+ 'notice.memory.captureOptedOut.flipVerb': string;
687
+ 'notice.memory.captureOptedOut.standingRecord': string;
688
+ 'notice.memory.captureOptedOut.delegationFloor': string;
689
+ 'notice.memory.captureOptedOut.forkOrigin': string;
690
+ 'notice.memory.captureOptedOut.declaration': string;
691
+ 'notice.memory.captureOptedOut.other': string;
692
+ 'notice.memory.captureOptedOut.tail': string;
693
+ 'notice.memory.captureOptoutUnpersisted.lead': string;
694
+ 'notice.memory.captureOptoutUnpersisted.declaration': string;
695
+ 'notice.memory.captureOptoutUnpersisted.flipVerb': string;
696
+ 'notice.memory.captureOptoutUnpersisted.other': string;
697
+ 'notice.peer.subject.message': string;
698
+ 'notice.peer.subject.messageFrom': string;
699
+ 'notice.peer.subject.notice': string;
700
+ 'notice.peer.subject.noticeFrom': string;
701
+ 'notice.peer.subject.held': string;
702
+ 'notice.peer.subject.heldFrom': string;
703
+ 'notice.peer.inbound.refused': string;
704
+ 'notice.peer.inbound.admissionRefused': string;
705
+ 'notice.peer.inbound.held': string;
706
+ 'notice.peer.inbound.noticeUnrouted': string;
707
+ 'notice.peer.inbound.noticeUserOnly': string;
708
+ 'notice.peer.inbound.resupplyExhausted': string;
709
+ 'notice.peer.inbound.other': string;
710
+ 'notice.peer.inbound.cause': string;
711
+ 'notice.peer.held.deliveredApproved': string;
712
+ 'notice.peer.held.deliveredRejudged': string;
713
+ 'notice.peer.held.droppedRejudged': string;
714
+ 'notice.peer.held.droppedInjectFailed': string;
715
+ 'notice.peer.held.evicted': string;
716
+ 'notice.peer.held.expiredDeadline': string;
717
+ 'notice.peer.held.expiredCancelled': string;
718
+ 'notice.peer.held.expiredShutdown': string;
719
+ 'notice.peer.held.denied': string;
720
+ 'notice.peer.held.refused': string;
721
+ 'notice.peer.held.retiredSuperseded': string;
722
+ 'notice.peer.held.decidedElsewhere': string;
723
+ 'notice.peer.held.retiredOther': string;
724
+ 'notice.peer.held.other': string;
725
+ 'notice.peer.idle.recorded': string;
726
+ 'notice.peer.idle.refreshed': string;
727
+ 'notice.peer.idle.full': string;
728
+ 'notice.peer.idle.refused': string;
729
+ 'notice.peer.idle.other': string;
730
+ 'notice.peer.idle.waiting': string;
731
+ 'notice.classifier.denialLimit.consecutive': string;
732
+ 'notice.classifier.denialLimit.total': string;
733
+ 'notice.classifier.denialLimit.other': string;
734
+ 'notice.classifier.denialLimit.tool': string;
735
+ 'notice.classifier.denialLimit.tail': string;
736
+ 'notice.task.lateApproval': string;
737
+ 'notice.task.haltUnconsumed': string;
738
+ 'notice.steering.parkedInputBlocked': string;
656
739
  'rules.refusal.sentence.one': string;
657
740
  'rules.refusal.sentence.other': string;
658
741
  'rules.refusal.item': string;
@@ -1017,6 +1100,14 @@ declare const EN: {
1017
1100
  'notice.wireRefusal.autonomyLane': string;
1018
1101
  'notice.wireRefusal.sessionArchiveStamped': string;
1019
1102
  'notice.wireRefusal.sessionArchiveStamped.fork': string;
1103
+ 'notice.wireRefusal.envCredential': string;
1104
+ 'notice.wireRefusal.envCredential.folded': string;
1105
+ 'notice.wireRefusal.envCredential.names': string;
1106
+ 'notice.wireRefusal.envCredential.remedy': string;
1107
+ 'notice.wireRefusal.sessionIdRetired': string;
1108
+ 'notice.wireRefusal.sessionIdRetired.folded': string;
1109
+ 'notice.wireRefusal.runConcurrencyCap.head': string;
1110
+ 'notice.wireRefusal.runConcurrencyCap.unknownWait': string;
1020
1111
  'notice.wireRefusal.unsupportedRule': string;
1021
1112
  'notice.wireRefusal.unsupportedRule.other': string;
1022
1113
  'notice.wireRefusal.unsupportedRule.stored': string;
@@ -1169,6 +1260,83 @@ declare const EN: {
1169
1260
  'approval.planReview.decision.gateUntrusted': string;
1170
1261
  'approval.planReview.option.askAgain.label': string;
1171
1262
  'approval.planReview.option.askAgain.description': string;
1263
+ 'localEngine.behind.cliUpdate': string;
1264
+ 'localEngine.behind.appUpdate': string;
1265
+ 'localEngine.versionUnknown': string;
1266
+ 'localEngine.legacyBelowFloor': string;
1267
+ 'localEngine.card.title.version': string;
1268
+ 'localEngine.card.title.config': string;
1269
+ 'localEngine.card.title.credential': string;
1270
+ 'localEngine.card.title.modelDefault': string;
1271
+ 'localEngine.card.title.user': string;
1272
+ 'localEngine.card.title.unresponsive': string;
1273
+ 'localEngine.card.versions': string;
1274
+ 'localEngine.card.others.one': string;
1275
+ 'localEngine.card.others.other': string;
1276
+ 'localEngine.card.others.unknown': string;
1277
+ 'localEngine.card.inflight.one': string;
1278
+ 'localEngine.card.inflight.other': string;
1279
+ 'localEngine.card.inflight.unknown': string;
1280
+ 'localEngine.card.background.one': string;
1281
+ 'localEngine.card.background.other': string;
1282
+ 'localEngine.card.background.unknown': string;
1283
+ 'localEngine.card.overlap': string;
1284
+ 'localEngine.card.selfUnknown': string;
1285
+ 'localEngine.card.parked': string;
1286
+ 'localEngine.card.force': string;
1287
+ 'localEngine.card.wait': string;
1288
+ 'localEngine.exitFate.peers': string;
1289
+ 'localEngine.exitFate.lease': string;
1290
+ 'localEngine.exitFate.unknown': string;
1291
+ 'localEngine.principalOverrideIgnored': string;
1292
+ 'localEngine.principalUnknown': string;
1293
+ 'localEngine.settingsLayer.userSettings': string;
1294
+ 'localEngine.settingsLayer.flagSettings': string;
1295
+ 'localEngine.settingsLayer.policySettings': string;
1296
+ 'localEngine.settingsLayer.unspecified': string;
1297
+ 'localEngine.bootRefusal': string;
1298
+ 'localEngine.firstShare': string;
1299
+ 'localEngine.phase.starting': string;
1300
+ 'localEngine.phase.dormant': string;
1301
+ 'localEngine.phase.draining': string;
1302
+ 'localEngine.phase.unanswered': string;
1303
+ 'localEngine.phase.unverifiable': string;
1304
+ 'localEngine.phase.pendingBlocked': string;
1305
+ 'localEngine.phase.swappingIdle': string;
1306
+ 'localEngine.phase.swappingForced': string;
1307
+ 'localEngine.waitingPeer': string;
1308
+ 'localEngine.banner.pending': string;
1309
+ 'localEngine.down.lockUnavailable': string;
1310
+ 'localEngine.down.spawnFailed': string;
1311
+ 'localEngine.down.spawnRefused': string;
1312
+ 'localEngine.down.stopFailed': string;
1313
+ 'localEngine.down.crashLoop': string;
1314
+ 'localEngine.down.highWaterUnreadable': string;
1315
+ 'localEngine.crashLoop.retry': string;
1316
+ 'localEngine.crashLoop.stopped': string;
1317
+ 'localEngine.crashLoop.retrying': string;
1318
+ 'localEngine.drainOverdue': string;
1319
+ 'localEngine.engineExited.unexpected': string;
1320
+ 'localEngine.engineExited.crashLoop': string;
1321
+ 'localEngine.engineExited.quiet': string;
1322
+ 'localEngine.cannotVerifyEngine': string;
1323
+ 'localEngine.lockUnavailable': string;
1324
+ 'localEngine.prepareFailed.reason': string;
1325
+ 'localEngine.prepareFailed.timeout': string;
1326
+ 'localEngine.spawnFailed.timeout': string;
1327
+ 'localEngine.lockLost': string;
1328
+ 'localEngine.forcedLine': string;
1329
+ 'localEngine.headless.behind': string;
1330
+ 'localEngine.headless.legacyBelowFloor': string;
1331
+ 'localEngine.headless.unresponsive': string;
1332
+ 'localEngine.headless.swapPending': string;
1333
+ 'localEngine.headless.drainOverdue': string;
1334
+ 'localEngine.headless.unverifiable': string;
1335
+ 'localEngine.restartOutcome.skippedNoDemand': string;
1336
+ 'localEngine.restartOutcome.pendingCard': string;
1337
+ 'localEngine.restartOutcome.pendingBusy': string;
1338
+ 'localEngine.restartOutcome.failedPrepare': string;
1339
+ 'localEngine.restartOutcome.failedDown': string;
1172
1340
  };
1173
1341
  export declare const EN_MESSAGES: Readonly<typeof EN>;
1174
1342
  export type MessageKey = keyof typeof EN;
@@ -124,7 +124,7 @@ const EN = {
124
124
  'session.devices.probeFailedTransport': "Couldn't reach the engine to check for a remote-control lane — try again",
125
125
  'session.devices.probeFailedRefused': 'The engine refused the device-list check — try again',
126
126
  'session.devices.probeFailedUnreadable': "The engine's device list couldn't be read — try again",
127
- 'session.engine.selfNotLocal': "This session runs on the engine this app started on this device, but it was started as a Cloud session. Nothing was changed — check how this session was opened.",
127
+ 'session.engine.selfNotLocal': "This session runs on this device's local engine, but it was started as a Cloud session. Nothing was changed — check how this session was opened.",
128
128
  'session.engine.dispatch.notWired': "This session's engine isn't connected right now, so nothing was sent. Connect to that engine, then try again.",
129
129
  'session.engine.dispatch.scopeMismatch': "This session belongs to an engine in a different space from the one you're signed in to, so nothing was sent. Switch to that space, then try again.",
130
130
  'session.engine.dispatch.scopeUnproven': "Your current sign-in can't be confirmed to reach this session's engine, so nothing was sent. Sign in to that engine's space (or connect to the engine directly), then try again.",
@@ -261,11 +261,14 @@ const EN = {
261
261
  'approval.rowUnresumable.askNotSurfaced': 'the pending row (task {taskId}) cannot be continued by this engine, so it is not surfaced as a card that can be answered: {sentence}',
262
262
  'approval.park.stillParked': '{gate} gate could not be answered: {reason} — the run is still parked on this approval.',
263
263
  'approval.park.refusedNotResumable': '{gate} gate could not be answered: {reason} — this engine cannot resume this approval as things stand; cancel the run if it is still parked.',
264
+ 'approval.park.argsFromModelCall': "the pending approval record has no tool arguments that will run, so the arguments shown are the model's original call from the conversation — if they were changed after that call (for example by a hook), what runs differs from what is shown. Edits are not accepted on this card: the arguments shown are not the ones that will run",
265
+ 'approval.park.questionsFromModelCall': "the pending approval record has no questions to present, so the questions shown are the model's original call from the conversation — if they were changed after that call (for example by a hook), the question the engine is actually asking may differ from what is shown",
264
266
  'approval.policyDeny.denyRule': 'Permission for this tool use was denied by a deny rule in the permission settings. {tail}',
265
267
  'approval.policyDeny.dontAsk': 'Permission for this tool use was denied: this session no longer asks for approval, so a call that would need approval is refused. {tail}',
266
268
  'approval.policyDeny.engineFloor': 'Permission for this tool use was denied by a safeguard on the engine side that permission settings cannot override. {tail}',
267
269
  'approval.policyDeny.tail': 'The action was NOT performed. Do not claim it succeeded, and do not retry it in this session — report the limitation to the user, or suggest an alternative.',
268
270
  'approval.decision.grantChanged': 'The engine refused this approval because the skill grant it was bound to has changed since the card was shown · Nothing was decided and the request is still waiting, but approving it again will be refused the same way · Deny this request so the model can activate the skill again',
271
+ 'approval.decision.answerInvalid': 'The engine rejected the answer itself because it does not fit the question that was asked · Nothing was decided and the question is still waiting · Correct the answer and send it again',
269
272
  'approval.decision.settledElsewhereContrary.deniedFirst': 'This request was already answered elsewhere and denied, so your approval did not take effect.',
270
273
  'approval.decision.settledElsewhereContrary.approvedFirst': 'This request was already answered elsewhere and approved, so your denial did not take effect.',
271
274
  'approval.decision.unconfirmedAfterRetry': "It is not known whether your answer took effect: an earlier attempt to send it was not confirmed, and by the time it was sent again the request was no longer waiting · Check the task's current state before acting on it",
@@ -550,6 +553,9 @@ const EN = {
550
553
  'approval.mandate.wayOut.crossBoundaryTaint': "an allow that comes from configuration — a setting that allows everything, or a policy's own answer — is refused for this call, so what you approve or deny here is what settles it",
551
554
  'approval.mandate.unknownWord': 'the reason reported for this confirmation is not one this client recognises, so it shows no reason',
552
555
  'approval.card.payloadUnreadable': 'This client cannot read the format of this approval card, so only its basic facts are shown — decide from those, or deny it if you are not sure what it will do.',
556
+ 'approval.card.payloadUnreadable.versionUnknown': 'This client does not recognise the format version of this approval request, so only its essential facts are shown — decide from those, or deny it if you are not sure what it will do.',
557
+ 'approval.card.payloadUnreadable.fieldsMalformed': 'This approval request uses a format version this client knows, but some of its fields are malformed and could not be read, so only its essential facts are shown — decide from those, or deny it if you are not sure what it will do.',
558
+ 'approval.card.payloadUnreadable.partUnknown': 'This client cannot read one part of this approval request, so only its essential facts are shown — decide from those, or deny it if you are not sure what it will do.',
553
559
  'approval.card.more.one': '1 more reason for this card is not shown.',
554
560
  'approval.card.more.other': '{count} more reasons for this card are not shown.',
555
561
  'approval.card.denialLimit.plain': 'auto-deny limit reached — auto mode denied enough calls on its own that the engine now wants a real human decision; {consecutive} consecutive / {total} total automatic denials so far; the limit that tripped: {limit}',
@@ -653,6 +659,83 @@ const EN = {
653
659
  'notice.userInputUndrained.approvalFeedback.other': '{count} notes you wrote when approving a tool call never reached the model and will not be delivered. Send them again if you still need them.',
654
660
  'notice.askUnresolvable.remedy.approver': 'Way out: connect an approver who can answer requests like this one, or make the connected approver reachable, then try again',
655
661
  'notice.askUnresolvable.remedy.permissionMode': 'Another way out, if this deployment allows it: the {mode} permission mode lets requests like this one through without anyone answering them, and each request let through this way is marked on the tool call it applied to',
662
+ 'notice.durableGate.lead': 'Durable approval is not available in this session — {mandate}, but {cause}, so approval requests cannot be saved to be answered later.',
663
+ 'notice.durableGate.mandate.forceDurableGate': 'this account requires it',
664
+ 'notice.durableGate.mandate.durableApproval': 'this task asked for it',
665
+ 'notice.durableGate.mandate.other': 'it was required',
666
+ 'notice.durableGate.cause.noDeploymentStore': 'no checkpoint store is set up on this deployment',
667
+ 'notice.durableGate.cause.taskStoreDisabled': 'this task turned its checkpoint store off',
668
+ 'notice.durableGate.cause.other': 'no checkpoint store is available for it',
669
+ 'notice.durableGate.approver.live': 'Permission requests are answered live in this session instead.',
670
+ 'notice.durableGate.approver.noneAttached': "No live approver is attached to this session, so permission requests follow the engine's configured posture instead.",
671
+ 'notice.durableGate.approver.unreported': "Permission requests follow the engine's configured posture instead.",
672
+ 'notice.durableGate.question.refused': 'Questions the assistant would ask you cannot be shown here, so they are refused.',
673
+ 'notice.durableGate.exit.noDeploymentStore': 'To use durable approval, the deployment needs a checkpoint store.',
674
+ 'notice.durableGate.exit.taskStoreDisabled': 'To use durable approval, run the task with its checkpoint store turned on.',
675
+ 'notice.durableGate.exit.other': 'To use durable approval, a checkpoint store has to be available.',
676
+ 'notice.durableGate.exitAlt.forceDurableGate': 'Or ask whoever runs the deployment to drop the requirement for this account.',
677
+ 'notice.durableGate.exitAlt.durableApproval': 'Or run the task where a live approver is attached.',
678
+ 'notice.memory.sessionPolluted': 'This session took in content from an outside source ({reason}). From here on, memory it writes may be held back for review instead of being saved to the long-term library; what each batch actually held back is announced separately.',
679
+ 'notice.memory.harvestQuarantined.counts': 'Memory harvest held back entry files written or changed in this session instead of adding them to the long-term library — withheld {count}, moved aside for review {moved}, flagged for follow-up {escalated}; the last two counts can overlap.',
680
+ 'notice.memory.harvestQuarantined.indexOnly': "Memory harvest rolled this session's changes to the memory index back to where they started; no entry files were withheld.",
681
+ 'notice.memory.harvestQuarantined.indexAlso': 'The memory index was also rolled back.',
682
+ 'notice.memory.delegationWaived.lead': "A delegation would have marked this session's memory as polluted, but it was not marked: this deployment does not mark on a delegation's static tool check alone, so that check was waived.",
683
+ 'notice.memory.delegationWaived.agentType': 'Agent type: {agentType}.',
684
+ 'notice.memory.delegationWaived.reason': 'What the check found: "{reason}".',
685
+ 'notice.memory.delegationWaived.tail': 'Other pollution findings, and any memory capture opt-out on this session, are not affected.',
686
+ 'notice.memory.captureOptedOut.flipVerb': 'Memory capture is off for this session from this point on — anything it produced before the switch was still subject to the usual capture.',
687
+ 'notice.memory.captureOptedOut.standingRecord': 'Memory capture stays off for this session — a standing opt-out record from an earlier leg governs it, and a later leg cannot turn it back on.',
688
+ 'notice.memory.captureOptedOut.delegationFloor': 'Memory capture is off for this delegated session — the opt-out of the session that started it is a floor a child cannot loosen (this session did not declare it).',
689
+ 'notice.memory.captureOptedOut.forkOrigin': "Memory capture is off for this forked session — it continues an opted-out session, and that session's one-way opt-out governs the copy (this session did not declare it).",
690
+ 'notice.memory.captureOptedOut.declaration': 'Memory capture is off for this session, as declared when it was submitted.',
691
+ 'notice.memory.captureOptedOut.other': 'Memory capture is off for this session.',
692
+ 'notice.memory.captureOptedOut.tail': 'Nothing it produces is committed to the long-term memory store. Entries committed before the opt-out stay in the library and stay retrievable; deleting them is a separate action, never a side effect of this switch. The switch is one-way: start a new session to capture again.',
693
+ 'notice.memory.captureOptoutUnpersisted.lead': 'The memory capture opt-out for this session could not be durably recorded (the control-plane write failed).',
694
+ 'notice.memory.captureOptoutUnpersisted.declaration': 'So the session was refused rather than run under a switch that would silently stop holding at the next resume: nothing ran and nothing was captured. Repair the control plane (or wire a capture record store), then start a new session.',
695
+ 'notice.memory.captureOptoutUnpersisted.flipVerb': 'So only the request was rejected: this run keeps going and its memory capture is still on. Nothing was recorded, so an identical retry fails the same way; stop the run if this session must not be captured.',
696
+ 'notice.memory.captureOptoutUnpersisted.other': "So it was not honored. This notice alone does not say whether anything stopped — read the run's own outcome for that. Nothing was recorded, so an identical retry fails the same way.",
697
+ 'notice.peer.subject.message': 'An incoming cross-session message #{seq}',
698
+ 'notice.peer.subject.messageFrom': 'An incoming cross-session message #{seq} from {from}',
699
+ 'notice.peer.subject.notice': 'An incoming cross-session notice #{seq}',
700
+ 'notice.peer.subject.noticeFrom': 'An incoming cross-session notice #{seq} from {from}',
701
+ 'notice.peer.subject.held': 'Held cross-session message #{seq}',
702
+ 'notice.peer.subject.heldFrom': 'Held cross-session message #{seq} from {from}',
703
+ 'notice.peer.inbound.refused': "{subject} was refused by this session's policy and was never delivered.",
704
+ 'notice.peer.inbound.admissionRefused': '{subject} was refused at admission.',
705
+ 'notice.peer.inbound.held': '{subject} is held for the next round — it has not been delivered yet, and it has not been rejected.',
706
+ 'notice.peer.inbound.noticeUnrouted': '{subject} had nowhere to be delivered.',
707
+ 'notice.peer.inbound.noticeUserOnly': '{subject} was shown to you only — the model did not read it.',
708
+ 'notice.peer.inbound.resupplyExhausted': "{subject} may never have been read by the model: context compaction dropped it from the model's context twice, and the sender was not told.",
709
+ 'notice.peer.inbound.other': '{subject} was reported with a disposition this version does not recognize.',
710
+ 'notice.peer.inbound.cause': 'Cause: {cause}.',
711
+ 'notice.peer.held.deliveredApproved': '{subject} was approved and delivered.',
712
+ 'notice.peer.held.deliveredRejudged': '{subject} was re-judged and delivered, because the policy now accepts it.',
713
+ 'notice.peer.held.droppedRejudged': '{subject} was approved, but the policy now refuses it, so it was dropped.',
714
+ 'notice.peer.held.droppedInjectFailed': '{subject} was approved, but the injection lane refused it when it was released, so it was dropped.',
715
+ 'notice.peer.held.evicted': '{subject} was expired to make room: the held queue is full ({heldCount} still held).',
716
+ 'notice.peer.held.expiredDeadline': '{subject} expired at the review deadline and was not delivered.',
717
+ 'notice.peer.held.expiredCancelled': '{subject} was cancelled and not delivered.',
718
+ 'notice.peer.held.expiredShutdown': '{subject} was expired at shutdown and not delivered.',
719
+ 'notice.peer.held.denied': '{subject} was denied and not delivered.',
720
+ 'notice.peer.held.refused': '{subject} was refused by policy and not delivered.',
721
+ 'notice.peer.held.retiredSuperseded': '{subject} left the held queue without a decision here: another consumer already settled it.',
722
+ 'notice.peer.held.decidedElsewhere': '{subject} was decided by another consumer of the box first.',
723
+ 'notice.peer.held.retiredOther': "{subject} left this session's held queue without a decision here.",
724
+ 'notice.peer.held.other': "{subject} left this session's held queue (this version does not recognize the outcome).",
725
+ 'notice.peer.idle.recorded': 'The session {from} asked to be told when this session is next idle; the request was recorded.',
726
+ 'notice.peer.idle.refreshed': 'The session {from} asked again to be told when this session is next idle; its earlier request was refreshed.',
727
+ 'notice.peer.idle.full': "The session {from} asked to be told when this session is next idle, but this session's subscription list is full, so the request was declined.",
728
+ 'notice.peer.idle.refused': 'The session {from} asked to be told when this session is next idle, but this session refuses messages from other sessions, so the request was declined.',
729
+ 'notice.peer.idle.other': 'The session {from} asked to be told when this session is next idle.',
730
+ 'notice.peer.idle.waiting': 'Subscribers now waiting on this session: {live}.',
731
+ 'notice.classifier.denialLimit.consecutive': "The run was stopped: the permission classifier blocked {count} tool calls in a row and hit its denial limit, and nobody judged the follow-up request for a person's decision.",
732
+ 'notice.classifier.denialLimit.total': "The run was stopped: the permission classifier blocked {count} tool calls in this run and hit its denial limit, and nobody judged the follow-up request for a person's decision.",
733
+ 'notice.classifier.denialLimit.other': "The run was stopped: the permission classifier hit its denial limit, and nobody judged the follow-up request for a person's decision.",
734
+ 'notice.classifier.denialLimit.tool': 'Latest blocked action: {tool}.',
735
+ 'notice.classifier.denialLimit.tail': 'Review the transcript, then change the step that keeps getting blocked or make an approver available, and run it again.',
736
+ 'notice.task.lateApproval': 'Your approval for "{tool}" was not consumed: a run or turn interrupt released that request before your decision landed, so the tool did not run and nothing was settled by your answer. This is a timing fact, not an error; ask again if that step is still needed.',
737
+ 'notice.task.haltUnconsumed': "Your stop request did not cut anything: the run was already ending for its own reason when it arrived, so nothing was stopped by it and the run's own ending stands.",
738
+ 'notice.steering.parkedInputBlocked': "An instruction you sent while this run was paused was blocked when the run resumed: this deployment's input screen withheld it, so it never reached the model. Send it again if it still applies.",
656
739
  'rules.refusal.sentence.one': 'permissions: 1 rule will not be enforced — {list}',
657
740
  'rules.refusal.sentence.other': 'permissions: {count} rules will not be enforced — {list}',
658
741
  'rules.refusal.item': '{rule} ({reason})',
@@ -1017,6 +1100,14 @@ const EN = {
1017
1100
  'notice.wireRefusal.autonomyLane': 'The engine did not start this leader run: this deployment runs in plan-only autonomy, and a leader run has no way to have its plan reviewed, so nothing was started · Submit the work as a regular run instead, or ask whoever operates the engine to change its autonomy setting',
1018
1101
  'notice.wireRefusal.sessionArchiveStamped': "This session's stored archive still carries an owner stamp written by an earlier server version, so it cannot be forked or have its log replaced; nothing was written · Delete the session and push it again",
1019
1102
  'notice.wireRefusal.sessionArchiveStamped.fork': "This session's stored archive still carries an owner stamp written by an earlier server version, so it cannot be forked or have its log replaced; nothing was written · This conversation keeps running on its own history; to fork it, delete the session and push it again",
1103
+ 'notice.wireRefusal.envCredential': 'The engine did not accept this request: its settings.env carries credentials, and the engine does not take credentials from a request',
1104
+ 'notice.wireRefusal.envCredential.folded': 'This parked work cannot continue: the request saved for it carries credentials in settings.env, and the engine does not take credentials from a request; nothing was resumed',
1105
+ 'notice.wireRefusal.envCredential.names': 'Entries: {names}',
1106
+ 'notice.wireRefusal.envCredential.remedy': "Put the credentials in the engine's own process environment, then send the request again without those entries",
1107
+ 'notice.wireRefusal.sessionIdRetired': 'The engine did not accept this request: its session id belonged to a session that was deleted on this server, and work under that id now runs only for the session\'s earlier owner · Use a new session',
1108
+ 'notice.wireRefusal.sessionIdRetired.folded': 'This parked work cannot continue: its session id belonged to a session that was deleted on this server, and work under that id now runs only for the session\'s earlier owner; nothing was resumed and the card is still waiting',
1109
+ 'notice.wireRefusal.runConcurrencyCap.head': 'This deployment already has as many runs in flight as it allows, so the engine did not accept this request · Nothing is wrong with the request itself',
1110
+ 'notice.wireRefusal.runConcurrencyCap.unknownWait': 'Send it again once one of the runs in flight has finished',
1020
1111
  'notice.wireRefusal.unsupportedRule': 'The engine refused this request, so none of it took effect: a rule in it is a form the engine does not support — {detail} · Remove or rewrite that rule (to stop a tool altogether, write its name alone), then send it again',
1021
1112
  'notice.wireRefusal.unsupportedRule.other': 'The engine refused this request, so none of it took effect: {count} rules in it are forms the engine does not support — {detail} · Remove or rewrite those rules (to stop a tool altogether, write its name alone), then send it again',
1022
1113
  'notice.wireRefusal.unsupportedRule.stored': 'The engine refused to continue this work: the request stored for it has a rule in it that is a form the engine does not support — {detail} · It cannot continue as stored. Remove or rewrite that rule (to stop a tool altogether, write its name alone), cancel the work if it is still suspended, then submit it again as a new request',
@@ -1169,5 +1260,82 @@ const EN = {
1169
1260
  'approval.planReview.decision.gateUntrusted': "The engine could not recognise this review's gate id (the server's record of it looks damaged; an operator should check it). The card still shows the plan that is waiting: answering again sends the answer without the gate id, and that answer is not protected against the plan having changed.",
1170
1261
  'approval.planReview.option.askAgain.label': 'No, ask for the plan to be presented again',
1171
1262
  'approval.planReview.option.askAgain.description': 'Do not approve; ask the model to present the plan again',
1263
+ 'localEngine.behind.cliUpdate': 'The local engine (version {running}) is newer than this Sema ({own}), so this Sema cannot start new work on it. Run `sema update`, then reopen this session.',
1264
+ 'localEngine.behind.appUpdate': 'The local engine (version {running}) is newer than this Sema ({own}), so this Sema cannot start new work on it. Update this app to version {running} or later, then restart it.',
1265
+ 'localEngine.versionUnknown': "The local engine's version could not be read, so it will not be replaced automatically.",
1266
+ 'localEngine.legacyBelowFloor': 'The local engine (version {running}) is older than the oldest version this Sema supports ({floor}); it has to be replaced before this Sema can use it.',
1267
+ 'localEngine.card.title.version': 'Replace the local engine with the newer version?',
1268
+ 'localEngine.card.title.config': 'Restart the local engine to apply the changed configuration?',
1269
+ 'localEngine.card.title.credential': 'Restart the local engine to use the changed credentials?',
1270
+ 'localEngine.card.title.modelDefault': 'Restart the local engine to apply the changed default model?',
1271
+ 'localEngine.card.title.user': 'Restart the local engine now?',
1272
+ 'localEngine.card.title.unresponsive': 'The local engine is not responding. Restart it?',
1273
+ 'localEngine.card.versions': 'Running engine: version {running}. This Sema: version {own}.',
1274
+ 'localEngine.card.others.one': '{total} other Sema client is using the engine ({midTurn} in the middle of a turn).',
1275
+ 'localEngine.card.others.other': '{total} other Sema clients are using the engine ({midTurn} in the middle of a turn).',
1276
+ 'localEngine.card.others.unknown': 'Other Sema clients using the engine: could not be read.',
1277
+ 'localEngine.card.inflight.one': '{count} run is in progress on the engine.',
1278
+ 'localEngine.card.inflight.other': '{count} runs are in progress on the engine.',
1279
+ 'localEngine.card.inflight.unknown': 'Runs in progress on the engine: could not be read.',
1280
+ 'localEngine.card.background.one': '{count} background task or workflow is running.',
1281
+ 'localEngine.card.background.other': '{count} background tasks or workflows are running.',
1282
+ 'localEngine.card.background.unknown': 'Background tasks and workflows: could not be read.',
1283
+ 'localEngine.card.overlap': 'A run that is running in the background may be counted in both lines above.',
1284
+ 'localEngine.card.selfUnknown': 'What this Sema is doing right now could not be read.',
1285
+ 'localEngine.card.parked': "If you go ahead now, work in progress ends by being parked or interrupted. Parked work continues under the engine's durable resume, the same guarantee as when the engine stops on its own; until it is resumed or cancelled in its session, new messages to that session are refused.",
1286
+ 'localEngine.card.force': 'Go ahead now: work in progress ends within about {seconds} seconds.',
1287
+ 'localEngine.card.wait': 'Not now: the current engine keeps running.',
1288
+ 'localEngine.exitFate.peers': 'The local engine keeps running: other Sema clients are still using it.',
1289
+ 'localEngine.exitFate.lease': 'The local engine keeps running for now and stops by itself once nothing is using it.',
1290
+ 'localEngine.exitFate.unknown': 'The local engine keeps running; whether other Sema clients are still using it could not be read.',
1291
+ 'localEngine.principalOverrideIgnored': 'The principal set in the environment (`SEMA_LIVE_PRINCIPAL`) does not apply to the local engine; Sema uses the one in the env block of your settings, so every Sema app on this computer acts as the same principal. To change it, change it in your settings.',
1292
+ 'localEngine.principalUnknown': 'Sema could not read {layer}, so local sessions are paused: the principal they run as may be set there. Fix that file, then restart Sema.',
1293
+ 'localEngine.settingsLayer.userSettings': 'your settings file',
1294
+ 'localEngine.settingsLayer.flagSettings': 'the settings file given at startup',
1295
+ 'localEngine.settingsLayer.policySettings': 'the managed settings',
1296
+ 'localEngine.settingsLayer.unspecified': 'a settings file',
1297
+ 'localEngine.bootRefusal': 'The local engine refused to start: {reason}',
1298
+ 'localEngine.firstShare': "Sema now shares one local engine with the other Sema apps on this computer. Local sessions from this app's earlier private engine are not shown in the list; their data has been left in place.",
1299
+ 'localEngine.phase.starting': 'Starting the local engine…',
1300
+ 'localEngine.phase.dormant': 'The local engine is not running; it starts when a session needs it.',
1301
+ 'localEngine.phase.draining': 'The local engine is finishing its work before it stops; Sema reconnects when it is back.',
1302
+ 'localEngine.phase.unanswered': "A process holds the local engine's port but is not answering; Sema is waiting for it.",
1303
+ 'localEngine.phase.unverifiable': "A process answers on the local engine's port but its identity cannot be verified, so Sema neither starts a second engine nor stops it.",
1304
+ 'localEngine.phase.pendingBlocked': 'This Sema cannot use the running local engine until it is replaced.',
1305
+ 'localEngine.phase.swappingIdle': 'Replacing the local engine while nothing is using it…',
1306
+ 'localEngine.phase.swappingForced': 'Replacing the local engine now; work in progress is being parked or interrupted.',
1307
+ 'localEngine.waitingPeer': 'Another Sema is starting or replacing the local engine; waiting for it.',
1308
+ 'localEngine.banner.pending': 'A local engine restart is pending; it happens once nothing is using the engine.',
1309
+ 'localEngine.down.lockUnavailable': 'Another Sema holds the local engine start lock and did not finish in time; try again.',
1310
+ 'localEngine.down.spawnFailed': 'The local engine did not start.',
1311
+ 'localEngine.down.spawnRefused': 'The local engine was not started: the preparation step did not pass.',
1312
+ 'localEngine.down.stopFailed': 'The old local engine did not stop in time, so it was not replaced.',
1313
+ 'localEngine.down.crashLoop': 'The local engine keeps stopping unexpectedly, so automatic restarts are paused.',
1314
+ 'localEngine.down.highWaterUnreadable': 'The record of the newest engine version used on this machine cannot be read, so the local engine is not started; check the engine data directory.',
1315
+ 'localEngine.crashLoop.retry': 'The local engine keeps stopping unexpectedly; Sema tries again in about {seconds} seconds.',
1316
+ 'localEngine.crashLoop.stopped': 'The local engine keeps stopping unexpectedly; Sema has stopped retrying on its own. Restart it manually.',
1317
+ 'localEngine.crashLoop.retrying': 'Trying to start the local engine again.',
1318
+ 'localEngine.drainOverdue': 'The local engine is taking longer than expected to finish its work.',
1319
+ 'localEngine.engineExited.unexpected': 'The local engine stopped unexpectedly; Sema starts it again when it is needed.',
1320
+ 'localEngine.engineExited.crashLoop': 'The local engine stopped unexpectedly again; automatic restarts are paused.',
1321
+ 'localEngine.engineExited.quiet': 'The local engine exited; Sema starts it again when it is needed.',
1322
+ 'localEngine.cannotVerifyEngine': 'The running local engine cannot be verified, so Sema will not stop it.',
1323
+ 'localEngine.lockUnavailable': 'Another Sema holds the local engine start lock; the current engine keeps running.',
1324
+ 'localEngine.prepareFailed.reason': 'The local engine was not replaced; the current engine keeps running. Reason: {reason}',
1325
+ 'localEngine.prepareFailed.timeout': 'The local engine was not replaced because preparing the replacement took too long; the current engine keeps running.',
1326
+ 'localEngine.spawnFailed.timeout': 'The new local engine did not answer in time.',
1327
+ 'localEngine.lockLost': 'Sema lost the local engine start lock; it sends no further signals and checks again.',
1328
+ 'localEngine.forcedLine': 'The local engine was replaced now; work that was in progress was parked or interrupted.',
1329
+ 'localEngine.headless.behind': 'The local engine is newer than this Sema; update Sema and run the command again.',
1330
+ 'localEngine.headless.legacyBelowFloor': 'The local engine is older than this Sema supports; open Sema interactively to replace it, then run the command again.',
1331
+ 'localEngine.headless.unresponsive': 'The local engine is not responding; open Sema interactively to restart it, then run the command again.',
1332
+ 'localEngine.headless.swapPending': 'The local engine has to be restarted before this command can run; open Sema interactively to confirm, then run the command again.',
1333
+ 'localEngine.headless.drainOverdue': 'The local engine did not finish stopping in time; run the command again later.',
1334
+ 'localEngine.headless.unverifiable': "A process answers on the local engine's port but its identity cannot be verified; the command stops here.",
1335
+ 'localEngine.restartOutcome.skippedNoDemand': 'The change takes effect the next time the local engine starts.',
1336
+ 'localEngine.restartOutcome.pendingCard': 'Other sessions are using the local engine; confirm the restart on the card.',
1337
+ 'localEngine.restartOutcome.pendingBusy': 'Other sessions are using the local engine; it restarts once nothing is using it.',
1338
+ 'localEngine.restartOutcome.failedPrepare': 'The local engine was not restarted; the current engine keeps running.',
1339
+ 'localEngine.restartOutcome.failedDown': 'The local engine could not be restarted: {detail}',
1172
1340
  };
1173
1341
  export const EN_MESSAGES = Object.freeze(EN);