cmpnd 0.97.0__tar.gz → 0.98.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cmpnd-0.97.0 → cmpnd-0.98.0}/PKG-INFO +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/top.py +48 -8
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/deployment.py +2 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/deployment_metadata.py +39 -5
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/execution.py +17 -7
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/cli.md +18 -4
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/sdk-instrumentation.md +4 -1
- {cmpnd-0.97.0 → cmpnd-0.98.0}/pyproject.toml +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_deployment_signature_helpers.py +16 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_deploy_pandas.py +4 -4
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_schema_sample.py +20 -1
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_top.py +119 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deployment_metadata.py +21 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/uv.lock +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.0}/.gitignore +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/AGENTS.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/CLAUDE.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_account.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_guides.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_rlm_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/authored.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/decorators.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/exporter.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/imaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/packaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/cmpnd/versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/client.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/custom-proposer.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/reading-traces.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/docs/versions.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/examples/local_ollama.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/LINEAGE.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/request_log.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/ingest/pyproject.toml +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/release-gate.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_credential_route.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_fake_clock.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/_traced_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/__main__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/drain.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/ingest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/sweep.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_health.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/_result.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_client_floor.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_clustering/test_type_conversion.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_credential_values.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_decorators.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deploy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval_start.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_execute.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exporter.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_imaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_import_weight.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_ingest_second_producer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_integration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_packaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_poll_until.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_program_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_program_naming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_programs_create.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_project_payload.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_rlm_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_schemas.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_span_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_span_submission.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_stored_login.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_system_one.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_trace_render.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_traces_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_truncation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_user_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.0}/tests/test_xxh64.py +0 -0
|
@@ -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
|
|
730
|
-
"
|
|
731
|
-
"
|
|
732
|
-
"
|
|
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
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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
|
-
|
|
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=
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
149
|
-
if
|
|
150
|
-
inputs =
|
|
151
|
-
outputs =
|
|
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
|
-
|
|
156
|
-
|
|
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`.
|
|
432
|
-
|
|
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,
|
|
@@ -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.
|
|
8
|
+
version = "0.98.0"
|
|
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
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
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):
|
|
@@ -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
|
|
|
@@ -7,6 +7,7 @@ import io
|
|
|
7
7
|
from datetime import datetime, timedelta, timezone
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
from types import SimpleNamespace
|
|
10
|
+
from typing import Any
|
|
10
11
|
from unittest import mock
|
|
11
12
|
|
|
12
13
|
import httpx
|
|
@@ -1137,3 +1138,121 @@ class TestDeployStagesAuthoredSource:
|
|
|
1137
1138
|
assert prepare.call_args.kwargs["entrypoint"] == "build_program"
|
|
1138
1139
|
assert prepare.call_args.kwargs["source_root"] == tmp_path
|
|
1139
1140
|
assert prepare.call_args.kwargs["includes"] == [tmp_path / "prompts"]
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
_VARIADIC_DETAIL = (
|
|
1144
|
+
"the program's forward() takes *args or **kwargs, so serve cannot tell which fields of a dataset row "
|
|
1145
|
+
"are its inputs. Name each input as a forward() parameter, then deploy it again"
|
|
1146
|
+
)
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
def _unknown_metadata(reason: str) -> dict[str, Any]:
|
|
1150
|
+
from tests._deployment_signature_helpers import known_metadata
|
|
1151
|
+
|
|
1152
|
+
metadata = known_metadata()
|
|
1153
|
+
metadata["interface"] = {"status": "unknown", "provenance": "inspected", "reason": reason}
|
|
1154
|
+
return metadata
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
class TestDeployWarnsWhenTheVersionCannotBeOptimized:
|
|
1158
|
+
"""`cmpnd deploy` says at deploy time that a version runs but cannot be optimized, and why.
|
|
1159
|
+
|
|
1160
|
+
A real staging child and a real httpx client: the warning comes from what serve answered.
|
|
1161
|
+
"""
|
|
1162
|
+
|
|
1163
|
+
def _deploy(self, tmp_path, capsys, *, ready: dict[str, Any], signature: dict[str, Any]) -> str:
|
|
1164
|
+
from tests.test_deploy import _CREATE_BODY, _platform, _Script
|
|
1165
|
+
|
|
1166
|
+
path = tmp_path / "program.py"
|
|
1167
|
+
path.write_text('import dspy\nprogram = dspy.Predict("question -> answer")\n')
|
|
1168
|
+
script = _Script(
|
|
1169
|
+
post=[httpx.Response(201, json={**_CREATE_BODY, "source_format": "authored"})],
|
|
1170
|
+
get=[httpx.Response(200, json=ready), httpx.Response(200, json=signature)],
|
|
1171
|
+
)
|
|
1172
|
+
with _platform(script):
|
|
1173
|
+
top.cmd_deploy(_cli_client(), _deploy_args(str(path), program_name=None))
|
|
1174
|
+
captured = capsys.readouterr()
|
|
1175
|
+
assert captured.out.strip() == "dep-123"
|
|
1176
|
+
return captured.err
|
|
1177
|
+
|
|
1178
|
+
def test_an_unknown_interface_warns_with_its_reason_and_what_to_change(self, tmp_path, capsys):
|
|
1179
|
+
from tests._deployment_signature_helpers import available_signature
|
|
1180
|
+
|
|
1181
|
+
err = self._deploy(
|
|
1182
|
+
tmp_path,
|
|
1183
|
+
capsys,
|
|
1184
|
+
ready={
|
|
1185
|
+
"deployment_id": "dep-123",
|
|
1186
|
+
"status": "ready",
|
|
1187
|
+
"interface": {
|
|
1188
|
+
"status": "unknown",
|
|
1189
|
+
"reason": "forward_takes_variadic_arguments",
|
|
1190
|
+
"detail": _VARIADIC_DETAIL,
|
|
1191
|
+
},
|
|
1192
|
+
},
|
|
1193
|
+
signature=available_signature("dep-123", metadata=_unknown_metadata("forward_takes_variadic_arguments")),
|
|
1194
|
+
)
|
|
1195
|
+
|
|
1196
|
+
assert "warning: this version runs, but it cannot be optimized" in err
|
|
1197
|
+
assert "forward_takes_variadic_arguments" in err
|
|
1198
|
+
assert "Name each input as a forward() parameter" in err
|
|
1199
|
+
|
|
1200
|
+
def test_open_outputs_say_nothing(self, tmp_path, capsys):
|
|
1201
|
+
from tests._deployment_signature_helpers import available_signature, forward_derived_metadata
|
|
1202
|
+
|
|
1203
|
+
err = self._deploy(
|
|
1204
|
+
tmp_path,
|
|
1205
|
+
capsys,
|
|
1206
|
+
ready={
|
|
1207
|
+
"deployment_id": "dep-123",
|
|
1208
|
+
"status": "ready",
|
|
1209
|
+
"interface": {"status": "known", "outputs_open": True},
|
|
1210
|
+
},
|
|
1211
|
+
signature=available_signature("dep-123", metadata=forward_derived_metadata()),
|
|
1212
|
+
)
|
|
1213
|
+
|
|
1214
|
+
assert "cannot be optimized" not in err
|
|
1215
|
+
|
|
1216
|
+
def test_a_server_without_the_interface_field_warns_with_the_recorded_reason(self, tmp_path, capsys):
|
|
1217
|
+
from tests._deployment_signature_helpers import available_signature
|
|
1218
|
+
|
|
1219
|
+
err = self._deploy(
|
|
1220
|
+
tmp_path,
|
|
1221
|
+
capsys,
|
|
1222
|
+
ready={"deployment_id": "dep-123", "status": "ready"},
|
|
1223
|
+
signature=available_signature("dep-123", metadata=_unknown_metadata("public_interface_not_declared")),
|
|
1224
|
+
)
|
|
1225
|
+
|
|
1226
|
+
assert "warning: this version runs, but it cannot be optimized" in err
|
|
1227
|
+
assert "public_interface_not_declared" in err
|
|
1228
|
+
|
|
1229
|
+
def test_a_known_interface_says_nothing(self, tmp_path, capsys):
|
|
1230
|
+
from tests._deployment_signature_helpers import available_signature
|
|
1231
|
+
|
|
1232
|
+
err = self._deploy(
|
|
1233
|
+
tmp_path,
|
|
1234
|
+
capsys,
|
|
1235
|
+
ready={"deployment_id": "dep-123", "status": "ready", "interface": {"status": "known"}},
|
|
1236
|
+
signature=available_signature("dep-123"),
|
|
1237
|
+
)
|
|
1238
|
+
|
|
1239
|
+
assert "cannot be optimized" not in err
|
|
1240
|
+
|
|
1241
|
+
def test_an_inspection_still_pending_says_nothing(self, tmp_path, capsys):
|
|
1242
|
+
err = self._deploy(
|
|
1243
|
+
tmp_path,
|
|
1244
|
+
capsys,
|
|
1245
|
+
ready={
|
|
1246
|
+
"deployment_id": "dep-123",
|
|
1247
|
+
"status": "ready",
|
|
1248
|
+
"interface": {"status": "unavailable", "reason": "not_inspected", "detail": "pending"},
|
|
1249
|
+
},
|
|
1250
|
+
signature={
|
|
1251
|
+
"status": "unavailable",
|
|
1252
|
+
"deployment_id": "dep-123",
|
|
1253
|
+
"litellm_model": None,
|
|
1254
|
+
"reason": "not_inspected",
|
|
1255
|
+
},
|
|
1256
|
+
)
|
|
1257
|
+
|
|
1258
|
+
assert "cannot be optimized" not in err
|
|
@@ -390,3 +390,24 @@ def test_shared_deployment_signature_response_fixtures_match_the_typed_decoder()
|
|
|
390
390
|
with pytest.raises(DeploymentMetadataError) as exc_info:
|
|
391
391
|
DeploymentSignatureResponse.from_dict(fixture["response"])
|
|
392
392
|
assert str(exc_info.value), fixture["name"]
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
def test_a_forward_derived_interface_names_its_inputs_and_leaves_outputs_open():
|
|
396
|
+
"""A composed module's interface read from forward(): optional inputs, and no output names."""
|
|
397
|
+
from cmpnd.execution import DeployedProgram
|
|
398
|
+
from tests._deployment_signature_helpers import forward_derived_metadata
|
|
399
|
+
|
|
400
|
+
deployment_id = "d_0123456789abcdef0123456789abcdef"
|
|
401
|
+
response = DeploymentSignatureResponse.from_dict(
|
|
402
|
+
available_signature(deployment_id, metadata=forward_derived_metadata())
|
|
403
|
+
)
|
|
404
|
+
assert response.metadata is not None
|
|
405
|
+
interface = response.metadata.interface
|
|
406
|
+
assert interface.has_open_outputs
|
|
407
|
+
assert [field.name for field in interface.inputs or () if not field.is_required] == ["customer_email", "order_id"]
|
|
408
|
+
|
|
409
|
+
deployed = DeployedProgram(deployment_id, deployment_signature=response)
|
|
410
|
+
assert deployed.input_fields == ["mode", "today", "message", "customer_email", "order_id"]
|
|
411
|
+
# Open outputs name no fields, which differs from a program that returns nothing.
|
|
412
|
+
assert deployed.output_fields is None
|
|
413
|
+
assert deployed.output_field_types is None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|