cmpnd 0.90.0__tar.gz → 0.91.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. {cmpnd-0.90.0 → cmpnd-0.91.1}/PKG-INFO +3 -2
  2. {cmpnd-0.90.0 → cmpnd-0.91.1}/README.md +2 -1
  3. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/deployments.py +8 -3
  4. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/optimizations.py +18 -1
  5. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/top.py +22 -3
  6. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/context.py +24 -2
  7. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/deployment_runs.py +43 -5
  8. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/eval_handler.py +121 -5
  9. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/helpers.py +11 -2
  10. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/models.py +7 -1
  11. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/cli.md +38 -14
  12. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/sdk-instrumentation.md +33 -3
  13. {cmpnd-0.90.0 → cmpnd-0.91.1}/pyproject.toml +1 -1
  14. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_deployment_runs.py +68 -0
  15. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_optimizations.py +23 -1
  16. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_context.py +27 -0
  17. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deployment_runs.py +25 -0
  18. cmpnd-0.91.1/tests/test_eval_example_failures.py +170 -0
  19. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_eval_trace_grouping.py +3 -3
  20. cmpnd-0.91.1/tests/test_forward_access_warning.py +109 -0
  21. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_ingest_conformance.py +3 -0
  22. {cmpnd-0.90.0 → cmpnd-0.91.1}/uv.lock +1 -1
  23. {cmpnd-0.90.0 → cmpnd-0.91.1}/.gitignore +0 -0
  24. {cmpnd-0.90.0 → cmpnd-0.91.1}/AGENTS.md +0 -0
  25. {cmpnd-0.90.0 → cmpnd-0.91.1}/CLAUDE.md +0 -0
  26. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/__init__.py +0 -0
  27. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_assessments.py +0 -0
  28. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_authored_import.py +0 -0
  29. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_deployments.py +0 -0
  30. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_exporter_pool.py +0 -0
  31. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_gepa_patch.py +0 -0
  32. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_guides.py +0 -0
  33. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_http.py +0 -0
  34. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_program_patch.py +0 -0
  35. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_rlm_patch.py +0 -0
  36. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_runtime_tools.py +0 -0
  37. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_timespec.py +0 -0
  38. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_traces.py +0 -0
  39. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/_valsets.py +0 -0
  40. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/authored.py +0 -0
  41. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/callback.py +0 -0
  42. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/__init__.py +0 -0
  43. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/api_client.py +0 -0
  44. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/__init__.py +0 -0
  45. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/admin.py +0 -0
  46. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/assessments.py +0 -0
  47. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/auth.py +0 -0
  48. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/datasets.py +0 -0
  49. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/evals.py +0 -0
  50. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/login.py +0 -0
  51. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/org.py +0 -0
  52. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/programs.py +0 -0
  53. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/provider_credentials.py +0 -0
  54. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/tool_servers.py +0 -0
  55. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/traces.py +0 -0
  56. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/commands/valsets.py +0 -0
  57. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/credentials.py +0 -0
  58. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/deprecation.py +0 -0
  59. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/pagination.py +0 -0
  60. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/shell.py +0 -0
  61. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/trace_render.py +0 -0
  62. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/tree_help.py +0 -0
  63. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/verbs.py +0 -0
  64. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/cli/views.py +0 -0
  65. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/client.py +0 -0
  66. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/configuration.py +0 -0
  67. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/credentials.py +0 -0
  68. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/dataset_sync.py +0 -0
  69. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/datasets.py +0 -0
  70. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/decorators.py +0 -0
  71. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/deployment.py +0 -0
  72. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/deployment_metadata.py +0 -0
  73. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/execution.py +0 -0
  74. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/exporter.py +0 -0
  75. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/exporter_http.py +0 -0
  76. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/identity.py +0 -0
  77. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/imaging.py +0 -0
  78. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/__init__.py +0 -0
  79. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/decode.py +0 -0
  80. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/encode.py +0 -0
  81. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/hash.py +0 -0
  82. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/program.py +0 -0
  83. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/reflection.py +0 -0
  84. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/types.py +0 -0
  85. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/ir/xxh64.py +0 -0
  86. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/lm_configuration.py +0 -0
  87. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/mcp_servers.py +0 -0
  88. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/named_programs.py +0 -0
  89. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimization.py +0 -0
  90. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimizers/__init__.py +0 -0
  91. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimizers/gepa.py +0 -0
  92. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimizers/gepa_callback.py +0 -0
  93. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimizers/resume.py +0 -0
  94. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/optimizers/tracker.py +0 -0
  95. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/packaging.py +0 -0
  96. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/program_naming.py +0 -0
  97. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/programs.py +0 -0
  98. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/references.py +0 -0
  99. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/retry.py +0 -0
  100. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/traces.py +0 -0
  101. {cmpnd-0.90.0 → cmpnd-0.91.1}/cmpnd/versions.py +0 -0
  102. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/2026-04-02-code-review.md +0 -0
  103. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/client.md +0 -0
  104. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/custom-proposer.md +0 -0
  105. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
  106. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
  107. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/reading-traces.md +0 -0
  108. {cmpnd-0.90.0 → cmpnd-0.91.1}/docs/versions.md +0 -0
  109. {cmpnd-0.90.0 → cmpnd-0.91.1}/examples/generalizing_proposer.py +0 -0
  110. {cmpnd-0.90.0 → cmpnd-0.91.1}/examples/local_ollama.py +0 -0
  111. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/LINEAGE.md +0 -0
  112. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/README.md +0 -0
  113. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/__init__.py +0 -0
  114. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/bodies.py +0 -0
  115. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/client_floor.py +0 -0
  116. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/exporter_http.py +0 -0
  117. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/program_names.py +0 -0
  118. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/protocols.py +0 -0
  119. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/py.typed +0 -0
  120. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/request_log.py +0 -0
  121. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/retry.py +0 -0
  122. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/span_context.py +0 -0
  123. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/trace_facts.py +0 -0
  124. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/cmpnd_ingest/user_agent.py +0 -0
  125. {cmpnd-0.90.0 → cmpnd-0.91.1}/ingest/pyproject.toml +0 -0
  126. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/audit-sdist.sh +0 -0
  127. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/capture_review_run.py +0 -0
  128. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/check-pip-install.sh +0 -0
  129. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/check_release_artifacts.py +0 -0
  130. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/fixtures/review_run.json.gz +0 -0
  131. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/gepa_resume_bug.py +0 -0
  132. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/install-test-env.sh +0 -0
  133. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/release-gate.sh +0 -0
  134. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/release-real-models.sh +0 -0
  135. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/require_version_bump.py +0 -0
  136. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/seed_review_run.py +0 -0
  137. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/selfhost_compat.py +0 -0
  138. {cmpnd-0.90.0 → cmpnd-0.91.1}/scripts/test-in-linux.sh +0 -0
  139. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/__init__.pyi +0 -0
  140. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/primitives/__init__.pyi +0 -0
  141. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/primitives/prediction.pyi +0 -0
  142. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/utils/__init__.pyi +0 -0
  143. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/utils/callback.pyi +0 -0
  144. {cmpnd-0.90.0 → cmpnd-0.91.1}/stubs/dspy/utils/dummies.pyi +0 -0
  145. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/__init__.py +0 -0
  146. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_credential_route.py +0 -0
  147. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_deployment_signature_helpers.py +0 -0
  148. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_exporter_helpers.py +0 -0
  149. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_fake_clock.py +0 -0
  150. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_identity_helpers.py +0 -0
  151. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_resolve_refs.py +0 -0
  152. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/_traced_run.py +0 -0
  153. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/conftest.py +0 -0
  154. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/__init__.py +0 -0
  155. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/committee_task.py +0 -0
  156. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/conftest.py +0 -0
  157. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/continuation_task.py +0 -0
  158. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/data/committee_train.ndjson.gz +0 -0
  159. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/data/committee_val.ndjson.gz +0 -0
  160. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/fake_lm.py +0 -0
  161. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/helpers.py +0 -0
  162. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/target_capabilities.py +0 -0
  163. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_assessments_cli.py +0 -0
  164. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_capture_prompts.py +0 -0
  165. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_composite_module.py +0 -0
  166. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_dataset_auto_creation.py +0 -0
  167. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_deploy_execute.py +0 -0
  168. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_deploy_pandas.py +0 -0
  169. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_deploy_programs.py +0 -0
  170. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_edge_cases.py +0 -0
  171. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_example_hash.py +0 -0
  172. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_gepa_optimization.py +0 -0
  173. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_interpreter_spans.py +0 -0
  174. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_lm_accuracy.py +0 -0
  175. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_module_tracing.py +0 -0
  176. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimization_lineage.py +0 -0
  177. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimization_metric_identity.py +0 -0
  178. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_authored_metric.py +0 -0
  179. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_continuation.py +0 -0
  180. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_custom_proposer.py +0 -0
  181. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_failures.py +0 -0
  182. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_loop.py +0 -0
  183. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_review_committee.py +0 -0
  184. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
  185. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_parallel_export.py +0 -0
  186. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_program_versions.py +0 -0
  187. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_project_attribution.py +0 -0
  188. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_react_tool_spans.py +0 -0
  189. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_save_load.py +0 -0
  190. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_trace_structure.py +0 -0
  191. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_traces_read.py +0 -0
  192. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_user_attribution.py +0 -0
  193. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/e2e/test_valsets_cli.py +0 -0
  194. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/01_predict_qa.json +0 -0
  195. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
  196. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
  197. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/04_predict_richer_types.json +0 -0
  198. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
  199. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/06_multichaincomparison.json +0 -0
  200. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/07_program_of_thought.json +0 -0
  201. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/08_opaque_module.json +0 -0
  202. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
  203. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/10_react.json +0 -0
  204. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/11_refine.json +0 -0
  205. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/12_retrieve.json +0 -0
  206. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/13_knn.json +0 -0
  207. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/14_parallel.json +0 -0
  208. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/identity_vectors/README.md +0 -0
  209. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/ingest_conformance.py +0 -0
  210. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/__init__.py +0 -0
  211. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/authored_optimize/judge.py +0 -0
  212. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
  213. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/conftest.py +0 -0
  214. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
  215. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/hosted_optimize_probe.py +0 -0
  216. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/optimization_run_probe.py +0 -0
  217. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/test_cli_deploy_smoketest.py +0 -0
  218. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/test_logs_renders_traces.py +0 -0
  219. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/test_optimization_run.py +0 -0
  220. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/test_optimizing_progress.py +0 -0
  221. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/integration/test_unhappy_path.py +0 -0
  222. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/lm15_prompt_fixture.py +0 -0
  223. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/lm15_prompts/four_turn_predict.json +0 -0
  224. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/lm15_prompts/rlm_six_turns.json +0 -0
  225. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/__init__.py +0 -0
  226. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/__main__.py +0 -0
  227. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/drain.py +0 -0
  228. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/ingest.py +0 -0
  229. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/latency_transport.py +0 -0
  230. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/rlm_shape.py +0 -0
  231. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/rlm_size_report.py +0 -0
  232. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/sweep.py +0 -0
  233. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/test_rlm_shape.py +0 -0
  234. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/load/test_rlm_size_report.py +0 -0
  235. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/__init__.py +0 -0
  236. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/conftest.py +0 -0
  237. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/seed_parity.py +0 -0
  238. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_auth.py +0 -0
  239. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_datasets.py +0 -0
  240. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_deployments.py +0 -0
  241. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_evals.py +0 -0
  242. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_health.py +0 -0
  243. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_modules.py +0 -0
  244. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_optimizations.py +0 -0
  245. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_programs.py +0 -0
  246. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_signatures.py +0 -0
  247. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_trace_streaming.py +0 -0
  248. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/parity/test_traces.py +0 -0
  249. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/__init__.py +0 -0
  250. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/_provider.py +0 -0
  251. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/_readiness.py +0 -0
  252. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/_reliability.py +0 -0
  253. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/_result.py +0 -0
  254. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/mint_bedrock_token.py +0 -0
  255. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_bedrock_converse.py +0 -0
  256. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_deploy_programs.py +0 -0
  257. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_multi_client_stress.py +0 -0
  258. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_optimize_client_committee.py +0 -0
  259. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_optimize_continuation.py +0 -0
  260. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_optimize_loop.py +0 -0
  261. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_optimize_loop_wasm.py +0 -0
  262. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_optimize_stress.py +0 -0
  263. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_provider_roles.py +0 -0
  264. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_readiness.py +0 -0
  265. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_real_provider_twins.py +0 -0
  266. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_reliability.py +0 -0
  267. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_reliability_classify.py +0 -0
  268. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_rlm_wasm.py +0 -0
  269. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/real_models/test_trace_search.py +0 -0
  270. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/span_reference_fixture.py +0 -0
  271. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_adapter_reentrancy.py +0 -0
  272. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_assessments_api.py +0 -0
  273. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored.py +0 -0
  274. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored_binding_credentials.py +0 -0
  275. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored_bundle_collisions.py +0 -0
  276. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored_metric_contract.py +0 -0
  277. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored_named_models.py +0 -0
  278. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_authored_optimize.py +0 -0
  279. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_callback.py +0 -0
  280. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_candidate_lineage.py +0 -0
  281. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/__init__.py +0 -0
  282. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/conftest.py +0 -0
  283. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_admin.py +0 -0
  284. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_api_client.py +0 -0
  285. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_assessments.py +0 -0
  286. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_auth.py +0 -0
  287. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_credentials.py +0 -0
  288. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_datasets.py +0 -0
  289. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_deployments.py +0 -0
  290. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_evals.py +0 -0
  291. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_login.py +0 -0
  292. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_main.py +0 -0
  293. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_org.py +0 -0
  294. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_pagination.py +0 -0
  295. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_parity.py +0 -0
  296. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_programs.py +0 -0
  297. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_provider_credentials.py +0 -0
  298. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_schema_sample.py +0 -0
  299. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_shell.py +0 -0
  300. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_tool_servers.py +0 -0
  301. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_top.py +0 -0
  302. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_traces.py +0 -0
  303. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_traces_program_and_module.py +0 -0
  304. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_traces_search_wire.py +0 -0
  305. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_tree_help.py +0 -0
  306. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cli/test_valsets.py +0 -0
  307. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_client.py +0 -0
  308. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_client_floor.py +0 -0
  309. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_client_program_names.py +0 -0
  310. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_clustering/__init__.py +0 -0
  311. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_clustering/conftest.py +0 -0
  312. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_clustering/test_edge_cases.py +0 -0
  313. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_clustering/test_hash_consistency.py +0 -0
  314. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_clustering/test_type_conversion.py +0 -0
  315. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_cmp551_grouping_identity.py +0 -0
  316. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_configuration.py +0 -0
  317. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_context_propagation.py +0 -0
  318. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_credential_kwargs.py +0 -0
  319. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_credential_selection.py +0 -0
  320. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_credential_values.py +0 -0
  321. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_dataset_polling.py +0 -0
  322. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_dataset_sync.py +0 -0
  323. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_datasets.py +0 -0
  324. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_decision_client_spans.py +0 -0
  325. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_decorators.py +0 -0
  326. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deploy.py +0 -0
  327. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deploy_mcp_tool_references.py +0 -0
  328. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deploy_program_id.py +0 -0
  329. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deployment_metadata.py +0 -0
  330. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_deployments_read.py +0 -0
  331. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_eval.py +0 -0
  332. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_eval_example_attribution.py +0 -0
  333. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_eval_program_id.py +0 -0
  334. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_eval_start.py +0 -0
  335. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_exception_paths.py +0 -0
  336. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_execute.py +0 -0
  337. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_execute_run_identity.py +0 -0
  338. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_exporter.py +0 -0
  339. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_exporter_program_names.py +0 -0
  340. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_exporter_queue.py +0 -0
  341. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_exporter_real.py +0 -0
  342. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_fake_lm.py +0 -0
  343. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_gepa_callback.py +0 -0
  344. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_gepa_integration.py +0 -0
  345. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_gepa_output_normalization.py +0 -0
  346. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_gepa_resume.py +0 -0
  347. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_identity.py +0 -0
  348. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_imaging.py +0 -0
  349. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_import_weight.py +0 -0
  350. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_ingest_second_producer.py +0 -0
  351. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_integration.py +0 -0
  352. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_interpreter_callback.py +0 -0
  353. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_ir_encoder_properties.py +0 -0
  354. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_ir_golden_vectors.py +0 -0
  355. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_ir_roundtrip.py +0 -0
  356. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_lm15_native_calls.py +0 -0
  357. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_lm15_prompt_fixtures.py +0 -0
  358. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_lm15_prompt_references.py +0 -0
  359. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_lm_configuration.py +0 -0
  360. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_lm_usage_shapes.py +0 -0
  361. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_mcp_tools.py +0 -0
  362. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_models.py +0 -0
  363. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_multi_client_stress_readiness.py +0 -0
  364. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_no_signature_hash_on_the_wire.py +0 -0
  365. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimization_phase_callback.py +0 -0
  366. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimization_program_names.py +0 -0
  367. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimization_progress.py +0 -0
  368. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimization_start.py +0 -0
  369. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize.py +0 -0
  370. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_budget.py +0 -0
  371. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_lift.py +0 -0
  372. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_lms.py +0 -0
  373. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_proposer.py +0 -0
  374. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_reflection_lm.py +0 -0
  375. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_optimize_terminal_failure.py +0 -0
  376. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_owned_trace_streaming.py +0 -0
  377. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_packaging.py +0 -0
  378. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_packaging_callable_source.py +0 -0
  379. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_packaging_mcp_tools.py +0 -0
  380. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_packaging_program_source.py +0 -0
  381. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_poll_until.py +0 -0
  382. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_program_id_deprecation.py +0 -0
  383. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_program_identity.py +0 -0
  384. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_program_lineage_persist.py +0 -0
  385. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_program_names_in_deploy.py +0 -0
  386. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_program_naming.py +0 -0
  387. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_programs_create.py +0 -0
  388. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_project_payload.py +0 -0
  389. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_real_provider_twins_readiness.py +0 -0
  390. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_reflector_properties.py +0 -0
  391. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_reflector_smoke.py +0 -0
  392. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_release_gate_script.py +0 -0
  393. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_release_real_models_script.py +0 -0
  394. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_replaced_names.py +0 -0
  395. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_repro_reactv2_bugs.py +0 -0
  396. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_require_version_bump.py +0 -0
  397. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_retry.py +0 -0
  398. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_reversible_failures.py +0 -0
  399. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_rlm_patch.py +0 -0
  400. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_run_attribution_paths.py +0 -0
  401. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_runtime_tools.py +0 -0
  402. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_schemas.py +0 -0
  403. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_seal_lm_credential.py +0 -0
  404. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_seed_review_run.py +0 -0
  405. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_signature_inputs.py +0 -0
  406. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_span_references.py +0 -0
  407. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_span_sent_once.py +0 -0
  408. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_span_submission.py +0 -0
  409. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_span_submission_wire_contract.py +0 -0
  410. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_system_one.py +0 -0
  411. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_token_attribution.py +0 -0
  412. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_trace_context_concurrency.py +0 -0
  413. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_trace_fact_wire_contract.py +0 -0
  414. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_trace_facts.py +0 -0
  415. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_trace_render.py +0 -0
  416. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_traces_read.py +0 -0
  417. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_tracked_gepa.py +0 -0
  418. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_tracker_enrich.py +0 -0
  419. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_truncation.py +0 -0
  420. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_upload_auth_headers.py +0 -0
  421. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_user_agent.py +0 -0
  422. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_valsets_api.py +0 -0
  423. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_versions.py +0 -0
  424. {cmpnd-0.90.0 → cmpnd-0.91.1}/tests/test_xxh64.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cmpnd
3
- Version: 0.90.0
3
+ Version: 0.91.1
4
4
  Summary: DSPy observability and deployment SDK for cmpnd
5
5
  Project-URL: Homepage, https://cmpnd.ai
6
6
  Author-email: cmpnd <hello@cmpnd.ai>
@@ -784,7 +784,8 @@ errors:
784
784
  - A connection to the platform that never opened, such as one refused, raises
785
785
  `RunNotSubmitted` after a few attempts. It names the endpoint, and nothing was
786
786
  sent, so submitting again is safe. It is a `RunSubmissionUncertain`.
787
- - A spent budget raises `RunWaitTimeout`, which holds the run ID.
787
+ - A spent budget raises `RunWaitTimeout`, which holds the run ID and, once a
788
+ worker admitted the run, the `trace_id` of the trace it is streaming.
788
789
  - An answer that expired before it was read raises `RunResultExpired`.
789
790
 
790
791
  `sdk.deployment_run_id(result)` returns the run ID of a result, or of an
@@ -731,7 +731,8 @@ errors:
731
731
  - A connection to the platform that never opened, such as one refused, raises
732
732
  `RunNotSubmitted` after a few attempts. It names the endpoint, and nothing was
733
733
  sent, so submitting again is safe. It is a `RunSubmissionUncertain`.
734
- - A spent budget raises `RunWaitTimeout`, which holds the run ID.
734
+ - A spent budget raises `RunWaitTimeout`, which holds the run ID and, once a
735
+ worker admitted the run, the `trace_id` of the trace it is streaming.
735
736
  - An answer that expired before it was read raises `RunResultExpired`.
736
737
 
737
738
  `sdk.deployment_run_id(result)` returns the run ID of a result, or of an
@@ -205,15 +205,15 @@ def submit_cli_run(
205
205
  print(f"Deployment run: {accepted_id}", file=sys.stderr)
206
206
  if asynchronous:
207
207
  return accepted, None
208
+ # The trace streams while the run runs, so it is named on the first read
209
+ # that names it rather than at settlement.
210
+ runs.on_trace = _print_trace
208
211
  settled = runs.wait(accepted_id, deadline, accepted)
209
212
  except KeyboardInterrupt:
210
213
  deployment_runs.report_interrupt(deployment_id, run_id)
211
214
  raise
212
215
  except httpx.HTTPStatusError as exc:
213
216
  raise _http_refusal(exc) from exc
214
- trace_id = settled.get("trace_id")
215
- if isinstance(trace_id, str) and trace_id:
216
- print(f"Trace: {trace_id}", file=sys.stderr)
217
217
  if settled["status"] == "failed":
218
218
  return settled, None
219
219
  result = settled.get("result")
@@ -222,6 +222,11 @@ def submit_cli_run(
222
222
  return settled, result["output"]
223
223
 
224
224
 
225
+ def _print_trace(trace_id: str) -> None:
226
+ """Name a run's trace on stderr, where `--json` keeps it off the program's output."""
227
+ print(f"Trace: {trace_id}", file=sys.stderr)
228
+
229
+
225
230
  def _http_refusal(exc: httpx.HTTPStatusError) -> api_client.CliError:
226
231
  return api_client.CliError(
227
232
  str(exc),
@@ -123,7 +123,7 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
123
123
  dest="max_metric_calls",
124
124
  type=int,
125
125
  default=None,
126
- help="Budget for the search, as metric calls (one per rollout). Required unless --auto is given",
126
+ help=top.MAX_METRIC_CALLS_HELP,
127
127
  )
128
128
  cont.add_argument(
129
129
  "--auto",
@@ -312,6 +312,21 @@ def _verdicts(run: dict[str, Any]) -> str:
312
312
  return f"{_int(accepted)}/{_int(rejected)}"
313
313
 
314
314
 
315
+ def _past_budget(run: dict[str, Any]) -> bool:
316
+ """Whether the run counts more metric calls than its budget."""
317
+ used, live, budget = run.get("total_metric_calls"), run.get("current_metric_calls"), run.get("max_metric_calls")
318
+ counts = [n for n in (used, live) if isinstance(n, int) and not isinstance(n, bool)]
319
+ return isinstance(budget, int) and budget > 0 and any(n > budget for n in counts)
320
+
321
+
322
+ # The note under a table with a run past its budget. The budget and the count measure the
323
+ # same metric calls, and gepa checks the budget only between iterations.
324
+ _PAST_BUDGET_NOTE = (
325
+ "A run checks its budget before each iteration and finishes the iteration in flight, "
326
+ "so its metric calls can pass the budget."
327
+ )
328
+
329
+
315
330
  def _render_runs(payload: Any) -> None:
316
331
  runs = _rows(payload, "optimization_runs")
317
332
  if not runs:
@@ -331,6 +346,8 @@ def _render_runs(payload: Any) -> None:
331
346
  for run in runs
332
347
  ]
333
348
  _table(("RUN", "STATUS", "PROGRAM", "OPTIMIZER", "METRIC CALLS", "ACCEPTED/REJECTED", "BEST", "STARTED"), rows)
349
+ if any(_past_budget(run) for run in runs):
350
+ print(_PAST_BUDGET_NOTE)
334
351
  total = payload.get("total") if isinstance(payload, dict) else None
335
352
  if isinstance(total, int) and total > len(runs):
336
353
  print(f"{len(runs)} of {total} runs. Page with --limit and --offset.")
@@ -39,6 +39,16 @@ _C = {
39
39
  }
40
40
 
41
41
 
42
+ # The budget's help, shared by `cmpnd optimize` and `optimizations continue`. The budget and
43
+ # a run's `total_metric_calls` count the same thing. gepa checks the budget before each
44
+ # iteration and finishes the iteration in flight, so a run can spend more than its budget.
45
+ MAX_METRIC_CALLS_HELP = (
46
+ "Budget for the search, as metric calls (one per example the metric scores). The search starts no "
47
+ "iteration once it has spent the budget and finishes the iteration in flight, so a run can spend "
48
+ "more. Required unless --auto is given"
49
+ )
50
+
51
+
42
52
  def _c(s: str, color: str) -> str:
43
53
  if not _USE_COLOR:
44
54
  return s
@@ -1251,7 +1261,11 @@ def cmd_run(client: api_client.ApiClient, args: Any) -> None:
1251
1261
  deployment_runs.RunResultExpired,
1252
1262
  ) as exc:
1253
1263
  if args.json:
1254
- print(json.dumps({"deployment_run_id": getattr(exc, "_cmpnd_deployment_run_id", None), "error": str(exc)}))
1264
+ answer = {"deployment_run_id": getattr(exc, "_cmpnd_deployment_run_id", None), "error": str(exc)}
1265
+ # A run that is still running has a trace that streams as it goes.
1266
+ if isinstance(exc, deployment_runs.RunWaitTimeout) and exc.trace_id:
1267
+ answer["trace_id"] = exc.trace_id
1268
+ print(json.dumps(answer))
1255
1269
  raise
1256
1270
  except RuntimeError as exc:
1257
1271
  if args.json:
@@ -1492,7 +1506,12 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
1492
1506
  rn.add_argument("body", nargs="?", help="JSON body, or '-' to read from stdin")
1493
1507
  rn.add_argument("--async", dest="asynchronous", action="store_true", help="Return the accepted run handle")
1494
1508
  rn.add_argument("--timeout", type=float, default=None, help=deployment_commands.TIMEOUT_HELP)
1495
- rn.add_argument("--json", action="store_true", help="Emit raw JSON (stable shape)")
1509
+ rn.add_argument(
1510
+ "--json",
1511
+ action="store_true",
1512
+ help="Print the program's output as JSON on stdout (stable shape). The run ID and "
1513
+ "trace ID go to stderr as `Deployment run:` and `Trace:` lines",
1514
+ )
1496
1515
  rn.set_defaults(func=_handler("run"))
1497
1516
 
1498
1517
  dp = subparsers.add_parser(
@@ -1648,7 +1667,7 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
1648
1667
  dest="max_metric_calls",
1649
1668
  type=int,
1650
1669
  default=None,
1651
- help="Budget for the search, as metric calls (one per rollout). Required unless --auto is given",
1670
+ help=MAX_METRIC_CALLS_HELP,
1652
1671
  )
1653
1672
  opt.add_argument(
1654
1673
  "--auto",
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import json
6
- from collections.abc import Generator
6
+ from collections.abc import Callable, Generator
7
7
  from contextlib import contextmanager
8
8
  from contextvars import ContextVar, Token
9
9
  from datetime import datetime, timezone
@@ -90,9 +90,31 @@ def get_current_span() -> models.SpanBuilder | None:
90
90
  return stack[-1] if stack else None
91
91
 
92
92
 
93
+ SpanStartListener = Callable[["models.SpanBuilder"], None]
94
+
95
+ # Called with each span as it is pushed, before it ends. A hosted kernel sets it to send
96
+ # each span's start to its worker, so the worker can end a span a run never ended when
97
+ # the run dies with the kernel (a deadline, a sandbox exit, a trap).
98
+ _span_start_listener: SpanStartListener | None = None
99
+
100
+
101
+ def set_span_start_listener(listener: SpanStartListener | None) -> SpanStartListener | None:
102
+ """Install the span-start listener, or clear it with None. Returns the one it replaced."""
103
+ global _span_start_listener
104
+ previous = _span_start_listener
105
+ _span_start_listener = listener
106
+ return previous
107
+
108
+
93
109
  def push_span(span: models.SpanBuilder) -> None:
94
- """Push a span onto this context's stack."""
110
+ """Push a span onto this context's stack, and tell the span-start listener."""
95
111
  _span_stack.set((*_span_stack.get(), span))
112
+ listener = _span_start_listener
113
+ if listener is not None:
114
+ try:
115
+ listener(span)
116
+ except Exception: # noqa: BLE001 — telemetry never fails the program
117
+ pass
96
118
 
97
119
 
98
120
  def pop_span() -> models.SpanBuilder | None:
@@ -14,6 +14,7 @@ import random
14
14
  import sys
15
15
  import time
16
16
  import warnings
17
+ from collections.abc import Callable
17
18
  from typing import Any
18
19
 
19
20
  import httpx
@@ -139,19 +140,31 @@ class RunWaitTimeout(TimeoutError):
139
140
 
140
141
  ``status`` and ``status_reason`` are the run's last header read, when one
141
142
  arrived: why the run is still open, such as a queued run waiting for a
142
- credential or a worker.
143
+ credential or a worker. ``trace_id`` is the run's root trace from that read,
144
+ which streams while the run runs, or ``None`` when serve named none yet.
143
145
  """
144
146
 
145
- def __init__(self, run_id: str, *, status: str | None = None, status_reason: str | None = None):
147
+ def __init__(
148
+ self,
149
+ run_id: str,
150
+ *,
151
+ status: str | None = None,
152
+ status_reason: str | None = None,
153
+ trace_id: str | None = None,
154
+ ):
146
155
  state = ""
147
156
  if status:
148
157
  state = f" ({status}: {status_reason})" if status_reason else f" ({status})"
158
+ trace = f" Follow its trace with `cmpnd traces show {trace_id}`." if trace_id else ""
149
159
  super().__init__(
150
- f"Deployment run {run_id} has not settled{state}. "
160
+ f"Deployment run {run_id} has not settled{state}.{trace} "
151
161
  f"Resume with `{_wait_command(run_id)}`, or stop it with `{_cancel_command(run_id)}`."
152
162
  )
153
163
  self.status = status
154
164
  self.status_reason = status_reason
165
+ self.trace_id = trace_id
166
+ # Where `Client.get_trace_id` reads a run's trace from any run result or error.
167
+ self._cmpnd_deployment_trace_id = trace_id
155
168
  _set_run_id(self, run_id)
156
169
 
157
170
 
@@ -309,6 +322,12 @@ def _json(response: httpx.Response, what: str, run_id: str | None) -> object:
309
322
  raise _protocol_error(f"Deployment run {what} returned invalid JSON.", run_id) from exc
310
323
 
311
324
 
325
+ def _trace_id(header: dict[str, Any]) -> str | None:
326
+ """The run's root trace ID, which serve names once a worker admits the run."""
327
+ trace_id = header.get("trace_id")
328
+ return trace_id if isinstance(trace_id, str) and trace_id else None
329
+
330
+
312
331
  def _validate_run(body: object, *, submitted: bool) -> dict[str, Any]:
313
332
  run_id = _http._body_deployment_run_id(body)
314
333
  if not isinstance(body, dict) or run_id is None:
@@ -408,6 +427,11 @@ class _RunClient:
408
427
  # The last run header a wait read, so a wait that runs out can say why
409
428
  # the run is still open.
410
429
  self.last_header: dict[str, Any] | None = None
430
+ # Called with the run's trace ID on the first header that names it, and
431
+ # again if a later header names another, so a caller can show the trace
432
+ # while the run is still running.
433
+ self.on_trace: Callable[[str], None] | None = None
434
+ self._named_trace: str | None = None
411
435
 
412
436
  def __enter__(self) -> _RunClient:
413
437
  self.client = _http.new_client(headers={"X-API-Key": self.api_key})
@@ -569,12 +593,26 @@ class _RunClient:
569
593
  raise
570
594
  reason = header.get("status_reason")
571
595
  raise RunWaitTimeout(
572
- run_id, status=header.get("status"), status_reason=reason if isinstance(reason, str) else None
596
+ run_id,
597
+ status=header.get("status"),
598
+ status_reason=reason if isinstance(reason, str) else None,
599
+ trace_id=_trace_id(header),
573
600
  ) from None
574
601
 
602
+ def _saw(self, header: dict[str, Any]) -> None:
603
+ """Record a header the wait read, and name its trace once it appears."""
604
+ self.last_header = header
605
+ trace_id = _trace_id(header)
606
+ if trace_id is not None and trace_id != self._named_trace:
607
+ self._named_trace = trace_id
608
+ if self.on_trace is not None:
609
+ self.on_trace(trace_id)
610
+
575
611
  def _follow(self, run_id: str, deadline: float | None, initial: dict[str, Any] | None) -> dict[str, Any]:
576
612
  """The wait loop. It records each header it reads in ``last_header``."""
577
613
  header = initial
614
+ if header is not None:
615
+ self._saw(header)
578
616
  need_status = header is None
579
617
  delay = _FIRST_POLL_DELAY
580
618
  status_path = f"/api/v1/deployments/runs/{run_id}"
@@ -583,7 +621,7 @@ class _RunClient:
583
621
  response = self._poll(status_path, deadline, run_id)
584
622
  if response is not None:
585
623
  header = _validate_run(_json(response, "status", run_id), submitted=False)
586
- self.last_header = header
624
+ self._saw(header)
587
625
  need_status = True
588
626
  if header is not None and header["status"] in _TERMINAL:
589
627
  # The status is settled, so only the answer remains to be read.
@@ -6,7 +6,11 @@ per-example result processing and export in on_evaluate_end.
6
6
 
7
7
  from __future__ import annotations
8
8
 
9
+ import functools
9
10
  import logging
11
+ import threading
12
+ import types
13
+ from collections.abc import Iterable
10
14
  from datetime import datetime, timezone
11
15
  from typing import Any
12
16
 
@@ -31,6 +35,20 @@ class EvalHandler:
31
35
  self._eval_call_id_to_run: dict[str, models.EvalRunBuilder] = {}
32
36
  self._eval_traces: dict[str, list[models.TraceBuilder]] = {}
33
37
  self._eval_signature_input_fields: dict[str, set[str]] = {}
38
+ # Per Evaluate call: the exception a metric raised, and the prediction it
39
+ # was grading, keyed by the identity of the devset example it graded.
40
+ # DSPy's executor swallows the exception, so this is the only record.
41
+ self._metric_failures: dict[str, dict[int, tuple[Exception, Any]]] = {}
42
+ self._metric_failures_lock = threading.Lock()
43
+ # Per Evaluate call: the Evaluate instance and the metric it held before
44
+ # on_evaluate_start wrapped it, restored in on_evaluate_end.
45
+ self._wrapped_metrics: dict[str, tuple[Any, Any]] = {}
46
+ # The Evaluate instance per call, for its failure_score.
47
+ self._evaluate_instances: dict[str, Any] = {}
48
+ # Evaluate calls made outside any open trace. Their span is a stack
49
+ # marker only: it parents no program run, and the eval run record holds
50
+ # everything on it, so it is never exported.
51
+ self._detached_eval_spans: set[str] = set()
34
52
 
35
53
  @property
36
54
  def active_eval_run(self) -> models.EvalRunBuilder | None:
@@ -121,6 +139,9 @@ class EvalHandler:
121
139
  else:
122
140
  eval_run.metric_name = str(metric)
123
141
 
142
+ self._evaluate_instances[call_id] = instance
143
+ self._wrap_instance_metric(call_id, instance, inputs)
144
+
124
145
  # Extract devset info - check multiple locations
125
146
  devset = inputs.get("devset")
126
147
  devset_len = len(devset) if devset else 0
@@ -196,7 +217,13 @@ class EvalHandler:
196
217
  context.set_current_eval_run(eval_run)
197
218
  self.active_eval_run = eval_run
198
219
 
199
- # Also create a span for the evaluation itself
220
+ # Also create a span for the evaluation itself. Program runs beneath it
221
+ # root their own traces, so outside an open trace the span belongs to no
222
+ # trace. It stays on the stack, where on_module_start reads it, and is
223
+ # never exported: on its own it would be a one-span trace that never
224
+ # finishes.
225
+ if context.get_current_trace() is None:
226
+ self._detached_eval_spans.add(call_id)
200
227
  span = context.create_child_span("Evaluate", models.SpanType.EVALUATION)
201
228
 
202
229
  # Capture evaluation config in span attributes
@@ -208,6 +235,50 @@ class EvalHandler:
208
235
  self._callback._call_id_to_span[call_id] = span
209
236
  context.push_span(span)
210
237
 
238
+ def _wrap_instance_metric(self, call_id: str, instance: Any, inputs: dict[str, Any]) -> None:
239
+ """Record what the Evaluate instance's own metric raises, for the eval record.
240
+
241
+ ``dspy.Evaluate`` runs each example on an executor that catches the
242
+ metric's exception, logs it and puts ``(dspy.Prediction(), failure_score)``
243
+ in the example's slot. The SDK sees only that placeholder. Wrapping the
244
+ metric for the call keeps the exception and the prediction it graded.
245
+ Only the instance's metric can be wrapped: a metric passed to the call
246
+ reaches DSPy as an argument the callback cannot replace.
247
+ """
248
+ if inputs.get("metric") is not None:
249
+ return
250
+ metric = getattr(instance, "metric", None)
251
+ if not callable(metric):
252
+ return
253
+ failures: dict[int, tuple[Exception, Any]] = {}
254
+ lock = self._metric_failures_lock
255
+
256
+ @functools.wraps(metric)
257
+ def recording_metric(example: Any, prediction: Any, *args: Any, **kwargs: Any) -> Any:
258
+ try:
259
+ return metric(example, prediction, *args, **kwargs)
260
+ except Exception as exc:
261
+ with lock:
262
+ failures[id(example)] = (exc, prediction)
263
+ raise
264
+
265
+ # DSPy names a metric's results column by __name__ for a function and by
266
+ # class for any other callable, so a callable object keeps its class name.
267
+ if not isinstance(metric, types.FunctionType):
268
+ recording_metric.__name__ = type(metric).__name__
269
+ try:
270
+ instance.metric = recording_metric
271
+ except AttributeError:
272
+ return
273
+ self._metric_failures[call_id] = failures
274
+ self._wrapped_metrics[call_id] = (instance, metric)
275
+
276
+ def _restore_instance_metric(self, call_id: str) -> None:
277
+ wrapped = self._wrapped_metrics.pop(call_id, None)
278
+ if wrapped is not None:
279
+ instance, metric = wrapped
280
+ instance.metric = metric
281
+
211
282
  def _program_id(self, exp: Any, program: Any, optimization_run_id: str | None) -> str | None:
212
283
  """The program id the eval run carries, resolved the way a trace's is.
213
284
 
@@ -240,6 +311,12 @@ class EvalHandler:
240
311
  exception: Exception | None = None,
241
312
  ) -> None:
242
313
  """Handle evaluation completion - finalizes and exports EvalRunBuilder."""
314
+ self._restore_instance_metric(call_id)
315
+ metric_failures = self._metric_failures.pop(call_id, {})
316
+ evaluate_instance = self._evaluate_instances.pop(call_id, None)
317
+ detached = call_id in self._detached_eval_spans
318
+ self._detached_eval_spans.discard(call_id)
319
+
243
320
  # Get the eval run
244
321
  eval_run = self._eval_call_id_to_run.pop(call_id, None)
245
322
 
@@ -252,7 +329,7 @@ class EvalHandler:
252
329
  else:
253
330
  span.status = models.TraceStatus.OK
254
331
  context.pop_span()
255
- if self._callback._should_stream_span(span):
332
+ if not detached and self._callback._should_stream_span(span):
256
333
  exp = self._callback._current_exporter()
257
334
  if exp:
258
335
  exp.export_span(span)
@@ -320,6 +397,11 @@ class EvalHandler:
320
397
  # Unpack result - DSPy returns (example, prediction, score)
321
398
  if isinstance(result_item, tuple) and len(result_item) >= 3:
322
399
  example, prediction, score = result_item[:3]
400
+ # The metric raised on this example: DSPy put a placeholder
401
+ # in its slot, and the wrapper kept the real prediction.
402
+ metric_failure = metric_failures.get(id(example))
403
+ if metric_failure is not None:
404
+ prediction = metric_failure[1]
323
405
 
324
406
  # Extract example as dict
325
407
  if hasattr(example, "toDict"):
@@ -352,11 +434,18 @@ class EvalHandler:
352
434
  elif isinstance(prediction, dict):
353
435
  example_builder.actual_output = prediction
354
436
 
355
- # Set score - normalize to 0-100 scale
437
+ # Set score - normalize to 0-100 scale. A failed example keeps
438
+ # the failure_score DSPy counted toward the run's score.
356
439
  raw_score = float(score) if score is not None else 0.0
357
440
  example_builder.score = raw_score * 100 # Convert to percentage
358
- example_builder.passed = raw_score > 0
359
- example_builder.status = models.EvalExampleStatus.COMPLETED
441
+ if metric_failure is not None:
442
+ example_builder.set_error(metric_failure[0])
443
+ elif _is_failure_placeholder(prediction, score, evaluate_instance):
444
+ example_builder.status = models.EvalExampleStatus.ERROR
445
+ example_builder.error_message = _UNRECORDED_FAILURE
446
+ else:
447
+ example_builder.passed = raw_score > 0
448
+ example_builder.status = models.EvalExampleStatus.COMPLETED
360
449
 
361
450
  # Compute example hash for comparability
362
451
  example_builder.example_hash = identity.compute_example_hash(example_builder.inputs)
@@ -414,3 +503,30 @@ class EvalHandler:
414
503
  self._eval_signature_input_fields.pop(call_id, None)
415
504
  context.set_current_eval_run(None)
416
505
  self.active_eval_run = None
506
+
507
+
508
+ # What an example that failed without a recorded exception says. DSPy logs the
509
+ # exception and keeps nothing the callback can read.
510
+ _UNRECORDED_FAILURE = "The program or the metric raised on this example; dspy.Evaluate logged the exception"
511
+
512
+
513
+ def _is_failure_placeholder(prediction: Any, score: Any, evaluate_instance: Any) -> bool:
514
+ """Whether ``dspy.Evaluate`` put its failure placeholder in an example's slot.
515
+
516
+ When the program or the metric raises, Evaluate records
517
+ ``(dspy.Prediction(), failure_score)``. An instrumented program's own
518
+ prediction carries the trace stamp, so an empty, unstamped prediction scored
519
+ at the failure score is the placeholder.
520
+ """
521
+ from . import callback
522
+
523
+ if prediction is None or callback.trace_id(prediction) is not None:
524
+ return False
525
+ keys = getattr(prediction, "keys", None)
526
+ if not callable(keys):
527
+ return False
528
+ held = keys()
529
+ if not isinstance(held, Iterable) or any(True for _ in held):
530
+ return False
531
+ failure_score = getattr(evaluate_instance, "failure_score", 0.0)
532
+ return score == failure_score
@@ -82,8 +82,17 @@ def clean_inputs(inputs: dict[str, Any], dspy: Any, max_field_size: int) -> dict
82
82
 
83
83
 
84
84
  def is_gepa_bootstrap_wrapper(instance: Any) -> bool:
85
- """Return whether DSPy's bootstrap tracer temporarily patched this module."""
86
- forward = getattr(instance, "forward", None)
85
+ """Return whether DSPy's bootstrap tracer temporarily patched this module.
86
+
87
+ Reads ``forward`` with ``object.__getattribute__``, as DSPy's bootstrap
88
+ tracer does. ``dspy.Module.__getattribute__`` logs a "calling forward
89
+ directly is discouraged" warning for any read of ``forward`` outside
90
+ ``__call__``, and this check runs on every module call.
91
+ """
92
+ try:
93
+ forward = object.__getattribute__(instance, "forward")
94
+ except AttributeError:
95
+ return False
87
96
  function = getattr(forward, "__func__", forward)
88
97
  return (
89
98
  getattr(function, "__module__", None) == "dspy.teleprompt.bootstrap_trace"
@@ -1374,6 +1374,10 @@ class EvalExampleBuilder:
1374
1374
  # Status
1375
1375
  status: EvalExampleStatus = EvalExampleStatus.PENDING
1376
1376
  error_message: str | None = None
1377
+ # The class name of the exception that failed the example, such as the
1378
+ # metric's ``ValueError``. None when the example did not fail, or when DSPy
1379
+ # kept no exception to name.
1380
+ error_type: str | None = None
1377
1381
 
1378
1382
  def set_result(
1379
1383
  self,
@@ -1393,10 +1397,11 @@ class EvalExampleBuilder:
1393
1397
  self.cost = cost
1394
1398
  self.status = EvalExampleStatus.COMPLETED
1395
1399
 
1396
- def set_error(self, exception: Exception) -> None:
1400
+ def set_error(self, exception: BaseException) -> None:
1397
1401
  """Mark this example as errored."""
1398
1402
  self.status = EvalExampleStatus.ERROR
1399
1403
  self.error_message = str(exception)
1404
+ self.error_type = exception.__class__.__name__
1400
1405
 
1401
1406
  def to_api_dict(self) -> dict[str, Any]:
1402
1407
  """Convert to API-compatible dictionary."""
@@ -1415,6 +1420,7 @@ class EvalExampleBuilder:
1415
1420
  "cost": self.cost,
1416
1421
  "status": self.status.value,
1417
1422
  "error_message": _strip_unstorable_opt(self.error_message),
1423
+ "error_type": self.error_type,
1418
1424
  }
1419
1425
 
1420
1426
 
@@ -74,8 +74,9 @@ the answer has a null `total`, `complete` is false, and the note says programs
74
74
  are missing.
75
75
 
76
76
  `cmpnd programs optimized list` lists the compiled programs that optimization
77
- runs produced, one row per compiled program hash, from
78
- `GET /api/v1/programs/v2`. It takes `--name`, `--model`, `--order-by` and
77
+ runs produced, from `GET /api/v1/programs/v2`. A result that is a deployment
78
+ has its own row, and `deployment_id` names it. Other results share one row
79
+ per compiled program hash, which `program_hash` names. It takes `--name`, `--model`, `--order-by` and
79
80
  `--order`. `cmpnd programs list` refuses those flags with an error that names
80
81
  `cmpnd programs optimized list`.
81
82
 
@@ -285,10 +286,21 @@ seconds, unless `--timeout` sets the budget. The CLI prints the accepted run ID
285
286
  on stderr as soon as serve replies, which can take up to serve's five-second
286
287
  wait. A failed run exits nonzero. Human mode prints the stored error code,
287
288
  message and provider status. `--json` prints the whole settled run on stdout.
288
- When a settled run names its root trace, the CLI prints `Trace: <id>` on
289
- stderr, completed or failed. `cmpnd traces show <id>` opens that trace. The
290
- run's `trace_id` field holds the same ID, and serve leaves it out when the run
291
- stored no trace.
289
+ Serve names a run's root trace once a worker admits the run, and the trace
290
+ streams while the run runs. The CLI prints `Trace: <id>` on stderr on the
291
+ first read that names it, so a running run shows its trace before it settles,
292
+ completed or failed. `cmpnd traces show <id>` opens that trace. The run's
293
+ `trace_id` field holds the same ID, and serve leaves it out on a queued run and
294
+ when the run stored no trace.
295
+
296
+ `--json` keeps stdout the program's output alone, unchanged, so a script that
297
+ parses it keeps working. The run ID and trace ID go to stderr as the
298
+ `Deployment run: <id>` and `Trace: <id>` lines in both modes. The output can be
299
+ any JSON value, so a field beside it would not fit every program, and wrapping
300
+ it would break every script that reads it today. `--async --json` and a failed
301
+ run's `--json` print the whole run header, which carries `trace_id`. A wait
302
+ that runs out under `--json` prints `{"deployment_run_id", "error"}` and adds
303
+ `trace_id` when the run has one.
292
304
  The CLI retries status reads that time out or answer `408`, `429` or `5xx`
293
305
  within the budget.
294
306
 
@@ -513,7 +525,9 @@ scope, and a caller without it gets a 403. `cmpnd auth`, `cmpnd login`,
513
525
  A program's name or its `p_` id is the only handle the CLI takes for a
514
526
  program ("Program names" and "The Trash" above). No command takes or prints a
515
527
  program signature hash. `cmpnd programs optimized` commands take a compiled program hash, which names one
516
- optimization result, not a program. Each group's `--help` names the column its
528
+ optimization result, not a program. They refuse a hash that only runs with no
529
+ component signature share, and the error points to the result's
530
+ `deployment_id`. Each group's `--help` names the column its
517
531
  IDs come from.
518
532
 
519
533
  `cmpnd evals list [--program NAME] [--module CLASS] [--metric] [--status]`
@@ -817,11 +831,17 @@ returns `dspy.Prediction(score=..., feedback=...)`. The import check validates
817
831
  the metric's signature without calling it.
818
832
 
819
833
  Pass a reflection model with `--reflection-model` and a budget with
820
- `--max-metric-calls N` or `--auto light|medium|heavy`. `--seed` sets the
821
- search's random seed, as in `cmpnd.Client.optimize_deployment()`. The
822
- organization must hold provider credentials for every model the run uses.
823
- Named model declarations hold model names and sampling settings, and the CLI
824
- refuses a provider key on them.
834
+ `--max-metric-calls N` or `--auto light|medium|heavy`. The budget counts
835
+ metric calls, one per example the metric scores, and a run's
836
+ `total_metric_calls` counts the same calls. GEPA first scores the seed on the
837
+ valset, whatever the budget. It then checks the budget before each iteration and
838
+ finishes the iteration in flight, so a run can spend more than its budget. An
839
+ iteration spends the parent's minibatch, the proposal's minibatch and, when it
840
+ accepts the proposal, a valset evaluation. `--seed` sets the search's random
841
+ seed, as in `cmpnd.Client.optimize_deployment()`. The organization must hold
842
+ provider credentials for every model the run uses. Named model declarations
843
+ hold model names and sampling settings, and the CLI refuses a provider key on
844
+ them.
825
845
 
826
846
  `--credential NAME` names the run's credential. The program's model spends
827
847
  it, and so does every model that names no credential of its own. Without it,
@@ -856,12 +876,16 @@ A hosted run reports its progress while it runs, so these reads show an open
856
876
  run as it is. Each prints the API's JSON, and `--text` renders a table.
857
877
 
858
878
  - `cmpnd optimizations list --text` shows each run's status, its metric calls
859
- of the budget, its accepted and rejected proposals and its best score. The
879
+ of the budget, its accepted and rejected proposals and its best score. When
880
+ a run's metric calls pass its budget, a note under the table says why. The
860
881
  JSON's `total_metric_calls` keeps pace with `current_metric_calls` while the
861
882
  run is open, and `total_candidates` counts the candidates the platform holds
862
883
  for it, which `candidates` lists. `best_score` reads 0 until the run
863
884
  records a score, and `best_score_recorded` is `false` until then, so
864
- `--text` shows a dash. `show` and `list` read the same row, so they agree.
885
+ `--text` shows a dash. `program_name` is the name the run's producer sent,
886
+ or else the current name of the run's program, so a hosted run names its
887
+ program. `list --program NAME` finds every run of the program the name
888
+ belongs to now, and any run whose producer sent that name. `show` and `list` read the same row, so they agree.
865
889
  - `cmpnd optimizations iterations RUN_ID` lists each iteration: the candidate
866
890
  it mutated (`parent_candidate_idx`) and that candidate's mean over the
867
891
  iteration's minibatch (`parent_minibatch_score`), the proposal's mean over the