cmpnd 0.86.1__tar.gz → 0.88.0__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 (421) hide show
  1. {cmpnd-0.86.1 → cmpnd-0.88.0}/PKG-INFO +8 -2
  2. {cmpnd-0.86.1 → cmpnd-0.88.0}/README.md +4 -0
  3. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/__init__.py +7 -2
  4. cmpnd-0.88.0/cmpnd/_guides.py +3 -0
  5. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_http.py +92 -3
  6. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_program_patch.py +28 -4
  7. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/callback.py +23 -4
  8. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/__init__.py +29 -1
  9. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/deployments.py +27 -5
  10. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/evals.py +2 -0
  11. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/optimizations.py +3 -3
  12. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/programs.py +187 -10
  13. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/top.py +66 -6
  14. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/traces.py +2 -0
  15. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/shell.py +14 -5
  16. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/verbs.py +5 -1
  17. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/client.py +19 -5
  18. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/deployment_runs.py +78 -7
  19. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/execution.py +2 -2
  20. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimization.py +24 -20
  21. cmpnd-0.88.0/cmpnd/versions.py +213 -0
  22. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/cli.md +45 -4
  23. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/client.md +15 -2
  24. cmpnd-0.88.0/docs/versions.md +137 -0
  25. {cmpnd-0.86.1 → cmpnd-0.88.0}/pyproject.toml +12 -5
  26. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_continuation.py +57 -14
  27. cmpnd-0.88.0/tests/e2e/test_program_versions.py +75 -0
  28. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_programs.py +7 -25
  29. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_programs.py +131 -10
  30. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_shell.py +15 -1
  31. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_client_program_names.py +2 -1
  32. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_execute_run_identity.py +4 -0
  33. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_program_lineage_persist.py +36 -0
  34. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_run_attribution_paths.py +19 -0
  35. cmpnd-0.88.0/tests/test_versions.py +376 -0
  36. {cmpnd-0.86.1 → cmpnd-0.88.0}/uv.lock +8 -4
  37. {cmpnd-0.86.1 → cmpnd-0.88.0}/.gitignore +0 -0
  38. {cmpnd-0.86.1 → cmpnd-0.88.0}/AGENTS.md +0 -0
  39. {cmpnd-0.86.1 → cmpnd-0.88.0}/CLAUDE.md +0 -0
  40. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_assessments.py +0 -0
  41. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_authored_import.py +0 -0
  42. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_deployments.py +0 -0
  43. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_exporter_pool.py +0 -0
  44. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_gepa_patch.py +0 -0
  45. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_rlm_patch.py +0 -0
  46. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_runtime_tools.py +0 -0
  47. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_timespec.py +0 -0
  48. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_traces.py +0 -0
  49. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/_valsets.py +0 -0
  50. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/authored.py +0 -0
  51. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/api_client.py +0 -0
  52. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/__init__.py +0 -0
  53. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/admin.py +0 -0
  54. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/assessments.py +0 -0
  55. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/auth.py +0 -0
  56. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/datasets.py +0 -0
  57. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/login.py +0 -0
  58. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/org.py +0 -0
  59. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/provider_credentials.py +0 -0
  60. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/tool_servers.py +0 -0
  61. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/commands/valsets.py +0 -0
  62. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/credentials.py +0 -0
  63. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/deprecation.py +0 -0
  64. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/pagination.py +0 -0
  65. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/trace_render.py +0 -0
  66. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/tree_help.py +0 -0
  67. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/cli/views.py +0 -0
  68. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/configuration.py +0 -0
  69. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/context.py +0 -0
  70. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/credentials.py +0 -0
  71. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/dataset_sync.py +0 -0
  72. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/datasets.py +0 -0
  73. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/decorators.py +0 -0
  74. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/deployment.py +0 -0
  75. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/deployment_metadata.py +0 -0
  76. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/eval_handler.py +0 -0
  77. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/exporter.py +0 -0
  78. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/exporter_http.py +0 -0
  79. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/helpers.py +0 -0
  80. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/identity.py +0 -0
  81. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/imaging.py +0 -0
  82. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/__init__.py +0 -0
  83. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/decode.py +0 -0
  84. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/encode.py +0 -0
  85. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/hash.py +0 -0
  86. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/program.py +0 -0
  87. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/reflection.py +0 -0
  88. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/types.py +0 -0
  89. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/ir/xxh64.py +0 -0
  90. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/lm_configuration.py +0 -0
  91. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/mcp_servers.py +0 -0
  92. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/models.py +0 -0
  93. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/named_programs.py +0 -0
  94. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimizers/__init__.py +0 -0
  95. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimizers/gepa.py +0 -0
  96. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimizers/gepa_callback.py +0 -0
  97. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimizers/resume.py +0 -0
  98. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/optimizers/tracker.py +0 -0
  99. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/packaging.py +0 -0
  100. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/program_naming.py +0 -0
  101. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/programs.py +0 -0
  102. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/references.py +0 -0
  103. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/retry.py +0 -0
  104. {cmpnd-0.86.1 → cmpnd-0.88.0}/cmpnd/traces.py +0 -0
  105. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/2026-04-02-code-review.md +0 -0
  106. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/custom-proposer.md +0 -0
  107. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
  108. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
  109. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/reading-traces.md +0 -0
  110. {cmpnd-0.86.1 → cmpnd-0.88.0}/docs/sdk-instrumentation.md +0 -0
  111. {cmpnd-0.86.1 → cmpnd-0.88.0}/examples/generalizing_proposer.py +0 -0
  112. {cmpnd-0.86.1 → cmpnd-0.88.0}/examples/local_ollama.py +0 -0
  113. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/LINEAGE.md +0 -0
  114. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/README.md +0 -0
  115. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/__init__.py +0 -0
  116. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/bodies.py +0 -0
  117. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/client_floor.py +0 -0
  118. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/exporter_http.py +0 -0
  119. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/program_names.py +0 -0
  120. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/protocols.py +0 -0
  121. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/py.typed +0 -0
  122. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/request_log.py +0 -0
  123. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/retry.py +0 -0
  124. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/span_context.py +0 -0
  125. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/trace_facts.py +0 -0
  126. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/cmpnd_ingest/user_agent.py +0 -0
  127. {cmpnd-0.86.1 → cmpnd-0.88.0}/ingest/pyproject.toml +0 -0
  128. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/audit-sdist.sh +0 -0
  129. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/capture_review_run.py +0 -0
  130. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/check-pip-install.sh +0 -0
  131. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/check_release_artifacts.py +0 -0
  132. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/fixtures/review_run.json.gz +0 -0
  133. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/gepa_resume_bug.py +0 -0
  134. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/install-test-env.sh +0 -0
  135. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/release-gate.sh +0 -0
  136. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/release-real-models.sh +0 -0
  137. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/require_version_bump.py +0 -0
  138. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/seed_review_run.py +0 -0
  139. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/selfhost_compat.py +0 -0
  140. {cmpnd-0.86.1 → cmpnd-0.88.0}/scripts/test-in-linux.sh +0 -0
  141. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/__init__.pyi +0 -0
  142. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/primitives/__init__.pyi +0 -0
  143. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/primitives/prediction.pyi +0 -0
  144. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/utils/__init__.pyi +0 -0
  145. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/utils/callback.pyi +0 -0
  146. {cmpnd-0.86.1 → cmpnd-0.88.0}/stubs/dspy/utils/dummies.pyi +0 -0
  147. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/__init__.py +0 -0
  148. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_credential_route.py +0 -0
  149. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_deployment_signature_helpers.py +0 -0
  150. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_exporter_helpers.py +0 -0
  151. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_fake_clock.py +0 -0
  152. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_identity_helpers.py +0 -0
  153. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_resolve_refs.py +0 -0
  154. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/_traced_run.py +0 -0
  155. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/conftest.py +0 -0
  156. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/__init__.py +0 -0
  157. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/committee_task.py +0 -0
  158. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/conftest.py +0 -0
  159. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/continuation_task.py +0 -0
  160. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/data/committee_train.ndjson.gz +0 -0
  161. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/data/committee_val.ndjson.gz +0 -0
  162. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/fake_lm.py +0 -0
  163. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/helpers.py +0 -0
  164. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/target_capabilities.py +0 -0
  165. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_assessments_cli.py +0 -0
  166. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_capture_prompts.py +0 -0
  167. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_composite_module.py +0 -0
  168. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_dataset_auto_creation.py +0 -0
  169. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_deploy_execute.py +0 -0
  170. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_deploy_pandas.py +0 -0
  171. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_deploy_programs.py +0 -0
  172. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_edge_cases.py +0 -0
  173. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_example_hash.py +0 -0
  174. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_gepa_optimization.py +0 -0
  175. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_interpreter_spans.py +0 -0
  176. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_lm_accuracy.py +0 -0
  177. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_module_tracing.py +0 -0
  178. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimization_lineage.py +0 -0
  179. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimization_metric_identity.py +0 -0
  180. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_authored_metric.py +0 -0
  181. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_custom_proposer.py +0 -0
  182. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_failures.py +0 -0
  183. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_loop.py +0 -0
  184. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_review_committee.py +0 -0
  185. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
  186. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_parallel_export.py +0 -0
  187. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_project_attribution.py +0 -0
  188. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_react_tool_spans.py +0 -0
  189. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_save_load.py +0 -0
  190. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_trace_structure.py +0 -0
  191. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_traces_read.py +0 -0
  192. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_user_attribution.py +0 -0
  193. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/e2e/test_valsets_cli.py +0 -0
  194. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/01_predict_qa.json +0 -0
  195. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
  196. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
  197. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/04_predict_richer_types.json +0 -0
  198. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
  199. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/06_multichaincomparison.json +0 -0
  200. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/07_program_of_thought.json +0 -0
  201. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/08_opaque_module.json +0 -0
  202. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
  203. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/10_react.json +0 -0
  204. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/11_refine.json +0 -0
  205. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/12_retrieve.json +0 -0
  206. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/13_knn.json +0 -0
  207. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/14_parallel.json +0 -0
  208. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/identity_vectors/README.md +0 -0
  209. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/ingest_conformance.py +0 -0
  210. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/__init__.py +0 -0
  211. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/authored_optimize/judge.py +0 -0
  212. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
  213. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/conftest.py +0 -0
  214. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
  215. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/hosted_optimize_probe.py +0 -0
  216. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/optimization_run_probe.py +0 -0
  217. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/test_cli_deploy_smoketest.py +0 -0
  218. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/test_logs_renders_traces.py +0 -0
  219. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/test_optimization_run.py +0 -0
  220. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/test_optimizing_progress.py +0 -0
  221. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/integration/test_unhappy_path.py +0 -0
  222. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/lm15_prompt_fixture.py +0 -0
  223. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/lm15_prompts/four_turn_predict.json +0 -0
  224. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/lm15_prompts/rlm_six_turns.json +0 -0
  225. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/__init__.py +0 -0
  226. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/__main__.py +0 -0
  227. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/drain.py +0 -0
  228. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/ingest.py +0 -0
  229. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/latency_transport.py +0 -0
  230. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/rlm_shape.py +0 -0
  231. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/rlm_size_report.py +0 -0
  232. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/sweep.py +0 -0
  233. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/test_rlm_shape.py +0 -0
  234. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/load/test_rlm_size_report.py +0 -0
  235. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/__init__.py +0 -0
  236. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/conftest.py +0 -0
  237. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/seed_parity.py +0 -0
  238. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_auth.py +0 -0
  239. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_datasets.py +0 -0
  240. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_deployments.py +0 -0
  241. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_evals.py +0 -0
  242. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_health.py +0 -0
  243. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_modules.py +0 -0
  244. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_optimizations.py +0 -0
  245. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_signatures.py +0 -0
  246. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_trace_streaming.py +0 -0
  247. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/parity/test_traces.py +0 -0
  248. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/__init__.py +0 -0
  249. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/_provider.py +0 -0
  250. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/_readiness.py +0 -0
  251. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/_reliability.py +0 -0
  252. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/_result.py +0 -0
  253. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/mint_bedrock_token.py +0 -0
  254. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_bedrock_converse.py +0 -0
  255. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_deploy_programs.py +0 -0
  256. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_multi_client_stress.py +0 -0
  257. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_optimize_client_committee.py +0 -0
  258. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_optimize_continuation.py +0 -0
  259. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_optimize_loop.py +0 -0
  260. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_optimize_loop_wasm.py +0 -0
  261. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_optimize_stress.py +0 -0
  262. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_provider_roles.py +0 -0
  263. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_readiness.py +0 -0
  264. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_real_provider_twins.py +0 -0
  265. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_reliability.py +0 -0
  266. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_reliability_classify.py +0 -0
  267. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_rlm_wasm.py +0 -0
  268. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/real_models/test_trace_search.py +0 -0
  269. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/span_reference_fixture.py +0 -0
  270. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_adapter_reentrancy.py +0 -0
  271. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_assessments_api.py +0 -0
  272. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored.py +0 -0
  273. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored_binding_credentials.py +0 -0
  274. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored_bundle_collisions.py +0 -0
  275. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored_metric_contract.py +0 -0
  276. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored_named_models.py +0 -0
  277. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_authored_optimize.py +0 -0
  278. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_callback.py +0 -0
  279. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_candidate_lineage.py +0 -0
  280. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/__init__.py +0 -0
  281. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/conftest.py +0 -0
  282. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_admin.py +0 -0
  283. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_api_client.py +0 -0
  284. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_assessments.py +0 -0
  285. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_auth.py +0 -0
  286. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_credentials.py +0 -0
  287. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_datasets.py +0 -0
  288. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_deployment_runs.py +0 -0
  289. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_deployments.py +0 -0
  290. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_evals.py +0 -0
  291. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_login.py +0 -0
  292. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_main.py +0 -0
  293. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_optimizations.py +0 -0
  294. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_org.py +0 -0
  295. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_pagination.py +0 -0
  296. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_parity.py +0 -0
  297. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_provider_credentials.py +0 -0
  298. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_schema_sample.py +0 -0
  299. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_tool_servers.py +0 -0
  300. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_top.py +0 -0
  301. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_traces.py +0 -0
  302. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_traces_program_and_module.py +0 -0
  303. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_traces_search_wire.py +0 -0
  304. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_tree_help.py +0 -0
  305. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cli/test_valsets.py +0 -0
  306. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_client.py +0 -0
  307. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_client_floor.py +0 -0
  308. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_clustering/__init__.py +0 -0
  309. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_clustering/conftest.py +0 -0
  310. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_clustering/test_edge_cases.py +0 -0
  311. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_clustering/test_hash_consistency.py +0 -0
  312. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_clustering/test_type_conversion.py +0 -0
  313. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_cmp551_grouping_identity.py +0 -0
  314. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_configuration.py +0 -0
  315. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_context.py +0 -0
  316. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_context_propagation.py +0 -0
  317. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_credential_kwargs.py +0 -0
  318. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_credential_selection.py +0 -0
  319. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_credential_values.py +0 -0
  320. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_dataset_polling.py +0 -0
  321. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_dataset_sync.py +0 -0
  322. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_datasets.py +0 -0
  323. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_decision_client_spans.py +0 -0
  324. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_decorators.py +0 -0
  325. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deploy.py +0 -0
  326. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deploy_mcp_tool_references.py +0 -0
  327. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deploy_program_id.py +0 -0
  328. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deployment_metadata.py +0 -0
  329. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deployment_runs.py +0 -0
  330. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_deployments_read.py +0 -0
  331. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_eval.py +0 -0
  332. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_eval_example_attribution.py +0 -0
  333. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_eval_program_id.py +0 -0
  334. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_eval_start.py +0 -0
  335. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_eval_trace_grouping.py +0 -0
  336. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_exception_paths.py +0 -0
  337. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_execute.py +0 -0
  338. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_exporter.py +0 -0
  339. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_exporter_program_names.py +0 -0
  340. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_exporter_queue.py +0 -0
  341. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_exporter_real.py +0 -0
  342. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_fake_lm.py +0 -0
  343. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_gepa_callback.py +0 -0
  344. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_gepa_integration.py +0 -0
  345. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_gepa_output_normalization.py +0 -0
  346. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_gepa_resume.py +0 -0
  347. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_identity.py +0 -0
  348. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_imaging.py +0 -0
  349. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_import_weight.py +0 -0
  350. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_ingest_conformance.py +0 -0
  351. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_ingest_second_producer.py +0 -0
  352. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_integration.py +0 -0
  353. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_interpreter_callback.py +0 -0
  354. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_ir_encoder_properties.py +0 -0
  355. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_ir_golden_vectors.py +0 -0
  356. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_ir_roundtrip.py +0 -0
  357. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_lm15_native_calls.py +0 -0
  358. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_lm15_prompt_fixtures.py +0 -0
  359. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_lm15_prompt_references.py +0 -0
  360. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_lm_configuration.py +0 -0
  361. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_lm_usage_shapes.py +0 -0
  362. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_mcp_tools.py +0 -0
  363. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_models.py +0 -0
  364. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_multi_client_stress_readiness.py +0 -0
  365. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_no_signature_hash_on_the_wire.py +0 -0
  366. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimization_phase_callback.py +0 -0
  367. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimization_program_names.py +0 -0
  368. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimization_progress.py +0 -0
  369. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimization_start.py +0 -0
  370. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize.py +0 -0
  371. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_budget.py +0 -0
  372. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_lift.py +0 -0
  373. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_lms.py +0 -0
  374. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_proposer.py +0 -0
  375. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_reflection_lm.py +0 -0
  376. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_optimize_terminal_failure.py +0 -0
  377. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_packaging.py +0 -0
  378. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_packaging_callable_source.py +0 -0
  379. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_packaging_mcp_tools.py +0 -0
  380. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_packaging_program_source.py +0 -0
  381. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_poll_until.py +0 -0
  382. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_program_id_deprecation.py +0 -0
  383. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_program_identity.py +0 -0
  384. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_program_names_in_deploy.py +0 -0
  385. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_program_naming.py +0 -0
  386. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_programs_create.py +0 -0
  387. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_project_payload.py +0 -0
  388. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_real_provider_twins_readiness.py +0 -0
  389. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_reflector_properties.py +0 -0
  390. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_reflector_smoke.py +0 -0
  391. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_release_gate_script.py +0 -0
  392. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_release_real_models_script.py +0 -0
  393. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_replaced_names.py +0 -0
  394. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_repro_reactv2_bugs.py +0 -0
  395. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_require_version_bump.py +0 -0
  396. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_retry.py +0 -0
  397. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_reversible_failures.py +0 -0
  398. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_rlm_patch.py +0 -0
  399. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_runtime_tools.py +0 -0
  400. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_schemas.py +0 -0
  401. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_seal_lm_credential.py +0 -0
  402. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_seed_review_run.py +0 -0
  403. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_signature_inputs.py +0 -0
  404. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_span_references.py +0 -0
  405. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_span_sent_once.py +0 -0
  406. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_span_submission.py +0 -0
  407. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_span_submission_wire_contract.py +0 -0
  408. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_system_one.py +0 -0
  409. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_token_attribution.py +0 -0
  410. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_trace_context_concurrency.py +0 -0
  411. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_trace_fact_wire_contract.py +0 -0
  412. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_trace_facts.py +0 -0
  413. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_trace_render.py +0 -0
  414. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_traces_read.py +0 -0
  415. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_tracked_gepa.py +0 -0
  416. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_tracker_enrich.py +0 -0
  417. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_truncation.py +0 -0
  418. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_upload_auth_headers.py +0 -0
  419. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_user_agent.py +0 -0
  420. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_valsets_api.py +0 -0
  421. {cmpnd-0.86.1 → cmpnd-0.88.0}/tests/test_xxh64.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cmpnd
3
- Version: 0.86.1
3
+ Version: 0.88.0
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>
@@ -19,7 +19,6 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Requires-Python: >=3.11
20
20
  Requires-Dist: dspy>=3.3.0
21
21
  Requires-Dist: httpx>=0.27.0
22
- Requires-Dist: ipython>=8.20
23
22
  Requires-Dist: pydantic>=2.0
24
23
  Requires-Dist: typing-extensions>=4.1.0
25
24
  Requires-Dist: xxhash>=3.0.0
@@ -28,6 +27,7 @@ Requires-Dist: basedpyright>=1.39; extra == 'dev'
28
27
  Requires-Dist: boto3>=1.34; extra == 'dev'
29
28
  Requires-Dist: gepa; extra == 'dev'
30
29
  Requires-Dist: hypothesis>=6.100; extra == 'dev'
30
+ Requires-Dist: ipython>=8.20; extra == 'dev'
31
31
  Requires-Dist: jsonschema>=4.0; extra == 'dev'
32
32
  Requires-Dist: litellm; extra == 'dev'
33
33
  Requires-Dist: litellm<1.102; (python_version >= '3.15') and extra == 'dev'
@@ -47,6 +47,8 @@ Requires-Dist: pillow>=10.0; extra == 'images'
47
47
  Provides-Extra: mcp
48
48
  Requires-Dist: dspy>=3.3.1; extra == 'mcp'
49
49
  Requires-Dist: mcp>=1.9; extra == 'mcp'
50
+ Provides-Extra: shell
51
+ Requires-Dist: ipython>=8.20; extra == 'shell'
50
52
  Description-Content-Type: text/markdown
51
53
 
52
54
  # cmpnd
@@ -61,6 +63,10 @@ deployments and optimization runs under that name.
61
63
  uv add cmpnd # or: pip install cmpnd
62
64
  ```
63
65
 
66
+ The interactive `cmpnd` shell uses IPython when you install the `shell` extra:
67
+ `uv add 'cmpnd[shell]'` or `pip install 'cmpnd[shell]'`. The plain install
68
+ leaves IPython out, and the shell then runs on the standard Python prompt.
69
+
64
70
  ## Authentication
65
71
 
66
72
  The `cmpnd` library works with the cmpnd service at
@@ -10,6 +10,10 @@ deployments and optimization runs under that name.
10
10
  uv add cmpnd # or: pip install cmpnd
11
11
  ```
12
12
 
13
+ The interactive `cmpnd` shell uses IPython when you install the `shell` extra:
14
+ `uv add 'cmpnd[shell]'` or `pip install 'cmpnd[shell]'`. The plain install
15
+ leaves IPython out, and the shell then runs on the standard Python prompt.
16
+
13
17
  ## Authentication
14
18
 
15
19
  The `cmpnd` library works with the cmpnd service at
@@ -18,7 +18,7 @@ from typing import TYPE_CHECKING
18
18
  from cmpnd_ingest.client_floor import UpgradeRequiredWarning
19
19
 
20
20
  from . import authored, credentials, programs, traces
21
- from ._http import ApiError
21
+ from ._http import ApiError, Remedy, RemedyStep
22
22
  from .callback import CmpndCallback, trace_id
23
23
  from .client import Client
24
24
  from .configuration import configure, get_config, require_config
@@ -37,7 +37,7 @@ from .deployment_metadata import (
37
37
  DeploymentSignatureResponse,
38
38
  UnsupportedDeploymentMetadataVersion,
39
39
  )
40
- from .deployment_runs import RunNotSubmitted, RunResultExpired, RunSubmissionUncertain, RunWaitTimeout
40
+ from .deployment_runs import RunNotSubmitted, RunRefused, RunResultExpired, RunSubmissionUncertain, RunWaitTimeout
41
41
  from .execution import DeployedProgram, RetryableProviderError
42
42
  from .exporter import flush_exporter, shutdown_exporter
43
43
  from .lm_configuration import HostedLM, SystemOne, configure_lm
@@ -50,6 +50,7 @@ from .mcp_servers import (
50
50
  mcp_tools,
51
51
  )
52
52
  from .models import SpanBuilder, SpanType, TraceBuilder, TraceStatus
53
+ from .versions import ProgramAddress
53
54
 
54
55
  if TYPE_CHECKING:
55
56
  # Loaded on first use by __getattr__ below, because their module imports dspy.
@@ -106,6 +107,8 @@ __all__ = [
106
107
  "program",
107
108
  "authored",
108
109
  "ApiError",
110
+ "Remedy",
111
+ "RemedyStep",
109
112
  # Raised once when the server no longer supports this release
110
113
  "UpgradeRequiredWarning",
111
114
  # Types
@@ -121,10 +124,12 @@ __all__ = [
121
124
  "UnsupportedDeploymentMetadataVersion",
122
125
  "RunSubmissionUncertain",
123
126
  "RunNotSubmitted",
127
+ "RunRefused",
124
128
  "RunWaitTimeout",
125
129
  "RunResultExpired",
126
130
  "DeployedProgram",
127
131
  "RetryableProviderError",
132
+ "ProgramAddress",
128
133
  # Optimize
129
134
  "OptimizeError",
130
135
  "OptimizeFailed",
@@ -0,0 +1,3 @@
1
+ """Links to the SDK's guides, which errors and warnings name. Imports nothing."""
2
+
3
+ VERSIONS_GUIDE = "https://github.com/cmpnd-ai/cmpnd-platform/blob/main/python-sdk/docs/versions.md"
@@ -12,6 +12,7 @@ from __future__ import annotations
12
12
 
13
13
  import os
14
14
  import re
15
+ from dataclasses import dataclass
15
16
  from typing import Any
16
17
  from urllib.parse import urlsplit
17
18
 
@@ -19,12 +20,73 @@ import httpx
19
20
  from cmpnd_ingest import client_floor, user_agent
20
21
 
21
22
 
23
+ @dataclass(frozen=True)
24
+ class RemedyStep:
25
+ """One step that clears a refusal: a ``command`` to run, or a ``snippet`` of code to add.
26
+
27
+ ``kind`` is ``"command"`` or ``"code"``. A ``<name>`` in either is a value the user
28
+ chooses.
29
+ """
30
+
31
+ kind: str
32
+ command: str | None = None
33
+ language: str | None = None
34
+ snippet: str | None = None
35
+
36
+ def __str__(self) -> str:
37
+ return self.command or self.snippet or ""
38
+
39
+ def as_json(self) -> dict[str, str]:
40
+ out = {"kind": self.kind}
41
+ for key in ("command", "language", "snippet"):
42
+ if (value := getattr(self, key)) is not None:
43
+ out[key] = value
44
+ return out
45
+
46
+
47
+ @dataclass(frozen=True)
48
+ class Remedy:
49
+ """The steps that clear a versioning refusal, and the guide's section for its code."""
50
+
51
+ steps: tuple[RemedyStep, ...]
52
+ docs_url: str | None = None
53
+
54
+ @classmethod
55
+ def from_body(cls, body: object) -> Remedy | None:
56
+ """The ``remedy`` of a refusal's JSON body, or None when it has none."""
57
+ raw = body.get("remedy") if isinstance(body, dict) else None
58
+ if not isinstance(raw, dict):
59
+ return None
60
+ steps: list[RemedyStep] = []
61
+ for step in raw.get("steps") or []:
62
+ if not isinstance(step, dict) or not isinstance(step.get("kind"), str):
63
+ continue
64
+ fields = {k: step[k] for k in ("command", "language", "snippet") if isinstance(step.get(k), str)}
65
+ steps.append(RemedyStep(kind=step["kind"], **fields))
66
+ url = raw.get("docs_url")
67
+ return cls(steps=tuple(steps), docs_url=url if isinstance(url, str) else None)
68
+
69
+ def as_json(self) -> dict[str, Any]:
70
+ """The remedy in the shape serve sends it."""
71
+ return {"steps": [s.as_json() for s in self.steps], "docs_url": self.docs_url}
72
+
73
+ def describe(self) -> str:
74
+ """The steps as lines to copy, then the guide's URL."""
75
+ lines = [f" {s}" for s in self.steps if str(s)]
76
+ if self.docs_url:
77
+ lines.append(f"See {self.docs_url}")
78
+ return "\n".join(lines)
79
+
80
+
22
81
  class ApiError(Exception):
23
82
  """An error from a cmpnd backend request.
24
83
 
25
84
  ``status_code`` is the HTTP status when the server answered one, or ``None``
26
- for a transport-level failure (could not connect, timed out). ``exit_code``
27
- is the process exit the CLI maps the error to; the library client ignores it.
85
+ for a transport-level failure (could not connect, timed out). ``error_code``
86
+ is the code serve sent with a refusal, such as ``unknown_tag``, for a caller to
87
+ branch on, ``remedy`` holds the steps that clear a versioning refusal, and
88
+ ``detail`` is the refusal's JSON body. ``exit_code`` is the
89
+ process exit the CLI maps the error to; the library client ignores it.
28
90
  """
29
91
 
30
92
  def __init__(
@@ -34,10 +96,19 @@ class ApiError(Exception):
34
96
  *,
35
97
  status_code: int | None = None,
36
98
  deployment_run_id: str | None = None,
99
+ error_code: str | None = None,
100
+ detail: dict[str, Any] | None = None,
101
+ remedy: Remedy | None = None,
37
102
  ):
38
103
  super().__init__(message)
39
104
  self.exit_code = exit_code
40
105
  self.status_code = status_code
106
+ self.error_code = error_code
107
+ self.detail = detail or {}
108
+ self.remedy = remedy if remedy is not None else Remedy.from_body(self.detail)
109
+ # Set once a CLI command printed this error as its JSON answer, so the
110
+ # top-level handler prints no second document.
111
+ self._cmpnd_json_reported = False
41
112
  self._cmpnd_deployment_run_id = deployment_run_id
42
113
 
43
114
 
@@ -57,6 +128,15 @@ def _body_deployment_run_id(body: object) -> str | None:
57
128
  return None
58
129
 
59
130
 
131
+ def _json_object(response: httpx.Response) -> dict[str, Any]:
132
+ """A response's JSON body when it is an object, else an empty dict."""
133
+ try:
134
+ body = response.json()
135
+ except ValueError:
136
+ return {}
137
+ return body if isinstance(body, dict) else {}
138
+
139
+
60
140
  def server_detail(response: httpx.Response) -> str:
61
141
  """The server's own message for a failed request, for the error text.
62
142
 
@@ -228,7 +308,16 @@ class ApiClient:
228
308
  def error(message: str, exit_code: int = 1) -> ApiError:
229
309
  if run_id:
230
310
  message += f"\nDeployment run: {run_id}"
231
- return ApiError(message, exit_code, status_code=response.status_code, deployment_run_id=run_id)
311
+ detail = _json_object(response)
312
+ code = detail.get("error_code")
313
+ return ApiError(
314
+ message,
315
+ exit_code,
316
+ status_code=response.status_code,
317
+ deployment_run_id=run_id,
318
+ error_code=code if isinstance(code, str) else None,
319
+ detail=detail,
320
+ )
232
321
 
233
322
  if response.status_code == 401:
234
323
  raise error("Invalid or missing API key. Check CMPND_API_KEY or --api-key.")
@@ -23,6 +23,12 @@ composite ``Module`` path and the bare ``Predict`` path — to round-trip the ta
23
23
  under a namespaced carrier key. Installed lazily from
24
24
  ``cmpnd.auto_instrument()`` alongside ``patch_gepa()``.
25
25
 
26
+ The carrier also names the version a program is: the ``d_`` id of the
27
+ deployment an optimization's result became. Serve writes it into the compiled
28
+ program it hands out (``GET /api/v1/optimizations/{id}/compiled-program``), so a
29
+ program loaded from that state carries ``_cmpnd_deployment_id`` and its traces
30
+ name the version they ran.
31
+
26
32
  The carrier is a single reserved top-level key (the same shape DSPy itself uses
27
33
  for its sibling ``metadata`` key). Stock ``Module.load_state`` ignores it (it
28
34
  reads only parameter names); ``Predict.load_state`` ``setattr``s every key, so
@@ -38,6 +44,7 @@ from typing import Any
38
44
  # so it can't collide with a DSPy named-parameter path.
39
45
  _LINEAGE_KEY = "_cmpnd"
40
46
  _RUN_ID_FIELD = "optimization_run_id"
47
+ _VERSION_FIELD = "deployment_id"
41
48
 
42
49
  _patched = False
43
50
  # The original dump_state/load_state per patched class, stashed so de_instrument
@@ -47,19 +54,36 @@ _originals: list[tuple[Any, str, Any]] | None = None
47
54
 
48
55
  def _inject(state: Any, module: Any) -> Any:
49
56
  """Add the lineage carrier to a dumped state dict when the module is tagged."""
57
+ carrier: dict[str, str] = {}
50
58
  run_id = getattr(module, "_optimization_run_id", None)
51
- if run_id is not None and isinstance(state, dict):
52
- state[_LINEAGE_KEY] = {_RUN_ID_FIELD: str(run_id)}
59
+ if run_id is not None:
60
+ carrier[_RUN_ID_FIELD] = str(run_id)
61
+ version = getattr(module, "_cmpnd_deployment_id", None)
62
+ if version is not None:
63
+ carrier[_VERSION_FIELD] = str(version)
64
+ if carrier and isinstance(state, dict):
65
+ state[_LINEAGE_KEY] = carrier
53
66
  return state
54
67
 
55
68
 
56
69
  def _restore(state: Any, module: Any) -> None:
57
- """Re-attach ``_optimization_run_id`` from a loaded state dict's carrier."""
70
+ """Re-attach the run and the version from a loaded state dict's carrier.
71
+
72
+ The version follows the loaded state: a state that names none clears the one an
73
+ earlier load attached, so the module's traces never claim a version it no
74
+ longer is.
75
+ """
58
76
  if not isinstance(state, dict):
59
77
  return
60
78
  carrier = state.get(_LINEAGE_KEY)
61
- if isinstance(carrier, dict) and carrier.get(_RUN_ID_FIELD):
79
+ if not isinstance(carrier, dict):
80
+ carrier = {}
81
+ if carrier.get(_RUN_ID_FIELD):
62
82
  module._optimization_run_id = str(carrier[_RUN_ID_FIELD])
83
+ if carrier.get(_VERSION_FIELD):
84
+ module._cmpnd_deployment_id = str(carrier[_VERSION_FIELD])
85
+ elif "_cmpnd_deployment_id" in vars(module):
86
+ del module._cmpnd_deployment_id
63
87
 
64
88
 
65
89
  # The wrappers forward *args/**kwargs verbatim rather than naming dump_state's
@@ -9,7 +9,18 @@ from datetime import datetime, timezone
9
9
  from typing import Any
10
10
  from uuid import UUID, uuid4
11
11
 
12
- from . import configuration, context, eval_handler, exporter, helpers, identity, models, program_naming, references
12
+ from . import (
13
+ _guides,
14
+ configuration,
15
+ context,
16
+ eval_handler,
17
+ exporter,
18
+ helpers,
19
+ identity,
20
+ models,
21
+ program_naming,
22
+ references,
23
+ )
13
24
 
14
25
  logger = logging.getLogger(__name__)
15
26
 
@@ -52,10 +63,12 @@ def _warn_once_about_generated_name(trace: models.TraceBuilder) -> None:
52
63
  _warned_unnamed = True
53
64
  logger.warning(
54
65
  "cmpnd: this program has no name, so its traces go to the program named %r, a name cmpnd generated from "
55
- "its class and its signature. Name the program with @cmpnd.program(name) or "
56
- "cmpnd.Program(name, module=..., lm=...) and run it through a cmpnd.Client, and its traces go to the program "
57
- "with that name. This warning appears once per process.",
66
+ "its class and its signature, and only a named program deploys. Add the line "
67
+ '@cmpnd.program("<name>") above its class, or wrap it as cmpnd.Program(name, module=..., lm=...), and run it '
68
+ "through a cmpnd.Client, and its traces go to the program with that name. %s "
69
+ "This warning appears once per process.",
58
70
  trace.generated_name,
71
+ _guides.VERSIONS_GUIDE,
59
72
  )
60
73
 
61
74
 
@@ -1441,6 +1454,12 @@ class _ModuleMixin(_CallbackBase):
1441
1454
  # Detect if this is a compiled program (from optimization)
1442
1455
  if hasattr(instance, "_optimization_run_id"):
1443
1456
  trace.compiled_from_run_id = str(instance._optimization_run_id)
1457
+ # A program loaded from an optimization's downloaded result names the
1458
+ # version it is, the d_ id serve put in the state's carrier. A deployment
1459
+ # the trace already runs under names it instead.
1460
+ version = getattr(instance, "_cmpnd_deployment_id", None)
1461
+ if version is not None and trace.deployment_id is None:
1462
+ trace.deployment_id = str(version)
1444
1463
 
1445
1464
  # Capture active demo IDs if available
1446
1465
  demos = getattr(instance, "demos", None)
@@ -11,6 +11,7 @@ import typing
11
11
 
12
12
  import httpx
13
13
 
14
+ from .. import _http
14
15
  from . import api_client, deprecation, tree_help
15
16
  from .commands import (
16
17
  admin,
@@ -218,7 +219,7 @@ def main() -> None:
218
219
  if result is not None:
219
220
  print(json.dumps(result, indent=2, default=str))
220
221
  except api_client.CliError as e:
221
- print(f"Error: {e}", file=sys.stderr)
222
+ report_refusal(e, as_json=bool(getattr(args, "json", False)))
222
223
  sys.exit(e.exit_code)
223
224
  except KeyboardInterrupt:
224
225
  sys.exit(130)
@@ -231,6 +232,13 @@ def main() -> None:
231
232
  # of dumping a Python traceback at users.
232
233
  print(f"Error: {e}", file=sys.stderr)
233
234
  sys.exit(1)
235
+ except httpx.HTTPStatusError as e:
236
+ # A run refusal (`deployment_runs.RunRefused`) carries serve's remedy.
237
+ if isinstance(getattr(e, "remedy", None), _http.Remedy):
238
+ report_refusal(e, as_json=bool(getattr(args, "json", False)))
239
+ else:
240
+ print(f"Error: HTTP request failed: {e}", file=sys.stderr)
241
+ sys.exit(1)
234
242
  except httpx.HTTPError as e:
235
243
  # Last-resort guard for any httpx-level error not caught upstream.
236
244
  # If this fires, an HTTP call site is missing a `_raise_http_error`
@@ -238,3 +246,23 @@ def main() -> None:
238
246
  # then don't traceback at the user.
239
247
  print(f"Error: HTTP request failed: {e}", file=sys.stderr)
240
248
  sys.exit(1)
249
+
250
+
251
+ def report_refusal(error: BaseException, *, as_json: bool) -> None:
252
+ """Print a refusal and the steps that clear it, as commands to copy.
253
+
254
+ Under ``--json`` the error, its code and its remedy go to stdout as one JSON
255
+ object, the remedy as serve sent it, and the prose still goes to stderr.
256
+ """
257
+ print(f"Error: {error}", file=sys.stderr)
258
+ remedy = getattr(error, "remedy", None)
259
+ if not isinstance(remedy, _http.Remedy):
260
+ return
261
+ if as_json and getattr(error, "_cmpnd_json_reported", False):
262
+ return
263
+ if as_json:
264
+ out = {"error": str(error), "error_code": getattr(error, "error_code", None), "remedy": remedy.as_json()}
265
+ print(json.dumps(out, indent=2))
266
+ return
267
+ if steps := remedy.describe():
268
+ print("To fix it:\n" + steps, file=sys.stderr)
@@ -39,7 +39,7 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
39
39
  deprecation.alias(sub, "get", "show", func=handle_show, configure=_id_arg)
40
40
 
41
41
  run = sub.add_parser("run", help="Submit a deployment run with a JSON input body")
42
- run.add_argument("id", help="Deployment UUID (or unambiguous prefix)")
42
+ run.add_argument("id", help="A deployment id, or a program address: NAME, NAME:TAG or NAME@d_...")
43
43
  run.add_argument(
44
44
  "body",
45
45
  help=(
@@ -107,9 +107,15 @@ def handle_run(client: api_client.ApiClient, args: Any) -> Any:
107
107
  except json.JSONDecodeError as exc:
108
108
  raise api_client.CliError(f"Invalid JSON for run body: {exc}")
109
109
  try:
110
+ from ... import versions
111
+
112
+ try:
113
+ target = versions.parse_target(args.id)
114
+ except ValueError as exc:
115
+ raise api_client.CliError(str(exc)) from exc
110
116
  accepted, output = submit_cli_run(
111
117
  client,
112
- args.id,
118
+ target,
113
119
  body,
114
120
  timeout=getattr(args, "timeout", None),
115
121
  asynchronous=getattr(args, "asynchronous", False),
@@ -171,15 +177,29 @@ def run_body(body: object) -> dict[str, Any]:
171
177
 
172
178
 
173
179
  def submit_cli_run(
174
- client: api_client.ApiClient, deployment_id: str, body: object, *, timeout: float | None, asynchronous: bool
180
+ client: api_client.ApiClient, target: Any, body: object, *, timeout: float | None, asynchronous: bool
175
181
  ) -> tuple[dict[str, Any], Any]:
176
- """Share one POST and one result interpretation across the CLI run verbs."""
182
+ """Share one POST and one result interpretation across the CLI run verbs.
183
+
184
+ ``target`` is a deployment id or a ``cmpnd.versions.ProgramAddress``, whose
185
+ run route serve resolves when it accepts the run.
186
+ """
187
+ from ... import versions
188
+
177
189
  request = run_body(body)
178
190
  deadline = local_budget(client, timeout)
179
191
  run_id: str | None = None
192
+ deployment_id = str(target)
193
+ path = None
194
+ if isinstance(target, versions.ProgramAddress):
195
+ # A lookup the address needs spends the run's budget, not the client's own timeout.
196
+ lookups = api_client.ApiClient(
197
+ client._api_key, client._endpoint, timeout=deployment_runs.lookup_timeout(deadline)
198
+ )
199
+ path = versions.run_path(lookups, target)
180
200
  try:
181
201
  with deployment_runs._RunClient(client._endpoint, client._api_key) as runs:
182
- accepted = runs.submit(deployment_id, request, deadline, wait=not asynchronous)
202
+ accepted = runs.submit(deployment_id, request, deadline, wait=not asynchronous, path=path)
183
203
  accepted_id: str = accepted["deployment_run_id"]
184
204
  run_id = accepted_id
185
205
  print(f"Deployment run: {accepted_id}", file=sys.stderr)
@@ -207,6 +227,8 @@ def _http_refusal(exc: httpx.HTTPStatusError) -> api_client.CliError:
207
227
  str(exc),
208
228
  status_code=exc.response.status_code,
209
229
  deployment_run_id=getattr(exc, "_cmpnd_deployment_run_id", None),
230
+ error_code=getattr(exc, "error_code", None),
231
+ remedy=getattr(exc, "remedy", None),
210
232
  )
211
233
 
212
234
 
@@ -6,6 +6,7 @@ from argparse import ArgumentParser, _SubParsersAction
6
6
  from typing import Any
7
7
 
8
8
  from .. import api_client, deprecation, pagination
9
+ from . import programs
9
10
 
10
11
 
11
12
  def _add_list_args(p: ArgumentParser) -> None:
@@ -13,6 +14,7 @@ def _add_list_args(p: ArgumentParser) -> None:
13
14
  "--program",
14
15
  dest="program_name",
15
16
  metavar="NAME",
17
+ type=programs.program_slot,
16
18
  help="Only the runs of the program whose current name is NAME",
17
19
  )
18
20
  p.add_argument(
@@ -7,7 +7,7 @@ from argparse import ArgumentParser, _SubParsersAction
7
7
  from typing import Any
8
8
 
9
9
  from .. import api_client, deprecation, pagination, views
10
- from . import top
10
+ from . import programs, top
11
11
 
12
12
 
13
13
  def _add_list_args(p: ArgumentParser) -> None:
@@ -16,7 +16,7 @@ def _add_list_args(p: ArgumentParser) -> None:
16
16
  help="Filter by status (queued, running, completed, failed, cancelled). "
17
17
  "queued lists every run waiting for a slot, in the order they will start, without paging",
18
18
  )
19
- p.add_argument("--program", dest="program_name", help="Filter by program name")
19
+ p.add_argument("--program", dest="program_name", type=programs.program_slot, help="Filter by program name")
20
20
  p.add_argument("--optimizer-type", help="Filter by optimizer type")
21
21
  p.add_argument("--min-score", type=float, help="Minimum best score")
22
22
  pagination.add_args(p, with_page_aliases=True, default_limit=50)
@@ -203,7 +203,7 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
203
203
  "failing-examples",
204
204
  help="Datapoints that fail across a program's optimizations",
205
205
  )
206
- failing.add_argument("--program", dest="program", required=True, help="Program name")
206
+ failing.add_argument("--program", dest="program", required=True, type=programs.program_slot, help="Program name")
207
207
  failing.add_argument(
208
208
  "--min-failures",
209
209
  dest="min_failures",