loopmath 0.3.2__tar.gz → 0.4.0rc1__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 (494) hide show
  1. {loopmath-0.3.2 → loopmath-0.4.0rc1}/PKG-INFO +17 -1
  2. {loopmath-0.3.2 → loopmath-0.4.0rc1}/README.md +16 -0
  3. {loopmath-0.3.2 → loopmath-0.4.0rc1}/pyproject.toml +9 -1
  4. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/__init__.py +1 -1
  5. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/cli_registry.py +234 -0
  6. loopmath-0.4.0rc1/src/loopmath/harness/herdr/loopmath-harness/herdr-plugin.toml +38 -0
  7. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/.claude-plugin/marketplace.json +6 -0
  8. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/.claude-plugin/plugin.json +21 -0
  9. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/.gitignore +3 -0
  10. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/README.md +40 -0
  11. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/hooks/events.ts +338 -0
  12. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/hooks/hooks.json +1 -0
  13. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/hooks/register.test.ts +469 -0
  14. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/hooks/register.tsx +417 -0
  15. loopmath-0.4.0rc1/src/loopmath/harness/mod/loopmath-harness/types/index.d.ts +79 -0
  16. loopmath-0.4.0rc1/src/loopmath/harness/tune/__init__.py +13 -0
  17. loopmath-0.4.0rc1/src/loopmath/harness/tune/commands.py +1518 -0
  18. loopmath-0.4.0rc1/src/loopmath/harness/tune/config.py +391 -0
  19. loopmath-0.4.0rc1/src/loopmath/harness/tune/contracts.py +778 -0
  20. loopmath-0.4.0rc1/src/loopmath/harness/tune/delivery.py +217 -0
  21. loopmath-0.4.0rc1/src/loopmath/harness/tune/design.py +231 -0
  22. loopmath-0.4.0rc1/src/loopmath/harness/tune/editors.py +203 -0
  23. loopmath-0.4.0rc1/src/loopmath/harness/tune/edits.py +928 -0
  24. loopmath-0.4.0rc1/src/loopmath/harness/tune/effects.py +193 -0
  25. loopmath-0.4.0rc1/src/loopmath/harness/tune/engine.py +1243 -0
  26. loopmath-0.4.0rc1/src/loopmath/harness/tune/events.py +322 -0
  27. loopmath-0.4.0rc1/src/loopmath/harness/tune/executor.py +270 -0
  28. loopmath-0.4.0rc1/src/loopmath/harness/tune/herdr.py +611 -0
  29. loopmath-0.4.0rc1/src/loopmath/harness/tune/isolation.py +677 -0
  30. loopmath-0.4.0rc1/src/loopmath/harness/tune/ledger.py +165 -0
  31. loopmath-0.4.0rc1/src/loopmath/harness/tune/library.py +126 -0
  32. loopmath-0.4.0rc1/src/loopmath/harness/tune/modinstall.py +180 -0
  33. loopmath-0.4.0rc1/src/loopmath/harness/tune/plan.py +378 -0
  34. loopmath-0.4.0rc1/src/loopmath/harness/tune/prompts.py +192 -0
  35. loopmath-0.4.0rc1/src/loopmath/harness/tune/reflect.py +131 -0
  36. loopmath-0.4.0rc1/src/loopmath/harness/tune/schema.py +406 -0
  37. loopmath-0.4.0rc1/src/loopmath/harness/tune/score.py +445 -0
  38. loopmath-0.4.0rc1/src/loopmath/harness/tune/sessions.py +158 -0
  39. loopmath-0.4.0rc1/src/loopmath/harness/tune/skilldoc.py +180 -0
  40. loopmath-0.4.0rc1/src/loopmath/harness/tune/state.py +200 -0
  41. loopmath-0.4.0rc1/src/loopmath/harness/tune/stream.py +320 -0
  42. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/prices.toml +23 -0
  43. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/PKG-INFO +17 -1
  44. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/SOURCES.txt +54 -0
  45. loopmath-0.4.0rc1/tests/test_harness_tune_cli.py +464 -0
  46. loopmath-0.4.0rc1/tests/test_harness_tune_config.py +386 -0
  47. loopmath-0.4.0rc1/tests/test_harness_tune_delivery.py +139 -0
  48. loopmath-0.4.0rc1/tests/test_harness_tune_design.py +119 -0
  49. loopmath-0.4.0rc1/tests/test_harness_tune_editors.py +479 -0
  50. loopmath-0.4.0rc1/tests/test_harness_tune_edits.py +911 -0
  51. loopmath-0.4.0rc1/tests/test_harness_tune_effects.py +145 -0
  52. loopmath-0.4.0rc1/tests/test_harness_tune_engine.py +944 -0
  53. loopmath-0.4.0rc1/tests/test_harness_tune_executor.py +773 -0
  54. loopmath-0.4.0rc1/tests/test_harness_tune_herdr.py +487 -0
  55. loopmath-0.4.0rc1/tests/test_harness_tune_isolation.py +594 -0
  56. loopmath-0.4.0rc1/tests/test_harness_tune_ledger.py +172 -0
  57. loopmath-0.4.0rc1/tests/test_harness_tune_library.py +257 -0
  58. loopmath-0.4.0rc1/tests/test_harness_tune_modinstall.py +225 -0
  59. loopmath-0.4.0rc1/tests/test_harness_tune_plan.py +287 -0
  60. loopmath-0.4.0rc1/tests/test_harness_tune_score.py +352 -0
  61. loopmath-0.4.0rc1/tests/test_harness_tune_sessions.py +269 -0
  62. loopmath-0.4.0rc1/tests/test_harness_tune_skilldoc.py +72 -0
  63. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_price.py +7 -6
  64. {loopmath-0.3.2 → loopmath-0.4.0rc1}/LICENSE +0 -0
  65. {loopmath-0.3.2 → loopmath-0.4.0rc1}/setup.cfg +0 -0
  66. {loopmath-0.3.2 → loopmath-0.4.0rc1}/spec/ocp-v0.2.schema.json +0 -0
  67. {loopmath-0.3.2 → loopmath-0.4.0rc1}/spec/ocp-v0.schema.json +0 -0
  68. {loopmath-0.3.2 → loopmath-0.4.0rc1}/spec/ocp_conformance.py +0 -0
  69. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/__main__.py +0 -0
  70. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapter_host.py +0 -0
  71. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/__init__.py +0 -0
  72. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/atrium.py +0 -0
  73. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/base.py +0 -0
  74. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/bb.py +0 -0
  75. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/bb_support.py +0 -0
  76. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/evolve.py +0 -0
  77. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/harness2.py +0 -0
  78. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/omp.py +0 -0
  79. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/omp_facts.py +0 -0
  80. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/omp_links.py +0 -0
  81. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/omp_parse.py +0 -0
  82. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/omp_types.py +0 -0
  83. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/opencode.py +0 -0
  84. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/opencode_store.py +0 -0
  85. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/openevolve.py +0 -0
  86. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/orca.py +0 -0
  87. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/otel_genai.py +0 -0
  88. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/otel_genai_graph.py +0 -0
  89. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/otel_genai_parse.py +0 -0
  90. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/otel_genai_types.py +0 -0
  91. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/otel_genai_usage.py +0 -0
  92. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/paseo.py +0 -0
  93. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/pi.py +0 -0
  94. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/pi_support.py +0 -0
  95. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/plugin_eval.py +0 -0
  96. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/registry.py +0 -0
  97. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/adapters/shinkaevolve.py +0 -0
  98. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/__init__.py +0 -0
  99. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/block.py +0 -0
  100. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/check_pymc.py +0 -0
  101. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/commands.py +0 -0
  102. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/compose.py +0 -0
  103. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/design.py +0 -0
  104. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/features.py +0 -0
  105. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/fit.py +0 -0
  106. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/forest.py +0 -0
  107. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/gaussian.py +0 -0
  108. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/integrated.py +0 -0
  109. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/lookahead.py +0 -0
  110. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/outcome.py +0 -0
  111. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/pricing.py +0 -0
  112. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/priors.py +0 -0
  113. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/rules.py +0 -0
  114. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/sampled.py +0 -0
  115. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/belief/state.py +0 -0
  116. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/builder/__init__.py +0 -0
  117. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/builder/cli.py +0 -0
  118. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/builder/context.py +0 -0
  119. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/builder/predict.py +0 -0
  120. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/builder/server.py +0 -0
  121. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/cli.py +0 -0
  122. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/cli_errors.py +0 -0
  123. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/cli_graph.py +0 -0
  124. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/cli_support.py +0 -0
  125. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/__init__.py +0 -0
  126. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/_thresholds.py +0 -0
  127. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/_thresholds_sw.py +0 -0
  128. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/calibrate.py +0 -0
  129. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/calibration.py +0 -0
  130. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/checks.py +0 -0
  131. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/commands.py +0 -0
  132. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/model.py +0 -0
  133. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/units.py +0 -0
  134. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/compare/value.py +0 -0
  135. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/__init__.py +0 -0
  136. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/arms.py +0 -0
  137. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/cli_e0.py +0 -0
  138. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/estimate.py +0 -0
  139. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/estimate_rework.py +0 -0
  140. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/figures.py +0 -0
  141. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/io.py +0 -0
  142. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/e0/verb.py +0 -0
  143. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/explain.py +0 -0
  144. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit.py +0 -0
  145. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_assembly.py +0 -0
  146. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_bayes.py +0 -0
  147. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_masks.py +0 -0
  148. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_predict.py +0 -0
  149. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_pricing.py +0 -0
  150. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/fit_transfer.py +0 -0
  151. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gaps.py +0 -0
  152. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/__init__.py +0 -0
  153. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/commands.py +0 -0
  154. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/core.py +0 -0
  155. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/inputs.py +0 -0
  156. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/winner.py +0 -0
  157. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/winner_cli.py +0 -0
  158. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gate/winner_model.py +0 -0
  159. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/gitwalk.py +0 -0
  160. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/grade.py +0 -0
  161. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/grade_support.py +0 -0
  162. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/__init__.py +0 -0
  163. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/artifact_git.py +0 -0
  164. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/artifact_join.py +0 -0
  165. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/artifact_kinds.py +0 -0
  166. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/artifacts.py +0 -0
  167. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/bashparse.py +0 -0
  168. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/bashread_ops.py +0 -0
  169. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/bashwrite_ops.py +0 -0
  170. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/bashwrites.py +0 -0
  171. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/cache.py +0 -0
  172. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/codexio.py +0 -0
  173. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/codexio_parse.py +0 -0
  174. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/codexio_scan.py +0 -0
  175. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/dataset.py +0 -0
  176. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/dataset_build.py +0 -0
  177. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/dataset_core.py +0 -0
  178. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/dataset_edges.py +0 -0
  179. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/dataset_nodes.py +0 -0
  180. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/extract.py +0 -0
  181. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_common.py +0 -0
  182. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_costcurve.py +0 -0
  183. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_css.py +0 -0
  184. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_data.py +0 -0
  185. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_force.py +0 -0
  186. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_render.py +0 -0
  187. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/html_swimlanes.py +0 -0
  188. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler.py +0 -0
  189. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_cli.py +0 -0
  190. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_common.py +0 -0
  191. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_parse.py +0 -0
  192. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_pricing.py +0 -0
  193. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt.py +0 -0
  194. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_build.py +0 -0
  195. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_dispatch.py +0 -0
  196. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_evidence.py +0 -0
  197. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_node.py +0 -0
  198. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_records.py +0 -0
  199. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_result.py +0 -0
  200. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_session.py +0 -0
  201. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_tools.py +0 -0
  202. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_validation.py +0 -0
  203. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_prompt_workflow.py +0 -0
  204. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_report.py +0 -0
  205. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labeler_score.py +0 -0
  206. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/labels.py +0 -0
  207. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/launch.py +0 -0
  208. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/launch_origin.py +0 -0
  209. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/ocp.py +0 -0
  210. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/ocp_emit.py +0 -0
  211. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/ocp_support.py +0 -0
  212. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/render.py +0 -0
  213. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/runfile.py +0 -0
  214. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/runfile_export.py +0 -0
  215. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/runfile_finish.py +0 -0
  216. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/scan.py +0 -0
  217. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/schema.py +0 -0
  218. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/graph/token_completeness.py +0 -0
  219. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness/__init__.py +0 -0
  220. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness/layouts.py +0 -0
  221. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/__init__.py +0 -0
  222. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/commands.py +0 -0
  223. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/costs.py +0 -0
  224. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/ocp.py +0 -0
  225. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/rows.py +0 -0
  226. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/harness_runs/streams.py +0 -0
  227. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/__init__.py +0 -0
  228. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/base.py +0 -0
  229. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/claude_code.py +0 -0
  230. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/claude_code_support.py +0 -0
  231. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/codex.py +0 -0
  232. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/codex_support.py +0 -0
  233. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp.py +0 -0
  234. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp_analysis.py +0 -0
  235. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp_artifact.py +0 -0
  236. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp_common.py +0 -0
  237. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp_convert.py +0 -0
  238. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ingest/ocp_projection.py +0 -0
  239. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/integrations/__init__.py +0 -0
  240. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/integrations/dspy.py +0 -0
  241. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/__init__.py +0 -0
  242. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/artifacts.py +0 -0
  243. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/clip.py +0 -0
  244. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/codex_window.py +0 -0
  245. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/costs.py +0 -0
  246. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/match.py +0 -0
  247. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/settle.py +0 -0
  248. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/logmatch/tariff.py +0 -0
  249. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/__init__.py +0 -0
  250. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/canonical.py +0 -0
  251. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/commands.py +0 -0
  252. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/conformance.py +0 -0
  253. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/contractv3.py +0 -0
  254. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/emit.py +0 -0
  255. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/graph_contract.py +0 -0
  256. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/membership.py +0 -0
  257. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/migrate.py +0 -0
  258. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/schema/ocp-v0.2.schema.json +0 -0
  259. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/schema/ocp-v0.3.schema.json +0 -0
  260. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/schema/ocp-v0.schema.json +0 -0
  261. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/ocp/version.py +0 -0
  262. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/onboard/__init__.py +0 -0
  263. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/onboard/commands.py +0 -0
  264. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/onboard/history.py +0 -0
  265. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/onboard/label.py +0 -0
  266. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/onboard/usual.py +0 -0
  267. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/output.py +0 -0
  268. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/pool.py +0 -0
  269. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/price.py +0 -0
  270. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/price_validation.py +0 -0
  271. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/__init__.py +0 -0
  272. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/benchmarks.py +0 -0
  273. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/benchmarks.toml +0 -0
  274. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/build.py +0 -0
  275. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/README.md +0 -0
  276. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/e0.jsonl.gz +0 -0
  277. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/lanes.jsonl.gz +0 -0
  278. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/manifest.json +0 -0
  279. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/rq1.jsonl.gz +0 -0
  280. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/bundle/sweep.jsonl.gz +0 -0
  281. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/commands.py +0 -0
  282. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/e0.py +0 -0
  283. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/history.py +0 -0
  284. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/lanes.py +0 -0
  285. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/ocpdoc.py +0 -0
  286. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/reduce.py +0 -0
  287. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/registry.py +0 -0
  288. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/rq1.py +0 -0
  289. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/show.py +0 -0
  290. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/sweep.py +0 -0
  291. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/priors/validate.py +0 -0
  292. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/receipts.py +0 -0
  293. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/__init__.py +0 -0
  294. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/backlog.py +0 -0
  295. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/commands.py +0 -0
  296. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/curve.py +0 -0
  297. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/engine.py +0 -0
  298. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/gain.py +0 -0
  299. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/message.py +0 -0
  300. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/receipts.py +0 -0
  301. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/search.py +0 -0
  302. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/stats.py +0 -0
  303. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/storeread.py +0 -0
  304. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend/variants.py +0 -0
  305. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/recommend_role.py +0 -0
  306. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/__init__.py +0 -0
  307. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/eligibility.py +0 -0
  308. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/html.py +0 -0
  309. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/terminal.py +0 -0
  310. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/terminal_exclusions.py +0 -0
  311. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/terminal_format.py +0 -0
  312. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/report/terminal_read.py +0 -0
  313. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/research_defaults.py +0 -0
  314. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/research_paths.py +0 -0
  315. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/scoring.py +0 -0
  316. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/scoring_comparisons.py +0 -0
  317. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/scoring_predictive.py +0 -0
  318. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/__init__.py +0 -0
  319. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/commands.py +0 -0
  320. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/design.py +0 -0
  321. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/edits.py +0 -0
  322. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/model.py +0 -0
  323. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/screen/record.py +0 -0
  324. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/share/__init__.py +0 -0
  325. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/share/commands.py +0 -0
  326. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/share/export.py +0 -0
  327. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/share/import_.py +0 -0
  328. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/__init__.py +0 -0
  329. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/commands.py +0 -0
  330. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/doctor.py +0 -0
  331. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/install.py +0 -0
  332. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath/SKILL.md +0 -0
  333. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath-import-runs/SKILL.md +0 -0
  334. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath-onboard/SKILL.md +0 -0
  335. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath-plan-task/SKILL.md +0 -0
  336. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath-record-run/SKILL.md +0 -0
  337. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/loopmath-update-fit/SKILL.md +0 -0
  338. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/skill/skills/reference.md +0 -0
  339. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/__init__.py +0 -0
  340. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/budget.py +0 -0
  341. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/commands.py +0 -0
  342. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/config.py +0 -0
  343. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/finish.py +0 -0
  344. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/fitjob.py +0 -0
  345. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/home.py +0 -0
  346. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/ids.py +0 -0
  347. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/lock.py +0 -0
  348. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/record.py +0 -0
  349. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/report.py +0 -0
  350. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/rule_change.py +0 -0
  351. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/run_names.py +0 -0
  352. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/runs.py +0 -0
  353. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/status.py +0 -0
  354. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/store/verify.py +0 -0
  355. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface.py +0 -0
  356. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface_bootstrap.py +0 -0
  357. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface_estimation.py +0 -0
  358. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface_frame.py +0 -0
  359. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface_presentation.py +0 -0
  360. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/surface_support.py +0 -0
  361. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/taskmodel.py +0 -0
  362. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/__init__.py +0 -0
  363. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/commands.py +0 -0
  364. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/data.py +0 -0
  365. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/fit.py +0 -0
  366. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/posterior.py +0 -0
  367. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/select.py +0 -0
  368. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/tasks/sim.py +0 -0
  369. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/types.py +0 -0
  370. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/__init__.py +0 -0
  371. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/README.md +0 -0
  372. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/base.css +0 -0
  373. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/builder.css +0 -0
  374. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/builder.html +0 -0
  375. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/builder.js +0 -0
  376. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/common.js +0 -0
  377. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/estimates.css +0 -0
  378. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/estimates.js +0 -0
  379. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/graph.css +0 -0
  380. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/graph.js +0 -0
  381. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/plans.css +0 -0
  382. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/plans.js +0 -0
  383. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/results.css +0 -0
  384. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/results.js +0 -0
  385. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/runs.js +0 -0
  386. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/viz.css +0 -0
  387. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/assets/viz.js +0 -0
  388. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/common.py +0 -0
  389. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/plans.py +0 -0
  390. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/posterior.py +0 -0
  391. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/views/runs.py +0 -0
  392. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/__init__.py +0 -0
  393. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/candidates.py +0 -0
  394. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/best_of_n.toml +0 -0
  395. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/implement_review.toml +0 -0
  396. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/plan_implement.toml +0 -0
  397. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/plan_implement_review.toml +0 -0
  398. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/solo.toml +0 -0
  399. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/catalog/swarm.toml +0 -0
  400. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/commands.py +0 -0
  401. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/diff.py +0 -0
  402. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/format.py +0 -0
  403. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/graphview.py +0 -0
  404. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/ids.py +0 -0
  405. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/infer.py +0 -0
  406. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/models.py +0 -0
  407. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/ocp.py +0 -0
  408. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath/workflows/shapes.py +0 -0
  409. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/dependency_links.txt +0 -0
  410. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/entry_points.txt +0 -0
  411. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/requires.txt +0 -0
  412. {loopmath-0.3.2 → loopmath-0.4.0rc1}/src/loopmath.egg-info/top_level.txt +0 -0
  413. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_atrium.py +0 -0
  414. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_bb.py +0 -0
  415. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_harness2.py +0 -0
  416. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_omp.py +0 -0
  417. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_opencode.py +0 -0
  418. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_opencode_output_tokens.py +0 -0
  419. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_orca.py +0 -0
  420. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_otel_genai.py +0 -0
  421. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_paseo.py +0 -0
  422. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapter_services.py +0 -0
  423. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapters.py +0 -0
  424. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_adapters_pi.py +0 -0
  425. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_analyze_cli.py +0 -0
  426. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_arms.py +0 -0
  427. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_graph.py +0 -0
  428. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_help_lists.py +0 -0
  429. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_labeler.py +0 -0
  430. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_main_module.py +0 -0
  431. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_plan_hidden.py +0 -0
  432. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_prices.py +0 -0
  433. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_cli_startup.py +0 -0
  434. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_color_proof.py +0 -0
  435. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_duplicate_guards.py +0 -0
  436. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_estimate.py +0 -0
  437. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_explain.py +0 -0
  438. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_fit.py +0 -0
  439. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_gaps.py +0 -0
  440. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_gitwalk.py +0 -0
  441. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_grade.py +0 -0
  442. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_artifact_recording.py +0 -0
  443. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_artifacts.py +0 -0
  444. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_bashwrites.py +0 -0
  445. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_cache.py +0 -0
  446. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_codexio.py +0 -0
  447. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_dataset.py +0 -0
  448. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_extract.py +0 -0
  449. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_glue.py +0 -0
  450. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_html.py +0 -0
  451. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_labeler.py +0 -0
  452. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_labeler_evidence_matrix.py +0 -0
  453. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_launch.py +0 -0
  454. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_ocp.py +0 -0
  455. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_render.py +0 -0
  456. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_runfile.py +0 -0
  457. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_graph_schema.py +0 -0
  458. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_home_guard.py +0 -0
  459. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_html.py +0 -0
  460. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ingest.py +0 -0
  461. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ingest_claude_code.py +0 -0
  462. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ingest_codex.py +0 -0
  463. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ingest_ocp.py +0 -0
  464. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_io.py +0 -0
  465. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_not_run_summary.py +0 -0
  466. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ocp_conformance.py +0 -0
  467. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ocp_golden.py +0 -0
  468. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ocp_open_enums.py +0 -0
  469. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_ocp_versioning.py +0 -0
  470. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_output_html_path.py +0 -0
  471. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_packaging_metadata.py +0 -0
  472. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_packaging_smoke.py +0 -0
  473. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_pool.py +0 -0
  474. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_preview_script.py +0 -0
  475. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_receipts.py +0 -0
  476. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_release_paths.py +0 -0
  477. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_report_eligibility.py +0 -0
  478. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_research_cli.py +0 -0
  479. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_runfile_privacy_n1b.py +0 -0
  480. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_scoring.py +0 -0
  481. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_split_rebindings.py +0 -0
  482. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_starting_prior.py +0 -0
  483. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_surface.py +0 -0
  484. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_taskmodel_features.py +0 -0
  485. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_terminal.py +0 -0
  486. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_types_control.py +0 -0
  487. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_types_piece_prediction.py +0 -0
  488. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v01_scaffold.py +0 -0
  489. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v027_p3.py +0 -0
  490. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v027_small_fixes.py +0 -0
  491. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v028_sol_6_1.py +0 -0
  492. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v031_help_labels.py +0 -0
  493. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v031_json_errors_and_costs.py +0 -0
  494. {loopmath-0.3.2 → loopmath-0.4.0rc1}/tests/test_v031_new_findings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: loopmath
3
- Version: 0.3.2
3
+ Version: 0.4.0rc1
4
4
  Summary: Plan agent workflows, record how they went, and learn from your own Claude Code and Codex logs
5
5
  Author: QKV Labs
6
6
  License-Expression: MIT
@@ -286,6 +286,21 @@ These commands are for changing the harness your agents run with and finding out
286
286
  - **DSPy's GEPA and MIPROv2 (experimental).** An optimizer's accept step keeps a new prompt when its score on a few instances goes up, and on 3 instances that keeps many children that are no better. `loopmath.integrations.dspy` puts the gate there: `GEPAAcceptance` is a GEPA acceptance criterion (run GEPA with `use_merge=False`), `MIPROv2Gate` confirms MIPROv2's replacements, and `run([], [], more)` gates any compiled program against its student. It imports neither dspy nor gepa. See [the DSPy guide](docs/dspy.md).
287
287
  - **`tasks pick` (experimental).** For a loop or a benchmark run that scores each candidate on some of a suite's tasks instead of all of them. `loopmath tasks pick --candidate SEL` reads the finished runs in the store, or `--runs FILE`, learns each task's difficulty and discrimination from the other arms' runs on it, and prints the candidate's suite score so far (the mean over the suite of its chance of acceptance per task) with 80% and 95% ranges, whether to stop, and the next task to run. From a store it writes that task's file and the `run record --task-file F --label KEY=VALUE --home PATH` line that records the run in the same store, so the next call sees it. It stops when the 80% range is as narrow as one full run of the suite would give (`--halfwidth` sets another target), or, with `--versus X` or `--versus-arm SEL`, when the score is above or below a number or another arm's at `--level`. `--method` chooses the next task: the largest expected cut in the score's variance (`loss`, the default), information, one fixed order, random, or stratified by predicted rate. The default learns fastest when the candidate behaves like the arms in the history; for a candidate unlike all of them (a new model rather than a change to a known one's harness), `--method stratified` or `random` keeps the ranges closer to honest at the cost of more sessions. A candidate that scores below every arm in the history (a broken setup, say) is estimated too high by every method, and its ranges can miss even at the full suite; under `--method random` the accepted count over the sessions, which every call prints, is the check. Every estimate prints both warnings, in text and in `--json` (`estimate.warnings`). With `--versus`, a bar within about 0.01 of the candidate's score is close to a coin toss for any method; to ask whether a change helps by at least some margin, pass the bar plus that margin. The ranges are approximate: they leave out the history fit's own error shared with other arms. `loopmath tasks pick --help` lists the rest.
288
288
 
289
+ ## Tune a Claude Code harness
290
+
291
+ `loopmath harness` (experimental) tunes a repo's Claude Code harness (CLAUDE.md, skills and agents) on a task you run again and again: editor sessions propose edits, a screening design of task runs measures each one, and the kept edits are delivered only when they beat the base. It follows the design measured in stream 1 of our harness2 study; this release has not been measured on its own yet. Every session spends model calls, so `plan` prices the tune before any runs:
292
+
293
+ ```
294
+ loopmath harness init # loopmath-harness.toml, one comment per field
295
+ loopmath harness config set task.prompt "add a --json flag to the export command"
296
+ loopmath harness plan # no model call; on the defaults: cost: 2.72 USD (1.72 to 6.38)
297
+ loopmath harness run --detach --yes # prints the tune id; the engine runs on in its own session
298
+ loopmath harness watch # follow the events to the end
299
+ loopmath harness apply --dry-run # the files it would write; `apply` writes them and commits nothing
300
+ ```
301
+
302
+ Every config field has a flag (`--budget-usd 6`), and `loopmath harness skill` prints the guide an agent follows to drive these commands. In Claude Code, `loopmath harness mod install` adds `/harness`: a pane to configure, plan and start a tune, and a line above the prompt while it runs. The [harness guide](docs/harness.md) has the fields, the events and the isolation.
303
+
289
304
  ## Does my plugin pay?
290
305
 
291
306
  `claude plugin eval` grades a plugin's eval cases with and without the plugin. `adapt plugin-eval` (experimental) reads its result, and loopmath turns the per-case deltas into a decision: adopt, reject, or run more, with ranges on the gain and, given each run's cost with `--cost-from`, on cost per accepted result. It reads the file only and never runs Claude Code.
@@ -340,6 +355,7 @@ loopmath graph --workspace NAME --format html --out graph.html
340
355
  - [OpenEvolve and ShinkaEvolve runs](docs/adapters.md#openevolve-and-shinkaevolve): `adapt openevolve`, `adapt shinkaevolve` and `recommend --role`, which model to give an evolution loop's mutator
341
356
  - [Release policy](docs/release.md)
342
357
  - [Screening harness edits](docs/screen.md): `screen`, with a worked 48-session example and its limits
358
+ - [Tuning a Claude Code harness](docs/harness.md): `loopmath harness`, the `/harness` mod and the herdr runner
343
359
  - [Packaged model prices](src/loopmath/prices.toml)
344
360
 
345
361
  ## License
@@ -248,6 +248,21 @@ These commands are for changing the harness your agents run with and finding out
248
248
  - **DSPy's GEPA and MIPROv2 (experimental).** An optimizer's accept step keeps a new prompt when its score on a few instances goes up, and on 3 instances that keeps many children that are no better. `loopmath.integrations.dspy` puts the gate there: `GEPAAcceptance` is a GEPA acceptance criterion (run GEPA with `use_merge=False`), `MIPROv2Gate` confirms MIPROv2's replacements, and `run([], [], more)` gates any compiled program against its student. It imports neither dspy nor gepa. See [the DSPy guide](docs/dspy.md).
249
249
  - **`tasks pick` (experimental).** For a loop or a benchmark run that scores each candidate on some of a suite's tasks instead of all of them. `loopmath tasks pick --candidate SEL` reads the finished runs in the store, or `--runs FILE`, learns each task's difficulty and discrimination from the other arms' runs on it, and prints the candidate's suite score so far (the mean over the suite of its chance of acceptance per task) with 80% and 95% ranges, whether to stop, and the next task to run. From a store it writes that task's file and the `run record --task-file F --label KEY=VALUE --home PATH` line that records the run in the same store, so the next call sees it. It stops when the 80% range is as narrow as one full run of the suite would give (`--halfwidth` sets another target), or, with `--versus X` or `--versus-arm SEL`, when the score is above or below a number or another arm's at `--level`. `--method` chooses the next task: the largest expected cut in the score's variance (`loss`, the default), information, one fixed order, random, or stratified by predicted rate. The default learns fastest when the candidate behaves like the arms in the history; for a candidate unlike all of them (a new model rather than a change to a known one's harness), `--method stratified` or `random` keeps the ranges closer to honest at the cost of more sessions. A candidate that scores below every arm in the history (a broken setup, say) is estimated too high by every method, and its ranges can miss even at the full suite; under `--method random` the accepted count over the sessions, which every call prints, is the check. Every estimate prints both warnings, in text and in `--json` (`estimate.warnings`). With `--versus`, a bar within about 0.01 of the candidate's score is close to a coin toss for any method; to ask whether a change helps by at least some margin, pass the bar plus that margin. The ranges are approximate: they leave out the history fit's own error shared with other arms. `loopmath tasks pick --help` lists the rest.
250
250
 
251
+ ## Tune a Claude Code harness
252
+
253
+ `loopmath harness` (experimental) tunes a repo's Claude Code harness (CLAUDE.md, skills and agents) on a task you run again and again: editor sessions propose edits, a screening design of task runs measures each one, and the kept edits are delivered only when they beat the base. It follows the design measured in stream 1 of our harness2 study; this release has not been measured on its own yet. Every session spends model calls, so `plan` prices the tune before any runs:
254
+
255
+ ```
256
+ loopmath harness init # loopmath-harness.toml, one comment per field
257
+ loopmath harness config set task.prompt "add a --json flag to the export command"
258
+ loopmath harness plan # no model call; on the defaults: cost: 2.72 USD (1.72 to 6.38)
259
+ loopmath harness run --detach --yes # prints the tune id; the engine runs on in its own session
260
+ loopmath harness watch # follow the events to the end
261
+ loopmath harness apply --dry-run # the files it would write; `apply` writes them and commits nothing
262
+ ```
263
+
264
+ Every config field has a flag (`--budget-usd 6`), and `loopmath harness skill` prints the guide an agent follows to drive these commands. In Claude Code, `loopmath harness mod install` adds `/harness`: a pane to configure, plan and start a tune, and a line above the prompt while it runs. The [harness guide](docs/harness.md) has the fields, the events and the isolation.
265
+
251
266
  ## Does my plugin pay?
252
267
 
253
268
  `claude plugin eval` grades a plugin's eval cases with and without the plugin. `adapt plugin-eval` (experimental) reads its result, and loopmath turns the per-case deltas into a decision: adopt, reject, or run more, with ranges on the gain and, given each run's cost with `--cost-from`, on cost per accepted result. It reads the file only and never runs Claude Code.
@@ -302,6 +317,7 @@ loopmath graph --workspace NAME --format html --out graph.html
302
317
  - [OpenEvolve and ShinkaEvolve runs](docs/adapters.md#openevolve-and-shinkaevolve): `adapt openevolve`, `adapt shinkaevolve` and `recommend --role`, which model to give an evolution loop's mutator
303
318
  - [Release policy](docs/release.md)
304
319
  - [Screening harness edits](docs/screen.md): `screen`, with a worked 48-session example and its limits
320
+ - [Tuning a Claude Code harness](docs/harness.md): `loopmath harness`, the `/harness` mod and the herdr runner
305
321
  - [Packaged model prices](src/loopmath/prices.toml)
306
322
 
307
323
  ## License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "loopmath"
7
- version = "0.3.2"
7
+ version = "0.4.0rc1"
8
8
  description = "Plan agent workflows, record how they went, and learn from your own Claude Code and Codex logs"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -94,6 +94,14 @@ loopmath = [
94
94
  "priors/bundle/*",
95
95
  "views/assets/*",
96
96
  "ocp/schema/*.json",
97
+ "harness/mod/loopmath-harness/README.md",
98
+ "harness/mod/loopmath-harness/.gitignore",
99
+ "harness/mod/loopmath-harness/.claude-plugin/*.json",
100
+ "harness/mod/loopmath-harness/hooks/*.json",
101
+ "harness/mod/loopmath-harness/hooks/*.ts",
102
+ "harness/mod/loopmath-harness/hooks/*.tsx",
103
+ "harness/mod/loopmath-harness/types/*.d.ts",
104
+ "harness/herdr/loopmath-harness/*.toml",
97
105
  ]
98
106
 
99
107
  [tool.setuptools.data-files]
@@ -5,4 +5,4 @@ The command line (`loopmath`, or its alias `loop`) is the interface; see the
5
5
  README and `loopmath --help`.
6
6
  """
7
7
 
8
- __version__ = "0.3.2"
8
+ __version__ = "0.4.0rc1"
@@ -833,6 +833,239 @@ def _add_tasks(sub) -> None:
833
833
  q.set_defaults(func=_lazy("loopmath.tasks.commands:tasks_pick"))
834
834
 
835
835
 
836
+ HARNESS_DESCRIPTION = """Experimental: tune a Claude Code harness on your own task. Editor sessions propose edits to the
837
+ repo's CLAUDE.md, skills and agents; a screening design of task runs measures each edit against your score;
838
+ the kept edits are delivered only when they beat the base. Every config field has a flag."""
839
+
840
+ HARNESS_FLOW = """flow:
841
+ loopmath harness init write loopmath-harness.toml
842
+ loopmath harness plan sessions, cost point and range, time, preflight; no model call
843
+ loopmath harness run --detach --yes start a tune once its spend is agreed
844
+ loopmath harness watch ID follow it to the end
845
+ loopmath harness show ID what was delivered, and why
846
+ loopmath harness apply ID write the delivered harness into the repo; commits nothing
847
+
848
+ exit codes: 0 delivered, 1 error, 2 usage, 3 refused by budget or preflight, 4 not enough signal (the base is
849
+ delivered), 5 stopped, 6 paused (resume continues)"""
850
+
851
+ HARNESS_VERBS = ("init", "plan", "run", "status", "watch", "stop", "resume", "show", "apply", "list", "config",
852
+ "schema", "skill", "mod", "herdr")
853
+
854
+
855
+ HARNESS_FLAGS = "loopmath.harness.tune.commands:add_config_flags"
856
+
857
+
858
+ def _late_flags(base: type) -> type:
859
+ """A parser class whose `flags=` target (a `_lazy` string) adds its flags the first time the parser parses or
860
+ prints help, so the config flags, generated from the tune's field table, load only for those verbs."""
861
+
862
+ class LateFlags(base):
863
+ def __init__(self, *a, flags: str | None = None, **kw):
864
+ super().__init__(*a, **kw)
865
+ self._late = flags
866
+
867
+ def _load(self) -> None:
868
+ target, self._late = self._late, None
869
+ if target:
870
+ _lazy(target)(self)
871
+
872
+ def parse_known_args(self, args=None, namespace=None):
873
+ self._load()
874
+ return super().parse_known_args(args, namespace)
875
+
876
+ def format_help(self):
877
+ self._load()
878
+ return super().format_help()
879
+
880
+ def format_usage(self):
881
+ self._load()
882
+ return super().format_usage()
883
+
884
+ return LateFlags
885
+
886
+
887
+ def _add_harness(sub) -> None:
888
+ target = "loopmath.harness.tune.commands:"
889
+ p = sub.add_parser("harness", help="experimental: tune a Claude Code harness: init, plan, run, watch, show, "
890
+ "apply", description=HARNESS_DESCRIPTION, epilog=HARNESS_FLOW,
891
+ formatter_class=argparse.RawDescriptionHelpFormatter)
892
+ hs = p.add_subparsers(dest="harness_command", required=True, metavar="{" + ",".join(HARNESS_VERBS) + "}",
893
+ parser_class=_late_flags(type(p)))
894
+
895
+ def ident(q, nargs="?", text="the tune: its id, the end of its id, or its folder (default: the newest)"):
896
+ q.add_argument("id", nargs=nargs, default=None, metavar="ID", help=text)
897
+
898
+ q = hs.add_parser("init", flags=HARNESS_FLAGS,
899
+ help="write loopmath-harness.toml with the defaults, one comment per field",
900
+ description="Write the config file: the defaults and any flags, one comment per field.")
901
+ q.add_argument("--out", default=None, metavar="PATH", help="where to write it (default ./loopmath-harness.toml)")
902
+ q.add_argument("--force", action="store_true", help="overwrite an existing file")
903
+ _common(q)
904
+ q.set_defaults(func=_lazy(target + "init_verb"))
905
+
906
+ q = hs.add_parser("plan", flags=HARNESS_FLAGS,
907
+ help="the dry run: stages, sessions, cost point and range, time, preflight",
908
+ description="The dry run, with no model call: the resolved stages and their order, session "
909
+ "counts by component, the cost point and range, the worst-case time, the "
910
+ "design's residual df, the signal and budget warnings, and the preflight checks.")
911
+ _common(q)
912
+ q.set_defaults(func=_lazy(target + "plan_verb"))
913
+
914
+ q = hs.add_parser("run", flags=HARNESS_FLAGS,
915
+ help="start a tune and print its id (spends model calls)",
916
+ description="Start a tune. It prints the plan and asks on a terminal; without one it "
917
+ "refuses unless --yes. With --detach the engine runs as its own session and the "
918
+ "command returns at once.")
919
+ q.add_argument("--detach", action="store_true", help="return at once; the engine runs on in its own session")
920
+ q.add_argument("--yes", action="store_true", help="the spend is agreed: do not ask")
921
+ q.add_argument("--parts", default=None, help=argparse.SUPPRESS)
922
+ _common(q)
923
+ q.set_defaults(func=_lazy(target + "run_verb"))
924
+
925
+ q = hs.add_parser("status", help="a snapshot: stage, sessions, spend against the caps, last events",
926
+ description="A snapshot of a tune, folded from its event stream.")
927
+ ident(q)
928
+ q.add_argument("--line", action="store_true", help="one line, as the Claude Code mod's band shows it")
929
+ _common(q)
930
+ q.set_defaults(func=_lazy(target + "status_verb"))
931
+
932
+ q = hs.add_parser("watch", help="follow a tune's events until it ends",
933
+ description="Follow a tune's events.jsonl until tune.end (or a pause with no engine). The "
934
+ "exit code is the tune's.")
935
+ ident(q)
936
+ q.add_argument("--from", dest="from_seq", type=int, default=1, metavar="SEQ", help="start at this seq")
937
+ q.add_argument("--pretty", action="store_true", help="readable lines (the default without --json)")
938
+ q.add_argument("--poll", type=float, default=0.5, help=argparse.SUPPRESS)
939
+ q.add_argument("--grace", type=float, default=10.0, help=argparse.SUPPRESS)
940
+ _common(q, json_flag=False)
941
+ q.add_argument("--json", action="store_true", help="the raw events, one JSON object per line")
942
+ q.set_defaults(func=_lazy(target + "watch_verb"))
943
+
944
+ q = hs.add_parser("stop", help="ask a tune to stop: no new session starts",
945
+ description="Write the stop file. The engine finishes the running sessions, or with --now "
946
+ "kills them by recorded pid, then ends stopped.")
947
+ ident(q)
948
+ q.add_argument("--now", action="store_true", help="kill the running sessions by recorded pid")
949
+ _common(q)
950
+ q.set_defaults(func=_lazy(target + "stop_verb"))
951
+
952
+ q = hs.add_parser("resume", help="continue a paused or interrupted tune (spends model calls)",
953
+ description="Continue a tune from its state.json. A session with no end record runs again "
954
+ "from a fresh worktree.")
955
+ ident(q, nargs=None, text="the tune: its id, the end of its id, or its folder")
956
+ q.add_argument("--detach", action="store_true", help="return at once; the engine runs on in its own session")
957
+ q.add_argument("--parts", default=None, help=argparse.SUPPRESS)
958
+ _common(q)
959
+ q.set_defaults(func=_lazy(target + "resume_verb"))
960
+
961
+ q = hs.add_parser("show", help="the delivered harness and why; the effects table; spend by component",
962
+ description="What a tune delivered and why, with the effects table.")
963
+ ident(q)
964
+ q.add_argument("--diff", action="store_true", help="the delivered harness against the base")
965
+ q.add_argument("--effects", action="store_true", help="the effects table")
966
+ q.add_argument("--ledger", action="store_true", help="spend by role and model, beside Claude Code's own figure")
967
+ _common(q)
968
+ q.set_defaults(func=_lazy(target + "show_verb"))
969
+
970
+ q = hs.add_parser("apply", help="write the delivered harness into the repo; commits nothing",
971
+ description="Write the delivered harness files into the repo's working tree (the hooks key "
972
+ "only of .claude/settings.json). Refuses when those paths have uncommitted "
973
+ "changes. Commits nothing.")
974
+ ident(q)
975
+ q.add_argument("--to", default=None, metavar="REPO", help="this working tree (default: the tune's repo)")
976
+ q.add_argument("--work", action="store_true", help="also apply the delivered run's diff")
977
+ q.add_argument("--dry-run", action="store_true", help="say what would be written, and write nothing")
978
+ _common(q)
979
+ q.set_defaults(func=_lazy(target + "apply_verb"))
980
+
981
+ q = hs.add_parser("list", help="tunes, newest first", description="The tunes in the store, newest first.")
982
+ _common(q)
983
+ q.set_defaults(func=_lazy(target + "list_verb"))
984
+
985
+ q = hs.add_parser("config", help="read or edit loopmath-harness.toml in place, keeping comments",
986
+ description="Read or edit the config file in place. Comments, unknown keys and the order "
987
+ "stay; every value is checked against its field.")
988
+ cs = q.add_subparsers(dest="harness_config_command", required=True, metavar="{get,set,unset}")
989
+ c = cs.add_parser("get", help="a value, or the whole config with --all",
990
+ description="A value (file, else default), or the whole effective config.")
991
+ c.add_argument("key", nargs="?", default=None, metavar="KEY", help="a dotted key, such as budget.usd")
992
+ c.add_argument("--all", action="store_true", help="the whole effective config, and its errors")
993
+ c.add_argument("--config", default=None, metavar="PATH", help="the config file")
994
+ _common(c)
995
+ c.set_defaults(func=_lazy(target + "config_get_verb"))
996
+ c = cs.add_parser("set", help="set one key", description="Set one key in the file, keeping comments.")
997
+ c.add_argument("key", metavar="KEY", help="a dotted key: TABLE.KEY or editors.N.KEY")
998
+ c.add_argument("value", metavar="VALUE", help="the value, read as TOML when it parses, else as text")
999
+ c.add_argument("--config", default=None, metavar="PATH", help="the config file")
1000
+ _common(c)
1001
+ c.set_defaults(func=_lazy(target + "config_set_verb"))
1002
+ c = cs.add_parser("unset", help="remove one key (its default applies) or one editor block (editors.N)",
1003
+ description="Remove one key from the file, or one editor block with editors.N.")
1004
+ c.add_argument("key", metavar="KEY", help="a dotted key, or editors.N")
1005
+ c.add_argument("--config", default=None, metavar="PATH", help="the config file")
1006
+ _common(c)
1007
+ c.set_defaults(func=_lazy(target + "config_unset_verb"))
1008
+
1009
+ q = hs.add_parser("schema", help="the config's JSON Schema", description="The config's fields; with --json "
1010
+ "its JSON Schema, which the Claude Code mod draws its configure pane from.")
1011
+ _common(q)
1012
+ q.set_defaults(func=_lazy(target + "schema_verb"))
1013
+
1014
+ q = hs.add_parser("skill", help="the agent skill doc for driving this CLI",
1015
+ description="The skill doc for an agent that drives `loopmath harness`.")
1016
+ q.add_argument("--format", default="md", choices=["md", "json"], help="markdown (default) or the same as data")
1017
+ _common(q)
1018
+ q.set_defaults(func=_lazy(target + "skill_verb"))
1019
+
1020
+ q = hs.add_parser("mod", help="the Claude Code mod: install, uninstall, path, validate",
1021
+ description="The Claude Code mod (/harness). install and uninstall print each claude "
1022
+ "command and ask before running it.")
1023
+ ms = q.add_subparsers(dest="harness_mod_command", required=True, metavar="{install,uninstall,path,validate}")
1024
+ for name, text in (("install", "copy the mod out of the package and add it to Claude Code"),
1025
+ ("uninstall", "remove the mod from Claude Code")):
1026
+ m = ms.add_parser(name, help=text, description=text[0].upper() + text[1:] + ".")
1027
+ m.add_argument("--scope", default="user", choices=["user", "project"], help="Claude Code's scope "
1028
+ "(default user)")
1029
+ m.add_argument("--print", dest="print_only", action="store_true", help="print the commands and run nothing")
1030
+ m.add_argument("--yes", action="store_true", help="run them without asking")
1031
+ _common(m)
1032
+ m.set_defaults(func=_lazy(target + "mod_verb"))
1033
+ m = ms.add_parser("path", help="the mod folder", description="The packaged mod folder, and the installed copy.")
1034
+ _common(m)
1035
+ m.set_defaults(func=_lazy(target + "mod_verb"))
1036
+ m = ms.add_parser("validate", help="claude plugin validate --strict on the mod, in a throwaway config folder",
1037
+ description="Run `claude plugin validate --strict` on the packaged mod under a throwaway "
1038
+ "CLAUDE_CONFIG_DIR.")
1039
+ m.add_argument("--test", action="store_true", help="also run `claude plugin test` on it")
1040
+ _common(m)
1041
+ m.set_defaults(func=_lazy(target + "mod_verb"))
1042
+
1043
+ q = hs.add_parser("herdr", help="the herdr plugin: link, unlink, path",
1044
+ description="The herdr plugin (watch, status and stop actions). link and unlink print the "
1045
+ "herdr command and ask before running it.")
1046
+ hs2 = q.add_subparsers(dest="harness_herdr_command", required=True, metavar="{link,unlink,path}")
1047
+ for name, text in (("link", "link the packaged plugin into herdr"), ("unlink", "unlink it")):
1048
+ m = hs2.add_parser(name, help=text, description=text[0].upper() + text[1:] + ".")
1049
+ m.add_argument("--print", dest="print_only", action="store_true", help="print the command and run nothing")
1050
+ m.add_argument("--yes", action="store_true", help="run it without asking")
1051
+ _common(m)
1052
+ m.set_defaults(func=_lazy(target + "herdr_verb"))
1053
+ m = hs2.add_parser("path", help="the plugin folder", description="The packaged herdr plugin folder.")
1054
+ _common(m)
1055
+ m.set_defaults(func=_lazy(target + "herdr_verb"))
1056
+
1057
+ # internal verbs: no help, so they stay out of the listing
1058
+ q = hs.add_parser("_drive")
1059
+ q.add_argument("spec")
1060
+ q.set_defaults(func=_lazy(target + "drive_verb"), json=False)
1061
+ q = hs.add_parser("_session")
1062
+ q.add_argument("tune")
1063
+ q.add_argument("label")
1064
+ q.add_argument("--pane", default="")
1065
+ q.add_argument("--parts", default=None)
1066
+ q.set_defaults(func=_lazy(target + "session_verb"), json=False)
1067
+
1068
+
836
1069
  def register(sub) -> None:
837
1070
  """Add every 0.1.0 command to the top-level subparsers."""
838
1071
  _add_planning(sub)
@@ -844,6 +1077,7 @@ def register(sub) -> None:
844
1077
  importlib.import_module("loopmath.builder.cli").add(sub) # `builder` (0.2.1)
845
1078
  _add_gate(sub)
846
1079
  _add_tasks(sub)
1080
+ _add_harness(sub)
847
1081
 
848
1082
 
849
1083
  # Handler targets, for the registry test: every one must import and be callable.
@@ -0,0 +1,38 @@
1
+ # The herdr plugin of `loopmath harness`: watch a tune in a pane, see its status, stop it.
2
+ # Link it with `loopmath harness herdr link` (it prints `herdr plugin link <this folder>` and asks first).
3
+
4
+ id = "loopmath-harness"
5
+ name = "loopmath harness"
6
+ version = "0.4.0-rc.1"
7
+ min_herdr_version = "0.9.3"
8
+ description = "Watch, check and stop a loopmath harness tune from herdr."
9
+
10
+ [[actions]]
11
+ id = "watch"
12
+ title = "loopmath harness: watch the newest tune"
13
+ description = "Follow the newest tune's events in a split pane."
14
+ command = ["herdr", "plugin", "pane", "open", "--plugin", "loopmath-harness", "--entrypoint", "watch", "--placement", "split"]
15
+
16
+ [[actions]]
17
+ id = "status"
18
+ title = "loopmath harness: status of the newest tune"
19
+ description = "A snapshot of the newest tune in a popup."
20
+ command = ["herdr", "plugin", "pane", "open", "--plugin", "loopmath-harness", "--entrypoint", "status", "--placement", "popup"]
21
+
22
+ [[actions]]
23
+ id = "stop"
24
+ title = "loopmath harness: stop the newest tune"
25
+ description = "Ask the newest tune to stop; running sessions finish."
26
+ command = ["loopmath", "harness", "stop"]
27
+
28
+ [[panes]]
29
+ id = "watch"
30
+ title = "harness watch"
31
+ placement = "split"
32
+ command = ["loopmath", "harness", "watch", "--pretty"]
33
+
34
+ [[panes]]
35
+ id = "status"
36
+ title = "harness status"
37
+ placement = "popup"
38
+ command = ["loopmath", "harness", "status"]
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "loopmath",
3
+ "description": "loopmath mods for Claude Code",
4
+ "owner": { "name": "QKV Labs" },
5
+ "plugins": [{ "name": "loopmath-harness", "source": "./" }]
6
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "loopmath-harness",
3
+ "version": "0.4.0-rc.1",
4
+ "description": "Configure, start and watch a loopmath harness tune from Claude Code. Runs the loopmath CLI; makes no model call itself.",
5
+ "author": { "name": "QKV Labs" },
6
+ "types": "./types/index.d.ts",
7
+ "userConfig": {
8
+ "loopmath_bin": {
9
+ "type": "string",
10
+ "title": "loopmath command",
11
+ "description": "The loopmath executable the mod runs (a name on PATH or a full path).",
12
+ "default": "loopmath"
13
+ },
14
+ "config_path": {
15
+ "type": "string",
16
+ "title": "Config file",
17
+ "description": "The tune's config file; empty means loopmath-harness.toml in the session's folder.",
18
+ "default": ""
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ # Claude Code writes these into a plugin folder it loads with --plugin-dir; they are not part of the mod.
2
+ /tsconfig.json
3
+ /.claude-plugin/types/
@@ -0,0 +1,40 @@
1
+ # loopmath-harness
2
+
3
+ A Claude Code mod for `loopmath harness`: configure, plan, start and watch a harness tune without leaving the
4
+ session. The mod runs the `loopmath` CLI by argv and folds its event stream. It starts no Claude turn and makes
5
+ no model call itself; the tune's own sessions run in the engine, which the CLI starts detached.
6
+
7
+ ## Install
8
+
9
+ pip install loopmath
10
+ loopmath harness mod install # prints the two claude plugin commands, then asks
11
+
12
+ `--print` only prints them; `--scope project` installs for one repo. `loopmath harness mod uninstall` reverses
13
+ both. The mod is copied to `$LOOPMATH_HOME/mods/loopmath-harness-<version>/` first, so it works offline.
14
+
15
+ ## Use
16
+
17
+ - `/harness` opens the configure pane. Each section (Task, Score, Loop, Models, Screen, Budget, Run) draws its
18
+ fields from `loopmath harness schema --json`; a change runs `loopmath harness config set KEY VALUE`, so the
19
+ TOML file stays the record and the CLI checks every value. An empty value unsets the key.
20
+ - **Plan** runs the dry run (no model call) and shows sessions, the cost point and range, the worst-case time,
21
+ the design's residual degrees of freedom and any warning or failed check.
22
+ - **Start** asks once more ("Spend up to X USD"); the second press runs `loopmath harness run --detach --yes`.
23
+ - `/harness watch [ID]` opens the progress pane: stages, sessions, edits, the effects table and the delivery,
24
+ with Stop, Show and Apply (a dry run first, then "Write these files"). A band above the prompt and the status
25
+ line show the live tune in one line.
26
+ - `/harness stop [ID]`, `/harness show [ID]` and `/harness apply [ID]` (add `--yes` to write) run the matching
27
+ CLI verbs.
28
+
29
+ Closing the session or reloading the mod leaves the tune running; the progress feed picks it up again.
30
+
31
+ ## Options
32
+
33
+ - `loopmath_bin`: the loopmath executable (default `loopmath`).
34
+ - `config_path`: the config file (default `loopmath-harness.toml` in the session's folder).
35
+
36
+ ## Check
37
+
38
+ loopmath harness mod validate --test
39
+
40
+ runs `claude plugin validate --strict` and `claude plugin test` under a throwaway `CLAUDE_CONFIG_DIR`.