cmpnd 0.97.0__tar.gz → 0.98.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. {cmpnd-0.97.0 → cmpnd-0.98.1}/PKG-INFO +1 -1
  2. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/login.py +16 -14
  3. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/top.py +48 -8
  4. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment.py +2 -0
  5. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment_metadata.py +39 -5
  6. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/execution.py +17 -7
  7. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/cli.md +18 -4
  8. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/sdk-instrumentation.md +5 -2
  9. {cmpnd-0.97.0 → cmpnd-0.98.1}/pyproject.toml +1 -1
  10. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_deployment_signature_helpers.py +16 -0
  11. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_pandas.py +4 -4
  12. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_login.py +65 -0
  13. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_schema_sample.py +20 -1
  14. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_top.py +119 -0
  15. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_metadata.py +21 -0
  16. {cmpnd-0.97.0 → cmpnd-0.98.1}/uv.lock +1 -1
  17. {cmpnd-0.97.0 → cmpnd-0.98.1}/.gitignore +0 -0
  18. {cmpnd-0.97.0 → cmpnd-0.98.1}/AGENTS.md +0 -0
  19. {cmpnd-0.97.0 → cmpnd-0.98.1}/CLAUDE.md +0 -0
  20. {cmpnd-0.97.0 → cmpnd-0.98.1}/README.md +0 -0
  21. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/__init__.py +0 -0
  22. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_account.py +0 -0
  23. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_assessments.py +0 -0
  24. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_authored_import.py +0 -0
  25. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_deployments.py +0 -0
  26. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_exporter_pool.py +0 -0
  27. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_gepa_patch.py +0 -0
  28. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_guides.py +0 -0
  29. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_http.py +0 -0
  30. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_label_vocabulary.py +0 -0
  31. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_program_patch.py +0 -0
  32. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_rlm_patch.py +0 -0
  33. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_runtime_tools.py +0 -0
  34. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_timespec.py +0 -0
  35. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_traces.py +0 -0
  36. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_valsets.py +0 -0
  37. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/authored.py +0 -0
  38. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/callback.py +0 -0
  39. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/__init__.py +0 -0
  40. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/api_client.py +0 -0
  41. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/__init__.py +0 -0
  42. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/admin.py +0 -0
  43. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/assessments.py +0 -0
  44. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/auth.py +0 -0
  45. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/datasets.py +0 -0
  46. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/deployments.py +0 -0
  47. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/evals.py +0 -0
  48. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/labels.py +0 -0
  49. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/optimizations.py +0 -0
  50. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/org.py +0 -0
  51. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/programs.py +0 -0
  52. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/provider_credentials.py +0 -0
  53. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/skill.py +0 -0
  54. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/tool_servers.py +0 -0
  55. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/traces.py +0 -0
  56. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/valsets.py +0 -0
  57. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/credentials.py +0 -0
  58. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/deprecation.py +0 -0
  59. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/label_args.py +0 -0
  60. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/pagination.py +0 -0
  61. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/shell.py +0 -0
  62. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/__init__.py +0 -0
  63. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
  64. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
  65. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
  66. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/agents.py +0 -0
  67. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/bundle.py +0 -0
  68. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/install.py +0 -0
  69. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/offer.py +0 -0
  70. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/trace_render.py +0 -0
  71. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/tree_help.py +0 -0
  72. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/verbs.py +0 -0
  73. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/views.py +0 -0
  74. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/client.py +0 -0
  75. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/configuration.py +0 -0
  76. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/context.py +0 -0
  77. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/credentials.py +0 -0
  78. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/dataset_sync.py +0 -0
  79. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/datasets.py +0 -0
  80. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/decorators.py +0 -0
  81. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment_runs.py +0 -0
  82. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/eval_handler.py +0 -0
  83. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/exporter.py +0 -0
  84. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/exporter_http.py +0 -0
  85. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/helpers.py +0 -0
  86. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/identity.py +0 -0
  87. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/imaging.py +0 -0
  88. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/__init__.py +0 -0
  89. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/decode.py +0 -0
  90. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/encode.py +0 -0
  91. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/hash.py +0 -0
  92. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/program.py +0 -0
  93. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/reflection.py +0 -0
  94. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/types.py +0 -0
  95. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/xxh64.py +0 -0
  96. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/labels.py +0 -0
  97. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/lm_configuration.py +0 -0
  98. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/mcp_servers.py +0 -0
  99. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/models.py +0 -0
  100. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/named_programs.py +0 -0
  101. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimization.py +0 -0
  102. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/__init__.py +0 -0
  103. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/gepa.py +0 -0
  104. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/gepa_callback.py +0 -0
  105. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/resume.py +0 -0
  106. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/tracker.py +0 -0
  107. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/packaging.py +0 -0
  108. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/program_naming.py +0 -0
  109. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/programs.py +0 -0
  110. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/references.py +0 -0
  111. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/retry.py +0 -0
  112. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/SKILL.md +0 -0
  113. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
  114. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
  115. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
  116. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
  117. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
  118. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
  119. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
  120. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/deploy.md +0 -0
  121. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/dspy.md +0 -0
  122. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/feedback.md +0 -0
  123. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/gaps.md +0 -0
  124. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/observe.md +0 -0
  125. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/optimize.md +0 -0
  126. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/setup.md +0 -0
  127. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/tools.md +0 -0
  128. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
  129. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/traces.py +0 -0
  130. {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/versions.py +0 -0
  131. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/2026-04-02-code-review.md +0 -0
  132. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/client.md +0 -0
  133. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/custom-proposer.md +0 -0
  134. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
  135. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
  136. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/reading-traces.md +0 -0
  137. {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/versions.md +0 -0
  138. {cmpnd-0.97.0 → cmpnd-0.98.1}/examples/generalizing_proposer.py +0 -0
  139. {cmpnd-0.97.0 → cmpnd-0.98.1}/examples/local_ollama.py +0 -0
  140. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/LINEAGE.md +0 -0
  141. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/README.md +0 -0
  142. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/__init__.py +0 -0
  143. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/bodies.py +0 -0
  144. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/client_floor.py +0 -0
  145. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/exporter_http.py +0 -0
  146. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/program_names.py +0 -0
  147. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/protocols.py +0 -0
  148. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/py.typed +0 -0
  149. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/rejections.py +0 -0
  150. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/request_log.py +0 -0
  151. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/retry.py +0 -0
  152. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/span_context.py +0 -0
  153. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/storable.py +0 -0
  154. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/trace_facts.py +0 -0
  155. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/user_agent.py +0 -0
  156. {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/pyproject.toml +0 -0
  157. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/audit-sdist.sh +0 -0
  158. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/capture_review_run.py +0 -0
  159. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/check-pip-install.sh +0 -0
  160. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/check_release_artifacts.py +0 -0
  161. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/export-bedrock-token.sh +0 -0
  162. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/fixtures/review_run.json.gz +0 -0
  163. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/gepa_resume_bug.py +0 -0
  164. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/install-test-env.sh +0 -0
  165. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/release-gate.sh +0 -0
  166. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/release-real-models.sh +0 -0
  167. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/require_version_bump.py +0 -0
  168. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/seed_review_run.py +0 -0
  169. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/selfhost_compat.py +0 -0
  170. {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/test-in-linux.sh +0 -0
  171. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/__init__.pyi +0 -0
  172. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/primitives/__init__.pyi +0 -0
  173. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/primitives/prediction.pyi +0 -0
  174. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/__init__.pyi +0 -0
  175. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/callback.pyi +0 -0
  176. {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/dummies.pyi +0 -0
  177. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/__init__.py +0 -0
  178. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_credential_route.py +0 -0
  179. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_exporter_helpers.py +0 -0
  180. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_fake_clock.py +0 -0
  181. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_identity_helpers.py +0 -0
  182. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_resolve_refs.py +0 -0
  183. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_traced_run.py +0 -0
  184. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/conftest.py +0 -0
  185. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/__init__.py +0 -0
  186. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/committee_task.py +0 -0
  187. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/conftest.py +0 -0
  188. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/continuation_task.py +0 -0
  189. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/data/committee_train.ndjson.gz +0 -0
  190. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/data/committee_val.ndjson.gz +0 -0
  191. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/fake_lm.py +0 -0
  192. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/helpers.py +0 -0
  193. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/target_capabilities.py +0 -0
  194. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_assessments_cli.py +0 -0
  195. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_capture_prompts.py +0 -0
  196. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_composite_module.py +0 -0
  197. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_dataset_auto_creation.py +0 -0
  198. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_execute.py +0 -0
  199. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_programs.py +0 -0
  200. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_edge_cases.py +0 -0
  201. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_example_hash.py +0 -0
  202. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_gepa_optimization.py +0 -0
  203. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_interpreter_spans.py +0 -0
  204. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_lm_accuracy.py +0 -0
  205. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_module_tracing.py +0 -0
  206. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimization_lineage.py +0 -0
  207. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimization_metric_identity.py +0 -0
  208. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_authored_metric.py +0 -0
  209. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_continuation.py +0 -0
  210. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_custom_proposer.py +0 -0
  211. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_failures.py +0 -0
  212. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_loop.py +0 -0
  213. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_review_committee.py +0 -0
  214. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
  215. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_parallel_export.py +0 -0
  216. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_program_versions.py +0 -0
  217. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_project_attribution.py +0 -0
  218. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_react_tool_spans.py +0 -0
  219. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_save_load.py +0 -0
  220. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_trace_structure.py +0 -0
  221. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_traces_read.py +0 -0
  222. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_user_attribution.py +0 -0
  223. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_valsets_cli.py +0 -0
  224. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/01_predict_qa.json +0 -0
  225. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
  226. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
  227. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/04_predict_richer_types.json +0 -0
  228. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
  229. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/06_multichaincomparison.json +0 -0
  230. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/07_program_of_thought.json +0 -0
  231. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/08_opaque_module.json +0 -0
  232. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
  233. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/10_react.json +0 -0
  234. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/11_refine.json +0 -0
  235. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/12_retrieve.json +0 -0
  236. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/13_knn.json +0 -0
  237. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/14_parallel.json +0 -0
  238. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/README.md +0 -0
  239. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/ingest_conformance.py +0 -0
  240. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/__init__.py +0 -0
  241. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/authored_optimize/judge.py +0 -0
  242. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
  243. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/conftest.py +0 -0
  244. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
  245. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/hosted_optimize_probe.py +0 -0
  246. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/optimization_run_probe.py +0 -0
  247. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_cli_deploy_smoketest.py +0 -0
  248. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_logs_renders_traces.py +0 -0
  249. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_optimization_run.py +0 -0
  250. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_optimizing_progress.py +0 -0
  251. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_unhappy_path.py +0 -0
  252. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompt_fixture.py +0 -0
  253. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompts/four_turn_predict.json +0 -0
  254. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompts/rlm_six_turns.json +0 -0
  255. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/__init__.py +0 -0
  256. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/__main__.py +0 -0
  257. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/drain.py +0 -0
  258. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/ingest.py +0 -0
  259. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/latency_transport.py +0 -0
  260. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/rlm_shape.py +0 -0
  261. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/rlm_size_report.py +0 -0
  262. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/sweep.py +0 -0
  263. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/test_rlm_shape.py +0 -0
  264. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/test_rlm_size_report.py +0 -0
  265. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/__init__.py +0 -0
  266. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/conftest.py +0 -0
  267. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/seed_parity.py +0 -0
  268. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_auth.py +0 -0
  269. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_datasets.py +0 -0
  270. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_deployments.py +0 -0
  271. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_evals.py +0 -0
  272. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_health.py +0 -0
  273. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_modules.py +0 -0
  274. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_optimizations.py +0 -0
  275. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_programs.py +0 -0
  276. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_signatures.py +0 -0
  277. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_trace_streaming.py +0 -0
  278. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_traces.py +0 -0
  279. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/__init__.py +0 -0
  280. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_provider.py +0 -0
  281. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_readiness.py +0 -0
  282. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_reliability.py +0 -0
  283. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_result.py +0 -0
  284. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/mint_bedrock_token.py +0 -0
  285. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_bedrock_converse.py +0 -0
  286. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_deploy_programs.py +0 -0
  287. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_multi_client_stress.py +0 -0
  288. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_client_committee.py +0 -0
  289. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_continuation.py +0 -0
  290. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_loop.py +0 -0
  291. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_loop_wasm.py +0 -0
  292. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_stress.py +0 -0
  293. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_provider_roles.py +0 -0
  294. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_readiness.py +0 -0
  295. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_real_provider_twins.py +0 -0
  296. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_reliability.py +0 -0
  297. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_reliability_classify.py +0 -0
  298. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_rlm_wasm.py +0 -0
  299. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_skill_agent.py +0 -0
  300. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_trace_search.py +0 -0
  301. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/span_reference_fixture.py +0 -0
  302. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_adapter_reentrancy.py +0 -0
  303. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_assessments_api.py +0 -0
  304. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored.py +0 -0
  305. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_binding_credentials.py +0 -0
  306. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_bundle_collisions.py +0 -0
  307. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_metric_contract.py +0 -0
  308. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_named_models.py +0 -0
  309. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_optimize.py +0 -0
  310. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_callback.py +0 -0
  311. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_candidate_lineage.py +0 -0
  312. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_check_release_artifacts.py +0 -0
  313. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/__init__.py +0 -0
  314. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/conftest.py +0 -0
  315. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_admin.py +0 -0
  316. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_api_client.py +0 -0
  317. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_assessments.py +0 -0
  318. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_auth.py +0 -0
  319. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_credentials.py +0 -0
  320. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_datasets.py +0 -0
  321. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_deployment_runs.py +0 -0
  322. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_deployments.py +0 -0
  323. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_evals.py +0 -0
  324. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_json_flag.py +0 -0
  325. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_main.py +0 -0
  326. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_optimizations.py +0 -0
  327. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_org.py +0 -0
  328. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_pagination.py +0 -0
  329. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_parity.py +0 -0
  330. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_programs.py +0 -0
  331. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_provider_credentials.py +0 -0
  332. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_shell.py +0 -0
  333. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_skill.py +0 -0
  334. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_skill_offer.py +0 -0
  335. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_tool_servers.py +0 -0
  336. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces.py +0 -0
  337. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces_program_and_module.py +0 -0
  338. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces_search_wire.py +0 -0
  339. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_tree_help.py +0 -0
  340. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_valsets.py +0 -0
  341. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client.py +0 -0
  342. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client_floor.py +0 -0
  343. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client_program_names.py +0 -0
  344. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/__init__.py +0 -0
  345. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/conftest.py +0 -0
  346. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_edge_cases.py +0 -0
  347. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_hash_consistency.py +0 -0
  348. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_type_conversion.py +0 -0
  349. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cmp551_grouping_identity.py +0 -0
  350. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_configuration.py +0 -0
  351. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_context.py +0 -0
  352. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_context_propagation.py +0 -0
  353. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_kwargs.py +0 -0
  354. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_selection.py +0 -0
  355. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_values.py +0 -0
  356. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_dataset_polling.py +0 -0
  357. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_dataset_sync.py +0 -0
  358. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_datasets.py +0 -0
  359. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_decision_client_spans.py +0 -0
  360. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_decorators.py +0 -0
  361. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy.py +0 -0
  362. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy_mcp_tool_references.py +0 -0
  363. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy_program_id.py +0 -0
  364. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_runs.py +0 -0
  365. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_targets.py +0 -0
  366. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployments_read.py +0 -0
  367. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval.py +0 -0
  368. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_example_attribution.py +0 -0
  369. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_example_failures.py +0 -0
  370. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_program_id.py +0 -0
  371. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_start.py +0 -0
  372. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_trace_grouping.py +0 -0
  373. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exception_paths.py +0 -0
  374. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_execute.py +0 -0
  375. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_execute_run_identity.py +0 -0
  376. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter.py +0 -0
  377. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_program_names.py +0 -0
  378. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_queue.py +0 -0
  379. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_real.py +0 -0
  380. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_rejections.py +0 -0
  381. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_fake_lm.py +0 -0
  382. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_forward_access_warning.py +0 -0
  383. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_callback.py +0 -0
  384. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_integration.py +0 -0
  385. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_output_normalization.py +0 -0
  386. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_resume.py +0 -0
  387. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_identity.py +0 -0
  388. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_imaging.py +0 -0
  389. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_import_weight.py +0 -0
  390. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ingest_conformance.py +0 -0
  391. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ingest_second_producer.py +0 -0
  392. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_integration.py +0 -0
  393. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_interpreter_callback.py +0 -0
  394. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_encoder_properties.py +0 -0
  395. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_golden_vectors.py +0 -0
  396. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_roundtrip.py +0 -0
  397. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_label_vocabulary.py +0 -0
  398. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_native_calls.py +0 -0
  399. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_prompt_fixtures.py +0 -0
  400. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_prompt_references.py +0 -0
  401. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm_configuration.py +0 -0
  402. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm_usage_shapes.py +0 -0
  403. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_mcp_tools.py +0 -0
  404. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_models.py +0 -0
  405. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_multi_client_stress_readiness.py +0 -0
  406. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_no_signature_hash_on_the_wire.py +0 -0
  407. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_phase_callback.py +0 -0
  408. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_program_names.py +0 -0
  409. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_progress.py +0 -0
  410. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_start.py +0 -0
  411. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize.py +0 -0
  412. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_budget.py +0 -0
  413. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_labels.py +0 -0
  414. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_lift.py +0 -0
  415. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_lms.py +0 -0
  416. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_proposer.py +0 -0
  417. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_reflection_lm.py +0 -0
  418. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_terminal_failure.py +0 -0
  419. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_owned_trace_streaming.py +0 -0
  420. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging.py +0 -0
  421. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_callable_source.py +0 -0
  422. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_mcp_tools.py +0 -0
  423. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_program_source.py +0 -0
  424. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_poll_until.py +0 -0
  425. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_id_deprecation.py +0 -0
  426. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_identity.py +0 -0
  427. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_lineage_persist.py +0 -0
  428. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_names_in_deploy.py +0 -0
  429. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_naming.py +0 -0
  430. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_programs_create.py +0 -0
  431. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_project_payload.py +0 -0
  432. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_real_provider_twins_readiness.py +0 -0
  433. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reflector_properties.py +0 -0
  434. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reflector_smoke.py +0 -0
  435. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_release_gate_script.py +0 -0
  436. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_release_real_models_script.py +0 -0
  437. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_replaced_names.py +0 -0
  438. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_repro_reactv2_bugs.py +0 -0
  439. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_require_version_bump.py +0 -0
  440. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_retry.py +0 -0
  441. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reversible_failures.py +0 -0
  442. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_rlm_patch.py +0 -0
  443. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_run_attribution_paths.py +0 -0
  444. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_runtime_tools.py +0 -0
  445. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_schemas.py +0 -0
  446. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_seal_lm_credential.py +0 -0
  447. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_seed_review_run.py +0 -0
  448. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_signature_inputs.py +0 -0
  449. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_skill_bundle.py +0 -0
  450. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_skill_tools_block.py +0 -0
  451. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_references.py +0 -0
  452. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_sent_once.py +0 -0
  453. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_submission.py +0 -0
  454. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_submission_wire_contract.py +0 -0
  455. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_stored_login.py +0 -0
  456. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_system_one.py +0 -0
  457. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_token_attribution.py +0 -0
  458. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_context_concurrency.py +0 -0
  459. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_fact_wire_contract.py +0 -0
  460. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_facts.py +0 -0
  461. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_labels.py +0 -0
  462. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_render.py +0 -0
  463. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_traces_label_search_busy.py +0 -0
  464. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_traces_read.py +0 -0
  465. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_tracked_gepa.py +0 -0
  466. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_tracker_enrich.py +0 -0
  467. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_truncation.py +0 -0
  468. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_upload_auth_headers.py +0 -0
  469. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_user_agent.py +0 -0
  470. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_valsets_api.py +0 -0
  471. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_versions.py +0 -0
  472. {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_xxh64.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cmpnd
3
- Version: 0.97.0
3
+ Version: 0.98.1
4
4
  Summary: DSPy observability and deployment SDK for cmpnd
5
5
  Project-URL: Homepage, https://cmpnd.ai
6
6
  Author-email: cmpnd <hello@cmpnd.ai>
@@ -26,6 +26,9 @@ from argparse import ArgumentParser, _SubParsersAction
26
26
  from http.server import BaseHTTPRequestHandler, HTTPServer
27
27
  from typing import Any, Callable
28
28
 
29
+ import httpx
30
+
31
+ from ... import _http
29
32
  from .. import api_client, credentials
30
33
 
31
34
  LOOPBACK_TIMEOUT_SECONDS = 180
@@ -228,23 +231,22 @@ def _exchange_code(endpoint: str, code: str) -> str:
228
231
 
229
232
  The exchange endpoint is unauthenticated (the code itself is the
230
233
  bearer); the server consumes the code on read so it cannot be replayed.
234
+ ``ApiClient`` needs an API key, which this request exists to get, so it
235
+ posts through the SDK's own client instead. That client sends the
236
+ release's ``User-Agent``, so the server can count which release logged in.
231
237
  """
232
- # Bare HTTP POST — ApiClient requires an api_key we don't have yet.
233
- import json
234
- import urllib.request
235
-
236
238
  url = f"{endpoint.rstrip('/')}/api/v1/auth/cli/exchange"
237
- body = json.dumps({"code": code}).encode("utf-8")
238
- req = urllib.request.Request(
239
- url,
240
- data=body,
241
- headers={"Content-Type": "application/json", "Accept": "application/json"},
242
- method="POST",
243
- )
244
239
  try:
245
- with urllib.request.urlopen(req, timeout=30) as resp:
246
- payload = json.loads(resp.read().decode("utf-8"))
247
- except Exception as exc:
240
+ with _http.new_client(headers={"Accept": "application/json"}, timeout=30) as client:
241
+ response = client.post(url, json={"code": code})
242
+ except httpx.HTTPError as exc:
243
+ raise api_client.CliError(f"Failed to exchange login code: {exc}") from exc
244
+ if response.status_code >= 400:
245
+ detail = _http.server_detail(response) or f"HTTP {response.status_code}"
246
+ raise api_client.CliError(f"Failed to exchange login code: {detail}")
247
+ try:
248
+ payload = response.json()
249
+ except ValueError as exc:
248
250
  raise api_client.CliError(f"Failed to exchange login code: {exc}") from exc
249
251
  token = payload.get("api_key") if isinstance(payload, dict) else None
250
252
  if not isinstance(token, str) or not token:
@@ -703,12 +703,17 @@ def _schema_data(client: api_client.ApiClient, partial: str) -> dict[str, Any]:
703
703
  interface_status = "known"
704
704
  interface_reason = None
705
705
  signature_name = interface.signature_name
706
+ outputs_open = interface.has_open_outputs
706
707
  else:
707
708
  inputs = ()
708
709
  outputs = ()
709
710
  interface_status = interface.status if interface is not None else None
710
711
  interface_reason = interface.reason if interface is not None else None
711
712
  signature_name = None
713
+ outputs_open = False
714
+ known = interface_status == "known"
715
+ # Open outputs name no fields: a run returns whatever fields the program returns.
716
+ names_outputs = known and not outputs_open
712
717
  return {
713
718
  "deployment_id": did,
714
719
  "status": response.status,
@@ -726,10 +731,12 @@ def _schema_data(client: api_client.ApiClient, partial: str) -> dict[str, Any]:
726
731
  "source_format": metadata.artifact.source_format if metadata is not None else None,
727
732
  "interface_status": interface_status,
728
733
  "signature_name": signature_name,
729
- "input_fields": [field.name for field in inputs] if interface_status == "known" else None,
730
- "output_fields": [field.name for field in outputs] if interface_status == "known" else None,
731
- "input_field_details": [field.to_dict() for field in inputs] if interface_status == "known" else None,
732
- "output_field_details": [field.to_dict() for field in outputs] if interface_status == "known" else None,
734
+ "input_fields": [field.name for field in inputs] if known else None,
735
+ "optional_input_fields": [field.name for field in inputs if not field.is_required] if known else None,
736
+ "output_fields": [field.name for field in outputs] if names_outputs else None,
737
+ "outputs_open": outputs_open,
738
+ "input_field_details": [field.to_dict() for field in inputs] if known else None,
739
+ "output_field_details": [field.to_dict() for field in outputs] if names_outputs else None,
733
740
  "metadata": metadata.to_dict() if metadata is not None else None,
734
741
  }
735
742
 
@@ -775,10 +782,16 @@ def cmd_schema(client: api_client.ApiClient, args: Any) -> None:
775
782
  if sig_name:
776
783
  header += _c(f" ({sig_name})", "dim")
777
784
  print(header)
778
- print(f" Inputs: {', '.join(data['input_fields'] or []) or '—'}")
779
- print(f" Outputs: {', '.join(data['output_fields'] or []) or '—'}")
780
- if data["input_fields"]:
781
- example = {f: "..." for f in data["input_fields"]}
785
+ optional = set(data.get("optional_input_fields") or [])
786
+ inputs = [f"{name} (optional)" if name in optional else name for name in data["input_fields"] or []]
787
+ print(f" Inputs: {', '.join(inputs) or '—'}")
788
+ if data.get("outputs_open"):
789
+ print(" Outputs: open (the fields the program returns)")
790
+ else:
791
+ print(f" Outputs: {', '.join(data['output_fields'] or []) or '—'}")
792
+ required = [name for name in data["input_fields"] or [] if name not in optional]
793
+ if required:
794
+ example = {f: "..." for f in required}
782
795
  print()
783
796
  print(_c(" Invoke with a JSON object of the input fields:", "dim"))
784
797
  print(f" {_hint_run(data['deployment_id'], json.dumps(example))}")
@@ -981,6 +994,7 @@ def cmd_deploy(client: api_client.ApiClient, args: Any) -> None:
981
994
 
982
995
  deployment_id = deployed.deployment_id
983
996
  print(deployment_id)
997
+ _warn_when_not_optimizable(deployed)
984
998
  if program_name is not None:
985
999
  _say_how_to_promote(client, program_name, deployment_id)
986
1000
 
@@ -998,6 +1012,32 @@ def cmd_deploy(client: api_client.ApiClient, args: Any) -> None:
998
1012
  )
999
1013
 
1000
1014
 
1015
+ def _warn_when_not_optimizable(deployed: Any) -> None:
1016
+ """Warn when the server could not name the new version's public interface.
1017
+
1018
+ Such a version runs, but the platform refuses to optimize it, so the deploy says so
1019
+ now rather than at the first optimization. The server's ``interface`` report says why
1020
+ and what to change. A server that sends none still serves the recorded inspection, whose
1021
+ reason the warning names. An inspection still pending says nothing: it does not block
1022
+ an optimization.
1023
+ """
1024
+ interface = getattr(deployed, "interface", None)
1025
+ if isinstance(interface, dict):
1026
+ if interface.get("status") != "unknown":
1027
+ return
1028
+ reason = interface.get("reason")
1029
+ detail = interface.get("detail")
1030
+ else:
1031
+ metadata = getattr(deployed, "artifact_metadata", None)
1032
+ recorded = metadata.interface if metadata is not None else None
1033
+ if recorded is None or recorded.status != "unknown":
1034
+ return
1035
+ reason = recorded.reason
1036
+ detail = None
1037
+ line = f"warning: this version runs, but it cannot be optimized: its public interface is unknown ({reason})"
1038
+ print(f"{line}. {detail}." if detail else f"{line}.", file=sys.stderr)
1039
+
1040
+
1001
1041
  def _say_how_to_promote(client: api_client.ApiClient, program_name: str, deployment_id: str) -> None:
1002
1042
  """Tell the user whether bare-name callers now run the new version, and how to promote it.
1003
1043
 
@@ -739,10 +739,12 @@ def _deploy_prepared(
739
739
  headers=headers,
740
740
  timeout=max(0.001, min(_TIMEOUT_SECONDS, remaining)),
741
741
  )
742
+ interface = status.get("interface")
742
743
  return execution.DeployedProgram(
743
744
  deployment_id,
744
745
  endpoint=config.endpoint,
745
746
  deployment_signature=signature,
747
+ interface=interface if isinstance(interface, dict) else None,
746
748
  )
747
749
  if status["status"] == "failed":
748
750
  raise DeployFailed(
@@ -45,6 +45,7 @@ DeploymentSignatureUnavailableReason: TypeAlias = Literal[
45
45
  _SHA256_RE = re.compile(r"^[0-9a-f]{64}$")
46
46
  _SOURCE_FORMATS = frozenset(("authored", "notebook", "legacy"))
47
47
  _INTERFACE_PROVENANCE = frozenset(("inspected", "declared", "preserved"))
48
+ _INTERFACE_KEYS = frozenset(("status", "provenance", "signature_name", "inputs", "outputs", "reason", "outputs_open"))
48
49
  _FIELD_KINDS = frozenset(
49
50
  ("text", "integer", "number", "boolean", "list", "optional", "literal", "structured", "unknown")
50
51
  )
@@ -100,6 +101,12 @@ def _integer(value: object, path: str, *, minimum: int | None = None) -> int:
100
101
  return integer
101
102
 
102
103
 
104
+ def _bool(value: object, path: str) -> bool:
105
+ if not isinstance(value, bool):
106
+ raise DeploymentMetadataError(f"{path} must be a boolean")
107
+ return value
108
+
109
+
103
110
  def _enum(value: object, allowed: frozenset[str], path: str) -> str:
104
111
  string = _string(value, path)
105
112
  if string not in allowed:
@@ -302,19 +309,28 @@ class ProgramField:
302
309
  type: ProgramFieldType
303
310
  description: str | None = None
304
311
  prefix: str | None = None
312
+ #: False for an input a caller may omit, because ``forward()`` gives its parameter
313
+ #: a default. None means the document said nothing, which means required.
314
+ required: bool | None = None
305
315
  extra: dict[str, JSONValue] = field(default_factory=dict, repr=False)
306
316
 
317
+ @property
318
+ def is_required(self) -> bool:
319
+ return self.required is not False
320
+
307
321
  @classmethod
308
322
  def from_dict(cls, value: Mapping[str, Any], *, path: str = "field") -> ProgramField:
309
323
  obj = _object(value, path)
310
324
  description = obj.get("description", _MISSING)
311
325
  prefix = obj.get("prefix", _MISSING)
326
+ required = obj.get("required", _MISSING)
312
327
  return cls(
313
328
  name=_string(_required(obj, "name", path), f"{path}.name", nonempty=True),
314
329
  type=ProgramFieldType.from_dict(_required(obj, "type", path), path=f"{path}.type"),
315
330
  description=None if description is _MISSING else _string(description, f"{path}.description"),
316
331
  prefix=None if prefix is _MISSING else _string(prefix, f"{path}.prefix"),
317
- extra=_extras(obj, frozenset(("name", "type", "description", "prefix")), path),
332
+ required=None if required is _MISSING else _bool(required, f"{path}.required"),
333
+ extra=_extras(obj, frozenset(("name", "type", "description", "prefix", "required")), path),
318
334
  )
319
335
 
320
336
  def to_dict(self) -> dict[str, JSONValue]:
@@ -323,6 +339,8 @@ class ProgramField:
323
339
  known["description"] = self.description
324
340
  if self.prefix is not None:
325
341
  known["prefix"] = self.prefix
342
+ if self.required is not None:
343
+ known["required"] = self.required
326
344
  encoded = _merge(self.extra, known)
327
345
  ProgramField.from_dict(encoded)
328
346
  return encoded
@@ -348,8 +366,16 @@ class ProgramInterface:
348
366
  outputs: tuple[ProgramField, ...] | None = None
349
367
  signature_name: str | None = None
350
368
  reason: str | None = None
369
+ #: True when inspection established the inputs but the program declares no output
370
+ #: fields. ``outputs`` is then empty, and a run returns whatever fields the program
371
+ #: returns. None means the document said nothing, which means false.
372
+ outputs_open: bool | None = None
351
373
  extra: dict[str, JSONValue] = field(default_factory=dict, repr=False)
352
374
 
375
+ @property
376
+ def has_open_outputs(self) -> bool:
377
+ return self.outputs_open is True
378
+
353
379
  @classmethod
354
380
  def from_dict(cls, value: Mapping[str, Any]) -> ProgramInterface:
355
381
  obj = _object(value, "interface")
@@ -367,29 +393,35 @@ class ProgramInterface:
367
393
  if "reason" in obj:
368
394
  raise DeploymentMetadataError("interface.reason is forbidden for a known interface")
369
395
  signature_name = obj.get("signature_name", _MISSING)
396
+ outputs_open = obj.get("outputs_open", _MISSING)
397
+ outputs = _fields(_required(obj, "outputs", "interface"), "interface.outputs")
398
+ open_flag = None if outputs_open is _MISSING else _bool(outputs_open, "interface.outputs_open")
399
+ if open_flag and outputs:
400
+ raise DeploymentMetadataError("interface.outputs must be empty when interface.outputs_open is true")
370
401
  return cls(
371
402
  status="known",
372
403
  provenance=provenance,
373
404
  inputs=_fields(_required(obj, "inputs", "interface"), "interface.inputs"),
374
- outputs=_fields(_required(obj, "outputs", "interface"), "interface.outputs"),
405
+ outputs=outputs,
375
406
  signature_name=None
376
407
  if signature_name is _MISSING
377
408
  else _string(signature_name, "interface.signature_name"),
409
+ outputs_open=open_flag,
378
410
  extra=_extras(
379
411
  obj,
380
- frozenset(("status", "provenance", "signature_name", "inputs", "outputs", "reason")),
412
+ _INTERFACE_KEYS,
381
413
  "interface",
382
414
  ),
383
415
  )
384
416
 
385
- _reject_present(obj, ("inputs", "outputs", "signature_name"), "interface")
417
+ _reject_present(obj, ("inputs", "outputs", "signature_name", "outputs_open"), "interface")
386
418
  return cls(
387
419
  status="unknown",
388
420
  provenance=provenance,
389
421
  reason=_string(_required(obj, "reason", "interface"), "interface.reason", nonempty=True),
390
422
  extra=_extras(
391
423
  obj,
392
- frozenset(("status", "provenance", "signature_name", "inputs", "outputs", "reason")),
424
+ _INTERFACE_KEYS,
393
425
  "interface",
394
426
  ),
395
427
  )
@@ -401,6 +433,8 @@ class ProgramInterface:
401
433
  known["outputs"] = None if self.outputs is None else [item.to_dict() for item in self.outputs]
402
434
  if self.signature_name is not None:
403
435
  known["signature_name"] = self.signature_name
436
+ if self.outputs_open is not None:
437
+ known["outputs_open"] = self.outputs_open
404
438
  if self.reason is not None:
405
439
  known["reason"] = self.reason
406
440
  else:
@@ -130,8 +130,13 @@ class DeployedProgram:
130
130
  score: float | None = None,
131
131
  deployment_signature: DeploymentSignatureResponse | None = None,
132
132
  optimization_run_id: str | None = None,
133
+ interface: dict[str, Any] | None = None,
133
134
  ) -> None:
134
135
  self.deployment_id = deployment_id
136
+ #: What the server reported about this version's public interface: ``status``
137
+ #: (``known``, ``unknown`` or ``unavailable``) and, unless known, the ``reason``
138
+ #: and a ``detail`` saying what to change. None from a server that reports none.
139
+ self.interface = interface
135
140
  #: The optimization run that produced this program, when it is a run's result.
136
141
  #: ``cmpnd.Client.continue_optimization`` takes such a program in place of a run id.
137
142
  self.optimization_run_id = optimization_run_id
@@ -145,15 +150,20 @@ class DeployedProgram:
145
150
  )
146
151
  self.artifact_metadata = deployment_signature.metadata
147
152
  self.metadata_unavailable_reason = deployment_signature.reason
148
- interface = deployment_signature.metadata.interface if deployment_signature.metadata is not None else None
149
- if interface is not None and interface.status == "known":
150
- inputs = interface.inputs or ()
151
- outputs = interface.outputs or ()
153
+ recorded = deployment_signature.metadata.interface if deployment_signature.metadata is not None else None
154
+ if recorded is not None and recorded.status == "known":
155
+ inputs = recorded.inputs or ()
156
+ outputs = recorded.outputs or ()
152
157
  self.input_fields = [field.name for field in inputs]
153
- self.output_fields = [field.name for field in outputs]
154
158
  self.input_field_types = [_field_type_name(field.type) for field in inputs]
155
- self.output_field_types = [_field_type_name(field.type) for field in outputs]
156
- self.signature_name = interface.signature_name
159
+ # Open outputs name no fields, which is not the same claim as "no outputs".
160
+ if recorded.has_open_outputs:
161
+ self.output_fields = None
162
+ self.output_field_types = None
163
+ else:
164
+ self.output_fields = [field.name for field in outputs]
165
+ self.output_field_types = [_field_type_name(field.type) for field in outputs]
166
+ self.signature_name = recorded.signature_name
157
167
  else:
158
168
  self.input_fields = None
159
169
  self.output_fields = None
@@ -279,7 +279,14 @@ such as `d_a1b2c3d4`. Three of them are shortcuts, and their help says so:
279
279
  - `cmpnd deploy <source.py|-> PROGRAM_NAME [--entrypoint ATTRIBUTE]
280
280
  [--source-root DIR] [--include PATH ...] [--run <json>] [--metadata <json>]`
281
281
  deploys authored Python from a file or stdin. `--run` smoke-tests it with
282
- one input. "Program names" above says how the program name resolves.
282
+ one input. "Program names" above says how the program name resolves. The
283
+ platform reads a predictor's interface from its signature and a composed
284
+ `dspy.Module`'s from its `forward()`: each named parameter is an input, one
285
+ with a default is optional, and a return annotation that names fields, such
286
+ as a `dspy.Signature` or a `TypedDict`, names the outputs. Otherwise the
287
+ outputs are open. When the inputs cannot be named, as with
288
+ `forward(self, **kwargs)`, the deploy warns that the version runs but cannot
289
+ be optimized, with the reason.
283
290
  - `cmpnd ps [--status <state>] [--limit N] [--offset N]` lists deployments,
284
291
  newest first.
285
292
  - `cmpnd status <id> [-f] [--timeout <seconds>]` shows a deployment's status.
@@ -295,7 +302,11 @@ such as `d_a1b2c3d4`. Three of them are shortcuts, and their help says so:
295
302
  - `cmpnd logs <id>` prints the status timeline and recent traces.
296
303
  - `cmpnd inspect <id>` prints the full deployment record as JSON.
297
304
  `--source` prints the entry file, and `--source PATH` prints another bundled
298
- file.
305
+ file. The record's `interface` object says whether the platform knows the
306
+ program's public interface. Its `status` is `known`, `unknown` or
307
+ `unavailable`, and otherwise `reason` names the cause and `detail` says what
308
+ to change. `outputs_open` is true for a known interface that names no
309
+ outputs. Only a `known` interface can be optimized, open outputs included.
299
310
 
300
311
  `cmpnd run`, `cmpnd deployments run`, `cmpnd deploy --run` and the shell's
301
312
  `run` send one `POST /api/v1/deployments/{id}/runs` and never repeat it. They
@@ -428,8 +439,11 @@ to ship.
428
439
  read executions. The JSON form has the
429
440
  `input_fields` and `output_fields` name lists, and adds each field's type,
430
441
  description and prefix under `input_field_details` and
431
- `output_field_details`. An unavailable or unknown interface is reported as
432
- such, not shown as empty. A server without the deployment signature route
442
+ `output_field_details`. `optional_input_fields` names the inputs a caller may
443
+ omit, which the human form marks `(optional)` and leaves out of its `cmpnd run`
444
+ example. When the program names no outputs, `outputs_open` is true and
445
+ `output_fields` is null, and the human form prints `open`. An unavailable or
446
+ unknown interface is reported as such, not shown as empty. A server without the deployment signature route
433
447
  returns its route error, and `cmpnd schema` prints that error.
434
448
 
435
449
  `cmpnd sample` reads the newest recorded input of the deployment's program,
@@ -400,7 +400,7 @@ Two callers implement the waiting:
400
400
 
401
401
  Every API answer names the oldest cmpnd release the server supports, in the `X-Cmpnd-Minimum-Client-Version` header. `cmpnd_ingest/client_floor.py` reads it in an httpx response hook. When the installed `cmpnd` is older, it raises an `UpgradeRequiredWarning` once per process that names both versions and the command `pip install -U cmpnd`. The server refuses nothing for a client's version, so a call below the floor still goes through, and the warning appears beside whatever it does. Every client the SDK builds comes from `cmpnd._http.new_client`, which installs the hook, and the exporter installs it in `_client_kwargs`. `tests/test_client_floor.py` fails on an `httpx.Client` built any other way in `cmpnd/`. An install of `cmpnd_ingest` without `cmpnd` has no version to compare and says nothing. `CMPND_NO_UPGRADE_WARNING=1` silences the warning for a user who stays on an older release on purpose, and the warning names that switch. `cmpnd.UpgradeRequiredWarning` is public, so a `warnings` filter silences it in code.
402
402
 
403
- Every request names its release in the other direction, so the server can count which releases are in use. `cmpnd_ingest/user_agent.py` builds the `User-Agent` value, such as `cmpnd/0.85.2 python/3.12.13 httpx/0.28.1 dspy/3.4.1`. The first product is `cmpnd` for the SDK and `cmpnd-ingest` for a producer that installs only the transport, such as the optimizer's search process. A library that is not installed is left out. `cmpnd._http.new_client` and the exporter's `_client_kwargs` both send it. A caller that passes its own `User-Agent` to `new_client` keeps it. `tests/test_user_agent.py` checks the value that reaches the wire.
403
+ Every request names its release in the other direction, so the server can count which releases are in use. `cmpnd_ingest/user_agent.py` builds the `User-Agent` value, such as `cmpnd/0.85.2 python/3.12.13 httpx/0.28.1 dspy/3.4.1`. The first product is `cmpnd` for the SDK and `cmpnd-ingest` for a producer that installs only the transport, such as the optimizer's search process. A library that is not installed is left out. `cmpnd._http.new_client` and the exporter's `_client_kwargs` both send it. `cmpnd login` swaps its one-time code for a key through `new_client` too, so the login request also names the release. A caller that passes its own `User-Agent` to `new_client` keeps it. `tests/test_user_agent.py` checks the value that reaches the wire.
404
404
 
405
405
  ### The optimize loop and transient tolerance
406
406
 
@@ -460,7 +460,10 @@ After the poll reports ready, the SDK reads
460
460
  artifact metadata and never asks a worker or analytics store. A failed metadata
461
461
  read does not erase a deployment that already succeeded. The returned
462
462
  `DeployedProgram` leaves its interface unknown instead of rebuilding it from the
463
- local object.
463
+ local object. `DeployedProgram.interface` keeps the `interface` object of the
464
+ ready poll: the interface `status`, and unless it is `known`, the `reason` and a
465
+ `detail` saying what to change. `cmpnd deploy` warns from it when the status is
466
+ `unknown`, because the platform refuses to optimize such a version.
464
467
 
465
468
  A newer SDK can still finish a deploy or optimization against an older platform
466
469
  that lacks this route. The returned program keeps its deployment id and score,
@@ -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.97.0"
8
+ version = "0.98.1"
9
9
  description = "DSPy observability and deployment SDK for cmpnd"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.11"
@@ -1,5 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import json
4
+ from pathlib import Path
3
5
  from typing import Any
4
6
 
5
7
 
@@ -34,6 +36,20 @@ def known_metadata(*, inputs: list[dict[str, Any]] | None = None) -> dict[str, A
34
36
  }
35
37
 
36
38
 
39
+ def forward_derived_metadata() -> dict[str, Any]:
40
+ """The shared fixture for a composed module whose interface the worker read from forward()."""
41
+ corpus = json.loads(
42
+ (
43
+ Path(__file__).resolve().parents[2] / "docs" / "schemas" / "deployment-artifact-metadata.fixtures.json"
44
+ ).read_text()
45
+ )
46
+ return next(
47
+ fixture["value"]
48
+ for fixture in corpus["valid"]
49
+ if fixture["name"] == "a composed module's forward() names its inputs and leaves its outputs open"
50
+ )
51
+
52
+
37
53
  def available_signature(
38
54
  deployment_id: str = "d_0123456789abcdef0123456789abcdef",
39
55
  *,
@@ -101,10 +101,10 @@ class TestDeployPandasProgram:
101
101
 
102
102
  @needs_an_optimizer
103
103
  @pytest.mark.skip(
104
- reason="serve answers this optimize with 422, saying the deployment's public interface is "
105
- "unavailable until retained-source inspection finishes (recordedPublicInterface in "
106
- "serve/internal/deploymentsapi/optimize.go); whether a pandas program can be optimized "
107
- "or the test must wait is unknown"
104
+ reason="serve answers this optimize with 422 (public_interface_not_declared): "
105
+ "deploy_program uploads generated source, which the worker reads without importing it, "
106
+ "and that reader does not yet name a composed module's forward() inputs. An authored "
107
+ "deploy (`cmpnd deploy`) records them"
108
108
  )
109
109
  class TestOptimizePandasProgram:
110
110
  def test_gepa_step_with_a_pandas_metric_completes(self, server_client, deployed):
@@ -3,14 +3,18 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import argparse
6
+ import json
6
7
  import threading
7
8
  import urllib.parse
8
9
  import urllib.request
9
10
  from argparse import Namespace
10
11
  from unittest import mock
11
12
 
13
+ import httpx
12
14
  import pytest
15
+ from cmpnd_ingest import user_agent
13
16
 
17
+ from cmpnd import _http
14
18
  from cmpnd.cli import credentials
15
19
  from cmpnd.cli.api_client import CliError
16
20
  from cmpnd.cli.commands import login
@@ -375,6 +379,67 @@ class TestHandleLogin:
375
379
  assert credentials.load("http://localhost:3000") is None
376
380
 
377
381
 
382
+ class TestCodeExchange:
383
+ """The code exchange goes through the SDK's HTTP client, so serve can count the
384
+ release that logged in by its ``User-Agent``."""
385
+
386
+ @pytest.fixture
387
+ def sent(self, monkeypatch):
388
+ requests: list[httpx.Request] = []
389
+ answers: list[httpx.Response] = []
390
+
391
+ def handle(request: httpx.Request) -> httpx.Response:
392
+ requests.append(request)
393
+ return answers.pop(0) if answers else httpx.Response(200, json={"api_key": "cmpnd_exchanged"})
394
+
395
+ real_new_client = _http.new_client
396
+
397
+ def new_client(**kwargs):
398
+ return real_new_client(transport=httpx.MockTransport(handle), **kwargs)
399
+
400
+ monkeypatch.setattr(_http, "new_client", new_client)
401
+ return requests, answers
402
+
403
+ def test_exchange_sends_the_release_user_agent(self, sent):
404
+ requests, _ = sent
405
+ token = login._exchange_code("http://localhost:3000/", "code_abc")
406
+ assert token == "cmpnd_exchanged"
407
+ assert len(requests) == 1
408
+ request = requests[0]
409
+ assert request.method == "POST"
410
+ assert str(request.url) == "http://localhost:3000/api/v1/auth/cli/exchange"
411
+ assert request.headers["User-Agent"] == user_agent.user_agent()
412
+ assert request.headers["User-Agent"].startswith("cmpnd/")
413
+ assert request.headers["Content-Type"] == "application/json"
414
+ assert request.headers["Accept"] == "application/json"
415
+ assert "X-API-Key" not in request.headers
416
+ assert json.loads(request.read()) == {"code": "code_abc"}
417
+
418
+ def test_refused_code_names_the_server_reason(self, sent):
419
+ _, answers = sent
420
+ answers.append(httpx.Response(400, json={"error": "code expired or already used"}))
421
+ with pytest.raises(CliError, match="Failed to exchange login code.*code expired or already used"):
422
+ login._exchange_code("http://localhost:3000", "stale")
423
+
424
+ def test_unreachable_server_is_a_cli_error(self, monkeypatch):
425
+ real_new_client = _http.new_client
426
+
427
+ def refuse(request: httpx.Request) -> httpx.Response:
428
+ raise httpx.ConnectError("connection refused", request=request)
429
+
430
+ monkeypatch.setattr(
431
+ _http, "new_client", lambda **kwargs: real_new_client(transport=httpx.MockTransport(refuse), **kwargs)
432
+ )
433
+ with pytest.raises(CliError, match="Failed to exchange login code"):
434
+ login._exchange_code("http://localhost:3000", "code_abc")
435
+
436
+ def test_answer_without_a_key_is_refused(self, sent):
437
+ _, answers = sent
438
+ answers.append(httpx.Response(200, json={"something": "else"}))
439
+ with pytest.raises(CliError, match="did not include an api_key"):
440
+ login._exchange_code("http://localhost:3000", "code_abc")
441
+
442
+
378
443
  class TestHandleLogout:
379
444
  def test_clears_stored_credentials(self, config_dir, capsys):
380
445
  credentials.save("http://localhost:3000", "cmpnd_x")
@@ -10,7 +10,7 @@ import pytest
10
10
 
11
11
  from cmpnd.cli.api_client import CliError
12
12
  from cmpnd.cli.commands import top
13
- from tests._deployment_signature_helpers import available_signature, known_metadata
13
+ from tests._deployment_signature_helpers import available_signature, forward_derived_metadata, known_metadata
14
14
 
15
15
  # A full-length id so _resolve_id passes it through without hitting the network.
16
16
  DID = "d_0123456789abcdef0123456789abcdef"
@@ -84,6 +84,25 @@ class TestSchema:
84
84
  assert out["input_fields"] == []
85
85
  assert out["output_fields"] == []
86
86
 
87
+ def test_open_outputs_and_optional_inputs_are_shown_as_such(self, mock_client, capsys):
88
+ """A composed module's interface read from forward(): optional inputs and open outputs."""
89
+ mock_client.get.return_value = available_signature(DID, metadata=forward_derived_metadata())
90
+
91
+ top.cmd_schema(mock_client, _args(json=True))
92
+ out = json.loads(capsys.readouterr().out)
93
+ assert out["input_fields"] == ["mode", "today", "message", "customer_email", "order_id"]
94
+ assert out["optional_input_fields"] == ["customer_email", "order_id"]
95
+ assert out["outputs_open"] is True
96
+ assert out["output_fields"] is None
97
+
98
+ top.cmd_schema(mock_client, _args())
99
+ human = capsys.readouterr().out
100
+ assert "customer_email (optional)" in human
101
+ assert "Outputs: open" in human
102
+ # The invocation hint sends only what a caller must.
103
+ assert '"order_id"' not in human
104
+ assert '"message"' in human
105
+
87
106
  def test_old_server_404_stays_an_explicit_unsupported_read(self, mock_client):
88
107
  mock_client.get.side_effect = CliError("route not found", status_code=404)
89
108