@hadoku/host-wire 0.1.153 → 0.1.155

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/wire.d.ts CHANGED
@@ -40,12 +40,27 @@ export declare const SKEW_MS = 30000;
40
40
  /** The agent heartbeats this often; the coordinator pings back as often. */
41
41
  export declare const HEARTBEAT_MS = 2000;
42
42
  /**
43
- * The fencing window: an agent that has heard nothing from the coordinator for
44
- * this long kills every JVM it runs, and a coordinator that has heard no
45
- * heartbeat for this long fails the claw over. Five missed heartbeats, from the
46
- * 48 h link probe (`docs/planning/forge-hosting-plan.md` §4.1).
43
+ * The failover window: a coordinator that has heard no heartbeat from one claw for this long,
44
+ * while the others are heard, fails that claw over. Five missed heartbeats, from the 48 h link
45
+ * probe (`docs/planning/forge-hosting-plan.md` §4.1).
47
46
  */
48
47
  export declare const FENCE_MS = 10000;
48
+ /** Two missed heartbeats: every other claw this quiet as well puts a claw's silence on the coordinator's side. */
49
+ export declare const SHARED_SILENT_MS: number;
50
+ /**
51
+ * How long the coordinator waits out a silence every claw shares (its host's network stalled:
52
+ * 2026-11-27 04:09Z, 05:32Z, 06:39Z, 2026-11-28 09:33Z) before it fails them over as usual. The
53
+ * JVMs are still there when it ends, so the matches go on where they were, with nothing restored.
54
+ */
55
+ export declare const SHARED_HOLD_MS = 75000;
56
+ /**
57
+ * The agent's fencing window: an agent that has heard nothing from the coordinator for this long
58
+ * kills every JVM it runs. Longer than the coordinator's shared hold plus a failover window, so
59
+ * a coordinator that stalled (its own loop, 3–17 s on 2026-11-27) or lost its network finds
60
+ * every match still running when it is back. A claw that was failed over meanwhile runs a copy
61
+ * nobody hears: the coordinator drops its lines, and kills it when the claw is connected again.
62
+ */
63
+ export declare const AGENT_FENCE_MS = 90000;
49
64
  /**
50
65
  * The longest a coordinator going down may ask an agent to hold its JVMs past the fencing window
51
66
  * (`{op:'hold'}`). A deploy's restart re-attaches in seconds; the cap keeps a coordinator that
package/dist/wire.js CHANGED
@@ -40,12 +40,27 @@ export const SKEW_MS = 30_000;
40
40
  /** The agent heartbeats this often; the coordinator pings back as often. */
41
41
  export const HEARTBEAT_MS = 2000;
42
42
  /**
43
- * The fencing window: an agent that has heard nothing from the coordinator for
44
- * this long kills every JVM it runs, and a coordinator that has heard no
45
- * heartbeat for this long fails the claw over. Five missed heartbeats, from the
46
- * 48 h link probe (`docs/planning/forge-hosting-plan.md` §4.1).
43
+ * The failover window: a coordinator that has heard no heartbeat from one claw for this long,
44
+ * while the others are heard, fails that claw over. Five missed heartbeats, from the 48 h link
45
+ * probe (`docs/planning/forge-hosting-plan.md` §4.1).
47
46
  */
48
47
  export const FENCE_MS = 10_000;
48
+ /** Two missed heartbeats: every other claw this quiet as well puts a claw's silence on the coordinator's side. */
49
+ export const SHARED_SILENT_MS = 2 * HEARTBEAT_MS;
50
+ /**
51
+ * How long the coordinator waits out a silence every claw shares (its host's network stalled:
52
+ * 2026-11-27 04:09Z, 05:32Z, 06:39Z, 2026-11-28 09:33Z) before it fails them over as usual. The
53
+ * JVMs are still there when it ends, so the matches go on where they were, with nothing restored.
54
+ */
55
+ export const SHARED_HOLD_MS = 75_000;
56
+ /**
57
+ * The agent's fencing window: an agent that has heard nothing from the coordinator for this long
58
+ * kills every JVM it runs. Longer than the coordinator's shared hold plus a failover window, so
59
+ * a coordinator that stalled (its own loop, 3–17 s on 2026-11-27) or lost its network finds
60
+ * every match still running when it is back. A claw that was failed over meanwhile runs a copy
61
+ * nobody hears: the coordinator drops its lines, and kills it when the claw is connected again.
62
+ */
63
+ export const AGENT_FENCE_MS = 90_000;
49
64
  /**
50
65
  * The longest a coordinator going down may ask an agent to hold its JVMs past the fencing window
51
66
  * (`{op:'hold'}`). A deploy's restart re-attaches in seconds; the cap keeps a coordinator that
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/host-wire",
3
- "version": "0.1.153",
4
- "gitHead": "78873ee40c41afc09aedf20a3928d1883dc9a476",
3
+ "version": "0.1.155",
4
+ "gitHead": "1a2758d078da3deba59d105b7ee780fda3d8231e",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The signed wire between a match host and the agent on a hosting claw: request signing, the relay's frames, the messages each side sends, artifact hashes and slice sizing. Knows no game. MIT; imports only node builtins, because the agent bundles it for node 22.",