gpu4agents 0.14.0__tar.gz → 0.15.2__tar.gz

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 (240) hide show
  1. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.claude-plugin/plugin.json +1 -1
  2. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.cursor-plugin/plugin.json +1 -1
  3. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/workflows/ci.yml +4 -4
  4. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/workflows/release.yml +4 -4
  5. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/CHANGELOG.md +56 -0
  6. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/INSTALL.md +1 -1
  7. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/JOBS.md +4 -0
  8. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/PKG-INFO +4 -2
  9. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/PROVIDERS.md +1 -1
  10. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/QUEUE.md +1 -1
  11. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/README.md +3 -1
  12. gpu4agents-0.15.2/benchmarks/fetch-rate/.gitignore +2 -0
  13. gpu4agents-0.15.2/benchmarks/fetch-rate/README.md +26 -0
  14. gpu4agents-0.15.2/benchmarks/fetch-rate/bench.py +152 -0
  15. gpu4agents-0.15.2/benchmarks/fetch-rate/gpu.yaml +37 -0
  16. gpu4agents-0.15.2/benchmarks/fetch-rate/gpujob.yaml +3 -0
  17. gpu4agents-0.15.2/benchmarks/fetch-rate/results-2026-11-21.json +118 -0
  18. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/ACCEPTANCE.md +1 -1
  19. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/ADDING_A_PROVIDER.md +18 -6
  20. gpu4agents-0.15.2/docs/CLAUDE_CODE.md +98 -0
  21. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/CONFIG.md +36 -15
  22. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/LIFECYCLE.md +6 -2
  23. gpu4agents-0.15.2/docs/RUNBOOK.md +128 -0
  24. gpu4agents-0.15.2/docs/engineering/dossier.md +801 -0
  25. gpu4agents-0.15.2/docs/engineering/fast-provisioning.md +214 -0
  26. gpu4agents-0.15.2/docs/superpowers/plans/2026-11-14-gpu-dashboard.md +179 -0
  27. gpu4agents-0.15.2/docs/superpowers/plans/2026-11-15-llama-engine-anthropic-adapter.md +183 -0
  28. gpu4agents-0.15.2/docs/superpowers/specs/2026-11-14-gpu-dashboard-design.md +182 -0
  29. gpu4agents-0.15.2/docs/superpowers/specs/2026-11-15-llama-engine-anthropic-adapter-design.md +200 -0
  30. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/__init__.py +1 -1
  31. {gpu4agents-0.14.0/skills/gpu4agents → gpu4agents-0.15.2/gpu4agents/agent/skill}/SKILL.md +3 -3
  32. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/account.py +85 -1
  33. gpu4agents-0.15.2/gpu4agents/cli/claude.py +119 -0
  34. gpu4agents-0.15.2/gpu4agents/cli/dashboard.py +247 -0
  35. gpu4agents-0.15.2/gpu4agents/cli/gateway.py +135 -0
  36. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/main.py +9 -2
  37. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/providers.py +1 -1
  38. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/setup.py +67 -4
  39. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/status.py +10 -0
  40. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/beacon.py +24 -0
  41. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/config.py +151 -8
  42. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/engine.py +341 -42
  43. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/events.py +3 -0
  44. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/job.py +1 -1
  45. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/models.py +3 -0
  46. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/state.py +14 -2
  47. gpu4agents-0.15.2/gpu4agents/dashboard/__init__.py +11 -0
  48. gpu4agents-0.15.2/gpu4agents/dashboard/auth.py +58 -0
  49. gpu4agents-0.15.2/gpu4agents/dashboard/collect.py +89 -0
  50. gpu4agents-0.15.2/gpu4agents/dashboard/ops.py +93 -0
  51. gpu4agents-0.15.2/gpu4agents/dashboard/page.html +297 -0
  52. gpu4agents-0.15.2/gpu4agents/dashboard/probe.py +90 -0
  53. gpu4agents-0.15.2/gpu4agents/dashboard/server.py +214 -0
  54. gpu4agents-0.15.2/gpu4agents/dashboard/service.py +130 -0
  55. gpu4agents-0.15.2/gpu4agents/gateway/__init__.py +21 -0
  56. gpu4agents-0.15.2/gpu4agents/gateway/adapters.py +113 -0
  57. gpu4agents-0.15.2/gpu4agents/gateway/anthropic_openai.py +442 -0
  58. gpu4agents-0.15.2/gpu4agents/gateway/base.py +145 -0
  59. gpu4agents-0.15.2/gpu4agents/gateway/server.py +152 -0
  60. gpu4agents-0.15.2/gpu4agents/gateway/service.py +129 -0
  61. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/runpod/provider.py +1 -1
  62. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/vast/client.py +8 -1
  63. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/vast/mapper.py +18 -2
  64. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/vast/provider.py +1 -1
  65. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/coordinator.py +3 -1
  66. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/runtime/__init__.py +3 -0
  67. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/runtime/base.py +26 -0
  68. gpu4agents-0.15.2/gpu4agents/runtime/llama.py +224 -0
  69. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/runtime/vllm.py +40 -3
  70. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/watchdog/agent_body.py +4 -0
  71. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/watchdog/builder.py +6 -4
  72. gpu4agents-0.15.2/gpu4agents/watchdog/fetch_ext.py +620 -0
  73. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/install.sh +2 -2
  74. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/pyproject.toml +1 -1
  75. {gpu4agents-0.14.0/gpu4agents/agent/skill → gpu4agents-0.15.2/skills/gpu4agents}/SKILL.md +3 -3
  76. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/conftest.py +4 -0
  77. gpu4agents-0.15.2/tests/test_anthropic_openai.py +367 -0
  78. gpu4agents-0.15.2/tests/test_claude_cli.py +60 -0
  79. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_cli.py +91 -0
  80. gpu4agents-0.15.2/tests/test_dashboard.py +441 -0
  81. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_docs.py +3 -3
  82. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_engine.py +8 -1
  83. gpu4agents-0.15.2/tests/test_fetch.py +409 -0
  84. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_field_run.py +94 -3
  85. gpu4agents-0.15.2/tests/test_gateway.py +381 -0
  86. gpu4agents-0.15.2/tests/test_llama_runtime.py +156 -0
  87. gpu4agents-0.15.2/tests/test_park.py +65 -0
  88. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_runtime_vllm.py +2 -0
  89. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_vast_mapper.py +9 -0
  90. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.claude-plugin/marketplace.json +0 -0
  91. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.env.example +0 -0
  92. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  93. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  94. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  95. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/dependabot.yml +0 -0
  96. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.github/pull_request_template.md +0 -0
  97. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/.gitignore +0 -0
  98. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/CODE_OF_CONDUCT.md +0 -0
  99. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/CONTRIBUTING.md +0 -0
  100. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/LICENSE +0 -0
  101. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/SECURITY.md +0 -0
  102. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/SERVING.md +0 -0
  103. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/AGENTS.md +0 -0
  104. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/CHOOSING_A_MODEL.md +0 -0
  105. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/INTEGRATION.md +0 -0
  106. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/QUEUE_BACKENDS.md +0 -0
  107. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/USAGE.md +0 -0
  108. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/assets/banner.png +0 -0
  109. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/assets/jambu-logo.jpg +0 -0
  110. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/handoff/2026-11-11-video-validation-fixes.md +0 -0
  111. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/handoff/2026-11-12-queue-mode-field-run.md +0 -0
  112. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/superpowers/plans/2026-11-12-queue-mode.md +0 -0
  113. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/docs/superpowers/specs/2026-11-12-queue-mode-design.md +0 -0
  114. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/experiment.py +0 -0
  115. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/gpu.yaml +0 -0
  116. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/README.md +0 -0
  117. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/package-lock.json +0 -0
  118. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/package.json +0 -0
  119. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/src/agent.ts +0 -0
  120. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/src/index.ts +0 -0
  121. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/src/tools/weather-tool.ts +0 -0
  122. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/mastra-agent/tsconfig.json +0 -0
  123. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/queue-smoke/.env.example +0 -0
  124. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/queue-smoke/.gitignore +0 -0
  125. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/queue-smoke/gpu.yaml +0 -0
  126. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/queue-smoke/job/gpujob.yaml +0 -0
  127. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/queue-smoke/job/matmul.py +0 -0
  128. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/README.md +0 -0
  129. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/package-lock.json +0 -0
  130. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/package.json +0 -0
  131. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/src/gpu.ts +0 -0
  132. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/src/index.ts +0 -0
  133. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/examples/typescript-client/tsconfig.json +0 -0
  134. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu.example.yaml +0 -0
  135. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu.models.yaml +0 -0
  136. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu.yaml +0 -0
  137. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/__main__.py +0 -0
  138. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/agent/__init__.py +0 -0
  139. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/agent/install.py +0 -0
  140. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/agent/jobs.py +0 -0
  141. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/agent/mcp.py +0 -0
  142. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/__init__.py +0 -0
  143. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/_common.py +0 -0
  144. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/agent.py +0 -0
  145. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/inspect.py +0 -0
  146. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/job.py +0 -0
  147. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/lifecycle.py +0 -0
  148. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/queue.py +0 -0
  149. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/run.py +0 -0
  150. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/timer.py +0 -0
  151. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/cli/validate.py +0 -0
  152. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/__init__.py +0 -0
  153. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/credentials.py +0 -0
  154. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/durations.py +0 -0
  155. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/errors.py +0 -0
  156. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/execution.py +0 -0
  157. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/health.py +0 -0
  158. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/hosts.py +0 -0
  159. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/model_inspect.py +0 -0
  160. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/paths.py +0 -0
  161. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/policy.py +0 -0
  162. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/sweep.py +0 -0
  163. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/core/tool_parsers.py +0 -0
  164. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/__init__.py +0 -0
  165. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/base.py +0 -0
  166. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/gpus.py +0 -0
  167. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/http.py +0 -0
  168. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/lambdacloud/__init__.py +0 -0
  169. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/lambdacloud/client.py +0 -0
  170. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/lambdacloud/config.py +0 -0
  171. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/lambdacloud/mapper.py +0 -0
  172. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/lambdacloud/provider.py +0 -0
  173. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/registry.py +0 -0
  174. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/runpod/__init__.py +0 -0
  175. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/runpod/client.py +0 -0
  176. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/runpod/config.py +0 -0
  177. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/runpod/mapper.py +0 -0
  178. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/scaffold.py +0 -0
  179. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/vast/__init__.py +0 -0
  180. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/providers/vast/config.py +0 -0
  181. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/__init__.py +0 -0
  182. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/api.py +0 -0
  183. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/audit.py +0 -0
  184. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/backend.py +0 -0
  185. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/backends/__init__.py +0 -0
  186. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/backends/local.py +0 -0
  187. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/backends/redis.py +0 -0
  188. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/models.py +0 -0
  189. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/observe.py +0 -0
  190. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/outputs.py +0 -0
  191. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/pool.py +0 -0
  192. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/pool_types.py +0 -0
  193. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/preflight.py +0 -0
  194. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/scaler.py +0 -0
  195. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/spend.py +0 -0
  196. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/queue/testing.py +0 -0
  197. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/runtime/service.py +0 -0
  198. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/__init__.py +0 -0
  199. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/hf/__init__.py +0 -0
  200. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/hf/install.sh +0 -0
  201. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/hf/server.py +0 -0
  202. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/template/__init__.py +0 -0
  203. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/template/gpujob.yaml +0 -0
  204. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/serve/template/server.py +0 -0
  205. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/watchdog/__init__.py +0 -0
  206. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/gpu4agents/watchdog/jobs_ext.py +0 -0
  207. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/jambu_gpu/__init__.py +0 -0
  208. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/jambu_gpu/__main__.py +0 -0
  209. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/skills/gpu4agents/agents/openai.yaml +0 -0
  210. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/fakes.py +0 -0
  211. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/queue_fakes.py +0 -0
  212. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_agent.py +0 -0
  213. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_config.py +0 -0
  214. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_engine_sessions.py +0 -0
  215. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_integration.py +0 -0
  216. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_job_outputs.py +0 -0
  217. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_jobs.py +0 -0
  218. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_lambda_provider.py +0 -0
  219. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_model_inspect.py +0 -0
  220. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_paths.py +0 -0
  221. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_policy.py +0 -0
  222. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_audit.py +0 -0
  223. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_backend_local.py +0 -0
  224. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_backend_redis.py +0 -0
  225. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_backend_redis_config.py +0 -0
  226. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_cli.py +0 -0
  227. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_coordinator.py +0 -0
  228. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_models.py +0 -0
  229. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_observe.py +0 -0
  230. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_outputs.py +0 -0
  231. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_pool.py +0 -0
  232. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_preflight.py +0 -0
  233. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_scaler.py +0 -0
  234. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_queue_spend.py +0 -0
  235. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_runpod_provider.py +0 -0
  236. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_serve.py +0 -0
  237. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_state.py +0 -0
  238. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_sweep.py +0 -0
  239. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_vast_provider.py +0 -0
  240. {gpu4agents-0.14.0 → gpu4agents-0.15.2}/tests/test_watchdog.py +0 -0
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gpu4agents",
3
3
  "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
- "version": "0.14.0",
4
+ "version": "0.15.2",
5
5
  "author": {
6
6
  "name": "João Gabriel Lima",
7
7
  "url": "https://www.linkedin.com/in/joaogabriellima"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gpu4agents",
3
3
  "description": "Your agent rents the GPU it needs, serves a model on it and runs the experiment. You pay only while it works.",
4
- "version": "0.14.0",
4
+ "version": "0.15.2",
5
5
  "author": {
6
6
  "name": "João Gabriel Lima"
7
7
  },
@@ -24,8 +24,8 @@ jobs:
24
24
  env:
25
25
  GPU_TEST_REDIS_URL: redis://localhost:6379/15
26
26
  steps:
27
- - uses: actions/checkout@v4
28
- - uses: actions/setup-python@v5
27
+ - uses: actions/checkout@v7
28
+ - uses: actions/setup-python@v7
29
29
  with:
30
30
  python-version: ${{ matrix.python }}
31
31
  cache: pip
@@ -35,8 +35,8 @@ jobs:
35
35
  build:
36
36
  runs-on: ubuntu-latest
37
37
  steps:
38
- - uses: actions/checkout@v4
39
- - uses: actions/setup-python@v5
38
+ - uses: actions/checkout@v7
39
+ - uses: actions/setup-python@v7
40
40
  with:
41
41
  python-version: "3.12"
42
42
  - run: pip install build twine
@@ -14,8 +14,8 @@ jobs:
14
14
  permissions:
15
15
  contents: write
16
16
  steps:
17
- - uses: actions/checkout@v4
18
- - uses: actions/setup-python@v5
17
+ - uses: actions/checkout@v7
18
+ - uses: actions/setup-python@v7
19
19
  with:
20
20
  python-version: "3.12"
21
21
  - name: Check the tag matches the package version
@@ -27,7 +27,7 @@ jobs:
27
27
  env:
28
28
  GH_TOKEN: ${{ github.token }}
29
29
  run: gh release upload "${{ github.event.release.tag_name }}" dist/* --clobber
30
- - uses: actions/upload-artifact@v4
30
+ - uses: actions/upload-artifact@v7
31
31
  with:
32
32
  name: dist
33
33
  path: dist/
@@ -40,7 +40,7 @@ jobs:
40
40
  permissions:
41
41
  id-token: write
42
42
  steps:
43
- - uses: actions/download-artifact@v4
43
+ - uses: actions/download-artifact@v8
44
44
  with:
45
45
  name: dist
46
46
  path: dist/
@@ -2,6 +2,62 @@
2
2
 
3
3
  All notable changes to this project. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
4
 
5
+ ## [Unreleased]
6
+
7
+ ## [0.15.2] - 2026-12-01
8
+
9
+ ### Fixed
10
+ - **`gpu init --claude` normalizes reasoning effort so Claude Code does not 400.** Claude Code asks for effort `high`; self-hosted thinking models (Qwen3.x and others) accept `xhigh/medium/low` and reject `high`. The written gateway now maps `high` to `xhigh` and drops any level the model does not list.
11
+ - **`gpu init` sizes the GPU for a vLLM model from its weights.** It wrote the 24 GB default for every chat model, so `gpu setup` on a 27B (needs ~74 GB) would rent a card it cannot boot on. It now reads the weight size from the model card, the same floor `gpu inspect-model` prints.
12
+
13
+ ## [0.15.1] - 2026-12-01
14
+
15
+ ### Added
16
+ - **`gpu login --hf`** saves a Hugging Face token in `~/.gpu/credentials` after checking it with Hugging Face, and `gpu login --check` shows whether one is there. Gated models no longer need an `export`.
17
+ - **`gpu setup` says what the model server is doing.** Every 15 s it prints the last line of the server's log (download, `torch.compile`, CUDA graphs) instead of "still starting".
18
+
19
+ ### Fixed
20
+ - **A failed setup keeps the server's log.** The machine was destroyed with its log, so `gpu logs` had nothing to read; the log is now saved to `.gpu/logs/setup-failure-<id>.log` and its last lines printed before the cleanup.
21
+ - `gpu claude -p "..." --permission-mode ...` passes options through to `claude` (it rejected `-p`), and needs no Claude account: it sends a placeholder credential the gateway drops.
22
+ - A wrong Vast.ai key says the key was rejected, not `object not found: GET /users/current/`.
23
+ - `gpu setup` on a project made with `--claude` ends with `next: gpu claude`; `gpu init` asks for `gpu login` only when no account is connected; the low-balance warning prints dollars.
24
+
25
+ ## [0.15.0] - 2026-12-01
26
+
27
+ ### Added
28
+ - **`gpu claude`: Claude Code on your own model, in one command.** It reads `gpu.yaml`, starts the gateway if it is not listening, and launches `claude` with the base URL, the model for every alias, the context window (`runtime.context_length`) and an output cap that fits in it. Arguments after `gpu claude` go to `claude`. Guide: [docs/CLAUDE_CODE.md](docs/CLAUDE_CODE.md); step by step: [docs/RUNBOOK.md](docs/RUNBOOK.md).
29
+ - **`gpu init --claude`** writes a project `gpu claude` can use as is: a gateway on `127.0.0.1:18090` with the `anthropic-openai` adapter, `tool_calling: auto` and a 32k window (the default 16k does not hold Claude Code's own prompt and tools).
30
+ - **`runtime.engine: llama`**: GGUF models on `llama-server`, under the same lifecycle as vLLM (health, the watchdog's activity probe, per-machine key).
31
+ - **Gateway adapter `anthropic-openai`**: Anthropic `/v1/messages` in, OpenAI `/v1/chat/completions` out, and the answer back, streaming and tool calls included. Any OpenAI-only backend can now serve Claude Code.
32
+ - `gpu init` also writes a project skeleton: `CLAUDE.md`, `scripts/` and `work/`.
33
+ - **Setup picks hosts that can download the model fast, and llama.cpp gets its weights over 32 connections.** In the lab's own setups on Vast, a 27B model took a median of 9.3 minutes to serve and a 26.6 GB GGUF 17 minutes, nearly all of it downloading weights. A benchmark on two rented hosts (2026-11-21, [benchmarks/fetch-rate](benchmarks/fetch-rate/)) found two causes:
34
+ - The host's link, for everything. The same 55.6 GB took 494 s on an 864 Mbps host and 52 s on an 8 Gbps one. For `vllm` and `llama`, `setup` now raises Vast's `min_inet_down_mbps` so the weights can arrive in about 90 s (up to 5000 Mbps). That day it did not change the cheapest 80 GB offer.
35
+ - llama.cpp's single connection. Its `-hf` download ran at 119 MB/s on the fast host. With `runtime.fetch: auto`, the watchdog now downloads a llama model's GGUF, and its vision projector when the repo has one, over 32 connections before the server starts (446 MB/s on the same host), and starts `llama-server -m`. A host that downloads slower than `health.fetch_min_mbps` (200) for `health.fetch_slow_timeout` (2m) is replaced like a stalled image pull. If the fetcher cannot help, the server downloads as before.
36
+ - vLLM keeps its own download: `huggingface_hub` with `hf_xet` reached 1065 MB/s on the fast host, more than the fetcher's 439. `runtime.fetch: watchdog` forces the fetcher, `server` turns it off.
37
+ - `gpu setup` notices the model server is up within 2 s (`health.interval` default 2s, was 60s clamped to 30s).
38
+ - New events: `weights_fetch_started`, `weights_fetch_ended` (with `mb_per_s`).
39
+ - **`lifecycle.park`: the machine waits for you, if you pay for its disk.** With `park: 6h`, an idle machine stops and keeps its disk instead of being destroyed, and the next `gpu setup` restarts it with the weights already there. A restart measured 41 s; a cold setup of a 27B model took a median of 557 s in our logs. If the parked machine is not running within 2 minutes (on Vast.ai its GPU may have been rented by someone else), setup destroys it and rents a new one, and records `park_restart_failed`. The disk bills while parked (about $0.27 for 6 h for 120 GB on Vast.ai at today's median storage price), and only the sweep timer removes it when `park` runs out, so `gpu validate` warns when the timer is not installed. Off by default: nothing bills after a session unless you turn it on.
40
+ - **`gpu gateway`: a managed local endpoint that follows the machine.** Provisioning a model is only half the job - you still have to reach it, and the rented machine's `base_url` changes every time it is re-rented. `gpu gateway start` runs a loopback endpoint (127.0.0.1) that forwards to the current instance, re-reading the endpoint from state so it keeps working across stop/restart. `gpu gateway install` writes a systemd user service (`Type=simple`, `Restart=always`, boot-safe via linger) so the gateway owns its own lifecycle instead of being a hand-run script. Pluggable adapters shape the request per client: `openai`, `anthropic` (drops the client's own credential so a claude.ai OAuth token never reaches the rented machine, injects the instance key, renames the model to the served one) and `none` (transparent), plus a `gateway.plugin` escape hatch mirroring provider plugins. The `anthropic` adapter also normalizes reasoning effort across `reasoning_effort`, `reasoning.effort` and `output_config.effort`, mapping to what the served model accepts, so a client that spells an effort level differently no longer 400s. New `gateway:` section in gpu.yaml; off by default.
41
+ - **`gpu dashboard`: a read-only control-plane web UI.** Provisioning and a stable endpoint still leave you driving the CLI (or an agent) for every look — what is running, what it costs, is it idle, is the proxy healthy, why did that request fail. `gpu dashboard start` runs a loopback web page (sibling to `gpu gateway`) that shows every GPU, proxy and service this host can see — model, cost, idle, state, reachability — from each project's `.gpu/state.json`. A background watch probes each endpoint on an interval and keeps a short rolling window, so a transient fault (a slow connect, a 5xx burst, an `Errno 110` connection timeout) is visible the moment it happens. `gpu dashboard install` writes a systemd user service (`Type=simple`, `Restart=always`, boot-safe via linger), like the gateway. Read-only by default — no route mutates anything; bound to 127.0.0.1, and a non-loopback bind requires a token so the fleet is never served open (reach it over Tailscale/SSH). **Optional control** (`dashboard.control_enabled`, off by default) turns it into a live console: it **reconciles local state against the provider's live instance list** so a ghost (a project whose `state.json` still names a destroyed machine) is marked gone instead of shown running; it lists **offers and rents** a GPU, fetches **logs**, and **stops / destroys / locks** any project this host manages — each action targeting that project's own directory via the `gpu` CLI (so every provider works), behind the token **and** an explicit confirm. Enabling control means the service shells `gpu setup/stop/destroy` and so needs provider credentials. New `dashboard:` section in gpu.yaml; off by default.
42
+
43
+ ### Fixed
44
+ - **`compute.gpu.name_filter` finds the card on Vast.ai when cheaper cards exist.** The filter was applied to the 24 cheapest offers the search returned, so `name_filter: A100` found nothing whenever 24 cheaper cards were on offer (on 2026-11-21 there were 119 offers that matched, 9 of them A100s, and none among the cheapest 24). With a name filter, the search now asks for up to 1000 offers before filtering.
45
+ - **On Vast.ai, the quoted price now includes the disk.** The offer search did not tell Vast how much disk the machine gets, so Vast priced every offer with a few GB. `gpu offers`, the budget check and the price cap on a pinned quote all missed the disk: an A100 SXM4 quoted at $1.078/h rented at $1.275/h with `disk_gb: 150`. The search now sends `disk_gb`, and the price it shows is the price the machine bills.
46
+ - **A machine found gone long after it ended no longer bills until the moment someone noticed.** The reconcile closed the session's cost at "now", so a project left without a provider key for two days reported $65 for a machine Vast billed 1.4 h ($1.62). The state now keeps `last_seen` (the last time the provider confirmed the machine) and bills until the first lifecycle rule that came due after it, or until `last_seen`; `state_reconciled` carries `cost_if_ran_until_now_usd` as the worst case.
47
+ - **The inferred reason for a vanished machine is the first rule that came due, not whichever rule applies today.** Replaying the rules as of "now" blamed `max_lifetime` for a machine that the idle rule had ended 54 hours earlier. `instance_destroyed` now records what was observed (`reason: unknown`, `by: unknown`) and the inference apart (`likely_reason`, `likely_by`, `due_at`, `inferred: true`).
48
+ - **`gpu status` says when it could not ask the provider.** It showed the cached `ready` and a frozen cost as if current; it now prints a red `STALE` line, and `--json` has `reconciled: false`, `stale_reason` and `last_seen`.
49
+
50
+ ### Documentation
51
+ - **Engineering dossier** ([docs/engineering/dossier.md](docs/engineering/dossier.md)): how each part works (providers, setup and serving, the watchdog and cost caps, jobs and the queue, the agent surfaces), the design decisions, what failed and what changed, the known limits, and where to start reading the code. Every statement cites the lines of code that back it, at a pinned commit. It is linked from the README, the docs site and `llms.txt`.
52
+ - **The docs now say what the code does where the dossier found they did not.**
53
+ - CONFIG.md: `max_lifetime` counts from the session start, so a restart gets a new lease; `max_session_cost_usd` applies only after `/identify` delivers the price and not to pool machines; `health.interval` is clamped to 30 s; `trust_remote_code`, `served_name` and `dtype` say which engines honour them; `ssh_counts_as_activity` is marked as having no effect.
54
+ - README and the docs site: changing `model.id` swaps the model in place only with `hf` and `custom`; `vllm` and `llama` need `gpu setup --recreate`.
55
+ - QUEUE.md: a failed health check sends a job back to the queue only when the job also exited non-zero, not by timeout.
56
+ - JOBS.md: documents `max_cost_usd` and `min_vram_gb` in `gpujob.yaml` (queue preflight only).
57
+ - ADDING_A_PROVIDER.md and PROVIDERS.md: what happens when an adapter returns no watchdog spec, where published ports come from, and how narrow the provider-name test is.
58
+ - The skill: Vast.ai, RunPod and Lambda are all built in, and `gpu_run` returns the command's own exit code in a normal result.
59
+ - Docstrings and help text: the watchdog's route list, the gateway and dashboard services (Linux only), the dashboard's control mode, `gpu providers`, and the gateway plugin path.
60
+
5
61
  ## [0.14.0] - 2026-11-12
6
62
 
7
63
  ### Added
@@ -20,7 +20,7 @@ curl -fsSL https://raw.githubusercontent.com/jambuai/gpu4agents/main/install.sh
20
20
 
21
21
  The script needs only `curl` (Linux or macOS; on Windows, run it inside WSL). It installs [uv](https://docs.astral.sh/uv/) if missing, uses it to install the `gpu4agents` package with a Python it downloads by itself, and then installs the skill and registers the `gpu` MCP server for your runtime. It does not ask for or read any key.
22
22
 
23
- Check: `~/.local/bin/gpu --version` prints 0.13.0 or later.
23
+ Check: `~/.local/bin/gpu --version` prints 0.15.2 or later.
24
24
 
25
25
  For the rest of this session, call the command by its full path, `~/.local/bin/gpu`. Your shell may define `gpu` as an alias: Oh My Zsh's git plugin, on by default, makes `gpu` mean `git push upstream`, and an alias wins over the command, so plain `gpu setup` could run git instead. The installer removes that alias for new shells and says so; tell the user if it did. The same command is also installed as `gpu4agents`.
26
26
 
@@ -35,8 +35,12 @@ env: # extra environment variables
35
35
  timeout: 2h # killed after this long (exit 124)
36
36
  exclude: [data/raw, "*.ckpt"] # left out of the upload
37
37
  label: lora-qwen-7b
38
+ max_cost_usd: 5 # queue only: refused if the timeout costs more at the pool's price
39
+ min_vram_gb: 40 # queue only: refused if the pool's card has less VRAM
38
40
  ```
39
41
 
42
+ `max_cost_usd` and `min_vram_gb` are read only by the queue ([queue.md](https://gpu4agents.jambu.ai/queue.md)). Its preflight checks them before the job runs: a job whose `timeout` would cost more than `max_cost_usd` at the pool's hourly price, or that needs more VRAM than the pool's card, fails at once and rents nothing. Without `max_cost_usd`, the project's `queue.defaults.max_cost_usd` applies. `gpu job run` on a single machine ignores both; size that machine with `compute.gpu.min_vram_gb` in `gpu.yaml`.
43
+
40
44
  These never upload: `.git`, virtualenvs, `__pycache__`, `node_modules`, `.gpu`, `.env` and `.env.*`, and `gpu-outputs/`. The upload limit is 2 GB. Have the job download large data itself (Hugging Face, a URL) instead of shipping it.
41
45
 
42
46
  ## 3. What the job can count on
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: gpu4agents
3
- Version: 0.14.0
3
+ Version: 0.15.2
4
4
  Summary: GPU for Agents: your coding agent rents the GPU it needs, on its own. You pay only while it works.
5
5
  Project-URL: Homepage, https://gpu4agents.jambu.ai
6
6
  Project-URL: Documentation, https://github.com/jambuai/gpu4agents/tree/main/docs
@@ -170,7 +170,7 @@ gpu init --model BAAI/bge-m3 # embeddings -> /v1/embeddings
170
170
  gpu setup && eval "$(gpu env)" # OPENAI_BASE_URL, OPENAI_API_KEY, JAMBU_MODEL_ID
171
171
  ```
172
172
 
173
- Requests count as activity, so the machine stays up while clients call it and stops by itself once they stop. Pointing `model.id` at another model and running `gpu setup` again swaps the model on the same GPU, with no new rental. When no built-in server can load a model, `gpu init --engine custom` writes a small server for the agent to fill in, and gpu runs it the same way. [SERVING.md](SERVING.md) has the contract, the routes and the limits.
173
+ Requests count as activity, so the machine stays up while clients call it and stops by itself once they stop. With the `hf` and `custom` engines, pointing `model.id` at another model and running `gpu setup` again swaps the model on the same GPU, with no new rental. With `vllm` and `llama` the model is fixed when the machine is created, so a new `model.id` needs `gpu setup --recreate`, which replaces the machine. When no built-in server can load a model, `gpu init --engine custom` writes a small server for the agent to fill in, and gpu runs it the same way. [SERVING.md](SERVING.md) has the contract, the routes and the limits.
174
174
 
175
175
  ## Use any GPU provider
176
176
 
@@ -225,6 +225,7 @@ A full example is [`gpu.example.yaml`](gpu.example.yaml). `gpu ls` shows every m
225
225
 
226
226
  ## Docs
227
227
 
228
+ - [Claude Code on your own model, step by step (pt-BR)](docs/RUNBOOK.md)
228
229
  - [Letting a coding agent rent GPUs (Claude Code, Codex, Gemini CLI, Cursor, Claude Desktop)](docs/AGENTS.md)
229
230
  - [Integrating into an application (any language)](docs/INTEGRATION.md)
230
231
  - [Running your own code as a job](JOBS.md)
@@ -234,6 +235,7 @@ A full example is [`gpu.example.yaml`](gpu.example.yaml). `gpu ls` shows every m
234
235
  - [Choosing a model](docs/CHOOSING_A_MODEL.md)
235
236
  - [How shutdown works](docs/LIFECYCLE.md)
236
237
  - [Adding a provider](docs/ADDING_A_PROVIDER.md), and [the steps for an agent](PROVIDERS.md)
238
+ - [Engineering dossier: how it works, what failed and what changed, known limits, each statement cited to the code](docs/engineering/dossier.md)
237
239
 
238
240
  ## Coming from `jambu-gpu`
239
241
 
@@ -37,7 +37,7 @@ What each part must do:
37
37
  | `capabilities` | Declare only what the API supports. Set `stop_eliminates_billing=False` if a stopped machine still bills for disk. |
38
38
  | `verify_credentials` | Call an account endpoint with the key the user typed into `gpu login`. Return only safe fields, such as `{"balance_usd": 12.5}`. Never return an email, a name or the key. |
39
39
  | `find_offers` | List GPUs for rent that fit `spec.gpu.min_vram_gb`, `spec.gpu.count`, `spec.disk_gb` and `spec.max_hourly_cost_usd`, cheapest first. |
40
- | `setup` | Rent one machine: image `spec.image`, environment `spec.env`, label `spec.label`, every port in `spec.ports` published, and `spec.onstart` run at boot. That script starts the model server and the watchdog. |
40
+ | `setup` | Rent one machine: image `spec.image`, environment `spec.env`, label `spec.label`, every port in `spec.ports` published (the model port and, when the watchdog is on, its port; the built-in adapters build the same list from the config in `_wanted_ports()`), and `spec.onstart` run at boot. That script starts the model server and the watchdog. |
41
41
  | `status`, `_to_instance` | Map the provider's states onto `InstanceState` and its published ports onto `endpoints["model"]` and `endpoints["watchdog"]`. |
42
42
  | `stop`, `destroy` | Succeed when the machine is already stopped or gone. |
43
43
  | `list_instances` | Return only machines whose label starts with `jambu-`. Never touch anything else in the account. |
@@ -134,7 +134,7 @@ Agents use the MCP tools `gpu_queue_submit`, `gpu_queue_status`, `gpu_queue_canc
134
134
  3. A machine that passed the health check takes the job. The coordinator moves that machine's deadline in its watchdog to cover the job's timeout plus a margin. While work keeps arriving the deadline keeps moving, and a warm machine runs job after job without being set up again. If the coordinator dies nobody moves it: the machine finishes what it has and ends at its deadline at the latest, or after `idle_timeout` with nothing running, whichever comes first.
135
135
  4. When the job ends, the coordinator fetches its outputs, stores them in the output store with a sha256 manifest, verifies them, and only then settles the job as `succeeded`. Nothing on the machine is deleted before that.
136
136
 
137
- When a machine disappears, stops answering for `unresponsive_after`, or fails the health check right after a job, the job goes back to the queue and runs on another machine, up to `max_attempts`. A job that exits non-zero while the machine is healthy is the job's fault and is not retried automatically (`gpu queue retry` does it by hand). Every attempt's outcome is recorded: `succeeded`, `job_failed`, `timeout`, `machine_lost`, `unhealthy`, `unresponsive`, `preflight_rejected`, `cancelled`, `delivery_failed`, `drained`, `not_started`.
137
+ When a machine disappears, stops answering for `unresponsive_after`, or the job exits non-zero (not by timeout) and the machine then fails the health check, the job goes back to the queue and runs on another machine, up to `max_attempts`. A machine that fails the health check after a clean exit is retired, but the job keeps its result and is delivered as `succeeded`. A job that exits non-zero while the machine is healthy is the job's fault and is not retried automatically (`gpu queue retry` does it by hand). Every attempt's outcome is recorded: `succeeded`, `job_failed`, `timeout`, `machine_lost`, `unhealthy`, `unresponsive`, `preflight_rejected`, `cancelled`, `delivery_failed`, `drained`, `not_started`.
138
138
 
139
139
  A retried attempt starts from scratch, but its `run` is prefixed with `export JAMBU_PREVIOUS_OUTPUT_DIR=...`: the verified outputs of the earlier attempt are there, so a job that writes checkpoints can resume. The job decides whether to use them. The same directory is described in [jobs.md](https://gpu4agents.jambu.ai/jobs.md).
140
140
 
@@ -123,7 +123,7 @@ gpu init --model BAAI/bge-m3 # embeddings -> /v1/embeddings
123
123
  gpu setup && eval "$(gpu env)" # OPENAI_BASE_URL, OPENAI_API_KEY, JAMBU_MODEL_ID
124
124
  ```
125
125
 
126
- Requests count as activity, so the machine stays up while clients call it and stops by itself once they stop. Pointing `model.id` at another model and running `gpu setup` again swaps the model on the same GPU, with no new rental. When no built-in server can load a model, `gpu init --engine custom` writes a small server for the agent to fill in, and gpu runs it the same way. [SERVING.md](SERVING.md) has the contract, the routes and the limits.
126
+ Requests count as activity, so the machine stays up while clients call it and stops by itself once they stop. With the `hf` and `custom` engines, pointing `model.id` at another model and running `gpu setup` again swaps the model on the same GPU, with no new rental. With `vllm` and `llama` the model is fixed when the machine is created, so a new `model.id` needs `gpu setup --recreate`, which replaces the machine. When no built-in server can load a model, `gpu init --engine custom` writes a small server for the agent to fill in, and gpu runs it the same way. [SERVING.md](SERVING.md) has the contract, the routes and the limits.
127
127
 
128
128
  ## Use any GPU provider
129
129
 
@@ -178,6 +178,7 @@ A full example is [`gpu.example.yaml`](gpu.example.yaml). `gpu ls` shows every m
178
178
 
179
179
  ## Docs
180
180
 
181
+ - [Claude Code on your own model, step by step (pt-BR)](docs/RUNBOOK.md)
181
182
  - [Letting a coding agent rent GPUs (Claude Code, Codex, Gemini CLI, Cursor, Claude Desktop)](docs/AGENTS.md)
182
183
  - [Integrating into an application (any language)](docs/INTEGRATION.md)
183
184
  - [Running your own code as a job](JOBS.md)
@@ -187,6 +188,7 @@ A full example is [`gpu.example.yaml`](gpu.example.yaml). `gpu ls` shows every m
187
188
  - [Choosing a model](docs/CHOOSING_A_MODEL.md)
188
189
  - [How shutdown works](docs/LIFECYCLE.md)
189
190
  - [Adding a provider](docs/ADDING_A_PROVIDER.md), and [the steps for an agent](PROVIDERS.md)
191
+ - [Engineering dossier: how it works, what failed and what changed, known limits, each statement cited to the code](docs/engineering/dossier.md)
190
192
 
191
193
  ## Coming from `jambu-gpu`
192
194
 
@@ -0,0 +1,2 @@
1
+ fetch_ext.py
2
+ gpu-outputs/
@@ -0,0 +1,26 @@
1
+ # Weight-fetch benchmark
2
+
3
+ Measures how fast a rented Vast machine gets model weights from Hugging Face: with `gpu4agents/watchdog/fetch_ext.py`, and with the downloads vLLM and llama.cpp do on their own. It backs the numbers in [docs/engineering/fast-provisioning.md](../../docs/engineering/fast-provisioning.md).
4
+
5
+ ```bash
6
+ cp ../../gpu4agents/watchdog/fetch_ext.py . # the job imports it
7
+ gpu offers # show the card and price, get a yes
8
+ gpu setup --offer <id>
9
+ gpu job run # about 30 minutes
10
+ gpu destroy --confirm
11
+ ```
12
+
13
+ The results land in `gpu-outputs/<job id>/results.json`.
14
+
15
+ ## Results, 2026-11-21
16
+
17
+ Two Vast hosts, about $1.20 in all. The raw numbers are in `results-2026-11-21.json`.
18
+
19
+ | Download | A100 SXM4, 864 Mbps advertised | Quadro RTX 8000, 7988 Mbps advertised |
20
+ | --- | --- | --- |
21
+ | 27.5 GB GGUF, one connection (llama.cpp `-hf`) | 67 MB/s | 119 MB/s |
22
+ | 27.5 GB GGUF, fetcher, 32 connections | 117 MB/s | 446 MB/s |
23
+ | 55.6 GB safetensors, fetcher, 32 connections | 100 MB/s | 439 MB/s |
24
+ | 55.6 GB safetensors, `huggingface_hub` 2.2.0 + `hf_xet` 1.7.0 (vLLM) | 112 MB/s | 1065 MB/s |
25
+
26
+ On the slow host the link caps every method at about 110 MB/s. On the fast host, `hf_xet` beats the fetcher, and the fetcher beats a single connection by 3.7 times. That is why `runtime.fetch: auto` uses the fetcher for llama.cpp only.
@@ -0,0 +1,152 @@
1
+ """Weight-fetch benchmark: the fetcher against the downloads the servers do today.
2
+
3
+ Cases, each on an empty directory, deleted afterwards:
4
+ gguf/fetcher-16 26.6 GB GGUF, our fetcher, 16 connections
5
+ gguf/fetcher-32 the same, 32 connections
6
+ gguf/single-stream one connection, what llama.cpp's -hf does (capped at 180 s)
7
+ st/fetcher-16 55.6 GB of safetensors, our fetcher
8
+ st/hf-default huggingface_hub.snapshot_download as vLLM calls it
9
+ st/hf-xet-high the same with HF_XET_HIGH_PERFORMANCE=1
10
+
11
+ Results go to $JAMBU_OUTPUT_DIR/results.json, one line per case as it ends.
12
+ """
13
+
14
+ import json
15
+ import os
16
+ import shutil
17
+ import subprocess
18
+ import sys
19
+ import time
20
+
21
+ import fetch_ext
22
+
23
+ OUT = os.environ.get("JAMBU_OUTPUT_DIR", "out")
24
+ WORK = "/workspace/bench"
25
+ ST = "xtools-at/Qwensploit-V2-27B-CyberSecurity-Qwen3.8"
26
+ GGUF = "peculiar-ragdoll/Cyber-Tiel-Coder-35B-A3B-GGUF"
27
+ GGUF_QUANT = "Q5_K_XL"
28
+ results = []
29
+
30
+
31
+ def _hub_python():
32
+ """The interpreter vLLM runs under (the image's PATH python is a shim)."""
33
+ for exe in ("/usr/bin/python3", "python3", sys.executable):
34
+ if subprocess.run([exe, "-c", "import huggingface_hub"], capture_output=True).returncode == 0:
35
+ return exe
36
+ return sys.executable
37
+
38
+
39
+ HUB_PY = _hub_python()
40
+
41
+
42
+ def record(case, **fields):
43
+ row = dict(case=case, **fields)
44
+ results.append(row)
45
+ print(json.dumps(row), flush=True)
46
+ with open(os.path.join(OUT, "results.json"), "w") as handle:
47
+ json.dump(results, handle, indent=1)
48
+
49
+
50
+ def fresh(name):
51
+ path = os.path.join(WORK, name)
52
+ shutil.rmtree(path, ignore_errors=True)
53
+ os.makedirs(path)
54
+ return path
55
+
56
+
57
+ def fetcher(case, repo, engine, quant, workers):
58
+ dest = fresh(case.replace("/", "_"))
59
+ found = fetch_ext.fetch_plan(repo, "main", engine, quant)
60
+ started = time.time()
61
+ fetch_ext.fetch_download(repo, "main", found["files"], dest, workers=workers)
62
+ seconds = time.time() - started
63
+ record(case, bytes=found["bytes_total"], seconds=round(seconds, 1),
64
+ mb_per_s=round(found["bytes_total"] / 1e6 / seconds, 1), workers=workers)
65
+ shutil.rmtree(dest, ignore_errors=True)
66
+ return found
67
+
68
+
69
+ def single_stream(case, repo, path, cap_s=180):
70
+ response, _ = fetch_ext._fetch_open(fetch_ext.fetch_resolve_url(repo, "main", path))
71
+ started = time.time()
72
+ got = 0
73
+ with response:
74
+ while time.time() - started < cap_s:
75
+ block = response.read(1 << 20)
76
+ if not block:
77
+ break
78
+ got += len(block)
79
+ seconds = time.time() - started
80
+ record(case, bytes=got, seconds=round(seconds, 1), mb_per_s=round(got / 1e6 / seconds, 1),
81
+ capped=seconds >= cap_s)
82
+
83
+
84
+ def hf_snapshot(case, repo, high_performance):
85
+ dest = fresh(case.replace("/", "_"))
86
+ env = dict(os.environ, HF_HOME=os.path.join(dest, "hf"))
87
+ env.pop("HF_XET_HIGH_PERFORMANCE", None)
88
+ if high_performance:
89
+ env["HF_XET_HIGH_PERFORMANCE"] = "1"
90
+ code = (
91
+ "import huggingface_hub as h;"
92
+ f"h.snapshot_download({repo!r}, allow_patterns=['*.safetensors','*.json','*.txt','*.model'])"
93
+ )
94
+ started = time.time()
95
+ done = subprocess.run([HUB_PY, "-c", code], env=env)
96
+ seconds = time.time() - started
97
+ size = sum(
98
+ os.path.getsize(os.path.join(root, f))
99
+ for root, _, files in os.walk(os.path.join(dest, "hf"))
100
+ for f in files
101
+ if not os.path.islink(os.path.join(root, f))
102
+ )
103
+ record(case, bytes=size, seconds=round(seconds, 1), mb_per_s=round(size / 1e6 / seconds, 1),
104
+ exit_code=done.returncode)
105
+ shutil.rmtree(dest, ignore_errors=True)
106
+
107
+
108
+ def host():
109
+ versions = subprocess.run(
110
+ [HUB_PY, "-c",
111
+ "import importlib.metadata as m\n"
112
+ "for p in ('huggingface_hub','hf_xet','hf_transfer'):\n"
113
+ " try: print(p, m.version(p))\n"
114
+ " except Exception: print(p, 'absent')"],
115
+ capture_output=True, text=True,
116
+ ).stdout.split("\n")
117
+ record("host", python=HUB_PY, cpus=os.cpu_count(), free_gb=round(shutil.disk_usage("/workspace").free / 1e9),
118
+ packages=[v for v in versions if v])
119
+
120
+
121
+ def main():
122
+ os.makedirs(OUT, exist_ok=True)
123
+ host()
124
+ only = set(filter(None, os.environ.get("BENCH_CASES", "").split(",")))
125
+
126
+ def wanted(case):
127
+ return not only or case in only
128
+
129
+ if wanted("gguf/fetcher-16"):
130
+ fetcher("gguf/fetcher-16", GGUF, "llama", GGUF_QUANT, 16)
131
+ if wanted("gguf/fetcher-32"):
132
+ fetcher("gguf/fetcher-32", GGUF, "llama", GGUF_QUANT, 32)
133
+ if wanted("gguf/fetcher-64"):
134
+ fetcher("gguf/fetcher-64", GGUF, "llama", GGUF_QUANT, 64)
135
+ if wanted("gguf/single-stream"):
136
+ found = fetch_ext.fetch_plan(GGUF, "main", "llama", GGUF_QUANT)
137
+ single_stream("gguf/single-stream", GGUF, found["files"][0][0])
138
+ if wanted("st/fetcher-16"):
139
+ fetcher("st/fetcher-16", ST, "vllm", None, 16)
140
+ if wanted("st/fetcher-32"):
141
+ fetcher("st/fetcher-32", ST, "vllm", None, 32)
142
+ if wanted("st/fetcher-64"):
143
+ fetcher("st/fetcher-64", ST, "vllm", None, 64)
144
+ if wanted("st/hf-default"):
145
+ hf_snapshot("st/hf-default", ST, False)
146
+ if wanted("st/hf-xet-high"):
147
+ hf_snapshot("st/hf-xet-high", ST, True)
148
+ shutil.rmtree(WORK, ignore_errors=True)
149
+
150
+
151
+ if __name__ == "__main__":
152
+ main()
@@ -0,0 +1,37 @@
1
+ # The weight-fetch benchmark (docs/engineering/fast-provisioning.md).
2
+ # A jobs-only machine on the same vLLM image setup uses on Vast, so the
3
+ # "server's own download" case runs the huggingface_hub vLLM really ships.
4
+ gpu_runtime:
5
+ version: 1
6
+
7
+ provider:
8
+ name: vast
9
+ profile: default
10
+ options:
11
+ # name_filter is applied after the search: look past the cheapest 24.
12
+ search_limit: 400
13
+ min_inet_down_mbps: 2000
14
+
15
+ compute:
16
+ gpu:
17
+ min_vram_gb: 24
18
+ count: 1
19
+ disk_gb: 150
20
+ image: vastai/vllm:v0.32.0-cuda-13.0
21
+
22
+ runtime:
23
+ engine: none
24
+
25
+ lifecycle:
26
+ max_lifetime: 2h
27
+ idle_timeout: 10m
28
+ stopped_ttl: 1h
29
+ auto_stop: true
30
+ auto_destroy: true
31
+ watchdog:
32
+ enabled: true
33
+ port: 8777
34
+
35
+ budget:
36
+ max_hourly_cost_usd: 0.50
37
+ max_session_cost_usd: 1.00
@@ -0,0 +1,3 @@
1
+ run: python3 -u bench.py
2
+ timeout: 90m
3
+ label: fetch-rate
@@ -0,0 +1,118 @@
1
+ {
2
+ "date": "2026-11-21",
3
+ "image": "vastai/vllm:v0.32.0-cuda-13.0",
4
+ "packages": {
5
+ "huggingface_hub": "2.2.0",
6
+ "hf_xet": "1.7.0"
7
+ },
8
+ "models": {
9
+ "gguf": "peculiar-ragdoll/Cyber-Tiel-Coder-35B-A3B-GGUF UD-Q5_K_XL + mmproj-BF16 (27.5 GB)",
10
+ "st": "xtools-at/Qwensploit-V2-27B-CyberSecurity-Qwen3.8 safetensors (55.6 GB)"
11
+ },
12
+ "hosts": [
13
+ {
14
+ "instance": 61744966,
15
+ "gpu": "A100 SXM4",
16
+ "region": "California, US",
17
+ "inet_down_mbps_advertised": 864,
18
+ "cpus": 256,
19
+ "usd_per_hour": 1.275,
20
+ "results": [
21
+ {
22
+ "case": "gguf/fetcher-16",
23
+ "bytes": 27495353472,
24
+ "seconds": 315.4,
25
+ "mb_per_s": 87.2,
26
+ "workers": 16
27
+ },
28
+ {
29
+ "case": "gguf/fetcher-32",
30
+ "bytes": 27495353472,
31
+ "seconds": 235.4,
32
+ "mb_per_s": 116.8,
33
+ "workers": 32
34
+ },
35
+ {
36
+ "case": "gguf/single-stream",
37
+ "bytes": 12050235392,
38
+ "seconds": 180.0,
39
+ "mb_per_s": 66.9,
40
+ "capped": true
41
+ },
42
+ {
43
+ "case": "st/fetcher-32",
44
+ "bytes": 55583489105,
45
+ "seconds": 555.9,
46
+ "mb_per_s": 100.0,
47
+ "workers": 32
48
+ },
49
+ {
50
+ "case": "st/hf-default",
51
+ "bytes": 55584856995,
52
+ "seconds": 494.5,
53
+ "mb_per_s": 112.4,
54
+ "exit_code": 0
55
+ },
56
+ {
57
+ "case": "st/hf-xet-high",
58
+ "bytes": 55584774292,
59
+ "seconds": 496.8,
60
+ "mb_per_s": 111.9,
61
+ "exit_code": 0
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "instance": 61802029,
67
+ "gpu": "Quadro RTX 8000",
68
+ "region": "US",
69
+ "inet_down_mbps_advertised": 7988,
70
+ "cpus": 64,
71
+ "usd_per_hour": 0.287,
72
+ "results": [
73
+ {
74
+ "case": "gguf/fetcher-32",
75
+ "bytes": 27495353472,
76
+ "seconds": 61.7,
77
+ "mb_per_s": 445.9,
78
+ "workers": 32
79
+ },
80
+ {
81
+ "case": "gguf/fetcher-64",
82
+ "bytes": 27495353472,
83
+ "seconds": 75.1,
84
+ "mb_per_s": 365.9,
85
+ "workers": 64
86
+ },
87
+ {
88
+ "case": "gguf/single-stream",
89
+ "bytes": 21431844864,
90
+ "seconds": 180.0,
91
+ "mb_per_s": 119.1,
92
+ "capped": true
93
+ },
94
+ {
95
+ "case": "st/fetcher-32",
96
+ "bytes": 55583489105,
97
+ "seconds": 126.6,
98
+ "mb_per_s": 439.1,
99
+ "workers": 32
100
+ },
101
+ {
102
+ "case": "st/fetcher-64",
103
+ "bytes": 55583489105,
104
+ "seconds": 148.8,
105
+ "mb_per_s": 373.4,
106
+ "workers": 64
107
+ },
108
+ {
109
+ "case": "st/hf-default",
110
+ "bytes": 55584488447,
111
+ "seconds": 52.2,
112
+ "mb_per_s": 1065.4,
113
+ "exit_code": 0
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ }
@@ -25,7 +25,7 @@ Thirty-one guarantees, mapped to the code and the test that holds each one.
25
25
  | 19 | A manual stop that keeps billing is never silent, and something removes it | `Engine.stop` returns `still_billing`, `stopped_cost_usd_per_day` (Vast: `storage_cost` x disk) and a `warning` naming the bill and whether the sweep timer will remove it; every `gpu` command warns on stderr about a registered machine stopped and billing (`core/sweep.py::stopped_and_billing`, state files only); `gpu agent install` asks once to install the sweep timer, the only thing that enforces `stopped_ttl` on a stopped machine | `test_field_run.py::test_stop_where_a_stopped_machine_bills_says_so_and_names_the_bill`, `::test_every_command_warns_about_a_stopped_machine_still_billing`, `::test_acceptance_manual_stop_then_only_the_timer_runs`, `::test_agent_install_asks_once_for_the_sweep_timer` |
26
26
  | 20 | A project is never kept where it will be lost, and a lost project's machine can be taken over | `gpu init` refuses a temporary or scratchpad folder (`core/paths.py::ephemeral_reason`, `--allow-temp` overrides); `gpu adopt` (`Engine.adopt`) takes over an orphan, recovering its watchdog token and model key from the boot script the provider kept (`GPUProvider.boot_script`, `watchdog/builder.py::recover_boot_secrets`, which never returns the provider key) | `test_field_run.py::test_init_refuses_a_temp_or_scratchpad_directory`, `::test_adopt_takes_over_an_orphan_with_its_watchdog_and_key`, `::test_adopt_refuses_another_projects_machine_or_a_foreign_one`, `::test_boot_script_recovery_reads_the_token_and_key_but_never_the_provider_key` |
27
27
  | 21 | The card the user approved is the card rented, at no more than the price quoted | `gpu offers` remembers its offers in `.gpu/offers.json`; `gpu setup --offer ID` pins the card's name and caps the price at the quote, host retries included, and rents nothing if it is gone; every setup reports `rented`, `quoted` and `matches_quote` | `test_field_run.py::test_a_pinned_setup_never_falls_back_to_another_card`, `::test_a_pinned_setup_never_pays_more_than_the_quote`, `::test_a_pinned_host_retry_stays_on_the_quoted_card`, `::test_an_unpinned_setup_says_when_it_rented_something_else` |
28
- | 22 | A machine that vanished leaves a reason | `Engine._why_missing` replays this project's rules on what was last known; when they called for a destroy, the reconcile records `instance_destroyed reason=<rule> by=watchdog inferred=true`, else `likely_reason: unknown`; setup brings the watchdog's own events home as soon as the machine is ready | `test_field_run.py::test_a_machine_gone_after_its_idle_timeout_is_recorded_as_the_watchdogs_doing`, `::test_a_machine_gone_while_in_use_is_not_blamed_on_the_watchdog`, `::test_setup_brings_the_watchdogs_own_events_home` |
28
+ | 22 | A machine that vanished leaves a reason | `Engine._why_missing` replays this project's rules forward from `last_seen` and takes the first one due; when it calls for a destroy, the reconcile records `instance_destroyed reason=unknown by=unknown likely_reason=<rule> likely_by=watchdog due_at=<t> inferred=true` and bills until `due_at` (else until `last_seen`), else `likely_reason: unknown`; `gpu status` says `STALE` when the provider could not be asked; setup brings the watchdog's own events home as soon as the machine is ready | `test_field_run.py::test_a_machine_gone_after_its_idle_timeout_is_recorded_as_the_watchdogs_doing`, `::test_a_machine_gone_while_in_use_is_not_blamed_on_the_watchdog`, `::test_setup_brings_the_watchdogs_own_events_home`, `::test_a_machine_found_gone_days_later_is_blamed_on_the_first_rule_and_billed_until_then`, `::test_status_says_it_is_stale_when_the_provider_cannot_be_asked` |
29
29
  | 23 | The GPU is sized for the peak and offers can be compared per job | `model_inspect.known_vram_floor` (SDXL 16/24 GB, FLUX 24/32 GB) raises `gpu init`'s default and makes `validate` warn; `gpu offers --for <minutes on an RTX 4090>` ranks by estimated job cost (`providers/gpus.py::relative_speed`) | `test_field_run.py::test_validate_warns_when_the_card_is_sized_for_the_weights_not_the_peak`, `::test_init_sizes_a_known_image_model_for_its_peak`, `::test_offers_for_a_job_rank_by_the_cost_of_the_whole_job` |
30
30
  | 24 | Queue mode never leaves a GPU billing idle: the watchdog's idle rule is unchanged, a paused queue lets idle machines (`min_machines` too) time out, and a dead coordinator still ends in a destroy | `core/policy.py` (idle rule untouched, queued work counts as activity); `queue/pool.py` retires through the same engine; `core/sweep.py::guard_projects` guards pool slots and pulls finished jobs' outputs before a destroy | `test_policy.py::test_queued_workload_counts_as_activity`, `test_sweep.py::test_sweep_guards_pool_slots_of_a_registered_project`, `::test_sweep_pulls_a_pool_job_s_outputs_before_destroying`, `::test_stopped_billing_warning_counts_pool_machines`, `test_queue_coordinator.py::test_pause_stops_claims_but_not_running_jobs`, `::test_a_paused_queue_passes_no_min_machines_to_the_scaler` |
31
31
  | 25 | A coordinator crash leaves no machine running: each machine has a hard deadline in its own watchdog that only the coordinator moves | `policy.REASON_DEADLINE`, `watchdog/agent_body.py` `/deadline`, `Pool.extend_deadline`; a restarted pool resets its deadlines | `test_policy.py::test_deadline_ends_a_machine_even_with_work_running`, `::test_a_lock_does_not_override_the_deadline`, `test_watchdog.py::test_deadline_route_refuses_moving_backwards`, `test_queue_pool.py::test_extend_deadline_reaches_the_watchdog`, `::test_a_restarted_pool_reloads_its_machines_and_resets_their_deadline`, `test_queue_coordinator.py::test_the_deadline_moves_with_each_job` |