piloop 0.2.0__tar.gz → 0.3.1__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 (888) hide show
  1. piloop-0.3.1/.github/ISSUE_TEMPLATE/1_bug_report.yml +32 -0
  2. piloop-0.3.1/.github/workflows/ci.yml +141 -0
  3. piloop-0.3.1/.greptile/files.json +9 -0
  4. piloop-0.3.1/.pre-commit-config.yaml +43 -0
  5. piloop-0.3.1/CHANGELOG.md +393 -0
  6. piloop-0.3.1/CONTRIBUTING.md +479 -0
  7. piloop-0.3.1/Makefile +47 -0
  8. piloop-0.3.1/PKG-INFO +107 -0
  9. piloop-0.3.1/README.md +63 -0
  10. piloop-0.3.1/docs/architecture/code-layout.mdx +16 -0
  11. piloop-0.3.1/docs/architecture/extension-points.mdx +831 -0
  12. piloop-0.3.1/docs/architecture/leases.mdx +111 -0
  13. piloop-0.3.1/docs/architecture/overview.mdx +152 -0
  14. piloop-0.3.1/docs/architecture/run-lifecycle.mdx +93 -0
  15. piloop-0.3.1/docs/architecture/state-machines.mdx +98 -0
  16. piloop-0.3.1/docs/by-hand.mdx +160 -0
  17. piloop-0.3.1/docs/concepts/artifact-store.mdx +109 -0
  18. piloop-0.3.1/docs/concepts/campaigns.mdx +123 -0
  19. piloop-0.3.1/docs/concepts/cost.mdx +91 -0
  20. piloop-0.3.1/docs/concepts/ideas-and-runs.mdx +112 -0
  21. piloop-0.3.1/docs/concepts/orchestrator.mdx +91 -0
  22. piloop-0.3.1/docs/concepts/research-memory.mdx +85 -0
  23. piloop-0.3.1/docs/concepts/roles.mdx +196 -0
  24. piloop-0.3.1/docs/concepts/tracks.mdx +63 -0
  25. piloop-0.3.1/docs/concepts/verdict.mdx +242 -0
  26. piloop-0.3.1/docs/docs.json +98 -0
  27. piloop-0.3.1/docs/guides/mcp-servers.mdx +87 -0
  28. piloop-0.3.1/docs/guides/remote-workers.mdx +168 -0
  29. piloop-0.3.1/docs/guides/reviewing.mdx +73 -0
  30. piloop-0.3.1/docs/guides/running-for-days.mdx +95 -0
  31. piloop-0.3.1/docs/guides/secrets.mdx +63 -0
  32. piloop-0.3.1/docs/guides/upgrading.mdx +540 -0
  33. piloop-0.3.1/docs/guides/watch.mdx +66 -0
  34. piloop-0.3.1/docs/index.mdx +81 -0
  35. piloop-0.3.1/docs/quickstart.mdx +101 -0
  36. piloop-0.3.1/docs/reference/cli.mdx +642 -0
  37. piloop-0.3.1/docs/reference/configuration.mdx +555 -0
  38. piloop-0.3.1/docs/reference/environment.mdx +40 -0
  39. piloop-0.3.1/docs/reference/event-feed.mdx +131 -0
  40. piloop-0.3.1/docs/reference/openapi.json +1570 -0
  41. piloop-0.3.1/docs/reference/schema.mdx +441 -0
  42. piloop-0.3.1/docs/snippets/generated/capabilities.mdx +16 -0
  43. piloop-0.3.1/docs/snippets/generated/cas-providers.mdx +9 -0
  44. piloop-0.3.1/docs/snippets/generated/data-model.mdx +298 -0
  45. piloop-0.3.1/docs/snippets/generated/example-inline-executor.mdx +233 -0
  46. piloop-0.3.1/docs/snippets/generated/example-min-gain.mdx +34 -0
  47. piloop-0.3.1/docs/snippets/generated/example-nice-runtime.mdx +40 -0
  48. piloop-0.3.1/docs/snippets/generated/example-sqlite-cas.mdx +29 -0
  49. piloop-0.3.1/docs/snippets/generated/example-stop-after-keeps.mdx +34 -0
  50. piloop-0.3.1/docs/snippets/generated/harnesses.mdx +7 -0
  51. piloop-0.3.1/docs/snippets/generated/imports.mdx +61 -0
  52. piloop-0.3.1/docs/snippets/generated/roles.mdx +8 -0
  53. piloop-0.3.1/docs/snippets/generated/runtime-protocol.mdx +10 -0
  54. piloop-0.3.1/docs/snippets/generated/runtimes.mdx +5 -0
  55. piloop-0.3.1/docs/snippets/generated/sections.mdx +21 -0
  56. piloop-0.3.1/docs/snippets/generated/settings.mdx +17 -0
  57. piloop-0.3.1/docs/snippets/generated/states.mdx +11 -0
  58. piloop-0.3.1/docs/snippets/generated/stop.mdx +10 -0
  59. piloop-0.3.1/docs/snippets/generated/triggers.mdx +11 -0
  60. piloop-0.3.1/examples/plugins/inline-executor/README.md +11 -0
  61. piloop-0.3.1/examples/plugins/inline-executor/piloop_inline/__init__.py +224 -0
  62. piloop-0.3.1/examples/plugins/inline-executor/pyproject.toml +13 -0
  63. piloop-0.3.1/examples/plugins/min-gain/piloop_min_gain/__init__.py +25 -0
  64. piloop-0.3.1/examples/plugins/min-gain/pyproject.toml +13 -0
  65. piloop-0.3.1/examples/plugins/nice-runtime/piloop_nice/__init__.py +31 -0
  66. piloop-0.3.1/examples/plugins/nice-runtime/pyproject.toml +13 -0
  67. piloop-0.3.1/examples/plugins/sqlite-cas/README.md +17 -0
  68. piloop-0.3.1/examples/plugins/sqlite-cas/piloop_sqlite_cas/__init__.py +20 -0
  69. piloop-0.3.1/examples/plugins/sqlite-cas/pyproject.toml +13 -0
  70. piloop-0.3.1/examples/plugins/stop-after-keeps/README.md +21 -0
  71. piloop-0.3.1/examples/plugins/stop-after-keeps/piloop_stop_after_keeps/__init__.py +25 -0
  72. piloop-0.3.1/examples/plugins/stop-after-keeps/pyproject.toml +13 -0
  73. piloop-0.3.1/install.sh +38 -0
  74. piloop-0.3.1/piloop/actor.py +57 -0
  75. piloop-0.3.1/piloop/agents/launcher.py +251 -0
  76. piloop-0.3.1/piloop/agents/prompts/sql_orchestrator.md +132 -0
  77. piloop-0.3.1/piloop/agents/prompts/sql_procedures.md +257 -0
  78. piloop-0.3.1/piloop/agents/refill.py +33 -0
  79. piloop-0.3.1/piloop/agents/results.py +666 -0
  80. piloop-0.3.1/piloop/agents/roles.py +207 -0
  81. piloop-0.3.1/piloop/api/__init__.py +5 -0
  82. piloop-0.3.1/piloop/api/client.py +130 -0
  83. piloop-0.3.1/piloop/api/contract.py +93 -0
  84. piloop-0.3.1/piloop/api/views.py +361 -0
  85. piloop-0.3.1/piloop/campaign/anomaly.py +29 -0
  86. piloop-0.3.1/piloop/campaign/archive.py +416 -0
  87. piloop-0.3.1/piloop/campaign/campaigns.py +455 -0
  88. piloop-0.3.1/piloop/campaign/ideas.py +347 -0
  89. piloop-0.3.1/piloop/campaign/inbox.py +256 -0
  90. piloop-0.3.1/piloop/campaign/memory.py +73 -0
  91. piloop-0.3.1/piloop/campaign/ops.py +722 -0
  92. piloop-0.3.1/piloop/campaign/spend.py +146 -0
  93. piloop-0.3.1/piloop/campaign/stop.py +416 -0
  94. piloop-0.3.1/piloop/campaign/templates/campaign/brief.md +47 -0
  95. piloop-0.3.1/piloop/campaign/templates/campaign/evaluate.py +25 -0
  96. piloop-0.3.1/piloop/campaign/templates/campaign/piloop.toml +167 -0
  97. piloop-0.3.1/piloop/campaign/templates/enwik8/brief.md +29 -0
  98. piloop-0.3.1/piloop/campaign/templates/enwik8/evaluate.py +68 -0
  99. piloop-0.3.1/piloop/campaign/templates/enwik8/piloop.toml +32 -0
  100. piloop-0.3.1/piloop/campaign/templates/titanic-tracks/brief.md +29 -0
  101. piloop-0.3.1/piloop/campaign/templates/titanic-tracks/briefs/cost.md +6 -0
  102. piloop-0.3.1/piloop/campaign/templates/titanic-tracks/piloop.toml +42 -0
  103. piloop-0.3.1/piloop/capabilities.py +121 -0
  104. piloop-0.3.1/piloop/cli/agents.py +207 -0
  105. piloop-0.3.1/piloop/cli/campaign.py +241 -0
  106. piloop-0.3.1/piloop/cli/candidate.py +175 -0
  107. piloop-0.3.1/piloop/cli/cas.py +50 -0
  108. piloop-0.3.1/piloop/cli/common.py +72 -0
  109. piloop-0.3.1/piloop/cli/daemon.py +138 -0
  110. piloop-0.3.1/piloop/cli/database.py +124 -0
  111. piloop-0.3.1/piloop/cli/doctor.py +351 -0
  112. piloop-0.3.1/piloop/cli/evaluation.py +66 -0
  113. piloop-0.3.1/piloop/cli/idea.py +273 -0
  114. piloop-0.3.1/piloop/cli/inbox.py +93 -0
  115. piloop-0.3.1/piloop/cli/install.py +132 -0
  116. piloop-0.3.1/piloop/cli/limits.py +63 -0
  117. piloop-0.3.1/piloop/cli/local.py +119 -0
  118. piloop-0.3.1/piloop/cli/main.py +114 -0
  119. piloop-0.3.1/piloop/cli/measurement.py +44 -0
  120. piloop-0.3.1/piloop/cli/memory.py +44 -0
  121. piloop-0.3.1/piloop/cli/plugins.py +99 -0
  122. piloop-0.3.1/piloop/cli/secret.py +104 -0
  123. piloop-0.3.1/piloop/cli/skills.py +86 -0
  124. piloop-0.3.1/piloop/cli/store.py +130 -0
  125. piloop-0.3.1/piloop/cli/token.py +54 -0
  126. piloop-0.3.1/piloop/cli/upgrade.py +112 -0
  127. piloop-0.3.1/piloop/cli/views.py +201 -0
  128. piloop-0.3.1/piloop/cli/worker.py +110 -0
  129. piloop-0.3.1/piloop/config.py +615 -0
  130. piloop-0.3.1/piloop/daemon/__init__.py +1 -0
  131. piloop-0.3.1/piloop/daemon/api.py +172 -0
  132. piloop-0.3.1/piloop/daemon/archiver.py +222 -0
  133. piloop-0.3.1/piloop/daemon/loop.py +175 -0
  134. piloop-0.3.1/piloop/daemon/main.py +279 -0
  135. piloop-0.3.1/piloop/daemon/run_controller.py +1438 -0
  136. piloop-0.3.1/piloop/daemon/scheduler.py +1832 -0
  137. piloop-0.3.1/piloop/daemon/serve.py +285 -0
  138. piloop-0.3.1/piloop/db/actor_triggers.sql +226 -0
  139. piloop-0.3.1/piloop/db/events.py +56 -0
  140. piloop-0.3.1/piloop/db/feed.py +89 -0
  141. piloop-0.3.1/piloop/db/migrations/env.py +44 -0
  142. piloop-0.3.1/piloop/db/migrations/versions/0006_research_memory.py +162 -0
  143. piloop-0.3.1/piloop/db/migrations/versions/0019_leases.py +79 -0
  144. piloop-0.3.1/piloop/db/migrations/versions/0020_agent_ending.py +46 -0
  145. piloop-0.3.1/piloop/db/migrations/versions/0021_run_end.py +82 -0
  146. piloop-0.3.1/piloop/db/migrations/versions/0022_tokens.py +41 -0
  147. piloop-0.3.1/piloop/db/migrations/versions/0023_lease_workers.py +55 -0
  148. piloop-0.3.1/piloop/db/migrations/versions/0025_limits.py +36 -0
  149. piloop-0.3.1/piloop/db/migrations/versions/0026_measurements_pair.py +32 -0
  150. piloop-0.3.1/piloop/db/migrations/versions/0027_cids.py +45 -0
  151. piloop-0.3.1/piloop/db/migrations/versions/0028_typed_events.py +245 -0
  152. piloop-0.3.1/piloop/db/migrations/versions/0029_worker_cursor.py +27 -0
  153. piloop-0.3.1/piloop/db/migrations/versions/0030_acquire_request.py +32 -0
  154. piloop-0.3.1/piloop/db/migrations/versions/0031_wrap_up_note.py +26 -0
  155. piloop-0.3.1/piloop/db/migrations/versions/0032_prompt_queued.py +30 -0
  156. piloop-0.3.1/piloop/db/migrations/versions/0033_agent_finished_state.py +42 -0
  157. piloop-0.3.1/piloop/db/migrations/versions/0034_herdr_removed.py +61 -0
  158. piloop-0.3.1/piloop/db/migrations/versions/0035_remote_agents.py +58 -0
  159. piloop-0.3.1/piloop/db/migrations/versions/0036_entire_removed.py +46 -0
  160. piloop-0.3.1/piloop/db/migrations/versions/0037_vcs_source.py +66 -0
  161. piloop-0.3.1/piloop/db/migrations/versions/0038_trigger_provider.py +49 -0
  162. piloop-0.3.1/piloop/db/migrations/versions/0039_rule_limits.py +86 -0
  163. piloop-0.3.1/piloop/db/migrations/versions/0040_roles_in_config.py +40 -0
  164. piloop-0.3.1/piloop/db/migrations/versions/0041_campaign_closed.py +29 -0
  165. piloop-0.3.1/piloop/db/migrations/versions/0042_event_milliseconds.py +38 -0
  166. piloop-0.3.1/piloop/db/migrations/versions/0043_candidate_origin.py +142 -0
  167. piloop-0.3.1/piloop/db/migrations/versions/0044_worker_instances.py +142 -0
  168. piloop-0.3.1/piloop/db/migrations/versions/0045_vcs_names.py +58 -0
  169. piloop-0.3.1/piloop/db/migrations/versions/0046_request_answers.py +52 -0
  170. piloop-0.3.1/piloop/db/migrations/versions/0047_home_target.py +63 -0
  171. piloop-0.3.1/piloop/db/migrations/versions/0048_jobs_and_briefs_in_cas.py +118 -0
  172. piloop-0.3.1/piloop/db/migrations/versions/0049_first_transfers.py +34 -0
  173. piloop-0.3.1/piloop/db/migrations/versions/0050_secrets.py +36 -0
  174. piloop-0.3.1/piloop/db/migrations/versions/0051_token_access.py +41 -0
  175. piloop-0.3.1/piloop/db/migrations/versions/0052_judging_evaluator_key.py +81 -0
  176. piloop-0.3.1/piloop/db/migrations/versions/0053_sections.py +94 -0
  177. piloop-0.3.1/piloop/db/models.py +1442 -0
  178. piloop-0.3.1/piloop/db/requests.py +50 -0
  179. piloop-0.3.1/piloop/db/session.py +626 -0
  180. piloop-0.3.1/piloop/db/sql.py +368 -0
  181. piloop-0.3.1/piloop/db/triggers/__init__.py +131 -0
  182. piloop-0.3.1/piloop/db/triggers/changelog.py +434 -0
  183. piloop-0.3.1/piloop/db/triggers/ended.py +32 -0
  184. piloop-0.3.1/piloop/db/triggers/immutable.py +62 -0
  185. piloop-0.3.1/piloop/db/triggers/legacy.py +125 -0
  186. piloop-0.3.1/piloop/db/triggers/provenance.py +55 -0
  187. piloop-0.3.1/piloop/db/triggers/roles.py +22 -0
  188. piloop-0.3.1/piloop/deprecated.py +495 -0
  189. piloop-0.3.1/piloop/harnesses.py +348 -0
  190. piloop-0.3.1/piloop/ids.py +90 -0
  191. piloop-0.3.1/piloop/mcp/__init__.py +154 -0
  192. piloop-0.3.1/piloop/mcp/pi.py +57 -0
  193. piloop-0.3.1/piloop/net/__init__.py +93 -0
  194. piloop-0.3.1/piloop/net/cas.py +48 -0
  195. piloop-0.3.1/piloop/net/cas_server.py +155 -0
  196. piloop-0.3.1/piloop/net/server.py +266 -0
  197. piloop-0.3.1/piloop/net/tokens.py +89 -0
  198. piloop-0.3.1/piloop/plugins/cas/cached.py +239 -0
  199. piloop-0.3.1/piloop/plugins/cas/contract.py +223 -0
  200. piloop-0.3.1/piloop/plugins/cas/disk.py +76 -0
  201. piloop-0.3.1/piloop/plugins/cas/gcs.py +100 -0
  202. piloop-0.3.1/piloop/plugins/cas/http.py +181 -0
  203. piloop-0.3.1/piloop/plugins/cas/kit/conformance.py +80 -0
  204. piloop-0.3.1/piloop/plugins/cas/kit/objects.py +251 -0
  205. piloop-0.3.1/piloop/plugins/cas/s3.py +115 -0
  206. piloop-0.3.1/piloop/plugins/executor/contract.py +495 -0
  207. piloop-0.3.1/piloop/plugins/executor/kit/__init__.py +1 -0
  208. piloop-0.3.1/piloop/plugins/executor/kit/capacity.py +153 -0
  209. piloop-0.3.1/piloop/plugins/executor/kit/client.py +163 -0
  210. piloop-0.3.1/piloop/plugins/executor/kit/clones.py +126 -0
  211. piloop-0.3.1/piloop/plugins/executor/kit/door.py +84 -0
  212. piloop-0.3.1/piloop/plugins/executor/kit/jobs.py +541 -0
  213. piloop-0.3.1/piloop/plugins/executor/kit/leases.py +1033 -0
  214. piloop-0.3.1/piloop/plugins/executor/kit/relay.py +196 -0
  215. piloop-0.3.1/piloop/plugins/executor/kit/remote.py +450 -0
  216. piloop-0.3.1/piloop/plugins/executor/kit/scaling.py +597 -0
  217. piloop-0.3.1/piloop/plugins/executor/kit/transfers.py +113 -0
  218. piloop-0.3.1/piloop/plugins/executor/workers/__init__.py +242 -0
  219. piloop-0.3.1/piloop/plugins/executor/workers/worker.py +754 -0
  220. piloop-0.3.1/piloop/plugins/host.py +724 -0
  221. piloop-0.3.1/piloop/plugins/limits.py +159 -0
  222. piloop-0.3.1/piloop/plugins/metric.py +31 -0
  223. piloop-0.3.1/piloop/plugins/network/__init__.py +0 -0
  224. piloop-0.3.1/piloop/plugins/network/contract.py +191 -0
  225. piloop-0.3.1/piloop/plugins/network/https.py +125 -0
  226. piloop-0.3.1/piloop/plugins/network/proxy.py +159 -0
  227. piloop-0.3.1/piloop/plugins/provisioner/__init__.py +0 -0
  228. piloop-0.3.1/piloop/plugins/provisioner/contract.py +109 -0
  229. piloop-0.3.1/piloop/plugins/provisioner/kit/__init__.py +1 -0
  230. piloop-0.3.1/piloop/plugins/provisioner/kit/conformance.py +51 -0
  231. piloop-0.3.1/piloop/plugins/provisioner/modal.py +178 -0
  232. piloop-0.3.1/piloop/plugins/role/__init__.py +0 -0
  233. piloop-0.3.1/piloop/plugins/role/contract.py +223 -0
  234. piloop-0.3.1/piloop/plugins/role/implementer.py +1 -0
  235. piloop-0.3.1/piloop/plugins/role/prompts/implementer.md +103 -0
  236. piloop-0.3.1/piloop/plugins/role/prompts/research.md +83 -0
  237. piloop-0.3.1/piloop/plugins/role/prompts/watchdog_incident.md +23 -0
  238. piloop-0.3.1/piloop/plugins/role/prompts/watchdog_progress.md +40 -0
  239. piloop-0.3.1/piloop/plugins/role/research.py +69 -0
  240. piloop-0.3.1/piloop/plugins/role/scout.py +208 -0
  241. piloop-0.3.1/piloop/plugins/role/watchdog.py +29 -0
  242. piloop-0.3.1/piloop/plugins/runtime/__init__.py +0 -0
  243. piloop-0.3.1/piloop/plugins/runtime/contract.py +207 -0
  244. piloop-0.3.1/piloop/plugins/runtime/kit/__init__.py +0 -0
  245. piloop-0.3.1/piloop/plugins/runtime/kit/tags.py +70 -0
  246. piloop-0.3.1/piloop/plugins/runtime/subprocess.py +262 -0
  247. piloop-0.3.1/piloop/plugins/secrets/__init__.py +0 -0
  248. piloop-0.3.1/piloop/plugins/secrets/contract.py +184 -0
  249. piloop-0.3.1/piloop/plugins/secrets/local.py +41 -0
  250. piloop-0.3.1/piloop/plugins/section/__init__.py +0 -0
  251. piloop-0.3.1/piloop/plugins/section/agents.py +60 -0
  252. piloop-0.3.1/piloop/plugins/section/anomalies.py +36 -0
  253. piloop-0.3.1/piloop/plugins/section/candidates.py +45 -0
  254. piloop-0.3.1/piloop/plugins/section/contract.py +108 -0
  255. piloop-0.3.1/piloop/plugins/section/evaluations.py +49 -0
  256. piloop-0.3.1/piloop/plugins/section/events.py +18 -0
  257. piloop-0.3.1/piloop/plugins/section/goal.py +42 -0
  258. piloop-0.3.1/piloop/plugins/section/headline.py +49 -0
  259. piloop-0.3.1/piloop/plugins/section/history.py +13 -0
  260. piloop-0.3.1/piloop/plugins/section/inbox.py +53 -0
  261. piloop-0.3.1/piloop/plugins/section/incidents.py +12 -0
  262. piloop-0.3.1/piloop/plugins/section/lessons.py +34 -0
  263. piloop-0.3.1/piloop/plugins/section/pack.py +22 -0
  264. piloop-0.3.1/piloop/plugins/section/queue.py +41 -0
  265. piloop-0.3.1/piloop/plugins/section/runs.py +28 -0
  266. piloop-0.3.1/piloop/plugins/section/tools.py +37 -0
  267. piloop-0.3.1/piloop/plugins/section/tracks.py +54 -0
  268. piloop-0.3.1/piloop/plugins/section/trajectory.py +114 -0
  269. piloop-0.3.1/piloop/plugins/stop_rule/__init__.py +0 -0
  270. piloop-0.3.1/piloop/plugins/stop_rule/contract.py +122 -0
  271. piloop-0.3.1/piloop/plugins/stop_rule/limits.py +130 -0
  272. piloop-0.3.1/piloop/plugins/trigger/__init__.py +0 -0
  273. piloop-0.3.1/piloop/plugins/trigger/anomaly.py +24 -0
  274. piloop-0.3.1/piloop/plugins/trigger/contract.py +252 -0
  275. piloop-0.3.1/piloop/plugins/trigger/cron.py +25 -0
  276. piloop-0.3.1/piloop/plugins/trigger/kit/__init__.py +0 -0
  277. piloop-0.3.1/piloop/plugins/trigger/kit/reasons.py +43 -0
  278. piloop-0.3.1/piloop/plugins/trigger/low_water.py +84 -0
  279. piloop-0.3.1/piloop/plugins/trigger/seed.py +36 -0
  280. piloop-0.3.1/piloop/plugins/trigger/sql.py +47 -0
  281. piloop-0.3.1/piloop/plugins/trigger/stalled.py +28 -0
  282. piloop-0.3.1/piloop/plugins/trigger/stopped.py +20 -0
  283. piloop-0.3.1/piloop/plugins/vcs/__init__.py +0 -0
  284. piloop-0.3.1/piloop/plugins/vcs/contract.py +295 -0
  285. piloop-0.3.1/piloop/plugins/vcs/git/__init__.py +235 -0
  286. piloop-0.3.1/piloop/plugins/vcs/git/bundles.py +61 -0
  287. piloop-0.3.1/piloop/plugins/vcs/git/commands.py +293 -0
  288. piloop-0.3.1/piloop/plugins/vcs/git/prompts/checkout.md +1 -0
  289. piloop-0.3.1/piloop/plugins/vcs/git/prompts/code.md +1 -0
  290. piloop-0.3.1/piloop/plugins/vcs/git/prompts/earlier.md +9 -0
  291. piloop-0.3.1/piloop/plugins/vcs/git/prompts/old_files.md +1 -0
  292. piloop-0.3.1/piloop/plugins/vcs/git/prompts/port.md +1 -0
  293. piloop-0.3.1/piloop/plugins/vcs/git/prompts/read.md +1 -0
  294. piloop-0.3.1/piloop/plugins/vcs/git/prompts/repo.md +1 -0
  295. piloop-0.3.1/piloop/plugins/vcs/git/prompts/save.md +20 -0
  296. piloop-0.3.1/piloop/plugins/vcs/git/prompts/show.md +1 -0
  297. piloop-0.3.1/piloop/plugins/vcs/git/prompts/skip.md +2 -0
  298. piloop-0.3.1/piloop/plugins/vcs/git/prompts/versions.md +2 -0
  299. piloop-0.3.1/piloop/plugins/verdict_rule/__init__.py +0 -0
  300. piloop-0.3.1/piloop/plugins/verdict_rule/bootstrap.py +198 -0
  301. piloop-0.3.1/piloop/plugins/verdict_rule/contract.py +90 -0
  302. piloop-0.3.1/piloop/proc.py +144 -0
  303. piloop-0.3.1/piloop/reports/feed.py +236 -0
  304. piloop-0.3.1/piloop/reports/history.py +225 -0
  305. piloop-0.3.1/piloop/reports/overview.py +485 -0
  306. piloop-0.3.1/piloop/reports/pack.py +338 -0
  307. piloop-0.3.1/piloop/reports/wake.py +263 -0
  308. piloop-0.3.1/piloop/runtime/__init__.py +0 -0
  309. piloop-0.3.1/piloop/runtime/factory.py +52 -0
  310. piloop-0.3.1/piloop/scoring/evaluate.py +273 -0
  311. piloop-0.3.1/piloop/scoring/ledger.py +840 -0
  312. piloop-0.3.1/piloop/scoring/queue.py +120 -0
  313. piloop-0.3.1/piloop/scoring/verdict.py +126 -0
  314. piloop-0.3.1/piloop/settings.py +291 -0
  315. piloop-0.3.1/piloop/store/tree.py +778 -0
  316. piloop-0.3.1/piloop/text.py +40 -0
  317. piloop-0.3.1/piloop/usage/__init__.py +172 -0
  318. piloop-0.3.1/piloop/usage/totals.py +15 -0
  319. piloop-0.3.1/piloop/version.py +73 -0
  320. piloop-0.3.1/piloop/watch/app.py +529 -0
  321. piloop-0.3.1/piloop/watch/panels.py +340 -0
  322. piloop-0.3.1/pyproject.toml +251 -0
  323. piloop-0.3.1/scripts/db_volume.py +392 -0
  324. piloop-0.3.1/scripts/generate/capabilities.py +42 -0
  325. piloop-0.3.1/scripts/generate/cas_providers.py +21 -0
  326. piloop-0.3.1/scripts/generate/configuration.py +146 -0
  327. piloop-0.3.1/scripts/generate/example_inline_executor.py +11 -0
  328. piloop-0.3.1/scripts/generate/example_sqlite_cas.py +11 -0
  329. piloop-0.3.1/scripts/generate/harnesses.py +16 -0
  330. piloop-0.3.1/scripts/generate/markdown.py +194 -0
  331. piloop-0.3.1/scripts/generate/openapi.py +13 -0
  332. piloop-0.3.1/scripts/generate/roles.py +28 -0
  333. piloop-0.3.1/scripts/generate/runtime_protocol.py +22 -0
  334. piloop-0.3.1/scripts/generate/runtimes.py +24 -0
  335. piloop-0.3.1/scripts/generate/sections.py +18 -0
  336. piloop-0.3.1/scripts/generate/states.py +27 -0
  337. piloop-0.3.1/scripts/generate/stop.py +12 -0
  338. piloop-0.3.1/scripts/generate/triggers.py +17 -0
  339. piloop-0.3.1/scripts/generate_all.py +84 -0
  340. piloop-0.3.1/scripts/screenshots.py +51 -0
  341. piloop-0.3.1/skills/piloop-operate/SKILL.md +479 -0
  342. piloop-0.3.1/skills/piloop-review/SKILL.md +286 -0
  343. piloop-0.3.1/skills/piloop-setup/SKILL.md +210 -0
  344. piloop-0.3.1/tests/agents/test_launcher.py +964 -0
  345. piloop-0.3.1/tests/agents/test_results.py +436 -0
  346. piloop-0.3.1/tests/agents/test_scout.py +244 -0
  347. piloop-0.3.1/tests/campaign/test_archive.py +525 -0
  348. piloop-0.3.1/tests/campaign/test_campaigns.py +316 -0
  349. piloop-0.3.1/tests/campaign/test_inbox.py +312 -0
  350. piloop-0.3.1/tests/campaign/test_memory.py +174 -0
  351. piloop-0.3.1/tests/campaign/test_ops.py +682 -0
  352. piloop-0.3.1/tests/campaign/test_spend.py +213 -0
  353. piloop-0.3.1/tests/campaign/test_stop.py +1043 -0
  354. piloop-0.3.1/tests/cas/test_cached.py +203 -0
  355. piloop-0.3.1/tests/cas/test_conformance.py +85 -0
  356. piloop-0.3.1/tests/cas/test_disk.py +167 -0
  357. piloop-0.3.1/tests/cas/test_gcs.py +106 -0
  358. piloop-0.3.1/tests/cas/test_s3.py +70 -0
  359. piloop-0.3.1/tests/cas/test_selection.py +112 -0
  360. piloop-0.3.1/tests/cli/conftest.py +16 -0
  361. piloop-0.3.1/tests/cli/test_cas_cli.py +96 -0
  362. piloop-0.3.1/tests/cli/test_cli.py +2068 -0
  363. piloop-0.3.1/tests/cli/test_control_cli.py +314 -0
  364. piloop-0.3.1/tests/cli/test_doctor.py +432 -0
  365. piloop-0.3.1/tests/cli/test_events.py +290 -0
  366. piloop-0.3.1/tests/cli/test_imports.py +12 -0
  367. piloop-0.3.1/tests/cli/test_secret_cli.py +77 -0
  368. piloop-0.3.1/tests/cli/test_store_cli.py +169 -0
  369. piloop-0.3.1/tests/cli/test_token_cli.py +54 -0
  370. piloop-0.3.1/tests/cli/test_worker_cli.py +109 -0
  371. piloop-0.3.1/tests/conftest.py +601 -0
  372. piloop-0.3.1/tests/daemon/test_archiver.py +382 -0
  373. piloop-0.3.1/tests/daemon/test_archiving.py +92 -0
  374. piloop-0.3.1/tests/daemon/test_control.py +224 -0
  375. piloop-0.3.1/tests/daemon/test_daemon.py +370 -0
  376. piloop-0.3.1/tests/daemon/test_evaluation_queue.py +407 -0
  377. piloop-0.3.1/tests/daemon/test_lease_faults.py +561 -0
  378. piloop-0.3.1/tests/daemon/test_loop.py +257 -0
  379. piloop-0.3.1/tests/daemon/test_remote_faults.py +461 -0
  380. piloop-0.3.1/tests/daemon/test_research.py +217 -0
  381. piloop-0.3.1/tests/daemon/test_roles.py +609 -0
  382. piloop-0.3.1/tests/daemon/test_run_controller.py +3292 -0
  383. piloop-0.3.1/tests/daemon/test_scheduler.py +2762 -0
  384. piloop-0.3.1/tests/daemon/test_serve.py +457 -0
  385. piloop-0.3.1/tests/daemon/test_tracks_e2e.py +151 -0
  386. piloop-0.3.1/tests/daemon/test_triggers.py +886 -0
  387. piloop-0.3.1/tests/db/test_db_triggers.py +207 -0
  388. piloop-0.3.1/tests/db/test_event_history.py +540 -0
  389. piloop-0.3.1/tests/db/test_event_models.py +140 -0
  390. piloop-0.3.1/tests/db/test_fts.py +147 -0
  391. piloop-0.3.1/tests/db/test_migrations.py +2231 -0
  392. piloop-0.3.1/tests/db/test_outbox.py +120 -0
  393. piloop-0.3.1/tests/db/test_plans.py +106 -0
  394. piloop-0.3.1/tests/db/test_requests.py +130 -0
  395. piloop-0.3.1/tests/db/test_sql.py +669 -0
  396. piloop-0.3.1/tests/db/test_wait.py +272 -0
  397. piloop-0.3.1/tests/e2e/campaign.py +306 -0
  398. piloop-0.3.1/tests/e2e/conftest.py +283 -0
  399. piloop-0.3.1/tests/e2e/inventory.py +266 -0
  400. piloop-0.3.1/tests/e2e/test_agent_slots.py +91 -0
  401. piloop-0.3.1/tests/e2e/test_campaign.py +18 -0
  402. piloop-0.3.1/tests/e2e/test_deadline.py +81 -0
  403. piloop-0.3.1/tests/e2e/test_lifecycle.py +363 -0
  404. piloop-0.3.1/tests/e2e/test_upgrade.py +692 -0
  405. piloop-0.3.1/tests/fixtures/__init__.py +0 -0
  406. piloop-0.3.1/tests/fixtures/netfault.py +170 -0
  407. piloop-0.3.1/tests/fixtures/plugin.py +130 -0
  408. piloop-0.3.1/tests/fixtures/provisioner.py +83 -0
  409. piloop-0.3.1/tests/fixtures/server_process.py +54 -0
  410. piloop-0.3.1/tests/fixtures/store_0_2_0/local/blake3/5snyg2irxp2pfskx5ouzfm4rjezbwsnwz4a22fthpoahzy7gh6wq/bytes.zst +0 -0
  411. piloop-0.3.1/tests/fixtures/store_0_2_0/local/blake3/fipb7tnynoawduu5vbepny6f7jugcmbxuu573f3m3ljb6hpcktka/bytes.zst +0 -0
  412. piloop-0.3.1/tests/fixtures/store_0_2_0/local/blake3/rzghyg4z3p6vbz5jkgc75lk64fci7kieul65o6hk6xznx7lctkmq/bytes.zst +0 -0
  413. piloop-0.3.1/tests/fixtures/store_0_2_0/local/blake3/v4jutopv7gq2nicajxvdnxgjjgn4wjojvxarfn6mtkj4vza7gjra/bytes.zst +0 -0
  414. piloop-0.3.1/tests/fixtures/store_0_2_0/local/blake3/xwalomq5cvgoyxketuqee7k7loh6z6ljsj4hnzh5fawqloxwraiq/bytes.zst +0 -0
  415. piloop-0.3.1/tests/fixtures/store_0_2_0/remote/blake3/4wrjjipbork3cgid2bb7d264wjg33jhridjq5zt3ndvemelx55ca/bytes.zst +0 -0
  416. piloop-0.3.1/tests/fixtures/store_0_2_0/staging/blake3/4wrjjipbork3cgid2bb7d264wjg33jhridjq5zt3ndvemelx55ca/remote +0 -0
  417. piloop-0.3.1/tests/fixtures/store_0_2_0/staging/remote.url +1 -0
  418. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/idea1/copy.txt +1 -0
  419. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/idea1/empty +0 -0
  420. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/idea1/link +1 -0
  421. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/idea1/run.sh +2 -0
  422. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/idea1/sub/data.bin +0 -0
  423. piloop-0.3.1/tests/fixtures/store_0_2_0/tree/notes.txt +1 -0
  424. piloop-0.3.1/tests/fixtures/store_0_2_0/written.json +4 -0
  425. piloop-0.3.1/tests/fixtures/worker_process.py +39 -0
  426. piloop-0.3.1/tests/isolation.py +47 -0
  427. piloop-0.3.1/tests/mcp/test_mcp.py +328 -0
  428. piloop-0.3.1/tests/net/conftest.py +76 -0
  429. piloop-0.3.1/tests/net/test_api.py +206 -0
  430. piloop-0.3.1/tests/net/test_cas.py +305 -0
  431. piloop-0.3.1/tests/net/test_listen.py +153 -0
  432. piloop-0.3.1/tests/net/test_netfault.py +123 -0
  433. piloop-0.3.1/tests/net/test_proxy.py +146 -0
  434. piloop-0.3.1/tests/net/test_server.py +406 -0
  435. piloop-0.3.1/tests/net/test_tokens.py +60 -0
  436. piloop-0.3.1/tests/provisioner/test_modal.py +226 -0
  437. piloop-0.3.1/tests/reports/test_feed.py +359 -0
  438. piloop-0.3.1/tests/reports/test_history.py +254 -0
  439. piloop-0.3.1/tests/reports/test_overview.py +697 -0
  440. piloop-0.3.1/tests/reports/test_pack.py +231 -0
  441. piloop-0.3.1/tests/reports/test_pack_walk.py +123 -0
  442. piloop-0.3.1/tests/reports/test_sections.py +107 -0
  443. piloop-0.3.1/tests/reports/test_tracks.py +146 -0
  444. piloop-0.3.1/tests/reports/test_wake.py +284 -0
  445. piloop-0.3.1/tests/runtime/test_dispatch.py +52 -0
  446. piloop-0.3.1/tests/runtime/test_subprocess.py +415 -0
  447. piloop-0.3.1/tests/runtime/test_tags.py +76 -0
  448. piloop-0.3.1/tests/scoring/test_contract.py +110 -0
  449. piloop-0.3.1/tests/scoring/test_evaluate.py +163 -0
  450. piloop-0.3.1/tests/scoring/test_verdict.py +509 -0
  451. piloop-0.3.1/tests/store/test_0_2_0_store.py +133 -0
  452. piloop-0.3.1/tests/store/test_tree.py +595 -0
  453. piloop-0.3.1/tests/test_actor.py +53 -0
  454. piloop-0.3.1/tests/test_capabilities.py +266 -0
  455. piloop-0.3.1/tests/test_capacity.py +147 -0
  456. piloop-0.3.1/tests/test_clones.py +278 -0
  457. piloop-0.3.1/tests/test_config.py +588 -0
  458. piloop-0.3.1/tests/test_deprecated.py +402 -0
  459. piloop-0.3.1/tests/test_docs.py +316 -0
  460. piloop-0.3.1/tests/test_executors.py +395 -0
  461. piloop-0.3.1/tests/test_git.py +146 -0
  462. piloop-0.3.1/tests/test_infra.py +117 -0
  463. piloop-0.3.1/tests/test_lease.py +755 -0
  464. piloop-0.3.1/tests/test_lease_client.py +532 -0
  465. piloop-0.3.1/tests/test_limits.py +120 -0
  466. piloop-0.3.1/tests/test_plugins.py +540 -0
  467. piloop-0.3.1/tests/test_proc.py +117 -0
  468. piloop-0.3.1/tests/test_registry_names.py +126 -0
  469. piloop-0.3.1/tests/test_relay.py +214 -0
  470. piloop-0.3.1/tests/test_scaling.py +516 -0
  471. piloop-0.3.1/tests/test_secrets.py +41 -0
  472. piloop-0.3.1/tests/test_settings.py +186 -0
  473. piloop-0.3.1/tests/test_transfers.py +183 -0
  474. piloop-0.3.1/tests/test_typing.py +23 -0
  475. piloop-0.3.1/tests/test_vcs.py +133 -0
  476. piloop-0.3.1/tests/test_worker.py +1371 -0
  477. piloop-0.3.1/tests/typing/wrong.py +17 -0
  478. piloop-0.3.1/tests/usage/test_usage.py +406 -0
  479. piloop-0.3.1/tests/watch/test_app.py +885 -0
  480. piloop-0.3.1/uv.lock +2485 -0
  481. piloop-0.2.0/.github/ISSUE_TEMPLATE/1_bug_report.yml +0 -32
  482. piloop-0.2.0/.github/workflows/ci.yml +0 -119
  483. piloop-0.2.0/.greptile/files.json +0 -9
  484. piloop-0.2.0/.pre-commit-config.yaml +0 -42
  485. piloop-0.2.0/CHANGELOG.md +0 -270
  486. piloop-0.2.0/CONTRIBUTING.md +0 -403
  487. piloop-0.2.0/Makefile +0 -48
  488. piloop-0.2.0/PKG-INFO +0 -151
  489. piloop-0.2.0/README.md +0 -111
  490. piloop-0.2.0/docs/architecture/code-layout.mdx +0 -28
  491. piloop-0.2.0/docs/architecture/extension-points.mdx +0 -736
  492. piloop-0.2.0/docs/architecture/overview.mdx +0 -151
  493. piloop-0.2.0/docs/architecture/run-lifecycle.mdx +0 -85
  494. piloop-0.2.0/docs/architecture/state-machines.mdx +0 -95
  495. piloop-0.2.0/docs/by-hand.mdx +0 -193
  496. piloop-0.2.0/docs/concepts/artifact-store.mdx +0 -120
  497. piloop-0.2.0/docs/concepts/campaigns.mdx +0 -118
  498. piloop-0.2.0/docs/concepts/cost.mdx +0 -106
  499. piloop-0.2.0/docs/concepts/ideas-and-runs.mdx +0 -146
  500. piloop-0.2.0/docs/concepts/orchestrator.mdx +0 -112
  501. piloop-0.2.0/docs/concepts/research-memory.mdx +0 -86
  502. piloop-0.2.0/docs/concepts/roles.mdx +0 -237
  503. piloop-0.2.0/docs/concepts/runtimes.mdx +0 -77
  504. piloop-0.2.0/docs/concepts/session-capture.mdx +0 -64
  505. piloop-0.2.0/docs/concepts/tracks.mdx +0 -76
  506. piloop-0.2.0/docs/concepts/verdict.mdx +0 -207
  507. piloop-0.2.0/docs/docs.json +0 -86
  508. piloop-0.2.0/docs/guides/mcp-servers.mdx +0 -99
  509. piloop-0.2.0/docs/guides/reviewing.mdx +0 -73
  510. piloop-0.2.0/docs/guides/running-for-days.mdx +0 -97
  511. piloop-0.2.0/docs/guides/secrets.mdx +0 -64
  512. piloop-0.2.0/docs/guides/upgrading.mdx +0 -249
  513. piloop-0.2.0/docs/guides/watch.mdx +0 -86
  514. piloop-0.2.0/docs/index.mdx +0 -126
  515. piloop-0.2.0/docs/quickstart.mdx +0 -149
  516. piloop-0.2.0/docs/reference/cli.mdx +0 -554
  517. piloop-0.2.0/docs/reference/configuration.mdx +0 -528
  518. piloop-0.2.0/docs/reference/environment.mdx +0 -43
  519. piloop-0.2.0/docs/reference/event-feed.mdx +0 -120
  520. piloop-0.2.0/docs/reference/schema.mdx +0 -325
  521. piloop-0.2.0/docs/several-campaigns.mdx +0 -57
  522. piloop-0.2.0/docs/snippets/generated/capabilities.mdx +0 -10
  523. piloop-0.2.0/docs/snippets/generated/data-model.mdx +0 -224
  524. piloop-0.2.0/docs/snippets/generated/example-dir-store.mdx +0 -49
  525. piloop-0.2.0/docs/snippets/generated/example-min-gain.mdx +0 -49
  526. piloop-0.2.0/docs/snippets/generated/example-nice-runtime.mdx +0 -34
  527. piloop-0.2.0/docs/snippets/generated/example-no-unit-regression.mdx +0 -33
  528. piloop-0.2.0/docs/snippets/generated/example-stop-after-keeps.mdx +0 -53
  529. piloop-0.2.0/docs/snippets/generated/example-verdict-checks.mdx +0 -80
  530. piloop-0.2.0/docs/snippets/generated/harnesses.mdx +0 -7
  531. piloop-0.2.0/docs/snippets/generated/herdr-settings.mdx +0 -14
  532. piloop-0.2.0/docs/snippets/generated/imports.mdx +0 -62
  533. piloop-0.2.0/docs/snippets/generated/queue-keys.mdx +0 -3
  534. piloop-0.2.0/docs/snippets/generated/role-defaults.mdx +0 -43
  535. piloop-0.2.0/docs/snippets/generated/role-keys.mdx +0 -15
  536. piloop-0.2.0/docs/snippets/generated/roles.mdx +0 -8
  537. piloop-0.2.0/docs/snippets/generated/run-role-keys.mdx +0 -8
  538. piloop-0.2.0/docs/snippets/generated/runtime-protocol.mdx +0 -16
  539. piloop-0.2.0/docs/snippets/generated/runtimes.mdx +0 -6
  540. piloop-0.2.0/docs/snippets/generated/settings.mdx +0 -19
  541. piloop-0.2.0/docs/snippets/generated/states.mdx +0 -8
  542. piloop-0.2.0/docs/snippets/generated/stop.mdx +0 -9
  543. piloop-0.2.0/docs/snippets/generated/storage-backends.mdx +0 -6
  544. piloop-0.2.0/docs/snippets/generated/sweep-role-keys.mdx +0 -11
  545. piloop-0.2.0/docs/snippets/generated/triggers.mdx +0 -10
  546. piloop-0.2.0/examples/plugins/dir-store/README.md +0 -18
  547. piloop-0.2.0/examples/plugins/dir-store/piloop_dir_store/__init__.py +0 -40
  548. piloop-0.2.0/examples/plugins/dir-store/pyproject.toml +0 -13
  549. piloop-0.2.0/examples/plugins/min-gain/piloop_min_gain/__init__.py +0 -40
  550. piloop-0.2.0/examples/plugins/min-gain/pyproject.toml +0 -13
  551. piloop-0.2.0/examples/plugins/nice-runtime/piloop_nice/__init__.py +0 -25
  552. piloop-0.2.0/examples/plugins/nice-runtime/pyproject.toml +0 -13
  553. piloop-0.2.0/examples/plugins/no-unit-regression/README.md +0 -18
  554. piloop-0.2.0/examples/plugins/no-unit-regression/piloop_no_unit_regression/__init__.py +0 -24
  555. piloop-0.2.0/examples/plugins/no-unit-regression/pyproject.toml +0 -13
  556. piloop-0.2.0/examples/plugins/stop-after-keeps/README.md +0 -21
  557. piloop-0.2.0/examples/plugins/stop-after-keeps/piloop_stop_after_keeps/__init__.py +0 -44
  558. piloop-0.2.0/examples/plugins/stop-after-keeps/pyproject.toml +0 -13
  559. piloop-0.2.0/examples/plugins/verdict-checks/README.md +0 -24
  560. piloop-0.2.0/examples/plugins/verdict-checks/piloop_verdict_checks/__init__.py +0 -42
  561. piloop-0.2.0/examples/plugins/verdict-checks/piloop_verdict_checks/contract.py +0 -23
  562. piloop-0.2.0/examples/plugins/verdict-checks/pyproject.toml +0 -16
  563. piloop-0.2.0/install.sh +0 -44
  564. piloop-0.2.0/piloop/agents/capture.py +0 -118
  565. piloop-0.2.0/piloop/agents/launcher.py +0 -595
  566. piloop-0.2.0/piloop/agents/prompts/implementer.md +0 -131
  567. piloop-0.2.0/piloop/agents/prompts/research.md +0 -235
  568. piloop-0.2.0/piloop/agents/prompts/sql_procedures.md +0 -407
  569. piloop-0.2.0/piloop/agents/prompts/watchdog_incident.md +0 -23
  570. piloop-0.2.0/piloop/agents/prompts/watchdog_progress.md +0 -31
  571. piloop-0.2.0/piloop/agents/refill.py +0 -33
  572. piloop-0.2.0/piloop/agents/roles.py +0 -171
  573. piloop-0.2.0/piloop/agents/scout.py +0 -157
  574. piloop-0.2.0/piloop/campaign/archive.py +0 -354
  575. piloop-0.2.0/piloop/campaign/campaign_types.py +0 -53
  576. piloop-0.2.0/piloop/campaign/campaigns.py +0 -308
  577. piloop-0.2.0/piloop/campaign/ideas.py +0 -309
  578. piloop-0.2.0/piloop/campaign/inbox.py +0 -236
  579. piloop-0.2.0/piloop/campaign/memory.py +0 -90
  580. piloop-0.2.0/piloop/campaign/ops.py +0 -726
  581. piloop-0.2.0/piloop/campaign/spend.py +0 -153
  582. piloop-0.2.0/piloop/campaign/stop.py +0 -329
  583. piloop-0.2.0/piloop/campaign/templates/campaign/.entire/.gitignore +0 -5
  584. piloop-0.2.0/piloop/campaign/templates/campaign/.entire/settings.json +0 -1
  585. piloop-0.2.0/piloop/campaign/templates/campaign/brief.md +0 -47
  586. piloop-0.2.0/piloop/campaign/templates/campaign/evaluate.py +0 -25
  587. piloop-0.2.0/piloop/campaign/templates/campaign/piloop.toml +0 -160
  588. piloop-0.2.0/piloop/campaign/templates/enwik8/.entire/.gitignore +0 -5
  589. piloop-0.2.0/piloop/campaign/templates/enwik8/.entire/settings.json +0 -1
  590. piloop-0.2.0/piloop/campaign/templates/enwik8/brief.md +0 -32
  591. piloop-0.2.0/piloop/campaign/templates/enwik8/evaluate.py +0 -69
  592. piloop-0.2.0/piloop/campaign/templates/enwik8/piloop.toml +0 -31
  593. piloop-0.2.0/piloop/campaign/templates/titanic-tracks/.entire/.gitignore +0 -5
  594. piloop-0.2.0/piloop/campaign/templates/titanic-tracks/.entire/settings.json +0 -1
  595. piloop-0.2.0/piloop/campaign/templates/titanic-tracks/brief.md +0 -33
  596. piloop-0.2.0/piloop/campaign/templates/titanic-tracks/briefs/cost.md +0 -5
  597. piloop-0.2.0/piloop/campaign/templates/titanic-tracks/piloop.toml +0 -41
  598. piloop-0.2.0/piloop/cli/agents.py +0 -150
  599. piloop-0.2.0/piloop/cli/campaign.py +0 -271
  600. piloop-0.2.0/piloop/cli/candidate.py +0 -152
  601. piloop-0.2.0/piloop/cli/common.py +0 -125
  602. piloop-0.2.0/piloop/cli/daemon.py +0 -131
  603. piloop-0.2.0/piloop/cli/database.py +0 -98
  604. piloop-0.2.0/piloop/cli/doctor.py +0 -297
  605. piloop-0.2.0/piloop/cli/evaluation.py +0 -68
  606. piloop-0.2.0/piloop/cli/events.py +0 -71
  607. piloop-0.2.0/piloop/cli/idea.py +0 -267
  608. piloop-0.2.0/piloop/cli/inbox.py +0 -158
  609. piloop-0.2.0/piloop/cli/install.py +0 -130
  610. piloop-0.2.0/piloop/cli/main.py +0 -87
  611. piloop-0.2.0/piloop/cli/measurement.py +0 -43
  612. piloop-0.2.0/piloop/cli/memory.py +0 -44
  613. piloop-0.2.0/piloop/cli/plugins.py +0 -95
  614. piloop-0.2.0/piloop/cli/skills.py +0 -85
  615. piloop-0.2.0/piloop/cli/store.py +0 -132
  616. piloop-0.2.0/piloop/cli/upgrade.py +0 -106
  617. piloop-0.2.0/piloop/config.py +0 -1003
  618. piloop-0.2.0/piloop/daemon/__init__.py +0 -1
  619. piloop-0.2.0/piloop/daemon/archiver.py +0 -192
  620. piloop-0.2.0/piloop/daemon/main.py +0 -200
  621. piloop-0.2.0/piloop/daemon/run_executor.py +0 -1197
  622. piloop-0.2.0/piloop/daemon/scheduler.py +0 -1478
  623. piloop-0.2.0/piloop/daemon/serve.py +0 -275
  624. piloop-0.2.0/piloop/db/actor_triggers.sql +0 -168
  625. piloop-0.2.0/piloop/db/events.py +0 -23
  626. piloop-0.2.0/piloop/db/migrations/env.py +0 -42
  627. piloop-0.2.0/piloop/db/migrations/versions/0006_research_memory.py +0 -141
  628. piloop-0.2.0/piloop/db/models.py +0 -923
  629. piloop-0.2.0/piloop/db/session.py +0 -291
  630. piloop-0.2.0/piloop/db/sql.py +0 -314
  631. piloop-0.2.0/piloop/db/triggers/__init__.py +0 -119
  632. piloop-0.2.0/piloop/db/triggers/changelog.py +0 -157
  633. piloop-0.2.0/piloop/db/triggers/immutable.py +0 -62
  634. piloop-0.2.0/piloop/db/triggers/legacy.py +0 -84
  635. piloop-0.2.0/piloop/db/triggers/provenance.py +0 -51
  636. piloop-0.2.0/piloop/db/triggers/roles.py +0 -27
  637. piloop-0.2.0/piloop/deprecated.py +0 -314
  638. piloop-0.2.0/piloop/git.py +0 -254
  639. piloop-0.2.0/piloop/harnesses.py +0 -389
  640. piloop-0.2.0/piloop/mcp/__init__.py +0 -173
  641. piloop-0.2.0/piloop/mcp/pi.py +0 -58
  642. piloop-0.2.0/piloop/plugins/builtin/roles.py +0 -8
  643. piloop-0.2.0/piloop/plugins/builtin/stop.py +0 -85
  644. piloop-0.2.0/piloop/plugins/builtin/verdict.py +0 -165
  645. piloop-0.2.0/piloop/plugins/contracts/runtime.py +0 -37
  646. piloop-0.2.0/piloop/plugins/contracts/stop.py +0 -141
  647. piloop-0.2.0/piloop/plugins/contracts/store.py +0 -21
  648. piloop-0.2.0/piloop/plugins/contracts/verdict.py +0 -128
  649. piloop-0.2.0/piloop/plugins/host.py +0 -545
  650. piloop-0.2.0/piloop/proc.py +0 -112
  651. piloop-0.2.0/piloop/reports/feed.py +0 -439
  652. piloop-0.2.0/piloop/reports/history.py +0 -253
  653. piloop-0.2.0/piloop/reports/overview.py +0 -941
  654. piloop-0.2.0/piloop/reports/pack.py +0 -390
  655. piloop-0.2.0/piloop/reports/wake.py +0 -282
  656. piloop-0.2.0/piloop/runtime/__init__.py +0 -208
  657. piloop-0.2.0/piloop/runtime/factory.py +0 -50
  658. piloop-0.2.0/piloop/runtime/herdr.py +0 -1068
  659. piloop-0.2.0/piloop/runtime/subprocess.py +0 -309
  660. piloop-0.2.0/piloop/runtime/tags.py +0 -109
  661. piloop-0.2.0/piloop/scoring/evaluate.py +0 -171
  662. piloop-0.2.0/piloop/scoring/ledger.py +0 -721
  663. piloop-0.2.0/piloop/scoring/queue.py +0 -135
  664. piloop-0.2.0/piloop/settings.py +0 -236
  665. piloop-0.2.0/piloop/store/__init__.py +0 -503
  666. piloop-0.2.0/piloop/store/config.py +0 -39
  667. piloop-0.2.0/piloop/store/contract.py +0 -73
  668. piloop-0.2.0/piloop/store/gcs.py +0 -91
  669. piloop-0.2.0/piloop/store/s3.py +0 -104
  670. piloop-0.2.0/piloop/store/tree.py +0 -308
  671. piloop-0.2.0/piloop/text.py +0 -27
  672. piloop-0.2.0/piloop/triggers.py +0 -463
  673. piloop-0.2.0/piloop/usage/__init__.py +0 -186
  674. piloop-0.2.0/piloop/version.py +0 -26
  675. piloop-0.2.0/piloop/watch/app.py +0 -578
  676. piloop-0.2.0/piloop/watch/panels.py +0 -379
  677. piloop-0.2.0/pyproject.toml +0 -198
  678. piloop-0.2.0/scripts/db_volume.py +0 -375
  679. piloop-0.2.0/scripts/generate/capabilities.py +0 -33
  680. piloop-0.2.0/scripts/generate/configuration.py +0 -136
  681. piloop-0.2.0/scripts/generate/example_dir_store.py +0 -11
  682. piloop-0.2.0/scripts/generate/example_no_unit_regression.py +0 -11
  683. piloop-0.2.0/scripts/generate/example_verdict_checks.py +0 -11
  684. piloop-0.2.0/scripts/generate/harnesses.py +0 -17
  685. piloop-0.2.0/scripts/generate/herdr_settings.py +0 -12
  686. piloop-0.2.0/scripts/generate/markdown.py +0 -172
  687. piloop-0.2.0/scripts/generate/queue_keys.py +0 -22
  688. piloop-0.2.0/scripts/generate/role_defaults.py +0 -35
  689. piloop-0.2.0/scripts/generate/role_keys.py +0 -12
  690. piloop-0.2.0/scripts/generate/roles.py +0 -20
  691. piloop-0.2.0/scripts/generate/run_role_keys.py +0 -13
  692. piloop-0.2.0/scripts/generate/runtime_protocol.py +0 -22
  693. piloop-0.2.0/scripts/generate/runtimes.py +0 -23
  694. piloop-0.2.0/scripts/generate/states.py +0 -26
  695. piloop-0.2.0/scripts/generate/stop.py +0 -12
  696. piloop-0.2.0/scripts/generate/storage_backends.py +0 -19
  697. piloop-0.2.0/scripts/generate/sweep_role_keys.py +0 -13
  698. piloop-0.2.0/scripts/generate/triggers.py +0 -19
  699. piloop-0.2.0/scripts/generate_all.py +0 -94
  700. piloop-0.2.0/scripts/screenshots.py +0 -50
  701. piloop-0.2.0/skills/piloop-operate/SKILL.md +0 -483
  702. piloop-0.2.0/skills/piloop-review/SKILL.md +0 -286
  703. piloop-0.2.0/skills/piloop-setup/SKILL.md +0 -222
  704. piloop-0.2.0/tests/agents/test_capture.py +0 -41
  705. piloop-0.2.0/tests/agents/test_launcher.py +0 -903
  706. piloop-0.2.0/tests/agents/test_scout.py +0 -239
  707. piloop-0.2.0/tests/campaign/test_archive.py +0 -483
  708. piloop-0.2.0/tests/campaign/test_campaigns.py +0 -267
  709. piloop-0.2.0/tests/campaign/test_inbox.py +0 -291
  710. piloop-0.2.0/tests/campaign/test_memory.py +0 -169
  711. piloop-0.2.0/tests/campaign/test_ops.py +0 -645
  712. piloop-0.2.0/tests/campaign/test_spend.py +0 -206
  713. piloop-0.2.0/tests/campaign/test_stop.py +0 -921
  714. piloop-0.2.0/tests/cli/test_cli.py +0 -1707
  715. piloop-0.2.0/tests/cli/test_control_cli.py +0 -253
  716. piloop-0.2.0/tests/cli/test_doctor.py +0 -413
  717. piloop-0.2.0/tests/cli/test_events.py +0 -285
  718. piloop-0.2.0/tests/cli/test_store_cli.py +0 -140
  719. piloop-0.2.0/tests/conftest.py +0 -444
  720. piloop-0.2.0/tests/daemon/test_archiver.py +0 -368
  721. piloop-0.2.0/tests/daemon/test_archiving.py +0 -91
  722. piloop-0.2.0/tests/daemon/test_control.py +0 -144
  723. piloop-0.2.0/tests/daemon/test_daemon.py +0 -358
  724. piloop-0.2.0/tests/daemon/test_evaluation_queue.py +0 -378
  725. piloop-0.2.0/tests/daemon/test_research.py +0 -220
  726. piloop-0.2.0/tests/daemon/test_roles.py +0 -594
  727. piloop-0.2.0/tests/daemon/test_run_executor.py +0 -2699
  728. piloop-0.2.0/tests/daemon/test_scheduler.py +0 -2318
  729. piloop-0.2.0/tests/daemon/test_serve.py +0 -420
  730. piloop-0.2.0/tests/daemon/test_tracks_e2e.py +0 -149
  731. piloop-0.2.0/tests/daemon/test_triggers.py +0 -761
  732. piloop-0.2.0/tests/db/test_db_triggers.py +0 -191
  733. piloop-0.2.0/tests/db/test_fts.py +0 -146
  734. piloop-0.2.0/tests/db/test_migrations.py +0 -929
  735. piloop-0.2.0/tests/db/test_plans.py +0 -105
  736. piloop-0.2.0/tests/db/test_sql.py +0 -524
  737. piloop-0.2.0/tests/e2e/campaign.py +0 -261
  738. piloop-0.2.0/tests/e2e/conftest.py +0 -177
  739. piloop-0.2.0/tests/e2e/inventory.py +0 -258
  740. piloop-0.2.0/tests/e2e/test_lifecycle.py +0 -353
  741. piloop-0.2.0/tests/e2e/test_upgrade.py +0 -483
  742. piloop-0.2.0/tests/fixtures/fake_entire.py +0 -93
  743. piloop-0.2.0/tests/fixtures/fake_herdr.py +0 -136
  744. piloop-0.2.0/tests/fixtures/plugin.py +0 -87
  745. piloop-0.2.0/tests/fixtures/templates/piloop-0.1.0.toml +0 -94
  746. piloop-0.2.0/tests/fixtures/templates/piloop-0.2.0.dev.toml +0 -127
  747. piloop-0.2.0/tests/mcp/test_mcp.py +0 -341
  748. piloop-0.2.0/tests/reports/test_feed.py +0 -324
  749. piloop-0.2.0/tests/reports/test_history.py +0 -263
  750. piloop-0.2.0/tests/reports/test_overview.py +0 -756
  751. piloop-0.2.0/tests/reports/test_pack.py +0 -243
  752. piloop-0.2.0/tests/reports/test_pack_walk.py +0 -123
  753. piloop-0.2.0/tests/reports/test_tracks.py +0 -132
  754. piloop-0.2.0/tests/reports/test_wake.py +0 -280
  755. piloop-0.2.0/tests/runtime/test_dispatch.py +0 -61
  756. piloop-0.2.0/tests/runtime/test_herdr.py +0 -1320
  757. piloop-0.2.0/tests/runtime/test_subprocess.py +0 -392
  758. piloop-0.2.0/tests/runtime/test_tags.py +0 -122
  759. piloop-0.2.0/tests/scoring/test_contract.py +0 -105
  760. piloop-0.2.0/tests/scoring/test_evaluate.py +0 -130
  761. piloop-0.2.0/tests/scoring/test_verdict.py +0 -386
  762. piloop-0.2.0/tests/store/test_gcs.py +0 -102
  763. piloop-0.2.0/tests/store/test_s3.py +0 -65
  764. piloop-0.2.0/tests/store/test_storage_backend_contract.py +0 -57
  765. piloop-0.2.0/tests/store/test_store.py +0 -296
  766. piloop-0.2.0/tests/store/test_store_config.py +0 -82
  767. piloop-0.2.0/tests/store/test_tree.py +0 -260
  768. piloop-0.2.0/tests/test_config.py +0 -452
  769. piloop-0.2.0/tests/test_deprecated.py +0 -442
  770. piloop-0.2.0/tests/test_docs.py +0 -311
  771. piloop-0.2.0/tests/test_git.py +0 -145
  772. piloop-0.2.0/tests/test_infra.py +0 -102
  773. piloop-0.2.0/tests/test_plugins.py +0 -495
  774. piloop-0.2.0/tests/test_proc.py +0 -75
  775. piloop-0.2.0/tests/test_registry_names.py +0 -121
  776. piloop-0.2.0/tests/test_settings.py +0 -98
  777. piloop-0.2.0/tests/usage/test_usage.py +0 -387
  778. piloop-0.2.0/tests/watch/test_app.py +0 -944
  779. piloop-0.2.0/uv.lock +0 -1862
  780. {piloop-0.2.0 → piloop-0.3.1}/.github/ISSUE_TEMPLATE/2_feature_request.yml +0 -0
  781. {piloop-0.2.0 → piloop-0.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  782. {piloop-0.2.0 → piloop-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  783. {piloop-0.2.0 → piloop-0.3.1}/.github/dependabot.yml +0 -0
  784. {piloop-0.2.0 → piloop-0.3.1}/.github/workflows/pr-title.yml +0 -0
  785. {piloop-0.2.0 → piloop-0.3.1}/.github/workflows/release.yml +0 -0
  786. {piloop-0.2.0 → piloop-0.3.1}/.github/workflows/sync.yml +0 -0
  787. {piloop-0.2.0 → piloop-0.3.1}/.gitignore +0 -0
  788. {piloop-0.2.0 → piloop-0.3.1}/.greptile/config.json +0 -0
  789. {piloop-0.2.0 → piloop-0.3.1}/.python-version +0 -0
  790. {piloop-0.2.0 → piloop-0.3.1}/AGENTS.md +0 -0
  791. {piloop-0.2.0 → piloop-0.3.1}/LICENSE +0 -0
  792. {piloop-0.2.0 → piloop-0.3.1}/alembic.ini +0 -0
  793. {piloop-0.2.0 → piloop-0.3.1}/cliff.toml +0 -0
  794. {piloop-0.2.0 → piloop-0.3.1}/docs/architecture/data-model.mdx +0 -0
  795. {piloop-0.2.0 → piloop-0.3.1}/docs/favicon.svg +0 -0
  796. {piloop-0.2.0 → piloop-0.3.1}/docs/images/watch-campaign.svg +0 -0
  797. {piloop-0.2.0 → piloop-0.3.1}/docs/images/watch-candidates.svg +0 -0
  798. {piloop-0.2.0 → piloop-0.3.1}/docs/images/watch-ideas.svg +0 -0
  799. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/cwd-encoders.mdx +0 -0
  800. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/evaluate-examples.mdx +0 -0
  801. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/mcp-keys.mdx +0 -0
  802. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/readers.mdx +0 -0
  803. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/renderers.mdx +0 -0
  804. {piloop-0.2.0 → piloop-0.3.1}/docs/snippets/generated/tallies.mdx +0 -0
  805. {piloop-0.2.0 → piloop-0.3.1}/examples/plugins/min-gain/README.md +0 -0
  806. {piloop-0.2.0 → piloop-0.3.1}/examples/plugins/nice-runtime/README.md +0 -0
  807. {piloop-0.2.0 → piloop-0.3.1}/piloop/__init__.py +0 -0
  808. {piloop-0.2.0 → piloop-0.3.1}/piloop/__main__.py +0 -0
  809. {piloop-0.2.0 → piloop-0.3.1}/piloop/agents/__init__.py +0 -0
  810. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/__init__.py +0 -0
  811. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/enwik8/compressor.py +0 -0
  812. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/enwik8/pyproject.toml +0 -0
  813. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/titanic-tracks/briefs/accuracy.md +0 -0
  814. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/titanic-tracks/evaluate.py +0 -0
  815. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/titanic-tracks/pyproject.toml +0 -0
  816. {piloop-0.2.0 → piloop-0.3.1}/piloop/campaign/templates/titanic-tracks/solve.py +0 -0
  817. {piloop-0.2.0 → piloop-0.3.1}/piloop/cli/__init__.py +0 -0
  818. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/__init__.py +0 -0
  819. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/script.py.mako +0 -0
  820. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0001_initial.py +0 -0
  821. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0002_role_names.py +0 -0
  822. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0003_unmeasured.py +0 -0
  823. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0004_run_roles.py +0 -0
  824. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0005_recovered.py +0 -0
  825. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0007_lessons.py +0 -0
  826. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0008_archives.py +0 -0
  827. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0009_archive_pruning.py +0 -0
  828. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0010_run_scoring.py +0 -0
  829. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0011_role_keys.py +0 -0
  830. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0012_codex_input.py +0 -0
  831. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0013_evaluations.py +0 -0
  832. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0014_pause_a_project.py +0 -0
  833. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0015_campaign_tree.py +0 -0
  834. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0016_campaigns.py +0 -0
  835. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0017_evaluator_runner.py +0 -0
  836. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/migrations/versions/0018_agent_sessions.py +0 -0
  837. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/triggers/campaigns.py +0 -0
  838. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/triggers/ddl.py +0 -0
  839. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/triggers/fts.py +0 -0
  840. {piloop-0.2.0 → piloop-0.3.1}/piloop/db/triggers/links.py +0 -0
  841. {piloop-0.2.0 → piloop-0.3.1}/piloop/mcp/claude.py +0 -0
  842. {piloop-0.2.0 → piloop-0.3.1}/piloop/mcp/codex.py +0 -0
  843. {piloop-0.2.0 → piloop-0.3.1}/piloop/otel.py +0 -0
  844. {piloop-0.2.0 → piloop-0.3.1}/piloop/plugins/__init__.py +0 -0
  845. {piloop-0.2.0/piloop/plugins/builtin → piloop-0.3.1/piloop/plugins/cas}/__init__.py +0 -0
  846. {piloop-0.2.0/piloop/plugins/contracts → piloop-0.3.1/piloop/plugins/cas/kit}/__init__.py +0 -0
  847. {piloop-0.2.0/tests/fixtures → piloop-0.3.1/piloop/plugins/executor}/__init__.py +0 -0
  848. {piloop-0.2.0/piloop/agents → piloop-0.3.1/piloop/plugins/role}/prompts/scout.md +0 -0
  849. {piloop-0.2.0/piloop/agents → piloop-0.3.1/piloop/plugins/role}/prompts/watchdog.md +0 -0
  850. {piloop-0.2.0 → piloop-0.3.1}/piloop/reports/__init__.py +0 -0
  851. {piloop-0.2.0 → piloop-0.3.1}/piloop/scoring/__init__.py +0 -0
  852. {piloop-0.2.0 → piloop-0.3.1}/piloop/usage/jsonl.py +0 -0
  853. {piloop-0.2.0 → piloop-0.3.1}/piloop/usage/tallies/__init__.py +0 -0
  854. {piloop-0.2.0 → piloop-0.3.1}/piloop/usage/tallies/claude.py +0 -0
  855. {piloop-0.2.0 → piloop-0.3.1}/piloop/usage/tallies/codex.py +0 -0
  856. {piloop-0.2.0 → piloop-0.3.1}/piloop/usage/tallies/pi.py +0 -0
  857. {piloop-0.2.0 → piloop-0.3.1}/piloop/watch/__init__.py +0 -0
  858. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/__init__.py +0 -0
  859. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/actor_triggers.py +0 -0
  860. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/cwd_encoders.py +0 -0
  861. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/data_model.py +0 -0
  862. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/evaluate_examples.py +0 -0
  863. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/example_min_gain.py +0 -0
  864. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/example_nice_runtime.py +0 -0
  865. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/example_stop_after_keeps.py +0 -0
  866. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/imports.py +0 -0
  867. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/mcp_keys.py +0 -0
  868. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/plugin_examples.py +0 -0
  869. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/readers.py +0 -0
  870. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/renderers.py +0 -0
  871. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/schema.py +0 -0
  872. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/settings.py +0 -0
  873. {piloop-0.2.0 → piloop-0.3.1}/scripts/generate/tallies.py +0 -0
  874. {piloop-0.2.0 → piloop-0.3.1}/scripts/xai_search_mcp.py +0 -0
  875. {piloop-0.2.0 → piloop-0.3.1}/tests/cli/test_skills.py +0 -0
  876. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/auditor.md +0 -0
  877. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/config_0005.json +0 -0
  878. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/fake_bin.py +0 -0
  879. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/hold_lock.py +0 -0
  880. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/said/claude.jsonl +0 -0
  881. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/said/codex.jsonl +0 -0
  882. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/said/pi.jsonl +0 -0
  883. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/sessions/claude.jsonl +0 -0
  884. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/sessions/codex.jsonl +0 -0
  885. {piloop-0.2.0 → piloop-0.3.1}/tests/fixtures/sessions/pi.jsonl +0 -0
  886. {piloop-0.2.0 → piloop-0.3.1}/tests/test_generate_all.py +0 -0
  887. {piloop-0.2.0 → piloop-0.3.1}/tests/test_version.py +0 -0
  888. {piloop-0.2.0 → piloop-0.3.1}/tests/test_xai_search.py +0 -0
@@ -0,0 +1,32 @@
1
+ name: Bug report
2
+ description: Something in piloop does not work as the docs say.
3
+ labels: [bug]
4
+ body:
5
+ - type: textarea
6
+ id: what
7
+ attributes:
8
+ label: What happened
9
+ description: What you did, what you expected, and what happened instead.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: reproduce
14
+ attributes:
15
+ label: How to reproduce
16
+ description: The smallest set of steps or commands that shows the problem.
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: doctor
21
+ attributes:
22
+ label: Output of `piloop --version` and `piloop doctor`
23
+ render: text
24
+ validations:
25
+ required: true
26
+ - type: input
27
+ id: platform
28
+ attributes:
29
+ label: Operating system and harnesses
30
+ placeholder: macOS 26, Claude Code 2.1, runtime = "subprocess"
31
+ validations:
32
+ required: true
@@ -0,0 +1,141 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request: {}
7
+ workflow_call: {}
8
+ workflow_dispatch: {}
9
+
10
+ env:
11
+ COLUMNS: 150
12
+ UV_FROZEN: "1"
13
+ UV_PYTHON_PREFERENCE: only-managed
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ concurrency:
19
+ group: ci-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
20
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
21
+
22
+ jobs:
23
+ lint:
24
+ name: lint and install
25
+ runs-on: ubuntu-latest
26
+ timeout-minutes: 15
27
+ env:
28
+ ENWIK8_SHA256: 547994d9980ebed1288380d652999f38a14fe291a6247c157c3d33d4932534bc
29
+ steps:
30
+ - uses: actions/checkout@v7
31
+ with:
32
+ persist-credentials: false
33
+ - uses: astral-sh/setup-uv@v7
34
+ with:
35
+ python-version: "3.14"
36
+ enable-cache: true
37
+ cache-suffix: lint
38
+ - run: uv sync
39
+ - uses: pre-commit/action@v3.0.1
40
+ with:
41
+ extra_args: --all-files --verbose
42
+ env:
43
+ SKIP: no-commit-to-branch
44
+ UV_NO_SYNC: "1"
45
+ - run: git config --global user.name piloop-ci && git config --global user.email ci@piloop
46
+ - run: PILOOP_SRC=. ./install.sh
47
+ # The examples' data host sometimes serves a corrupt archive: CI downloads it only on a cache miss, checked.
48
+ # `piloop init` skips a data file that is already in place.
49
+ - uses: actions/cache@v6
50
+ id: enwik8
51
+ with:
52
+ path: /tmp/enwik8.zip
53
+ key: enwik8-zip-${{ env.ENWIK8_SHA256 }}
54
+ - name: download enwik8 until its checksum matches
55
+ if: steps.enwik8.outputs.cache-hit != 'true'
56
+ run: |
57
+ for attempt in 1 2 3 4 5; do
58
+ curl -fsSL --retry 3 -o /tmp/enwik8.zip https://mattmahoney.net/dc/enwik8.zip &&
59
+ echo "$ENWIK8_SHA256 /tmp/enwik8.zip" | sha256sum -c - && exit 0
60
+ sleep $((attempt * 10))
61
+ done
62
+ exit 1
63
+ - name: enwik8 example, headless
64
+ env:
65
+ PILOOP_CAMPAIGN_RUNTIME: subprocess
66
+ COLUMNS: 200
67
+ run: |
68
+ export PATH="$HOME/.local/bin:$PATH"
69
+ mkdir -p /tmp/enwik8/data && cp /tmp/enwik8.zip /tmp/enwik8/data/
70
+ piloop init --example enwik8 /tmp/enwik8 | tee /tmp/init.txt
71
+ grep -q "registered; baseline candidate#1" /tmp/init.txt
72
+ piloop serve --detach
73
+ piloop status enwik8
74
+ piloop stop
75
+ - name: the example plugins install next to piloop and are selected through the configuration
76
+ env:
77
+ PILOOP_HOME: /tmp/plugins-home
78
+ PILOOP_CAMPAIGN_RUNTIME: nice
79
+ PILOOP_CAMPAIGN_PLUGINS__VERDICT_RULE__PROVIDER: min_gain
80
+ PILOOP_CAMPAIGN_PLUGINS__VERDICT_RULE__MIN_GAIN: "100"
81
+ PILOOP_CAMPAIGN_PLUGINS__STOP_RULE__PROVIDER: after_keeps
82
+ PILOOP_CAMPAIGN_PLUGINS__STOP_RULE__KEEPS: "3"
83
+ COLUMNS: 200
84
+ run: |
85
+ export PATH="$HOME/.local/bin:$PATH"
86
+ uv tool install --force --from . piloop $(printf -- '--with ./%s ' examples/plugins/*/)
87
+ mkdir -p "$PILOOP_HOME" && printf '[plugins.cas]\nprovider = "sqlite"\npath = "/tmp/plugins-blobs.sqlite"\n' > "$PILOOP_HOME/config.toml"
88
+ piloop serve --check
89
+ mkdir -p /tmp/enwik8-nice/data && cp /tmp/enwik8.zip /tmp/enwik8-nice/data/
90
+ piloop init --example enwik8 /tmp/enwik8-nice
91
+ piloop plugins | tee /tmp/plugins.txt
92
+ grep -q "nice piloop-nice 0.1.0, entry point nice = piloop_nice:Nice$" /tmp/plugins.txt
93
+ grep -q "enwik8: runtime nice, from piloop-nice 0.1.0" /tmp/plugins.txt
94
+ grep -q "CAS provider sqlite, from piloop-sqlite-cas 0.1.0" /tmp/plugins.txt
95
+ grep -q "enwik8: verdict rule min_gain, from piloop-min-gain 0.1.0" /tmp/plugins.txt
96
+ grep -q "enwik8: stop rule after_keeps, from piloop-stop-after-keeps 0.1.0" /tmp/plugins.txt
97
+ - name: the wheel carries the skills (a stand-in codex on PATH)
98
+ run: |
99
+ export PATH="$HOME/.local/bin:$PATH"
100
+ mkdir -p /tmp/bin && printf '#!/bin/sh\n' > /tmp/bin/codex && chmod +x /tmp/bin/codex
101
+ PATH="/tmp/bin:$PATH" piloop install-skills
102
+ test -f ~/.agents/skills/piloop-operate/SKILL.md
103
+
104
+ test:
105
+ name: test on ${{ matrix.os }}
106
+ runs-on: ${{ matrix.os }}
107
+ timeout-minutes: 40
108
+ strategy:
109
+ fail-fast: false
110
+ matrix:
111
+ os: [ubuntu-latest, macos-latest]
112
+ exclude:
113
+ # macOS minutes are scarce in the private mirror: there it runs on demand and on release PRs only.
114
+ - os: ${{ (github.repository == 'hiloopai/piloop' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-')) && 'none' || 'macos-latest' }}
115
+ include:
116
+ - os: ubuntu-latest
117
+ make: testcov
118
+ # Two vCPUs; the tests wait on subprocesses, so four pytest workers finish sooner than two.
119
+ workers: 4
120
+ steps:
121
+ - uses: actions/checkout@v7
122
+ with:
123
+ persist-credentials: false
124
+ - uses: astral-sh/setup-uv@v7
125
+ with:
126
+ python-version: "3.14"
127
+ enable-cache: true
128
+ cache-suffix: test
129
+ - run: uv sync
130
+ - run: make ${{ matrix.make || 'test' }}
131
+ env:
132
+ PYTEST_XDIST_AUTO_NUM_WORKERS: ${{ matrix.workers }}
133
+
134
+ check:
135
+ if: always()
136
+ needs: [lint, test]
137
+ runs-on: ubuntu-latest
138
+ steps:
139
+ - uses: re-actors/alls-green@release/v1
140
+ with:
141
+ jobs: ${{ toJSON(needs) }}
@@ -0,0 +1,9 @@
1
+ {
2
+ "files": [
3
+ { "path": "CONTRIBUTING.md", "description": "Development setup, checks, the package layering, migrations, deprecations and the release notes." },
4
+ { "path": "docs/architecture/overview.mdx", "description": "The core loop and the components: what the daemon, the roles, the database and the verdict do." },
5
+ { "path": "docs/concepts/verdict.mdx", "description": "How a candidate is judged: primary, guardrail and watch metrics, margins, floors, confidence.", "scope": ["piloop/scoring/**", "tests/scoring/**"] },
6
+ { "path": "docs/concepts/roles.mdx", "description": "The roles, their triggers, working copies and permissions.", "scope": ["piloop/agents/**", "piloop/daemon/**", "piloop/plugins/role/**", "piloop/plugins/trigger/**"] },
7
+ { "path": "docs/architecture/data-model.mdx", "description": "Every table and its relationships.", "scope": ["piloop/db/**"] }
8
+ ]
9
+ }
@@ -0,0 +1,43 @@
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: no-commit-to-branch
6
+ - id: check-yaml
7
+ - id: check-toml
8
+ - id: end-of-file-fixer
9
+ exclude: ^tests/fixtures/store_0_2_0/
10
+ - id: trailing-whitespace
11
+ - id: check-added-large-files
12
+ args: [--maxkb=1024, --enforce-all]
13
+ exclude: ^uv\.lock$
14
+
15
+ - repo: local
16
+ hooks:
17
+ - id: format
18
+ name: Format
19
+ entry: make
20
+ args: [format]
21
+ language: system
22
+ types: [python]
23
+ pass_filenames: false
24
+ - id: lint
25
+ name: Lint
26
+ entry: make
27
+ args: [lint]
28
+ language: system
29
+ types: [python]
30
+ pass_filenames: false
31
+ - id: typecheck
32
+ name: Typecheck
33
+ entry: make
34
+ args: [typecheck]
35
+ language: system
36
+ types: [python]
37
+ pass_filenames: false
38
+ - id: docs
39
+ name: Generated docs
40
+ entry: make
41
+ args: [docs-check]
42
+ language: system
43
+ pass_filenames: false
@@ -0,0 +1,393 @@
1
+ # Changelog
2
+
3
+ All notable changes to piloop are in this file. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and piloop follows
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Before 1.0, a minor release may contain breaking changes.
6
+ A deprecated configuration key shows a warning for at least one minor release before it is removed.
7
+
8
+ ## [0.3.1](https://github.com/hiloopai/piloop/compare/v0.3.0...v0.3.1) - 2026-10-25
9
+
10
+ 0.3.0 was tagged but never published: its release checks failed on macOS. 0.3.1 is 0.3.0 plus this fix.
11
+
12
+ ### Fixed
13
+
14
+ - On macOS, an evaluator that exited before its stale lease killed it no longer fails the job, and is reaped.
15
+
16
+ ## [0.3.0](https://github.com/hiloopai/piloop/compare/v0.2.1...v0.3.0) - 2026-10-25
17
+
18
+ This release has breaking changes, marked **Breaking** below. Read
19
+ [Upgrading](https://piloop.autoresearch.inc/guides/upgrading) before you upgrade: upgrade to 0.2.1 first, and move
20
+ every active campaign off the herdr runtime with piloop 0.2, or the upgrade refuses.
21
+
22
+ The upgrade migrates the database from 0.2.0 or newer only. A 0.1.0 database upgrades through 0.2 first.
23
+
24
+ piloop 0.3.0 pins `covalence==0.1.0.dev6`, a pre-release of the library that computes the blob addresses. It has no
25
+ prebuilt wheel for Intel macOS, where the install builds it from source with a Rust toolchain.
26
+
27
+ ### Added
28
+
29
+ - Remote workers. `piloop serve --listen` serves leases over HTTPS, with bearer tokens (`piloop token create`), and
30
+ `piloop worker --server` takes them on another machine. `piloop cas serve` shares the home's CAS with it, and
31
+ implementers run there, with the workspace through the CAS. A proxy network trusts what an authenticating proxy
32
+ stamps.
33
+ - A pool's provisioner starts its workers on demand; `modal` is the first.
34
+ - The executor capability: dispatch is a provider, and `workers` is the built-in one. Pools bound the agents and the
35
+ evaluations of each worker, `piloop worker list` shows why one got no lease, and `piloop limits` changes a live key.
36
+ - The CAS capability: `[plugins.cas]` in `config.toml` selects `disk`, `cached`, `s3` or `gcs`.
37
+ - The vcs capability: `[plugins.vcs]` selects how a campaign saves versions; `git` is the default and only provider.
38
+ - Secrets for agents: `piloop secret`, and secret references in `[harness.<name>] env`.
39
+ - The daemon serves an HTTP API on its Unix socket. `piloop status`, `inbox` and `events` are its clients.
40
+ - `piloop prompt` leaves a note that the daemon delivers through the executor.
41
+ - A remeasure, and a metric with repeats, judge on pairs of the candidate and its bar.
42
+ - An `agent_session.identified` event once an agent's harness session is known.
43
+ - Each role sets its reasoning effort. Research defaults to Opus 5.5 and GPT-6.1-Sol.
44
+ - `piloop.capabilities` is the one module that a plugin imports, and every role is a provider: a plugin role ships its
45
+ prompt.
46
+ - `piloop status`, the API's overview and the briefs are made of sections, which `[status] sections` and
47
+ `[roles.<name>] sections` list, and which a plugin can add. The watchdog's brief has the lessons too.
48
+
49
+ ### Changed
50
+
51
+ - **Breaking:** The herdr runtime is removed. Agents run on `subprocess`, and the upgrade refuses an active campaign
52
+ or a live agent on herdr.
53
+ - **Breaking:** `[roles.<name>] workdir` is removed: every agent works in a worktree of its own.
54
+ - **Breaking:** `./workspace/` is a read-only copy of the shared workspace as of the agent's start; its writes and
55
+ removals land when it ends, and the evaluate command gets none. Linked inputs are read-only too.
56
+ - **Breaking:** Entire is removed: `entire_agent`, `entire_attach_timeout_seconds`, `agent_sessions.checkpoint_id` and
57
+ the kept lineage's `checkpoint`. piloop finds each session by its session id.
58
+ - **Breaking:** `runs.end` says how a run ended. Compare it, not `runs.error`.
59
+ - **Breaking:** A candidate's verdict is only a judgement. `pending`, `reference`, `unmeasured` and `recovered` are
60
+ `origin` and `cause` now, and the CLI says `skipped` for `unmeasured`.
61
+ - **Breaking:** `candidates.commit_sha` is `candidates.revision`, and `documents.commit_sha` is gone.
62
+ - **Breaking:** A run's brief is in the CAS: `runs.brief` is `runs.brief_cid`, and the brief is in
63
+ `<runs.log_dir>/brief.md`.
64
+ - **Breaking:** Event payloads are typed and hold their `kind`. The upgrade rewrites the old events, and `piloop sql`
65
+ refuses an `INSERT INTO events`. `comment.delivered` means the agent read the prompt; what it meant before is
66
+ `comment.queued`.
67
+ - **Breaking:** Blob addresses are CIDs, and archive manifests are DASL values. The upgrade stores each manifest again.
68
+ - **Breaking:** `piloop status`, `inbox` and `events` need a running daemon.
69
+ - **Breaking:** A `[harness.<built-in>]` table merges over the built-in's keys. A full override takes a name of its own.
70
+ - **Breaking:** Every plugin contract changed: a provider is its own parameters, and its class subclasses its
71
+ capability's contract. Runtimes, triggers, stop rules, verdict rules, roles and executors change shape.
72
+ - **Breaking:** A watch metric is not part of an evaluator's identity. Adding, removing or changing one measures
73
+ nothing again, and making one a guardrail or a primary, or the reverse, makes a new evaluator. The upgrade gives
74
+ each campaign's current evaluator its new key.
75
+ - The daemon wakes on the event feed and on the times its rules name, not on a 2-second tick.
76
+ - A database upgrades one minor release at a time.
77
+
78
+ ### Deprecated
79
+
80
+ These still load, with a warning, until 0.4.0:
81
+
82
+ - `[stop]`, `[spend] limit` and `confidence`: write them in `[plugins.stop_rule]` (`max_spend`) and
83
+ `[plugins.verdict_rule]`. `PILOOP_CAMPAIGN_SPEND__LIMIT` is not bridged.
84
+ - `kind` in a trigger entry: write `provider`.
85
+ - `[storage.backend]` in `config.toml`: write `[plugins.cas] provider = "cached"`.
86
+ - `max_evaluations` and `PILOOP_MAX_EVALUATIONS`: write `evaluations` in `[plugins.executor.pools.serve]`.
87
+ - `tick_seconds` in `config.toml`: delete it.
88
+
89
+ Until 0.5.0:
90
+
91
+ - `PILOOP_SECRETS_COMMAND`: keep the secrets with `piloop secret set`.
92
+ - `[memory] wake_budget` and `[roles.<name>] wake_budget`: write the `budget` of the `lessons` entry of the role's
93
+ `sections`.
94
+
95
+ ### Removed
96
+
97
+ - The keys that 0.2.0 deprecated: `[roles.worker]`, `[roles.research.scout]`, the `scout` trigger,
98
+ `[roles.research] buffer` and `context`, `{claude_config_dir}` and `{codex_home}`, `[storage.remote]` and
99
+ `PILOOP_PROJECT_<KEY>`. Each fails with a link to the upgrading guide.
100
+ - The compat code for agents that 0.1.0 started.
101
+
102
+ ### Fixed
103
+
104
+ - Runs end cleanly: a finding ends the run, the brief states the deadline with a wrap-up, Claude reads messages
105
+ mid-turn, and a failed run retries from its last commit. A run's deadline stops at `max_hours`.
106
+ - An agent that the daemon ended can no longer leave a finding, and an answer to an escalation is no longer lost.
107
+ - The closing review waits for the stopped campaign's last commits.
108
+ - Research may add its own idea when the campaign has stalled, even with a full backlog.
109
+ - A hand keep off the head is rebased, and a skipped commit is measured on request.
110
+ - `piloop doctor` warns, and does not fail, on the `piloop.toml` and the missing secrets of a stopped campaign.
111
+ - A home whose socket path is too long for the system, as a deep `PILOOP_HOME` on macOS is, serves its API on a
112
+ short path in `/tmp/piloop-<uid>/`.
113
+ - A failed evaluation's measurement keeps the `METRIC` lines that it printed.
114
+ - `piloop sql` explains a sqlite3 dot-command, and event times have one format.
115
+ - A database that another piloop build migrated is refused, even at a revision id that this build also has.
116
+ - `piloop watch <campaign>` refuses a home without that campaign before it opens the database.
117
+ - Linked inputs keep their modification times, so a linked venv's bytecode stays current.
118
+ - The examples measure time that load does not inflate.
119
+ - The database closes every connection that it handed out.
120
+
121
+ ## [0.2.1](https://github.com/hiloopai/piloop/compare/v0.2.0...v0.2.1) - 2026-10-24
122
+
123
+ Upgrade to 0.2.1 before you upgrade to 0.3.0: `uv tool install 'piloop==0.2.1'`, then `piloop restart`. The running
124
+ agents keep going.
125
+
126
+ ### Fixed
127
+
128
+ - The daemon reads the installed entry points once per process, not on every tick. A 0.2.0 daemon reads them while
129
+ `piloop upgrade` installs 0.3.0, loads the plugins of 0.3.0 into its own code, and stops, with its agents.
130
+
131
+ ## [0.2.0](https://github.com/hiloopai/piloop/compare/v0.1.0...v0.2.0) - 2026-10-21
132
+
133
+ This release has breaking changes, marked **Breaking** below. Read
134
+ [Upgrading](https://piloop.autoresearch.inc/guides/upgrading) before you upgrade.
135
+
136
+ The upgrade migrates the database. piloop backs up the database before it migrates it, and the upgrading guide says
137
+ how to go back to 0.1.0 from that copy.
138
+
139
+ ### Added
140
+
141
+ - Campaign control from the CLI, each change validated and logged:
142
+ - `piloop campaign stop <campaign> [--kill] [--reason "…"]` stops a campaign by hand, as a `[stop]` condition does,
143
+ also while a pause or the `[spend]` limit holds it. The daemon drops the queued work, tells the running
144
+ implementers to commit and stop, ends them 10 minutes later, scores their commits and runs the closing review.
145
+ `--kill` ends them at once. `[spend] closing_review` (`run`, `skip` or `wait`) decides the closing review of a
146
+ campaign that stops at its spend limit.
147
+ - `piloop pause <campaign> --reason "…"` and `piloop resume <campaign>`. During a pause nothing launches, no run is
148
+ queued and no role is requested, while running work finishes and is scored. A pause raises no escalation, and
149
+ paused time does not count toward `[stop] max_hours`. `--evals` also holds the measurements of a new evaluator.
150
+ - `piloop run cancel <run> [--wrap-up]` and `piloop agent cancel <agent> [--wrap-up]` end one run or one agent of any
151
+ role, also an agent that 0.1.0 started, with the processes of its tool calls. A cancelled run closes as
152
+ `cancelled`, counts toward no run limit, parks its idea, and its commits are scored. `--wrap-up` tells the agent
153
+ to commit and stop first.
154
+ - `piloop candidate remeasure <id>` measures a candidate again with the current evaluator, for a measurement that a
155
+ fault of the host spoiled or for one more repeat. A stopped campaign is measured only on request.
156
+ - `piloop candidate verdict <id> keep|interesting|discard|crash --reason "…"` overrides a verdict, and
157
+ `piloop measurement add <id> --report <file>` records a measurement made by hand. The daemon then judges again a
158
+ verdict that it set.
159
+ - `piloop idea status`, `link`, `unlink`, `base` and `track` change an idea, with the reason in a note. A link that
160
+ closes a cycle is refused, and so is a change that conflicts with an open run. `piloop idea develop` takes
161
+ `--after` and `--supersedes`, like `piloop idea add`.
162
+ - Campaign types and a tree of campaigns. Each campaign has a type (`campaigns.type`; `optimization` is the only type
163
+ for now) and an optional parent. `piloop campaign parent` sets the parent, and `piloop campaign tree` prints the
164
+ tree. The database refuses a cycle of parents. Each evaluator records its runner, `evaluators.runner`; the only
165
+ runner is `process`.
166
+ - The evaluation queue. The daemon runs at most `max_evaluations` evaluate commands at the same time, across all
167
+ campaigns (2 by default; `config.toml` or `PILOOP_MAX_EVALUATIONS`). A free slot goes to the campaign with the
168
+ fewest running evaluations, and there to its head first, then to the oldest request. Two runs that reach one tree
169
+ share one evaluation. `piloop eval queue` lists the evaluations that run or wait, and `piloop eval cancel
170
+ <candidate>` cancels one.
171
+ - An event feed for programs. `piloop status --json` and `piloop inbox --json` print one JSON document with the
172
+ cursor they were read at, and `piloop events --after <cursor> [--campaign] [--kind] [--limit] [--follow] --json`
173
+ prints the events after it, in one versioned envelope. A program reads a snapshot, then follows it, and misses no
174
+ event. See the [event feed](https://piloop.autoresearch.inc/reference/event-feed) page.
175
+ - Roles are configuration. A `[roles.<name>]` table with a new name defines a role: its prompt, its triggers, its
176
+ runtime, its working copy (`workdir`), its harnesses and limits, and what it may file (`files`). The built-in roles
177
+ are the same tables with defaults, and each accepts every key. A role that you define can do runs
178
+ (`runs = true`): it takes the ideas that its `takes` query selects, and its commits are scored and judged.
179
+ `runs.role` records the role of each run. `piloop launch <campaign> <role>` takes any sweeping role.
180
+ - Triggers start the sweeping roles: `anomaly`, `cron`, `seed`, `low_water`, `stopped` (the closing review, in the
181
+ watchdog's defaults) and `sql`, a query on the piloop database. Any sweeping role can use any trigger, and any
182
+ sweeping role can fill the backlog: `max_ideas` is a key of every sweeping role, and `buffer` a parameter of
183
+ `low_water`. `incident_prompt` and `routine_prompt` add a prompt file to an incident sweep and to every other
184
+ sweep.
185
+ - Plugins. One plugin host loads every capability, and `piloop plugins` shows each capability, its providers and the
186
+ package of each. A package adds runtimes, storage backends, triggers, roles, verdict rules and stop rules through
187
+ entry points, and can declare a capability of its own for other packages to extend. `[plugins.verdict_rule]` and
188
+ `[plugins.stop_rule]` select the rule that judges a candidate and the rule that decides whether a campaign goes,
189
+ holds or stops; the built-in rules keep 0.1.0's behavior. With `[spend]` set, a stop rule must read the spend.
190
+ `examples/plugins/` has a runtime, a storage backend, verdict rules and a stop rule. See the
191
+ [extension points](https://piloop.autoresearch.inc/architecture/extension-points) page.
192
+ - The runtime contract: `focus`, `attach`, `view` and `checks`. `piloop attach`, `piloop prompt`, `enter` in
193
+ `piloop watch`, the place of an agent in `piloop status` and the runtime checks of `piloop doctor` ask the runtime
194
+ of the agent, so a runtime that a package adds works with all of them.
195
+ - Research memory, which every agent can query with SQL, across every campaign on the same repository:
196
+ - The `lessons` table: the standing conclusion about one mechanism family, with its status (`dead`, `promising` or
197
+ `untested`), the best effect and its metric. A new conclusion is a new row. The closing watchdog writes one for
198
+ each family that the campaign tried.
199
+ - The `documents` table holds reports, logs and design notes, searchable with `documents_fts`. `piloop init` and
200
+ the stop of a campaign copy in the files that `[memory] documents` globs match.
201
+ - `campaigns.repo` names the repository, whatever the clone.
202
+ - The briefs of implementers and research sweeps open with the current lessons of the repository, in
203
+ `[memory] wake_budget` tokens (`wake_budget` of a role; 0 turns it off).
204
+ - The orchestrator's journal. `piloop journal "<line>"` appends one line, and `piloop wake` prints a bounded overview
205
+ for a new orchestrator session: the latest journal lines, the open inbox, the heads of the active campaigns and the
206
+ current lessons.
207
+ - The artifact store. The daemon archives the shared workspace in the background: the entries of a done idea
208
+ (`workspace/idea<id>…`) once its last run is judged, and what a stopped campaign left. Files go into one
209
+ content-addressed store per `PILOOP_HOME` (`$PILOOP_HOME/store`, zstd at rest), and the `archives` table records
210
+ each manifest. The daemon removes the local copies 7 days after their archiving, or sooner while the disk has less
211
+ than `[storage] min_free_gb` (20 GB) free. `piloop restore <campaign> [<idea>|<path>]` writes files back, and
212
+ `piloop store status|evict|verify` show the store and check it. The new settings file `$PILOOP_HOME/config.toml`
213
+ holds `[storage]`: `[storage.backend]` mirrors the store to `s3` or, with the `piloop[gcs]` extra, `gcs`. The first
214
+ daemon start after the upgrade archives every done idea and stopped campaign that is already there.
215
+ - piloop backs up the database before it migrates it: `$PILOOP_HOME/piloop.db.bak-<revision>-<UTC time>`, made with
216
+ SQLite's `VACUUM INTO`. `piloop migrate`, `piloop upgrade` and the daemon's log say where the copy is. piloop
217
+ keeps the newest 3; `migration_backups` in `config.toml` sets how many, and 0 turns backups off. When the copy
218
+ cannot be written, nothing is migrated.
219
+ - Run `main` next to a release on one machine, each with its own home: see "Run main next to a release" in
220
+ CONTRIBUTING.md. Agents run their daemon's own piloop (`PILOOP_BIN`), and every piloop that piloop starts runs
221
+ with `python -P`, so a file in a worktree cannot shadow piloop's imports. `PILOOP_CLAUDE_SKILLS_DIR` keeps the
222
+ Claude Code skills of a second install apart, and `PILOOP_CLI` names the command that `piloop doctor` prints.
223
+ - `piloop doctor` notes a newer piloop at the source that you installed from. The orchestrator then asks you before
224
+ it upgrades, unless `PILOOP_AUTO_UPGRADE=1` is set. `piloop doctor` also checks that git is 2.40 or later.
225
+ - `piloop sql -` reads the statement from stdin. The briefs and skills write free text this way, in a quoted
226
+ heredoc, so the agent's shell never expands it.
227
+ - Harness keys: `busy_screens`, `failed_turn_screens`, `queue_key` and `composer` (what the Herdr runtime reads on the
228
+ screen of an agent, and how it queues a message), and `resume` (how piloop continues a session). The built-in
229
+ harnesses set them, and a definition that leaves one unset takes it from the built-in harness with the same
230
+ `executable`.
231
+ - A usage glob reads an environment variable with `{env:NAME:default}`. The built-in Claude Code and Codex globs read
232
+ `CLAUDE_CONFIG_DIR` and `CODEX_HOME` this way.
233
+ - Under the Herdr runtime, an implementer that left its finding and went idle while jobs that it started still run
234
+ is told once which jobs keep its run open.
235
+ - The docs have a [Runtimes](https://piloop.autoresearch.inc/concepts/runtimes) page. The tables of the built-in
236
+ runtimes, triggers, harnesses and role defaults, the `[stop]` keys and the environment variables are generated
237
+ from the code.
238
+
239
+ ### Changed
240
+
241
+ - **Breaking:** A project is a campaign. The `projects` table is `campaigns`, and every `project_id` column is
242
+ `campaign_id`. The target kind `project` is `campaign`, and the `project.*` events are `campaign.*`. The upgrade
243
+ migrates the database and the queries of the stored configs. Change the SQL in your `piloop.toml`, your prompt
244
+ files and your scripts: a query with an old table or column name fails and names the new one. A query on an old
245
+ value, such as `kind = 'project.status'`, finds nothing.
246
+ - **Breaking:** The worker role is the implementer, and the `workers` table, which has one row for each agent session
247
+ of any role, is `agent_sessions`. Every `worker_id` column is `agent_session_id`. The role value `worker` is
248
+ `implementer` (in `agent_sessions.kind` and `runs.role`), and the signature `worker#<id>` is `implementer#<id>`.
249
+ The target kind `worker` is `agent_session`, `worker.wrap_up` is `agent_session.wrap_up`, and `worker.started` and
250
+ `worker.finished` are `implementer.started` and `implementer.finished`. Restart the running agents after the
251
+ upgrade, so that they read the new names.
252
+ - **Breaking:** The environment variable that tags every process of an agent is `PILOOP_PROCESS_TAG`, not
253
+ `PILOOP_WORKER_TOKEN`. piloop still finds the processes of an agent that 0.1.0 started.
254
+ - **Breaking:** Only `piloop serve` (when the daemon starts), `piloop migrate` and `piloop upgrade` migrate the
255
+ database. Every other command, such as `status`, `sql`, `inbox` and `watch`, refuses a database at another schema
256
+ revision, changes nothing, and says what to run: `piloop migrate`, `piloop restart` when the daemon of an older
257
+ piloop runs, or a newer piloop when a newer one migrated it. `piloop init` still creates a missing database. After
258
+ you install a piloop that changes the schema, run `piloop upgrade` or `piloop migrate` before any other command.
259
+ - piloop needs git 2.40 or later (0.1.0 needed 2.38). `piloop doctor` checks it.
260
+ - While the daemon of an older piloop runs, whoever started it, `piloop migrate` and `piloop serve` do not migrate
261
+ the database: they exit and say what to run. All pending migrations run in one transaction, so an interrupted
262
+ upgrade leaves the database as it was.
263
+ - The scout is a built-in role, `[roles.scout]`, instead of a mode of research. It is off until you set its
264
+ `interval`, and it has its own `max_concurrent`, so a scout sweep and a research sweep can run at the same time.
265
+ Its agents still sign `scout#<id>`. The upgrade makes the earlier scout sweeps `scout` rows.
266
+ - Events are append-only for every piloop connection, `piloop sql` included: an UPDATE or a DELETE of `events` is
267
+ refused, and so is an insert that sets its own id or a value of the wrong type.
268
+ - A commit marked `Piloop-Eval: skip` gets the new verdict `unmeasured` instead of `discard`, so scaffolding no longer
269
+ counts as a dead end. The upgrade converts the existing skip discards.
270
+ - The reason of every verdict names each guardrail past its floor or beyond its margin, also on a `discard` for the
271
+ primary metric, so a large regression of another metric is no longer hidden.
272
+ - A run whose implementer stops while its own escalation waits for an answer fails with `blocked on escalation
273
+ comment#<id>`, and its idea is `parked` with a note. It is not an anomaly: the escalation is in the inbox already.
274
+ - The `input` of `agent_sessions.usage` is the uncached input for every harness. For Codex it included the cache
275
+ reads; the upgrade corrects the stored rows.
276
+ - The history shows the findings of every role on the campaign. The overview no longer lists the watchdog's findings:
277
+ its section is the inbox, the decisions and the escalations.
278
+ - The implementer's brief names its worktree as the place for every edit, evaluation and commit, and the campaign
279
+ repo as read-only. It asks for output under `workspace/idea<id>/`, for an escalation when the implementer needs
280
+ what it cannot do itself, and for a wait on a job by its process id.
281
+ - The service unit (`piloop service-unit`) carries the variables that the usage globs of the harnesses name, instead
282
+ of a fixed `CLAUDE_CONFIG_DIR` and `CODEX_HOME`.
283
+ - After an evaluator change, the daemon measures again only the head, the bar of each open run and of each `ready`
284
+ pinned idea, and the candidates that you ask for. Unpinned runs wait only for the head's new score. Before, every
285
+ keep and reference was measured again, one at a time, and runs waited for all of them.
286
+
287
+ ### Deprecated
288
+
289
+ These keep working, with a `PiloopDeprecationWarning`, and are removed in 0.3.0.
290
+
291
+ - `[roles.worker]`: write `[roles.implementer]`.
292
+ - `PILOOP_PROJECT_<KEY>`: set `PILOOP_CAMPAIGN_<KEY>`. When both are set, `PILOOP_CAMPAIGN_<KEY>` wins.
293
+ - `[roles.research.scout]`: write `[roles.scout]`. The keys of `[roles.research]` that the scout used (`runtime`,
294
+ `harnesses`, `model`, `timeout`, `mcp`, `addendum`, `workdir`) move with it.
295
+ - `[roles.research] buffer`: write `buffer` on research's `low_water` trigger.
296
+ - `[roles.research] context`: write the top-level `context`.
297
+ - `{claude_config_dir}` and `{codex_home}` in `[harness.<name>.usage] file`: write `{env:CLAUDE_CONFIG_DIR:~/.claude}`
298
+ and `{env:CODEX_HOME:~/.codex}`.
299
+ - An agent that 0.1.0 started and that runs on after the upgrade still signs `worker#<id>`. piloop counts its rows as
300
+ the implementer's.
301
+ - If you ran piloop from `main` after 0.1.0: `{ kind = "scout" }` in `[roles.research] triggers` (delete it),
302
+ `herdr_<key>` in `config.toml` (write `<key>` in `[runtimes.herdr]`) and `[storage.remote]` (write
303
+ `[storage.backend]`). The upgrading guide lists the names of `main` that changed with no alias.
304
+
305
+ ### Removed
306
+
307
+ - **Breaking:** `piloop launch <campaign> research --scout`. Run `piloop launch <campaign> scout`.
308
+
309
+ ### Fixed
310
+
311
+ - Ending an agent under the subprocess runtime (its timeout, a stop, the end of its run) also ends what it started in
312
+ sessions of its own, such as Claude Code's Bash calls and the builds they run. Before, those processes ran on for
313
+ hours. Under both runtimes, the processes are stopped before they are killed, so a build that forks meanwhile
314
+ leaves no children.
315
+ - What piloop starts from an agent's shell no longer carries the agent's process tag or `PILOOP_ACTOR`: a daemon
316
+ started with `piloop serve --detach` from an agent signed as that agent and died with it.
317
+ - An agent whose start failed after its process was spawned is stopped and waited for, instead of running on with
318
+ nothing that watched it.
319
+ - An agent whose worktree could not be made (a full disk) no longer stays `starting` and holds a slot forever. It is a
320
+ failed start: the row is closed with the error, and the run is launched again. A run whose every agent failed to
321
+ start is not an attempt at its idea: the idea is `parked`.
322
+ - An implementer that ends within two minutes without a commit, an uncommitted change or a comment did not start to
323
+ work, whatever its harness. Before, such a run counted as an attempt and could set its idea `done`.
324
+ - What an implementer leaves uncommitted is a `recovered` candidate: committed on its own with a
325
+ `Piloop-Recovered: run#<id>` trailer, never measured, never kept. Before, it was scored and could become the head.
326
+ When the run did not succeed, the idea goes back to the queue with that candidate as its base, up to
327
+ `recovery_requeues` times (2), so a new implementer finishes the work.
328
+ - A run whose implementer left its finding is finished, however its process then ends: a timeout, an error exit, a
329
+ cancel or a stop no longer sends its idea back to the queue, and a daemon stop no longer starts the same work
330
+ again.
331
+ - A message to an agent (a pushed comment, `piloop prompt`, the wrap-up) waits for the agent's turn to end, under both
332
+ runtimes. Under the `subprocess` runtime it was refused. A message to a Codex agent no longer ends its turn with
333
+ `400 unsupported websocket request type`.
334
+ - A Herdr server that does not answer for a moment no longer ends the agents that the daemon watches: reads are
335
+ retried for `PILOOP_HERDR_UNAVAILABLE_SECONDS` (300) before they fail.
336
+ - A Herdr agent has a startup grace for its first turn (`PILOOP_HERDR_STARTUP_GRACE_SECONDS`, 60 s, instead of 5 s).
337
+ On a loaded host, a Codex that had started its turn was closed as `prompt_lost` or as idle. A first prompt that
338
+ stays typed in the composer is submitted with Enter, at most twice.
339
+ - The daemon reaps the child processes that an in-place restart (`piloop restart`, `piloop upgrade`) hands over.
340
+ Before, each became a zombie when it exited.
341
+ - The subprocess runtime no longer fails the start of an agent that exits at once on macOS.
342
+ - `[stop] max_runs` and `[stop] plateau` count the same runs: a run counts when it reached the evaluator with a
343
+ candidate. A run that ended before it committed, or with only `Piloop-Eval: skip` commits, counts toward neither,
344
+ so a stream of failed launches no longer stops a campaign. `max_runs` stops the campaign only when no counted run
345
+ runs or is being scored, so the last run is no longer cut short. A campaign set `active` again after a stop starts
346
+ a fresh `plateau` window.
347
+ - `piloop init` in an existing repo commits only the files that it wrote, never another agent's uncommitted work, and
348
+ it validates `piloop.toml` before it commits it.
349
+ - `Piloop-Eval` and `Piloop-Note` trailers count on any line after the subject. A harness's own trailers
350
+ (`Co-Authored-By`) hid them, so skipped commits were evaluated and notes were lost.
351
+ - A trunk run that merges a branch keep onto the head is judged against the head, not against the branch keep.
352
+ - Every commit of a run is a `pending` candidate as soon as the run ends, instead of after the commits before it were
353
+ measured.
354
+ - The daemon sets a verdict only on a pending candidate or on its own earlier non-keep verdict, in the transaction
355
+ that writes it: another track's run no longer overwrites a keep. A run's commits are its first-parent history, so
356
+ the line that a merge brings in is not scored again.
357
+ - Two runs that reach the same tree share one candidate, instead of failing. A rebase merges by tree, so only the real
358
+ changes on each side merge. A rejected compose seed stays rejected.
359
+ - An evaluation that another process kills names the signal in its error, and the daemon runs it once more in a fresh
360
+ worktree.
361
+ - An implementer of a stopped campaign that the daemon ends after the grace period closes its run as `campaign
362
+ stopped`, with an `agent_session.stop_ended` event, instead of counting as an attempt at its idea. Its commits are
363
+ still scored. A stopped campaign no longer files compose seeds when a merge onto the head conflicts.
364
+ - An idea that a sweep adds while its role's `max_ideas` is 0 is `proposed`, not `ready`.
365
+ - An agent's free text (a comment, a note) that holds backticks, `$(…)` or `$VAR` is no longer expanded by the
366
+ agent's shell.
367
+
368
+ ## [0.1.0] - 2026-10-13
369
+
370
+ Initial public release.
371
+
372
+ ### Added
373
+
374
+ - `piloop init`: makes a git repo a project, measures the baseline and registers it. Two bundled examples:
375
+ `enwik8` (compress Wikipedia text) and `titanic-tracks` (accuracy and CPU cost on Kaggle's Titanic data).
376
+ - The daemon, `piloop serve`: starts coding agents (Claude Code, Codex or pi) in git worktrees, scores every commit
377
+ with the project's evaluate command, and keeps what beats the head.
378
+ - The verdict: one primary metric that must improve with confidence, guardrail metrics with margins and floors, and
379
+ a paired bootstrap over per-unit results.
380
+ - Three agent roles: the worker, the watchdog and the research agent, with a scout mode for outside techniques.
381
+ - Ideas, seeds, links between ideas, branch runs from pinned starting points, notes on regressed results, and
382
+ imported reference candidates.
383
+ - Tracks: several objectives for one project, on one trunk.
384
+ - The orchestrator skills (setup, operate, review) for Claude Code, Codex, pi, Gemini CLI and Cursor, and the inbox
385
+ where the orchestrator records its decisions.
386
+ - `piloop watch`: the campaign on one screen, with keys to act on it.
387
+ - Stop conditions, token accounting for every agent, and a hard spend limit in USD.
388
+ - Session capture of every agent with Entire.
389
+ - MCP servers for the agents of a role, defined once for every harness, with keys from the daemon's environment or
390
+ `PILOOP_SECRETS_COMMAND`.
391
+ - `piloop restart`, `piloop upgrade`, `piloop doctor` and `piloop service-unit` for campaigns that run for days.
392
+
393
+ [0.1.0]: https://github.com/hiloopai/piloop/releases/tag/v0.1.0