loopmath 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {loopmath-0.4.0 → loopmath-0.4.1}/PKG-INFO +17 -2
- {loopmath-0.4.0 → loopmath-0.4.1}/README.md +16 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/pyproject.toml +2 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/__init__.py +1 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/compose.py +5 -3
- loopmath-0.4.1/src/loopmath/belief/cost_recipe.py +185 -0
- loopmath-0.4.1/src/loopmath/belief/cost_sources.py +49 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/design.py +1 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/fit.py +24 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/lookahead.py +25 -7
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/state.py +29 -3
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/cli_registry.py +33 -0
- loopmath-0.4.1/src/loopmath/frontier/__init__.py +13 -0
- loopmath-0.4.1/src/loopmath/frontier/commands.py +437 -0
- loopmath-0.4.1/src/loopmath/frontier/cost.py +299 -0
- loopmath-0.4.1/src/loopmath/frontier/kg.py +432 -0
- loopmath-0.4.1/src/loopmath/frontier/model.py +806 -0
- loopmath-0.4.1/src/loopmath/frontier/pareto.py +185 -0
- loopmath-0.4.1/src/loopmath/frontier/record.py +45 -0
- loopmath-0.4.1/src/loopmath/frontier/state.py +133 -0
- loopmath-0.4.1/src/loopmath/frontier/strategy.py +99 -0
- loopmath-0.4.1/src/loopmath/frontier/tb_prior.csv +42 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/herdr/loopmath-harness/herdr-plugin.toml +1 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/.claude-plugin/plugin.json +1 -1
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/PKG-INFO +17 -2
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/SOURCES.txt +12 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/LICENSE +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/setup.cfg +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/spec/ocp-v0.2.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/spec/ocp-v0.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/spec/ocp_conformance.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/__main__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapter_host.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/atrium.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/base.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/bb.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/bb_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/evolve.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/harness2.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/omp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/omp_facts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/omp_links.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/omp_parse.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/omp_types.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/opencode.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/opencode_store.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/openevolve.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/orca.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/otel_genai.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/otel_genai_graph.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/otel_genai_parse.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/otel_genai_types.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/otel_genai_usage.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/paseo.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/pi.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/pi_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/plugin_eval.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/registry.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/adapters/shinkaevolve.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/block.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/check_pymc.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/features.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/forest.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/gaussian.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/integrated.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/level.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/outcome.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/pricing.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/priors.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/rules.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/belief/sampled.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/builder/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/builder/cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/builder/context.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/builder/predict.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/builder/server.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/cli_errors.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/cli_graph.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/cli_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/_thresholds.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/_thresholds_sw.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/calibrate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/calibration.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/checks.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/model.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/units.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/compare/value.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/arms.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/cli_e0.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/estimate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/estimate_rework.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/figures.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/io.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/e0/verb.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/explain.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_assembly.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_bayes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_masks.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_predict.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_pricing.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/fit_transfer.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/check.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/edits.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/folder.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/judges.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/next.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/plan.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/prefill.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/record.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/records.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/simulate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/status.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/tomlview.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/flows/walk.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gaps.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/core.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/inputs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/winner.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/winner_cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gate/winner_model.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/gitwalk.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/grade.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/grade_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/artifact_git.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/artifact_join.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/artifact_kinds.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/artifacts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/bashparse.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/bashread_ops.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/bashwrite_ops.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/bashwrites.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/cache.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/codexio.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/codexio_parse.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/codexio_scan.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/dataset.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/dataset_build.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/dataset_core.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/dataset_edges.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/dataset_nodes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/extract.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_common.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_costcurve.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_css.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_data.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_force.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_render.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/html_swimlanes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_common.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_parse.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_pricing.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_build.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_dispatch.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_evidence.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_node.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_records.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_result.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_session.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_tools.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_validation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_prompt_workflow.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_report.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labeler_score.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/labels.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/launch.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/launch_origin.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/ocp_emit.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/ocp_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/render.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/runfile.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/runfile_export.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/runfile_finish.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/scan.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/schema.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/graph/token_completeness.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/layouts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/.claude-plugin/marketplace.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/.gitignore +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/README.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/hooks/events.ts +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/hooks/hooks.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/hooks/register.test.ts +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/hooks/register.tsx +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/mod/loopmath-harness/types/index.d.ts +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/config.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/contracts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/delivery.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/design.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/editors.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/edits.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/effects.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/engine.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/events.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/executor.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/herdr.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/isolation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/ledger.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/library.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/modinstall.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/plan.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/prompts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/reflect.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/schema.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/score.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/sessions.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/skilldoc.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/state.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness/tune/stream.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/costs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/rows.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/harness_runs/streams.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/base.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/claude_code.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/claude_code_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/codex.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/codex_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp_analysis.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp_artifact.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp_common.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp_convert.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ingest/ocp_projection.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/integrations/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/integrations/dspy.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/artifacts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/clip.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/codex_window.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/costs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/match.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/settle.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/logmatch/tariff.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/canonical.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/conformance.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/contractv3.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/emit.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/finite.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/graph_contract.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/membership.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/migrate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/schema/ocp-v0.2.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/schema/ocp-v0.3.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/schema/ocp-v0.4.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/schema/ocp-v0.schema.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/ocp/version.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/onboard/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/onboard/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/onboard/history.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/onboard/label.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/onboard/usual.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/output.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/pool.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/price.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/price_validation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/prices.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/benchmarks.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/benchmarks.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/build.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/README.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/e0.jsonl.gz +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/lanes.jsonl.gz +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/manifest.json +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/rq1.jsonl.gz +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/bundle/sweep.jsonl.gz +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/e0.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/history.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/lanes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/ocpdoc.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/reduce.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/registry.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/rq1.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/show.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/sweep.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/priors/validate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/receipts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/backlog.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/curve.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/engine.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/gain.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/message.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/receipts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/search.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/stats.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/storeread.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend/variants.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/recommend_role.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/eligibility.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/html.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/terminal.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/terminal_exclusions.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/terminal_format.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/report/terminal_read.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/research_defaults.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/research_paths.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/scoring.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/scoring_comparisons.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/scoring_predictive.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/design.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/edits.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/model.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/screen/record.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/share/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/share/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/share/export.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/share/import_.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/doctor.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guide.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/fit.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/flow.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/import.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/onboard.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/plan.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/record.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/guides/reference.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/install.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/skill/skills/loopmath/SKILL.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/budget.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/config.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/finish.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/fitjob.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/home.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/ids.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/lock.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/record.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/report.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/rule_change.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/run_names.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/runs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/status.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/store/verify.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface_bootstrap.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface_estimation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface_frame.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface_presentation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/surface_support.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/taskmodel.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/data.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/fit.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/posterior.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/select.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/tasks/sim.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/types.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/update.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/README.md +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/base.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/builder.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/builder.html +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/builder.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/common.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/estimates.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/estimates.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/graph.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/graph.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/plans.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/plans.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/results.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/results.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/runs.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/viz.css +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/assets/viz.js +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/common.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/plans.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/posterior.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/views/runs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/__init__.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/candidates.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/best_of_n.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/implement_review.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/plan_implement.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/plan_implement_review.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/solo.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/catalog/swarm.toml +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/commands.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/diff.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/format.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/graphview.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/ids.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/infer.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/models.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath/workflows/shapes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/dependency_links.txt +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/entry_points.txt +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/requires.txt +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/src/loopmath.egg-info/top_level.txt +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_atrium.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_bb.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_harness2.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_omp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_opencode.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_opencode_output_tokens.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_orca.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_otel_genai.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_paseo.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapter_services.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapters.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_adapters_pi.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_analyze_cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_arms.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_graph.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_help_lists.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_labeler.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_main_module.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_plan_hidden.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_prices.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_cli_startup.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_color_proof.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_duplicate_guards.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_estimate.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_explain.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_fit.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_gaps.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_gitwalk.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_grade.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_artifact_recording.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_artifacts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_bashwrites.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_cache.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_codexio.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_dataset.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_extract.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_glue.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_html.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_labeler.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_labeler_evidence_matrix.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_launch.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_render.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_runfile.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_graph_schema.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_config.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_delivery.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_design.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_editors.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_edits.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_effects.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_engine.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_executor.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_herdr.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_isolation.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_ledger.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_library.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_modinstall.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_plan.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_score.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_sessions.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_harness_tune_skilldoc.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_home_guard.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_html.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ingest.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ingest_claude_code.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ingest_codex.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ingest_ocp.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_io.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_not_run_summary.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ocp_conformance.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ocp_golden.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ocp_open_enums.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_ocp_versioning.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_output_html_path.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_packaging_metadata.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_packaging_smoke.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_pool.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_preview_script.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_price.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_receipts.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_release_paths.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_report_eligibility.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_research_cli.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_runfile_privacy_n1b.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_scoring.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_split_rebindings.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_starting_prior.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_surface.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_taskmodel_features.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_terminal.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_types_control.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_types_piece_prediction.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_update_check.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v01_scaffold.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v027_p3.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v027_small_fixes.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v028_sol_6_1.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v031_help_labels.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/tests/test_v031_json_errors_and_costs.py +0 -0
- {loopmath-0.4.0 → loopmath-0.4.1}/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.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Plan agent workflows, record how they went, and learn from your own Claude Code and Codex logs
|
|
5
5
|
Author: loopmath
|
|
6
6
|
License-Expression: MIT
|
|
@@ -180,6 +180,7 @@ The workflow builder is the one page that is served: `loopmath builder --type bu
|
|
|
180
180
|
| Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend`, `builder` |
|
|
181
181
|
| Record | `run` (start, record, import, attempt, artifact, finish, sessions), `outcome`, `budget`, `config` (get, set, unset) |
|
|
182
182
|
| Flows | `flow` (init, show, export, import, plan, next, record, score, status, check) |
|
|
183
|
+
| Frontier | `frontier` (init, next, record, report) (experimental) |
|
|
183
184
|
| Learn | `fit`, `onboard`, `share`, `prior` |
|
|
184
185
|
| View | `runs`, `posterior`, `status`, `report`, `doctor`, `verify-receipts`, `update` |
|
|
185
186
|
| Harness testing | `check-change`, `gate` (experimental), `screen` (experimental) |
|
|
@@ -190,7 +191,7 @@ The workflow builder is the one page that is served: `loopmath builder --type bu
|
|
|
190
191
|
| OCP | `ocp` (validate, migrate) |
|
|
191
192
|
| Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices` |
|
|
192
193
|
|
|
193
|
-
These are experimental: `harness`, `gate`, `screen`, `tasks pick`, the harness-part estimates (`recommend --harness-variants` and `--harness`, `posterior --level harness` and its `factors`), `recommend --role`, `adapt harness2`, `adapt plugin-eval`, `adapt openevolve`, `adapt shinkaevolve` and the ADE adapters (`adapt NAME`). Each works and has tests, but has had little use on real work so far, and its output may change. Their help says so too. The gate at DSPy's GEPA and MIPROv2 accept step (`loopmath.integrations.dspy`, Python) is experimental too: it is tested against fakes written from their source, not yet with DSPy installed, and its guide says so. So is the opt-in cost model for arms that mix models, `loopmath.compare.model.COST_MODEL = "sw"`, a Python setting with no help of its own; the [changelog](CHANGELOG.md) describes it.
|
|
194
|
+
These are experimental: `harness`, `gate`, `screen`, `tasks pick`, `frontier`, the harness-part estimates (`recommend --harness-variants` and `--harness`, `posterior --level harness` and its `factors`), `recommend --role`, `adapt harness2`, `adapt plugin-eval`, `adapt openevolve`, `adapt shinkaevolve` and the ADE adapters (`adapt NAME`). Each works and has tests, but has had little use on real work so far, and its output may change. Their help says so too. The gate at DSPy's GEPA and MIPROv2 accept step (`loopmath.integrations.dspy`, Python) is experimental too: it is tested against fakes written from their source, not yet with DSPy installed, and its guide says so. So is the opt-in cost model for arms that mix models, `loopmath.compare.model.COST_MODEL = "sw"`, a Python setting with no help of its own; the [changelog](CHANGELOG.md) describes it.
|
|
194
195
|
|
|
195
196
|
Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. One exception: `loopmath adapt harness2`, `adapt harness-runs`, `adapt plugin-eval`, `adapt openevolve` and `adapt shinkaevolve` without `--out` print the run documents on stdout, one per line, so their `--json` summary goes to stderr. 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`.
|
|
196
197
|
|
|
@@ -320,6 +321,20 @@ loopmath gate --base arm:without --cand arm:with --runs rows.jsonl --rule accept
|
|
|
320
321
|
|
|
321
322
|
Runs of one case are not new tasks: to learn whether the plugin helps on tasks like your cases, add cases rather than runs. With grades (`--outcome score`), `check-change from-runs` compares case by case. The import's summary prints the last two filled in for your suite. Which cases are compared, what the suite's one cost can and cannot say, how far the answer reaches and the provisional input layout are in [`docs/plugin-eval.md`](docs/plugin-eval.md).
|
|
322
323
|
|
|
324
|
+
## Finding a cost and pass-rate frontier (experimental)
|
|
325
|
+
|
|
326
|
+
`loopmath frontier` looks for the settings (model and effort) that give the best pass rate for their cost on your own tasks, by ask and tell: `next` says which setting to run on which task, `record` takes the result back, `report` shows each setting's pass rate, cost per run and P, the model's probability that it is on the frontier.
|
|
327
|
+
|
|
328
|
+
```sh
|
|
329
|
+
export LOOPMATH_HOME=$(mktemp -d)
|
|
330
|
+
loopmath frontier init --tasks tasks.jsonl --settings settings.toml --budget 50
|
|
331
|
+
loopmath frontier next --json
|
|
332
|
+
loopmath frontier record TRL --passed PASSED --usd USD
|
|
333
|
+
loopmath frontier report
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
`tasks.jsonl` holds one task per line (`{"id": "t1"}`); `settings.toml` holds `[[settings]]` blocks with `name`, `model` and `effort`. TRL is the trial id `next` gave, PASSED is 1 for a pass and 0 for a fail, and USD is what the run cost in dollars. It is experimental: on simulated fresh DeepSWE runs it found the right frontier in about a quarter of runs at a $8,000 budget, level with the study design it is ported from. P is not yet calibrated, so do not stop on it.
|
|
337
|
+
|
|
323
338
|
## The store and privacy
|
|
324
339
|
|
|
325
340
|
The store is `~/.loopmath`. Set `LOOPMATH_HOME` or pass `--home` to put it elsewhere; the log parse cache moves with it, to `cache/` inside the store, unless you set `LOOPMATH_CACHE_DIR`. It holds:
|
|
@@ -142,6 +142,7 @@ The workflow builder is the one page that is served: `loopmath builder --type bu
|
|
|
142
142
|
| Plan | `task-types`, `workflows` (list, show, validate, diff), `recommend`, `builder` |
|
|
143
143
|
| Record | `run` (start, record, import, attempt, artifact, finish, sessions), `outcome`, `budget`, `config` (get, set, unset) |
|
|
144
144
|
| Flows | `flow` (init, show, export, import, plan, next, record, score, status, check) |
|
|
145
|
+
| Frontier | `frontier` (init, next, record, report) (experimental) |
|
|
145
146
|
| Learn | `fit`, `onboard`, `share`, `prior` |
|
|
146
147
|
| View | `runs`, `posterior`, `status`, `report`, `doctor`, `verify-receipts`, `update` |
|
|
147
148
|
| Harness testing | `check-change`, `gate` (experimental), `screen` (experimental) |
|
|
@@ -152,7 +153,7 @@ The workflow builder is the one page that is served: `loopmath builder --type bu
|
|
|
152
153
|
| OCP | `ocp` (validate, migrate) |
|
|
153
154
|
| Log analysis | `analyze`, `graph`, `adapt`, `prices`, `validate-prices` |
|
|
154
155
|
|
|
155
|
-
These are experimental: `harness`, `gate`, `screen`, `tasks pick`, the harness-part estimates (`recommend --harness-variants` and `--harness`, `posterior --level harness` and its `factors`), `recommend --role`, `adapt harness2`, `adapt plugin-eval`, `adapt openevolve`, `adapt shinkaevolve` and the ADE adapters (`adapt NAME`). Each works and has tests, but has had little use on real work so far, and its output may change. Their help says so too. The gate at DSPy's GEPA and MIPROv2 accept step (`loopmath.integrations.dspy`, Python) is experimental too: it is tested against fakes written from their source, not yet with DSPy installed, and its guide says so. So is the opt-in cost model for arms that mix models, `loopmath.compare.model.COST_MODEL = "sw"`, a Python setting with no help of its own; the [changelog](CHANGELOG.md) describes it.
|
|
156
|
+
These are experimental: `harness`, `gate`, `screen`, `tasks pick`, `frontier`, the harness-part estimates (`recommend --harness-variants` and `--harness`, `posterior --level harness` and its `factors`), `recommend --role`, `adapt harness2`, `adapt plugin-eval`, `adapt openevolve`, `adapt shinkaevolve` and the ADE adapters (`adapt NAME`). Each works and has tests, but has had little use on real work so far, and its output may change. Their help says so too. The gate at DSPy's GEPA and MIPROv2 accept step (`loopmath.integrations.dspy`, Python) is experimental too: it is tested against fakes written from their source, not yet with DSPy installed, and its guide says so. So is the opt-in cost model for arms that mix models, `loopmath.compare.model.COST_MODEL = "sw"`, a Python setting with no help of its own; the [changelog](CHANGELOG.md) describes it.
|
|
156
157
|
|
|
157
158
|
Each command prints a short summary by default. With `--json`, it prints exactly one JSON object instead. One exception: `loopmath adapt harness2`, `adapt harness-runs`, `adapt plugin-eval`, `adapt openevolve` and `adapt shinkaevolve` without `--out` print the run documents on stdout, one per line, so their `--json` summary goes to stderr. 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`.
|
|
158
159
|
|
|
@@ -282,6 +283,20 @@ loopmath gate --base arm:without --cand arm:with --runs rows.jsonl --rule accept
|
|
|
282
283
|
|
|
283
284
|
Runs of one case are not new tasks: to learn whether the plugin helps on tasks like your cases, add cases rather than runs. With grades (`--outcome score`), `check-change from-runs` compares case by case. The import's summary prints the last two filled in for your suite. Which cases are compared, what the suite's one cost can and cannot say, how far the answer reaches and the provisional input layout are in [`docs/plugin-eval.md`](docs/plugin-eval.md).
|
|
284
285
|
|
|
286
|
+
## Finding a cost and pass-rate frontier (experimental)
|
|
287
|
+
|
|
288
|
+
`loopmath frontier` looks for the settings (model and effort) that give the best pass rate for their cost on your own tasks, by ask and tell: `next` says which setting to run on which task, `record` takes the result back, `report` shows each setting's pass rate, cost per run and P, the model's probability that it is on the frontier.
|
|
289
|
+
|
|
290
|
+
```sh
|
|
291
|
+
export LOOPMATH_HOME=$(mktemp -d)
|
|
292
|
+
loopmath frontier init --tasks tasks.jsonl --settings settings.toml --budget 50
|
|
293
|
+
loopmath frontier next --json
|
|
294
|
+
loopmath frontier record TRL --passed PASSED --usd USD
|
|
295
|
+
loopmath frontier report
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
`tasks.jsonl` holds one task per line (`{"id": "t1"}`); `settings.toml` holds `[[settings]]` blocks with `name`, `model` and `effort`. TRL is the trial id `next` gave, PASSED is 1 for a pass and 0 for a fail, and USD is what the run cost in dollars. It is experimental: on simulated fresh DeepSWE runs it found the right frontier in about a quarter of runs at a $8,000 budget, level with the study design it is ported from. P is not yet calibrated, so do not stop on it.
|
|
299
|
+
|
|
285
300
|
## The store and privacy
|
|
286
301
|
|
|
287
302
|
The store is `~/.loopmath`. Set `LOOPMATH_HOME` or pass `--home` to put it elsewhere; the log parse cache moves with it, to `cache/` inside the store, unless you set `LOOPMATH_CACHE_DIR`. It holds:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "loopmath"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.1"
|
|
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"
|
|
@@ -87,6 +87,7 @@ where = ["src"]
|
|
|
87
87
|
[tool.setuptools.package-data]
|
|
88
88
|
loopmath = [
|
|
89
89
|
"prices.toml",
|
|
90
|
+
"frontier/tb_prior.csv",
|
|
90
91
|
"workflows/catalog/*.toml",
|
|
91
92
|
"skill/guides/*.md",
|
|
92
93
|
"skill/skills/*/SKILL.md",
|
|
@@ -90,7 +90,7 @@ def inv_rate_mean(m, v, floor: float | None) -> np.ndarray:
|
|
|
90
90
|
return np.where(certain, np.exp(-np.maximum(m, lf)), spread)
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
def compose(st: Structure, cost_eta: dict, rate_eta: dict, gate_eta: dict, *, sigma_usd: float,
|
|
93
|
+
def compose(st: Structure, cost_eta: dict, rate_eta: dict, gate_eta: dict, *, sigma_usd: float | Mapping,
|
|
94
94
|
sigma_rate: float, floors: Mapping[str, float] | None = None, rate_var: Mapping | None = None,
|
|
95
95
|
rng: np.random.Generator | None) -> RunDraws:
|
|
96
96
|
"""Compose one configuration. `cost_eta[(piece, k)]`, `rate_eta[(piece, k)]` and `gate_eta[(gate index, k)]`
|
|
@@ -99,7 +99,7 @@ def compose(st: Structure, cost_eta: dict, rate_eta: dict, gate_eta: dict, *, si
|
|
|
99
99
|
path passes the rate rows' known parts and adds their unseen variance there). With `rng` None nothing is
|
|
100
100
|
simulated: the `sim_*` arrays stay zero."""
|
|
101
101
|
n = len(next(iter(cost_eta.values())))
|
|
102
|
-
|
|
102
|
+
var_r = sigma_rate ** 2
|
|
103
103
|
floors = floors or {}
|
|
104
104
|
exp_u, exp_t = np.zeros(n), np.zeros(n)
|
|
105
105
|
sim_u, sim_t = np.zeros(n), np.zeros(n)
|
|
@@ -120,6 +120,8 @@ def compose(st: Structure, cost_eta: dict, rate_eta: dict, gate_eta: dict, *, si
|
|
|
120
120
|
def run_piece(piece: str, k: int, weight: np.ndarray, alive: np.ndarray):
|
|
121
121
|
w = st.widths[piece]
|
|
122
122
|
eu, er = cost_eta[(piece, k)], rate_eta[(piece, k)]
|
|
123
|
+
sigma_u = sigma_usd[(piece, k)] if isinstance(sigma_usd, Mapping) else sigma_usd
|
|
124
|
+
half_u = .5 * sigma_u ** 2
|
|
123
125
|
f = float(floors.get(piece) or 0.0)
|
|
124
126
|
cu = w * np.exp(eu + half_u)
|
|
125
127
|
ct = cu * inv_rate_mean(er, var_r if rate_var is None else rate_var[(piece, k)], f)
|
|
@@ -129,7 +131,7 @@ def compose(st: Structure, cost_eta: dict, rate_eta: dict, gate_eta: dict, *, si
|
|
|
129
131
|
su = np.zeros(n)
|
|
130
132
|
stt = np.zeros(n)
|
|
131
133
|
for _ in range(w if rng is not None else 0):
|
|
132
|
-
u = np.exp(eu +
|
|
134
|
+
u = np.exp(eu + sigma_u * rng.standard_normal(n))
|
|
133
135
|
r = np.exp(er + sigma_rate * rng.standard_normal(n))
|
|
134
136
|
su += u
|
|
135
137
|
stt += u / (np.maximum(r, f) if f > 0 else r)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"""The frontier's source-only setting cost law, expressed as Gaussian row features.
|
|
2
|
+
|
|
3
|
+
FrontierCost owns the sufficient statistics, run-variance shrinkage and joint
|
|
4
|
+
width refit. The features below factor exactly its four covariance components,
|
|
5
|
+
so unseen settings, prediction and lookahead use the same conditional law.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import hashlib
|
|
11
|
+
import json
|
|
12
|
+
import math
|
|
13
|
+
import re
|
|
14
|
+
from functools import lru_cache
|
|
15
|
+
|
|
16
|
+
import numpy as np
|
|
17
|
+
from scipy import sparse
|
|
18
|
+
|
|
19
|
+
from ..frontier.cost import FrontierCost, anchors
|
|
20
|
+
from ..price import load_prices
|
|
21
|
+
from .cost_sources import TB_COSTS
|
|
22
|
+
from .forest import canonical_model_id
|
|
23
|
+
from .gaussian import HeadFit
|
|
24
|
+
|
|
25
|
+
METHOD = "frontier-setting-v1"
|
|
26
|
+
OPTION = "belief.cost_recipe"
|
|
27
|
+
CONSTANT = "fixed:cost_anchor"
|
|
28
|
+
PREFIXES = ("clevel:", "ctransfer:", "csetting:", "cstep:")
|
|
29
|
+
GROUPS = ("level", "transfer", "setting", "steps")
|
|
30
|
+
EFFORT = {"low": 0, "medium": 1, "high": 2, "xhigh": 3, "max": 4, "default": 2}
|
|
31
|
+
STRUCTURAL = {"model", "effort", "harness", "role", "step", "topology", "position", "round", "control", "hfactor"}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@lru_cache(maxsize=65536)
|
|
35
|
+
def _describe(terms: tuple) -> tuple[str, str, int] | None:
|
|
36
|
+
model = next((n.split(":", 1)[1] for n, _, v in terms if n.startswith("model:") and v), None)
|
|
37
|
+
if model is None:
|
|
38
|
+
return None # the task part contributes no setting-cost effect
|
|
39
|
+
effort = next((n.split(":", 1)[1] for n, _, _ in terms if n.startswith("effort:")), "default")
|
|
40
|
+
setting = sorted((n, float(v)) for n, _, v in terms if n.split(":", 1)[0] in STRUCTURAL)
|
|
41
|
+
key = hashlib.sha256(json.dumps(setting, separators=(",", ":")).encode()).hexdigest()
|
|
42
|
+
return key, canonical_model_id(model), EFFORT.get(effort, 4)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def describe(terms) -> tuple[str, str, int] | None:
|
|
46
|
+
return _describe(tuple(tuple(t) for t in terms))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def source_prior() -> dict:
|
|
50
|
+
"""Freeze source anchors and one shared price level, independent of query order.
|
|
51
|
+
|
|
52
|
+
Each source model contributes once to the shared level, at effort max.
|
|
53
|
+
This is the phase 1 anchor rule without weighting its level by whichever
|
|
54
|
+
candidate settings happen to be requested in a prediction batch.
|
|
55
|
+
"""
|
|
56
|
+
grouped = {}
|
|
57
|
+
for model, bench, effort, usd, _source in TB_COSTS:
|
|
58
|
+
# The source table writes numeric versions with hyphens. The belief
|
|
59
|
+
# and price table use dots outside Anthropic, just as the run reader.
|
|
60
|
+
if not model.startswith("claude-"):
|
|
61
|
+
model = re.sub(r"(\d)-(\d)", r"\1.\2", model)
|
|
62
|
+
model = canonical_model_id(model)
|
|
63
|
+
grouped.setdefault(model, []).append((bench, effort, usd))
|
|
64
|
+
tb = {}
|
|
65
|
+
for model, rows in grouped.items():
|
|
66
|
+
latest = max(r[0] for r in rows)
|
|
67
|
+
tb[model] = math.exp(float(np.mean([math.log(c) + .4 * (4 - e)
|
|
68
|
+
for b, e, c in rows if b == latest])))
|
|
69
|
+
table = load_prices()
|
|
70
|
+
prices = {}
|
|
71
|
+
for model in table.rates:
|
|
72
|
+
rate = table.rate(model)
|
|
73
|
+
if rate is not None:
|
|
74
|
+
prices[canonical_model_id(model)] = float(rate["input"] + rate["output"])
|
|
75
|
+
matched = sorted(set(tb) & set(prices))
|
|
76
|
+
level = (math.exp(float(np.mean([math.log(tb[m] / prices[m]) for m in matched]))) if matched else None)
|
|
77
|
+
return {"method": METHOD, "tb": tb, "prices": prices, "price_level": level,
|
|
78
|
+
"sigma0": .6, "nu0": 5., "widths": dict.fromkeys(GROUPS, 1.), "run_variance": {}}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def anchor(recipe: dict, model: str, effort: int) -> tuple[float, float]:
|
|
82
|
+
step = math.exp(.4 * (effort - 4))
|
|
83
|
+
tb = recipe["tb"].get(model)
|
|
84
|
+
price = recipe["prices"].get(model)
|
|
85
|
+
value = anchors(np.array([tb * step if tb is not None else np.nan]),
|
|
86
|
+
np.array([price * step if price is not None else np.nan]), level=recipe["price_level"])[0]
|
|
87
|
+
return float(value), .6 if tb is not None else 1.2
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def row_terms(recipe: dict, terms) -> list[tuple]:
|
|
91
|
+
"""Map a structural cost row to its fixed centre and four Gaussian kernels.
|
|
92
|
+
|
|
93
|
+
Already mapped composite observations are accepted unchanged. Raw composite
|
|
94
|
+
observations must be mapped piece by piece before averaging their terms.
|
|
95
|
+
"""
|
|
96
|
+
if any(n == CONSTANT or n.startswith(PREFIXES) for n, _, _ in terms):
|
|
97
|
+
return list(terms)
|
|
98
|
+
desc = describe(terms)
|
|
99
|
+
if desc is None:
|
|
100
|
+
return []
|
|
101
|
+
key, model, effort = desc
|
|
102
|
+
a, sd = anchor(recipe, model, effort)
|
|
103
|
+
w = recipe["widths"]
|
|
104
|
+
features = [("clevel:store", .5 * w["level"]),
|
|
105
|
+
(f"ctransfer:{model}", sd * w["transfer"]),
|
|
106
|
+
(f"csetting:{key}", math.sqrt(.09 * w["setting"] ** 2 + 1e-9))]
|
|
107
|
+
features += [(f"cstep:{j}", .2 * w["steps"]) for j in range(1, 5) if effort >= j]
|
|
108
|
+
variance = sum(v * v for _, v in features)
|
|
109
|
+
center = math.log(a) - (variance + recipe["sigma0"] ** 2) / 2
|
|
110
|
+
return [(CONSTANT, None, center)] + [(n, None, v) for n, v in features]
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def noise_variance(recipe: dict, terms) -> float:
|
|
114
|
+
desc = describe(terms)
|
|
115
|
+
key = desc[0] if desc is not None else next((n.split(":", 1)[1] for n, _, _ in terms
|
|
116
|
+
if n.startswith("csetting:")), None)
|
|
117
|
+
return float(recipe["run_variance"].get(key, recipe["sigma0"] ** 2))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def fit_recipe(hr, forest, *, eb: bool) -> dict:
|
|
121
|
+
recipe = source_prior()
|
|
122
|
+
cells = {}
|
|
123
|
+
for terms, y, weight, source in zip(hr.rows, hr.y, hr.w, hr.sources):
|
|
124
|
+
if source != "user":
|
|
125
|
+
continue
|
|
126
|
+
desc = describe(terms)
|
|
127
|
+
if desc is not None:
|
|
128
|
+
cells.setdefault(desc[0], [desc, terms, []])[2].append((float(y), float(weight)))
|
|
129
|
+
keys = sorted(cells)
|
|
130
|
+
summary = {"converged": True, "runs": 0, "widths": recipe["widths"]}
|
|
131
|
+
if keys:
|
|
132
|
+
descs = [cells[k][0] for k in keys]
|
|
133
|
+
model = np.array([d[1] for d in descs])
|
|
134
|
+
efforts = np.array([d[2] for d in descs])
|
|
135
|
+
values = [anchor(recipe, d[1], d[2]) for d in descs]
|
|
136
|
+
sd = np.array([v[1] for v in values])
|
|
137
|
+
E = (efforts[:, None] >= np.arange(1, 5)).astype(float)
|
|
138
|
+
components = {"level": np.full((len(keys), len(keys)), .25),
|
|
139
|
+
"transfer": (model[:, None] == model[None, :]) * np.outer(sd, sd),
|
|
140
|
+
"setting": np.eye(len(keys)) * .09, "steps": E @ E.T * .04}
|
|
141
|
+
cm = FrontierCost(np.array([v[0] for v in values]), components=components)
|
|
142
|
+
for i, key in enumerate(keys):
|
|
143
|
+
for y, weight in cells[key][2]:
|
|
144
|
+
cm.nc[i] += weight
|
|
145
|
+
cm.sx[i] += weight * y
|
|
146
|
+
cm.sxx[i] += weight * y * y
|
|
147
|
+
cm.csum[i] += weight * math.exp(y)
|
|
148
|
+
cm.fit()
|
|
149
|
+
if eb:
|
|
150
|
+
summary = cm.refit()
|
|
151
|
+
recipe["widths"] = dict(zip(GROUPS, cm.widths.tolist()))
|
|
152
|
+
recipe["run_variance"] = dict(zip(keys, cm.sig2.tolist()))
|
|
153
|
+
# Fit unit Gaussian coefficients after FrontierCost has fitted their widths.
|
|
154
|
+
# A deterministic centre is stored as coefficient 1 with negligible variance,
|
|
155
|
+
# so the existing sparse fit reader and its exact rank-one updates still apply.
|
|
156
|
+
mapped = [row_terms(recipe, cells[k][1]) for k in keys]
|
|
157
|
+
nodes = [CONSTANT] + sorted({n for row in mapped for n, _, _ in row if n != CONSTANT})
|
|
158
|
+
index = {n: i for i, n in enumerate(nodes)}
|
|
159
|
+
X = np.zeros((len(keys), len(nodes)))
|
|
160
|
+
for i, row in enumerate(mapped):
|
|
161
|
+
for n, _, value in row:
|
|
162
|
+
X[i, index[n]] += value
|
|
163
|
+
Z = X[:, 1:]
|
|
164
|
+
precision = np.eye(len(nodes))
|
|
165
|
+
precision[0, 0] = 1e18
|
|
166
|
+
mean = np.zeros(len(nodes))
|
|
167
|
+
mean[0] = 1.
|
|
168
|
+
if keys:
|
|
169
|
+
xbar, _ = cm._statistics()
|
|
170
|
+
weights = cm.nc / cm.sig2
|
|
171
|
+
precision[1:, 1:] += Z.T @ (weights[:, None] * Z)
|
|
172
|
+
mean[1:] = np.linalg.solve(precision[1:, 1:], Z.T @ (weights * (xbar - X[:, 0])))
|
|
173
|
+
for node in nodes:
|
|
174
|
+
forest.add(node, None)
|
|
175
|
+
support = {n: [len({run for row, run, source in zip(hr.rows, hr.runs, hr.sources)
|
|
176
|
+
if source == "user" and any(t[0] == n for t in row_terms(recipe, row))}), 0]
|
|
177
|
+
for n in nodes}
|
|
178
|
+
res = HeadFit("gaussian", mean, np.array(list(recipe["widths"].values())), sigma=recipe["sigma0"],
|
|
179
|
+
log_evidence=summary.get("log_evidence", 0.), precision=sparse.csr_matrix(precision), info=summary)
|
|
180
|
+
return {"name": "cost", "engine": "gaussian", "kind": "cost", "node_ids": nodes, "fit": res,
|
|
181
|
+
"phi": recipe["widths"], "center": 0., "scale": 1., "baseline": 0., "support": support,
|
|
182
|
+
"n_rows": sum(len(cells[k][2]) for k in keys), "n_runs": len(set(r for r, s in zip(hr.runs, hr.sources)
|
|
183
|
+
if s == "user")),
|
|
184
|
+
"factors": ["fixed source-only TB/price anchors; FrontierCost covariance and observed setting means"],
|
|
185
|
+
"recipe": recipe}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""Frozen TB dollar summaries for the source-only setting cost law.
|
|
2
|
+
|
|
3
|
+
framework.data.load_tb(auto, False, site), TB only; no DeepSWE reads.
|
|
4
|
+
The snapshot retains benchmark, effort and provenance. No outcomes are stored.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
TB_COSTS = (
|
|
8
|
+
('claude-fable-5', '2.1', 2, 0.9857078651685393, 'w293 tb21 leaderboard means'),
|
|
9
|
+
('claude-fable-5', '2.1', 3, 1.2419550561797752, 'w293 tb21 leaderboard means'),
|
|
10
|
+
('claude-fable-5', '4.0', 4, 25.838643880303028, 'tb-data maintainer'),
|
|
11
|
+
('claude-fable-5-1', '4.0', 4, 18.91970523409091, 'tb-data maintainer'),
|
|
12
|
+
('claude-opus-4-7', '2.1', 4, 1.3084494382022471, 'w293 tb21 leaderboard means'),
|
|
13
|
+
('claude-opus-4-7', '2.1', 4, 1.3412080536912752, 'w293 tb21 leaderboard means'),
|
|
14
|
+
('claude-opus-4-8', '2.1', 2, 0.6448089887640449, 'w293 tb21 leaderboard means'),
|
|
15
|
+
('claude-opus-4-8', '4.0', 4, 19.63806658939394, 'tb-data maintainer'),
|
|
16
|
+
('claude-opus-5', '4.0', 4, 18.34191547568389, 'tb-data maintainer'),
|
|
17
|
+
('claude-opus-5-5', '4.0', 4, 14.255380195136778, 'tb-data maintainer'),
|
|
18
|
+
('claude-sonnet-5', '2.1', 2, 0.6475955056179775, 'w293 tb21 leaderboard means'),
|
|
19
|
+
('claude-sonnet-5', '4.0', 4, 29.258980316717327, 'tb-data maintainer'),
|
|
20
|
+
('claude-sonnet-5-5', '4.0', 4, 22.223164032575756, 'tb-data maintainer'),
|
|
21
|
+
('gemini-3-1-pro-preview', '2.1', 2, 0.5168314606741573, 'w293 tb21 leaderboard means'),
|
|
22
|
+
('gemini-3-1-pro-preview', '2.1', 2, 0.5314382022471911, 'w293 tb21 leaderboard means'),
|
|
23
|
+
('gemini-3-7-flash', '4.0', 2, 3.823847704772727, 'tb-data maintainer'),
|
|
24
|
+
('gemini-3-8-flash', '4.0', 2, 5.5417199177272725, 'tb-data maintainer'),
|
|
25
|
+
('gemini-3-pro-preview', '2.1', 2, 0.5043595505617977, 'w293 tb21 leaderboard means'),
|
|
26
|
+
('gemini-3-pro-preview', '2.1', 2, 0.5567640449438203, 'w293 tb21 leaderboard means'),
|
|
27
|
+
('glm-5-1', '2.1', 4, 0.6227865168539326, 'w293 tb21 leaderboard means'),
|
|
28
|
+
('glm-5-3', '4.0', 4, 8.315938534146342, 'tb-data maintainer'),
|
|
29
|
+
('glm-5-3-flash', '4.0', 4, 0.18211276760736195, 'tb-data maintainer'),
|
|
30
|
+
('gpt-5-5', '2.1', 3, 1.1097752808988766, 'w293 tb21 leaderboard means'),
|
|
31
|
+
('gpt-5-5', '2.1', 3, 4.627393258426967, 'w293 tb21 leaderboard means'),
|
|
32
|
+
('gpt-5-6-luna', '2.1', 4, 0.4905168539325842, 'w293 tb21 leaderboard means'),
|
|
33
|
+
('gpt-5-6-luna', '2.1', 4, 0.5425842696629213, 'w293 tb21 leaderboard means'),
|
|
34
|
+
('gpt-5-6-luna', '4.0', 4, 1.029309718902439, 'tb-data maintainer'),
|
|
35
|
+
('gpt-5-6-sol', '2.1', 4, 1.2914157303370786, 'w293 tb21 leaderboard means'),
|
|
36
|
+
('gpt-5-6-sol', '4.0', 4, 7.670741187878788, 'tb-data maintainer'),
|
|
37
|
+
('gpt-5-6-terra', '2.1', 4, 0.901191011235955, 'w293 tb21 leaderboard means'),
|
|
38
|
+
('gpt-5-6-terra', '2.1', 4, 0.9464044943820225, 'w293 tb21 leaderboard means'),
|
|
39
|
+
('gpt-5-6-terra', '4.0', 4, 5.141570762804879, 'tb-data maintainer'),
|
|
40
|
+
('gpt-6-1-sol', '4.0', 4, 1.9199409225609758, 'tb-data maintainer'),
|
|
41
|
+
('gpt-6-luna', '4.0', 4, 0.21916352250759874, 'tb-data maintainer'),
|
|
42
|
+
('gpt-6-sol', '4.0', 4, 4.411293506990881, 'tb-data maintainer'),
|
|
43
|
+
('grok-4-5', '2.1', 4, 0.3013258426966292, 'w293 tb21 leaderboard means'),
|
|
44
|
+
('grok-4-5', '4.0', 4, 6.313196300613497, 'tb-data maintainer'),
|
|
45
|
+
('grok-4-6', '4.0', 4, 7.033945136778115, 'tb-data maintainer'),
|
|
46
|
+
('muse-spark-1-1', '2.1', 3, 0.4450561797752809, 'w293 tb21 leaderboard means'),
|
|
47
|
+
('muse-spark-1-3', '4.0', 3, 6.291954541324921, 'tb-data maintainer'),
|
|
48
|
+
('qwen3-8-max', '4.0', 4, 4.071706390126183, 'tb-data maintainer'),
|
|
49
|
+
)
|
|
@@ -41,6 +41,7 @@ OPT_IN_DESIGN_VERSION = 5
|
|
|
41
41
|
# version 4, with no options). A version 5 fit with any other key or value was made by a loopmath with an option
|
|
42
42
|
# this one has no nodes for: it is refused, as 0.3.1 refuses version 5, rather than read without them.
|
|
43
43
|
MODEL_OPTIONS: dict[str, tuple[Any, ...]] = {"belief.success_head": ("sampled",),
|
|
44
|
+
"belief.cost_recipe": ("frontier-setting-v1",),
|
|
44
45
|
# the store level and benchmark transfer (level.py)
|
|
45
46
|
"belief.level": ("shared", "store"),
|
|
46
47
|
"belief.shipped_success": ("keep", "drop"),
|
|
@@ -755,6 +755,13 @@ def fit(home: Path, *, no_prior: bool = False, without: tuple[str, ...] = (), fu
|
|
|
755
755
|
seed_key = input_key(heads_rows, specs, key_settings)
|
|
756
756
|
forest = Forest()
|
|
757
757
|
fitted = {}
|
|
758
|
+
from .cost_recipe import fit_recipe
|
|
759
|
+
|
|
760
|
+
# Explicit legacy/shared, custom-factor and no-prior fits retain their
|
|
761
|
+
# original cost law. The default source-backed store uses FrontierCost.
|
|
762
|
+
setting_cost = (not no_prior and "benchmark" not in without and benchmarks is None
|
|
763
|
+
and level.store and level.cost_level == "store" and level.cost_level_sd == .5
|
|
764
|
+
and not any(s.head == "cost" for s in specs))
|
|
758
765
|
for name, hr in heads_rows.items():
|
|
759
766
|
head_specs = [s for s in specs if s.head == name]
|
|
760
767
|
if not hr.rows and not (level.store and name == "success"): # a store level fits success unseen
|
|
@@ -767,9 +774,17 @@ def fit(home: Path, *, no_prior: bool = False, without: tuple[str, ...] = (), fu
|
|
|
767
774
|
if name in KEY_ONLY: # 0.2.7's tokens head: its nodes enter the index where they did, unfitted
|
|
768
775
|
build_matrix(hr.rows, forest, [(n, p) for spec in head_specs for n, p, _ in spec.terms])
|
|
769
776
|
continue
|
|
777
|
+
if name == "cost" and setting_cost:
|
|
778
|
+
# Register the original nodes in their original order before the
|
|
779
|
+
# other heads: their arrays and random streams stay identical.
|
|
780
|
+
build_matrix(hr.rows, forest, [(n, p) for spec in head_specs for n, p, _ in spec.terms]
|
|
781
|
+
+ [(USER_LEVEL, None)])
|
|
782
|
+
continue
|
|
770
783
|
# 0.3.5's call when no level key is set
|
|
771
784
|
fitted[name] = (fit_head(hr, forest, head_specs, eb=eb, level=level.for_head(name)) if level.key()
|
|
772
785
|
else fit_head(hr, forest, head_specs, eb=eb))
|
|
786
|
+
if setting_cost and heads_rows["cost"].rows:
|
|
787
|
+
fitted["cost"] = fit_recipe(heads_rows["cost"], forest, eb=eb)
|
|
773
788
|
fit_id = new_fit_id(fits, now)
|
|
774
789
|
partial = fits / f"{fit_id}.partial"
|
|
775
790
|
partial.mkdir(parents=True)
|
|
@@ -831,6 +846,7 @@ def fit(home: Path, *, no_prior: bool = False, without: tuple[str, ...] = (), fu
|
|
|
831
846
|
"center": h["center"], "scale": h["scale"], "baseline": h["baseline"],
|
|
832
847
|
"iterations": h["fit"].iterations, "optimizer": h["fit"].info,
|
|
833
848
|
"log_evidence": _finite(h["fit"].log_evidence), "factors": h["factors"],
|
|
849
|
+
**({"recipe": h["recipe"]} if "recipe" in h else {}),
|
|
834
850
|
"seed": seed_for(seed_key, name)}
|
|
835
851
|
for name, h in fitted.items()},
|
|
836
852
|
"scores": score_info,
|
|
@@ -843,7 +859,9 @@ def fit(home: Path, *, no_prior: bool = False, without: tuple[str, ...] = (), fu
|
|
|
843
859
|
"rate_floors": rate_floors(design_rows._price_table()),
|
|
844
860
|
}
|
|
845
861
|
if full:
|
|
846
|
-
meta["full"] = _full_check(fitted)
|
|
862
|
+
meta["full"] = _full_check({n: h for n, h in fitted.items() if "recipe" not in h})
|
|
863
|
+
if setting_cost:
|
|
864
|
+
meta["full"]["cost_note"] = "FrontierCost setting-mean Gaussian law; hierarchical PyMC check not applicable"
|
|
847
865
|
table = meta["full"].pop("table", None)
|
|
848
866
|
if table is not None:
|
|
849
867
|
_atomic_json(partial / "pymc_check.json", table)
|
|
@@ -858,6 +876,11 @@ def fit(home: Path, *, no_prior: bool = False, without: tuple[str, ...] = (), fu
|
|
|
858
876
|
"belief.shipped_success": level.shipped_success,
|
|
859
877
|
"belief.benchmark_factors": level.benchmarks})
|
|
860
878
|
meta["options"]["level"] = level.key()
|
|
879
|
+
if "recipe" in fitted.get("cost", {}):
|
|
880
|
+
from .cost_recipe import METHOD, OPTION
|
|
881
|
+
|
|
882
|
+
meta["design_version"] = design_rows.OPT_IN_DESIGN_VERSION
|
|
883
|
+
meta.setdefault("model_options", {})[OPTION] = METHOD
|
|
861
884
|
meta["seconds"] = round(time.monotonic() - started, 3)
|
|
862
885
|
_atomic_json(partial / "meta.json", meta)
|
|
863
886
|
final = fits / fit_id
|
|
@@ -79,6 +79,7 @@ class _Rows:
|
|
|
79
79
|
vcol: dict[str, int]
|
|
80
80
|
vphi2: np.ndarray # (q,)
|
|
81
81
|
var: np.ndarray # (n,)
|
|
82
|
+
noise: np.ndarray | None = None # per-row physical run variance (setting cost law)
|
|
82
83
|
|
|
83
84
|
@classmethod
|
|
84
85
|
def build(cls, head: HeadState, rows: Sequence[Sequence[tuple]]) -> "_Rows":
|
|
@@ -87,11 +88,13 @@ class _Rows:
|
|
|
87
88
|
B = np.asarray(Xk @ head.U) if head.nodes else np.zeros((len(rows), 0))
|
|
88
89
|
vphi2 = vphi ** 2
|
|
89
90
|
var = np.sum(B * B, axis=1) + np.asarray(Xv.multiply(Xv) @ vphi2).ravel()
|
|
90
|
-
return cls(head, mu, B, Xv.tocsc(), {v: i for i, v in enumerate(vnodes)}, vphi2, var
|
|
91
|
+
return cls(head, mu, B, Xv.tocsc(), {v: i for i, v in enumerate(vnodes)}, vphi2, var,
|
|
92
|
+
np.array([head.noise_variance(row) for row in rows]))
|
|
91
93
|
|
|
92
94
|
def observation(self, terms: Sequence[tuple]) -> tuple[float, float, np.ndarray]:
|
|
93
95
|
"""Mean, variance, and covariance with every row, of one observation row `x'b`."""
|
|
94
96
|
head = self.head
|
|
97
|
+
terms = head.row_terms(terms)
|
|
95
98
|
kx = np.zeros(len(head.nodes))
|
|
96
99
|
vpart: dict[str, float] = {}
|
|
97
100
|
for node, _parent, value in terms:
|
|
@@ -195,7 +198,8 @@ def _prepare(state: FitState, task: Task, configs: list[Configuration], rule: Ac
|
|
|
195
198
|
return prep
|
|
196
199
|
|
|
197
200
|
|
|
198
|
-
def _explore_cost_obs(state: FitState, task: Task, config: Configuration
|
|
201
|
+
def _explore_cost_obs(state: FitState, task: Task, config: Configuration, *, head: HeadState | None = None
|
|
202
|
+
) -> tuple[list[tuple], int]:
|
|
199
203
|
"""Composite observation: the mean of the round-1 cost rows of the configuration's pieces,
|
|
200
204
|
and the number of pieces (the observation's noise variance is sigma^2 / n)."""
|
|
201
205
|
plan = state._plan(config, state.effort_for(task))
|
|
@@ -203,8 +207,11 @@ def _explore_cost_obs(state: FitState, task: Task, config: Configuration) -> tup
|
|
|
203
207
|
tt = state.task_terms(task)
|
|
204
208
|
acc: dict[str, list] = {}
|
|
205
209
|
n = len(st.pieces)
|
|
210
|
+
head = head or state.heads["cost"]
|
|
206
211
|
for piece in st.pieces:
|
|
207
|
-
|
|
212
|
+
raw = tt + list(plan["cost"][(piece, 1)]) if head.recipe is not None else (
|
|
213
|
+
tt + list(cost_rest(st, piece, 1, source=PREDICT_SOURCE)))
|
|
214
|
+
for node, parent, value in head.row_terms(raw):
|
|
208
215
|
if node in acc:
|
|
209
216
|
acc[node][1] += value / n
|
|
210
217
|
else:
|
|
@@ -213,6 +220,14 @@ def _explore_cost_obs(state: FitState, task: Task, config: Configuration) -> tup
|
|
|
213
220
|
return terms, n
|
|
214
221
|
|
|
215
222
|
|
|
223
|
+
def _cost_observation_noise(state: FitState, task: Task, config: Configuration, n: int) -> float:
|
|
224
|
+
head = state.heads["cost"]
|
|
225
|
+
if head.recipe is None:
|
|
226
|
+
return head.sigma ** 2 / n
|
|
227
|
+
plan = state._plan(config, state.effort_for(task))
|
|
228
|
+
return sum(head.noise_variance(plan["cost"][(p, 1)]) for p in plan["st"].pieces) / n ** 2
|
|
229
|
+
|
|
230
|
+
|
|
216
231
|
def _score_g(state: FitState, rows: _Rows, name: str, rule: AcceptanceRule, mu, var) -> np.ndarray:
|
|
217
232
|
head = rows.head
|
|
218
233
|
info = state.score_info(name)
|
|
@@ -258,7 +273,7 @@ def _outcomes(state: FitState, task: Task, explore: Configuration, goal: Configu
|
|
|
258
273
|
prep = _prepare(state, task, configs, rule)
|
|
259
274
|
R = float(rescue_usd or 0.0)
|
|
260
275
|
cost = prep.cost
|
|
261
|
-
sig2 = cost.head.sigma ** 2
|
|
276
|
+
sig2 = cost.noise if cost.head.recipe is not None else cost.head.sigma ** 2
|
|
262
277
|
|
|
263
278
|
def expected_cost(mu, var):
|
|
264
279
|
"""Expected cost per candidate; a 2-D `mu` (rows, k), one column per outcome, gives (k, candidates)."""
|
|
@@ -269,7 +284,7 @@ def _outcomes(state: FitState, task: Task, explore: Configuration, goal: Configu
|
|
|
269
284
|
# the observation of explore's cost
|
|
270
285
|
obs_terms, n_obs = _explore_cost_obs(state, task, explore)
|
|
271
286
|
_, o_var, kappa = cost.observation(obs_terms)
|
|
272
|
-
s_c = o_var +
|
|
287
|
+
s_c = o_var + _cost_observation_noise(state, task, explore, n_obs)
|
|
273
288
|
var_after_c = cost.var - kappa * kappa / s_c
|
|
274
289
|
cost_now = expected_cost(cost.mu, cost.var)
|
|
275
290
|
cost_after = expected_cost(cost.mu[:, None] + np.outer(kappa, _QX) / math.sqrt(s_c), var_after_c) # (x, c)
|
|
@@ -358,6 +373,7 @@ def _condition_head(head: HeadState, terms: Sequence[tuple], tau2: float) -> Hea
|
|
|
358
373
|
each new node drawn at its draw's own scales as a prediction draws it, with the draws' covariance in U's place:
|
|
359
374
|
the draws keep their means, their scales and their joint shape, and nodes still unseen keep a scale per draw.
|
|
360
375
|
U is updated as for any head (only `_Rows`, whose success rows give `conditioned` its mean, reads it)."""
|
|
376
|
+
terms = head.row_terms(terms)
|
|
361
377
|
kx: dict[int, float] = {}
|
|
362
378
|
new_nodes: list[str] = []
|
|
363
379
|
new_vals: list[float] = []
|
|
@@ -414,9 +430,11 @@ def _condition_head(head: HeadState, terms: Sequence[tuple], tau2: float) -> Hea
|
|
|
414
430
|
|
|
415
431
|
def conditioned(state: FitState, task: Task, config: Configuration, rule: AcceptanceRule | None = None) -> FitState:
|
|
416
432
|
heads = dict(state.heads)
|
|
417
|
-
terms, n_obs = _explore_cost_obs(state, task, config)
|
|
418
433
|
for name in ("cost", "rate"):
|
|
419
|
-
|
|
434
|
+
terms, n_obs = _explore_cost_obs(state, task, config, head=state.heads[name])
|
|
435
|
+
tau2 = (_cost_observation_noise(state, task, config, n_obs) if name == "cost"
|
|
436
|
+
else state.heads[name].sigma ** 2 / n_obs)
|
|
437
|
+
heads[name] = _condition_head(state.heads[name], terms, tau2)
|
|
420
438
|
run_terms = state.task_terms(task) + list(state._plan(config)["run"])
|
|
421
439
|
succ = state.heads["success"]
|
|
422
440
|
heads["success"] = _condition_head(succ, run_terms, 1.0 / _info(float(_Rows.build(succ, [run_terms]).mu[0])))
|
|
@@ -200,6 +200,7 @@ class HeadState:
|
|
|
200
200
|
self.phi: dict[str, float] = dict(meta.get("phi") or {})
|
|
201
201
|
self.seed = int(meta.get("seed", 0))
|
|
202
202
|
self.meta = meta
|
|
203
|
+
self.recipe = meta.get("recipe") if name == "cost" else None
|
|
203
204
|
self.fit_id = fit_id
|
|
204
205
|
self.seed_key = seed_key or fit_id # spec 04 section 3: the fit's input hash; the fit id before 0.2.1
|
|
205
206
|
self.nodes = list(nodes)
|
|
@@ -281,11 +282,29 @@ class HeadState:
|
|
|
281
282
|
return self._unit
|
|
282
283
|
|
|
283
284
|
def node_scale(self, node: str) -> float:
|
|
285
|
+
if self.recipe is not None:
|
|
286
|
+
from .cost_recipe import PREFIXES
|
|
287
|
+
|
|
288
|
+
return 1.0 if node.startswith(PREFIXES) else 0.0
|
|
284
289
|
group = scale_group(node)
|
|
285
290
|
if group is None:
|
|
286
291
|
return 0.0
|
|
287
292
|
return float(self.phi.get(group, default_scale(group, self.kind)))
|
|
288
293
|
|
|
294
|
+
def row_terms(self, terms):
|
|
295
|
+
if self.recipe is None:
|
|
296
|
+
return terms
|
|
297
|
+
from .cost_recipe import row_terms
|
|
298
|
+
|
|
299
|
+
return row_terms(self.recipe, terms)
|
|
300
|
+
|
|
301
|
+
def noise_variance(self, terms) -> float:
|
|
302
|
+
if self.recipe is None:
|
|
303
|
+
return self.sigma ** 2
|
|
304
|
+
from .cost_recipe import noise_variance
|
|
305
|
+
|
|
306
|
+
return noise_variance(self.recipe, terms)
|
|
307
|
+
|
|
289
308
|
# the opt-in success head (`belief.success_head`, integrated.py): each draw's scales and the display arrays;
|
|
290
309
|
# a fit without them reads as 0.3.1's
|
|
291
310
|
|
|
@@ -336,6 +355,8 @@ class HeadState:
|
|
|
336
355
|
|
|
337
356
|
A row of a task the head has fitted gets no virtual feature node: its task node already
|
|
338
357
|
holds what the task is (spec 04 section 1, rule M4 item 4)."""
|
|
358
|
+
if self.recipe is not None:
|
|
359
|
+
rows = [self.row_terms(row) for row in rows]
|
|
339
360
|
n = len(rows)
|
|
340
361
|
ri, ci, vals, vr, vc, vv = [], [], [], [], [], []
|
|
341
362
|
vindex: dict[str, int] = {}
|
|
@@ -663,7 +684,7 @@ class FitState:
|
|
|
663
684
|
hit = self._cache.get(key)
|
|
664
685
|
if hit is None:
|
|
665
686
|
load: dict[str, float] = {}
|
|
666
|
-
for node, _parent, value in rest:
|
|
687
|
+
for node, _parent, value in head.row_terms(rest):
|
|
667
688
|
if node not in head.index and scale_group(node) is not None:
|
|
668
689
|
load[node] = load.get(node, 0.0) + value * head.node_scale(node)
|
|
669
690
|
hit = self._cache[key] = tuple(sorted((n, b) for n, b in load.items() if b != 0.0))
|
|
@@ -764,12 +785,17 @@ class FitState:
|
|
|
764
785
|
gate = {k: (v[None, :] + shift).ravel() for k, v in gate.items()}
|
|
765
786
|
cost = {k: np.tile(v, nodes) for k, v in cost.items()}
|
|
766
787
|
rate = {k: np.tile(v, nodes) for k, v in rate.items()}
|
|
767
|
-
run = compose(st, cost, rate, gate, sigma_usd=
|
|
788
|
+
run = compose(st, cost, rate, gate, sigma_usd=self._cost_sigma(plan), sigma_rate=heads["rate"].sigma,
|
|
768
789
|
floors=plan["floors"], rate_var=rate_var, rng=None)
|
|
769
790
|
if nodes == 1:
|
|
770
791
|
return run, lambda a: a
|
|
771
792
|
return run, lambda a: _GW @ np.reshape(a, (nodes, -1))
|
|
772
793
|
|
|
794
|
+
def _cost_sigma(self, plan: dict):
|
|
795
|
+
head = self.heads["cost"]
|
|
796
|
+
return ({k: math.sqrt(head.noise_variance(row)) for k, row in plan["cost"].items()}
|
|
797
|
+
if head.recipe is not None else head.sigma)
|
|
798
|
+
|
|
773
799
|
def _tokens_per_usd(self, plan: dict, tparts: dict, mr: RunDraws) -> np.ndarray:
|
|
774
800
|
"""`E[T_run / C_run]` per entry of the mean composition `mr`, every unseen cost and rate effect
|
|
775
801
|
integrated out (the task's, and a new model's, role's or position's).
|
|
@@ -812,7 +838,7 @@ class FitState:
|
|
|
812
838
|
rate_eta = {k: self._eta(heads["rate"], tparts["rate"], r)[1] for k, r in plan["cost"].items()}
|
|
813
839
|
gate_eta = {k: self._eta(heads["gate"], tparts["gate"], r)[1] for k, r in plan["gate"].items()}
|
|
814
840
|
rng = np.random.default_rng(self.sim_seed)
|
|
815
|
-
rd: RunDraws = compose(st, cost_eta, rate_eta, gate_eta, sigma_usd=
|
|
841
|
+
rd: RunDraws = compose(st, cost_eta, rate_eta, gate_eta, sigma_usd=self._cost_sigma(plan),
|
|
816
842
|
sigma_rate=heads["rate"].sigma, floors=plan["floors"], rng=rng)
|
|
817
843
|
_, s_eta = self._eta(heads["success"], tparts["success"], plan["run"])
|
|
818
844
|
g = expit(s_eta)
|