@sema-agent/server 5.10.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.
- package/dist/runs.js +5 -2
- package/package.json +1 -1
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(() =>
|
|
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(() =>
|
|
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.
|
|
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",
|