loopmath 0.2.3__tar.gz → 0.2.4__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 (377) hide show
  1. {loopmath-0.2.3/src/loopmath.egg-info → loopmath-0.2.4}/PKG-INFO +37 -24
  2. {loopmath-0.2.3 → loopmath-0.2.4}/README.md +36 -23
  3. {loopmath-0.2.3 → loopmath-0.2.4}/pyproject.toml +1 -1
  4. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/__init__.py +1 -1
  5. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/atrium.py +1 -1
  6. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/bb.py +1 -1
  7. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/opencode.py +1 -1
  8. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/orca.py +1 -1
  9. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/otel_genai.py +1 -1
  10. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/paseo.py +1 -1
  11. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/check_pymc.py +7 -3
  12. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/commands.py +41 -1
  13. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/fit.py +1 -1
  14. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/builder/context.py +2 -1
  15. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/builder/predict.py +8 -1
  16. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/cli.py +73 -30
  17. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/cli_graph.py +28 -19
  18. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/cli_registry.py +25 -8
  19. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/cli_support.py +117 -4
  20. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/verb.py +16 -8
  21. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_bayes.py +57 -0
  22. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/dataset_build.py +2 -2
  23. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_common.py +56 -25
  24. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_css.py +5 -2
  25. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_data.py +35 -12
  26. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_force.py +9 -1
  27. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_render.py +1 -1
  28. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_swimlanes.py +28 -6
  29. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/clip.py +16 -3
  30. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/match.py +94 -7
  31. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/settle.py +7 -6
  32. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/onboard/commands.py +19 -6
  33. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/onboard/history.py +48 -6
  34. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/onboard/usual.py +4 -2
  35. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/output.py +47 -0
  36. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/commands.py +5 -3
  37. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/commands.py +65 -18
  38. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/message.py +4 -3
  39. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/storeread.py +23 -10
  40. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/terminal.py +28 -3
  41. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/share/commands.py +45 -5
  42. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/share/export.py +12 -3
  43. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/commands.py +34 -7
  44. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/doctor.py +9 -2
  45. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/install.py +38 -21
  46. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath-record-run/SKILL.md +2 -2
  47. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/reference.md +10 -1
  48. loopmath-0.2.4/src/loopmath/store/budget.py +153 -0
  49. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/commands.py +166 -47
  50. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/config.py +43 -0
  51. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/finish.py +2 -2
  52. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/fitjob.py +56 -11
  53. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/home.py +68 -11
  54. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/ids.py +28 -4
  55. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/record.py +192 -31
  56. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/report.py +18 -14
  57. loopmath-0.2.4/src/loopmath/store/run_names.py +45 -0
  58. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/runs.py +14 -0
  59. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/status.py +42 -10
  60. loopmath-0.2.4/src/loopmath/store/verify.py +106 -0
  61. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface_presentation.py +28 -2
  62. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/builder.js +29 -6
  63. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/common.js +14 -4
  64. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/estimates.js +10 -5
  65. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/graph.js +71 -10
  66. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/plans.js +15 -4
  67. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/results.js +49 -19
  68. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/runs.js +1 -1
  69. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/viz.css +3 -1
  70. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/viz.js +19 -3
  71. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/common.py +25 -1
  72. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/posterior.py +126 -7
  73. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/runs.py +37 -11
  74. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/commands.py +14 -4
  75. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/shapes.py +15 -0
  76. {loopmath-0.2.3 → loopmath-0.2.4/src/loopmath.egg-info}/PKG-INFO +37 -24
  77. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath.egg-info/SOURCES.txt +4 -0
  78. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_services.py +1 -1
  79. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapters.py +33 -1
  80. loopmath-0.2.4/tests/test_analyze_cli.py +112 -0
  81. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_graph.py +54 -41
  82. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_prices.py +26 -2
  83. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_fit.py +8 -0
  84. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_dataset.py +3 -3
  85. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_runfile.py +6 -3
  86. loopmath-0.2.4/tests/test_research_cli.py +83 -0
  87. loopmath-0.2.3/src/loopmath/store/budget.py +0 -86
  88. {loopmath-0.2.3 → loopmath-0.2.4}/LICENSE +0 -0
  89. {loopmath-0.2.3 → loopmath-0.2.4}/setup.cfg +0 -0
  90. {loopmath-0.2.3 → loopmath-0.2.4}/spec/ocp-v0.2.schema.json +0 -0
  91. {loopmath-0.2.3 → loopmath-0.2.4}/spec/ocp-v0.schema.json +0 -0
  92. {loopmath-0.2.3 → loopmath-0.2.4}/spec/ocp_conformance.py +0 -0
  93. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/__main__.py +0 -0
  94. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapter_host.py +0 -0
  95. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/__init__.py +0 -0
  96. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/base.py +0 -0
  97. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/bb_support.py +0 -0
  98. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/omp.py +0 -0
  99. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/omp_facts.py +0 -0
  100. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/omp_links.py +0 -0
  101. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/omp_parse.py +0 -0
  102. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/omp_types.py +0 -0
  103. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/opencode_store.py +0 -0
  104. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/otel_genai_graph.py +0 -0
  105. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/otel_genai_parse.py +0 -0
  106. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/otel_genai_types.py +0 -0
  107. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/otel_genai_usage.py +0 -0
  108. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/pi.py +0 -0
  109. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/pi_support.py +0 -0
  110. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/adapters/registry.py +0 -0
  111. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/__init__.py +0 -0
  112. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/block.py +0 -0
  113. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/compose.py +0 -0
  114. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/design.py +0 -0
  115. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/features.py +0 -0
  116. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/forest.py +0 -0
  117. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/gaussian.py +0 -0
  118. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/lookahead.py +0 -0
  119. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/outcome.py +0 -0
  120. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/pricing.py +0 -0
  121. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/priors.py +0 -0
  122. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/belief/state.py +0 -0
  123. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/builder/__init__.py +0 -0
  124. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/builder/cli.py +0 -0
  125. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/builder/server.py +0 -0
  126. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/__init__.py +0 -0
  127. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/arms.py +0 -0
  128. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/cli_e0.py +0 -0
  129. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/estimate.py +0 -0
  130. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/estimate_rework.py +0 -0
  131. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/figures.py +0 -0
  132. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/e0/io.py +0 -0
  133. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/explain.py +0 -0
  134. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit.py +0 -0
  135. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_assembly.py +0 -0
  136. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_masks.py +0 -0
  137. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_predict.py +0 -0
  138. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_pricing.py +0 -0
  139. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/fit_transfer.py +0 -0
  140. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/gaps.py +0 -0
  141. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/gitwalk.py +0 -0
  142. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/grade.py +0 -0
  143. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/grade_support.py +0 -0
  144. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/__init__.py +0 -0
  145. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/artifact_git.py +0 -0
  146. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/artifact_join.py +0 -0
  147. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/artifact_kinds.py +0 -0
  148. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/artifacts.py +0 -0
  149. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/bashparse.py +0 -0
  150. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/bashread_ops.py +0 -0
  151. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/bashwrite_ops.py +0 -0
  152. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/bashwrites.py +0 -0
  153. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/cache.py +0 -0
  154. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/codexio.py +0 -0
  155. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/codexio_parse.py +0 -0
  156. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/codexio_scan.py +0 -0
  157. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/dataset.py +0 -0
  158. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/dataset_core.py +0 -0
  159. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/dataset_edges.py +0 -0
  160. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/dataset_nodes.py +0 -0
  161. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/extract.py +0 -0
  162. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/html_costcurve.py +0 -0
  163. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler.py +0 -0
  164. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_cli.py +0 -0
  165. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_common.py +0 -0
  166. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_parse.py +0 -0
  167. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_pricing.py +0 -0
  168. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt.py +0 -0
  169. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_build.py +0 -0
  170. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_dispatch.py +0 -0
  171. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_evidence.py +0 -0
  172. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_node.py +0 -0
  173. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_records.py +0 -0
  174. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_result.py +0 -0
  175. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_session.py +0 -0
  176. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_tools.py +0 -0
  177. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_validation.py +0 -0
  178. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_prompt_workflow.py +0 -0
  179. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_report.py +0 -0
  180. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labeler_score.py +0 -0
  181. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/labels.py +0 -0
  182. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/launch.py +0 -0
  183. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/launch_origin.py +0 -0
  184. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/ocp.py +0 -0
  185. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/ocp_emit.py +0 -0
  186. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/ocp_support.py +0 -0
  187. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/render.py +0 -0
  188. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/runfile.py +0 -0
  189. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/runfile_export.py +0 -0
  190. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/runfile_finish.py +0 -0
  191. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/scan.py +0 -0
  192. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/schema.py +0 -0
  193. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/graph/token_completeness.py +0 -0
  194. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/__init__.py +0 -0
  195. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/base.py +0 -0
  196. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/claude_code.py +0 -0
  197. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/claude_code_support.py +0 -0
  198. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/codex.py +0 -0
  199. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/codex_support.py +0 -0
  200. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp.py +0 -0
  201. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp_analysis.py +0 -0
  202. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp_artifact.py +0 -0
  203. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp_common.py +0 -0
  204. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp_convert.py +0 -0
  205. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ingest/ocp_projection.py +0 -0
  206. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/__init__.py +0 -0
  207. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/artifacts.py +0 -0
  208. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/costs.py +0 -0
  209. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/logmatch/tariff.py +0 -0
  210. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/__init__.py +0 -0
  211. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/canonical.py +0 -0
  212. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/commands.py +0 -0
  213. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/conformance.py +0 -0
  214. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/contractv3.py +0 -0
  215. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/emit.py +0 -0
  216. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/migrate.py +0 -0
  217. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/schema/ocp-v0.2.schema.json +0 -0
  218. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/schema/ocp-v0.3.schema.json +0 -0
  219. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/schema/ocp-v0.schema.json +0 -0
  220. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/ocp/version.py +0 -0
  221. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/onboard/__init__.py +0 -0
  222. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/onboard/label.py +0 -0
  223. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/pool.py +0 -0
  224. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/price.py +0 -0
  225. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/price_validation.py +0 -0
  226. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/prices.toml +0 -0
  227. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/__init__.py +0 -0
  228. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/benchmarks.py +0 -0
  229. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/benchmarks.toml +0 -0
  230. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/build.py +0 -0
  231. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/README.md +0 -0
  232. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/e0.jsonl.gz +0 -0
  233. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/lanes.jsonl.gz +0 -0
  234. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/manifest.json +0 -0
  235. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/rq1.jsonl.gz +0 -0
  236. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/bundle/sweep.jsonl.gz +0 -0
  237. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/e0.py +0 -0
  238. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/history.py +0 -0
  239. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/lanes.py +0 -0
  240. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/ocpdoc.py +0 -0
  241. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/reduce.py +0 -0
  242. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/registry.py +0 -0
  243. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/rq1.py +0 -0
  244. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/show.py +0 -0
  245. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/sweep.py +0 -0
  246. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/priors/validate.py +0 -0
  247. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/receipts.py +0 -0
  248. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/__init__.py +0 -0
  249. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/backlog.py +0 -0
  250. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/curve.py +0 -0
  251. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/engine.py +0 -0
  252. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/gain.py +0 -0
  253. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/receipts.py +0 -0
  254. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/search.py +0 -0
  255. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/recommend/stats.py +0 -0
  256. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/__init__.py +0 -0
  257. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/html.py +0 -0
  258. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/terminal_exclusions.py +0 -0
  259. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/terminal_format.py +0 -0
  260. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/report/terminal_read.py +0 -0
  261. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/research_defaults.py +0 -0
  262. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/research_paths.py +0 -0
  263. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/scoring.py +0 -0
  264. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/scoring_comparisons.py +0 -0
  265. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/scoring_predictive.py +0 -0
  266. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/share/__init__.py +0 -0
  267. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/share/import_.py +0 -0
  268. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/__init__.py +0 -0
  269. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath/SKILL.md +0 -0
  270. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath-import-runs/SKILL.md +0 -0
  271. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath-onboard/SKILL.md +0 -0
  272. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath-plan-task/SKILL.md +0 -0
  273. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/skill/skills/loopmath-update-fit/SKILL.md +0 -0
  274. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/__init__.py +0 -0
  275. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/store/lock.py +0 -0
  276. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface.py +0 -0
  277. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface_bootstrap.py +0 -0
  278. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface_estimation.py +0 -0
  279. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface_frame.py +0 -0
  280. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/surface_support.py +0 -0
  281. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/taskmodel.py +0 -0
  282. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/types.py +0 -0
  283. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/__init__.py +0 -0
  284. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/README.md +0 -0
  285. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/base.css +0 -0
  286. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/builder.css +0 -0
  287. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/builder.html +0 -0
  288. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/estimates.css +0 -0
  289. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/graph.css +0 -0
  290. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/plans.css +0 -0
  291. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/assets/results.css +0 -0
  292. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/views/plans.py +0 -0
  293. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/__init__.py +0 -0
  294. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/candidates.py +0 -0
  295. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/best_of_n.toml +0 -0
  296. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/implement_review.toml +0 -0
  297. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/plan_implement.toml +0 -0
  298. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/plan_implement_review.toml +0 -0
  299. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/solo.toml +0 -0
  300. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/catalog/swarm.toml +0 -0
  301. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/diff.py +0 -0
  302. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/format.py +0 -0
  303. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/graphview.py +0 -0
  304. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/ids.py +0 -0
  305. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/infer.py +0 -0
  306. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/models.py +0 -0
  307. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath/workflows/ocp.py +0 -0
  308. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath.egg-info/dependency_links.txt +0 -0
  309. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath.egg-info/entry_points.txt +0 -0
  310. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath.egg-info/requires.txt +0 -0
  311. {loopmath-0.2.3 → loopmath-0.2.4}/src/loopmath.egg-info/top_level.txt +0 -0
  312. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_atrium.py +0 -0
  313. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_bb.py +0 -0
  314. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_omp.py +0 -0
  315. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_opencode.py +0 -0
  316. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_opencode_output_tokens.py +0 -0
  317. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_orca.py +0 -0
  318. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_otel_genai.py +0 -0
  319. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapter_paseo.py +0 -0
  320. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_adapters_pi.py +0 -0
  321. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_arms.py +0 -0
  322. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_help_lists.py +0 -0
  323. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_labeler.py +0 -0
  324. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_main_module.py +0 -0
  325. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_plan_hidden.py +0 -0
  326. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_cli_startup.py +0 -0
  327. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_color_proof.py +0 -0
  328. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_duplicate_guards.py +0 -0
  329. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_estimate.py +0 -0
  330. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_explain.py +0 -0
  331. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_gaps.py +0 -0
  332. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_gitwalk.py +0 -0
  333. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_grade.py +0 -0
  334. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_artifact_recording.py +0 -0
  335. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_artifacts.py +0 -0
  336. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_bashwrites.py +0 -0
  337. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_cache.py +0 -0
  338. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_codexio.py +0 -0
  339. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_extract.py +0 -0
  340. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_glue.py +0 -0
  341. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_html.py +0 -0
  342. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_labeler.py +0 -0
  343. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_labeler_evidence_matrix.py +0 -0
  344. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_launch.py +0 -0
  345. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_ocp.py +0 -0
  346. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_render.py +0 -0
  347. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_graph_schema.py +0 -0
  348. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_home_guard.py +0 -0
  349. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_html.py +0 -0
  350. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ingest.py +0 -0
  351. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ingest_claude_code.py +0 -0
  352. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ingest_codex.py +0 -0
  353. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ingest_ocp.py +0 -0
  354. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_io.py +0 -0
  355. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_not_run_summary.py +0 -0
  356. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ocp_conformance.py +0 -0
  357. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ocp_golden.py +0 -0
  358. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ocp_open_enums.py +0 -0
  359. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_ocp_versioning.py +0 -0
  360. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_output_html_path.py +0 -0
  361. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_packaging_metadata.py +0 -0
  362. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_packaging_smoke.py +0 -0
  363. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_pool.py +0 -0
  364. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_preview_script.py +0 -0
  365. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_price.py +0 -0
  366. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_receipts.py +0 -0
  367. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_release_paths.py +0 -0
  368. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_runfile_privacy_n1b.py +0 -0
  369. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_scoring.py +0 -0
  370. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_split_rebindings.py +0 -0
  371. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_starting_prior.py +0 -0
  372. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_surface.py +0 -0
  373. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_taskmodel_features.py +0 -0
  374. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_terminal.py +0 -0
  375. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_types_control.py +0 -0
  376. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_types_piece_prediction.py +0 -0
  377. {loopmath-0.2.3 → loopmath-0.2.4}/tests/test_v01_scaffold.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: loopmath
3
- Version: 0.2.3
3
+ Version: 0.2.4
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
@@ -42,7 +42,7 @@ loopmath helps an orchestrator agent choose how to run a coding task, and learns
42
42
 
43
43
  Before a task, it predicts how the user's usual agent workflow will do: the chance of an accepted result, and the cost in tokens and dollars. It shows the other workflows on a success-cost curve and offers two exploration picks. Each pick comes with its gain on every future similar run, its one-time price, and the number of runs it takes to pay back. After the task, the orchestrator records what ran and what came of it. loopmath fills in the token costs from the Claude Code and Codex logs, writes a receipt of predicted against actual, and refits.
44
44
 
45
- loopmath never starts or coordinates agents. Claude Code, Codex, herdr or your own tool does that; loopmath is a CLI they call. Everything runs locally. No command opens a network connection, the logs are opened read only, and loopmath writes only to its store (`~/.loopmath`) and to paths you name.
45
+ loopmath never starts or coordinates agents. Claude Code, Codex, herdr or your own tool does that; loopmath is a CLI they call. Everything runs locally. loopmath connects to no other machine: `loopmath builder` serves its page on 127.0.0.1 only, and no other command opens a network connection. The logs are opened read only, and loopmath writes only to its store (`~/.loopmath`, which holds its caches too), to the skill folders `skill install` names, and to paths you name.
46
46
 
47
47
  The package installs two commands: `loopmath` and its short alias `loop`. If another `loop` is already on your PATH, use `loopmath`.
48
48
 
@@ -65,12 +65,13 @@ python3 -m venv .venv
65
65
  ## First run
66
66
 
67
67
  ```sh
68
- loopmath skill install # teach your coding agents how to use loopmath
68
+ loopmath skill install --dry-run # every file it would write, and where; writes nothing
69
+ loopmath skill install # teach your coding agents how to use loopmath
69
70
  ```
70
71
 
71
72
  Then ask your agent to onboard, for example "onboard loopmath". The agent runs a dry run, asks you one question (which model labels your sessions, with the cost of each option), onboards, fits, and opens the results page.
72
73
 
73
- `skill install` writes six skills, one per job, and a shared `reference.md` with every command and JSON field they use. An agent loads only the skill for the job at hand, and each phrase belongs to one skill:
74
+ `skill install` writes six skills, one per job. Each skill's folder also gets its own copy of the shared `reference.md`, with every command and JSON field the skills use, so each skill works on its own. An agent loads only the skill for the job at hand, and each phrase belongs to one skill:
74
75
 
75
76
  | Skill | Ask your agent |
76
77
  |---|---|
@@ -83,7 +84,7 @@ Then ask your agent to onboard, for example "onboard loopmath". The agent runs a
83
84
 
84
85
  By default the skills go to every agent whose home exists: Claude Code (`~/.claude/skills/<name>/`, or under `$CLAUDE_CONFIG_DIR`) and Codex (`~/.codex/skills/<name>/`, or under `$CODEX_HOME`). `--target claude-code`, `codex` or `both` picks them yourself. If your Codex has no skills folder, the files go to `~/.codex/loopmath/<name>/` instead, with a short marked block in `~/.codex/AGENTS.md` that lists them. Add `--scope project` to install into the current repository (or `--dir PATH` for another one).
85
86
 
86
- It is safe to run again. It records the files it wrote, with their hashes, in `.loopmath-skills.json` beside the skill folders, and it replaces or removes only those. A skill file you changed is kept, with a note. Any other file where a skill goes stops the install before it writes anything, and names the path to move aside. The single skill that 0.1 installed is replaced when it is as 0.1 wrote it. `loopmath skill show NAME` prints one skill, and `loopmath skill uninstall` removes the files it wrote. `loopmath doctor` shows what loopmath can see: logs, agents, store, fit, prices and skills.
87
+ It is safe to run again. It records the files it wrote, with their hashes, in `.loopmath-skills.json` beside the skill folders, and it replaces or removes only those. A skill file you changed is kept, with a note. Any other file where a skill goes stops the install before it writes anything, and names the path to move aside. The single skill that 0.1 installed is replaced when it is as 0.1 wrote it. `loopmath skill show NAME` prints one skill, and `loopmath skill uninstall` removes the files it wrote. `loopmath doctor` shows what loopmath can see: logs, agents, store, fit, prices and skills. To read the logs it builds the log parse cache in the store and keeps it, so the next read is fast, and it says how big the cache is; it changes nothing else in the store.
87
88
 
88
89
  To onboard by hand instead:
89
90
 
@@ -92,7 +93,9 @@ loopmath onboard --dry-run # what it found, and
92
93
  loopmath onboard --labeler claude:claude-haiku-4-5 --yes # record it and run a first fit
93
94
  ```
94
95
 
95
- `onboard` reads your recent Claude Code and Codex sessions (the last 90 days unless you pass `--since`). It groups them into runs, labels each group's task type with a model you choose, names your usual workflow per task type and repository, and fits. loopmath never picks the labelling model for you. `--labeler` takes one of:
96
+ The dry run makes no labelling call and writes no runs or fit; like `doctor`, it keeps the log parse cache in the store and says how big it is. The first read of a long history takes several minutes; with the cache, the next one is quick.
97
+
98
+ `onboard` reads your recent Claude Code and Codex sessions (the last 90 days unless you pass `--since`). It groups them into runs, labels each group's task type with a model you choose, names your usual workflow per task type and repository (sessions outside a git repository go under `(no repo)`), and fits. loopmath never picks the labelling model for you. `--labeler` takes one of:
96
99
 
97
100
  - `claude:<model>`, through your `claude` CLI;
98
101
  - `codex:<model>`, through your `codex` CLI;
@@ -115,6 +118,8 @@ loopmath run start --rec REC --choice goal --base-commit SHA --json # the h
115
118
  loopmath run record --run RUN --session UUID --verified tests=pass --json # costs from the logs, the outcome, the receipt
116
119
  ```
117
120
 
121
+ With `--run`, a session that started before the run counts from the run's start (a Codex session counts whole). Give `--since TS` and `--until TS` when the task's work began or ended at another time; `--since` before `run start` moves the run's start back. When no commit is found after the base commit, the record says where it looked; pass `--commit SHA`. `loopmath run sessions` lists the recent Claude Code and Codex sessions in this folder with their ids, for `--session ID`. Outside a Claude Code tool shell, `--session self` uses the one Claude Code session in this folder active in the last 10 minutes.
122
+
118
123
  The same loop step by step, for a tool of your own:
119
124
 
120
125
  ```sh
@@ -142,37 +147,41 @@ loopmath run finish --run RUN
142
147
  loopmath outcome --commit SHA --signal incident=INC-42 --kind event --source tracker
143
148
  ```
144
149
 
145
- A pair runs the goal workflow and an exploration pick from the same base commit, in separate worktrees. Save the recommendation (`recommend ... --json > rec.json`) and start both runs from it with `run start --task-file rec.json`, so they share one task: the first with `--new-slate`, the second with `--slate SLT`. A blinded referee then picks the better change, which you record with `loopmath outcome --slate SLT --prefer RUN --judge referee --blinded`.
150
+ The usual workflow is the one most of your habit runs used: the runs onboard brought in, and runs started with `--source habit`. Runs of a recommended alternative or an exploration pick are recorded but never make a workflow your usual; `recommend --usual CFG` names one. Under the reference, `recommend` says where it comes from; each alternative shows its own chance and costs and what it changes from the pick, and an exploration pick says after how many similar runs it pays back. When the text would run past 25 lines it lists fewer alternatives and says how many more `recommend --json` has.
151
+
152
+ A pair runs the goal workflow and an exploration pick from the same base commit, in separate worktrees. `loopmath run start --rec REC --choice pair` starts both, on a new slate. To start them one at a time, save the recommendation (`recommend ... --json > rec.json`) and start each run from it, so they share one task: `loopmath run start --task-file rec.json --config CFG --source alternative --new-slate` for the goal, then the same with the pick's configuration, `--source exploration` and `--slate SLT`. A blinded referee then picks the better change, which you record with `loopmath outcome --slate SLT --prefer RUN --judge referee --blinded`. `loopmath runs --slate SLT` says which run the referee preferred.
146
153
 
147
- A run counts as a success when it is accepted under your rule. By default that means the task's tests pass. A rule can also be a score target: `loopmath recommend ... --target 'heldout_perf>=2400'` or `--target 'runtime_s<=200'` gives the expected score and the chance of reaching the target. Set standing rules and other options with `loopmath config set KEY VALUE`, and the spending cap with `loopmath budget --usd X --period month`.
154
+ A run counts as a success when it is accepted under your rule. By default that means the task's tests pass. A rule can also be a score target: `loopmath recommend ... --target 'heldout_perf>=2400'` or `--target 'runtime_s<=200'` gives the expected score and the chance of reaching the target. Set standing rules and other options with `loopmath config set KEY VALUE` (`loopmath config get` lists every key, set or not, and `config set` refuses a key loopmath does not read), and the spending cap with `loopmath budget --usd X --period month`. Spend counts your runs and onboard's labelling calls; runs onboard brought in from your logs are shown apart and not counted. A run you record with `--source habit` counts.
148
155
 
149
- Runs recorded by another tool that writes OCP v0.3, such as an experiment runner, come in with `loopmath run import DIR --finish`: several files or a directory, with one refit at the end (`--no-fit` skips it). Runs in your store always count as yours, whatever source their documents name. `loopmath fit --without SOURCE` leaves out one shipped prior source, and `loopmath status` names the options of the current fit.
156
+ Runs recorded by another tool that writes OCP v0.3, such as an experiment runner, come in with `loopmath run import DIR --finish`: several files or a directory, with one refit at the end (`--no-fit` skips it). It says how many runs were new and how many were already in the store; importing finished runs into a store with no fit starts a fit. Runs in your store always count as yours, whatever source their documents name. `loopmath fit --without SOURCE` leaves out one shipped prior source, and `loopmath status` names the options of the current fit.
150
157
 
151
158
  ## The three views
152
159
 
153
- Each view is a self-contained HTML file written by a command; there is no server. The same numbers are available with `--json`.
160
+ Each view is a self-contained HTML file written by a command; opening one needs no server. The same numbers are available with `--json`.
154
161
 
155
162
  - **Previous runs:** `loopmath runs --html`. Every recorded run with its workflow graph, costs, signals and receipt.
156
163
  - **Plans for a task:** `loopmath recommend ... --html`. The candidates on a success-cost chart. Click one to see its workflow graph with per-piece predictions.
157
- - **Current estimates:** `loopmath posterior --html`. What loopmath believes at each level (model, effort, role, topology, task type, repository, feature), each with a range. Add `--workflow CFG` (a configuration id from `loopmath recommend` or your runs) to see the estimate for each piece of one workflow.
164
+ - **Current estimates:** `loopmath posterior --html`. What loopmath believes at each level (model, effort, role, topology, task type, repository, feature), each with a range. Add `--workflow CFG` (a configuration id from `loopmath recommend` or your runs) to see the estimate for each piece of one workflow, on the task its runs were for, or, if it never ran, the task it was recommended for; `--type` and `--repo` pick another.
158
165
 
159
166
  Without a path, `--html` writes the page under `~/.loopmath/views/` and prints where it went.
160
167
 
168
+ The workflow builder is the one page that is served: `loopmath builder --type bug_fix --repo acme/api` serves it on 127.0.0.1 and opens it in your browser (`--no-open` prints the address instead); Ctrl+C stops it. Pick a shape, change models, efforts, widths and pieces, and see the estimated numbers for the task, the same ones `recommend` gives.
169
+
161
170
  ## Commands
162
171
 
163
172
  | Group | Commands |
164
173
  |---|---|
165
- | Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend` |
166
- | Record | `run` (start, attempt, artifact, finish, import), `outcome`, `budget`, `config` (get, set) |
174
+ | Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend`, `builder` |
175
+ | Record | `run` (start, record, import, attempt, artifact, finish, sessions), `outcome`, `budget`, `config` (get, set) |
167
176
  | Learn | `fit`, `onboard`, `share`, `prior` |
168
- | View | `runs`, `posterior`, `status`, `report`, `doctor` |
177
+ | View | `runs`, `posterior`, `status`, `report`, `doctor`, `verify-receipts` |
169
178
  | Skill | `skill` (install, uninstall, show) |
170
179
  | OCP | `ocp` (validate, migrate) |
171
- | Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices`, `scan`, `verify-receipts` |
180
+ | Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices`, `scan` |
172
181
 
173
- Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. Exit codes: 0 ok, 1 user error, 2 not found, 3 not implemented, 4 store locked, 5 no fit yet. For flags, `loopmath <command> --help` is the source of truth.
182
+ Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. Exit codes: 0 ok, 1 user error, 2 not found, 3 not implemented, 4 store locked, 5 no fit yet. For flags, `loopmath <command> --help` is the source of truth. Commands, pages and the `runs` table show times in your local time with the zone; the store and `--json` keep UTC. A cost under a cent shows one significant digit (`$0.004`), and an exact zero is `$0`.
174
183
 
175
- A workflow is a TOML file. `loopmath workflows list` shows the catalog and yours, which live in `~/.loopmath/workflows/`. This one implements, then sends a rejected change back once or twice:
184
+ A workflow is a TOML file. `loopmath workflows list` shows the catalog and yours, which live in `~/.loopmath/workflows/`. It also lists the shapes loopmath composes from catalog pieces, such as `team`; `loopmath workflows show team` says what one is and that `recommend` does not offer it. This one implements, then sends a rejected change back once or twice:
176
185
 
177
186
  ```toml
178
187
  id = "implement_review_mine"
@@ -222,7 +231,7 @@ model = "gpt-5.6-sol"
222
231
  effort = "high"
223
232
  ```
224
233
 
225
- Check it with `loopmath workflows validate FILE`, compare it with `loopmath workflows diff implement_review FILE`, and pass it to `recommend --workflow FILE` to have it considered, or to `run start --workflow FILE` to record a run with its settings (`--set PIECE=HARNESS:MODEL:EFFORT` overrides a piece).
234
+ Check it with `loopmath workflows validate FILE`, compare it with `loopmath workflows diff implement_review FILE`, and pass it to `recommend --workflow FILE` to have it considered, or to `run start --workflow FILE --source user_edit` to record a run with its settings (`--set PIECE=HARNESS:MODEL:EFFORT` overrides a piece).
226
235
 
227
236
  ## The store and privacy
228
237
 
@@ -232,13 +241,15 @@ The store is `~/.loopmath`. Set `LOOPMATH_HOME` or pass `--home` to put it elsew
232
241
  - signals, receipts and fits;
233
242
  - your config and your workflows;
234
243
  - the views you write;
235
- - the log parse cache.
244
+ - the caches: the log parse cache, and the folder where `fit --full` compiles its model (when that compile fails, it also leaves the C code it tried in the system temp folder and prints where).
236
245
 
237
- Do not edit the store by hand; use the commands.
246
+ Do not edit the store by hand; use the commands. `loopmath verify-receipts` checks the receipts in your store; give a file to verify a research receipt ledger instead.
238
247
 
239
248
  Run files use the `metadata_only` privacy profile. They keep structure, models, tokens, dollars, paths and verdicts, but not transcript text.
240
249
 
241
- `loopmath share --out FILE` writes a reduced copy you can send to us. It keeps task types, workflows, models, tokens, dollars and outcomes. Repository names are hashed. Titles, paths, commands, session ids and commit shas are removed. `loopmath share --preview` prints exactly what would leave.
250
+ `loopmath share --out FILE` writes a reduced copy you can send to us. It keeps task types, workflows, models, tokens, dollars and outcomes. Repository names are hashed. Titles, paths, commands, session ids and commit shas are removed. `loopmath share --preview` prints exactly what would leave. `--out FILE.json` writes plain JSON you can read; any other name, such as `share.json.gz`, writes gzip.
251
+
252
+ `loopmath prior import-shared FILE` adds a file another organization shared with you to your priors (either format; not one this store shared itself), and `loopmath prior remove-shared ORG` takes it out again; run `loopmath fit` after either.
242
253
 
243
254
  ## Analyzing logs without recording
244
255
 
@@ -249,13 +260,15 @@ loopmath analyze # cost per accepted run from the last 14 days o
249
260
  loopmath graph --workspace NAME --format html --out graph.html
250
261
  ```
251
262
 
252
- `analyze` reads `~/.claude/projects` and `~/.codex/sessions`. It grades the outcome evidence it finds, prices known models, and prints cost per accepted run with an 80% band. It also lists what it could not use and why.
263
+ `analyze` reads `~/.claude/projects` and `~/.codex/sessions`. It grades the outcome evidence it finds, prices known models, and prints cost per accepted run with an 80% band. It also lists what it could not use and why; when no workflow configuration has enough runs to compare, it says how many runs it read and what kept each out, and what to try (`--min-n`, `--grading`). `loopmath analyze --json` prints the same as one JSON object, and `--home PATH` keeps its parse cache in that store.
264
+
265
+ `loopmath prices` lists the packaged prices with the source of each. A rate marked "rate not confirmed" is a best public-price guess, and every dollar figure priced with one says so.
253
266
 
254
- `graph` rebuilds which agent launched which, and which session read what another wrote. Its formats are `ocp`, `json`, `dot`, `run` and `html`. See the [workflow graph guide](docs/graph.md) and [adapters](docs/adapters.md).
267
+ `graph` rebuilds which agent launched which, and which session read what another wrote. Its formats are `ocp`, `json`, `dot`, `run` and `html`. `graph --out FILE` and `adapt NAME --out FILE` write to any path you name: missing folders are created, an existing file is replaced, and a directory is refused. `graph` prints a short summary on stderr; `--verbose` adds every count of what was skipped or could not be placed. See the [workflow graph guide](docs/graph.md) and [adapters](docs/adapters.md).
255
268
 
256
269
  ## Research data
257
270
 
258
- `loopmath research fit|transfer-test` and `loopmath analyze-e0` read data folders that are not part of the package. Name them with a flag (`--sweep-dir`, `--corpus`), an environment variable (`LOOPMATH_SWEEP_DIR`, `LOOPMATH_E0_CORPUS`), or config (`loopmath config set research.sweep_dir PATH`, `research.e0_corpus`). The research verbs need the `bayes` extra (`pip install 'loopmath[bayes]'`).
271
+ `loopmath research --help` lists the verbs that read research data folders, which are not part of the package: `research fit` and `research transfer-test` read sweep run records, and `research analyze-e0` reads a session corpus. Name the folders with a flag (`--sweep-dir`, `--corpus`), an environment variable (`LOOPMATH_SWEEP_DIR`, `LOOPMATH_E0_CORPUS`), or config (`loopmath config set research.sweep_dir PATH`, `research.e0_corpus`). `research fit` and `research transfer-test` need the `bayes` extra (`pip install 'loopmath[bayes]'`), and `research analyze-e0` the `e0` extra. `loopmath prior build --out DIR` rebuilds the packaged prior bundle from research data folders like these; `loopmath prior build --help` names them.
259
272
 
260
273
  ## More
261
274
 
@@ -4,7 +4,7 @@ loopmath helps an orchestrator agent choose how to run a coding task, and learns
4
4
 
5
5
  Before a task, it predicts how the user's usual agent workflow will do: the chance of an accepted result, and the cost in tokens and dollars. It shows the other workflows on a success-cost curve and offers two exploration picks. Each pick comes with its gain on every future similar run, its one-time price, and the number of runs it takes to pay back. After the task, the orchestrator records what ran and what came of it. loopmath fills in the token costs from the Claude Code and Codex logs, writes a receipt of predicted against actual, and refits.
6
6
 
7
- loopmath never starts or coordinates agents. Claude Code, Codex, herdr or your own tool does that; loopmath is a CLI they call. Everything runs locally. No command opens a network connection, the logs are opened read only, and loopmath writes only to its store (`~/.loopmath`) and to paths you name.
7
+ loopmath never starts or coordinates agents. Claude Code, Codex, herdr or your own tool does that; loopmath is a CLI they call. Everything runs locally. loopmath connects to no other machine: `loopmath builder` serves its page on 127.0.0.1 only, and no other command opens a network connection. The logs are opened read only, and loopmath writes only to its store (`~/.loopmath`, which holds its caches too), to the skill folders `skill install` names, and to paths you name.
8
8
 
9
9
  The package installs two commands: `loopmath` and its short alias `loop`. If another `loop` is already on your PATH, use `loopmath`.
10
10
 
@@ -27,12 +27,13 @@ python3 -m venv .venv
27
27
  ## First run
28
28
 
29
29
  ```sh
30
- loopmath skill install # teach your coding agents how to use loopmath
30
+ loopmath skill install --dry-run # every file it would write, and where; writes nothing
31
+ loopmath skill install # teach your coding agents how to use loopmath
31
32
  ```
32
33
 
33
34
  Then ask your agent to onboard, for example "onboard loopmath". The agent runs a dry run, asks you one question (which model labels your sessions, with the cost of each option), onboards, fits, and opens the results page.
34
35
 
35
- `skill install` writes six skills, one per job, and a shared `reference.md` with every command and JSON field they use. An agent loads only the skill for the job at hand, and each phrase belongs to one skill:
36
+ `skill install` writes six skills, one per job. Each skill's folder also gets its own copy of the shared `reference.md`, with every command and JSON field the skills use, so each skill works on its own. An agent loads only the skill for the job at hand, and each phrase belongs to one skill:
36
37
 
37
38
  | Skill | Ask your agent |
38
39
  |---|---|
@@ -45,7 +46,7 @@ Then ask your agent to onboard, for example "onboard loopmath". The agent runs a
45
46
 
46
47
  By default the skills go to every agent whose home exists: Claude Code (`~/.claude/skills/<name>/`, or under `$CLAUDE_CONFIG_DIR`) and Codex (`~/.codex/skills/<name>/`, or under `$CODEX_HOME`). `--target claude-code`, `codex` or `both` picks them yourself. If your Codex has no skills folder, the files go to `~/.codex/loopmath/<name>/` instead, with a short marked block in `~/.codex/AGENTS.md` that lists them. Add `--scope project` to install into the current repository (or `--dir PATH` for another one).
47
48
 
48
- It is safe to run again. It records the files it wrote, with their hashes, in `.loopmath-skills.json` beside the skill folders, and it replaces or removes only those. A skill file you changed is kept, with a note. Any other file where a skill goes stops the install before it writes anything, and names the path to move aside. The single skill that 0.1 installed is replaced when it is as 0.1 wrote it. `loopmath skill show NAME` prints one skill, and `loopmath skill uninstall` removes the files it wrote. `loopmath doctor` shows what loopmath can see: logs, agents, store, fit, prices and skills.
49
+ It is safe to run again. It records the files it wrote, with their hashes, in `.loopmath-skills.json` beside the skill folders, and it replaces or removes only those. A skill file you changed is kept, with a note. Any other file where a skill goes stops the install before it writes anything, and names the path to move aside. The single skill that 0.1 installed is replaced when it is as 0.1 wrote it. `loopmath skill show NAME` prints one skill, and `loopmath skill uninstall` removes the files it wrote. `loopmath doctor` shows what loopmath can see: logs, agents, store, fit, prices and skills. To read the logs it builds the log parse cache in the store and keeps it, so the next read is fast, and it says how big the cache is; it changes nothing else in the store.
49
50
 
50
51
  To onboard by hand instead:
51
52
 
@@ -54,7 +55,9 @@ loopmath onboard --dry-run # what it found, and
54
55
  loopmath onboard --labeler claude:claude-haiku-4-5 --yes # record it and run a first fit
55
56
  ```
56
57
 
57
- `onboard` reads your recent Claude Code and Codex sessions (the last 90 days unless you pass `--since`). It groups them into runs, labels each group's task type with a model you choose, names your usual workflow per task type and repository, and fits. loopmath never picks the labelling model for you. `--labeler` takes one of:
58
+ The dry run makes no labelling call and writes no runs or fit; like `doctor`, it keeps the log parse cache in the store and says how big it is. The first read of a long history takes several minutes; with the cache, the next one is quick.
59
+
60
+ `onboard` reads your recent Claude Code and Codex sessions (the last 90 days unless you pass `--since`). It groups them into runs, labels each group's task type with a model you choose, names your usual workflow per task type and repository (sessions outside a git repository go under `(no repo)`), and fits. loopmath never picks the labelling model for you. `--labeler` takes one of:
58
61
 
59
62
  - `claude:<model>`, through your `claude` CLI;
60
63
  - `codex:<model>`, through your `codex` CLI;
@@ -77,6 +80,8 @@ loopmath run start --rec REC --choice goal --base-commit SHA --json # the h
77
80
  loopmath run record --run RUN --session UUID --verified tests=pass --json # costs from the logs, the outcome, the receipt
78
81
  ```
79
82
 
83
+ With `--run`, a session that started before the run counts from the run's start (a Codex session counts whole). Give `--since TS` and `--until TS` when the task's work began or ended at another time; `--since` before `run start` moves the run's start back. When no commit is found after the base commit, the record says where it looked; pass `--commit SHA`. `loopmath run sessions` lists the recent Claude Code and Codex sessions in this folder with their ids, for `--session ID`. Outside a Claude Code tool shell, `--session self` uses the one Claude Code session in this folder active in the last 10 minutes.
84
+
80
85
  The same loop step by step, for a tool of your own:
81
86
 
82
87
  ```sh
@@ -104,37 +109,41 @@ loopmath run finish --run RUN
104
109
  loopmath outcome --commit SHA --signal incident=INC-42 --kind event --source tracker
105
110
  ```
106
111
 
107
- A pair runs the goal workflow and an exploration pick from the same base commit, in separate worktrees. Save the recommendation (`recommend ... --json > rec.json`) and start both runs from it with `run start --task-file rec.json`, so they share one task: the first with `--new-slate`, the second with `--slate SLT`. A blinded referee then picks the better change, which you record with `loopmath outcome --slate SLT --prefer RUN --judge referee --blinded`.
112
+ The usual workflow is the one most of your habit runs used: the runs onboard brought in, and runs started with `--source habit`. Runs of a recommended alternative or an exploration pick are recorded but never make a workflow your usual; `recommend --usual CFG` names one. Under the reference, `recommend` says where it comes from; each alternative shows its own chance and costs and what it changes from the pick, and an exploration pick says after how many similar runs it pays back. When the text would run past 25 lines it lists fewer alternatives and says how many more `recommend --json` has.
113
+
114
+ A pair runs the goal workflow and an exploration pick from the same base commit, in separate worktrees. `loopmath run start --rec REC --choice pair` starts both, on a new slate. To start them one at a time, save the recommendation (`recommend ... --json > rec.json`) and start each run from it, so they share one task: `loopmath run start --task-file rec.json --config CFG --source alternative --new-slate` for the goal, then the same with the pick's configuration, `--source exploration` and `--slate SLT`. A blinded referee then picks the better change, which you record with `loopmath outcome --slate SLT --prefer RUN --judge referee --blinded`. `loopmath runs --slate SLT` says which run the referee preferred.
108
115
 
109
- A run counts as a success when it is accepted under your rule. By default that means the task's tests pass. A rule can also be a score target: `loopmath recommend ... --target 'heldout_perf>=2400'` or `--target 'runtime_s<=200'` gives the expected score and the chance of reaching the target. Set standing rules and other options with `loopmath config set KEY VALUE`, and the spending cap with `loopmath budget --usd X --period month`.
116
+ A run counts as a success when it is accepted under your rule. By default that means the task's tests pass. A rule can also be a score target: `loopmath recommend ... --target 'heldout_perf>=2400'` or `--target 'runtime_s<=200'` gives the expected score and the chance of reaching the target. Set standing rules and other options with `loopmath config set KEY VALUE` (`loopmath config get` lists every key, set or not, and `config set` refuses a key loopmath does not read), and the spending cap with `loopmath budget --usd X --period month`. Spend counts your runs and onboard's labelling calls; runs onboard brought in from your logs are shown apart and not counted. A run you record with `--source habit` counts.
110
117
 
111
- Runs recorded by another tool that writes OCP v0.3, such as an experiment runner, come in with `loopmath run import DIR --finish`: several files or a directory, with one refit at the end (`--no-fit` skips it). Runs in your store always count as yours, whatever source their documents name. `loopmath fit --without SOURCE` leaves out one shipped prior source, and `loopmath status` names the options of the current fit.
118
+ Runs recorded by another tool that writes OCP v0.3, such as an experiment runner, come in with `loopmath run import DIR --finish`: several files or a directory, with one refit at the end (`--no-fit` skips it). It says how many runs were new and how many were already in the store; importing finished runs into a store with no fit starts a fit. Runs in your store always count as yours, whatever source their documents name. `loopmath fit --without SOURCE` leaves out one shipped prior source, and `loopmath status` names the options of the current fit.
112
119
 
113
120
  ## The three views
114
121
 
115
- Each view is a self-contained HTML file written by a command; there is no server. The same numbers are available with `--json`.
122
+ Each view is a self-contained HTML file written by a command; opening one needs no server. The same numbers are available with `--json`.
116
123
 
117
124
  - **Previous runs:** `loopmath runs --html`. Every recorded run with its workflow graph, costs, signals and receipt.
118
125
  - **Plans for a task:** `loopmath recommend ... --html`. The candidates on a success-cost chart. Click one to see its workflow graph with per-piece predictions.
119
- - **Current estimates:** `loopmath posterior --html`. What loopmath believes at each level (model, effort, role, topology, task type, repository, feature), each with a range. Add `--workflow CFG` (a configuration id from `loopmath recommend` or your runs) to see the estimate for each piece of one workflow.
126
+ - **Current estimates:** `loopmath posterior --html`. What loopmath believes at each level (model, effort, role, topology, task type, repository, feature), each with a range. Add `--workflow CFG` (a configuration id from `loopmath recommend` or your runs) to see the estimate for each piece of one workflow, on the task its runs were for, or, if it never ran, the task it was recommended for; `--type` and `--repo` pick another.
120
127
 
121
128
  Without a path, `--html` writes the page under `~/.loopmath/views/` and prints where it went.
122
129
 
130
+ The workflow builder is the one page that is served: `loopmath builder --type bug_fix --repo acme/api` serves it on 127.0.0.1 and opens it in your browser (`--no-open` prints the address instead); Ctrl+C stops it. Pick a shape, change models, efforts, widths and pieces, and see the estimated numbers for the task, the same ones `recommend` gives.
131
+
123
132
  ## Commands
124
133
 
125
134
  | Group | Commands |
126
135
  |---|---|
127
- | Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend` |
128
- | Record | `run` (start, attempt, artifact, finish, import), `outcome`, `budget`, `config` (get, set) |
136
+ | Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend`, `builder` |
137
+ | Record | `run` (start, record, import, attempt, artifact, finish, sessions), `outcome`, `budget`, `config` (get, set) |
129
138
  | Learn | `fit`, `onboard`, `share`, `prior` |
130
- | View | `runs`, `posterior`, `status`, `report`, `doctor` |
139
+ | View | `runs`, `posterior`, `status`, `report`, `doctor`, `verify-receipts` |
131
140
  | Skill | `skill` (install, uninstall, show) |
132
141
  | OCP | `ocp` (validate, migrate) |
133
- | Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices`, `scan`, `verify-receipts` |
142
+ | Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices`, `scan` |
134
143
 
135
- Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. Exit codes: 0 ok, 1 user error, 2 not found, 3 not implemented, 4 store locked, 5 no fit yet. For flags, `loopmath <command> --help` is the source of truth.
144
+ Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. Exit codes: 0 ok, 1 user error, 2 not found, 3 not implemented, 4 store locked, 5 no fit yet. For flags, `loopmath <command> --help` is the source of truth. Commands, pages and the `runs` table show times in your local time with the zone; the store and `--json` keep UTC. A cost under a cent shows one significant digit (`$0.004`), and an exact zero is `$0`.
136
145
 
137
- A workflow is a TOML file. `loopmath workflows list` shows the catalog and yours, which live in `~/.loopmath/workflows/`. This one implements, then sends a rejected change back once or twice:
146
+ A workflow is a TOML file. `loopmath workflows list` shows the catalog and yours, which live in `~/.loopmath/workflows/`. It also lists the shapes loopmath composes from catalog pieces, such as `team`; `loopmath workflows show team` says what one is and that `recommend` does not offer it. This one implements, then sends a rejected change back once or twice:
138
147
 
139
148
  ```toml
140
149
  id = "implement_review_mine"
@@ -184,7 +193,7 @@ model = "gpt-5.6-sol"
184
193
  effort = "high"
185
194
  ```
186
195
 
187
- Check it with `loopmath workflows validate FILE`, compare it with `loopmath workflows diff implement_review FILE`, and pass it to `recommend --workflow FILE` to have it considered, or to `run start --workflow FILE` to record a run with its settings (`--set PIECE=HARNESS:MODEL:EFFORT` overrides a piece).
196
+ Check it with `loopmath workflows validate FILE`, compare it with `loopmath workflows diff implement_review FILE`, and pass it to `recommend --workflow FILE` to have it considered, or to `run start --workflow FILE --source user_edit` to record a run with its settings (`--set PIECE=HARNESS:MODEL:EFFORT` overrides a piece).
188
197
 
189
198
  ## The store and privacy
190
199
 
@@ -194,13 +203,15 @@ The store is `~/.loopmath`. Set `LOOPMATH_HOME` or pass `--home` to put it elsew
194
203
  - signals, receipts and fits;
195
204
  - your config and your workflows;
196
205
  - the views you write;
197
- - the log parse cache.
206
+ - the caches: the log parse cache, and the folder where `fit --full` compiles its model (when that compile fails, it also leaves the C code it tried in the system temp folder and prints where).
198
207
 
199
- Do not edit the store by hand; use the commands.
208
+ Do not edit the store by hand; use the commands. `loopmath verify-receipts` checks the receipts in your store; give a file to verify a research receipt ledger instead.
200
209
 
201
210
  Run files use the `metadata_only` privacy profile. They keep structure, models, tokens, dollars, paths and verdicts, but not transcript text.
202
211
 
203
- `loopmath share --out FILE` writes a reduced copy you can send to us. It keeps task types, workflows, models, tokens, dollars and outcomes. Repository names are hashed. Titles, paths, commands, session ids and commit shas are removed. `loopmath share --preview` prints exactly what would leave.
212
+ `loopmath share --out FILE` writes a reduced copy you can send to us. It keeps task types, workflows, models, tokens, dollars and outcomes. Repository names are hashed. Titles, paths, commands, session ids and commit shas are removed. `loopmath share --preview` prints exactly what would leave. `--out FILE.json` writes plain JSON you can read; any other name, such as `share.json.gz`, writes gzip.
213
+
214
+ `loopmath prior import-shared FILE` adds a file another organization shared with you to your priors (either format; not one this store shared itself), and `loopmath prior remove-shared ORG` takes it out again; run `loopmath fit` after either.
204
215
 
205
216
  ## Analyzing logs without recording
206
217
 
@@ -211,13 +222,15 @@ loopmath analyze # cost per accepted run from the last 14 days o
211
222
  loopmath graph --workspace NAME --format html --out graph.html
212
223
  ```
213
224
 
214
- `analyze` reads `~/.claude/projects` and `~/.codex/sessions`. It grades the outcome evidence it finds, prices known models, and prints cost per accepted run with an 80% band. It also lists what it could not use and why.
225
+ `analyze` reads `~/.claude/projects` and `~/.codex/sessions`. It grades the outcome evidence it finds, prices known models, and prints cost per accepted run with an 80% band. It also lists what it could not use and why; when no workflow configuration has enough runs to compare, it says how many runs it read and what kept each out, and what to try (`--min-n`, `--grading`). `loopmath analyze --json` prints the same as one JSON object, and `--home PATH` keeps its parse cache in that store.
226
+
227
+ `loopmath prices` lists the packaged prices with the source of each. A rate marked "rate not confirmed" is a best public-price guess, and every dollar figure priced with one says so.
215
228
 
216
- `graph` rebuilds which agent launched which, and which session read what another wrote. Its formats are `ocp`, `json`, `dot`, `run` and `html`. See the [workflow graph guide](docs/graph.md) and [adapters](docs/adapters.md).
229
+ `graph` rebuilds which agent launched which, and which session read what another wrote. Its formats are `ocp`, `json`, `dot`, `run` and `html`. `graph --out FILE` and `adapt NAME --out FILE` write to any path you name: missing folders are created, an existing file is replaced, and a directory is refused. `graph` prints a short summary on stderr; `--verbose` adds every count of what was skipped or could not be placed. See the [workflow graph guide](docs/graph.md) and [adapters](docs/adapters.md).
217
230
 
218
231
  ## Research data
219
232
 
220
- `loopmath research fit|transfer-test` and `loopmath analyze-e0` read data folders that are not part of the package. Name them with a flag (`--sweep-dir`, `--corpus`), an environment variable (`LOOPMATH_SWEEP_DIR`, `LOOPMATH_E0_CORPUS`), or config (`loopmath config set research.sweep_dir PATH`, `research.e0_corpus`). The research verbs need the `bayes` extra (`pip install 'loopmath[bayes]'`).
233
+ `loopmath research --help` lists the verbs that read research data folders, which are not part of the package: `research fit` and `research transfer-test` read sweep run records, and `research analyze-e0` reads a session corpus. Name the folders with a flag (`--sweep-dir`, `--corpus`), an environment variable (`LOOPMATH_SWEEP_DIR`, `LOOPMATH_E0_CORPUS`), or config (`loopmath config set research.sweep_dir PATH`, `research.e0_corpus`). `research fit` and `research transfer-test` need the `bayes` extra (`pip install 'loopmath[bayes]'`), and `research analyze-e0` the `e0` extra. `loopmath prior build --out DIR` rebuilds the packaged prior bundle from research data folders like these; `loopmath prior build --help` names them.
221
234
 
222
235
  ## More
223
236
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "loopmath"
7
- version = "0.2.3"
7
+ version = "0.2.4"
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"
@@ -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.2.3"
8
+ __version__ = "0.2.4"
@@ -470,7 +470,7 @@ class AtriumAdapter(Adapter):
470
470
  return {
471
471
  "ocp": "0.2",
472
472
  "producer": {
473
- "name": "dagr-adapter-atrium",
473
+ "name": "loopmath/adapter-atrium",
474
474
  "framework": "atrium",
475
475
  "source_contract": "atrium/timeline+task-run-segments",
476
476
  "capabilities": {
@@ -408,7 +408,7 @@ class BbAdapter(Adapter):
408
408
  )
409
409
  ignored_snapshots = sum(thread["ignored_token_snapshots"] for thread in selected)
410
410
  producer: dict[str, Any] = {
411
- "name": "dagr-adapter-bb",
411
+ "name": "loopmath/adapter-bb",
412
412
  "framework": "bb",
413
413
  "source_contract": "bb/sqlite",
414
414
  "capabilities": {
@@ -386,7 +386,7 @@ def _emit_document(
386
386
  else:
387
387
  source_contract = "opencode export"
388
388
  producer: dict[str, Any] = {
389
- "name": "dagr-adapter-opencode",
389
+ "name": "loopmath/adapter-opencode",
390
390
  "framework": "opencode",
391
391
  "source_contract": source_contract,
392
392
  "capabilities": {
@@ -458,7 +458,7 @@ class OrcaAdapter(Adapter):
458
458
  return {
459
459
  "ocp": "0.2",
460
460
  "producer": {
461
- "name": "dagr-adapter-orca",
461
+ "name": "loopmath/adapter-orca",
462
462
  "framework": "orca",
463
463
  "source_contract": "orca/orchestration.db",
464
464
  "capabilities": {
@@ -383,7 +383,7 @@ class OtelGenAIAdapter(Adapter):
383
383
  return {
384
384
  "ocp": "0.2",
385
385
  "producer": {
386
- "name": "dagr-adapter-otel-genai",
386
+ "name": "loopmath/adapter-otel-genai",
387
387
  "framework": "+".join(harnesses) if harnesses else "unknown",
388
388
  "source_contract": "OTLP/JSON file exporter",
389
389
  "capabilities": {
@@ -418,7 +418,7 @@ class PaseoAdapter(Adapter):
418
418
  return {
419
419
  "ocp": "0.2",
420
420
  "producer": {
421
- "name": "dagr-adapter-paseo",
421
+ "name": "loopmath/adapter-paseo",
422
422
  "framework": "paseo",
423
423
  "source_contract": "paseo/agent-json",
424
424
  "capabilities": {
@@ -21,9 +21,13 @@ from __future__ import annotations
21
21
  import time
22
22
 
23
23
  import numpy as np
24
- import pymc as pm
25
- import pytensor
26
- import pytensor.tensor as pt
24
+
25
+ from ..fit_bayes import use_store_compiledir
26
+
27
+ use_store_compiledir() # before pytensor is imported: its compile folder goes in the store's cache
28
+ import pymc as pm # noqa: E402
29
+ import pytensor # noqa: E402
30
+ import pytensor.tensor as pt # noqa: E402
27
31
 
28
32
  from .gaussian import HYPER_SD, SIGMA_PRIOR_SD, GaussianHead
29
33
 
@@ -121,6 +121,36 @@ def _print_summary(s: dict) -> None:
121
121
  f"(table in pymc_check.json)")
122
122
 
123
123
 
124
+ def _in_pymc_check(exc: BaseException) -> bool:
125
+ """Whether `exc` was raised inside the `--full` PyMC check (check_pymc, pymc or pytensor)."""
126
+ tb = exc.__traceback__
127
+ while tb is not None:
128
+ if tb.tb_frame.f_globals.get("__name__") == "loopmath.belief.check_pymc":
129
+ return True
130
+ tb = tb.tb_next
131
+ return False
132
+
133
+
134
+ def _pymc_check_failed(home: Path, exc: BaseException) -> int:
135
+ """`fit --full` whose PyMC check failed (a compiler error, say): remove the unfinished fit
136
+ folder and say what happened in one line, without a traceback."""
137
+ from .fit import FitBusy, fit_lock, remove_partials
138
+
139
+ try:
140
+ with fit_lock(home, LOCK_WAIT_S): # under the lock every .partial is from a fit that stopped
141
+ remove_partials(home)
142
+ except FitBusy:
143
+ pass # the next fit removes it
144
+ lines = [ln.strip() for ln in str(exc).splitlines() if ln.strip()]
145
+ said = ([ln for ln in lines if ln.startswith("ld:")] # the linker's reason, then the first compiler error
146
+ or [ln for ln in lines if ln.startswith("error:") or " error: " in ln])
147
+ detail = (said[0] if said else (lines or [type(exc).__name__])[-1])[:200]
148
+ kind = "could not compile its model on this machine" if type(exc).__name__ == "CompileError" else "stopped"
149
+ return output.fail(f"fit --full: the PyMC check {kind} ({type(exc).__name__}: {detail}). No fit was "
150
+ "written and fits/latest did not move; loopmath fit without --full fits as usual.",
151
+ output.EXIT_USER)
152
+
153
+
124
154
  def fit(args: argparse.Namespace) -> int:
125
155
  home = output.home(getattr(args, "home", None))
126
156
  without = tuple(getattr(args, "without", None) or ())
@@ -140,10 +170,16 @@ def fit(args: argparse.Namespace) -> int:
140
170
  else:
141
171
  print(f"fit queued: {started.get('reason', 'a fit is running')}")
142
172
  return output.EXIT_OK
173
+ import contextlib
174
+ import sys
175
+
143
176
  from .fit import FitBusy, NothingToFit, UnknownSource, fit as run_fit
144
177
 
178
+ # --full: a failed compile makes pytensor print where it left the C code on stdout, which is for the result
179
+ quiet = contextlib.redirect_stdout(sys.stderr) if full else contextlib.nullcontext()
145
180
  try:
146
- path = run_fit(home, no_prior=no_prior, without=without, full=full, wait_s=LOCK_WAIT_S)
181
+ with quiet:
182
+ path = run_fit(home, no_prior=no_prior, without=without, full=full, wait_s=LOCK_WAIT_S)
147
183
  except FitBusy:
148
184
  return output.fail(f"another fit has held {home / 'fits'} for more than {int(LOCK_WAIT_S)} s; "
149
185
  "try again later or use --background", output.EXIT_LOCKED)
@@ -151,6 +187,10 @@ def fit(args: argparse.Namespace) -> int:
151
187
  return output.fail(str(exc), output.EXIT_NOT_FOUND)
152
188
  except NothingToFit as exc:
153
189
  return output.fail(str(exc), output.EXIT_USER)
190
+ except Exception as exc:
191
+ if not (full and _in_pymc_check(exc)):
192
+ raise
193
+ return _pymc_check_failed(home, exc)
154
194
  summary = _summary(path)
155
195
  if as_json:
156
196
  output.emit_json(SCHEMA, summary)
@@ -72,7 +72,7 @@ REASON_NOTES = {
72
72
  "attempt without usable cost": "crashed or no usage reported",
73
73
  "attempt outside the workflow": "a model attempt at no piece of the run's workflow",
74
74
  "duplicate run id": "the same run found twice",
75
- SHIPPED_COPY: "your store has the same run id; your copy is used",
75
+ SHIPPED_COPY: "this run ships with loopmath and is also in your store, so it counts once, as yours",
76
76
  "no configuration": "the run records no workflow and settings",
77
77
  "workflow ref not resolved": "a workflow this version does not know",
78
78
  "workflow has no pieces": "an empty workflow",
@@ -21,6 +21,7 @@ from typing import Any
21
21
  from ..output import EXIT_NOT_FOUND, EXIT_OK, fail, home as home_dir
22
22
  from ..recommend import commands as C
23
23
  from ..recommend import engine, storeread
24
+ from ..store import run_names
24
25
  from ..recommend.curve import accepted_within
25
26
  from ..recommend.engine import Recommendation, r6
26
27
  from ..recommend.storeread import Conf
@@ -221,7 +222,7 @@ def recorded_runs(home: Any) -> list[tuple[Configuration, int]]:
221
222
  run_of[str(cfg)] = str(row["run"])
222
223
  out = []
223
224
  for cfg_id, n in counts.items():
224
- doc = storeread.read_json(home / "runs" / f"{run_of[cfg_id]}.ocp.json") if cfg_id in run_of else None
225
+ doc = storeread.read_json(home / "runs" / run_names.file_name(run_of[cfg_id])) if cfg_id in run_of else None
225
226
  conf = doc.get("run", {}).get("configuration") if isinstance(doc, dict) else None
226
227
  cfg = storeread.config_from_any(conf) if conf else None
227
228
  if cfg is not None:
@@ -136,6 +136,12 @@ def clean(obj: dict[str, Any]) -> tuple[dict[str, Any], list[dict[str, Any]]]:
136
136
  return {**obj, "id": None, "settings": settings}, notes
137
137
 
138
138
 
139
+ # P3-21 (0.2.4): a review gate that names a repairer at a round limit of 1 is one of loopmath's own shapes (reviewed
140
+ # once; the search builds it and may recommend it). The workflow file check warns about it; the builder page instead
141
+ # says on the gate what 1 round means, so that warning is not shown here.
142
+ REVIEW_ONCE = "budget_rounds is 1"
143
+
144
+
139
145
  def parse_config(obj: Any, models: dict[str, int]
140
146
  ) -> tuple[Configuration | None, list[dict[str, Any]], list[dict[str, Any]]]:
141
147
  """(configuration, errors, warnings); the configuration is None when it does not read at all."""
@@ -158,7 +164,8 @@ def parse_config(obj: Any, models: dict[str, int]
158
164
  errors.append(err(p.id, f"piece {p.id!r}: model {s.model!r} is a retired or unknown model; "
159
165
  f"pick one of {known}"))
160
166
  if not errors:
161
- warnings += notes_of(workflow_warnings(cfg.workflow) + settings_warnings(cfg.settings), cfg)
167
+ shown = [w for w in workflow_warnings(cfg.workflow) if REVIEW_ONCE not in w]
168
+ warnings += notes_of(shown + settings_warnings(cfg.settings), cfg)
162
169
  return cfg, errors, warnings
163
170
 
164
171