cmpnd 0.122.0__tar.gz → 0.122.2__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 (545) hide show
  1. {cmpnd-0.122.0 → cmpnd-0.122.2}/PKG-INFO +1 -1
  2. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/lm_configuration.py +8 -0
  3. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimizers/tracker.py +7 -0
  4. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/evals.md +6 -0
  5. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/sdk-instrumentation.md +9 -3
  6. {cmpnd-0.122.0 → cmpnd-0.122.2}/pyproject.toml +1 -1
  7. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/conftest.py +6 -0
  8. cmpnd-0.122.2/tests/e2e/optimization_evidence.py +154 -0
  9. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_authored_metric.py +33 -6
  10. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_custom_proposer.py +52 -14
  11. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_lm_configuration.py +22 -0
  12. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_schemas.py +94 -0
  13. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_tracker_enrich.py +15 -0
  14. {cmpnd-0.122.0 → cmpnd-0.122.2}/uv.lock +85 -86
  15. {cmpnd-0.122.0 → cmpnd-0.122.2}/.gitignore +0 -0
  16. {cmpnd-0.122.0 → cmpnd-0.122.2}/AGENTS.md +0 -0
  17. {cmpnd-0.122.0 → cmpnd-0.122.2}/CLAUDE.md +0 -0
  18. {cmpnd-0.122.0 → cmpnd-0.122.2}/README.md +0 -0
  19. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/LINEAGE.md +0 -0
  20. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/__init__.py +0 -0
  21. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_account.py +0 -0
  22. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_assessments.py +0 -0
  23. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_authored_import.py +0 -0
  24. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_deployments.py +0 -0
  25. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_exporter_pool.py +0 -0
  26. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_gepa_patch.py +0 -0
  27. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_http.py +0 -0
  28. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_label_vocabulary.py +0 -0
  29. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_program_patch.py +0 -0
  30. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_provider_types.py +0 -0
  31. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_provider_writes.py +0 -0
  32. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_reanchor_evidence.py +0 -0
  33. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_reanchor_patch.py +0 -0
  34. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_runtime_tools.py +0 -0
  35. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_timespec.py +0 -0
  36. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_traces.py +0 -0
  37. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/_valsets.py +0 -0
  38. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/authored.py +0 -0
  39. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/callback.py +0 -0
  40. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/__init__.py +0 -0
  41. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/api_client.py +0 -0
  42. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/__init__.py +0 -0
  43. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/admin.py +0 -0
  44. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/assessments.py +0 -0
  45. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/auth.py +0 -0
  46. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/datasets.py +0 -0
  47. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/deployments.py +0 -0
  48. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/evals.py +0 -0
  49. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/feedback.py +0 -0
  50. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/kernel_lines.py +0 -0
  51. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/labels.py +0 -0
  52. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/login.py +0 -0
  53. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/notices.py +0 -0
  54. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/optimizations.py +0 -0
  55. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/org.py +0 -0
  56. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/programs.py +0 -0
  57. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/provider_credentials.py +0 -0
  58. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/providers.py +0 -0
  59. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/skill.py +0 -0
  60. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/tool_servers.py +0 -0
  61. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/top.py +0 -0
  62. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/traces.py +0 -0
  63. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/commands/valsets.py +0 -0
  64. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/credentials.py +0 -0
  65. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/deprecation.py +0 -0
  66. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/label_args.py +0 -0
  67. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/pagination.py +0 -0
  68. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/shell.py +0 -0
  69. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/__init__.py +0 -0
  70. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
  71. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
  72. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
  73. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/agents.py +0 -0
  74. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/bundle.py +0 -0
  75. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/install.py +0 -0
  76. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/skill/offer.py +0 -0
  77. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/trace_render.py +0 -0
  78. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/tree_help.py +0 -0
  79. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/verbs.py +0 -0
  80. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/cli/views.py +0 -0
  81. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/client.py +0 -0
  82. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/configuration.py +0 -0
  83. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/context.py +0 -0
  84. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/credentials.py +0 -0
  85. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/dataset_sync.py +0 -0
  86. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/datasets.py +0 -0
  87. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/decorators.py +0 -0
  88. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/deployment.py +0 -0
  89. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/deployment_metadata.py +0 -0
  90. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/deployment_runs.py +0 -0
  91. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/eval_handler.py +0 -0
  92. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/execution.py +0 -0
  93. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/exporter.py +0 -0
  94. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/exporter_http.py +0 -0
  95. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/field_types.py +0 -0
  96. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/helpers.py +0 -0
  97. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/identity.py +0 -0
  98. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/imaging.py +0 -0
  99. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/__init__.py +0 -0
  100. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/decode.py +0 -0
  101. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/encode.py +0 -0
  102. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/hash.py +0 -0
  103. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/program.py +0 -0
  104. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/reflection.py +0 -0
  105. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/types.py +0 -0
  106. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/ir/xxh64.py +0 -0
  107. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/kernel_lines.py +0 -0
  108. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/labels.py +0 -0
  109. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/mcp_servers.py +0 -0
  110. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/models.py +0 -0
  111. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/named_programs.py +0 -0
  112. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimization.py +0 -0
  113. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimizers/__init__.py +0 -0
  114. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimizers/gepa.py +0 -0
  115. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimizers/gepa_callback.py +0 -0
  116. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/optimizers/resume.py +0 -0
  117. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/packaging.py +0 -0
  118. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/program_evals.py +0 -0
  119. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/program_naming.py +0 -0
  120. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/programs.py +0 -0
  121. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/references.py +0 -0
  122. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/retry.py +0 -0
  123. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/SKILL.md +0 -0
  124. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
  125. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
  126. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
  127. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
  128. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
  129. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
  130. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
  131. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/deploy.md +0 -0
  132. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/dspy.md +0 -0
  133. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/feedback.md +0 -0
  134. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/gaps.md +0 -0
  135. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/observe.md +0 -0
  136. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/optimize.md +0 -0
  137. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/setup.md +0 -0
  138. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/references/tools.md +0 -0
  139. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
  140. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/trace_lifecycle.py +0 -0
  141. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/traces.py +0 -0
  142. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd/versions.py +0 -0
  143. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/LINEAGE.md +0 -0
  144. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/__init__.py +0 -0
  145. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/bodies.py +0 -0
  146. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/client_floor.py +0 -0
  147. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/exporter_http.py +0 -0
  148. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/json_value.py +0 -0
  149. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/network.py +0 -0
  150. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/process_local.py +0 -0
  151. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/program_names.py +0 -0
  152. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/protocols.py +0 -0
  153. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/py.typed +0 -0
  154. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/queue_budget.py +0 -0
  155. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/record_stream.py +0 -0
  156. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/rejections.py +0 -0
  157. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/retry.py +0 -0
  158. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/run_closed.py +0 -0
  159. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/sender.py +0 -0
  160. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/span_context.py +0 -0
  161. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/storable.py +0 -0
  162. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/trace_facts.py +0 -0
  163. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/trace_records.py +0 -0
  164. {cmpnd-0.122.0 → cmpnd-0.122.2}/cmpnd_ingest/user_agent.py +0 -0
  165. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/2026-04-02-code-review.md +0 -0
  166. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/cli.md +0 -0
  167. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/client.md +0 -0
  168. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/custom-proposer.md +0 -0
  169. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/ingest-transport.md +0 -0
  170. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
  171. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
  172. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/platform-evals.md +0 -0
  173. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/reading-traces.md +0 -0
  174. {cmpnd-0.122.0 → cmpnd-0.122.2}/docs/versions.md +0 -0
  175. {cmpnd-0.122.0 → cmpnd-0.122.2}/examples/generalizing_proposer.py +0 -0
  176. {cmpnd-0.122.0 → cmpnd-0.122.2}/examples/local_ollama.py +0 -0
  177. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/audit-sdist.sh +0 -0
  178. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/capture_review_run.py +0 -0
  179. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/check-pip-install.sh +0 -0
  180. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/check_release_artifacts.py +0 -0
  181. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/export-bedrock-token.sh +0 -0
  182. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/fixtures/review_run.json.gz +0 -0
  183. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/fork-matrix.sh +0 -0
  184. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/gepa_resume_bug.py +0 -0
  185. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/install-test-env.sh +0 -0
  186. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/record_gepa_events.py +0 -0
  187. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/release-gate.sh +0 -0
  188. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/release-real-models.sh +0 -0
  189. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/require_version_bump.py +0 -0
  190. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/seed_review_run.py +0 -0
  191. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/selfhost_compat.py +0 -0
  192. {cmpnd-0.122.0 → cmpnd-0.122.2}/scripts/test-in-linux.sh +0 -0
  193. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/__init__.pyi +0 -0
  194. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/primitives/__init__.pyi +0 -0
  195. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/primitives/prediction.pyi +0 -0
  196. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/utils/__init__.pyi +0 -0
  197. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/utils/callback.pyi +0 -0
  198. {cmpnd-0.122.0 → cmpnd-0.122.2}/stubs/dspy/utils/dummies.pyi +0 -0
  199. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/__init__.py +0 -0
  200. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_credential_route.py +0 -0
  201. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_deployment_signature_helpers.py +0 -0
  202. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_exporter_helpers.py +0 -0
  203. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_fake_clock.py +0 -0
  204. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_fresh_interpreter.py +0 -0
  205. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_identity_helpers.py +0 -0
  206. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_lifecycle.py +0 -0
  207. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_resolve_refs.py +0 -0
  208. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/_traced_run.py +0 -0
  209. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/conftest.py +0 -0
  210. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/dspy_features.py +0 -0
  211. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/__init__.py +0 -0
  212. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/committee_task.py +0 -0
  213. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/continuation_task.py +0 -0
  214. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/data/committee_train.ndjson.gz +0 -0
  215. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/data/committee_val.ndjson.gz +0 -0
  216. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/fake_lm.py +0 -0
  217. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/helpers.py +0 -0
  218. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/target_capabilities.py +0 -0
  219. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_assessments_cli.py +0 -0
  220. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_capture_prompts.py +0 -0
  221. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_composite_module.py +0 -0
  222. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_dataset_auto_creation.py +0 -0
  223. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_deploy_execute.py +0 -0
  224. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_deploy_pandas.py +0 -0
  225. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_deploy_programs.py +0 -0
  226. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_edge_cases.py +0 -0
  227. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_example_hash.py +0 -0
  228. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_gepa_optimization.py +0 -0
  229. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_interpreter_spans.py +0 -0
  230. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_lm_accuracy.py +0 -0
  231. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_module_tracing.py +0 -0
  232. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimization_lineage.py +0 -0
  233. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimization_metric_identity.py +0 -0
  234. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_continuation.py +0 -0
  235. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_failures.py +0 -0
  236. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_loop.py +0 -0
  237. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_review_committee.py +0 -0
  238. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
  239. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_parallel_export.py +0 -0
  240. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_program_versions.py +0 -0
  241. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_project_attribution.py +0 -0
  242. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_react_tool_spans.py +0 -0
  243. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_reanchor_optimization.py +0 -0
  244. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_save_load.py +0 -0
  245. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_trace_structure.py +0 -0
  246. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_traces_read.py +0 -0
  247. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_user_attribution.py +0 -0
  248. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/e2e/test_valsets_cli.py +0 -0
  249. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/gepa_record_fixture.py +0 -0
  250. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/01_predict_qa.json +0 -0
  251. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
  252. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
  253. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/04_predict_richer_types.json +0 -0
  254. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
  255. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/06_multichaincomparison.json +0 -0
  256. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/07_program_of_thought.json +0 -0
  257. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/08_opaque_module.json +0 -0
  258. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
  259. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/10_react.json +0 -0
  260. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/11_refine.json +0 -0
  261. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/12_retrieve.json +0 -0
  262. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/13_knn.json +0 -0
  263. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/14_parallel.json +0 -0
  264. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/identity_vectors/README.md +0 -0
  265. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/ingest_conformance.py +0 -0
  266. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/__init__.py +0 -0
  267. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/authored_optimize/judge.py +0 -0
  268. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
  269. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/conftest.py +0 -0
  270. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
  271. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/hosted_optimize_probe.py +0 -0
  272. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/optimization_run_probe.py +0 -0
  273. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/system_one_deployment.py +0 -0
  274. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_cli_deploy_smoketest.py +0 -0
  275. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_logs_renders_traces.py +0 -0
  276. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_optimization_run.py +0 -0
  277. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_optimizing_progress.py +0 -0
  278. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_trace_export.py +0 -0
  279. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/test_unhappy_path.py +0 -0
  280. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/integration/trace_export_probe.py +0 -0
  281. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/lm15_prompt_fixture.py +0 -0
  282. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/lm15_prompts/four_turn_predict.json +0 -0
  283. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/lm15_prompts/rlm_six_turns.json +0 -0
  284. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/__init__.py +0 -0
  285. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/__main__.py +0 -0
  286. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/drain.py +0 -0
  287. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/ingest.py +0 -0
  288. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/latency_transport.py +0 -0
  289. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/rlm_shape.py +0 -0
  290. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/rlm_size_report.py +0 -0
  291. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/README.md +0 -0
  292. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/__init__.py +0 -0
  293. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/asgi_app.py +0 -0
  294. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/baseline.py +0 -0
  295. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/drive_server.py +0 -0
  296. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/exits.py +0 -0
  297. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/outage.py +0 -0
  298. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/outage_proxy.py +0 -0
  299. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/pools.py +0 -0
  300. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/program.py +0 -0
  301. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sender/verify.py +0 -0
  302. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/sweep.py +0 -0
  303. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/test_rlm_shape.py +0 -0
  304. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/load/test_rlm_size_report.py +0 -0
  305. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/__init__.py +0 -0
  306. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/conftest.py +0 -0
  307. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/seed_parity.py +0 -0
  308. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_auth.py +0 -0
  309. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_datasets.py +0 -0
  310. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_deployments.py +0 -0
  311. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_evals.py +0 -0
  312. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_health.py +0 -0
  313. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_modules.py +0 -0
  314. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_optimizations.py +0 -0
  315. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_programs.py +0 -0
  316. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_signatures.py +0 -0
  317. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_trace_streaming.py +0 -0
  318. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/parity/test_traces.py +0 -0
  319. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/__init__.py +0 -0
  320. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/_agent.py +0 -0
  321. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/_provider.py +0 -0
  322. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/_readiness.py +0 -0
  323. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/_reliability.py +0 -0
  324. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/_result.py +0 -0
  325. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/mint_bedrock_token.py +0 -0
  326. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_bedrock_converse.py +0 -0
  327. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_deploy_programs.py +0 -0
  328. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_multi_client_stress.py +0 -0
  329. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_optimize_client_committee.py +0 -0
  330. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_optimize_continuation.py +0 -0
  331. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_optimize_loop.py +0 -0
  332. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_optimize_loop_wasm.py +0 -0
  333. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_optimize_stress.py +0 -0
  334. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_provider_roles.py +0 -0
  335. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_readiness.py +0 -0
  336. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_real_provider_twins.py +0 -0
  337. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_reliability.py +0 -0
  338. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_reliability_classify.py +0 -0
  339. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_rlm_wasm.py +0 -0
  340. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_skill_agent.py +0 -0
  341. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/real_models/test_trace_search.py +0 -0
  342. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/span_reference_fixture.py +0 -0
  343. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_adapter_reentrancy.py +0 -0
  344. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_assessments_api.py +0 -0
  345. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored.py +0 -0
  346. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_binding_credentials.py +0 -0
  347. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_bundle_collisions.py +0 -0
  348. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_eval.py +0 -0
  349. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_metric_contract.py +0 -0
  350. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_named_models.py +0 -0
  351. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_authored_optimize.py +0 -0
  352. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_callback.py +0 -0
  353. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_candidate_lineage.py +0 -0
  354. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_check_release_artifacts.py +0 -0
  355. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/__init__.py +0 -0
  356. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/conftest.py +0 -0
  357. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_admin.py +0 -0
  358. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_api_client.py +0 -0
  359. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_assessments.py +0 -0
  360. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_auth.py +0 -0
  361. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_credentials.py +0 -0
  362. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_datasets.py +0 -0
  363. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_deployment_runs.py +0 -0
  364. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_deployments.py +0 -0
  365. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_evals.py +0 -0
  366. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_feedback.py +0 -0
  367. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_json_flag.py +0 -0
  368. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_login.py +0 -0
  369. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_main.py +0 -0
  370. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_notices.py +0 -0
  371. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_optimizations.py +0 -0
  372. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_org.py +0 -0
  373. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_org_support.py +0 -0
  374. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_pagination.py +0 -0
  375. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_parity.py +0 -0
  376. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_programs.py +0 -0
  377. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_provider_credentials.py +0 -0
  378. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_provider_flags.py +0 -0
  379. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_providers.py +0 -0
  380. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_schema_sample.py +0 -0
  381. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_shell.py +0 -0
  382. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_skill.py +0 -0
  383. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_skill_offer.py +0 -0
  384. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_tool_servers.py +0 -0
  385. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_top.py +0 -0
  386. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_traces.py +0 -0
  387. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_traces_program_and_module.py +0 -0
  388. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_traces_query_needs_program.py +0 -0
  389. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_traces_search_wire.py +0 -0
  390. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_tree_help.py +0 -0
  391. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cli/test_valsets.py +0 -0
  392. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_client.py +0 -0
  393. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_client_floor.py +0 -0
  394. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_client_program_names.py +0 -0
  395. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_clustering/__init__.py +0 -0
  396. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_clustering/conftest.py +0 -0
  397. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_clustering/test_edge_cases.py +0 -0
  398. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_clustering/test_hash_consistency.py +0 -0
  399. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_cmp551_grouping_identity.py +0 -0
  400. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_configuration.py +0 -0
  401. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_context.py +0 -0
  402. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_context_propagation.py +0 -0
  403. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_credential_kwargs.py +0 -0
  404. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_credential_selection.py +0 -0
  405. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_dataset_polling.py +0 -0
  406. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_dataset_sync.py +0 -0
  407. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_datasets.py +0 -0
  408. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_decision_client_spans.py +0 -0
  409. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_decorators.py +0 -0
  410. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deploy.py +0 -0
  411. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deploy_mcp_tool_references.py +0 -0
  412. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deploy_program_id.py +0 -0
  413. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deployment_metadata.py +0 -0
  414. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deployment_runs.py +0 -0
  415. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deployment_targets.py +0 -0
  416. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_deployments_read.py +0 -0
  417. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_dspy_version_label.py +0 -0
  418. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval.py +0 -0
  419. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval_example_attribution.py +0 -0
  420. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval_example_failures.py +0 -0
  421. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval_program_id.py +0 -0
  422. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval_start.py +0 -0
  423. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_eval_trace_grouping.py +0 -0
  424. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exception_paths.py +0 -0
  425. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_execute.py +0 -0
  426. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_execute_run_identity.py +0 -0
  427. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter.py +0 -0
  428. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter_fork_exec.py +0 -0
  429. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter_program_names.py +0 -0
  430. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter_queue.py +0 -0
  431. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter_real.py +0 -0
  432. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_exporter_rejections.py +0 -0
  433. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_fake_lm.py +0 -0
  434. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_field_types.py +0 -0
  435. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_forward_access_warning.py +0 -0
  436. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_gepa_callback.py +0 -0
  437. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_gepa_fold.py +0 -0
  438. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_gepa_integration.py +0 -0
  439. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_gepa_output_normalization.py +0 -0
  440. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_gepa_resume.py +0 -0
  441. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_identity.py +0 -0
  442. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_imaging.py +0 -0
  443. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_import_weight.py +0 -0
  444. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_ingest_conformance.py +0 -0
  445. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_ingest_transport.py +0 -0
  446. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_integration.py +0 -0
  447. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_interpreter_callback.py +0 -0
  448. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_ir_encoder_properties.py +0 -0
  449. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_ir_golden_vectors.py +0 -0
  450. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_ir_roundtrip.py +0 -0
  451. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_kernel_lines.py +0 -0
  452. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_label_vocabulary.py +0 -0
  453. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_lm15_native_calls.py +0 -0
  454. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_lm15_prompt_fixtures.py +0 -0
  455. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_lm15_prompt_references.py +0 -0
  456. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_lm_usage_shapes.py +0 -0
  457. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_mcp_tools.py +0 -0
  458. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_model_list_protocol.py +0 -0
  459. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_models.py +0 -0
  460. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_multi_client_stress_readiness.py +0 -0
  461. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_no_signature_hash_on_the_wire.py +0 -0
  462. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimization_phase_callback.py +0 -0
  463. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimization_program_names.py +0 -0
  464. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimization_progress.py +0 -0
  465. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimization_start.py +0 -0
  466. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize.py +0 -0
  467. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_budget.py +0 -0
  468. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_gepa_settings.py +0 -0
  469. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_labels.py +0 -0
  470. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_lift.py +0 -0
  471. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_lm_model_type.py +0 -0
  472. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_lms.py +0 -0
  473. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_proposer.py +0 -0
  474. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_reflection_lm.py +0 -0
  475. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_split.py +0 -0
  476. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_optimize_terminal_failure.py +0 -0
  477. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_owned_trace_streaming.py +0 -0
  478. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_packaging.py +0 -0
  479. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_packaging_callable_source.py +0 -0
  480. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_packaging_mcp_tools.py +0 -0
  481. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_packaging_program_source.py +0 -0
  482. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_poll_until.py +0 -0
  483. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_process_local.py +0 -0
  484. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_evals.py +0 -0
  485. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_id_deprecation.py +0 -0
  486. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_identity.py +0 -0
  487. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_lineage_persist.py +0 -0
  488. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_lm_binding.py +0 -0
  489. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_names_in_deploy.py +0 -0
  490. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_program_naming.py +0 -0
  491. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_programs_create.py +0 -0
  492. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_project_payload.py +0 -0
  493. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_provider_keyword.py +0 -0
  494. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_provider_models.py +0 -0
  495. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_provider_types.py +0 -0
  496. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_provider_values.py +0 -0
  497. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_provider_writes.py +0 -0
  498. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_queue_budget.py +0 -0
  499. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_real_provider_twins_readiness.py +0 -0
  500. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_reanchor_evidence.py +0 -0
  501. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_reanchor_patch.py +0 -0
  502. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_reflector_properties.py +0 -0
  503. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_reflector_smoke.py +0 -0
  504. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_release_gate_script.py +0 -0
  505. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_release_real_models_script.py +0 -0
  506. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_replaced_names.py +0 -0
  507. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_repro_reactv2_bugs.py +0 -0
  508. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_require_version_bump.py +0 -0
  509. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_retry.py +0 -0
  510. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_reversible_failures.py +0 -0
  511. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_rlm_tool_spans.py +0 -0
  512. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_run_attribution_paths.py +0 -0
  513. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_run_closed.py +0 -0
  514. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_runtime_tools.py +0 -0
  515. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_seal_lm_credential.py +0 -0
  516. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_seed_review_run.py +0 -0
  517. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_sender_scenarios.py +0 -0
  518. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_sending_settings.py +0 -0
  519. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_signature_inputs.py +0 -0
  520. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_skill_bundle.py +0 -0
  521. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_skill_tools_block.py +0 -0
  522. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_span_references.py +0 -0
  523. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_span_sent_once.py +0 -0
  524. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_span_submission.py +0 -0
  525. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_span_submission_wire_contract.py +0 -0
  526. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_stored_login.py +0 -0
  527. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_system_one.py +0 -0
  528. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_token_attribution.py +0 -0
  529. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_trace_context_concurrency.py +0 -0
  530. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_trace_fact_wire_contract.py +0 -0
  531. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_trace_facts.py +0 -0
  532. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_trace_labels.py +0 -0
  533. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_trace_render.py +0 -0
  534. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_traces_label_search_busy.py +0 -0
  535. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_traces_query_needs_program.py +0 -0
  536. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_traces_read.py +0 -0
  537. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_tracked_gepa.py +0 -0
  538. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_truncation.py +0 -0
  539. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_untraced_spans.py +0 -0
  540. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_upload_auth_headers.py +0 -0
  541. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_usage_dialect.py +0 -0
  542. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_user_agent.py +0 -0
  543. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_valsets_api.py +0 -0
  544. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_versions.py +0 -0
  545. {cmpnd-0.122.0 → cmpnd-0.122.2}/tests/test_xxh64.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cmpnd
3
- Version: 0.122.0
3
+ Version: 0.122.2
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>
@@ -417,6 +417,14 @@ def lm_binding(lm: Any, subject: str, *, sampling_keys: tuple[str, ...]) -> dict
417
417
  entry["protocol"] = CHAT_COMPLETIONS
418
418
  state = lm.dump_state() if hasattr(lm, "dump_state") else {}
419
419
  sampling = {key: state[key] for key in sampling_keys if key in state and state[key] is not None}
420
+ if "thinking_effort" in sampling_keys:
421
+ effort = state.get("reasoning_effort")
422
+ if effort is None:
423
+ effort = state.get("thinking_effort")
424
+ if isinstance(effort, str) and effort.strip():
425
+ sampling["thinking_effort"] = effort
426
+ else:
427
+ sampling.pop("thinking_effort", None)
420
428
  if sampling:
421
429
  entry["sampling"] = sampling
422
430
  if credential is not None:
@@ -1425,6 +1425,13 @@ def enrich_from_program(
1425
1425
 
1426
1426
  # Config (carry the caller's keys, attach the components list).
1427
1427
  cfg = dict(config or {})
1428
+ for model, config_key in ((lm, "model_reasoning_effort"), (reflection_lm, "reflection_sampling")):
1429
+ effort = getattr(model, "kwargs", {}).get("reasoning_effort") if model is not None else None
1430
+ if isinstance(effort, str) and effort.strip():
1431
+ if config_key == "reflection_sampling":
1432
+ cfg[config_key] = {**cfg.get(config_key, {}), "reasoning_effort": effort}
1433
+ else:
1434
+ cfg[config_key] = effort
1428
1435
  if components:
1429
1436
  cfg["components"] = components
1430
1437
  trk.config = cfg
@@ -66,6 +66,12 @@ cmpnd evals cancel <ev_id> # only if the user a
66
66
  - **A finished run reads `ok`, and a failed one reads `error`,** in `show` and
67
67
  `list`. A program that raises on an example scores `failure_score` there. A
68
68
  metric that raises fails the run with the metric's own message.
69
+ - **A failed run states why in its `failure` field,** in `show` and `list`.
70
+ `failure.sentence` says what happened. The run's facts follow when it
71
+ recorded them: `phase` (`before_examples` or `during_examples`),
72
+ `examples_started`, `examples_settled` and `slowest_trace_id`, which
73
+ `cmpnd traces show` opens. Report the sentence and the facts to the user
74
+ as they stand.
69
75
  - **A run spends the organization's provider** for the program and its judges.
70
76
  Ask before you run an eval on many versions.
71
77
  - **A version that lacks one of the eval's inputs is refused,** and the error
@@ -37,6 +37,12 @@ If you want to instrument manually (for example, to wire the callback into a non
37
37
 
38
38
  ## Hosted LM capabilities
39
39
 
40
+ Hosted deployments retain an LM's configured `reasoning_effort` in the existing
41
+ `thinking_effort` sampling field. Locally tracked optimizations record the
42
+ student's effort in `config.model_reasoning_effort` and the reflection model's
43
+ effort in `config.reflection_sampling.reasoning_effort`. These strings describe
44
+ the requested effort. They do not measure the reasoning a provider performed.
45
+
40
46
  A hosted LM reports what DSPy reports for its model on your machine. DSPy's
41
47
  adapters choose the prompt from an LM's capabilities: whether it calls functions
42
48
  natively, whether it reasons natively, whether it takes a response schema, and
@@ -482,7 +488,7 @@ Every client is built with `trust_env=False` and the settings `network.py` resol
482
488
 
483
489
  ### Delivery errors, dropping, and transient retry
484
490
 
485
- Each `_send_*` method routes a failed delivery to one of two counters. A `429` (server buffer full) increments `_dropped_count` under the `server_shed` reason on every trace route alike (`_shed_by_server`), counting a full trace's embedded spans with it, and is *not* retried when serve marks it `retryable: false` (it's backpressure — the caller intentionally sheds the load). The drop summary reports it at most once per window. On the trace routes, any other `4xx` is a rejection: it increments `_dropped_count` under the `rejected` reason (see [rejected trace uploads](#rejected-trace-uploads) below). Any other non-2xx or transport failure increments `_error_count`, and logs at ERROR at most once per five seconds per lane (`_log_send_failure`): an outage fails every request, so the first failure logs at once, the next line says how many failed since, and the lane's shutdown reports any left uncounted. A rejection still logs each time. The data POSTs go through `_send_json_retrying` (`exporter_http.py`), which rides through a **transient** failure on the budget in `cmpnd_ingest/retry.py` (`cmpnd.retry`) — see [the retryable-error contract](#the-retryable-error-contract) below for what counts as transient, how long the budget lasts, and how the backoff is computed. It is *not* retried on `4xx` (client error), `429` (dropped, above), a proxy's refusal to open a tunnel to the server (a `4xx`, `501` or `505` answer to `CONNECT`, `retry.proxy_refusal`, which the first failure's ERROR line names, pointing at `HTTPS_PROXY` and `NO_PROXY`), or a plain `500` (the platform's to answer for — the same boundary as the stress harness's `is_external_outage`). Retrying is safe because serve dedups ingest — traces on `(org_id, trace_id, start_time)`, spans on the `spans_dedup` index — so a re-POST of a request that actually landed can't double-insert. The blocking run-*start* POSTs ride the same budget but on a narrower entry condition — see [minting POSTs](#minting-posts-are-re-sent-only-when-they-cannot-have-landed) below.
491
+ Each `_send_*` method routes a failed delivery to one of two counters. A `429` (server buffer full) increments `_dropped_count` under the `server_shed` reason on every trace route alike (`_shed_by_server`), counting a full trace's embedded spans with it, and is *not* retried, whatever its body says (it's backpressure — the caller intentionally sheds the load). The drop summary reports it at most once per window. On the trace routes, any other `4xx` is a rejection: it increments `_dropped_count` under the `rejected` reason (see [rejected trace uploads](#rejected-trace-uploads) below). Any other non-2xx or transport failure increments `_error_count`, and logs at ERROR at most once per five seconds per lane (`_log_send_failure`): an outage fails every request, so the first failure logs at once, the next line says how many failed since, and the lane's shutdown reports any left uncounted. A rejection still logs each time. The data POSTs go through `_send_json_retrying` (`exporter_http.py`), which rides through a **transient** failure on the budget in `cmpnd_ingest/retry.py` (`cmpnd.retry`) — see [the retryable-error contract](#the-retryable-error-contract) below for what counts as transient, how long the budget lasts, and how the backoff is computed. It is *not* retried on `4xx` (client error), `429` (dropped, above), a proxy's refusal to open a tunnel to the server (a `4xx`, `501` or `505` answer to `CONNECT`, `retry.proxy_refusal`, which the first failure's ERROR line names, pointing at `HTTPS_PROXY` and `NO_PROXY`), or a plain `500` (the platform's to answer for — the same boundary as the stress harness's `is_external_outage`). Retrying is safe because serve dedups ingest — traces on `(org_id, trace_id, start_time)`, spans on the `spans_dedup` index — so a re-POST of a request that actually landed can't double-insert. The blocking run-*start* POSTs ride the same budget but on a narrower entry condition — see [minting POSTs](#minting-posts-are-re-sent-only-when-they-cannot-have-landed) below.
486
492
 
487
493
  Tolerating is never silent. A send that recovered logs a warning naming what it rode through. The sender's requests add to their lane's recoveries (`retry.Recoveries`), and the lane logs them in one line when a batch finishes with no other in flight, or, while other batches still send, once the first of them is five seconds old (`_RECOVERY_LOG_SECONDS`), and at shutdown and exit. The line's window ends at the last recovery (`6 requests rode through 9 transient responses over 41.2s (503=9) to POST /api/v1/traces, POST /api/v1/traces/{id}/spans`), so an outage that ends with many requests retrying logs one line rather than one each. A blocking call on the caller's thread, such as a run's start, logs its own line. An exhausted budget raises `ExportRetriesExhausted` with the same count and window in its message. `BatchExporter.failure_summary()` reports the distribution of non-2xx statuses observed, how many transient answers were ridden through, and a sample error body — that's what the stress lane prints when it fails, so a red lane says *what* the wire answered rather than only how many errors there were.
488
494
 
@@ -495,7 +501,7 @@ include the last server message as well as the attempt count and elapsed time.
495
501
 
496
502
  ### Rejected trace uploads
497
503
 
498
- Serve rejects a trace upload for good with a `4xx` other than `429`. For example, serve answers `422` with `error_code: trace_submission_contract` and `retryable: false` when an older SDK sends a submission that a stricter serve no longer accepts. A resend would fail the same way, so the exporter does not retry. `cmpnd_ingest/rejections.py` holds the classification and the message. Every trace route uses it: the trace batch, a single trace, the spans of a trace, a trace start and a trace finalize.
504
+ Serve rejects a trace upload for good with a `4xx` other than `429`. For example, serve answers `422` with `error_code: trace_submission_contract` when an older SDK sends a submission that a stricter serve no longer accepts. A resend would fail the same way, so the exporter does not retry. `cmpnd_ingest/rejections.py` holds the classification and the message. Every trace route uses it: the trace batch, a single trace, the spans of a trace, a trace start and a trace finalize.
499
505
 
500
506
  For each rejection, the exporter does three things:
501
507
 
@@ -517,7 +523,7 @@ The server tells a client when a failed write is worth re-sending, in three sign
517
523
  HTTP/1.1 503 Service Unavailable
518
524
  Retry-After: 5
519
525
 
520
- {"error": "insert failed", "retryable": true, "retry_after": 5}
526
+ {"error": "insert failed", "error_code": "temporarily_unavailable", "retryable": true, "retry_after": 5}
521
527
  ```
522
528
 
523
529
  The wire shape is a shared artifact, [`docs/schemas/retryable-error.schema.json`](../../docs/schemas/retryable-error.schema.json) — the emitter (`serve/internal/platform/apierr`) and this consumer both validate against that one file, which is what keeps them from drifting; `tests/test_schemas.py` is the SDK's half.
@@ -5,7 +5,7 @@ name = "cmpnd"
5
5
  # it's new) — no git tags. Bump with `uv version --bump {minor,patch}` or by
6
6
  # hand. Runtime `cmpnd.__version__` reads installed metadata, so it tracks
7
7
  # this automatically. See docs/plans/2026-07-02-sdk-pypi-tag-free-publish.md.
8
- version = "0.122.0"
8
+ version = "0.122.2"
9
9
  description = "DSPy observability and deployment SDK for cmpnd"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.11"
@@ -288,6 +288,12 @@ class ServerClient:
288
288
  resp.raise_for_status()
289
289
  return resp.json()
290
290
 
291
+ def get_optimize_status(self, deployment_id: str, optimizer: str, opt_id: str) -> dict:
292
+ """The status route the SDK polls a run on, which names serve's ``settlement`` once it settles."""
293
+ resp = self._client.get(f"/api/v1/deployments/{deployment_id}/optimize/{optimizer}/{opt_id}")
294
+ resp.raise_for_status()
295
+ return resp.json()
296
+
291
297
  def get_optimization_iterations(self, opt_id: str) -> dict:
292
298
  resp = self._client.get(f"/api/v1/optimizations/{opt_id}/iterations")
293
299
  resp.raise_for_status()
@@ -0,0 +1,154 @@
1
+ """What a hosted optimization left on serve's API, for the e2e tests that drive one.
2
+
3
+ A run's traces carry the phase that produced them as the `cmpnd.optimization.phase`
4
+ label: `rollout` for the program, `metric` for the metric's judge and `reflection` for
5
+ the proposer. Each LM span names the model it was served by. So the traces show which
6
+ binding each call spent, and these helpers read that off `POST /api/v1/traces/search`
7
+ and `GET /api/v1/traces/{id}`. They also read the status route's `settlement` and the
8
+ run's `proposal_kernels`.
9
+ """
10
+
11
+ from __future__ import annotations
12
+
13
+ from collections import Counter
14
+ from collections.abc import Collection, Mapping
15
+ from typing import Any
16
+
17
+ from tests.e2e import helpers
18
+ from tests.e2e.conftest import ServerClient, spans_ready
19
+
20
+ # The label that names a trace's optimization phase (docs/plans/2026-11-03-trace-labels.md,
21
+ # "Reserved keys").
22
+ PHASE_LABEL = "cmpnd.optimization.phase"
23
+
24
+ # The trace search's largest page.
25
+ PAGE_SIZE = 500
26
+
27
+ # How long serve may take to settle a run, and to publish its traces, after the
28
+ # optimize call returns. The completion watcher settles on a five-second tick, and the
29
+ # trace read models trail ingest.
30
+ SETTLE_SECONDS = 90.0
31
+ TRACES_SECONDS = 90.0
32
+
33
+
34
+ def wire_model(model: str) -> str:
35
+ """A model as the provider is asked for it: without its provider segment.
36
+
37
+ A binding names `cmpnd-fake/echo` and the span may name `echo`, so both sides of a
38
+ comparison drop the segment.
39
+ """
40
+ _, slash, rest = model.strip().partition("/")
41
+ return rest if slash and rest else model.strip()
42
+
43
+
44
+ def run_traces(
45
+ server_client: ServerClient, *, program_name: str, run_id: str, phases: Collection[str]
46
+ ) -> list[dict[str, Any]]:
47
+ """The run's traces in its program's trace list, once every phase in `phases` shows.
48
+
49
+ Searched by program name, so a trace found here declares the run's program.
50
+ """
51
+
52
+ def search() -> list[dict[str, Any]]:
53
+ rows: list[dict[str, Any]] = []
54
+ page = 1
55
+ while True:
56
+ answer = server_client.search_traces(program_name=program_name, page=page, page_size=PAGE_SIZE)
57
+ traces = answer.get("traces") or []
58
+ rows.extend(row for row in traces if row.get("optimization_run_id") == run_id)
59
+ if len(traces) < PAGE_SIZE:
60
+ return rows
61
+ page += 1
62
+
63
+ def complete() -> list[dict[str, Any]]:
64
+ rows = search()
65
+ return rows if set(phases) <= {phase_of(row) for row in rows} else []
66
+
67
+ found = helpers.poll_until(complete, timeout=TRACES_SECONDS, interval=3.0)
68
+ if not found:
69
+ rows = search()
70
+ raise AssertionError(
71
+ f"program {program_name!r} lists {len(rows)} traces of optimization {run_id}, with phases "
72
+ f"{sorted({phase_of(row) for row in rows})}; want every one of {sorted(phases)}"
73
+ )
74
+ return found
75
+
76
+
77
+ def phase_of(row: Mapping[str, Any]) -> str:
78
+ labels = row.get("labels")
79
+ return str(labels.get(PHASE_LABEL) or "") if isinstance(labels, Mapping) else ""
80
+
81
+
82
+ def lm_models_by_phase(
83
+ server_client: ServerClient, rows: list[dict[str, Any]], *, phases_with_calls: Collection[str]
84
+ ) -> dict[str, Counter[str]]:
85
+ """Per phase, how many LM spans each model served across the run's traces.
86
+
87
+ A trace of a phase in `phases_with_calls` is read once it shows an LM span, because
88
+ serve publishes a trace's spans page by page. Every other trace is read as it stands.
89
+ """
90
+ models: dict[str, Counter[str]] = {}
91
+ for row in rows:
92
+ phase = phase_of(row)
93
+ ready = spans_ready({"lm_call": 1}) if phase in phases_with_calls else spans_ready(total=1)
94
+ detail = server_client.get_trace(str(row["trace_id"]), ready=ready)
95
+ for span in detail.get("spans") or []:
96
+ if span.get("span_type") == "lm_call":
97
+ model = span.get("model_name") or (span.get("attributes") or {}).get("model_name") or ""
98
+ models.setdefault(phase, Counter())[wire_model(str(model))] += 1
99
+ return models
100
+
101
+
102
+ def assert_each_phase_spent_its_binding(models: Mapping[str, Counter[str]], expected: Mapping[str, str]) -> None:
103
+ """Each phase's LM calls went to its own binding's model, and to nothing else.
104
+
105
+ A judge or a proposer whose calls the program's model served is the silent
106
+ substitution the run's bindings exist to prevent, and a model outside the declared
107
+ set is spend the run cannot account for.
108
+ """
109
+ for phase, model in expected.items():
110
+ served = models.get(phase, Counter())
111
+ want = wire_model(model)
112
+ assert served.get(want, 0) >= 1, (
113
+ f"no {phase!r} trace of the run carries an LM span at {want!r}; its {phase} calls were "
114
+ f"served by {dict(served)}"
115
+ )
116
+ others = {name: count for name, count in served.items() if name != want}
117
+ assert not others, (
118
+ f"the run's {phase!r} traces carry LM spans at {others}, though the {phase} binding names {want!r}"
119
+ )
120
+
121
+
122
+ def settled_run(server_client: ServerClient, run_id: str, *, field: str | None = None) -> dict[str, Any]:
123
+ """`GET /api/v1/optimizations/{id}` once serve has settled the run, and `field` shows."""
124
+
125
+ def read() -> dict[str, Any]:
126
+ run = server_client.get_optimization(run_id)
127
+ if run.get("status") in ("running", "interrupted", "paused"):
128
+ return {}
129
+ return run if field is None or run.get(field) is not None else {}
130
+
131
+ run = helpers.poll_until(read, timeout=SETTLE_SECONDS, interval=3.0)
132
+ if not run:
133
+ last = server_client.get_optimization(run_id)
134
+ raise AssertionError(
135
+ f"run {run_id} did not settle with {field or 'a status'} within {SETTLE_SECONDS:.0f}s: "
136
+ f"status={last.get('status')!r} {field}={last.get(field or 'status')!r}"
137
+ )
138
+ return run
139
+
140
+
141
+ def settlement(server_client: ServerClient, deployment_id: str, run_id: str, optimizer: str = "gepa") -> str:
142
+ """The word serve settled the run with, from the status route the SDK polls.
143
+
144
+ The route answers `settlement` only once serve has settled the run, which can trail
145
+ the poll that told the caller the run ended.
146
+ """
147
+
148
+ def read() -> str:
149
+ answer = server_client.get_optimize_status(deployment_id, optimizer, run_id)
150
+ return str(answer.get("settlement") or "")
151
+
152
+ word = helpers.poll_until(read, timeout=SETTLE_SECONDS, interval=3.0)
153
+ assert word, f"serve did not settle run {run_id} within {SETTLE_SECONDS:.0f}s"
154
+ return word
@@ -3,9 +3,10 @@
3
3
  The CLI stages the optimize file and its `--include` sibling, imports them once in a
4
4
  child with no environment, and uploads those bytes. Each rollout's kernel imports the
5
5
  same bytes. This test runs that command against the review app and checks the score the
6
- caller gets back. `serve/scripts/ci-hosted-workers.sh --authored-metric` runs the same
7
- fixture on a loopback stack and checks what only that stack can read: the kernel count,
8
- the optimizer's boot id and the program each rollout declared.
6
+ caller gets back, then the run's traces in its program's trace list: the rollouts spend
7
+ the program's model, the metric's judge spends its own `critic` binding, and the
8
+ proposer's turns spend the reflection model. A judge the program's model served is the
9
+ silent substitution the run's bindings exist to prevent.
9
10
 
10
11
  The fixture's score comes from the sibling's `grade`, which awards 1.0, 0.25 or 0.0 per
11
12
  example over four examples. Every mean it can produce is a multiple of 0.0625, and a run
@@ -21,11 +22,12 @@ import pathlib
21
22
  import subprocess
22
23
  import sys
23
24
  import uuid
25
+ from typing import Any
24
26
 
25
27
  import pytest
26
28
 
27
29
  import cmpnd
28
- from tests.e2e import fake_lm
30
+ from tests.e2e import fake_lm, helpers, optimization_evidence
29
31
  from tests.e2e.target_capabilities import needs_an_optimizer, needs_the_fake_model_credential
30
32
 
31
33
  pytestmark = [pytest.mark.e2e, needs_an_optimizer, needs_the_fake_model_credential]
@@ -38,9 +40,16 @@ BUDGET_METRIC_CALLS = 12
38
40
  # Every mean `grade` can produce over the fixture's four examples is a multiple of this.
39
41
  SCORE_QUANTUM = 0.0625
40
42
 
43
+ # The models the fixture binds, as `optimize_hosted.py` names them: the program's, and
44
+ # the `critic` binding its metric's judge spends. The fixture is imported where no
45
+ # environment exists, so they are constants of the file and not read from it here.
46
+ FIXTURE_MODEL = "openai/deterministic"
47
+ FIXTURE_JUDGE_MODEL = "openai/judge-deterministic"
41
48
 
42
- def test_an_authored_metric_file_scores_a_run():
49
+
50
+ def test_an_authored_metric_file_scores_a_run(server_client):
43
51
  config = cmpnd.require_config()
52
+ program_name = f"test_optimize_authored_metric-{uuid.uuid4().hex[:8]}"
44
53
  env = {**os.environ, "CMPND_ENDPOINT": config.endpoint, "CMPND_API_KEY": config.api_key}
45
54
  command = [
46
55
  sys.executable,
@@ -49,7 +58,7 @@ def test_an_authored_metric_file_scores_a_run():
49
58
  "optimize",
50
59
  "gepa",
51
60
  str(FIXTURE),
52
- f"test_optimize_authored_metric-{uuid.uuid4().hex[:8]}",
61
+ program_name,
53
62
  "--include",
54
63
  str(FIXTURE.parent / "judge.py"),
55
64
  "--reflection-model",
@@ -74,3 +83,21 @@ def test_an_authored_metric_file_scores_a_run():
74
83
  f"the run scored {score}, which the authored metric cannot produce over its four examples "
75
84
  f"(every reachable value is a multiple of {SCORE_QUANTUM})"
76
85
  )
86
+
87
+ # The fixture's program is fresh, so its one optimization run is this command's.
88
+ def program_runs() -> list[dict[str, Any]]:
89
+ return list(server_client.search_optimizations(program_name=program_name).get("optimization_runs") or [])
90
+
91
+ runs = helpers.poll_until(program_runs, timeout=60.0, interval=3.0)
92
+ assert len(runs) == 1, f"program {program_name!r} lists {len(runs)} optimization runs, want this command's one"
93
+ run_id = runs[0]["run_id"]
94
+ rows = optimization_evidence.run_traces(
95
+ server_client, program_name=program_name, run_id=run_id, phases=("rollout", "metric", "reflection")
96
+ )
97
+ models = optimization_evidence.lm_models_by_phase(
98
+ server_client, rows, phases_with_calls=("rollout", "metric", "reflection")
99
+ )
100
+ optimization_evidence.assert_each_phase_spent_its_binding(
101
+ models,
102
+ {"rollout": FIXTURE_MODEL, "metric": FIXTURE_JUDGE_MODEL, "reflection": fake_lm.FAKE_MODEL},
103
+ )
@@ -1,15 +1,16 @@
1
1
  """E2E: an optimization runs the author's own instruction proposer.
2
2
 
3
3
  Two runs, each with a proposer the client declares, against the review app's own
4
- optimizer, executors and egress. These tests check only what serve's API tells a
5
- caller. `serve/scripts/ci-hosted-workers.sh --custom-proposer` drives the same two runs
6
- on a loopback stack and checks what only that stack can read: the kernel counters, the
7
- optimizer's boot id and the rows each run settled.
4
+ optimizer, executors and egress. Every check reads serve's API.
8
5
 
9
6
  - The documented proposer, `python-sdk/examples/generalizing_proposer.py`, runs to a
10
- completed result.
11
- - A proposer that refuses every task ends its run as failed, and the reason names the
12
- proposer. A search that spends its budget through those refusals and reports the seed
7
+ completed result, in kernels (`proposal_kernels`), on the model its binding names.
8
+ Its traces show the split: the program's rollouts spend the program's model and the
9
+ proposer's turns spend the proposer binding's, so neither is served on the other's
10
+ authority.
11
+ - A proposer that refuses every task ends its run: serve settles it `failed`, the
12
+ reason names the proposer, and the run still reports the kernels its proposer ran in.
13
+ A search that spends its budget through those refusals and reports the seed
13
14
  candidate as its result is the silent failure this test forbids.
14
15
 
15
16
  The run's models are the fake models, so fake-provider answers every call. Its answer
@@ -28,7 +29,7 @@ import dspy
28
29
  import pytest
29
30
 
30
31
  import cmpnd
31
- from tests.e2e import fake_lm, helpers
32
+ from tests.e2e import fake_lm, helpers, optimization_evidence
32
33
  from tests.e2e.target_capabilities import needs_an_optimizer, needs_the_fake_model_credential
33
34
 
34
35
  pytestmark = [pytest.mark.e2e, needs_an_optimizer, needs_the_fake_model_credential]
@@ -39,6 +40,11 @@ BUDGET_METRIC_CALLS = 12
39
40
  # The binding name the documented proposer selects its model by (`lms["proposer-lm"]`).
40
41
  PROPOSER_BINDING = "proposer-lm"
41
42
 
43
+ # The model the proposer binding names. The review app's fake-provider answers any
44
+ # `cmpnd-fake/` model, so the proposer gets a name of its own, and its calls are told
45
+ # apart from the program's (`fake_lm.FAKE_MODEL`) by the model each LM span names.
46
+ PROPOSER_MODEL = f"{fake_lm.MODEL_PREFIX}proposer"
47
+
42
48
  # What the refusing proposer raises. A module constant, so it travels with the function
43
49
  # into the kernel.
44
50
  PROPOSER_REFUSAL = "this proposer refuses every task it is handed"
@@ -103,10 +109,13 @@ def trainset():
103
109
  return [dspy.Example(**row).with_inputs("question") for row in EXAMPLES]
104
110
 
105
111
 
106
- def deploy() -> str:
107
- """A fresh program per run, so each run's rows stay apart on a shared review app."""
112
+ def deploy() -> tuple[str, str]:
113
+ """A fresh program per run, so each run's rows stay apart on a shared review app.
114
+
115
+ Returns the deployment's id and its program's name.
116
+ """
108
117
  named = helpers.named_program("test_optimize_custom_proposer", dspy.Predict(ShortAnswer))
109
- return str(helpers.platform_client().deploy_program(named, metric=feedback_metric, timeout=180))
118
+ return str(helpers.platform_client().deploy_program(named, metric=feedback_metric, timeout=180)), named.name
110
119
 
111
120
 
112
121
  def optimize(deployment_id: str, trainset, proposer, lms: dict[str, str]):
@@ -126,18 +135,38 @@ def optimize(deployment_id: str, trainset, proposer, lms: dict[str, str]):
126
135
 
127
136
 
128
137
  def test_the_documented_proposer_completes_a_run(trainset, server_client):
129
- deployment_id = deploy()
138
+ deployment_id, program_name = deploy()
130
139
 
131
- result = optimize(deployment_id, trainset, documented_proposer(), {PROPOSER_BINDING: fake_lm.FAKE_MODEL})
140
+ result = optimize(deployment_id, trainset, documented_proposer(), {PROPOSER_BINDING: PROPOSER_MODEL})
132
141
 
133
142
  # `optimize_deployment` returns only when serve's status route answers "completed".
134
143
  assert result.deployment_id, "the optimization returned no deployment"
135
144
  assert result.score is not None, "the optimization returned no score, so its terminal poll carried none"
136
145
  assert server_client.get_deployment(result.deployment_id)["status"] == "ready"
146
+ run_id = result.optimization_run_id
147
+ assert run_id, "the optimization names no run"
148
+
149
+ # The proposer is untrusted code, so it runs in a fresh kernel per proposal, and
150
+ # this count is the only place on the path that says so.
151
+ run = optimization_evidence.settled_run(server_client, run_id, field="proposal_kernels")
152
+ assert run["status"] == "completed", f"run {run_id} is {run['status']!r}, want 'completed'"
153
+ assert run["proposal_kernels"] >= 1, (
154
+ f"run {run_id} reports {run['proposal_kernels']} proposal kernels, so its proposer never ran in a sandbox"
155
+ )
156
+
157
+ # The run's traces in its program's trace list: the rollouts declare the program,
158
+ # and each phase spent its own binding.
159
+ rows = optimization_evidence.run_traces(
160
+ server_client, program_name=program_name, run_id=run_id, phases=("rollout", "reflection")
161
+ )
162
+ models = optimization_evidence.lm_models_by_phase(server_client, rows, phases_with_calls=("rollout", "reflection"))
163
+ optimization_evidence.assert_each_phase_spent_its_binding(
164
+ models, {"rollout": fake_lm.FAKE_MODEL, "reflection": PROPOSER_MODEL}
165
+ )
137
166
 
138
167
 
139
168
  def test_a_proposer_that_refuses_every_task_fails_its_run(trainset, server_client):
140
- deployment_id = deploy()
169
+ deployment_id, _ = deploy()
141
170
 
142
171
  with pytest.raises(cmpnd.OptimizeFailed) as refused:
143
172
  optimize(deployment_id, trainset, refuse_every_proposal, {})
@@ -155,3 +184,12 @@ def test_a_proposer_that_refuses_every_task_fails_its_run(trainset, server_clien
155
184
  f"run {run['run_id']} holds {run['total_candidates']} candidates, but a proposer that refuses "
156
185
  "every task cannot produce one beyond the seed"
157
186
  )
187
+ # Serve's own word for how the run ended, beside the execution API's status.
188
+ settled = optimization_evidence.settlement(server_client, deployment_id, refused.value.optimization_id)
189
+ assert settled == "failed", f"serve settled run {run['run_id']} {settled!r}, want 'failed'"
190
+ # The proposer ran and refused, which is a different ending from a proposer that was
191
+ # never reached, and the kernel count is what tells the two apart.
192
+ run = optimization_evidence.settled_run(server_client, refused.value.optimization_id, field="proposal_kernels")
193
+ assert run["proposal_kernels"] >= 1, (
194
+ f"run {run['run_id']} reports {run['proposal_kernels']} proposal kernels, so its proposer never ran"
195
+ )
@@ -25,6 +25,28 @@ def test_object_aliases_share_declaration_but_equal_objects_do_not():
25
25
  assert resolved["judge"]["model"] == "custom/model"
26
26
 
27
27
 
28
+ @pytest.mark.parametrize("effort", ["low", "none", "high"])
29
+ def test_deployment_binding_retains_dspy_reasoning_effort(effort):
30
+ lm = SimpleNamespace(model="openai/example", dump_state=lambda: {"reasoning_effort": effort, "api_key": "secret"})
31
+ binding = lc.lm_binding(lm, "program LM", sampling_keys=lc.DEPLOYMENT_SAMPLING_KEYS)
32
+ assert binding["sampling"] == {"thinking_effort": effort}
33
+
34
+
35
+ @pytest.mark.parametrize("effort", [None, 42, {"budget": 32}, ""])
36
+ def test_deployment_binding_omits_malformed_reasoning_effort(effort):
37
+ lm = SimpleNamespace(model="openai/example", dump_state=lambda: {"reasoning_effort": effort})
38
+ binding = lc.lm_binding(lm, "program LM", sampling_keys=lc.DEPLOYMENT_SAMPLING_KEYS)
39
+ assert "thinking_effort" not in binding.get("sampling", {})
40
+
41
+
42
+ def test_deployment_binding_preserves_legacy_effort_when_canonical_is_unset():
43
+ lm = SimpleNamespace(
44
+ model="openai/example", dump_state=lambda: {"reasoning_effort": None, "thinking_effort": "low"}
45
+ )
46
+ binding = lc.lm_binding(lm, "program LM", sampling_keys=lc.DEPLOYMENT_SAMPLING_KEYS)
47
+ assert binding["sampling"] == {"thinking_effort": "low"}
48
+
49
+
28
50
  def test_named_and_object_declarations_must_agree():
29
51
  lm = SimpleNamespace(model="custom/model")
30
52
  lc.configure_lm(lm, supported_params=["response_format"])
@@ -22,6 +22,7 @@ import jsonschema
22
22
  import pytest
23
23
 
24
24
  from cmpnd import retry
25
+ from cmpnd._http import Remedy, server_detail
25
26
  from cmpnd.models import SpanType
26
27
  from cmpnd.trace_lifecycle import ClosedSpan, CompletedTrace, OpenSpan, StartedTrace, TraceDraft
27
28
  from cmpnd_ingest.bodies import completed_trace_body, span_body, span_start_body, trace_finalize_body, trace_start_body
@@ -212,3 +213,96 @@ class TestRetryableErrorContract:
212
213
  _load_schema(_RETRYABLE_ERROR_SCHEMA),
213
214
  schema_registry,
214
215
  )
216
+
217
+
218
+ # ---------------------------------------------------------------------------
219
+ # The error envelope: every error a serve handler writes on /api/v1
220
+ # ---------------------------------------------------------------------------
221
+ #
222
+ # api-error.schema.json states the whole envelope and references
223
+ # retryable-error.schema.json for its two retry fields. serve validates every
224
+ # answer it writes against the same file, so a body this client reads is a
225
+ # body the emitter is held to.
226
+
227
+ _API_ERROR_SCHEMA = "api-error.schema.json"
228
+
229
+
230
+ class TestApiErrorEnvelopeContract:
231
+ @pytest.mark.parametrize(
232
+ "body",
233
+ [
234
+ {"error": "insert failed", "error_code": "internal_error"},
235
+ {"error": "insert failed", "error_code": "temporarily_unavailable", "retryable": True, "retry_after": 5},
236
+ {
237
+ "error": "This request is over the 25 MiB upload limit.",
238
+ "error_code": "body_too_large",
239
+ "limit_bytes": 26214400,
240
+ "fields": ["traces"],
241
+ "current_deployment_id": None,
242
+ },
243
+ {"error": "x", "error_code": "search_range_conflict", "reason": "end_without_start"},
244
+ {"error": "x", "error_code": "label_search_busy", "reason": "global", "retryable": True, "retry_after": 2},
245
+ {"error": "x", "error_code": "eval_incompatible", "missing_inputs": ["question"], "uncovered_inputs": []},
246
+ ],
247
+ )
248
+ def test_the_bodies_serve_writes_validate(self, body, schema_registry):
249
+ _validate(body, _load_schema(_API_ERROR_SCHEMA), schema_registry)
250
+
251
+ @pytest.mark.parametrize(
252
+ "body",
253
+ [
254
+ {"error": "boom"},
255
+ {"error": {"type": "no_credential", "message": "x"}, "error_code": "no_credential"},
256
+ {"error": "x", "error_code": "TraceNotFound"},
257
+ {"error": "x", "error_code": "internal_error", "retryable": False},
258
+ {"error": "x", "error_code": "temporarily_unavailable", "retryable": True},
259
+ {"error": "x", "error_code": "trace_not_found", "trace": {"id": "7f1c"}},
260
+ {"error": "x", "error_code": "trace_not_found", "traceId": "7f1c"},
261
+ {"error": "x", "error_code": "default_tag", "remedy": "run cmpnd programs tag"},
262
+ {"error": "x", "error_code": "default_tag", "remedy": {"steps": [{"kind": "link"}]}},
263
+ {"error": "x", "error_code": "default_tag", "remedy": {"steps": [{"kind": "command"}]}},
264
+ {
265
+ "error": "x",
266
+ "error_code": "default_tag",
267
+ "remedy": {"steps": [{"kind": "command", "command": ""}]},
268
+ },
269
+ {
270
+ "error": "x",
271
+ "error_code": "program_unnamed",
272
+ "remedy": {"steps": [{"kind": "code", "language": "python"}]},
273
+ },
274
+ {"error": "x", "error_code": "search_range_conflict", "reason": "per_org"},
275
+ {"error": "x", "error_code": "trace_not_found", "reason": "missing"},
276
+ ],
277
+ )
278
+ def test_the_shapes_the_envelope_rules_out_do_not_validate(self, body, schema_registry):
279
+ with pytest.raises(jsonschema.ValidationError):
280
+ _validate(body, _load_schema(_API_ERROR_SCHEMA), schema_registry)
281
+
282
+ def test_every_envelope_body_is_a_retryable_error_body(self, schema_registry):
283
+ # The envelope narrows the retryable contract and never contradicts it,
284
+ # so the retry policy reads an envelope answer unchanged.
285
+ body = {"error": "insert failed", "error_code": "temporarily_unavailable", "retryable": True, "retry_after": 5}
286
+ _validate(body, _load_schema(_API_ERROR_SCHEMA), schema_registry)
287
+ _validate(body, _load_schema(_RETRYABLE_ERROR_SCHEMA), schema_registry)
288
+
289
+ assert retry.is_retryable(_answer(body))
290
+ assert retry.retry_after_seconds(_answer(body)) == 5.0
291
+
292
+ def test_the_client_reads_the_message_and_the_remedy(self, schema_registry):
293
+ body = {
294
+ "error": "Restore the program first.",
295
+ "error_code": "program_in_trash",
296
+ "remedy": {
297
+ "steps": [
298
+ {"kind": "command", "command": "cmpnd programs restore p_0123456789Ab"},
299
+ {"kind": "code", "language": "python", "snippet": '@cmpnd.program("<name>")'},
300
+ ]
301
+ },
302
+ }
303
+ _validate(body, _load_schema(_API_ERROR_SCHEMA), schema_registry)
304
+
305
+ assert server_detail(_answer(body, status=404)) == "Restore the program first."
306
+ remedy = Remedy.from_body(body)
307
+ assert remedy is not None
308
+ assert remedy.as_json() == body["remedy"]
@@ -84,6 +84,21 @@ def test_enrich_without_valset_uses_trainset_for_both():
84
84
  assert trk.valset_individual_hash == trk.trainset_hash
85
85
 
86
86
 
87
+ def test_enrich_retains_each_models_reasoning_effort_without_credentials():
88
+ student, trainset, _ = _student_and_data()
89
+ trk = tracker.OptimizationTracker(optimizer_type="GEPA", program_name="")
90
+ tracker.enrich_from_program(
91
+ trk,
92
+ student=student,
93
+ trainset=trainset,
94
+ lm=types.SimpleNamespace(model="provider/model", kwargs={"reasoning_effort": "none", "api_key": "secret"}),
95
+ reflection_lm=types.SimpleNamespace(model="provider/model", kwargs={"reasoning_effort": "high"}),
96
+ )
97
+ assert trk.config["model_reasoning_effort"] == "none"
98
+ assert trk.config["reflection_sampling"]["reasoning_effort"] == "high"
99
+ assert "secret" not in str(trk.config)
100
+
101
+
87
102
  class _FlexProgram(dspy.Module):
88
103
  """A program with one `dspy.Flex` (code) and one ordinary predictor (prose)."""
89
104