cmpnd 0.114.0__tar.gz → 0.114.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cmpnd-0.114.0 → cmpnd-0.114.2}/PKG-INFO +19 -3
- {cmpnd-0.114.0 → cmpnd-0.114.2}/README.md +18 -2
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/client.py +21 -1
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/eval_handler.py +10 -2
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/named_programs.py +2 -1
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/exporter_http.py +36 -5
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/record_stream.py +19 -2
- cmpnd-0.114.2/cmpnd_ingest/run_closed.py +38 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/client.md +10 -5
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/ingest-transport.md +15 -2
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/sdk-instrumentation.md +12 -3
- {cmpnd-0.114.0 → cmpnd-0.114.2}/pyproject.toml +1 -1
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/gepa_record_fixture.py +10 -1
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_client_program_names.py +103 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval_example_failures.py +38 -3
- cmpnd-0.114.2/tests/test_run_closed.py +225 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/uv.lock +1 -1
- {cmpnd-0.114.0 → cmpnd-0.114.2}/.gitignore +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/AGENTS.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/CLAUDE.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/LINEAGE.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_account.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_http.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_provider_writes.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_reanchor_evidence.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/authored.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/providers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/top.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/configuration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/context.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/datasets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/decorators.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/deployment.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/execution.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/exporter.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/field_types.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/helpers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/imaging.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/labels.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/models.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimization.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/packaging.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/program_evals.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/references.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/retry.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd/versions.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/LINEAGE.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/cli.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/custom-proposer.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/platform-evals.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/reading-traces.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/docs/versions.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/examples/local_ollama.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/record_gepa_events.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/release-gate.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_credential_route.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_fake_clock.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/_traced_run.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/dspy_features.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/system_one_deployment.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/__main__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/drain.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/ingest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/README.md +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/program.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/sweep.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_health.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/_result.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_eval.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_org_support.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_providers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_client.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_client_floor.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_configuration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_context.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_datasets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_decorators.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deploy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval_start.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_execute.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_field_types.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_gepa_fold.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_imaging.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_import_weight.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_ingest_transport.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_integration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_model_list_protocol.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_models.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_gepa_settings.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_lm_model_type.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_packaging.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_poll_until.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_process_local.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_evals.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_identity.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_lm_binding.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_program_naming.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_programs_create.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_project_payload.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_provider_models.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_provider_types.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_provider_values.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_provider_writes.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_reanchor_evidence.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_reanchor_patch.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_retry.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_rlm_tool_spans.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_schemas.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_span_references.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_span_submission.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_stored_login.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_system_one.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_trace_render.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_traces_read.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_truncation.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_untraced_spans.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_usage_dialect.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_user_agent.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_versions.py +0 -0
- {cmpnd-0.114.0 → cmpnd-0.114.2}/tests/test_xxh64.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: cmpnd
|
|
3
|
-
Version: 0.114.
|
|
3
|
+
Version: 0.114.2
|
|
4
4
|
Summary: DSPy observability and deployment SDK for cmpnd
|
|
5
5
|
Project-URL: Homepage, https://cmpnd.ai
|
|
6
6
|
Author-email: cmpnd <hello@cmpnd.ai>
|
|
@@ -136,6 +136,8 @@ gepa = dspy.GEPA(metric=metric, reflection_lm=dspy.LM("openai/gpt-6-luna"), auto
|
|
|
136
136
|
with cmpnd.Client(api_key="ck_xxx", project_tags="my-project") as sdk:
|
|
137
137
|
# the trace goes to the program "question-answerer"
|
|
138
138
|
result = sdk.run_program(qa1, question="What is DSPy?")
|
|
139
|
+
# the eval run and one trace per example go to "question-answerer" too
|
|
140
|
+
sdk.evaluate(qa1, val, metric, num_threads=8)
|
|
139
141
|
qa2 = sdk.optimize_program(qa1, gepa, trainset=train, valset=val)
|
|
140
142
|
|
|
141
143
|
cmpnd.trace_id(result) # "a1b2c3d4-...", the trace of this run
|
|
@@ -169,6 +171,9 @@ qa3 = cmpnd.Program(
|
|
|
169
171
|
- A program name starts with an ASCII letter or digit, then has letters,
|
|
170
172
|
digits, `.`, `_` or `-`, at most 64 characters. It does not start with `p_`.
|
|
171
173
|
A bad name raises `ValueError`. Declaring a program makes no network call.
|
|
174
|
+
- `evaluate` runs `dspy.Evaluate` on the program in your process and returns
|
|
175
|
+
DSPy's result. Run a named program's evaluation through it: a bare
|
|
176
|
+
`dspy.Evaluate` records nothing on the client's account.
|
|
172
177
|
- `optimize_program` runs the optimizer in your process and returns a copy of
|
|
173
178
|
the program that holds the optimized module. The copy keeps the program name
|
|
174
179
|
and the LM.
|
|
@@ -193,7 +198,9 @@ programs do not count toward your plan's program limit. The first such trace in
|
|
|
193
198
|
a process logs a warning that names the generated name and shows how to give the
|
|
194
199
|
program a real one: `@cmpnd.program(name)` or `cmpnd.Program(name, module=..., lm=...)`,
|
|
195
200
|
run through `cmpnd.Client`. Calling a `cmpnd.Program` directly while `auto_instrument()` is
|
|
196
|
-
on raises a `TypeError` that points to
|
|
201
|
+
on raises a `TypeError` that points to `client.run_program` and `client.evaluate`.
|
|
202
|
+
Under a bare `dspy.Evaluate`, DSPy logs that error for each example and scores it
|
|
203
|
+
as failed. The API reference below
|
|
197
204
|
lists the options of `cmpnd.configure()`.
|
|
198
205
|
|
|
199
206
|
## Deployed programs
|
|
@@ -719,7 +726,11 @@ program is not traced, and the SDK warns once. Run a thread's work with
|
|
|
719
726
|
- Adapters: format and parse operations.
|
|
720
727
|
- Tools: the tool name and description and each invocation's inputs and
|
|
721
728
|
outputs.
|
|
722
|
-
- Evaluations:
|
|
729
|
+
- Evaluations: each example's score, status and trace, the run's score and
|
|
730
|
+
counts of passed, failed and errored examples, and the program under
|
|
731
|
+
evaluation. A `cmpnd.Program` is evaluated through `client.evaluate`, and
|
|
732
|
+
its eval run goes to the program with its name. A run whose every example
|
|
733
|
+
raised is recorded as failed, with an error that says so.
|
|
723
734
|
|
|
724
735
|
## Span types
|
|
725
736
|
|
|
@@ -884,6 +895,11 @@ as a plain object.
|
|
|
884
895
|
|
|
885
896
|
- `run_program(program, **inputs)` runs a `cmpnd.Program` and records its trace
|
|
886
897
|
under the program name.
|
|
898
|
+
- `evaluate(program, devset, metric, **evaluate_kwargs)` runs
|
|
899
|
+
`dspy.Evaluate(devset=devset, metric=metric, **evaluate_kwargs)(program)` on a
|
|
900
|
+
`cmpnd.Program` and returns DSPy's result. The eval run and each example's
|
|
901
|
+
trace go to the program with its name. `evaluate_kwargs` are `dspy.Evaluate`'s
|
|
902
|
+
own, such as `num_threads`.
|
|
887
903
|
- `optimize_program(program, optimizer, trainset=..., valset=...)` compiles a
|
|
888
904
|
`cmpnd.Program` with a DSPy optimizer in your process, records every
|
|
889
905
|
rollout, and returns a copy of the program that holds the optimized module.
|
|
@@ -82,6 +82,8 @@ gepa = dspy.GEPA(metric=metric, reflection_lm=dspy.LM("openai/gpt-6-luna"), auto
|
|
|
82
82
|
with cmpnd.Client(api_key="ck_xxx", project_tags="my-project") as sdk:
|
|
83
83
|
# the trace goes to the program "question-answerer"
|
|
84
84
|
result = sdk.run_program(qa1, question="What is DSPy?")
|
|
85
|
+
# the eval run and one trace per example go to "question-answerer" too
|
|
86
|
+
sdk.evaluate(qa1, val, metric, num_threads=8)
|
|
85
87
|
qa2 = sdk.optimize_program(qa1, gepa, trainset=train, valset=val)
|
|
86
88
|
|
|
87
89
|
cmpnd.trace_id(result) # "a1b2c3d4-...", the trace of this run
|
|
@@ -115,6 +117,9 @@ qa3 = cmpnd.Program(
|
|
|
115
117
|
- A program name starts with an ASCII letter or digit, then has letters,
|
|
116
118
|
digits, `.`, `_` or `-`, at most 64 characters. It does not start with `p_`.
|
|
117
119
|
A bad name raises `ValueError`. Declaring a program makes no network call.
|
|
120
|
+
- `evaluate` runs `dspy.Evaluate` on the program in your process and returns
|
|
121
|
+
DSPy's result. Run a named program's evaluation through it: a bare
|
|
122
|
+
`dspy.Evaluate` records nothing on the client's account.
|
|
118
123
|
- `optimize_program` runs the optimizer in your process and returns a copy of
|
|
119
124
|
the program that holds the optimized module. The copy keeps the program name
|
|
120
125
|
and the LM.
|
|
@@ -139,7 +144,9 @@ programs do not count toward your plan's program limit. The first such trace in
|
|
|
139
144
|
a process logs a warning that names the generated name and shows how to give the
|
|
140
145
|
program a real one: `@cmpnd.program(name)` or `cmpnd.Program(name, module=..., lm=...)`,
|
|
141
146
|
run through `cmpnd.Client`. Calling a `cmpnd.Program` directly while `auto_instrument()` is
|
|
142
|
-
on raises a `TypeError` that points to
|
|
147
|
+
on raises a `TypeError` that points to `client.run_program` and `client.evaluate`.
|
|
148
|
+
Under a bare `dspy.Evaluate`, DSPy logs that error for each example and scores it
|
|
149
|
+
as failed. The API reference below
|
|
143
150
|
lists the options of `cmpnd.configure()`.
|
|
144
151
|
|
|
145
152
|
## Deployed programs
|
|
@@ -665,7 +672,11 @@ program is not traced, and the SDK warns once. Run a thread's work with
|
|
|
665
672
|
- Adapters: format and parse operations.
|
|
666
673
|
- Tools: the tool name and description and each invocation's inputs and
|
|
667
674
|
outputs.
|
|
668
|
-
- Evaluations:
|
|
675
|
+
- Evaluations: each example's score, status and trace, the run's score and
|
|
676
|
+
counts of passed, failed and errored examples, and the program under
|
|
677
|
+
evaluation. A `cmpnd.Program` is evaluated through `client.evaluate`, and
|
|
678
|
+
its eval run goes to the program with its name. A run whose every example
|
|
679
|
+
raised is recorded as failed, with an error that says so.
|
|
669
680
|
|
|
670
681
|
## Span types
|
|
671
682
|
|
|
@@ -830,6 +841,11 @@ as a plain object.
|
|
|
830
841
|
|
|
831
842
|
- `run_program(program, **inputs)` runs a `cmpnd.Program` and records its trace
|
|
832
843
|
under the program name.
|
|
844
|
+
- `evaluate(program, devset, metric, **evaluate_kwargs)` runs
|
|
845
|
+
`dspy.Evaluate(devset=devset, metric=metric, **evaluate_kwargs)(program)` on a
|
|
846
|
+
`cmpnd.Program` and returns DSPy's result. The eval run and each example's
|
|
847
|
+
trace go to the program with its name. `evaluate_kwargs` are `dspy.Evaluate`'s
|
|
848
|
+
own, such as `num_threads`.
|
|
833
849
|
- `optimize_program(program, optimizer, trainset=..., valset=...)` compiles a
|
|
834
850
|
`cmpnd.Program` with a DSPy optimizer in your process, records every
|
|
835
851
|
rollout, and returns a copy of the program that holds the optimized module.
|
|
@@ -147,7 +147,7 @@ class Client:
|
|
|
147
147
|
"""Flush for end-of-scope durability and deactivate the client.
|
|
148
148
|
|
|
149
149
|
Idempotent, and releases no resource — the exporter is pooled and drains
|
|
150
|
-
at process exit regardless. After this, ``run_program``
|
|
150
|
+
at process exit regardless. After this, ``run_program``, ``evaluate`` and
|
|
151
151
|
``optimize_program`` raise, catching a name used past its scope.
|
|
152
152
|
"""
|
|
153
153
|
self._active = False
|
|
@@ -224,6 +224,26 @@ class Client:
|
|
|
224
224
|
with dspy.context(callbacks=self._scoped_callbacks(), **self._declared(program)):
|
|
225
225
|
return program(**inputs)
|
|
226
226
|
|
|
227
|
+
def evaluate(self, program: Any, devset: Any, metric: Any, **evaluate_kwargs: Any) -> Any:
|
|
228
|
+
"""Evaluate ``program`` on ``devset`` with ``dspy.Evaluate``, traced on this client's account.
|
|
229
|
+
|
|
230
|
+
Runs ``dspy.Evaluate(devset=devset, metric=metric, **evaluate_kwargs)(program)``
|
|
231
|
+
and returns what it returns, a ``dspy.evaluate.EvaluationResult``.
|
|
232
|
+
``evaluate_kwargs`` are ``dspy.Evaluate``'s own, such as ``num_threads`` or
|
|
233
|
+
``failure_score``.
|
|
234
|
+
|
|
235
|
+
``program`` is a ``cmpnd.Program``; a plain DSPy module is refused. Each example
|
|
236
|
+
runs on the program's LM, its trace goes to the program with its name, and the
|
|
237
|
+
eval run is recorded on that program, including the examples DSPy's worker
|
|
238
|
+
threads run.
|
|
239
|
+
"""
|
|
240
|
+
self._check_active()
|
|
241
|
+
self._require_program(program)
|
|
242
|
+
import dspy
|
|
243
|
+
|
|
244
|
+
with dspy.context(callbacks=self._scoped_callbacks(), **self._declared(program)):
|
|
245
|
+
return dspy.Evaluate(devset=devset, metric=metric, **evaluate_kwargs)(program)
|
|
246
|
+
|
|
227
247
|
def run_optimization(self, *_args: Any, **_kwargs: Any) -> None:
|
|
228
248
|
"""No longer available: optimize a program locally with ``optimize_program(program, optimizer, ...)``."""
|
|
229
249
|
raise TypeError(
|
|
@@ -454,8 +454,16 @@ class EvalHandler:
|
|
|
454
454
|
eval_run.adapter_type = trace.adapter_type
|
|
455
455
|
break
|
|
456
456
|
|
|
457
|
-
#
|
|
458
|
-
|
|
457
|
+
# A run whose every example errored measured nothing, so it failed. A run
|
|
458
|
+
# with some errored examples completed, and its error_examples count says
|
|
459
|
+
# how many.
|
|
460
|
+
examples = eval_run.passed_examples + eval_run.failed_examples + eval_run.error_examples
|
|
461
|
+
if examples and eval_run.error_examples == examples:
|
|
462
|
+
eval_run.finalize(
|
|
463
|
+
overall_score, models.EvalRunStatus.FAILED, error_message=f"All {examples} examples errored."
|
|
464
|
+
)
|
|
465
|
+
else:
|
|
466
|
+
eval_run.finalize(overall_score, models.EvalRunStatus.COMPLETED)
|
|
459
467
|
|
|
460
468
|
# Update span with final score
|
|
461
469
|
if span:
|
|
@@ -188,7 +188,8 @@ def _refuse_sketch_mode(program: Program) -> None:
|
|
|
188
188
|
if any(isinstance(cb, callback.CmpndCallback) and cb.traces_globally for cb in callbacks):
|
|
189
189
|
raise TypeError(
|
|
190
190
|
f"{program.name!r} is a named cmpnd.Program, and auto_instrument() traces without program "
|
|
191
|
-
"names. Run it through a cmpnd.Client: client.run_program(program, ...)"
|
|
191
|
+
"names. Run it through a cmpnd.Client: client.run_program(program, ...) to call it, or "
|
|
192
|
+
"client.evaluate(program, devset, metric) to evaluate it."
|
|
192
193
|
)
|
|
193
194
|
|
|
194
195
|
|
|
@@ -57,6 +57,7 @@ from .protocols import (
|
|
|
57
57
|
TraceRecord,
|
|
58
58
|
)
|
|
59
59
|
from .record_stream import RecordStream, expected_sequence
|
|
60
|
+
from .run_closed import closed_run_status
|
|
60
61
|
from .span_context import ExportContext
|
|
61
62
|
|
|
62
63
|
# Named for the module this code used to live in, not for the one it lives in
|
|
@@ -830,6 +831,7 @@ class BatchExporter:
|
|
|
830
831
|
# progress is never sent. Progress is queued before its run closes, so a run's
|
|
831
832
|
# progress has long left the queue by the time _CLOSED_RUNS_KEPT more runs close.
|
|
832
833
|
self._closed_runs: collections.OrderedDict[str, None] = collections.OrderedDict()
|
|
834
|
+
self._closed_runs_lock = threading.Lock()
|
|
833
835
|
# Whether the lane reported at exit what it could not send, so no hook repeats it.
|
|
834
836
|
self._reported_at_exit = False
|
|
835
837
|
# The traces whose start the lane took and whose finished body or finalize it
|
|
@@ -953,6 +955,7 @@ class BatchExporter:
|
|
|
953
955
|
self._open_starts = set()
|
|
954
956
|
self._held_starts = {}
|
|
955
957
|
self._open_starts_lock = threading.Lock()
|
|
958
|
+
self._closed_runs_lock = threading.Lock()
|
|
956
959
|
self._held_by_sender = False
|
|
957
960
|
self._attached = None
|
|
958
961
|
self._loop_state = None
|
|
@@ -1609,8 +1612,13 @@ class BatchExporter:
|
|
|
1609
1612
|
def export_optimization_progress(self, optimization_run: OptimizationRunRecord) -> None:
|
|
1610
1613
|
"""Queue an optimization progress update for export (non-blocking).
|
|
1611
1614
|
|
|
1612
|
-
This sends a lightweight PATCH request to update progress metrics.
|
|
1615
|
+
This sends a lightweight PATCH request to update progress metrics. A run that
|
|
1616
|
+
closed takes no more progress, so its update is skipped here; the sender skips
|
|
1617
|
+
one queued before the run closed.
|
|
1613
1618
|
"""
|
|
1619
|
+
self._own_process()
|
|
1620
|
+
if str(optimization_run.optimization_run_id) in self._closed_runs:
|
|
1621
|
+
return
|
|
1614
1622
|
self._enqueue(ExportItem("optimization_progress", optimization_run, time.time()))
|
|
1615
1623
|
|
|
1616
1624
|
def export_optimization_complete(self, optimization_run: OptimizationRunRecord) -> None:
|
|
@@ -1621,18 +1629,31 @@ class BatchExporter:
|
|
|
1621
1629
|
sent after it, because serve refuses progress on a closed run. Raises when the
|
|
1622
1630
|
write fails, so the caller can say the run stays open.
|
|
1623
1631
|
"""
|
|
1632
|
+
self._own_process()
|
|
1624
1633
|
run_id = str(optimization_run.optimization_run_id or "")
|
|
1625
1634
|
if run_id:
|
|
1626
|
-
self.
|
|
1627
|
-
while len(self._closed_runs) > _CLOSED_RUNS_KEPT:
|
|
1628
|
-
self._closed_runs.popitem(last=False)
|
|
1635
|
+
self._close_run(run_id)
|
|
1629
1636
|
try:
|
|
1630
1637
|
self.export_optimization_run(optimization_run)
|
|
1631
1638
|
except BaseException:
|
|
1632
1639
|
# The run stays open on serve, so a run resumed from its checkpoint sends progress again.
|
|
1633
|
-
self.
|
|
1640
|
+
with self._closed_runs_lock:
|
|
1641
|
+
self._closed_runs.pop(run_id, None)
|
|
1634
1642
|
raise
|
|
1635
1643
|
|
|
1644
|
+
def _close_run(self, run_id: str) -> None:
|
|
1645
|
+
"""Remember that run_id takes no more progress, so none is queued or sent.
|
|
1646
|
+
|
|
1647
|
+
The caller's thread closes a run it settles, and the sender's loop one serve says
|
|
1648
|
+
settled, so the two writers share a lock. A fork rebuilds the lock, so a caller
|
|
1649
|
+
runs ``_own_process`` before it comes here; the sender's loop is this process's
|
|
1650
|
+
own, built after that rebuild.
|
|
1651
|
+
"""
|
|
1652
|
+
with self._closed_runs_lock:
|
|
1653
|
+
self._closed_runs[run_id] = None
|
|
1654
|
+
while len(self._closed_runs) > _CLOSED_RUNS_KEPT:
|
|
1655
|
+
self._closed_runs.popitem(last=False)
|
|
1656
|
+
|
|
1636
1657
|
def _enqueue(self, item: ExportItem, *, settles_a_start: bool = False, hold_start: str | None = None) -> bool:
|
|
1637
1658
|
"""Queue a record in its lane, shedding only what is safe to shed. True if queued.
|
|
1638
1659
|
|
|
@@ -3187,6 +3208,16 @@ class BatchExporter:
|
|
|
3187
3208
|
f"Updated optimization progress {opt_run_id}: "
|
|
3188
3209
|
f"{progress_dict.get('current_metric_calls')}/{progress_dict.get('max_metric_calls')}"
|
|
3189
3210
|
)
|
|
3211
|
+
except httpx.HTTPStatusError as e:
|
|
3212
|
+
closed = closed_run_status(e.response)
|
|
3213
|
+
if closed is None:
|
|
3214
|
+
self._log_send_failure("Failed to update optimization progress %s: %s", opt_run_id, e)
|
|
3215
|
+
self._add_errors(1)
|
|
3216
|
+
continue
|
|
3217
|
+
# A cancel settles the run while its last progress is in flight: the
|
|
3218
|
+
# normal end of a cancelled run's heartbeat. Send the run nothing more.
|
|
3219
|
+
self._close_run(opt_run_id)
|
|
3220
|
+
logger.info("cmpnd: optimization run %s is %s; stopped sending its progress", opt_run_id, closed)
|
|
3190
3221
|
except Exception as e:
|
|
3191
3222
|
self._log_send_failure("Failed to update optimization progress %s: %s", opt_run_id, e)
|
|
3192
3223
|
self._add_errors(1)
|
|
@@ -13,7 +13,8 @@ a hole. One sender thread sends one piece at a time, oldest rows first, and the
|
|
|
13
13
|
producer never waits on it except in ``flush``.
|
|
14
14
|
|
|
15
15
|
The sender stops for good when the producer closes the stream at the run's end, when
|
|
16
|
-
|
|
16
|
+
the run settled or is paused (a 409 whose ``code`` says so, logged at INFO with the
|
|
17
|
+
run's status), when serve says the run takes no more rows (404, 401), when
|
|
17
18
|
another attempt holds the record (410), when serve has no record route (405, which
|
|
18
19
|
sets ``unsupported`` so the producer sends its rows in the settle instead), and when a
|
|
19
20
|
serve that stays unreachable outlasts the transport's retry budget. A row serve
|
|
@@ -31,6 +32,8 @@ from typing import Any
|
|
|
31
32
|
|
|
32
33
|
import httpx
|
|
33
34
|
|
|
35
|
+
from .run_closed import closed_run_status
|
|
36
|
+
|
|
34
37
|
logger = logging.getLogger(__name__)
|
|
35
38
|
|
|
36
39
|
# How much one piece carries, at least one row: far below serve's body limit.
|
|
@@ -133,7 +136,14 @@ class RecordStream:
|
|
|
133
136
|
except Exception as e:
|
|
134
137
|
answer = e
|
|
135
138
|
with self._cond:
|
|
136
|
-
|
|
139
|
+
try:
|
|
140
|
+
self._answer(sequence, piece, answer)
|
|
141
|
+
except Exception as e:
|
|
142
|
+
# A sender that died here would leave flush waiting on a stream
|
|
143
|
+
# nothing stops, so the stream stops instead.
|
|
144
|
+
self._stop(f"the record sender failed ({e!r})")
|
|
145
|
+
self._cond.notify_all()
|
|
146
|
+
return
|
|
137
147
|
self._cond.notify_all()
|
|
138
148
|
|
|
139
149
|
def _answer(self, sequence: int, piece: list[dict[str, Any]], answer: int | Exception) -> None:
|
|
@@ -145,6 +155,13 @@ class RecordStream:
|
|
|
145
155
|
response = answer.response if isinstance(answer, httpx.HTTPStatusError) else None
|
|
146
156
|
status = response.status_code if response is not None else None
|
|
147
157
|
if status == 409 and response is not None:
|
|
158
|
+
closed = closed_run_status(response)
|
|
159
|
+
if closed is not None:
|
|
160
|
+
# A cancel settles the run while its last rows are in flight: the
|
|
161
|
+
# normal end of a cancelled run's record, so INFO, and nothing resends.
|
|
162
|
+
self._stopped = f"the run is {closed} and takes no more record rows"
|
|
163
|
+
logger.info("cmpnd: %s; stopped sending them", self._stopped)
|
|
164
|
+
return
|
|
148
165
|
expected = expected_sequence(response)
|
|
149
166
|
if expected is not None:
|
|
150
167
|
logger.warning(
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Serve's answer to a producer's write to a run that settled or is paused.
|
|
2
|
+
|
|
3
|
+
The progress, record and checkpoint routes answer a write to such a run 409 with a
|
|
4
|
+
``code`` and the run's ``status`` (docs/ingest-protocol.md, "A run that is no longer
|
|
5
|
+
open answers 409"). A cancel settles a run while its producer's last batch is in
|
|
6
|
+
flight, so a cancelled run's last send meets this answer in the normal course. The
|
|
7
|
+
producer stops sending the run progress and record rows, retries nothing, and logs at
|
|
8
|
+
INFO. The settling write is not refused this way and still lands.
|
|
9
|
+
|
|
10
|
+
The record route also answers a sequence gap 409, with ``expected_sequence`` and no
|
|
11
|
+
``code``, so a reader tells the two apart by the code.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from __future__ import annotations
|
|
15
|
+
|
|
16
|
+
import httpx
|
|
17
|
+
|
|
18
|
+
# The codes serve gives a progress, record or checkpoint write to a run that settled
|
|
19
|
+
# or is paused.
|
|
20
|
+
RUN_CLOSED_CODES = frozenset({"run_settled", "run_paused"})
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def closed_run_status(response: httpx.Response) -> str | None:
|
|
24
|
+
"""The run's status when serve answered that the run settled or is paused, else None."""
|
|
25
|
+
if response.status_code != 409:
|
|
26
|
+
return None
|
|
27
|
+
try:
|
|
28
|
+
body = response.json()
|
|
29
|
+
except ValueError:
|
|
30
|
+
return None
|
|
31
|
+
if not isinstance(body, dict):
|
|
32
|
+
return None
|
|
33
|
+
code = body.get("code")
|
|
34
|
+
# Only a string can be one of the codes; a list or a dict is not, and is unhashable.
|
|
35
|
+
if not isinstance(code, str) or code not in RUN_CLOSED_CODES:
|
|
36
|
+
return None
|
|
37
|
+
status = body.get("status")
|
|
38
|
+
return status if isinstance(status, str) and status else code
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
has a program name, so every trace it records belongs to a program. It is the
|
|
5
5
|
way to trace a program you mean to keep. `cmpnd.configure()` with
|
|
6
6
|
`cmpnd.auto_instrument()` is for sketching ("Sketch mode" below). Only programs
|
|
7
|
-
passed to `run_program` or `optimize_program` record on the client's account,
|
|
7
|
+
passed to `run_program`, `evaluate` or `optimize_program` record on the client's account,
|
|
8
8
|
and bare DSPy stays untouched. Deploying, running a deployment and optimizing on the platform are
|
|
9
9
|
client methods too, and have no form outside a client. A client holds its own tags, credentials and endpoint, separate from
|
|
10
10
|
the global config that `auto_instrument()` reads, so both can run in one
|
|
@@ -32,6 +32,7 @@ import cmpnd
|
|
|
32
32
|
|
|
33
33
|
with cmpnd.Client(project_tags=["rag-v1"], api_key="ct_...") as sdk:
|
|
34
34
|
result = sdk.run_program(program, question="Who represents District 4?")
|
|
35
|
+
sdk.evaluate(program, devset, metric, num_threads=8)
|
|
35
36
|
sdk.optimize_program(program, gepa, trainset=train, valset=val)
|
|
36
37
|
rows = sdk.list_traces(status="error")
|
|
37
38
|
```
|
|
@@ -52,7 +53,7 @@ sdk.close() # optional: flushes, then deactivates
|
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
A client runs only a `cmpnd.Program`, which declares its program by its program
|
|
55
|
-
name, as the next section shows. `run_program`, `optimize_program` and
|
|
56
|
+
name, as the next section shows. `run_program`, `evaluate`, `optimize_program` and
|
|
56
57
|
`deploy_program` refuse a plain DSPy module with a `TypeError` that shows how
|
|
57
58
|
to give it a program name.
|
|
58
59
|
The client's traces and run records use the client's own project tags and never
|
|
@@ -306,9 +307,13 @@ source file, and `cmpnd.Client().deploy_program(program)` for a
|
|
|
306
307
|
|
|
307
308
|
A client records a call only when the call runs through one of its methods.
|
|
308
309
|
`sdk.run_program(program, **inputs)` runs `program(**inputs)` with the
|
|
309
|
-
client's callback installed for that call. `sdk.
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
client's callback installed for that call. `sdk.evaluate(program, devset,
|
|
311
|
+
metric, **evaluate_kwargs)` runs `dspy.Evaluate(devset=devset, metric=metric,
|
|
312
|
+
**evaluate_kwargs)(program)` the same way, so the eval run and each example's
|
|
313
|
+
trace go to the program with its name, from DSPy's worker threads too.
|
|
314
|
+
`sdk.optimize_program(program, optimizer, trainset=..., valset=...)` runs
|
|
315
|
+
`optimizer.compile(...)` the same way. Bare `dspy`, `dspy.Evaluate` or `GEPA`
|
|
316
|
+
calls record nothing on the client's account.
|
|
312
317
|
|
|
313
318
|
Membership follows the instance. An outer client's `run_program` called inside
|
|
314
319
|
an inner client's block still uses the outer client's config.
|
|
@@ -76,8 +76,10 @@ terminal write, because serve runs one statement for both.
|
|
|
76
76
|
and never waits on the network. One sender thread posts pieces of rows to
|
|
77
77
|
`/api/v1/optimizations/{id}/iterations` by sequence and attempt, oldest first,
|
|
78
78
|
each on the transport's retry budget. The stream keeps every row, so a 409 that
|
|
79
|
-
names a lower `expected_sequence` makes it send again from there. A
|
|
80
|
-
|
|
79
|
+
names a lower `expected_sequence` makes it send again from there. A 409 whose
|
|
80
|
+
`code` is `run_settled` or `run_paused` means the run takes no more rows, and
|
|
81
|
+
stops it with one INFO line naming the run's status. A 404, 401 or 410 stops
|
|
82
|
+
it, a 405 stops it with `unsupported` set so the producer sends its
|
|
81
83
|
rows in the settle, and a row serve refuses outright is found by sending the
|
|
82
84
|
piece one row at a time and is dropped. `flush(timeout)` waits until serve
|
|
83
85
|
holds every row, and `next_sequence()` is the count the settle states as
|
|
@@ -108,6 +110,17 @@ take the record, and the tracker then logs that the run stays open. Progress
|
|
|
108
110
|
still queued for a closed run is never sent, because serve refuses progress on
|
|
109
111
|
a closed run.
|
|
110
112
|
|
|
113
|
+
## A run that settled or is paused
|
|
114
|
+
|
|
115
|
+
Serve answers a write to a run that settled or is paused with 409, a `code`
|
|
116
|
+
of `run_settled` or `run_paused`, and the run's `status`
|
|
117
|
+
(`cmpnd_ingest/run_closed.py` reads it). A cancel settles a run while its
|
|
118
|
+
producer's last progress is in flight, so a cancelled run's heartbeat ends this
|
|
119
|
+
way in the normal course. The exporter retries nothing, counts no error, logs
|
|
120
|
+
one INFO line with the run's status, and sends no more progress to the run:
|
|
121
|
+
`export_optimization_progress` skips a later update before it reaches the queue,
|
|
122
|
+
and the sender skips one already queued. The record stream stops the same way. A 404 still means no run answers to the id.
|
|
123
|
+
|
|
111
124
|
## HTTP request timeouts
|
|
112
125
|
|
|
113
126
|
`BatchExporter` reads these environment variables at construction. Each takes
|
|
@@ -1025,7 +1025,7 @@ What it captures beyond the normal span flow:
|
|
|
1025
1025
|
- The metric name (via `get_metric_name` from `python-sdk/cmpnd/helpers.py`) and inferred provider.
|
|
1026
1026
|
- Links to the enclosing optimization run when one exists (`eval_handler.py:85`), so eval runs triggered inside `GEPA.compile` roll up under the optimization in the UI.
|
|
1027
1027
|
- The program the run evaluates, as `program_id`. A program name the call declares wins: the exporter resolves it with `resolve_program_name`, the same once-per-process answer its traces use, on the caller's thread because the eval start is sent synchronously. Without a declared name, the run takes the callback's program id, else the program of the optimization run it belongs to. A run with none of these resolves the name the SDK generates for the evaluated module, the name that module's traces carry, with `resolve_program_name(name, generated=True)`. A name serve refuses leaves the run without an id. The evaluated module's class goes as `module_class`, and again under `program_name`, the key a serve from before `module_class` reads. The run sends no `program_signature_hash`.
|
|
1028
|
-
- The exporter it publishes through: the callback's own (`_current_exporter`), so a client's eval runs go to the client's account.
|
|
1028
|
+
- The exporter it publishes through: the callback's own (`_current_exporter`), so a client's eval runs go to the client's account. `Client.evaluate` runs `dspy.Evaluate` inside the client's `dspy.context` scope, the one `run_program` enters, so the handler sees the client's callback and the program's declared name on every worker thread.
|
|
1029
1029
|
- The dataset — on `on_evaluate_start` it triggers the `dataset_sync` pre-flight described above.
|
|
1030
1030
|
|
|
1031
1031
|
Per-example results (scores, statuses, example hashes) are collected in `on_evaluate_end` and shipped as part of the `EvalRunBuilder`'s `to_api_dict()`, which the exporter routes to `/api/v1/eval_runs`.
|
|
@@ -1046,6 +1046,12 @@ score. That example is recorded as an error with a generic message and no
|
|
|
1046
1046
|
`error_type`. A failed example keeps the failure score DSPy counted toward the
|
|
1047
1047
|
run's score (`tests/test_eval_example_failures.py`).
|
|
1048
1048
|
|
|
1049
|
+
The run counts its errored examples as `error_examples`, apart from
|
|
1050
|
+
`failed_examples`, the examples the metric scored as failing. A run whose every
|
|
1051
|
+
example errored measured nothing, so `on_evaluate_end` settles it as `failed`
|
|
1052
|
+
with the message `All N examples errored.` A run with some errored examples
|
|
1053
|
+
settles as `completed`, and its `error_examples` says how many.
|
|
1054
|
+
|
|
1049
1055
|
The `Evaluate` span the handler pushes is a marker on the span stack:
|
|
1050
1056
|
`on_module_start` reads it to root each program run in its own trace. Outside
|
|
1051
1057
|
an open trace the span belongs to no trace, and the handler never exports it,
|
|
@@ -1128,8 +1134,11 @@ A user names a program by its program name. A `cmpnd.Program` or `@cmpnd.program
|
|
|
1128
1134
|
declares a program name in Python, and `cmpnd deploy SOURCE PROGRAM_NAME` declares one on
|
|
1129
1135
|
the command line. A `cmpnd.Program`'s traces carry its program name when a `cmpnd.Client`
|
|
1130
1136
|
runs it, and a client runs nothing else. `auto_instrument()` declares no program
|
|
1131
|
-
name, so a named program called under it raises a `TypeError` that points to
|
|
1132
|
-
client (`named_programs._refuse_sketch_mode`).
|
|
1137
|
+
name, so a named program called under it raises a `TypeError` that points to
|
|
1138
|
+
`client.run_program` and `client.evaluate` (`named_programs._refuse_sketch_mode`). It
|
|
1139
|
+
raises on each call, because a call it let through would trace under a generated name.
|
|
1140
|
+
Under a bare `dspy.Evaluate`, DSPy catches the error, logs it for each example and
|
|
1141
|
+
scores the example as failed. The platform names each program with a server-issued id, `p_` and twelve
|
|
1133
1142
|
base62 characters, and the SDK never mints one. The SDK resolves a program name to its id
|
|
1134
1143
|
with `PUT /api/v1/programs/by-name/{name}`, which makes the program the first time the
|
|
1135
1144
|
organization uses the program name. There is no project file.
|
|
@@ -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.114.
|
|
8
|
+
version = "0.114.2"
|
|
9
9
|
description = "DSPy observability and deployment SDK for cmpnd"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.11"
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
``docs/schemas/optimization-record/gepa-run-events.json`` holds every callback event
|
|
4
4
|
one real GEPA run sent (``scripts/record_gepa_events.py``), and
|
|
5
5
|
``gepa-run-record.json`` beside it the record rows, candidates and settle scalars the
|
|
6
|
-
fold must make of them. ``tests/test_gepa_fold.py`` replays the one into the other
|
|
6
|
+
fold must make of them. ``tests/test_gepa_fold.py`` replays the one into the other,
|
|
7
|
+
and the Go optimizer's ``internal/runreport/gepa_record_fixture_test.go`` holds its own
|
|
8
|
+
record to the same file. Rewriting the record here changes what both producers must make.
|
|
7
9
|
|
|
8
10
|
uv run python -m tests.gepa_record_fixture # rewrites gepa-run-record.json
|
|
9
11
|
"""
|
|
@@ -44,6 +46,12 @@ def _trace_ids(outputs: Any = None) -> list[uuid.UUID]:
|
|
|
44
46
|
return [uuid.UUID(o["trace_id"]) for o in values if isinstance(o, dict) and "trace_id" in o]
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
def _recorded_trace_id(prediction: Any) -> str | None:
|
|
50
|
+
"""The trace a recorded rollout was stamped with: the recording keeps each
|
|
51
|
+
Prediction's stamp as a ``{"trace_id": ...}`` dict."""
|
|
52
|
+
return prediction.get("trace_id") if isinstance(prediction, dict) else None
|
|
53
|
+
|
|
54
|
+
|
|
47
55
|
def _event(method: str, recorded: dict[str, Any]) -> dict[str, Any]:
|
|
48
56
|
event = dict(recorded)
|
|
49
57
|
if method == "on_iteration_start":
|
|
@@ -75,6 +83,7 @@ def replay(events: list[dict[str, Any]]) -> tuple[tracker.OptimizationTracker, l
|
|
|
75
83
|
cb = gepa_callback.CmpndGEPACallback(trk, defer_finalize=True, now=Clock())
|
|
76
84
|
with (
|
|
77
85
|
mock.patch.object(gepa_callback, "_read_eval_trace_ids", side_effect=_trace_ids),
|
|
86
|
+
mock.patch.object(gepa_callback.trace_callback, "trace_id", autospec=True, side_effect=_recorded_trace_id),
|
|
78
87
|
mock.patch.object(trk, "start", autospec=True),
|
|
79
88
|
mock.patch.object(trk, "send_progress_update", autospec=True, side_effect=send),
|
|
80
89
|
mock.patch.object(gepa_callback, "_EMIT_COALESCE_SECONDS", 0),
|