@nylorun/runtime 0.51.0-beta → 0.51.1-beta

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.51.1-beta
4
+
5
+ ### Patch Changes
6
+
7
+ - 8451138: Pods on Agent Substrate (preview): a drain is recorded as soon as the moved pod's engine connects again. After suspend before drain, the restored engine redials with its host token (no join), and nothing asked the Runtime to reconcile the pod, so `agent.suspended` with reason `drain` waited for the next turn or idle timer (E13 on kind: not within two minutes). A pod engine's connection now asks for its sandbox's reconcile.
8
+
3
9
  ## 0.51.0-beta
4
10
 
5
11
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.2.0",
3
3
  "info": {
4
4
  "title": "Nylorun Management API",
5
- "version": "0.51.0-beta",
5
+ "version": "0.51.1-beta",
6
6
  "x-nylorun-protocol": {
7
7
  "min": 16,
8
8
  "max": 18,
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.2.0",
3
3
  "info": {
4
4
  "title": "Nylorun Runtime API",
5
- "version": "0.51.0-beta",
5
+ "version": "0.51.1-beta",
6
6
  "x-nylorun-protocol": {
7
7
  "min": 16,
8
8
  "max": 18,
@@ -392,7 +392,20 @@ export class TenantRuntime {
392
392
  return this.ctx.onSweep(hook);
393
393
  }
394
394
  attachHarness(channel, peer) {
395
- return this.ctx.harness.attach(channel, peer);
395
+ const detach = this.ctx.harness.attach(channel, peer);
396
+ // A pod's engine that (re)connects asks for its sandbox's reconcile: after a drain (Agent
397
+ // Substrate's eviction contract) the restored engine redials with its host token and no join,
398
+ // and this is what lets the Runtime see the move (`drainedAt`, `agent.suspended` reason
399
+ // `drain`) at once rather than at the next turn or idle timer.
400
+ const sandboxId = peer.host?.sandboxId;
401
+ if (sandboxId !== undefined)
402
+ void this.ctx.store
403
+ .tx((t) => t.signalSandbox(sandboxId, { kind: "reconcile" }))
404
+ .catch((error) => this.ctx.config.logger.warn("sandbox reconcile after connect failed", {
405
+ sandboxId,
406
+ error: error instanceof Error ? error.message : String(error),
407
+ }));
408
+ return detach;
396
409
  }
397
410
  harnessStatus() {
398
411
  return harnessStatusOf(this.ctx);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const RUNTIME_VERSION = "0.51.0-beta";
1
+ export declare const RUNTIME_VERSION = "0.51.1-beta";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Kept in step with package.json by runtime/server/scripts/check-package.mjs, which runs in npm run check.
2
2
  // release:prepare also rewrites this when it bumps @nylorun/runtime.
3
- export const RUNTIME_VERSION = "0.51.0-beta";
3
+ export const RUNTIME_VERSION = "0.51.1-beta";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nylorun/runtime",
3
- "version": "0.51.0-beta",
3
+ "version": "0.51.1-beta",
4
4
  "description": "Nylorun Runtime: the agent execution Host on Postgres, Restate and S2, and model providers.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",