@runuai/host 0.9.92 → 0.9.93
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/lib/machine-provider-aws.ts +14 -4
- package/package.json +1 -1
|
@@ -101,11 +101,18 @@ export function awsMachineName(taskId: string): string {
|
|
|
101
101
|
return `uai-machine-${taskId.toLowerCase()}`;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
/** Smallest Graviton type satisfying both dimensions.
|
|
104
|
+
/** Smallest Graviton type satisfying both dimensions.
|
|
105
|
+
*
|
|
106
|
+
* FLOORS AT 16GiB (owner decision 2026-08-31, priced at $0.25/machine-up
|
|
107
|
+
* hour): an 8GiB machine thrashed to death twice in one day under the
|
|
108
|
+
* ordinary heavy shape — a 5-agent crew + Turbopack dev server + editor +
|
|
109
|
+
* VNC browser — and a memory wall reads as "the product is broken", which
|
|
110
|
+
* costs more than the larger instance. m7g (sustained) over t4g (burstable)
|
|
111
|
+
* deliberately: compile bursts on a drained CPU-credit balance are the same
|
|
112
|
+
* wall wearing a different mask. The floor is AWS-only — local VM sizing
|
|
113
|
+
* has its own constraints and keeps the spec-driven path. */
|
|
105
114
|
export function defaultInstanceType(spec: MachineSpec): string {
|
|
106
115
|
const ladder: Array<[string, number, number]> = [
|
|
107
|
-
["m7g.medium", 1, 4096],
|
|
108
|
-
["m7g.large", 2, 8192],
|
|
109
116
|
["m7g.xlarge", 4, 16384],
|
|
110
117
|
["m7g.2xlarge", 8, 32768],
|
|
111
118
|
["m7g.4xlarge", 16, 65536],
|
|
@@ -142,7 +149,10 @@ export function awsUserData(authorizedPublicKey: string): string {
|
|
|
142
149
|
// real machine task; the HOSTS got their swapfile in 0.9.85, the
|
|
143
150
|
// machines never did). Best-effort: a machine without fallocate still
|
|
144
151
|
// boots.
|
|
145
|
-
|
|
152
|
+
// 16G (owner decision 2026-08-31): the graceful-degradation floor has to
|
|
153
|
+
// absorb the whole heavy shape, not soften its first half — 4G filled
|
|
154
|
+
// and the wall moved instead of vanishing. Disk is already paid for.
|
|
155
|
+
"(fallocate -l 16G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo '/swapfile none swap sw 0 0' >> /etc/fstab) || true",
|
|
146
156
|
// The task OWNS its machine (ADR-121 — per-customer kernel isolation is
|
|
147
157
|
// the whole point); denying sudo just breaks project setups that
|
|
148
158
|
// container tasks handle fine (live 2026-08-31: a Hightop machine task
|