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.
- {cmpnd-0.97.0 → cmpnd-0.98.1}/PKG-INFO +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/login.py +16 -14
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/top.py +48 -8
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment.py +2 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment_metadata.py +39 -5
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/execution.py +17 -7
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/cli.md +18 -4
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/sdk-instrumentation.md +5 -2
- {cmpnd-0.97.0 → cmpnd-0.98.1}/pyproject.toml +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_deployment_signature_helpers.py +16 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_pandas.py +4 -4
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_login.py +65 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_schema_sample.py +20 -1
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_top.py +119 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_metadata.py +21 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/uv.lock +1 -1
- {cmpnd-0.97.0 → cmpnd-0.98.1}/.gitignore +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/AGENTS.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/CLAUDE.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_account.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_guides.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_rlm_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/authored.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/decorators.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/exporter.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/imaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/packaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/cmpnd/versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/client.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/custom-proposer.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/reading-traces.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/docs/versions.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/examples/local_ollama.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/LINEAGE.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/exporter_http.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/request_log.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/ingest/pyproject.toml +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/release-gate.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_credential_route.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_fake_clock.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/_traced_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/__main__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/drain.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/ingest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/sweep.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_health.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/_result.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client_floor.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_clustering/test_type_conversion.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_context.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_credential_values.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_datasets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_decorators.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_start.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_execute.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_imaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_import_weight.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ingest_second_producer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_integration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_models.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_poll_until.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_identity.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_program_naming.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_programs_create.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_project_payload.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_retry.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_rlm_patch.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_schemas.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_references.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_submission.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_stored_login.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_system_one.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_trace_render.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_traces_read.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_truncation.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_user_agent.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_versions.py +0 -0
- {cmpnd-0.97.0 → cmpnd-0.98.1}/tests/test_xxh64.py +0 -0
|
@@ -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
|
|
246
|
-
|
|
247
|
-
except
|
|
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
|
|
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,
|
|
@@ -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.
|
|
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
|
|
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):
|
|
@@ -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
|
|