cmpnd 0.115.0__tar.gz → 0.117.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.115.0 → cmpnd-0.117.0}/AGENTS.md +6 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/PKG-INFO +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/callback.py +2 -18
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/deployments.py +46 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/programs.py +88 -2
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/verbs.py +5 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/helpers.py +0 -10
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/models.py +59 -103
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/bodies.py +2 -2
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/exporter_http.py +6 -5
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/retry.py +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/span_context.py +11 -5
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/cli.md +16 -4
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/sdk-instrumentation.md +13 -7
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/versions.md +41 -5
- {cmpnd-0.115.0 → cmpnd-0.117.0}/pyproject.toml +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/capture_review_run.py +5 -4
- cmpnd-0.117.0/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/seed_review_run.py +119 -118
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_exporter_helpers.py +12 -0
- cmpnd-0.117.0/tests/integration/test_trace_export.py +46 -0
- cmpnd-0.117.0/tests/integration/trace_export_probe.py +197 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/rlm_shape.py +0 -2
- cmpnd-0.117.0/tests/parity/test_signatures.py +26 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_trace_streaming.py +72 -20
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_traces.py +56 -58
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_trace_search.py +13 -11
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/span_reference_fixture.py +25 -9
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_callback.py +15 -14
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_deployments.py +87 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_programs.py +107 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_client_program_names.py +26 -29
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval_example_attribution.py +6 -3
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exception_paths.py +0 -29
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter.py +29 -17
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter_program_names.py +32 -28
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter_queue.py +11 -11
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter_real.py +14 -12
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_gepa_output_normalization.py +0 -2
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_ingest_conformance.py +3 -3
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_models.py +54 -62
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimization_program_names.py +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_identity.py +11 -10
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_queue_budget.py +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_reanchor_patch.py +1 -1
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_run_attribution_paths.py +16 -7
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_schemas.py +1 -2
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_seed_review_run.py +67 -9
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_span_sent_once.py +4 -3
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_span_submission.py +18 -7
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_trace_fact_wire_contract.py +1 -3
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_trace_facts.py +41 -9
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_truncation.py +1 -39
- {cmpnd-0.115.0 → cmpnd-0.117.0}/uv.lock +1 -1
- cmpnd-0.115.0/scripts/fixtures/review_run.json.gz +0 -0
- cmpnd-0.115.0/tests/parity/test_signatures.py +0 -45
- {cmpnd-0.115.0 → cmpnd-0.117.0}/.gitignore +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/CLAUDE.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/README.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/LINEAGE.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_account.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_http.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_provider_writes.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_reanchor_evidence.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_traces.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/authored.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/providers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/top.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/client.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/configuration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/context.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/datasets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/decorators.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/deployment.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/execution.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/exporter.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/field_types.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/identity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/imaging.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/labels.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimization.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/packaging.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/program_evals.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/programs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/references.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/retry.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/evals.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/traces.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd/versions.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/LINEAGE.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/record_stream.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/run_closed.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/client.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/custom-proposer.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/ingest-transport.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/platform-evals.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/docs/reading-traces.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/examples/local_ollama.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/record_gepa_events.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/release-gate.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_credential_route.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_fake_clock.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/_traced_run.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/dspy_features.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/gepa_record_fixture.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/system_one_deployment.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/__main__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/drain.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/ingest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/README.md +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/program.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/sweep.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_health.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/_agent.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/_result.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_eval.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_org_support.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_providers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_client.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_client_floor.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_configuration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_context.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_datasets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_decorators.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deploy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval_start.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_execute.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_field_types.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_gepa_fold.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_identity.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_imaging.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_import_weight.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_ingest_transport.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_integration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_model_list_protocol.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_gepa_settings.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_lm_model_type.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_packaging.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_poll_until.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_process_local.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_evals.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_lm_binding.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_program_naming.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_programs_create.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_project_payload.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_provider_models.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_provider_types.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_provider_values.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_provider_writes.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_reanchor_evidence.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_retry.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_rlm_tool_spans.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_run_closed.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_span_references.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_stored_login.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_system_one.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_trace_render.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_traces_read.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_untraced_spans.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_usage_dialect.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_user_agent.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_versions.py +0 -0
- {cmpnd-0.115.0 → cmpnd-0.117.0}/tests/test_xxh64.py +0 -0
|
@@ -101,6 +101,12 @@ knowing:
|
|
|
101
101
|
runs it on every SDK pull request, once per self-host app. A failure there
|
|
102
102
|
means a self-hosted install would break on the next SDK release.
|
|
103
103
|
|
|
104
|
+
Ingest is the exception. The SDK sends the trace wire that the current serve
|
|
105
|
+
reads, and it sends no copy of a field that only an older serve reads. A
|
|
106
|
+
self-hosted install upgrades its serve before its SDK. An older serve may
|
|
107
|
+
accept a newer SDK's traces with fields it cannot find, such as a program
|
|
108
|
+
link that now travels only inside `started_fact`.
|
|
109
|
+
|
|
104
110
|
**Never run pytest processes in parallel.** Do not use `pytest-xdist`, and do
|
|
105
111
|
not start a run while another is in the background. DSPy uses a lot of memory
|
|
106
112
|
on import, and parallel runs crash the machine.
|
|
@@ -1024,7 +1024,7 @@ class _ModuleMixin(_CallbackBase):
|
|
|
1024
1024
|
if is_root:
|
|
1025
1025
|
# Start a new trace
|
|
1026
1026
|
self._root_call_ids.add(call_id)
|
|
1027
|
-
trace = self._create_trace(instance
|
|
1027
|
+
trace = self._create_trace(instance)
|
|
1028
1028
|
context.set_current_trace(trace)
|
|
1029
1029
|
|
|
1030
1030
|
# Carry the root module's type so serve can classify the trace at
|
|
@@ -1250,10 +1250,6 @@ class _ModuleMixin(_CallbackBase):
|
|
|
1250
1250
|
if exception:
|
|
1251
1251
|
trace.error_message = str(exception)
|
|
1252
1252
|
|
|
1253
|
-
# Set response preview
|
|
1254
|
-
if captured_outputs is not None and self._capture_outputs:
|
|
1255
|
-
trace.response_preview = helpers.create_preview(span.outputs or {})
|
|
1256
|
-
|
|
1257
1253
|
# Aggregate span metrics into trace
|
|
1258
1254
|
trace_id_str = str(trace.trace_id)
|
|
1259
1255
|
trace_spans = self._trace_spans.pop(trace_id_str, [])
|
|
@@ -1405,7 +1401,7 @@ class _ModuleMixin(_CallbackBase):
|
|
|
1405
1401
|
supplied, self._pending_root_trace_id = self._pending_root_trace_id, None
|
|
1406
1402
|
return supplied or uuid4()
|
|
1407
1403
|
|
|
1408
|
-
def _create_trace(self, instance: Any
|
|
1404
|
+
def _create_trace(self, instance: Any) -> models.TraceBuilder:
|
|
1409
1405
|
"""Create a new trace for a root module call."""
|
|
1410
1406
|
config = self._own_config or configuration.get_config()
|
|
1411
1407
|
|
|
@@ -1469,12 +1465,10 @@ class _ModuleMixin(_CallbackBase):
|
|
|
1469
1465
|
if hasattr(signature, "input_fields"):
|
|
1470
1466
|
trace.signature_input_fields = list(signature.input_fields.keys())
|
|
1471
1467
|
trace.signature_input_field_types = [field.annotation for field in described.inputs]
|
|
1472
|
-
trace.signature_input_field_schemas = described.self_contained_inputs()
|
|
1473
1468
|
|
|
1474
1469
|
if hasattr(signature, "output_fields"):
|
|
1475
1470
|
trace.signature_output_fields = list(signature.output_fields.keys())
|
|
1476
1471
|
trace.signature_output_field_types = [field.annotation for field in described.outputs]
|
|
1477
|
-
trace.signature_output_field_schemas = described.self_contained_outputs()
|
|
1478
1472
|
|
|
1479
1473
|
trace.signature_summary = identity.build_signature_summary(signature)
|
|
1480
1474
|
else:
|
|
@@ -1529,16 +1523,6 @@ class _ModuleMixin(_CallbackBase):
|
|
|
1529
1523
|
if version is not None and trace.deployment_id is None:
|
|
1530
1524
|
trace.deployment_id = str(version)
|
|
1531
1525
|
|
|
1532
|
-
# Capture active demo IDs if available
|
|
1533
|
-
demos = getattr(instance, "demos", None)
|
|
1534
|
-
if demos:
|
|
1535
|
-
trace.demo_ids = [identity.hash_demo(d) for d in demos]
|
|
1536
|
-
|
|
1537
|
-
# Set request preview from inputs
|
|
1538
|
-
dspy, _ = _get_dspy()
|
|
1539
|
-
preview = helpers.create_preview(helpers.clean_inputs(inputs, dspy, self._max_input_field_size))
|
|
1540
|
-
trace.request_preview = preview
|
|
1541
|
-
|
|
1542
1526
|
# Process default tags first, then the run's own labels over them.
|
|
1543
1527
|
if config and config.default_tags:
|
|
1544
1528
|
trace.tags.update(config.default_tags)
|
|
@@ -67,6 +67,7 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
67
67
|
ls = sub.add_parser("list", help="List deployments")
|
|
68
68
|
ls.add_argument("--status", help="Filter by status (pending, parsing, optimizing, ready, failed)")
|
|
69
69
|
ls.add_argument("--since", help="ISO 8601 timestamp; only deployments created after this")
|
|
70
|
+
ls.add_argument("--archived", action="store_true", help="List the archived deployments instead")
|
|
70
71
|
add_program_arg(ls)
|
|
71
72
|
pagination.add_args(ls, with_page_aliases=True, default_limit=50)
|
|
72
73
|
ls.set_defaults(func=handle_list)
|
|
@@ -139,6 +140,26 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
139
140
|
_id_arg(openapi)
|
|
140
141
|
openapi.set_defaults(func=handle_openapi)
|
|
141
142
|
|
|
143
|
+
archive = sub.add_parser(
|
|
144
|
+
"archive",
|
|
145
|
+
help="Archive a deployment: it leaves its program's list and takes no new runs, evals or optimizations",
|
|
146
|
+
description=(
|
|
147
|
+
"Archive a deployment. It leaves its program's list and takes no new runs, evals, optimizations "
|
|
148
|
+
"or tags until it is unarchived. Its traces, runs, eval history and lineage stay. A deployment a tag "
|
|
149
|
+
"points at, or one an eval or optimization is running on, cannot be archived. "
|
|
150
|
+
"`cmpnd deployments list --archived` lists the archived ones."
|
|
151
|
+
),
|
|
152
|
+
)
|
|
153
|
+
archive.add_argument("id", help="The deployment's d_ id")
|
|
154
|
+
archive.set_defaults(func=handle_archive)
|
|
155
|
+
|
|
156
|
+
unarchive = sub.add_parser(
|
|
157
|
+
"unarchive",
|
|
158
|
+
help="Return an archived deployment to its program's list, where it takes work again",
|
|
159
|
+
)
|
|
160
|
+
unarchive.add_argument("id", help="The deployment's d_ id")
|
|
161
|
+
unarchive.set_defaults(func=handle_unarchive)
|
|
162
|
+
|
|
142
163
|
|
|
143
164
|
def handle_list(client: api_client.ApiClient, args: Any) -> Any:
|
|
144
165
|
params: dict[str, str] = pagination.wire(args, "per_page", as_str=True)
|
|
@@ -147,7 +168,31 @@ def handle_list(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
147
168
|
if args.since:
|
|
148
169
|
params["since"] = args.since
|
|
149
170
|
params.update(program_params(args))
|
|
150
|
-
|
|
171
|
+
archived = getattr(args, "archived", False)
|
|
172
|
+
if archived:
|
|
173
|
+
params["archived"] = "true"
|
|
174
|
+
answer = client.get("/api/v1/deployments", params=params)
|
|
175
|
+
# A server that predates archiving ignores the filter and lists live deployments.
|
|
176
|
+
if archived and isinstance(answer, dict) and answer.get("archived") is not True:
|
|
177
|
+
raise api_client.CliError(
|
|
178
|
+
"this server does not support archived deployments, so it listed the live ones. "
|
|
179
|
+
"Upgrade it to use --archived."
|
|
180
|
+
)
|
|
181
|
+
return answer
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def handle_archive(client: api_client.ApiClient, args: Any) -> Any:
|
|
185
|
+
"""Archive one deployment. Serve's refusal names the tags or the run that block it."""
|
|
186
|
+
archived = client.post(f"/api/v1/deployments/{args.id}/archive")
|
|
187
|
+
print(f"Archived {archived.get('deployment_id', args.id)}", file=sys.stderr)
|
|
188
|
+
return archived
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
def handle_unarchive(client: api_client.ApiClient, args: Any) -> Any:
|
|
192
|
+
"""Return one archived deployment to its program's list."""
|
|
193
|
+
restored = client.post(f"/api/v1/deployments/{args.id}/unarchive")
|
|
194
|
+
print(f"Unarchived {restored.get('deployment_id', args.id)}", file=sys.stderr)
|
|
195
|
+
return restored
|
|
151
196
|
|
|
152
197
|
|
|
153
198
|
def handle_show(client: api_client.ApiClient, args: Any) -> Any:
|
|
@@ -264,6 +264,33 @@ def register(subparsers: _SubParsersAction[ArgumentParser]) -> None:
|
|
|
264
264
|
tag.add_argument("--yes", action="store_true", help="Skip the confirmation (required when not on a terminal)")
|
|
265
265
|
tag.set_defaults(func=handle_tag)
|
|
266
266
|
|
|
267
|
+
untag = sub.add_parser(
|
|
268
|
+
"untag",
|
|
269
|
+
help="Remove one of a program's tags",
|
|
270
|
+
description=(
|
|
271
|
+
"Remove TAG from PROGRAM. The version it pointed at stays, and the tag log records the removal. "
|
|
272
|
+
"The default tag, which `cmpnd run PROGRAM` runs, can only move: point it at another version with "
|
|
273
|
+
"`cmpnd programs tag`. This command shows the version the tag points at, asks to confirm, and sends "
|
|
274
|
+
"that version, so the removal fails if someone moved the tag in between."
|
|
275
|
+
),
|
|
276
|
+
epilog=(
|
|
277
|
+
"Examples:\n"
|
|
278
|
+
" cmpnd programs untag capital-qa canary\n"
|
|
279
|
+
" cmpnd programs untag capital-qa canary --expect d_0123456789Ab # in CI, after reading it\n"
|
|
280
|
+
),
|
|
281
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
282
|
+
)
|
|
283
|
+
untag.add_argument("program", metavar="PROGRAM", help="Program name or p_ id")
|
|
284
|
+
untag.add_argument("tag", metavar="TAG", help="The tag's name")
|
|
285
|
+
untag.add_argument(
|
|
286
|
+
"--expect",
|
|
287
|
+
metavar="VERSION",
|
|
288
|
+
help="The version the tag must point at now, which you read earlier; the removal fails otherwise",
|
|
289
|
+
)
|
|
290
|
+
untag.add_argument("--reason", help="A note the tag log keeps with the removal")
|
|
291
|
+
untag.add_argument("--yes", action="store_true", help="Skip the confirmation (required when not on a terminal)")
|
|
292
|
+
untag.set_defaults(func=handle_untag)
|
|
293
|
+
|
|
267
294
|
log = sub.add_parser(
|
|
268
295
|
"tag-log",
|
|
269
296
|
help="Read the log of a program's tag moves, newest first",
|
|
@@ -623,15 +650,28 @@ def handle_tags(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
623
650
|
return None
|
|
624
651
|
|
|
625
652
|
|
|
653
|
+
def _refuse_empty_expect(expect: str | None) -> None:
|
|
654
|
+
"""Refuse an --expect that names nothing, as an unset CI variable would.
|
|
655
|
+
|
|
656
|
+
Read as absent, it would compare against a version re-read now, which the
|
|
657
|
+
caller never checked.
|
|
658
|
+
"""
|
|
659
|
+
if expect is not None and not expect.strip():
|
|
660
|
+
raise api_client.CliError("--expect names no version. Pass the d_ id the tag must point at, or leave it out.")
|
|
661
|
+
|
|
662
|
+
|
|
626
663
|
def handle_tag(client: api_client.ApiClient, args: Any) -> Any:
|
|
627
664
|
"""Create or move a tag, comparing against the version the user saw."""
|
|
665
|
+
from . import top
|
|
666
|
+
|
|
667
|
+
_refuse_empty_expect(args.expect)
|
|
628
668
|
program_id, _ = resolve(client, args.program)
|
|
629
669
|
body: dict[str, Any] = {"deployment_id": args.version}
|
|
630
670
|
if args.reason:
|
|
631
671
|
body["reason"] = args.reason
|
|
632
672
|
if args.create:
|
|
633
673
|
body["expect_absent"] = True
|
|
634
|
-
elif args.expect:
|
|
674
|
+
elif args.expect is not None:
|
|
635
675
|
body["expected_deployment_id"] = args.expect
|
|
636
676
|
else:
|
|
637
677
|
# Compare against what the user confirms, never a version re-read later.
|
|
@@ -676,7 +716,7 @@ def handle_tag(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
676
716
|
now = exc.detail.get("current_deployment_id") or "no version (the tag does not exist)"
|
|
677
717
|
raise api_client.CliError(
|
|
678
718
|
f"{args.program}:{args.tag} changed since it was read: it points at {now}. "
|
|
679
|
-
f"Check `
|
|
719
|
+
f"Check `{top.hint_programs('tag-log', args.program)}` and run the command again.",
|
|
680
720
|
status_code=exc.status_code,
|
|
681
721
|
) from exc
|
|
682
722
|
raise
|
|
@@ -684,6 +724,52 @@ def handle_tag(client: api_client.ApiClient, args: Any) -> Any:
|
|
|
684
724
|
return moved
|
|
685
725
|
|
|
686
726
|
|
|
727
|
+
def handle_untag(client: api_client.ApiClient, args: Any) -> Any:
|
|
728
|
+
"""Remove a tag, comparing against the version the user saw."""
|
|
729
|
+
from . import top
|
|
730
|
+
|
|
731
|
+
_refuse_empty_expect(args.expect)
|
|
732
|
+
program_id, _ = resolve(client, args.program)
|
|
733
|
+
expected = args.expect
|
|
734
|
+
if expected is None:
|
|
735
|
+
# Compare against what the user confirms, never a version re-read later.
|
|
736
|
+
tags = _versions_call(client, lambda: client.get(_tags_route(program_id))).get("tags") or []
|
|
737
|
+
current = next((t for t in tags if str(t.get("name", "")).lower() == args.tag.lower()), None)
|
|
738
|
+
if current is None:
|
|
739
|
+
names = ", ".join(str(t.get("name")) for t in tags) or "none"
|
|
740
|
+
raise api_client.CliError(f"{args.program} has no tag {args.tag}. Its tags: {names}.")
|
|
741
|
+
if current.get("is_default"):
|
|
742
|
+
raise api_client.CliError(
|
|
743
|
+
f"{args.program}:{current['name']} is the default tag, which a run of {args.program} with no tag "
|
|
744
|
+
f"runs, so it can only move. Move it with "
|
|
745
|
+
f"`{top.hint_programs('tag', args.program, current['name'], '<d_…>')}`."
|
|
746
|
+
)
|
|
747
|
+
expected = current["deployment_id"]
|
|
748
|
+
change = f"remove {args.program}:{current['name']} from {expected}"
|
|
749
|
+
if not args.yes:
|
|
750
|
+
if not sys.stdin.isatty():
|
|
751
|
+
raise api_client.CliError(f"this would {change}. Re-run with --yes to do it.")
|
|
752
|
+
if input(f"About to {change}. Continue? [y/N] ").strip().lower() not in {"y", "yes"}:
|
|
753
|
+
raise api_client.CliError("cancelled.")
|
|
754
|
+
query = {"expected_deployment_id": expected}
|
|
755
|
+
if args.reason:
|
|
756
|
+
query["reason"] = args.reason
|
|
757
|
+
path = _tags_route(program_id) + "/" + urllib.parse.quote(args.tag, safe="") + "?" + urllib.parse.urlencode(query)
|
|
758
|
+
try:
|
|
759
|
+
removed = _versions_call(client, lambda: client.delete(path))
|
|
760
|
+
except api_client.CliError as exc:
|
|
761
|
+
if exc.error_code == "tag_moved":
|
|
762
|
+
now = exc.detail.get("current_deployment_id") or "no version (the tag does not exist)"
|
|
763
|
+
raise api_client.CliError(
|
|
764
|
+
f"{args.program}:{args.tag} changed since it was read: it points at {now}. "
|
|
765
|
+
f"Check `{top.hint_programs('tag-log', args.program)}` and run the command again.",
|
|
766
|
+
status_code=exc.status_code,
|
|
767
|
+
) from exc
|
|
768
|
+
raise
|
|
769
|
+
print(f"Removed {args.program}:{removed['name']} from {removed['deployment_id']}", file=sys.stderr)
|
|
770
|
+
return removed
|
|
771
|
+
|
|
772
|
+
|
|
687
773
|
def handle_tag_log(client: api_client.ApiClient, args: Any) -> Any:
|
|
688
774
|
"""Read the tag log newest first, up to --limit entries."""
|
|
689
775
|
program_id, _ = resolve(client, args.program)
|
|
@@ -165,6 +165,11 @@ DOMAIN_VERBS: dict[str, str] = {
|
|
|
165
165
|
"select": "retired: pinned a run as the program's chosen version, and now points to tag",
|
|
166
166
|
"tag": "points one of a program's tags at a version, comparing against the version it held; "
|
|
167
167
|
"update would hide that it can create the tag and that it changes what a name runs",
|
|
168
|
+
"archive": "takes a deployment out of its program's list and stops it taking work, keeping every record; "
|
|
169
|
+
"delete would read as removing it",
|
|
170
|
+
"unarchive": "returns an archived deployment to its program's list, the reverse of archive",
|
|
171
|
+
"untag": "removes one of a program's tags and keeps the version it named; delete would read as "
|
|
172
|
+
"deleting the version",
|
|
168
173
|
"refresh": "re-reads a record from the system of record it mirrors; nothing the caller supplies is written",
|
|
169
174
|
"allow": "grants permission to call a tool — a person's decision, never inferred from what code names",
|
|
170
175
|
"deny": "the negative half of allow; the tool stays listed and stops being callable",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
import json
|
|
6
5
|
from typing import Any, cast
|
|
7
6
|
|
|
8
7
|
from . import identity, models
|
|
@@ -145,15 +144,6 @@ def truncate_outputs(outputs: Any, max_field_size: int) -> Any:
|
|
|
145
144
|
return {"_error": "Failed to serialize outputs"}
|
|
146
145
|
|
|
147
146
|
|
|
148
|
-
def create_preview(data: dict[str, Any], max_len: int = 200) -> str:
|
|
149
|
-
"""Create a short preview string from data."""
|
|
150
|
-
try:
|
|
151
|
-
s = json.dumps(data, default=str)
|
|
152
|
-
return s[:max_len] + "..." if len(s) > max_len else s
|
|
153
|
-
except Exception:
|
|
154
|
-
return str(data)[:max_len]
|
|
155
|
-
|
|
156
|
-
|
|
157
147
|
def get_metric_name(metric: Any) -> str:
|
|
158
148
|
"""Extract the original metric function name, unwrapping DSPy wrappers.
|
|
159
149
|
|
|
@@ -1066,9 +1066,6 @@ class TraceBuilder:
|
|
|
1066
1066
|
signature_output_fields: list[str] = field(default_factory=list)
|
|
1067
1067
|
signature_input_field_types: list[str] = field(default_factory=list)
|
|
1068
1068
|
signature_output_field_types: list[str] = field(default_factory=list)
|
|
1069
|
-
# Each field's JSON Schema, with the definitions it references (`cmpnd.field_types`).
|
|
1070
|
-
signature_input_field_schemas: list[dict[str, Any]] = field(default_factory=list)
|
|
1071
|
-
signature_output_field_schemas: list[dict[str, Any]] = field(default_factory=list)
|
|
1072
1069
|
signature_summary: str | None = None # Human-readable: "input1, input2 -> output1, output2"
|
|
1073
1070
|
component_signatures: list[dict[str, Any]] = field(default_factory=list)
|
|
1074
1071
|
# The server-issued program id the trace declares (`p_…`), snapshotted from
|
|
@@ -1088,12 +1085,9 @@ class TraceBuilder:
|
|
|
1088
1085
|
|
|
1089
1086
|
# Optimization lineage - tracks which optimization produced this program
|
|
1090
1087
|
compiled_from_run_id: str | None = None
|
|
1091
|
-
demo_ids: list[str] = field(default_factory=list)
|
|
1092
1088
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
# Aggregate metrics (computed from spans)
|
|
1089
|
+
# Aggregate metrics (computed from spans), which eval runs total. They never go
|
|
1090
|
+
# on the wire: serve derives a trace's totals from its spans.
|
|
1097
1091
|
total_tokens: int = 0
|
|
1098
1092
|
prompt_tokens: int = 0
|
|
1099
1093
|
completion_tokens: int = 0
|
|
@@ -1106,7 +1100,7 @@ class TraceBuilder:
|
|
|
1106
1100
|
eval_run_id: str | None = None
|
|
1107
1101
|
optimization_run_id: str | None = None
|
|
1108
1102
|
|
|
1109
|
-
# Adapter type used (propagated from adapter spans)
|
|
1103
|
+
# Adapter type used (propagated from adapter spans), which eval runs report.
|
|
1110
1104
|
adapter_type: str | None = None
|
|
1111
1105
|
|
|
1112
1106
|
# Export routing: True = stream spans individually, False = batch at completion
|
|
@@ -1169,9 +1163,35 @@ class TraceBuilder:
|
|
|
1169
1163
|
"""Retain the first creation snapshot and its independent annotations."""
|
|
1170
1164
|
if self._started_fact is None:
|
|
1171
1165
|
self.export_context
|
|
1172
|
-
self._started_fact = StartedFact.from_payload(self.
|
|
1166
|
+
self._started_fact = StartedFact.from_payload(self._creation_fields())
|
|
1173
1167
|
self.seal_metadata()
|
|
1174
1168
|
|
|
1169
|
+
def _creation_fields(self) -> dict[str, Any]:
|
|
1170
|
+
"""The fields the started fact seals: identity, signature and run attribution."""
|
|
1171
|
+
fields: dict[str, Any] = {
|
|
1172
|
+
"start_time": self.start_time.isoformat() if self.start_time else None,
|
|
1173
|
+
"signature_name": self.signature_name,
|
|
1174
|
+
"signature_input_fields": self.signature_input_fields,
|
|
1175
|
+
"signature_output_fields": self.signature_output_fields,
|
|
1176
|
+
"signature_input_field_types": self.signature_input_field_types,
|
|
1177
|
+
"signature_output_field_types": self.signature_output_field_types,
|
|
1178
|
+
"signature_summary": self.signature_summary,
|
|
1179
|
+
# The server forwards this blob verbatim into a jsonb column, and its
|
|
1180
|
+
# program registration is best-effort (a rejection is only logged), so
|
|
1181
|
+
# an un-storable code point here would silently lose the whole
|
|
1182
|
+
# component list. Scrub at the source — the only place that can.
|
|
1183
|
+
"component_signatures": _safe_serialize(self.component_signatures),
|
|
1184
|
+
"root_span_type": self.root_span_type,
|
|
1185
|
+
"compiled_from_run_id": self.compiled_from_run_id,
|
|
1186
|
+
"eval_run_id": str(self.eval_run_id) if self.eval_run_id else None,
|
|
1187
|
+
"optimization_run_id": (str(self.optimization_run_id) if self.optimization_run_id else None),
|
|
1188
|
+
"deployment_id": self.deployment_id,
|
|
1189
|
+
"deployment_run_id": self.deployment_run_id,
|
|
1190
|
+
}
|
|
1191
|
+
if self.program_id is not None:
|
|
1192
|
+
fields["program_id"] = self.program_id
|
|
1193
|
+
return fields
|
|
1194
|
+
|
|
1175
1195
|
def label_map(self) -> dict[str, LabelValue]:
|
|
1176
1196
|
"""The labels this trace reports now, within the label caps.
|
|
1177
1197
|
|
|
@@ -1272,20 +1292,11 @@ class TraceBuilder:
|
|
|
1272
1292
|
)
|
|
1273
1293
|
self.seal_metadata()
|
|
1274
1294
|
|
|
1275
|
-
def
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
payload["deployment_run_id"] = self.deployment_run_id
|
|
1281
|
-
if self._started_fact is not None:
|
|
1282
|
-
creation = self._started_fact.creation_dict()
|
|
1283
|
-
for name in ("program_id", "deployment_id", "deployment_run_id"):
|
|
1284
|
-
if name not in creation:
|
|
1285
|
-
payload.pop(name, None)
|
|
1286
|
-
payload.update(creation if started else {key: value for key, value in creation.items() if key in payload})
|
|
1287
|
-
if started:
|
|
1288
|
-
payload["started_fact"] = self._started_fact.to_dict()
|
|
1295
|
+
def _facts(self, *, completion: bool, started: bool) -> dict[str, Any]:
|
|
1296
|
+
"""The trace's facts as a body carries them: the wire holds nothing else."""
|
|
1297
|
+
payload: dict[str, Any] = {"schema_version": 1}
|
|
1298
|
+
if started and self._started_fact is not None:
|
|
1299
|
+
payload["started_fact"] = self._started_fact.to_dict()
|
|
1289
1300
|
if completion and self._completion_fact is not None:
|
|
1290
1301
|
payload["completion_fact"] = self._completion_fact.to_dict()
|
|
1291
1302
|
if self._started_fact is not None or self._completion_fact is not None or self._metadata_facts:
|
|
@@ -1293,90 +1304,35 @@ class TraceBuilder:
|
|
|
1293
1304
|
return payload
|
|
1294
1305
|
|
|
1295
1306
|
def to_api_dict(self) -> dict[str, Any]:
|
|
1296
|
-
"""
|
|
1297
|
-
return self._with_facts(
|
|
1298
|
-
{
|
|
1299
|
-
"trace_id": str(self.trace_id),
|
|
1300
|
-
"start_time": self.start_time.isoformat() if self.start_time else None,
|
|
1301
|
-
"end_time": self.end_time.isoformat() if self.end_time else None,
|
|
1302
|
-
"status": self.status.value,
|
|
1303
|
-
"error_message": _strip_unstorable_opt(self.error_message),
|
|
1304
|
-
"signature_name": self.signature_name,
|
|
1305
|
-
"signature_input_fields": self.signature_input_fields,
|
|
1306
|
-
"signature_output_fields": self.signature_output_fields,
|
|
1307
|
-
"signature_input_field_types": self.signature_input_field_types,
|
|
1308
|
-
"signature_output_field_types": self.signature_output_field_types,
|
|
1309
|
-
"signature_input_field_schemas": self.signature_input_field_schemas,
|
|
1310
|
-
"signature_output_field_schemas": self.signature_output_field_schemas,
|
|
1311
|
-
"signature_summary": self.signature_summary,
|
|
1312
|
-
# The server forwards this blob verbatim into a jsonb column, and its
|
|
1313
|
-
# program registration is best-effort (a rejection is only logged), so
|
|
1314
|
-
# an un-storable code point here would silently lose the whole
|
|
1315
|
-
# component list. Scrub at the source — the only place that can.
|
|
1316
|
-
"component_signatures": _safe_serialize(self.component_signatures),
|
|
1317
|
-
"compiled_from_run_id": self.compiled_from_run_id,
|
|
1318
|
-
"demo_ids": self.demo_ids,
|
|
1319
|
-
"request_preview": (self.request_preview or "")[:500],
|
|
1320
|
-
"response_preview": (self.response_preview or "")[:500],
|
|
1321
|
-
"eval_run_id": str(self.eval_run_id) if self.eval_run_id else None,
|
|
1322
|
-
"optimization_run_id": (str(self.optimization_run_id) if self.optimization_run_id else None),
|
|
1323
|
-
"adapter_type": self.adapter_type,
|
|
1324
|
-
"spans": [s.seal_for_export().to_api_dict() for s in self._batch_spans] if self._batch_spans else [],
|
|
1325
|
-
**self._declared_program(),
|
|
1326
|
-
},
|
|
1327
|
-
completion=True,
|
|
1328
|
-
)
|
|
1307
|
+
"""The whole trace as one element of a `POST /traces` batch: its facts and its spans.
|
|
1329
1308
|
|
|
1330
|
-
|
|
1331
|
-
|
|
1309
|
+
A trace that ended carries its completion: one the callback sealed, else one
|
|
1310
|
+
sealed here from the builder's end.
|
|
1311
|
+
"""
|
|
1312
|
+
self.seal_start()
|
|
1313
|
+
if self._completion_fact is None and self.end_time is not None:
|
|
1314
|
+
self.seal_completion()
|
|
1315
|
+
return {
|
|
1316
|
+
"trace_id": str(self.trace_id),
|
|
1317
|
+
**self._facts(completion=True, started=True),
|
|
1318
|
+
"spans": [s.seal_for_export().to_api_dict() for s in self._batch_spans] if self._batch_spans else [],
|
|
1319
|
+
}
|
|
1332
1320
|
|
|
1333
1321
|
def to_start_dict(self) -> dict[str, Any]:
|
|
1334
|
-
"""
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
"start_time": self.start_time.isoformat() if self.start_time else None,
|
|
1338
|
-
"signature_name": self.signature_name,
|
|
1339
|
-
"signature_input_fields": self.signature_input_fields,
|
|
1340
|
-
"signature_output_fields": self.signature_output_fields,
|
|
1341
|
-
"signature_input_field_types": self.signature_input_field_types,
|
|
1342
|
-
"signature_output_field_types": self.signature_output_field_types,
|
|
1343
|
-
"signature_summary": self.signature_summary,
|
|
1344
|
-
"component_signatures": _safe_serialize(self.component_signatures),
|
|
1345
|
-
"root_span_type": self.root_span_type,
|
|
1346
|
-
"compiled_from_run_id": self.compiled_from_run_id,
|
|
1347
|
-
# Known at start (the callback attaches them in _create_trace), so
|
|
1348
|
-
# the start row carries them from the first send instead of the
|
|
1349
|
-
# finalize row re-attributing them later.
|
|
1350
|
-
"eval_run_id": str(self.eval_run_id) if self.eval_run_id else None,
|
|
1351
|
-
"optimization_run_id": (str(self.optimization_run_id) if self.optimization_run_id else None),
|
|
1352
|
-
**self._declared_program(),
|
|
1353
|
-
}
|
|
1354
|
-
)
|
|
1322
|
+
"""The body of `POST /traces/{id}/start`: the started fact and the labels so far."""
|
|
1323
|
+
self.seal_start()
|
|
1324
|
+
return self._facts(completion=False, started=True)
|
|
1355
1325
|
|
|
1356
1326
|
def to_finalize_dict(self) -> dict[str, Any]:
|
|
1357
|
-
"""
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
"total_tokens": self.total_tokens,
|
|
1367
|
-
"prompt_tokens": self.prompt_tokens,
|
|
1368
|
-
"completion_tokens": self.completion_tokens,
|
|
1369
|
-
"total_cost": self.total_cost,
|
|
1370
|
-
"span_count": self.span_count,
|
|
1371
|
-
"adapter_type": self.adapter_type,
|
|
1372
|
-
"compiled_from_run_id": self.compiled_from_run_id,
|
|
1373
|
-
"demo_ids": self.demo_ids,
|
|
1374
|
-
"eval_run_id": str(self.eval_run_id) if self.eval_run_id else None,
|
|
1375
|
-
"optimization_run_id": (str(self.optimization_run_id) if self.optimization_run_id else None),
|
|
1376
|
-
},
|
|
1377
|
-
completion=True,
|
|
1378
|
-
started=False,
|
|
1379
|
-
)
|
|
1327
|
+
"""The body of `POST /traces/{id}/finalize`: the completion fact and the label changes.
|
|
1328
|
+
|
|
1329
|
+
Serve refuses a finalize without its completion, so a trace that ended carries
|
|
1330
|
+
one: one the callback sealed, else one sealed here from the builder's end. A
|
|
1331
|
+
resend reuses it, so serve reads the resend as a replay.
|
|
1332
|
+
"""
|
|
1333
|
+
if self._completion_fact is None and self.end_time is not None:
|
|
1334
|
+
self.seal_completion()
|
|
1335
|
+
return self._facts(completion=True, started=False)
|
|
1380
1336
|
|
|
1381
1337
|
|
|
1382
1338
|
class EvalRunStatus(str, Enum):
|
|
@@ -147,8 +147,8 @@ class SpanBody:
|
|
|
147
147
|
"""The body for the transport, which only serializes it and stamps its program.
|
|
148
148
|
|
|
149
149
|
A deep copy of every span of a backlog doubled the memory the queue held while
|
|
150
|
-
it drained. This copies only what the stamp writes, the top level and
|
|
151
|
-
|
|
150
|
+
it drained. This copies only what the stamp writes, the top level, and shares
|
|
151
|
+
the sealed nested values, which nothing writes.
|
|
152
152
|
"""
|
|
153
153
|
return _stampable_copy(self._payload)
|
|
154
154
|
|
|
@@ -209,7 +209,9 @@ def _encode_next_spans(
|
|
|
209
209
|
|
|
210
210
|
def _encode_next_traces(traces: list[dict[str, Any]], start: int, first: str | None) -> tuple[_Body, int, str | None]:
|
|
211
211
|
"""The next full-trace body of at most ``_REQUEST_BYTES``, from ``traces[start]`` on:
|
|
212
|
-
one trace alone to ``/traces``, several as a list to ``/traces/batch``.
|
|
212
|
+
one trace alone to ``/traces``, several as a list to ``/traces/batch``. Every serve
|
|
213
|
+
this SDK can meet takes both, while a serve released before serve took a list on
|
|
214
|
+
``/traces`` refuses one there.
|
|
213
215
|
|
|
214
216
|
Returns the body, where the next one starts, and that trace serialized, as
|
|
215
217
|
``_encode_next_spans`` does, so a backlog's encoded copy is the bodies being sent.
|
|
@@ -2551,10 +2553,9 @@ class BatchExporter:
|
|
|
2551
2553
|
await self._stamp_export_contexts(context_bodies, route)
|
|
2552
2554
|
|
|
2553
2555
|
# Coalesce start + batch within one flush: if a trace's full
|
|
2554
|
-
# batch trace is in this same flush,
|
|
2555
|
-
#
|
|
2556
|
-
#
|
|
2557
|
-
# redundant — drop it to save the round-trip for a fast trace. A start
|
|
2556
|
+
# batch trace is in this same flush, it carries the same started fact and
|
|
2557
|
+
# labels, so the in_progress start POST is redundant — drop it to save
|
|
2558
|
+
# the round-trip for a fast trace. A start
|
|
2558
2559
|
# whose finalize lands in a LATER flush still ships, which is the whole
|
|
2559
2560
|
# point: the trace is visible while it runs.
|
|
2560
2561
|
# The starts dropped here because a full trace in this batch carries them, by trace.
|
|
@@ -251,7 +251,7 @@ class Recoveries:
|
|
|
251
251
|
self.routes[route] = self.routes.get(route, 0) + 1
|
|
252
252
|
|
|
253
253
|
def describe(self) -> str:
|
|
254
|
-
"""e.g. ``6 requests rode through 9 transient responses over 41.2s (503=9) to POST /api/v1/traces
|
|
254
|
+
"""e.g. ``6 requests rode through 9 transient responses over 41.2s (503=9) to POST /api/v1/traces``.
|
|
255
255
|
|
|
256
256
|
The window ends at the last recovery, not when the line is logged.
|
|
257
257
|
"""
|
|
@@ -22,13 +22,19 @@ class ExportContext:
|
|
|
22
22
|
resolved: bool = False
|
|
23
23
|
|
|
24
24
|
def stamp(self, body: dict[str, Any], *, creation: bool = True) -> None:
|
|
25
|
-
|
|
25
|
+
"""Write the program id into a record that names none.
|
|
26
|
+
|
|
27
|
+
A trace's body carries its program only in its started fact. A span carries
|
|
28
|
+
its own ``program_id``.
|
|
29
|
+
"""
|
|
30
|
+
if not creation or self.program_id is None:
|
|
26
31
|
return
|
|
27
|
-
if self.program_id is not None and body.get("program_id") is None:
|
|
28
|
-
body["program_id"] = self.program_id
|
|
29
32
|
started = body.get("started_fact")
|
|
30
|
-
if
|
|
31
|
-
started
|
|
33
|
+
if isinstance(started, dict):
|
|
34
|
+
if started.get("program_id") is None:
|
|
35
|
+
started["program_id"] = self.program_id
|
|
36
|
+
elif body.get("program_id") is None:
|
|
37
|
+
body["program_id"] = self.program_id
|
|
32
38
|
|
|
33
39
|
|
|
34
40
|
@dataclass(frozen=True)
|
|
@@ -161,7 +161,14 @@ records the version it ran. A slot that takes a program, such as
|
|
|
161
161
|
`cmpnd programs show` or `--program`, refuses an address.
|
|
162
162
|
|
|
163
163
|
`cmpnd deployments list --program PROGRAM` lists every version of a program,
|
|
164
|
-
tagged or not, and `cmpnd ps --program PROGRAM` shows
|
|
164
|
+
tagged or not, except the archived ones, and `cmpnd ps --program PROGRAM` shows
|
|
165
|
+
them as a table. `cmpnd deployments archive d_...` takes a version out of that
|
|
166
|
+
list. An archived version takes no new runs, evals, optimizations or tags, and
|
|
167
|
+
its traces, runs, eval history and lineage stay. A version a tag points at, or
|
|
168
|
+
one an eval or optimization is running on, cannot be archived, and the refusal
|
|
169
|
+
names the tags or the run. `cmpnd deployments list --archived` lists the
|
|
170
|
+
archived versions, and `cmpnd deployments unarchive d_...` returns one to the
|
|
171
|
+
list, untagged.
|
|
165
172
|
`cmpnd programs tags PROGRAM` lists the tags and marks the default with `*`.
|
|
166
173
|
The CLI has no `cmpnd tags` group, and typing it names `cmpnd programs tags`.
|
|
167
174
|
`cmpnd programs tag PROGRAM TAG d_...` points a tag at a version and creates it
|
|
@@ -170,9 +177,14 @@ now, asks to confirm, and sends that version, so the move fails if the tag
|
|
|
170
177
|
moved in between. `--expect d_...` sends a version read earlier, `--create`
|
|
171
178
|
says the tag must not exist yet, `--reason` records a note, and `--yes` skips
|
|
172
179
|
the prompt. `--create` on a tag that exists stops with the version it points
|
|
173
|
-
at and the `--expect` command that moves it. `cmpnd programs
|
|
174
|
-
|
|
175
|
-
|
|
180
|
+
at and the `--expect` command that moves it. `cmpnd programs untag PROGRAM TAG`
|
|
181
|
+
removes a tag and keeps the version it named. It shows that version, asks to
|
|
182
|
+
confirm, and sends it, so the removal fails if the tag moved in between.
|
|
183
|
+
`--expect d_...`, `--reason` and `--yes` work as they do for `tag`. The default
|
|
184
|
+
tag can only move, so `untag` refuses it and names the `tag` command that moves
|
|
185
|
+
it. `cmpnd programs tag-log PROGRAM [--tag TAG]` reads every act, newest first,
|
|
186
|
+
with cause `create` for a tag's creation, `move` for each move and `remove` for
|
|
187
|
+
a removal. A server that predates versions answers these commands with a
|
|
176
188
|
message that says so.
|
|
177
189
|
|
|
178
190
|
A versioning refusal prints the steps that clear it as commands to copy, and
|