@sema-agent/server 5.9.0 → 5.11.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 (2) hide show
  1. package/dist/runs.js +5 -2
  2. package/package.json +2 -2
package/dist/runs.js CHANGED
@@ -365,16 +365,19 @@ promptManifests) {
365
365
  void runStore.heartbeat(taskId, owner).catch(() => undefined);
366
366
  // Cross-replica cancel: the cancel may have landed on another instance, which only set the durable flag.
367
367
  // Poll it here so the OWNING instance aborts its in-flight run (bounded by HEARTBEAT_MS).
368
+ // 鲁棒性批3 A5(2026-08-04,§M 感知链路):poll 失败本身有界(下一拍重试),但此前**零披露**——
369
+ // store 持续故障期间取消/抢占每拍静默落空、run 继续烧预算,运维零信号。修=计数指标(warn 会逐拍
370
+ // 刷屏,counter 是轮询披露的对形);abort 判定逻辑零变化。
368
371
  if (!cancelCtrl.signal.aborted) {
369
372
  void runStore.isCancelRequested(taskId, owner).then((c) => { if (c)
370
- cancelCtrl.abort(); }).catch(() => undefined);
373
+ cancelCtrl.abort(); }).catch(() => { metrics?.inc("run_signal_poll_errors_total", { kind: "cancel" }); });
371
374
  }
372
375
  // Cross-replica preempt (design/80 seam #2): a preempt may have landed on another instance (durable flag
373
376
  // only). Poll it so the OWNING instance raises its preemptSignal → core suspends at the next clean turn
374
377
  // boundary (resumable). Only the stream path wires the signal, so only poll there.
375
378
  if (preemptEligible && !preemptCtrl.signal.aborted) {
376
379
  void runStore.isPreemptRequested(taskId, owner).then((p) => { if (p)
377
- preemptCtrl.abort(); }).catch(() => undefined);
380
+ preemptCtrl.abort(); }).catch(() => { metrics?.inc("run_signal_poll_errors_total", { kind: "preempt" }); });
378
381
  }
379
382
  }, HEARTBEAT_MS);
380
383
  heartbeat.unref?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sema-agent/server",
3
- "version": "5.9.0",
3
+ "version": "5.11.0",
4
4
  "description": "Sema Server — the server/API implementation layer for Sema, wiring core, registry, model providers, and cloud agent execution. Built on @sema-agent/core.",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",
@@ -54,7 +54,7 @@
54
54
  "build:binary:run-local:darwin-arm64": "bun build --compile --target=bun-darwin-arm64 src/run-local.ts --outfile dist/run-local-darwin-arm64"
55
55
  },
56
56
  "dependencies": {
57
- "@sema-agent/core": "^5.5.0",
57
+ "@sema-agent/core": "^5.6.0",
58
58
  "@sema-agent/registry-core": "^0.14.0",
59
59
  "e2b": "^2.28.0",
60
60
  "libsodium-wrappers": "^0.8.4",