@wenathlan/saddle 2.1.6 → 2.1.8

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 (300) hide show
  1. package/Dockerfile +170 -66
  2. package/LICENSE +0 -0
  3. package/README.md +73 -58
  4. package/alternatives.ts +0 -0
  5. package/biome.jsonc +134 -0
  6. package/boards.json +2 -2
  7. package/browser.ts +482 -0
  8. package/cli.ts +274 -0
  9. package/compute.ts +4 -4
  10. package/cores.json +2 -2
  11. package/distribution.ts +731 -0
  12. package/docker.config +37 -9
  13. package/docs/.gitkeep +0 -0
  14. package/docs/actionrecorder.md +0 -0
  15. package/docs/actionsincident.md +0 -0
  16. package/docs/alternatives.md +0 -0
  17. package/docs/architecture.md +0 -0
  18. package/docs/{architecture-1.8.19.md → architecture1819.md} +0 -0
  19. package/docs/{architecture-1.8.19.mmd → architecture1819.mmd} +0 -0
  20. package/docs/artifactavailability.md +2 -2
  21. package/docs/{artifactresearch-1.8.9.md → artifactresearch189.md} +0 -0
  22. package/docs/{batches-1816-1820.md → batches1816to1820.md} +0 -0
  23. package/docs/{brancharchive-2026-08-18.md → brancharchive20260818.md} +0 -0
  24. package/docs/branchaudit.md +0 -0
  25. package/docs/browser.md +18 -1
  26. package/docs/capabilityreport.md +0 -0
  27. package/docs/comparativeaudit.md +0 -0
  28. package/docs/consolidation.md +0 -0
  29. package/docs/{containerplatforms-1.8.17.md → containerplatforms1817.md} +0 -0
  30. package/docs/{containerplatforms-2.1.0.md → containerplatforms210.md} +1 -1
  31. package/docs/{documentmap-1.8.12.md → documentmap1812.md} +1 -1
  32. package/docs/{e2ugh-engine.md → e2ughengine.md} +0 -0
  33. package/docs/ecosystemplan.md +0 -0
  34. package/docs/enginearchitecture.md +0 -0
  35. package/docs/extension.md +13 -2
  36. package/docs/featureaudit.md +0 -0
  37. package/docs/{flatbuildresearch-1.8.11.md → flatbuildresearch1811.md} +0 -0
  38. package/docs/gapmatrix.md +0 -0
  39. package/docs/hardware.md +0 -0
  40. package/docs/libraryapi.md +1 -1
  41. package/docs/{licenseaudit-1.8.12.md → licenseaudit1812.md} +0 -0
  42. package/docs/logs/examplesession.json +54 -0
  43. package/docs/memoryengine.md +0 -0
  44. package/docs/{mobileconversionresearch-1.8.10.md → mobileconversionresearch1810.md} +0 -0
  45. package/docs/modes.md +0 -0
  46. package/docs/{nativeidentityresearch-1.8.11.md → nativeidentityresearch1811.md} +0 -0
  47. package/docs/{native-wrappers.md → nativewrappers.md} +0 -0
  48. package/docs/ninetymodalities.md +191 -0
  49. package/docs/optimization.md +0 -0
  50. package/docs/packageaudit185.md +0 -0
  51. package/docs/performance.md +0 -0
  52. package/docs/{planning.1.8.18.md → planning1818.md} +0 -0
  53. package/docs/{planning.1.8.19.md → planning1819.md} +0 -0
  54. package/docs/planningengine.md +186 -0
  55. package/docs/planningninety.md +391 -0
  56. package/docs/platformpipelineaudit.md +0 -0
  57. package/docs/platformpipelines.md +0 -0
  58. package/docs/productindex.md +0 -0
  59. package/docs/registryresearch.md +0 -0
  60. package/docs/release.md +0 -0
  61. package/docs/release17notes.md +0 -0
  62. package/docs/release181notes.md +0 -0
  63. package/docs/release182notes.md +0 -0
  64. package/docs/release184notes.md +0 -0
  65. package/docs/release185notes.md +0 -0
  66. package/docs/release18notes.md +0 -0
  67. package/docs/releaseassets.md +0 -0
  68. package/docs/{releasenotes-1.8.12.md → releasenotes1812.md} +0 -0
  69. package/docs/{releasenotes-1.8.13.md → releasenotes1813.md} +2 -2
  70. package/docs/{releasenotes-1.8.14.md → releasenotes1814.md} +1 -1
  71. package/docs/{releasenotes-1.8.15.md → releasenotes1815.md} +0 -0
  72. package/docs/{releasenotes-1.8.16.md → releasenotes1816.md} +0 -0
  73. package/docs/{releasenotes-1.8.17.md → releasenotes1817.md} +0 -0
  74. package/docs/{releasenotes-1.8.18.md → releasenotes1818.md} +0 -0
  75. package/docs/{releasenotes-1.8.19.md → releasenotes1819.md} +0 -0
  76. package/docs/{reorganization-1.8.8.md → reorganization188.md} +0 -0
  77. package/docs/{reorganization-1.8.9.md → reorganization189.md} +0 -0
  78. package/docs/{repo-analysis-1.8.21.json → repoanalysis1821.json} +0 -0
  79. package/docs/{repo-candidates-1.8.21.jsonl → repocandidates1821.jsonl} +0 -0
  80. package/docs/{repo-research-1.8.16.md → reporesearch1816.md} +0 -0
  81. package/docs/{repo-research-1.8.21.md → reporesearch1821.md} +0 -0
  82. package/docs/{repo-selected-1.8.21.json → reposelected1821.json} +0 -0
  83. package/docs/{repo-synthesis-1.8.16.md → reposynthesis1816.md} +1 -1
  84. package/docs/{repo-synthesis-1.8.21.md → reposynthesis1821.md} +0 -0
  85. package/docs/{research-1.8.18-isolation.md → research1818isolation.md} +0 -0
  86. package/docs/{research-1.8.19-virtual-browser.md → research1819virtualbrowser.md} +0 -0
  87. package/docs/roadmapp2p3.md +0 -0
  88. package/docs/s3compatible.md +0 -0
  89. package/docs/{scanningresearch-1.8.11.md → scanningresearch1811.md} +0 -0
  90. package/docs/security.md +0 -0
  91. package/docs/{securityaudit-1.8.7.md → securityaudit187.md} +0 -0
  92. package/docs/{securityreferences-1.8.11.md → securityreferences1811.md} +0 -0
  93. package/docs/{securityresearch-1.8.11.md → securityresearch1811.md} +0 -0
  94. package/docs/{signingresearch-1.8.12.md → signingresearch1812.md} +0 -0
  95. package/docs/signingwithoutcertificates.md +0 -0
  96. package/docs/signpathapplication.md +0 -0
  97. package/docs/sitemap.md +0 -0
  98. package/docs/{tauri-glib-risk-1.8.11.md → tauriglibrisk1811.md} +0 -0
  99. package/docs/todo.md +2 -2
  100. package/docs/{todo-1.8.15.md → todo1815.md} +1 -1
  101. package/docs/{todo-1.8.16.md → todo1816.md} +5 -5
  102. package/docs/{todo-1.8.18.md → todo1818.md} +0 -0
  103. package/docs/{todo-1.8.19.md → todo1819.md} +0 -0
  104. package/docs/{toolchainresearch-1.8.9.md → toolchainresearch189.md} +0 -0
  105. package/docs/toolchains.md +0 -0
  106. package/docs/usage.md +0 -0
  107. package/docs/viability.md +0 -0
  108. package/docs/virtualization.md +0 -0
  109. package/docs/{web-duplicatecleanup.md → webduplicatecleanup.md} +0 -0
  110. package/docs/{web-ideas.md → webideas.md} +0 -0
  111. package/docs/{workflowimprovements-2026-08-19.md → workflowimprovements20260819.md} +0 -0
  112. package/docs/workflowinputs.md +0 -0
  113. package/docs/workflowoperations.md +0 -0
  114. package/docs/workloadlaw.md +104 -0
  115. package/execution.ts +677 -0
  116. package/foundation.ts +314 -0
  117. package/gpumonitor.cpp +0 -0
  118. package/gpus.json +1 -1
  119. package/index.ts +38 -29
  120. package/isolation.ts +84 -0
  121. package/modalityregistry.ts +1493 -0
  122. package/{dist/modes.js → modes.ts} +79 -62
  123. package/mttg.config +1 -1
  124. package/orchestrator.ts +54 -17
  125. package/package.json +245 -146
  126. package/passage.config +0 -0
  127. package/performance.ts +0 -0
  128. package/processors.json +1 -1
  129. package/qemu.config +2 -2
  130. package/qemubridge.py +0 -0
  131. package/quantum.ts +0 -0
  132. package/render.ts +0 -0
  133. package/sandbox.ts +2035 -0
  134. package/scheduler.ts +1 -1
  135. package/security.ts +0 -0
  136. package/server.ts +52 -0
  137. package/tiers.ts +9 -3
  138. package/tsconfig.json +22 -13
  139. package/virtual.ts +1105 -0
  140. package/virtualcpu.ts +1 -0
  141. package/virtualgpu.ts +2 -1
  142. package/virtualhardware.c +0 -0
  143. package/virtualhardware.json +2 -2
  144. package/virtualization.ts +1 -1
  145. package/virtualizationcore.cpp +0 -0
  146. package/virtualmemory.ts +0 -0
  147. package/vm.config.json +2 -2
  148. package/workloadlaw.ts +293 -0
  149. package/biome.json +0 -151
  150. package/dist/acquisition.d.ts +0 -359
  151. package/dist/acquisition.d.ts.map +0 -1
  152. package/dist/acquisition.js +0 -629
  153. package/dist/acquisition.js.map +0 -1
  154. package/dist/alternatives.d.ts +0 -509
  155. package/dist/alternatives.d.ts.map +0 -1
  156. package/dist/alternatives.js +0 -951
  157. package/dist/alternatives.js.map +0 -1
  158. package/dist/automation.d.ts +0 -426
  159. package/dist/automation.d.ts.map +0 -1
  160. package/dist/automation.js +0 -561
  161. package/dist/automation.js.map +0 -1
  162. package/dist/browser.d.ts +0 -562
  163. package/dist/browser.d.ts.map +0 -1
  164. package/dist/browser.js +0 -1057
  165. package/dist/browser.js.map +0 -1
  166. package/dist/cli.d.ts +0 -17
  167. package/dist/cli.d.ts.map +0 -1
  168. package/dist/cli.js +0 -169
  169. package/dist/cli.js.map +0 -1
  170. package/dist/communication.d.ts +0 -192
  171. package/dist/communication.d.ts.map +0 -1
  172. package/dist/communication.js +0 -418
  173. package/dist/communication.js.map +0 -1
  174. package/dist/compute.d.ts +0 -1161
  175. package/dist/compute.d.ts.map +0 -1
  176. package/dist/compute.js +0 -2273
  177. package/dist/compute.js.map +0 -1
  178. package/dist/distribution.d.ts +0 -529
  179. package/dist/distribution.d.ts.map +0 -1
  180. package/dist/distribution.js +0 -811
  181. package/dist/distribution.js.map +0 -1
  182. package/dist/docs/example-localjob.d.ts +0 -2
  183. package/dist/docs/example-localjob.d.ts.map +0 -1
  184. package/dist/docs/example-localjob.js +0 -15
  185. package/dist/docs/example-localjob.js.map +0 -1
  186. package/dist/docs/example-publicapi.d.ts +0 -2
  187. package/dist/docs/example-publicapi.d.ts.map +0 -1
  188. package/dist/docs/example-publicapi.js +0 -7
  189. package/dist/docs/example-publicapi.js.map +0 -1
  190. package/dist/execution.d.ts +0 -530
  191. package/dist/execution.d.ts.map +0 -1
  192. package/dist/execution.js +0 -761
  193. package/dist/execution.js.map +0 -1
  194. package/dist/format.d.ts +0 -19
  195. package/dist/format.d.ts.map +0 -1
  196. package/dist/format.js +0 -60
  197. package/dist/format.js.map +0 -1
  198. package/dist/foundation.d.ts +0 -176
  199. package/dist/foundation.d.ts.map +0 -1
  200. package/dist/foundation.js +0 -309
  201. package/dist/foundation.js.map +0 -1
  202. package/dist/index.d.ts +0 -735
  203. package/dist/index.d.ts.map +0 -1
  204. package/dist/index.js +0 -1020
  205. package/dist/index.js.map +0 -1
  206. package/dist/integration.d.ts +0 -236
  207. package/dist/integration.d.ts.map +0 -1
  208. package/dist/integration.js +0 -236
  209. package/dist/integration.js.map +0 -1
  210. package/dist/intelligence.d.ts +0 -94
  211. package/dist/intelligence.d.ts.map +0 -1
  212. package/dist/intelligence.js +0 -145
  213. package/dist/intelligence.js.map +0 -1
  214. package/dist/isolation.d.ts +0 -129
  215. package/dist/isolation.d.ts.map +0 -1
  216. package/dist/isolation.js +0 -96
  217. package/dist/isolation.js.map +0 -1
  218. package/dist/media.d.ts +0 -344
  219. package/dist/media.d.ts.map +0 -1
  220. package/dist/media.js +0 -986
  221. package/dist/media.js.map +0 -1
  222. package/dist/modes.d.ts +0 -359
  223. package/dist/modes.d.ts.map +0 -1
  224. package/dist/modes.js.map +0 -1
  225. package/dist/operations.d.ts +0 -67
  226. package/dist/operations.d.ts.map +0 -1
  227. package/dist/operations.js +0 -94
  228. package/dist/operations.js.map +0 -1
  229. package/dist/orchestrator.d.ts +0 -1339
  230. package/dist/orchestrator.d.ts.map +0 -1
  231. package/dist/orchestrator.js +0 -4308
  232. package/dist/orchestrator.js.map +0 -1
  233. package/dist/packager/targetcli.js +0 -4
  234. package/dist/performance.d.ts +0 -416
  235. package/dist/performance.d.ts.map +0 -1
  236. package/dist/performance.js +0 -827
  237. package/dist/performance.js.map +0 -1
  238. package/dist/quantum.d.ts +0 -810
  239. package/dist/quantum.d.ts.map +0 -1
  240. package/dist/quantum.js +0 -2073
  241. package/dist/quantum.js.map +0 -1
  242. package/dist/render.d.ts +0 -381
  243. package/dist/render.d.ts.map +0 -1
  244. package/dist/render.js +0 -1073
  245. package/dist/render.js.map +0 -1
  246. package/dist/scheduler.d.ts +0 -596
  247. package/dist/scheduler.d.ts.map +0 -1
  248. package/dist/scheduler.js +0 -1259
  249. package/dist/scheduler.js.map +0 -1
  250. package/dist/security.d.ts +0 -501
  251. package/dist/security.d.ts.map +0 -1
  252. package/dist/security.js +0 -1170
  253. package/dist/security.js.map +0 -1
  254. package/dist/server.d.ts +0 -21
  255. package/dist/server.d.ts.map +0 -1
  256. package/dist/server.js +0 -52
  257. package/dist/server.js.map +0 -1
  258. package/dist/tiers.d.ts +0 -1002
  259. package/dist/tiers.d.ts.map +0 -1
  260. package/dist/tiers.js +0 -2165
  261. package/dist/tiers.js.map +0 -1
  262. package/dist/virtual.d.ts +0 -641
  263. package/dist/virtual.d.ts.map +0 -1
  264. package/dist/virtual.js +0 -1285
  265. package/dist/virtual.js.map +0 -1
  266. package/dist/virtualcpu.d.ts +0 -316
  267. package/dist/virtualcpu.d.ts.map +0 -1
  268. package/dist/virtualcpu.js +0 -1180
  269. package/dist/virtualcpu.js.map +0 -1
  270. package/dist/virtualgpu.d.ts +0 -345
  271. package/dist/virtualgpu.d.ts.map +0 -1
  272. package/dist/virtualgpu.js +0 -1000
  273. package/dist/virtualgpu.js.map +0 -1
  274. package/dist/virtualization.d.ts +0 -607
  275. package/dist/virtualization.d.ts.map +0 -1
  276. package/dist/virtualization.js +0 -1187
  277. package/dist/virtualization.js.map +0 -1
  278. package/dist/virtualmemory.d.ts +0 -818
  279. package/dist/virtualmemory.d.ts.map +0 -1
  280. package/dist/virtualmemory.js +0 -1796
  281. package/dist/virtualmemory.js.map +0 -1
  282. package/dist/vitest.config.d.ts +0 -3
  283. package/dist/vitest.config.d.ts.map +0 -1
  284. package/dist/vitest.config.js +0 -26
  285. package/dist/vitest.config.js.map +0 -1
  286. package/dist/webscrape.d.ts +0 -720
  287. package/dist/webscrape.d.ts.map +0 -1
  288. package/dist/webscrape.js +0 -2697
  289. package/dist/webscrape.js.map +0 -1
  290. package/docs/CONVERSA.txt +0 -1523
  291. package/docs/architecture-1.8.19.png +0 -0
  292. package/docs/assets/architecture.svg +0 -45
  293. package/docs/assets/saddlemark.svg +0 -13
  294. package/docs/example-localjob.ts +0 -15
  295. package/docs/example-publicapi.ts +0 -7
  296. package/docs/saddle.archive.1.8.17.tar.gz.gpg +0 -0
  297. package/media.ts +0 -1337
  298. package/web/manifest.json +0 -30
  299. package/web/readme.md +0 -383
  300. package/web/tsconfig.json +0 -25
package/virtualcpu.ts CHANGED
@@ -192,6 +192,7 @@ export const ZEN5FLAGS: readonly string[] = [
192
192
  'avx512vbmi',
193
193
  'avx512vbmi2',
194
194
  'avx512ifma',
195
+ // biome-ignore lint/security/noSecrets: a cpu capability flag list, not a credential
195
196
  'avx512vp2intersect',
196
197
  'sha_ni',
197
198
  'gfni',
package/virtualgpu.ts CHANGED
@@ -53,7 +53,7 @@
53
53
  import { execFileSync } from 'node:child_process';
54
54
  import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
55
55
  import { dirname } from 'node:path';
56
- import { MIGPROFILES } from './virtualmemory.js';
56
+ import { MIGPROFILES } from './virtualmemory.ts';
57
57
 
58
58
  /** pci bdf (bus:device.function) validator: strict hex format only.
59
59
  * blocks any shell metacharacter or path traversal. */
@@ -462,6 +462,7 @@ export function nvidiaVgpuProfiles(): {
462
462
  return { profileSize, fbReservation, fb: profileSize - fbReservation };
463
463
  };
464
464
  return {
465
+ // biome-ignore lint/security/noSecrets: a memory layout formula string, not a credential
465
466
  formula: 'profileSize=X*0x40000000, fbReservation=0x8000000+(profileSize-0x40000000)/0x10',
466
467
  min: '384 MiB',
467
468
  example: calc(2),
package/virtualhardware.c CHANGED
File without changes
@@ -3,7 +3,7 @@
3
3
  "meta": {
4
4
  "name": "e2ugh",
5
5
  "title": "e2ugh v6 - Master Schema, Cross-References and Compatibility Matrix",
6
- "version": "2.1.6",
6
+ "version": "2.0.127",
7
7
  "date": "2026-08-22",
8
8
  "language": "en",
9
9
  "description": "Master schema of the e2ugh v6 virtual hardware engine: binds the 10 specification files (cpu, cores, boards, gpu, vm.config, passage, docker, qemu, mttcg, mesa), defines the modularity ranges (vCPU 1-192, RAM 1-1024 GB, vRAM 8-96 GB via MIG), defaults, validation rules and the pinned 2026-08-22 compatibility matrix.",
@@ -41,7 +41,7 @@
41
41
  "llvm": "19.1.7",
42
42
  "dockerode": "4.0.8",
43
43
  "express": "5.1.0",
44
- "commander": "13.1.0",
44
+ "commander": "15.0.0",
45
45
  "zod": "4.0.5",
46
46
  "ws": "8.18.1"
47
47
  },
package/virtualization.ts CHANGED
@@ -855,7 +855,7 @@ export const kvmcapnames: readonly string[] = [
855
855
 
856
856
  /** re-exports the gpu passthrough surface (vfio bind, rom dump, looking
857
857
  * glass, vgpu profiles) whose canonical home is virtualgpu.ts. */
858
- export * from './virtualgpu.js';
858
+ export * from './virtualgpu.ts';
859
859
 
860
860
  /* ------------------------------------------------------------------ */
861
861
  /* context: checkpoint (criu planner, file snapshot, uffd, diff, live */
File without changes
package/virtualmemory.ts CHANGED
File without changes
package/vm.config.json CHANGED
@@ -1218,7 +1218,7 @@
1218
1218
  "kernelLts": "6.18.45",
1219
1219
  "libvirtVersion": "12.5.0",
1220
1220
  "nodeLts": "24.19.0",
1221
- "nodeCurrent": "26.7.0",
1221
+ "nodeCurrent": "26.12.0",
1222
1222
  "typescript": "7.0.2",
1223
1223
  "runnerVersion": "2.336.0",
1224
1224
  "checkoutAction": "v6",
@@ -1613,7 +1613,7 @@
1613
1613
  },
1614
1614
  "toolchain": {
1615
1615
  "nodeLts": "24.19.0",
1616
- "nodeCurrent": "26.7.0",
1616
+ "nodeCurrent": "26.12.0",
1617
1617
  "typescript": "7.0.2",
1618
1618
  "checkout": "v6",
1619
1619
  "setupNode": "v6",
package/workloadlaw.ts ADDED
@@ -0,0 +1,293 @@
1
+ // # workloadlaw — the family workload lane catalog and the join law of the
2
+ // engine (root layer, wave WL1). One row per heavy workload lane of every
3
+ // official app of the family: the app that owns the lane, the lane's name,
4
+ // the demand the lane puts on the sandbox (gpu, network, isolation depth,
5
+ // boot budget) and where the lane runs today. The law this module answers
6
+ // is the owner's nuclear modality law made executable for the whole
7
+ // family: the workload never chooses a modality by name — the join
8
+ // resolver reads the demand and answers the modality set that satisfies
9
+ // it, so the person chooses none and the platform resolves the join of
10
+ // all. Every lane row carries a demand and never a modality id: the
11
+ // candidates are always computed from the registry of record
12
+ // (modalityregistry.ts), so the answer can never drift from the catalog
13
+ // and a modality that turns live tomorrow answers the same lane without
14
+ // this file moving.
15
+ //
16
+ // The honest today fields: one row declares `today: "engine-lane"` when the
17
+ // heavy pass already runs on a server-side engine surface of the family
18
+ // (the os sandbox lane, the edge plane dispatcher, the app gateways the
19
+ // deploys serve), and `today: "app-lane"` when the heavy pass still walks
20
+ // inside the app surface (the seeded rehearsals, the browser fallbacks the
21
+ // catalog laws keep naming). The report reads both truths beside the join
22
+ // verdict — a lane that resolves dispatchable and still walks app-lane is
23
+ // the next wave's work order, named honestly instead of hidden. The join
24
+ // verdict itself answers from the registry alone: "dispatchable" when at
25
+ // least one live modality satisfies the demand, "planned-only" when only
26
+ // planned records do (the gpu lanes ride here today and say so), and
27
+ // "unresolved" when the demand fits nothing — a calibration defect the
28
+ // battery refuses.
29
+ //
30
+ // Pure data and pure functions: zero storage, zero node-only imports, the
31
+ // browser-pure bundle keeps carrying it, exactly the registry law.
32
+
33
+ import { type ModalityRecord, resolvejoin } from "./modalityregistry.ts";
34
+
35
+ /** The demand one workload lane puts on the sandbox — the join vocabulary
36
+ * the resolver reads (never a modality name: the nuclear law). */
37
+ export type WorkloadDemand = {
38
+ /** Whether the lane's pass needs a gpu path through the virtual drivers. */
39
+ gpu: boolean;
40
+ /** Whether the lane's pass needs a network path. */
41
+ network: boolean;
42
+ /** The isolation depth the lane demands at minimum. */
43
+ isolation: ModalityRecord["isolation"];
44
+ /** The boot budget the lane tolerates, in milliseconds (defaults to the
45
+ * cold ceiling of the ladder when absent). */
46
+ bootbudget?: number;
47
+ };
48
+
49
+ /** Where the heavy pass of the lane runs today — the honest truth the
50
+ * report reads beside the join verdict. */
51
+ export type LaneToday = "engine-lane" | "app-lane";
52
+
53
+ /** One workload lane of the family catalog: the app that owns the lane,
54
+ * the lane's stable id, the role sentence, the demand and the honest
55
+ * today. */
56
+ export type WorkloadLane = {
57
+ /** The official app slug that owns the lane. */
58
+ app: string;
59
+ /** The lane id inside the app (kebab-case, unique per app). */
60
+ lane: string;
61
+ /** What the lane does, in one sentence. */
62
+ role: string;
63
+ /** The demand the lane puts on the sandbox. */
64
+ demand: WorkloadDemand;
65
+ /** Where the heavy pass runs today (the honest truth). */
66
+ today: LaneToday;
67
+ };
68
+
69
+ /** The join verdict of one lane: computed from the registry, never
70
+ * declared by hand. */
71
+ export type LaneVerdict = "dispatchable" | "planned-only" | "unresolved";
72
+
73
+ /** One answered join: the lane row, the verdict and the candidate records
74
+ * the resolver answered (best candidate first). */
75
+ export type LaneJoin = {
76
+ /** The lane row the join answered. */
77
+ lane: WorkloadLane;
78
+ /** The honest verdict computed from the registry. */
79
+ verdict: LaneVerdict;
80
+ /** The modality records that satisfy the demand, best first. */
81
+ candidates: readonly ModalityRecord[];
82
+ /** How many candidates the registry already drives live. */
83
+ livecount: number;
84
+ };
85
+
86
+ /** The family workload lane catalog: the lanes of the eleven official
87
+ * apps, walked from the analysis waves (A1) that mapped every app's heavy
88
+ * passes. The rows carry demands and honest todays — never modality ids:
89
+ * the join computes the answer from the registry of record. */
90
+ export const FAMILYLANES: readonly WorkloadLane[] = Object.freeze([
91
+ // the argan lanes: the dns engine's heavy passes
92
+ { app: "argan", lane: "dnssec-validate", role: "the dnssec chain validation walk: rrsig parsing, key tag checksums, validity windows and ds match rules over untrusted input", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
93
+ { app: "argan", lane: "zonefile-parse-diff", role: "the master file parse and the external-dns diff: tokenizer, normalization, creates/deletes/updates by group", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
94
+ { app: "argan", lane: "catalog-registry-serve", role: "the registry tables the catalog serves: mime types, protocols and seed rows over https and db, never the browser fallback", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "app-lane" },
95
+ { app: "argan", lane: "label-store-seed", role: "the label manifest seed into the store: the upsert walk that protects translated rows, mirrored server-side", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "app-lane" },
96
+ // the cadria lanes: the versawaze engine's generation passes
97
+ { app: "cadria", lane: "analyze-wav", role: "the audio analysis pipeline: decode, downmix, resample, stft and the spectrum, rhythm, tonality, timbre and structure fusion", demand: { gpu: false, network: false, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
98
+ { app: "cadria", lane: "generate-image", role: "the image generation walk: palette, composition blocks, rhythm scatter, texture and motion into the deterministic project", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
99
+ { app: "cadria", lane: "render-svg", role: "the svg render of the image project: draw command compilation and the byte-deterministic serialization", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
100
+ { app: "cadria", lane: "decode-video", role: "the frame-accurate video decode lane: the container-namespace pass the codec walk rides, never the visitor decoder", demand: { gpu: false, network: false, isolation: "namespace", bootbudget: 800 }, today: "app-lane" },
101
+ { app: "cadria", lane: "compile-shader", role: "the shader program assembly: the fragment library, the deterministic manifest and the sha digest, no visitor gpu ever compiles", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
102
+ // the cobaia lanes: the monetization surface's light walks
103
+ { app: "cobaia", lane: "plan-checkout", role: "the plan checkout surface: mrr plan rows, link validation and the billing webhook walk when it lands, secrets server-side", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "app-lane" },
104
+ { app: "cobaia", lane: "ads-slot", role: "the honest ad slot lane: the reserved slots and the rotation decision the deploy answers before the render", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "app-lane" },
105
+ { app: "cobaia", lane: "label-seed", role: "the label manifest seed of the monetization face: the store walk the sqlite vault carries", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
106
+ // the debonair lanes: the kathesis engine's audio walks
107
+ { app: "debonair", lane: "ingest-audio", role: "the ingest worker: the stream separation, the pcm downmix and the payload json the reconstruction reads", demand: { gpu: false, network: false, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
108
+ { app: "debonair", lane: "render-track", role: "the render worker: the composed plan render, the mastering chain and the wav encode into the take store", demand: { gpu: false, network: false, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
109
+ // the forge lanes: the execution clone's run walks
110
+ { app: "forge", lane: "binary-run", role: "the binary run lane: the runner the saddle engine answers for the fleet, the mode gate resolving through the join", demand: { gpu: false, network: true, isolation: "namespace", bootbudget: 800 }, today: "app-lane" },
111
+ { app: "forge", lane: "queue-priority", role: " the run queue walk: express, normal and batch ordering over the queue the lane serves", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
112
+ // the foundry lanes: the pipeline clone's graph walks
113
+ { app: "foundry", lane: "pipeline-graph", role: "the pipeline graph lane: provision, pull, run, collect and store — the plan walk the herd drives", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
114
+ { app: "foundry", lane: "image-artifact", role: "the image artifact lane: the format plans, the checksum seals and the shelf records the vault stores", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
115
+ // the getry lanes: the ai gateway's inference walks
116
+ { app: "getry", lane: "inference-route", role: "the inference route lane: the provider pool, the sse parse and the model masking over the upstream calls", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
117
+ { app: "getry", lane: "stream-fallback", role: "the resilience runner: the verdict ladder, the backoff walk and the trail the retry lane keeps", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
118
+ { app: "getry", lane: "thinking-ladder", role: "the seven-level reasoning ladder: the budget resolution the request injects before the upstream call", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
119
+ { app: "getry", lane: "router-rotation", role: "the rotation lane: the weighted draw, the cooldown ledger and the session rows the store keeps", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
120
+ // the saddle lanes: the engine's own dispatch surface
121
+ { app: "saddle", lane: "edge-dispatch", role: "the edge plane dispatch itself: the visitor guard, the lane resolution and the artifact commit through the vault seam", demand: { gpu: false, network: true, isolation: "process", bootbudget: 1500 }, today: "engine-lane" },
122
+ // the stealthhead lanes: the fps platform's simulation walks
123
+ { app: "stealthhead", lane: "match-simulate", role: "the authoritative match simulation: the fixed-step physics, the reconcile and rewind twin and the seeded spawns", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "app-lane" },
124
+ { app: "stealthhead", lane: "rank-compute", role: "the ranking walk: the elo ladder, the season batch and the position assignment over the standing rows", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "app-lane" },
125
+ { app: "stealthhead", lane: "world-bake", role: "the world pre-compilation: the map bake through the render engine — the gpu pass the planned modalities answer", demand: { gpu: true, network: true, isolation: "vm", bootbudget: 1500 }, today: "app-lane" },
126
+ { app: "stealthhead", lane: "ballistics-balance", role: "the armory balance sweep: falloff, shots-to-kill and ttk validation, offline and deterministic", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "app-lane" },
127
+ // the vault lanes: the storage engine's object walks
128
+ { app: "vault", lane: "blob-ingest", role: "the object deposit lane: path and mime validation, the quota gate inside the write transaction and the detach walk", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
129
+ { app: "vault", lane: "chunk-window", role: "the chunk window lane: the fixed slicing, the per-window digest and the brotli decision over the byte stream", demand: { gpu: false, network: false, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
130
+ { app: "vault", lane: "digest-sha256", role: "the digest engine: the sha-256 master and chunk walks and the full re-verification the read path answers", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
131
+ { app: "vault", lane: "ref-gc", role: "the reference gc lane: the soft-delete tombstones, the ref detach and the orphan sweep the store drives", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
132
+ // the devthink lanes: the os envelope's command walks
133
+ { app: "devthink", lane: "chat-sandbox", role: "the chat sandbox lane: the session jail, the tool surface and the exec walks the engine dispatches server-side", demand: { gpu: false, network: true, isolation: "namespace", bootbudget: 1500 }, today: "engine-lane" },
134
+ { app: "devthink", lane: "llm-gateway", role: "the universal gateway pipeline: model resolution, auth, body building, retry and the streaming byte passthrough", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
135
+ { app: "devthink", lane: "stream-parse", role: "the streaming parser: the tolerant sse walk, the payload normalization and the delta tracking over the live stream", demand: { gpu: false, network: true, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
136
+ { app: "devthink", lane: "graph-run", role: "the graph runner: the deterministic stage walk, the retry ladder and the progress views the console draws", demand: { gpu: false, network: false, isolation: "process", bootbudget: 25 }, today: "engine-lane" },
137
+ { app: "devthink", lane: "mcp-serve", role: "the mcp registry lane: the tool catalog, the approval gates and the transports the server answers", demand: { gpu: false, network: true, isolation: "process", bootbudget: 800 }, today: "engine-lane" },
138
+ ]);
139
+
140
+ /** The official app slugs the catalog covers — the lockstep vocabulary the
141
+ * ownership manifest of the os answers (every official app owns at least
142
+ * one workload lane here). */
143
+ export const CATALOGAPPS: readonly string[] = Object.freeze([
144
+ "argan",
145
+ "cadria",
146
+ "cobaia",
147
+ "debonair",
148
+ "devthink",
149
+ "forge",
150
+ "foundry",
151
+ "getry",
152
+ "saddle",
153
+ "stealthhead",
154
+ "vault",
155
+ ]);
156
+
157
+ /** Answers the workload lanes one app owns.
158
+ *
159
+ * @param app the official app slug.
160
+ * @returns the lane rows of the app, catalog order.
161
+ */
162
+ export function lanesof(app: string): readonly WorkloadLane[] {
163
+ return FAMILYLANES.filter((row) => row.app === app);
164
+ }
165
+
166
+ /** Answers one lane row by app and lane id.
167
+ *
168
+ * @param app the official app slug.
169
+ * @param lane the lane id inside the app.
170
+ * @returns the lane row, or undefined when the catalog carries no such
171
+ * lane.
172
+ */
173
+ export function getlane(app: string, lane: string): WorkloadLane | undefined {
174
+ return FAMILYLANES.find((row) => row.app === app && row.lane === lane);
175
+ }
176
+
177
+ /** Joins one lane row against the registry of record: the nuclear law
178
+ * made executable — the demand rides the join resolver, the candidates
179
+ * answer best-first and the verdict is computed, never declared.
180
+ *
181
+ * @param row the lane row to join.
182
+ * @returns the answered join: the row, the verdict and the candidates.
183
+ */
184
+ export function lanejoin(row: WorkloadLane): LaneJoin {
185
+ const candidates = resolvejoin({
186
+ base: "max",
187
+ gpu: row.demand.gpu,
188
+ network: row.demand.network,
189
+ isolation: row.demand.isolation,
190
+ bootbudget: row.demand.bootbudget,
191
+ });
192
+ const livecount = candidates.filter((modality) => modality.state === "live").length;
193
+ const verdict: LaneVerdict = livecount > 0 ? "dispatchable" : candidates.length > 0 ? "planned-only" : "unresolved";
194
+ return { lane: row, verdict, candidates, livecount };
195
+ }
196
+
197
+ /** Joins one lane of one app by id — the surface the api route and the
198
+ * app mirrors read.
199
+ *
200
+ * @param app the official app slug.
201
+ * @param lane the lane id inside the app.
202
+ * @returns the answered join, or undefined when the catalog carries no
203
+ * such lane.
204
+ */
205
+ export function familyjoin(app: string, lane: string): LaneJoin | undefined {
206
+ const row = getlane(app, lane);
207
+ return row === undefined ? undefined : lanejoin(row);
208
+ }
209
+
210
+ /** One app's workload answer: the lanes, the joins and the honest counts. */
211
+ export type AppWorkloadReport = {
212
+ /** The official app slug. */
213
+ app: string;
214
+ /** The lane count the app owns. */
215
+ lanes: number;
216
+ /** The lanes whose join answered at least one live modality. */
217
+ dispatchable: number;
218
+ /** The lanes whose join answered only planned records. */
219
+ plannedonly: number;
220
+ /** The lanes whose join answered nothing (a calibration defect). */
221
+ unresolved: number;
222
+ /** The lanes whose heavy pass still walks the app surface. */
223
+ applane: number;
224
+ /** The lanes whose heavy pass already walks an engine surface. */
225
+ enginelane: number;
226
+ /** The per-lane joins, catalog order. */
227
+ joins: readonly LaneJoin[];
228
+ };
229
+
230
+ /** The family workload report: the honest census of every app's lanes
231
+ * against the registry of record — the work order the next waves read.
232
+ * */
233
+ export type FamilyWorkloadReport = {
234
+ /** The official app count the catalog covers. */
235
+ apps: number;
236
+ /** The total lane count of the catalog. */
237
+ lanes: number;
238
+ /** The lanes whose join answered at least one live modality. */
239
+ dispatchable: number;
240
+ /** The lanes whose join answered only planned records (the gpu waits). */
241
+ plannedonly: number;
242
+ /** The lanes whose join answered nothing. */
243
+ unresolved: number;
244
+ /** The lanes whose heavy pass still walks the app surface — the honest
245
+ * migration list the next waves work through. */
246
+ applanemigration: number;
247
+ /** The per-app reports, catalog order. */
248
+ perapp: readonly AppWorkloadReport[];
249
+ };
250
+
251
+ /** Computes the honest family workload report from the catalog and the
252
+ * registry — every count derived, nothing hardcoded, so the report can
253
+ * never drift from either surface.
254
+ *
255
+ * @returns the family census of the workload law.
256
+ */
257
+ export function workloadreport(): FamilyWorkloadReport {
258
+ const perapp: AppWorkloadReport[] = [];
259
+ let dispatchable = 0;
260
+ let plannedonly = 0;
261
+ let unresolved = 0;
262
+ let applanemigration = 0;
263
+ for (const app of CATALOGAPPS) {
264
+ const joins = lanesof(app).map(lanejoin);
265
+ const dispatchablecount = joins.filter((join) => join.verdict === "dispatchable").length;
266
+ const plannedonlycount = joins.filter((join) => join.verdict === "planned-only").length;
267
+ const unresolvedcount = joins.filter((join) => join.verdict === "unresolved").length;
268
+ const applanecount = joins.filter((join) => join.lane.today === "app-lane").length;
269
+ dispatchable += dispatchablecount;
270
+ plannedonly += plannedonlycount;
271
+ unresolved += unresolvedcount;
272
+ applanemigration += applanecount;
273
+ perapp.push({
274
+ app,
275
+ lanes: joins.length,
276
+ dispatchable: dispatchablecount,
277
+ plannedonly: plannedonlycount,
278
+ unresolved: unresolvedcount,
279
+ applane: applanecount,
280
+ enginelane: joins.length - applanecount,
281
+ joins,
282
+ });
283
+ }
284
+ return {
285
+ apps: CATALOGAPPS.length,
286
+ lanes: FAMILYLANES.length,
287
+ dispatchable,
288
+ plannedonly,
289
+ unresolved,
290
+ applanemigration,
291
+ perapp,
292
+ };
293
+ }
package/biome.json DELETED
@@ -1,151 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.5.11/schema.json",
3
- "vcs": {
4
- "enabled": false
5
- },
6
- "files": {
7
- "includes": [
8
- "alternatives.ts",
9
- "compute.ts",
10
- "index.ts",
11
- "media.ts",
12
- "orchestrator.ts",
13
- "performance.ts",
14
- "quantum.ts",
15
- "render.ts",
16
- "scheduler.ts",
17
- "security.ts",
18
- "tiers.ts",
19
- "virtualcpu.ts",
20
- "virtualgpu.ts",
21
- "virtualization.ts",
22
- "virtualmemory.ts",
23
- "tests/virtualengine.test.ts",
24
- "tests/features.test.ts",
25
- "tests/media.test.ts",
26
- "tests/render.test.ts",
27
- "tests/simulation.test.ts",
28
- "tests/specs.test.ts",
29
- "tests/virtualcpu.test.ts",
30
- "tests/virtualgpu.test.ts",
31
- "tests/virtualmemory.test.ts",
32
- "tests/web.test.ts",
33
- "tests/workflow.test.ts",
34
- "boards.json",
35
- "cores.json",
36
- "gpus.json",
37
- "processors.json",
38
- "vm.config.json",
39
- "virtualhardware.json",
40
- "*.config",
41
- "tsconfig.json",
42
- "package.json",
43
- "!package-lock.json"
44
- ],
45
- "ignoreUnknown": false
46
- },
47
- "formatter": {
48
- "enabled": true,
49
- "indentStyle": "space",
50
- "indentWidth": 2,
51
- "lineWidth": 100,
52
- "lineEnding": "lf"
53
- },
54
- "assist": {
55
- "actions": {
56
- "source": {
57
- "organizeImports": "on"
58
- }
59
- }
60
- },
61
- "linter": {
62
- "enabled": true,
63
- "rules": {
64
- "preset": "recommended",
65
- "complexity": {
66
- "noStaticOnlyClass": "warn",
67
- "noUselessTypeConstraint": "error"
68
- },
69
- "correctness": {
70
- "noUnusedImports": "error",
71
- "noUnusedVariables": "warn"
72
- },
73
- "suspicious": {
74
- "noAssignInExpressions": "error",
75
- "noConsole": "warn",
76
- "noDoubleEquals": "error",
77
- "noEmptyBlockStatements": "warn",
78
- "noExplicitAny": "error",
79
- "noRedeclare": "error",
80
- "noShadowRestrictedNames": "error"
81
- },
82
- "security": {
83
- "noDangerouslySetInnerHtml": "error",
84
- "noGlobalEval": "error",
85
- "noSecrets": "info"
86
- }
87
- }
88
- },
89
- "javascript": {
90
- "formatter": {
91
- "quoteStyle": "single",
92
- "jsxQuoteStyle": "double",
93
- "semicolons": "always",
94
- "trailingCommas": "all",
95
- "arrowParentheses": "always",
96
- "bracketSameLine": false,
97
- "bracketSpacing": true
98
- }
99
- },
100
- "json": {
101
- "formatter": {
102
- "indentStyle": "space",
103
- "indentWidth": 2,
104
- "lineWidth": 100,
105
- "trailingCommas": "none"
106
- }
107
- },
108
- "root": true,
109
- "overrides": [
110
- {
111
- "includes": ["web/**"],
112
- "linter": {
113
- "rules": {
114
- "recommended": true,
115
- "a11y": {
116
- "noStaticElementInteractions": "off",
117
- "useKeyWithClickEvents": "off",
118
- "useSemanticElements": "off"
119
- },
120
- "correctness": {
121
- "useExhaustiveDependencies": "off"
122
- },
123
- "style": {
124
- "noNonNullAssertion": "off",
125
- "useNodejsImportProtocol": "off",
126
- "useConst": "error"
127
- },
128
- "suspicious": {
129
- "noExplicitAny": "off",
130
- "noEmptyBlock": "warn"
131
- },
132
- "complexity": {
133
- "noUselessFragments": "warn",
134
- "noForEach": "off"
135
- },
136
- "performance": {
137
- "noDelete": "off"
138
- }
139
- }
140
- },
141
- "formatter": {
142
- "enabled": true,
143
- "indentStyle": "tab",
144
- "indentWidth": 2,
145
- "lineWidth": 100,
146
- "lineEnding": "lf",
147
- "formatWithErrors": false
148
- }
149
- }
150
- ]
151
- }