flyloft 0.4.0__tar.gz → 0.4.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 (557) hide show
  1. {flyloft-0.4.0 → flyloft-0.4.2}/.github/workflows/ci.yml +39 -8
  2. {flyloft-0.4.0 → flyloft-0.4.2}/AGENTS.md +1 -1
  3. {flyloft-0.4.0 → flyloft-0.4.2}/PKG-INFO +1 -1
  4. {flyloft-0.4.0 → flyloft-0.4.2}/docs/ARCHITECTURE.md +0 -1
  5. flyloft-0.4.2/docs/design/credential-discovery.md +65 -0
  6. flyloft-0.4.2/docs/plans/credential-discovery.md +38 -0
  7. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/_version.py +2 -2
  8. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/client/main.py +6 -1
  9. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/client/render.py +3 -0
  10. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/jobs.py +10 -1
  11. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/store.py +10 -0
  12. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/service/tick.py +3 -1
  13. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/skill/SKILL.md +3 -2
  14. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/assembly.py +4 -3
  15. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/_cj_implementer_rules.md.j2 +1 -0
  16. flyloft-0.4.0/src/flyloft/web/static/assets/index-iXMib-ny.js → flyloft-0.4.2/src/flyloft/web/static/assets/index-BJqnwDp9.js +1 -1
  17. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/static/index.html +1 -1
  18. {flyloft-0.4.0 → flyloft-0.4.2}/tests/conftest.py +26 -22
  19. {flyloft-0.4.0 → flyloft-0.4.2}/tests/durations.json +9 -0
  20. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_board5.py +2 -0
  21. flyloft-0.4.2/tests/e2e/test_board6.py +63 -0
  22. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_credentials.py +31 -0
  23. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_jobs.py +14 -0
  24. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_client.py +23 -1
  25. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_skill.py +4 -0
  26. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/api/live.ts +20 -4
  27. {flyloft-0.4.0 → flyloft-0.4.2}/.containerignore +0 -0
  28. {flyloft-0.4.0 → flyloft-0.4.2}/.github/dependabot.yml +0 -0
  29. {flyloft-0.4.0 → flyloft-0.4.2}/.github/workflows/python-publish.yaml +0 -0
  30. {flyloft-0.4.0 → flyloft-0.4.2}/.gitignore +0 -0
  31. {flyloft-0.4.0 → flyloft-0.4.2}/.python-version +0 -0
  32. {flyloft-0.4.0 → flyloft-0.4.2}/CLAUDE.md +0 -0
  33. {flyloft-0.4.0 → flyloft-0.4.2}/README.md +0 -0
  34. {flyloft-0.4.0 → flyloft-0.4.2}/docs/NEW_PROJECT.md +0 -0
  35. {flyloft-0.4.0 → flyloft-0.4.2}/docs/NEW_TEMPLATE.md +0 -0
  36. {flyloft-0.4.0 → flyloft-0.4.2}/docs/VISION.md +0 -0
  37. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/agent-interface.md +0 -0
  38. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/agent-isolation.md +0 -0
  39. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-1.md +0 -0
  40. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-2.md +0 -0
  41. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-3.md +0 -0
  42. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-4.md +0 -0
  43. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-5/campaign.html +0 -0
  44. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-5/campaigns.html +0 -0
  45. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-5/launch.html +0 -0
  46. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-5/pages.html +0 -0
  47. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/board-5.md +0 -0
  48. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/budget-billing.md +0 -0
  49. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/campaign-compute.md +0 -0
  50. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/cluster-storage.md +0 -0
  51. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/compute/compute.html +0 -0
  52. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/compute.md +0 -0
  53. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/cpu-partition.md +0 -0
  54. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/criterion-removal.md +0 -0
  55. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/direct-jobs.md +0 -0
  56. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/flyloft-up.md +0 -0
  57. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/harness-defaults.md +0 -0
  58. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/investigate.md +0 -0
  59. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/multi-user.md +0 -0
  60. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/new-project.md +0 -0
  61. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/preemption.md +0 -0
  62. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/projects.md +0 -0
  63. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/replication.md +0 -0
  64. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/run-storage.md +0 -0
  65. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-1.md +0 -0
  66. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-2.md +0 -0
  67. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-3a.md +0 -0
  68. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-3b.md +0 -0
  69. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-4a.md +0 -0
  70. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-4b.md +0 -0
  71. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-5a.md +0 -0
  72. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-5b.md +0 -0
  73. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-5c.md +0 -0
  74. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-5d.md +0 -0
  75. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-6a.md +0 -0
  76. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-6b.md +0 -0
  77. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/stage-7.md +0 -0
  78. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/tasks.md +0 -0
  79. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/tier-one-lockstep.md +0 -0
  80. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/toolshed.md +0 -0
  81. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/user-credentials.md +0 -0
  82. {flyloft-0.4.0 → flyloft-0.4.2}/docs/design/validation.md +0 -0
  83. {flyloft-0.4.0 → flyloft-0.4.2}/docs/environments/deeplearning_v2026-09-15.txt +0 -0
  84. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/agent-interface.md +0 -0
  85. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/agent-isolation.md +0 -0
  86. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/board-1.md +0 -0
  87. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/board-2.md +0 -0
  88. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/board-3.md +0 -0
  89. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/board-4.md +0 -0
  90. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/board-5.md +0 -0
  91. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/budget-billing.md +0 -0
  92. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/campaign-compute.md +0 -0
  93. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/cluster-storage.md +0 -0
  94. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/compute.md +0 -0
  95. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/cpu-partition.md +0 -0
  96. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/criterion-removal.md +0 -0
  97. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/direct-jobs.md +0 -0
  98. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/flyloft-up.md +0 -0
  99. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/harness-defaults-a.md +0 -0
  100. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/harness-defaults-b.md +0 -0
  101. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/investigate.md +0 -0
  102. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/multi-user-a.md +0 -0
  103. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/multi-user-b.md +0 -0
  104. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/new-project.md +0 -0
  105. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/preemption.md +0 -0
  106. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/projects.md +0 -0
  107. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/replication-a.md +0 -0
  108. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/replication-b.md +0 -0
  109. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/replication-c.md +0 -0
  110. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/run-storage.md +0 -0
  111. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-1.md +0 -0
  112. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-2.md +0 -0
  113. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-3a.md +0 -0
  114. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-3b.md +0 -0
  115. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-4a.md +0 -0
  116. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-4b.md +0 -0
  117. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-5a.md +0 -0
  118. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-5b.md +0 -0
  119. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-5c.md +0 -0
  120. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-5d.md +0 -0
  121. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-6a.md +0 -0
  122. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-6b.md +0 -0
  123. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/stage-7.md +0 -0
  124. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/tasks.md +0 -0
  125. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/tier-one-lockstep.md +0 -0
  126. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/toolshed-b.md +0 -0
  127. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/user-credentials.md +0 -0
  128. {flyloft-0.4.0 → flyloft-0.4.2}/docs/plans/validation.md +0 -0
  129. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/clusters/slinky.toml +0 -0
  130. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/flyloft.toml +0 -0
  131. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/builder.toml +0 -0
  132. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/claude.toml +0 -0
  133. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/coordinator.toml +0 -0
  134. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/first_campaign.toml +0 -0
  135. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/generator.toml +0 -0
  136. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/happy_path.toml +0 -0
  137. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/integrator.toml +0 -0
  138. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/lenient_critic.toml +0 -0
  139. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/librarian.toml +0 -0
  140. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/opencode.toml +0 -0
  141. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/orchestrator.toml +0 -0
  142. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/proximity.toml +0 -0
  143. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/reporter.toml +0 -0
  144. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/harnesses/strict_critic.toml +0 -0
  145. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/projects/toy-live-4b.toml +0 -0
  146. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/projects/toy-live-5a.toml +0 -0
  147. {flyloft-0.4.0 → flyloft-0.4.2}/examples/live-config/projects/toy-live.toml +0 -0
  148. {flyloft-0.4.0 → flyloft-0.4.2}/pyproject.toml +0 -0
  149. {flyloft-0.4.0 → flyloft-0.4.2}/scripts/preemption_drill.sh +0 -0
  150. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/__init__.py +0 -0
  151. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/agent_image/Containerfile +0 -0
  152. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/agent_image/__init__.py +0 -0
  153. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/agent_image/bridge.py +0 -0
  154. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/agent_image/prepare.py +0 -0
  155. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/budget/__init__.py +0 -0
  156. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/budget/compare.py +0 -0
  157. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/budget/ledger.py +0 -0
  158. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/cli/__init__.py +0 -0
  159. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/cli/main.py +0 -0
  160. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/client/__init__.py +0 -0
  161. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/client/api.py +0 -0
  162. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/client/handoff.py +0 -0
  163. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/config/__init__.py +0 -0
  164. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/config/load.py +0 -0
  165. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/config/models.py +0 -0
  166. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/config/projects.py +0 -0
  167. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/config/toml.py +0 -0
  168. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/github.py +0 -0
  169. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/__init__.py +0 -0
  170. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/catalogue/CLAUDE_CODE_OAUTH_TOKEN.toml +0 -0
  171. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/doctor.py +0 -0
  172. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/harnesses/claude.toml +0 -0
  173. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/harnesses/opencode.toml +0 -0
  174. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/init.py +0 -0
  175. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/units.py +0 -0
  176. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/host/up.py +0 -0
  177. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/knowledge/__init__.py +0 -0
  178. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/knowledge/memory.py +0 -0
  179. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0001_initial.sql +0 -0
  180. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0002_finding_state.sql +0 -0
  181. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0003_several_implementers.sql +0 -0
  182. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0004_entry_order_within_a_transaction.sql +0 -0
  183. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0005_population.sql +0 -0
  184. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0006_memory.sql +0 -0
  185. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0007_islands.sql +0 -0
  186. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0008_blocks.sql +0 -0
  187. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0009_export.sql +0 -0
  188. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0010_failures.sql +0 -0
  189. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0011_unblock.sql +0 -0
  190. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0012_indefinite.sql +0 -0
  191. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0013_pull_requests.sql +0 -0
  192. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0014_run_elapsed.sql +0 -0
  193. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0015_campaign_types.sql +0 -0
  194. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0016_island_aim.sql +0 -0
  195. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0017_campaign_project_config.sql +0 -0
  196. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0018_fresh_record.sql +0 -0
  197. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0019_run_tree.sql +0 -0
  198. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0020_users.sql +0 -0
  199. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0021_token_refused.sql +0 -0
  200. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0022_drop_criterion.sql +0 -0
  201. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0023_campaign_compute.sql +0 -0
  202. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0024_optional_cpus_mem.sql +0 -0
  203. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0025_validation.sql +0 -0
  204. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0026_measurement.sql +0 -0
  205. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0027_investigation.sql +0 -0
  206. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0028_cpu_runs.sql +0 -0
  207. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0029_preemption.sql +0 -0
  208. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0030_archive.sql +0 -0
  209. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0031_toolshed.sql +0 -0
  210. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0032_credentials.sql +0 -0
  211. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0033_agent_branch.sql +0 -0
  212. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0034_turn_error.sql +0 -0
  213. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0035_cluster_storage.sql +0 -0
  214. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/migrations/0036_job.sql +0 -0
  215. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/__init__.py +0 -0
  216. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/_findings.md.j2 +0 -0
  217. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/_findings_critic_judged.md.j2 +0 -0
  218. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/_head.md.j2 +0 -0
  219. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/_head_critic_judged.md.j2 +0 -0
  220. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/_macros.md.j2 +0 -0
  221. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/body.py +0 -0
  222. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/export.py +0 -0
  223. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/gh.py +0 -0
  224. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/pr_body.md.j2 +0 -0
  225. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/promotion_pr.md.j2 +0 -0
  226. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/publisher.py +0 -0
  227. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/record.md.j2 +0 -0
  228. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/publication/record_pr.md.j2 +0 -0
  229. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/__init__.py +0 -0
  230. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/actions.py +0 -0
  231. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/consistency.py +0 -0
  232. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/credentials.py +0 -0
  233. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/db.py +0 -0
  234. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/islands.py +0 -0
  235. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/launch.py +0 -0
  236. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/migrate.py +0 -0
  237. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/models.py +0 -0
  238. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/researcher.py +0 -0
  239. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/submit.py +0 -0
  240. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/templates.py +0 -0
  241. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/users.py +0 -0
  242. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/validation.py +0 -0
  243. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/record/views.py +0 -0
  244. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/__init__.py +0 -0
  245. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/askpass.sh +0 -0
  246. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/capacity.py +0 -0
  247. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/client.py +0 -0
  248. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/collect.py +0 -0
  249. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/observe.py +0 -0
  250. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/ssh.py +0 -0
  251. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/runs/staging.py +0 -0
  252. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/service/__init__.py +0 -0
  253. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/service/factory.py +0 -0
  254. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/skill/contract.md +0 -0
  255. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/skill/handoff.md +0 -0
  256. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/tools/__init__.py +0 -0
  257. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/tools/__main__.py +0 -0
  258. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/tools/listen.py +0 -0
  259. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/tools/server.py +0 -0
  260. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/toolshed.py +0 -0
  261. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/__init__.py +0 -0
  262. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/catalog.py +0 -0
  263. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/container.py +0 -0
  264. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/launch.py +0 -0
  265. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/__init__.py +0 -0
  266. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/_cj_critic_runs.md.j2 +0 -0
  267. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/_cj_record.md.j2 +0 -0
  268. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/_plan.md.j2 +0 -0
  269. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/_toolshed.md.j2 +0 -0
  270. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/bounded.md.j2 +0 -0
  271. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/coordinator.md.j2 +0 -0
  272. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/critic.investigate.md.j2 +0 -0
  273. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/critic.md.j2 +0 -0
  274. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/critic.task.md.j2 +0 -0
  275. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/critic.tool.md.j2 +0 -0
  276. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/direction.md.j2 +0 -0
  277. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/generator.md.j2 +0 -0
  278. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/implementer.investigate.md.j2 +0 -0
  279. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/implementer.md.j2 +0 -0
  280. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/implementer.task.md.j2 +0 -0
  281. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/integrator.md.j2 +0 -0
  282. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/librarian.md.j2 +0 -0
  283. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/memory.md.j2 +0 -0
  284. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/orchestrator.md.j2 +0 -0
  285. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/proximity.md.j2 +0 -0
  286. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/reporter.investigate.md.j2 +0 -0
  287. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/reporter.md.j2 +0 -0
  288. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/roles/reporter.task.md.j2 +0 -0
  289. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/substrates/__init__.py +0 -0
  290. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/substrates/claude_code.py +0 -0
  291. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/substrates/opencode.py +0 -0
  292. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/substrates/scripted.py +0 -0
  293. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/turns/wake.py +0 -0
  294. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/version.py +0 -0
  295. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/__init__.py +0 -0
  296. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/app.py +0 -0
  297. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/artifacts.py +0 -0
  298. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/auth.py +0 -0
  299. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/compute.py +0 -0
  300. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/events.py +0 -0
  301. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/openapi.py +0 -0
  302. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/read.py +0 -0
  303. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/schemas.py +0 -0
  304. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/web/static/assets/index-GVgD4m4l.css +0 -0
  305. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/workspace/__init__.py +0 -0
  306. {flyloft-0.4.0 → flyloft-0.4.2}/src/flyloft/workspace/git.py +0 -0
  307. {flyloft-0.4.0 → flyloft-0.4.2}/tests/__init__.py +0 -0
  308. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/__init__.py +0 -0
  309. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/fixtures/opencode-turn.jsonl +0 -0
  310. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_acting_as_owner.py +0 -0
  311. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_agent_interface.py +0 -0
  312. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_board1.py +0 -0
  313. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_board2.py +0 -0
  314. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_board3.py +0 -0
  315. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_board4.py +0 -0
  316. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_campaign_compute.py +0 -0
  317. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_cluster_storage.py +0 -0
  318. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_compute.py +0 -0
  319. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_harness_defaults.py +0 -0
  320. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_investigate.py +0 -0
  321. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_isolation.py +0 -0
  322. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_live.py +0 -0
  323. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_preemption.py +0 -0
  324. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_projects.py +0 -0
  325. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_replication.py +0 -0
  326. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_replication_board.py +0 -0
  327. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_run_storage.py +0 -0
  328. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage1.py +0 -0
  329. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage2.py +0 -0
  330. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage3.py +0 -0
  331. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage3b.py +0 -0
  332. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage4a.py +0 -0
  333. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage4b.py +0 -0
  334. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage5a.py +0 -0
  335. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage5b.py +0 -0
  336. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage5c.py +0 -0
  337. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage5d.py +0 -0
  338. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage6a.py +0 -0
  339. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage6b.py +0 -0
  340. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_stage7.py +0 -0
  341. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_tasks.py +0 -0
  342. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_toolshed.py +0 -0
  343. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_users.py +0 -0
  344. {flyloft-0.4.0 → flyloft-0.4.2}/tests/e2e/test_validation.py +0 -0
  345. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/__init__.py +0 -0
  346. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/bin/s5cmd +0 -0
  347. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/bin/srun +0 -0
  348. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/cluster.py +0 -0
  349. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/github.py +0 -0
  350. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fakes/publisher.py +0 -0
  351. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/agent-test-image/Containerfile +0 -0
  352. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/slinky/capacity.txt +0 -0
  353. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/slinky/cluster.toml +0 -0
  354. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toolshed/README.md +0 -0
  355. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toolshed/scripts/check.py +0 -0
  356. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toolshed/scripts/record +0 -0
  357. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toyproject/BRIEF.md +0 -0
  358. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toyproject/config.json +0 -0
  359. {flyloft-0.4.0 → flyloft-0.4.2}/tests/fixtures/toyproject/train.py +0 -0
  360. {flyloft-0.4.0 → flyloft-0.4.2}/tests/host/__init__.py +0 -0
  361. {flyloft-0.4.0 → flyloft-0.4.2}/tests/host/test_host.py +0 -0
  362. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/__init__.py +0 -0
  363. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/archive_investigator.py +0 -0
  364. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/attacker.py +0 -0
  365. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/builder.py +0 -0
  366. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/common.py +0 -0
  367. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/coordinator.py +0 -0
  368. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/cpu_investigator.py +0 -0
  369. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/cpu_tasker.py +0 -0
  370. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/crash.py +0 -0
  371. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/crew.py +0 -0
  372. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/failing_job.py +0 -0
  373. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/first_campaign.py +0 -0
  374. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/flaky_builder.py +0 -0
  375. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/generator.py +0 -0
  376. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/happy_path.py +0 -0
  377. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/integrator.py +0 -0
  378. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/integrator_spoil.py +0 -0
  379. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/investigator.py +0 -0
  380. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/investigator_quiet.py +0 -0
  381. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/keyed.py +0 -0
  382. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/lenient_critic.py +0 -0
  383. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/librarian.py +0 -0
  384. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/live_archiver.py +0 -0
  385. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/live_contained.py +0 -0
  386. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/live_investigator.py +0 -0
  387. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/live_tool_critic.py +0 -0
  388. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/live_tool_tasker.py +0 -0
  389. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/max_turns.py +0 -0
  390. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/missing_results.py +0 -0
  391. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/near_far.py +0 -0
  392. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/orchestrator.py +0 -0
  393. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/plateau.py +0 -0
  394. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/post_then_crash.py +0 -0
  395. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/proximity.py +0 -0
  396. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/redirector.py +0 -0
  397. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/replication.py +0 -0
  398. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/reporter.py +0 -0
  399. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/retracting.py +0 -0
  400. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/silent_exit.py +0 -0
  401. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/strict_critic.py +0 -0
  402. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/symlinker.py +0 -0
  403. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/task_critic.py +0 -0
  404. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/tasker.py +0 -0
  405. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/tool_critic.py +0 -0
  406. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/tool_outsider.py +0 -0
  407. {flyloft-0.4.0 → flyloft-0.4.2}/tests/scripts/tool_tasker.py +0 -0
  408. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/__init__.py +0 -0
  409. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/conftest.py +0 -0
  410. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/island_helpers.py +0 -0
  411. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/memory_helpers.py +0 -0
  412. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_actions.py +0 -0
  413. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_archive_script.py +0 -0
  414. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_assembly.py +0 -0
  415. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_budget.py +0 -0
  416. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_capacity.py +0 -0
  417. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_claude_code.py +0 -0
  418. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_cli.py +0 -0
  419. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_client_main.py +0 -0
  420. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_compute_view.py +0 -0
  421. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_config.py +0 -0
  422. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_consistency.py +0 -0
  423. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_container.py +0 -0
  424. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_doctor.py +0 -0
  425. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_format_metrics.py +0 -0
  426. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_gh.py +0 -0
  427. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_github.py +0 -0
  428. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_host_doctor.py +0 -0
  429. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_host_init.py +0 -0
  430. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_host_units.py +0 -0
  431. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_host_up.py +0 -0
  432. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_investigation.py +0 -0
  433. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_islands.py +0 -0
  434. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_jobs.py +0 -0
  435. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_knowledge.py +0 -0
  436. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_launch.py +0 -0
  437. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_listen.py +0 -0
  438. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_measurement.py +0 -0
  439. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_migrate.py +0 -0
  440. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_opencode.py +0 -0
  441. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_population.py +0 -0
  442. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_prepare.py +0 -0
  443. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_projects.py +0 -0
  444. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_publication.py +0 -0
  445. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_runs.py +0 -0
  446. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_scripted.py +0 -0
  447. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_service.py +0 -0
  448. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_ssh.py +0 -0
  449. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_store.py +0 -0
  450. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_submit.py +0 -0
  451. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_tasks.py +0 -0
  452. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_templates.py +0 -0
  453. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_tools.py +0 -0
  454. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_toolshed.py +0 -0
  455. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_toyproject.py +0 -0
  456. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_transcript.py +0 -0
  457. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_users.py +0 -0
  458. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_wake.py +0 -0
  459. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_web_app.py +0 -0
  460. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_web_artifacts.py +0 -0
  461. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_web_compare.py +0 -0
  462. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_web_events.py +0 -0
  463. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_web_read.py +0 -0
  464. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_workspace.py +0 -0
  465. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/test_workspace_git.py +0 -0
  466. {flyloft-0.4.0 → flyloft-0.4.2}/tests/unit/web_helpers.py +0 -0
  467. {flyloft-0.4.0 → flyloft-0.4.2}/uv.lock +0 -0
  468. {flyloft-0.4.0 → flyloft-0.4.2}/web/components.json +0 -0
  469. {flyloft-0.4.0 → flyloft-0.4.2}/web/index.html +0 -0
  470. {flyloft-0.4.0 → flyloft-0.4.2}/web/package-lock.json +0 -0
  471. {flyloft-0.4.0 → flyloft-0.4.2}/web/package.json +0 -0
  472. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/App.tsx +0 -0
  473. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/api/client.test.ts +0 -0
  474. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/api/client.ts +0 -0
  475. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/api/queries.ts +0 -0
  476. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/api/types.ts +0 -0
  477. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Actions.tsx +0 -0
  478. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/AnswerValue.tsx +0 -0
  479. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Breadcrumbs.tsx +0 -0
  480. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/CampaignCard.tsx +0 -0
  481. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/CampaignFilter.tsx +0 -0
  482. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ChangeMarkers.tsx +0 -0
  483. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/DotBanner.tsx +0 -0
  484. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/EntityLink.tsx +0 -0
  485. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ErrorNote.tsx +0 -0
  486. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/FinishedRow.tsx +0 -0
  487. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Freshness.tsx +0 -0
  488. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/InvestigationCard.tsx +0 -0
  489. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/LogList.tsx +0 -0
  490. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ProgressChart.tsx +0 -0
  491. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/RoleChips.tsx +0 -0
  492. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/RoleNode.tsx +0 -0
  493. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Selectable.tsx +0 -0
  494. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Sidebar.tsx +0 -0
  495. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/StartFromAgent.tsx +0 -0
  496. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Step.tsx +0 -0
  497. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Story.tsx +0 -0
  498. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/SwarmMap.tsx +0 -0
  499. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Timeline.tsx +0 -0
  500. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Timestamp.tsx +0 -0
  501. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/Transcript.tsx +0 -0
  502. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/alert-dialog.tsx +0 -0
  503. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/button.tsx +0 -0
  504. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/popover.tsx +0 -0
  505. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/sheet.tsx +0 -0
  506. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/tabs.tsx +0 -0
  507. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/components/ui/tooltip.tsx +0 -0
  508. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/campaign.test.ts +0 -0
  509. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/campaign.ts +0 -0
  510. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/chart.test.ts +0 -0
  511. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/chart.ts +0 -0
  512. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/compute.test.ts +0 -0
  513. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/compute.ts +0 -0
  514. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/crew.test.ts +0 -0
  515. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/crew.ts +0 -0
  516. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/format.test.ts +0 -0
  517. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/format.ts +0 -0
  518. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/launch.test.ts +0 -0
  519. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/launch.ts +0 -0
  520. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/projects.ts +0 -0
  521. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/roles.test.ts +0 -0
  522. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/roles.ts +0 -0
  523. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/runs.test.ts +0 -0
  524. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/runs.ts +0 -0
  525. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/seen.test.ts +0 -0
  526. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/seen.ts +0 -0
  527. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/story.test.ts +0 -0
  528. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/story.ts +0 -0
  529. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/swarm.test.ts +0 -0
  530. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/swarm.ts +0 -0
  531. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/lib/utils.ts +0 -0
  532. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/main.tsx +0 -0
  533. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Admin.tsx +0 -0
  534. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Compare.tsx +0 -0
  535. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Compute.tsx +0 -0
  536. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Credentials.tsx +0 -0
  537. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Home.tsx +0 -0
  538. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Launch.tsx +0 -0
  539. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Login.tsx +0 -0
  540. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Projects.tsx +0 -0
  541. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Run.tsx +0 -0
  542. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/Turn.tsx +0 -0
  543. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/admin/Host.tsx +0 -0
  544. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/admin/Users.tsx +0 -0
  545. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/Activity.tsx +0 -0
  546. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/Frame.tsx +0 -0
  547. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/Hypotheses.tsx +0 -0
  548. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/Overview.tsx +0 -0
  549. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/Runs.tsx +0 -0
  550. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/campaign/context.ts +0 -0
  551. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/launch/steps.tsx +0 -0
  552. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/project/NewProject.tsx +0 -0
  553. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/project/ProjectPage.tsx +0 -0
  554. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/pages/project/ValidationPanel.tsx +0 -0
  555. {flyloft-0.4.0 → flyloft-0.4.2}/web/src/styles.css +0 -0
  556. {flyloft-0.4.0 → flyloft-0.4.2}/web/tsconfig.json +0 -0
  557. {flyloft-0.4.0 → flyloft-0.4.2}/web/vite.config.ts +0 -0
@@ -1,21 +1,37 @@
1
1
  name: CI
2
2
 
3
3
  on:
4
- push:
5
- branches: [main]
6
4
  pull_request:
7
5
 
8
- # One suite per pull request, on its latest commit. A push to main has no head_ref, so it falls back to its own run
9
- # id: every merge builds, and no merge cancels the one before it.
6
+ # One suite per pull request, on its latest commit.
10
7
  concurrency:
11
- group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8
+ group: ${{ github.workflow }}-${{ github.head_ref }}
12
9
  cancel-in-progress: true
13
10
 
14
11
  env:
15
12
  FLYLOFT_DURATIONS: tests/durations.json # pytest starts the long tests first (tests/conftest.py)
16
13
 
17
14
  jobs:
15
+ # A branch behind its base cannot merge, and updating it starts a new run, so the suite waits for an up-to-date branch.
16
+ up-to-date:
17
+ runs-on: ubuntu-latest
18
+ permissions:
19
+ contents: read
20
+ steps:
21
+ - run: |
22
+ behind=$(gh api "repos/$REPO/compare/$BASE...$HEAD" --jq .behind_by)
23
+ if [ "$behind" -gt 0 ]; then
24
+ echo "::error::Branch is $behind commit(s) behind $BASE. Update it to run CI."
25
+ exit 1
26
+ fi
27
+ env:
28
+ GH_TOKEN: ${{ github.token }}
29
+ REPO: ${{ github.repository }}
30
+ BASE: ${{ github.event.pull_request.base.ref }}
31
+ HEAD: ${{ github.event.pull_request.head.sha }}
32
+
18
33
  lint:
34
+ needs: up-to-date
19
35
  runs-on: ${{ vars.CI_RUNS_ON && fromJSON(vars.CI_RUNS_ON) || 'ubuntu-latest' }}
20
36
  steps:
21
37
  - uses: actions/checkout@v7
@@ -27,6 +43,7 @@ jobs:
27
43
  - run: uv run ruff check .
28
44
 
29
45
  types:
46
+ needs: up-to-date
30
47
  runs-on: ${{ vars.CI_RUNS_ON && fromJSON(vars.CI_RUNS_ON) || 'ubuntu-latest' }}
31
48
  steps:
32
49
  - uses: actions/checkout@v7
@@ -37,6 +54,7 @@ jobs:
37
54
  - run: uv run ty check src
38
55
 
39
56
  web:
57
+ needs: up-to-date
40
58
  runs-on: ${{ vars.CI_RUNS_ON && fromJSON(vars.CI_RUNS_ON) || 'ubuntu-latest' }}
41
59
  steps:
42
60
  - uses: actions/checkout@v7
@@ -59,6 +77,7 @@ jobs:
59
77
  working-directory: web
60
78
 
61
79
  tests:
80
+ needs: up-to-date
62
81
  runs-on: ${{ vars.CI_RUNS_ON && fromJSON(vars.CI_RUNS_ON) || 'ubuntu-latest' }}
63
82
  strategy:
64
83
  fail-fast: false
@@ -69,8 +88,8 @@ jobs:
69
88
  name: ${{ matrix.shard == 0 && 'tests' || format('tests ({0}/4)', matrix.shard) }}
70
89
  services:
71
90
  postgres:
72
- # None on self-hosted runners, where the suite starts its own per worker on a port the host hands out: jobs share
73
- # the host, and rootless Docker picks a published port without seeing the host's ports in use.
91
+ # None on self-hosted runners, where a step starts one for the run on a port Podman picks: jobs share the host,
92
+ # and rootless Docker picks a published port without seeing the host's ports in use.
74
93
  image: ${{ !contains(vars.CI_RUNS_ON || '', 'self-hosted') && 'postgres:18' || '' }}
75
94
  env:
76
95
  POSTGRES_PASSWORD: flyloft
@@ -100,9 +119,17 @@ jobs:
100
119
  - run: npm run build # the browser scenario serves it
101
120
  working-directory: web
102
121
  - run: uv run playwright install ${{ runner.environment == 'github-hosted' && '--with-deps' || '' }} chromium # self-hosted has the deps and no sudo
122
+ - name: Start PostgreSQL
123
+ if: runner.environment != 'github-hosted'
124
+ run: |
125
+ name=flyloft-ci-${{ github.run_id }}-${{ github.run_attempt }}
126
+ podman run -d --rm --name "$name" -e POSTGRES_PASSWORD=flyloft -e POSTGRES_DB=flyloft_test \
127
+ -p 127.0.0.1::5432 docker.io/library/postgres:18 -c max_connections=300
128
+ timeout 90 sh -c "until podman exec $name pg_isready -q -h 127.0.0.1 -U postgres; do sleep 1; done"
129
+ echo "FLYLOFT_TEST_DATABASE_URL=postgresql://postgres:flyloft@$(podman port "$name" 5432/tcp)/flyloft_test" >> "$GITHUB_ENV"
103
130
  - run: uv run pytest -q -n ${{ runner.environment == 'github-hosted' && 'auto' || '24' }} --dist worksteal --tracing retain-on-failure --output test-results # auto would be every core of a shared host; worksteal lets an idle worker take tests queued behind a long one
104
131
  env:
105
- FLYLOFT_TEST_DATABASE_URL: ${{ runner.environment == 'github-hosted' && 'postgresql://postgres:flyloft@127.0.0.1:5432/flyloft_test' || '' }}
132
+ FLYLOFT_TEST_DATABASE_URL: ${{ runner.environment == 'github-hosted' && 'postgresql://postgres:flyloft@127.0.0.1:5432/flyloft_test' || env.FLYLOFT_TEST_DATABASE_URL }}
106
133
  - uses: actions/upload-artifact@v7 # a failed browser test's trace: npx playwright show-trace trace.zip
107
134
  if: failure()
108
135
  with:
@@ -110,8 +137,12 @@ jobs:
110
137
  path: test-results/
111
138
  if-no-files-found: ignore
112
139
  retention-days: 14
140
+ - name: Stop PostgreSQL
141
+ if: always() && runner.environment != 'github-hosted'
142
+ run: podman rm -f --ignore flyloft-ci-${{ github.run_id }}-${{ github.run_attempt }}
113
143
 
114
144
  client:
145
+ needs: up-to-date
115
146
  runs-on: ${{ vars.CI_RUNS_ON && fromJSON(vars.CI_RUNS_ON) || 'ubuntu-latest' }}
116
147
  strategy:
117
148
  matrix:
@@ -48,7 +48,7 @@ This branch is a fresh design. Documents stand alone and do not describe the sys
48
48
 
49
49
  - `uv sync` installs everything. Run commands as `uv run ...`.
50
50
  - `uv run pytest -n 4` runs tiers one and unit tests on four workers; each worker gets its own database. Scripted turns are CPU-bound, so use no more workers than cores (CI on GitHub's runners uses `-n auto`, two per runner, in each of four jobs, and `FLYLOFT_SHARD=i/4` runs every fourth test; on the lab's self-hosted runners it is one job with `-n 24 --dist worksteal`. The repo variable `CI_RUNS_ON`, a JSON `runs-on` value, picks the runners; unset means `ubuntu-latest`). It starts a PostgreSQL container with rootless Podman unless `FLYLOFT_TEST_DATABASE_URL` is set.
51
- - Added or reshaped a scenario test? Make your full run before committing `FLYLOFT_RECORD_DURATIONS=1 uv run pytest -n 4`, and commit the `tests/durations.json` it updates; CI starts the long tests first by it, and a test the file lacks counts as 1 s.
51
+ - Added or reshaped a scenario test? Before committing, record just its files, `FLYLOFT_RECORD_DURATIONS=1 uv run pytest <its test files>`, and commit the lines it adds or changes in `tests/durations.json`. CI starts the long tests first by it, and a test the file lacks counts as 1 s. Re-recording the whole suite rewrites every entry with your machine's times, so make that its own change.
52
52
  - `FLYLOFT_LIVE=1 uv run pytest -m live` runs tier two against the configured cluster and test repository.
53
53
  - `uv run flyloft --help` lists the client's commands; `uv run flyloft host --help` the host's.
54
54
  - The board: `npm ci` and `npm run build` in `web/` (Node 22+), then `uv run flyloft host web` serves it on `web_bind`. `npm run types` regenerates `web/src/api/types.ts` from the API; CI fails if it drifts.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: flyloft
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Agent swarms for empirical research on Slurm clusters
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: httpx>=0.27
@@ -437,7 +437,6 @@ Ideas that have arrived before their stage. Adding a line here is how an impulse
437
437
  | Direct jobs on the board: a researcher's jobs, their state, GPUs, and log tail, likely on the Compute page (#134) | When someone wants to see direct jobs outside their agent session |
438
438
  | Archiving ended direct-job directories to object storage, as runs are | When job directories are seen piling up on a cluster |
439
439
  | A direct job in a toolshed tool's image (`flyloft job submit --tool`), with the shed's tools listed in `flyloft options` (#135) | When a researcher's agent wants a direct job inside a tool |
440
- | A cancel that lands while the tick is staging the same direct job is overwritten to queued, and the job runs | When a canceled direct job is seen running |
441
440
 
442
441
  ## References
443
442
 
@@ -0,0 +1,65 @@
1
+ # Credential Discovery: Design
2
+
3
+ Status: proposed 2026-11-03, awaiting approval.
4
+
5
+ [User credentials](user-credentials.md) gave each member a page on the board for the keys the lab's catalogue names, and delivers the `runs` ones into the owner's jobs. Neither agent that needs to know about them can see them:
6
+
7
+ - **The researcher's agent** cannot tell which credentials the host offers or which the researcher has set. The skill only says the Credentials page exists, so the agent cannot say "set your GitHub token on the board, or the private install fails" before a hand-off; it learns of a missing key only from a run that fails.
8
+ - **flyloft's implementer** is never told which variables its runs carry. Its rules name the campaign directory, the shared directories and the container image, but no credential. Unless the brief spells it out, an implementer does not know `$GITHUB_TOKEN_USER` is in its job's environment.
9
+
10
+ This came up on 2026-11-03: a campaign on coreweave-b200 needs to `pip install` a private repository on its owner's account and read one on brineylab's. flyloft-config #17 added `GITHUB_TOKEN_ORG` and `GITHUB_TOKEN_USER` (scope `runs`); the owner set both; and the hand-off has to name them in its brief by hand.
11
+
12
+ ## 1. Scenario
13
+
14
+ 1. The catalogue holds `WANDB_API_KEY`, `HF_TOKEN`, `GITHUB_TOKEN_ORG` and `GITHUB_TOKEN_USER` (`runs`) and `CLAUDE_CODE_OAUTH_TOKEN` (`host`). alice has set `GITHUB_TOKEN_USER` and nothing else.
15
+ 2. alice asks her agent for an investigation that installs her private library from GitHub. Settling parameters, her agent runs `flyloft options --json` and reads the `credentials` list: `GITHUB_TOKEN_USER` set, `GITHUB_TOKEN_ORG` not set. The library is on her own account, so nothing is missing. Had it been on brineylab's, the agent would have sent her to `<board>/credentials` for `GITHUB_TOKEN_ORG` before writing the hand-off.
16
+ 3. alice's campaign starts. Her implementer's rules say that its runs have `$GITHUB_TOKEN_USER` ("GitHub (your account)") with that entry's help, and that a value is never printed or written to a file. Its setup run installs the library with it.
17
+ 4. bob, who has set nothing, gets an implementer whose rules name no credential.
18
+
19
+ ## 2. `flyloft options` lists the credentials
20
+
21
+ The client already calls `GET /api/host`. It also calls `GET /api/me/credentials`, which exists and returns the catalogue with the caller's state and never a value, and adds the result to the output:
22
+
23
+ - **JSON:** a `credentials` list of `{name, label, help, scope, set}`, where `set` is whether the caller has set it (`set_at` is not null).
24
+ - **Text:** one line per entry, for example `credential GITHUB_TOKEN_USER (GitHub (your account), reaches runs): set`.
25
+
26
+ No API, schema or board change.
27
+
28
+ The skill's §2 credentials bullet changes from "credentials the work needs … set at `<board>/credentials`" to: read `credentials` from `flyloft options --json`; when the work needs one that is not set (a private repository, run logging, a gated model), send the researcher to `<board>/credentials` for that name before writing the hand-off. The brief needs no credential names, because the implementer is told (§3).
29
+
30
+ ## 3. The implementer's rules name its runs' credentials
31
+
32
+ `_investigator_context` (`turns/assembly.py`) gains `run_credentials`: for each name the runs will carry, the name, label and help. It is the set the tick sends at submission, `credentials.for_runs` (the owner's values, else the host's), so the rule names exactly what a job has; only the names reach the prompt. `_cj_implementer_rules.md.j2` gains one rule, rendered only when the list is not empty:
33
+
34
+ > Your runs' environment has these credentials: `$GITHUB_TOKEN_USER` (GitHub (your account): <help>); … Use them only through their variables; never print one, write it to a file, or commit it.
35
+
36
+ Only investigations and tasks get the rule. An optimization's run command belongs to its project and was wired by the researcher's agent, which reads the credentials through §2.
37
+
38
+ ## 4. Exposure
39
+
40
+ Nothing new reaches anything. The names and help are configuration, and the values already reach the owner's runs. The rule against printing is advice: anything a run can read, its agent can read ([user-credentials.md](user-credentials.md) §7).
41
+
42
+ ## 5. Tests
43
+
44
+ **Tier one.** Extend `tests/e2e/test_credentials.py`, whose catalogue gains a second `runs` entry that alice does not set:
45
+
46
+ 1. `flyloft options --json` lists every catalogue entry with its state and no value (the client's unit test, against a fake host).
47
+ 2. alice's investigation's first implementer turn: its assignment names `$WANDB_API_KEY` and that entry's label, names neither the `runs` entry she did not set nor her `host` key, and holds no value.
48
+
49
+ An owner with nothing set needs no test of its own: every other investigation test runs that way, and the rule renders only from a non-empty list.
50
+
51
+ **Tier two:** none. Delivery to a real cluster is already covered by user-credentials' live test.
52
+
53
+ **Tier three** (the human): the coreweave-b200 campaign above is handed off with a brief that names no credential, and its setup run installs the private library.
54
+
55
+ ## 6. Code layout
56
+
57
+ - `client/main.py`: `options` also fetches `/api/me/credentials`. `client/render.py`: the text lines.
58
+ - `turns/assembly.py`: `run_credentials` in `_investigator_context`. `turns/roles/_cj_implementer_rules.md.j2`: the rule.
59
+ - `skill/SKILL.md`: the §2 bullet.
60
+ - `tests/e2e/test_credentials.py`: §5.
61
+
62
+ ## 7. Not in this design
63
+
64
+ - **A refusal at hand-off** when a needed credential is unset: flyloft cannot know which ones the work needs. The researcher's agent judges it from §2's list.
65
+ - **Telling other roles** (generator, critic): they do not write runs.
@@ -0,0 +1,38 @@
1
+ # Credential Discovery Implementation Plan
2
+
3
+ **Goal:** The researcher's agent sees which credentials the host offers and which the researcher has set; an investigation's or task's implementer is told which credential variables its runs carry.
4
+
5
+ **Spec:** `docs/design/credential-discovery.md`
6
+
7
+ ## Global Constraints
8
+
9
+ - One branch, one PR with the design. No API, schema, migration, or board change.
10
+ - Copy, exact:
11
+ - **options, text:** `credential {name} ({label}, {where}): {state}`, where `{where}` is `reaches runs` or `stays on the host` and `{state}` is `set` or `not set`.
12
+ - **implementer rule:** `- Your runs' environment has these credentials: {entries}. Use them only through their variables; never print one, write it to a file, or commit it.`, where each entry is `` `${name}` ({label}: {help}) `` joined by `; `.
13
+
14
+ ## Task 1: `flyloft options` lists the credentials
15
+
16
+ - `client/main.py` `options`: after `/api/host`, `data["credentials"] = [{name, label, help, scope, set}]` from `GET /api/me/credentials` (`set` is `set_at is not None`).
17
+ - `client/render.py` `options`: one line per entry after the harnesses.
18
+ - `tests/unit/test_client.py`: the fake host answers `/api/me/credentials`; the text and JSON outputs carry an entry.
19
+
20
+ ## Task 2: the implementer's rule
21
+
22
+ - `turns/assembly.py` `_investigator_context`: `run_credentials`, the catalogue entries named by `credentials.for_runs(conn, config, campaign.owner)` (what submission sends), as name, label and help.
23
+ - `turns/roles/_cj_implementer_rules.md.j2`: the rule, rendered only when `run_credentials` is not empty.
24
+
25
+ ## Task 3: the skill
26
+
27
+ - `skill/SKILL.md` §2: the credentials bullet reads the list from `flyloft options --json` and sends the researcher to the page for a needed one that is not set.
28
+ - `tests/unit/test_skill.py`: pin the new phrase.
29
+
30
+ ## Task 4: the scenario
31
+
32
+ `tests/e2e/test_credentials.py`, a new test: the catalogue has `WANDB_API_KEY` and `HF_TOKEN` (`runs`) and `CLAUDE_CODE_OAUTH_TOKEN` (`host`). alice (the CLI's user) sets `WANDB_API_KEY` and `CLAUDE_CODE_OAUTH_TOKEN`. Her investigation's first implementer assignment names `$WANDB_API_KEY` with its label, names neither `HF_TOKEN` nor `CLAUDE_CODE_OAUTH_TOKEN`, and holds no value. Record its duration in `tests/durations.json`.
33
+
34
+ The design's step for an owner with nothing set is not a separate test: every other investigation test runs with no credentials, and the rule renders only from a non-empty list.
35
+
36
+ ## Task 5: checks
37
+
38
+ `uv run ruff format .`, `uv run ruff check .`, `uv run ty check src`, the touched tests, then `uv run pytest -n 4`.
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '0.4.0'
22
- __version_tuple__ = version_tuple = (0, 4, 0)
21
+ __version__ = version = '0.4.2'
22
+ __version_tuple__ = version_tuple = (0, 4, 2)
23
23
 
24
24
  __commit_id__ = commit_id = None
@@ -238,7 +238,8 @@ def whoami(as_json: bool = JSON_FLAG):
238
238
 
239
239
  @app.command()
240
240
  def options(as_json: bool = JSON_FLAG):
241
- """What this host offers: clusters, GPU types with free counts, harnesses and their models."""
241
+ """What this host offers: clusters, GPU types with free counts, harnesses and their models, and the credentials
242
+ you may set on the board, with whether you have."""
242
243
 
243
244
  def go():
244
245
  a = api.Api.for_host()
@@ -250,6 +251,10 @@ def options(as_json: bool = JSON_FLAG):
250
251
  continue
251
252
  if not answer["error"]:
252
253
  cluster["free"] = {t["name"]: t["free"] for t in answer["types"]}
254
+ data["credentials"] = [
255
+ {k: c[k] for k in ("name", "label", "help", "scope")} | {"set": c["set_at"] is not None}
256
+ for c in a.request("GET", "/api/me/credentials").json()["credentials"]
257
+ ]
253
258
  _out(data, as_json, render.options(data))
254
259
 
255
260
  _run(go)
@@ -33,6 +33,9 @@ def options(host: dict) -> str:
33
33
  default = ", the default" if h["default"] else ""
34
34
  lines.append(f"harness {h['name']} ({h['kind']}){default}: {', '.join(h['models']) or 'no models listed'}")
35
35
  lines += [f" {role}: {model}" for role, model in h["defaults"].items() if model]
36
+ for c in host["credentials"]:
37
+ where = "reaches runs" if c["scope"] == "runs" else "stays on the host"
38
+ lines.append(f"credential {c['name']} ({c['label']}, {where}): {'set' if c['set'] else 'not set'}")
36
39
  return "\n".join(lines)
37
40
 
38
41
 
@@ -7,7 +7,7 @@ from pathlib import Path
7
7
  from uuid import UUID, uuid4
8
8
 
9
9
  from flyloft.config.load import Config
10
- from flyloft.config.models import ResourceProfile
10
+ from flyloft.config.models import ResourceProfile, slurm_mem_mb
11
11
  from flyloft.record import store, submit
12
12
  from flyloft.record.models import JOB_MAX_SECONDS, RUN_TERMINAL, Job
13
13
  from flyloft.record.users import User
@@ -33,6 +33,15 @@ def start_job(conn, cfg: Config, owner: str, req: JobRequest) -> Job:
33
33
  problems.append(f"time limit {req.time} is over 24 hours")
34
34
  elif seconds == 0 and not problems:
35
35
  problems.append(f"time limit {req.time} is zero, which Slurm reads as no limit")
36
+ if req.mem is not None:
37
+ try:
38
+ slurm_mem_mb(req.mem)
39
+ except ValueError as e:
40
+ problems.append(str(e))
41
+ if req.gpus < 0:
42
+ problems.append(f"gpus {req.gpus} is negative")
43
+ if req.cpus is not None and req.cpus < 1:
44
+ problems.append(f"cpus {req.cpus} is under 1")
36
45
  cluster = cfg.clusters.get(req.cluster)
37
46
  if cluster is None:
38
47
  problems.append(f"unknown cluster '{req.cluster}'")
@@ -697,6 +697,16 @@ def update_job(conn, id: UUID, **fields) -> None: # `job_id` is a field: the cl
697
697
  _update(conn, "job", id, fields)
698
698
 
699
699
 
700
+ def queue_job(conn, id: UUID, job_id: str) -> bool:
701
+ """Queued with the cluster's id, only while still preparing; False when it was canceled during its submission."""
702
+ row = conn.execute(
703
+ "UPDATE job SET state = 'queued', job_id = %s, updated_at = clock_timestamp()"
704
+ " WHERE id = %s AND state = 'preparing' RETURNING id",
705
+ (job_id, id),
706
+ ).fetchone()
707
+ return row is not None
708
+
709
+
700
710
  def create_measurement(
701
711
  conn,
702
712
  *,
@@ -638,7 +638,9 @@ class Service:
638
638
  except (subprocess.CalledProcessError, OSError) as e:
639
639
  self._log(f"staging job {job.id} failed; will retry: {e}")
640
640
  continue
641
- store.update_job(self.conn, job.id, state="queued", job_id=job_id)
641
+ if not store.queue_job(self.conn, job.id, job_id):
642
+ self.clients[job.cluster].cancel(job_id)
643
+ store.update_job(self.conn, job.id, job_id=job_id)
642
644
  active = store.jobs_in_states(self.conn, list(RUN_ACTIVE))
643
645
  for cluster_name, group in groupby(sorted(active, key=lambda j: j.cluster), key=lambda j: j.cluster):
644
646
  client = self.clients[cluster_name]
@@ -8,7 +8,7 @@ version: 0.0.0
8
8
 
9
9
  flyloft turns what a researcher wants done into work on the lab's Slurm clusters: agents build what it needs, run it, judge it, and write an account. Your job is the conversation before the hand-off and the check-ins after it. You never write job scripts, and you write no project code unless the researcher asks to review a piece.
10
10
 
11
- The client is `flyloft` (`pip install flyloft`). Every rule lives on the host: a refusal is the host's own sentence. Fix what it names and retry; never work around one, such as by creating a repository by hand. A 426 means the client is too old: run `pip install -U flyloft` and retry. A warning that the installed skill's version differs means `flyloft install`. If a command says you are not signed in, ask the researcher for the board's address and run `flyloft login --host <url>`: it prints a code for the researcher to approve on GitHub. It blocks until they approve, longer than a tool call's timeout: have the researcher run it themselves in a terminal (in Claude Code, `! flyloft login --host <url>`), or run it in the background and relay the code and address it prints. A refusal that names <board>/credentials means the researcher must set that credential on the board: send them there, and never ask for, read, or handle a credential's value.
11
+ The client is `flyloft` (`pip install flyloft`). Every rule lives on the host: a refusal is the host's own sentence. Fix what it names and retry; never work around one, such as by creating a repository by hand. A 426 means the client is too old: run `pip install -U flyloft` and retry. A warning that the installed skill's version differs means `flyloft install`. If a command says you are not signed in, ask the researcher for the board's address and run `flyloft login --host <url>`: it prints a code for the researcher to approve on GitHub. It blocks until they approve, longer than a tool call's timeout: have the researcher run it themselves in a terminal (in Claude Code, `! flyloft login --host <url>`), or run it in the background and relay the code and address it prints. After a first sign-in, `flyloft whoami` confirms the login and the board, and `<board>/credentials` lists the lab's credentials the researcher may set (§2). A refusal that names <board>/credentials means the researcher must set that credential on the board: send them there, and never ask for, read, or handle a credential's value.
12
12
 
13
13
  ## 1. Talk before typing
14
14
 
@@ -18,7 +18,7 @@ Settle these, at the level of ideas, before any file is written:
18
18
  2. **Why is this important?** This goes in the brief: it is what the researcher reads again in three weeks.
19
19
  3. **How will you know it is done?** Every ask has an answer to this.
20
20
  4. Only when the ask is exploratory: **What would make it worth pursuing further?**
21
- 5. The data and models, and where they come from (a Hugging Face model, a GitHub repository, a dataset's address). flyloft's jobs reach the internet.
21
+ 5. The data and models, and where they come from (a Hugging Face model, a GitHub repository, a dataset's address). flyloft's jobs reach the internet. On the cluster they run as flyloft's own account, not the researcher's: they read the shared data and shared drive `flyloft options` lists for the cluster, read only, and never the researcher's own directories. Data only there is copied onto the shared drive before the hand-off, and the brief names it by that path.
22
22
  6. What agents must not do (no training on the held-out set; no more than one GPU per run; a file they must not touch).
23
23
 
24
24
  From the answers, propose the kind of work and say why: an **investigation** when the researcher wants to know whether there is anything there; a **task** when the ask has no hypothesis and nothing to judge worth pursuing (a benchmark, the analysis a reviewer asked for, a conversion), whose product is the output. The researcher decides.
@@ -31,6 +31,7 @@ Run `flyloft options --json`. It lists the clusters, each GPU type with how many
31
31
  - the per-run ceiling: the most any one job may ask for, GPUs and time (`HH:MM:SS`), sized for the biggest job the work needs;
32
32
  - run slots: how many jobs may be on the cluster at once;
33
33
  - GPU-hours: the budget;
34
+ - credentials the work needs, such as a token for a private repository, a key for logging runs, or one for a gated model: `credentials` in `flyloft options --json` lists what the lab offers and whether the researcher has set each. Runs use the owner's, and the implementer is told which its runs carry, so the brief need not name them. For one the work needs that is not set, have the researcher set it at `<board>/credentials` before submitting;
34
35
  - a harness or model for a seat only if the researcher asks. Leave both out otherwise, and name a paid harness only on the researcher's word.
35
36
 
36
37
  Say what each means in plain words: "4 slots × 1 A100 × 8 h at most at once". Be honest about cost: the budget bounds what runs may be *started*; up to `run_slots` runs at the per-run ceiling can still be in flight past it, and model spend is on top. A task that needs no GPU may set `gpus = 0`; its budget then never charges, and it ends when its implementer concludes.
@@ -11,7 +11,7 @@ from flyloft.config.load import Config
11
11
  from flyloft.config.projects import project_of
12
12
  from flyloft.knowledge.memory import project_memory
13
13
  from flyloft.publication.body import render_record
14
- from flyloft.record import actions, store
14
+ from flyloft.record import actions, credentials, store
15
15
  from flyloft.record.actions import admission_room, covered_at, handed_work, has_generators, island_to_digest
16
16
  from flyloft.record.models import INTEGRATED, RUN_TERMINAL, Agent, Campaign, Island, ToolBuild
17
17
  from flyloft.record.views import Views, campaign_views, format_hours, promotions, tool_build_views, turn_output_words
@@ -56,8 +56,8 @@ def _proximity_context(v: Views) -> dict:
56
56
 
57
57
  def _investigator_context(conn, config: Config, campaign: Campaign, v: Views, agent: Agent) -> dict:
58
58
  """What an investigation's or task's implementer plans with: its campaign directory, its slots, the budget left,
59
- whether the cluster has a CPU partition, the image its runs execute in, and the toolshed's catalogue when the host
60
- has one."""
59
+ whether the cluster has a CPU partition, the image its runs execute in, the credentials its runs carry (names only),
60
+ and the toolshed's catalogue when the host has one."""
61
61
  left = None if campaign.gpu_seconds is None else max(0, campaign.gpu_seconds - actions.charged(campaign, v.runs))
62
62
  cluster = config.clusters[campaign.cluster]
63
63
  return {
@@ -67,6 +67,7 @@ def _investigator_context(conn, config: Config, campaign: Campaign, v: Views, ag
67
67
  "left": left,
68
68
  "cpu_partition": cluster.cpu_partition,
69
69
  "container_image": cluster.container_image,
70
+ "run_credentials": [config.credentials[n] for n in sorted(credentials.for_runs(conn, config, campaign.owner))],
70
71
  "toolshed": _toolshed_context(conn, config, campaign, agent),
71
72
  }
72
73
 
@@ -10,6 +10,7 @@
10
10
  - Every job runs under `set -euo pipefail`, so an unset variable or a failing command in a pipe ends the run; write `${VAR:-}` for variables that may be unset.
11
11
  - Variants live side by side, in separate files or behind a flag, never by overwriting each other: the branch head must rerun every experiment the record cites.
12
12
  {% if container_image %}- Every run already executes inside the cluster's container image, `{{ container_image }}`{% if toolshed %}, or a tool's own image when it names one{% endif %}: its Python and packages are what the job has, plus any environment your setup run builds. Do not look for `srun`, `enroot`, or a way to unpack the image; to learn what it holds, run `python -m pip list` in a short run and read the output.
13
+ {% endif %}{% if run_credentials %}- Your runs' environment has these credentials: {% for c in run_credentials %}`${{ c.name }}` ({{ c.label }}: {{ c.help }}){% if not loop.last %}; {% endif %}{% endfor %}. Use them only through their variables; never print one, write it to a file, or commit it.
13
14
  {% endif %}- Python packages: the job installs nothing unless your setup run builds an environment in `$FLYLOFT_CAMPAIGN/envs/` and later runs use it. A project's environment is built by a committed setup script, so any later campaign rebuilds it. Jobs reach the internet.
14
15
  - Never run experiments on this host: it has no GPU and nothing run here enters the record. Never push, submit jobs, or connect to the cluster; flyloft does those.
15
16