cmpnd 0.114.1__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.1 → cmpnd-0.114.2}/PKG-INFO +1 -1
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/exporter_http.py +36 -5
- {cmpnd-0.114.1 → 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.1 → cmpnd-0.114.2}/docs/ingest-transport.md +15 -2
- {cmpnd-0.114.1 → cmpnd-0.114.2}/pyproject.toml +1 -1
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/gepa_record_fixture.py +10 -1
- cmpnd-0.114.2/tests/test_run_closed.py +225 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/uv.lock +1 -1
- {cmpnd-0.114.1 → cmpnd-0.114.2}/.gitignore +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/AGENTS.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/CLAUDE.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/README.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/LINEAGE.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_account.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_assessments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_authored_import.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_deployments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_exporter_pool.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_gepa_patch.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_http.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_label_vocabulary.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_program_patch.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_provider_types.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_provider_writes.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_reanchor_evidence.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_reanchor_patch.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_runtime_tools.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_timespec.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/_valsets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/authored.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/api_client.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/admin.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/assessments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/auth.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/datasets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/deployments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/evals.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/feedback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/kernel_lines.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/labels.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/login.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/optimizations.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/org.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/provider_credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/providers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/skill.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/tool_servers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/top.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/commands/valsets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/deprecation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/label_args.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/pagination.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/shell.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/LICENSE +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/VENDOR.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/_vendor/drskill/harnesses.toml +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/agents.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/bundle.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/install.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/skill/offer.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/trace_render.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/tree_help.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/verbs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/cli/views.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/client.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/configuration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/context.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/dataset_sync.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/datasets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/decorators.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/deployment.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/deployment_metadata.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/deployment_runs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/eval_handler.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/execution.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/exporter.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/exporter_http.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/field_types.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/helpers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/imaging.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/decode.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/encode.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/hash.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/program.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/reflection.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/types.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/ir/xxh64.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/kernel_lines.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/labels.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/lm_configuration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/mcp_servers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/models.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/named_programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimization.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimizers/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimizers/gepa.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimizers/gepa_callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimizers/resume.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/optimizers/tracker.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/packaging.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/program_evals.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/program_naming.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/references.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/retry.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/SKILL.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/data/train.jsonl +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/data/val.jsonl +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/optimize.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/program.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task_gpt5mini.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/examples/support_triage/task_haiku.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/deploy.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/dspy.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/feedback.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/gaps.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/observe.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/optimize.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/setup.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/references/tools.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/skill_bundle/scripts/tools_block.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd/versions.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/LINEAGE.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/bodies.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/client_floor.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/network.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/process_local.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/program_names.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/protocols.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/py.typed +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/queue_budget.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/rejections.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/retry.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/sender.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/span_context.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/storable.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/trace_facts.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/cmpnd_ingest/user_agent.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/2026-04-02-code-review.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/cli.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/client.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/custom-proposer.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/plans/2026-04-05-train-val-dataset-capture-design.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/plans/2026-04-05-train-val-dataset-capture.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/platform-evals.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/reading-traces.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/sdk-instrumentation.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/docs/versions.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/examples/generalizing_proposer.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/examples/local_ollama.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/audit-sdist.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/capture_review_run.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/check-pip-install.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/check_release_artifacts.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/export-bedrock-token.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/fixtures/review_run.json.gz +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/fork-matrix.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/gepa_resume_bug.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/install-test-env.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/record_gepa_events.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/release-gate.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/release-real-models.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/require_version_bump.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/seed_review_run.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/selfhost_compat.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/scripts/test-in-linux.sh +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/__init__.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/primitives/__init__.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/primitives/prediction.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/utils/__init__.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/utils/callback.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/stubs/dspy/utils/dummies.pyi +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_credential_route.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_deployment_signature_helpers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_exporter_helpers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_fake_clock.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_fresh_interpreter.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_identity_helpers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_resolve_refs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/_traced_run.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/dspy_features.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/committee_task.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/continuation_task.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/data/committee_train.ndjson.gz +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/data/committee_val.ndjson.gz +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/fake_lm.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/helpers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/target_capabilities.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_assessments_cli.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_capture_prompts.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_composite_module.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_dataset_auto_creation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_deploy_execute.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_deploy_pandas.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_deploy_programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_edge_cases.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_example_hash.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_gepa_optimization.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_interpreter_spans.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_lm_accuracy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_module_tracing.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimization_lineage.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimization_metric_identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_authored_metric.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_continuation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_custom_proposer.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_failures.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_loop.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_review_committee.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_optimize_server_owned_completion.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_parallel_export.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_program_versions.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_project_attribution.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_react_tool_spans.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_reanchor_optimization.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_save_load.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_trace_structure.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_traces_read.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_user_attribution.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/e2e/test_valsets_cli.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/01_predict_qa.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/02_predict_renamed_field.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/03_chain_of_thought_qa.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/04_predict_richer_types.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/05_composite_two_predicts.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/06_multichaincomparison.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/07_program_of_thought.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/08_opaque_module.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/09_predict_pydantic_field.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/10_react.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/11_refine.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/12_retrieve.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/13_knn.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/14_parallel.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/identity_vectors/README.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/ingest_conformance.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/authored_optimize/judge.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/authored_optimize/optimize_hosted.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/hosted_mcp_tool_optimize_probe.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/hosted_optimize_probe.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/optimization_run_probe.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/system_one_deployment.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/test_cli_deploy_smoketest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/test_logs_renders_traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/test_optimization_run.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/test_optimizing_progress.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/integration/test_unhappy_path.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/lm15_prompt_fixture.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/lm15_prompts/four_turn_predict.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/lm15_prompts/rlm_six_turns.json +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/__main__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/drain.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/ingest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/latency_transport.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/rlm_shape.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/rlm_size_report.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/README.md +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/asgi_app.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/baseline.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/drive_server.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/exits.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/outage.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/outage_proxy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/pools.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/program.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sender/verify.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/sweep.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/test_rlm_shape.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/load/test_rlm_size_report.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/seed_parity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_auth.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_datasets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_deployments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_evals.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_health.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_modules.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_optimizations.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_signatures.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_trace_streaming.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/parity/test_traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/_provider.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/_readiness.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/_reliability.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/_result.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/mint_bedrock_token.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_bedrock_converse.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_deploy_programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_multi_client_stress.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_optimize_client_committee.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_optimize_continuation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_optimize_loop.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_optimize_loop_wasm.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_optimize_stress.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_provider_roles.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_readiness.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_real_provider_twins.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_reliability.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_reliability_classify.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_rlm_wasm.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_skill_agent.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/real_models/test_trace_search.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/span_reference_fixture.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_adapter_reentrancy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_assessments_api.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_binding_credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_bundle_collisions.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_eval.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_metric_contract.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_named_models.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_authored_optimize.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_candidate_lineage.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_check_release_artifacts.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_admin.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_api_client.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_assessments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_auth.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_datasets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_deployment_runs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_deployments.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_evals.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_feedback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_json_flag.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_login.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_main.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_optimizations.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_org.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_org_support.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_pagination.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_parity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_programs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_provider_credentials.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_provider_flags.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_providers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_schema_sample.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_shell.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_skill.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_skill_offer.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_tool_servers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_top.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_traces.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_traces_program_and_module.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_traces_search_wire.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_tree_help.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cli/test_valsets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_client.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_client_floor.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_client_program_names.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_clustering/__init__.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_clustering/conftest.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_clustering/test_edge_cases.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_clustering/test_hash_consistency.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_cmp551_grouping_identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_configuration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_context.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_context_propagation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_credential_kwargs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_credential_selection.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_dataset_polling.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_dataset_sync.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_datasets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_decision_client_spans.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_decorators.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deploy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deploy_mcp_tool_references.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deploy_program_id.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deployment_metadata.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deployment_runs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deployment_targets.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_deployments_read.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_dspy_version_label.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval_example_attribution.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval_example_failures.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval_program_id.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval_start.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_eval_trace_grouping.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exception_paths.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_execute.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_execute_run_identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter_fork_exec.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter_program_names.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter_queue.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter_real.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_exporter_rejections.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_fake_lm.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_field_types.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_forward_access_warning.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_gepa_callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_gepa_fold.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_gepa_integration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_gepa_output_normalization.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_gepa_resume.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_imaging.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_import_weight.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_ingest_conformance.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_ingest_transport.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_integration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_interpreter_callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_ir_encoder_properties.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_ir_golden_vectors.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_ir_roundtrip.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_kernel_lines.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_label_vocabulary.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_lm15_native_calls.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_lm15_prompt_fixtures.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_lm15_prompt_references.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_lm_configuration.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_lm_usage_shapes.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_mcp_tools.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_model_list_protocol.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_models.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_multi_client_stress_readiness.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_no_signature_hash_on_the_wire.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimization_phase_callback.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimization_program_names.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimization_progress.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimization_start.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_budget.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_gepa_settings.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_labels.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_lift.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_lm_model_type.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_lms.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_proposer.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_reflection_lm.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_split.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_optimize_terminal_failure.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_owned_trace_streaming.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_packaging.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_packaging_callable_source.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_packaging_mcp_tools.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_packaging_program_source.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_poll_until.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_process_local.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_evals.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_id_deprecation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_identity.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_lineage_persist.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_lm_binding.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_names_in_deploy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_program_naming.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_programs_create.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_project_payload.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_provider_keyword.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_provider_models.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_provider_types.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_provider_values.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_provider_writes.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_queue_budget.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_real_provider_twins_readiness.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_reanchor_evidence.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_reanchor_patch.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_reflector_properties.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_reflector_smoke.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_release_gate_script.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_release_real_models_script.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_replaced_names.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_repro_reactv2_bugs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_require_version_bump.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_retry.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_reversible_failures.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_rlm_tool_spans.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_run_attribution_paths.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_runtime_tools.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_schemas.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_seal_lm_credential.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_seed_review_run.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_sender_scenarios.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_sending_settings.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_signature_inputs.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_skill_bundle.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_skill_tools_block.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_span_references.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_span_sent_once.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_span_submission.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_span_submission_wire_contract.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_stored_login.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_system_one.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_token_attribution.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_trace_context_concurrency.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_trace_fact_wire_contract.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_trace_facts.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_trace_labels.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_trace_render.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_traces_label_search_busy.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_traces_query_needs_program.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_traces_read.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_tracked_gepa.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_tracker_enrich.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_truncation.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_untraced_spans.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_upload_auth_headers.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_usage_dialect.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_user_agent.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_valsets_api.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_versions.py +0 -0
- {cmpnd-0.114.1 → cmpnd-0.114.2}/tests/test_xxh64.py +0 -0
|
@@ -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
|
|
@@ -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
|
|
@@ -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),
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
"""A run that settled or is paused answers its producer 409 with a code, and the SDK stops.
|
|
2
|
+
|
|
3
|
+
A cancel settles a run while its producer's last batch is in flight, so the producer's
|
|
4
|
+
last heartbeat or record piece meets serve's 409 ``run_settled`` in the normal course
|
|
5
|
+
(docs/ingest-protocol.md, "A run that is no longer open answers 409"). The SDK stops
|
|
6
|
+
sending to the run, retries nothing and logs at INFO, never WARNING.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
import logging
|
|
12
|
+
import threading
|
|
13
|
+
from typing import Any
|
|
14
|
+
|
|
15
|
+
import httpx
|
|
16
|
+
import pytest
|
|
17
|
+
|
|
18
|
+
from cmpnd.configuration import Config
|
|
19
|
+
from cmpnd.exporter import BatchExporter, ExportItem
|
|
20
|
+
from cmpnd.optimizers.tracker import IterationData, OptimizationTracker
|
|
21
|
+
from cmpnd_ingest.record_stream import RecordStream
|
|
22
|
+
from cmpnd_ingest.run_closed import closed_run_status
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _settled(status: str = "cancelled", code: str = "run_settled") -> dict[str, str]:
|
|
26
|
+
return {
|
|
27
|
+
"error": "optimization run has settled",
|
|
28
|
+
"code": code,
|
|
29
|
+
"status": status,
|
|
30
|
+
"optimization_id": "op_abcdefghijkl",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _response(status: int, body: Any) -> httpx.Response:
|
|
35
|
+
return httpx.Response(status, json=body, request=httpx.Request("POST", "https://ingest.invalid/x"))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@pytest.mark.parametrize(
|
|
39
|
+
("status", "body", "want"),
|
|
40
|
+
[
|
|
41
|
+
(409, _settled(), "cancelled"),
|
|
42
|
+
(409, _settled("paused", "run_paused"), "paused"),
|
|
43
|
+
(409, {"error": "gap", "expected_sequence": 3}, None),
|
|
44
|
+
(409, {"error": "x", "code": "not_hosted", "status": "running"}, None),
|
|
45
|
+
(404, _settled(), None),
|
|
46
|
+
(409, ["not", "an", "object"], None),
|
|
47
|
+
(409, {"error": "x", "code": ["run_settled"], "status": "cancelled"}, None),
|
|
48
|
+
(409, {"error": "x", "code": {"run_settled": 1}, "status": "cancelled"}, None),
|
|
49
|
+
(409, {"error": "x", "code": "run_settled", "status": ["cancelled"]}, "run_settled"),
|
|
50
|
+
],
|
|
51
|
+
)
|
|
52
|
+
def test_closed_run_status_reads_only_a_closed_runs_409(status: int, body: Any, want: str | None) -> None:
|
|
53
|
+
assert closed_run_status(_response(status, body)) == want
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def _quiet(caplog: pytest.LogCaptureFixture) -> None:
|
|
57
|
+
loud = [r for r in caplog.records if r.levelno >= logging.WARNING]
|
|
58
|
+
assert loud == [], [r.getMessage() for r in loud]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def test_a_record_stream_stops_on_a_settled_run_without_retrying_or_warning(caplog: pytest.LogCaptureFixture) -> None:
|
|
62
|
+
calls: list[int] = []
|
|
63
|
+
|
|
64
|
+
def post(attempt: int, sequence: int, rows: list[dict[str, Any]]) -> int:
|
|
65
|
+
calls.append(sequence)
|
|
66
|
+
response = _response(409, _settled())
|
|
67
|
+
raise httpx.HTTPStatusError("settled", request=response.request, response=response)
|
|
68
|
+
|
|
69
|
+
with caplog.at_level(logging.DEBUG):
|
|
70
|
+
stream = RecordStream(post, attempt=0, next_sequence=0)
|
|
71
|
+
stream.append({"iteration_number": 1})
|
|
72
|
+
stream.append({"iteration_number": 2})
|
|
73
|
+
assert stream.flush(5) is False
|
|
74
|
+
stream.close(timeout=5)
|
|
75
|
+
|
|
76
|
+
assert calls == [0]
|
|
77
|
+
assert stream.stopped is not None and "cancelled" in stream.stopped
|
|
78
|
+
assert any(r.levelno == logging.INFO and "cancelled" in r.getMessage() for r in caplog.records)
|
|
79
|
+
_quiet(caplog)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@pytest.mark.parametrize("code", [["run_settled"], {"run_settled": 1}])
|
|
83
|
+
def test_a_record_stream_answered_with_a_non_string_code_keeps_its_sender(code: Any) -> None:
|
|
84
|
+
"""An odd 409 body is no closed-run answer and never kills the sender.
|
|
85
|
+
|
|
86
|
+
It is a refusal like any other 4xx: the row is dropped, and the sender goes on to
|
|
87
|
+
send the next one.
|
|
88
|
+
"""
|
|
89
|
+
sent: list[int] = []
|
|
90
|
+
|
|
91
|
+
def post(attempt: int, sequence: int, rows: list[dict[str, Any]]) -> int:
|
|
92
|
+
sent.append(sequence)
|
|
93
|
+
if len(sent) == 1:
|
|
94
|
+
response = _response(409, {"error": "x", "code": code, "status": "cancelled"})
|
|
95
|
+
raise httpx.HTTPStatusError("odd", request=response.request, response=response)
|
|
96
|
+
return sequence + len(rows)
|
|
97
|
+
|
|
98
|
+
stream = RecordStream(post, attempt=0, next_sequence=0)
|
|
99
|
+
stream.append({"iteration_number": 1})
|
|
100
|
+
assert stream.flush(5) is True
|
|
101
|
+
stream.append({"iteration_number": 2})
|
|
102
|
+
assert stream.flush(5) is True
|
|
103
|
+
assert stream.stopped is None and sent == [0, 0]
|
|
104
|
+
stream.close(timeout=5)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def test_a_sender_whose_answer_raises_marks_the_stream_stopped(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
108
|
+
"""Whatever applying an answer raises, the stream stops rather than leaving flush waiting."""
|
|
109
|
+
|
|
110
|
+
def broken(self: RecordStream, *args: Any) -> None:
|
|
111
|
+
raise RuntimeError("boom")
|
|
112
|
+
|
|
113
|
+
monkeypatch.setattr(RecordStream, "_answer", broken)
|
|
114
|
+
stream = RecordStream(lambda attempt, sequence, rows: sequence + len(rows), attempt=0, next_sequence=0)
|
|
115
|
+
stream.append({"iteration_number": 1})
|
|
116
|
+
assert stream.flush(5) is False
|
|
117
|
+
assert stream.stopped is not None and "boom" in stream.stopped
|
|
118
|
+
stream.close(timeout=5)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def test_a_record_streams_sequence_gap_still_resends_from_serves_count() -> None:
|
|
122
|
+
"""The gap's 409 carries no code, so the code branch leaves it alone."""
|
|
123
|
+
answers: list[int | dict[str, Any]] = [{"error": "gap", "expected_sequence": 0}]
|
|
124
|
+
sent: list[int] = []
|
|
125
|
+
|
|
126
|
+
def post(attempt: int, sequence: int, rows: list[dict[str, Any]]) -> int:
|
|
127
|
+
sent.append(sequence)
|
|
128
|
+
if answers:
|
|
129
|
+
response = _response(409, answers.pop())
|
|
130
|
+
raise httpx.HTTPStatusError("gap", request=response.request, response=response)
|
|
131
|
+
return sequence + len(rows)
|
|
132
|
+
|
|
133
|
+
stream = RecordStream(post, attempt=0, next_sequence=0)
|
|
134
|
+
stream.append({"iteration_number": 1})
|
|
135
|
+
assert stream.flush(5) is True
|
|
136
|
+
stream.close(timeout=5)
|
|
137
|
+
assert sent == [0, 0]
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
class _SettledServe:
|
|
141
|
+
"""Answers every progress PATCH 409 run_settled, counting them."""
|
|
142
|
+
|
|
143
|
+
def __init__(self) -> None:
|
|
144
|
+
self.requests: list[httpx.Request] = []
|
|
145
|
+
self._lock = threading.Lock()
|
|
146
|
+
|
|
147
|
+
def handler(self, request: httpx.Request) -> httpx.Response:
|
|
148
|
+
with self._lock:
|
|
149
|
+
self.requests.append(request)
|
|
150
|
+
return httpx.Response(409, json=_settled())
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def test_progress_to_a_settled_run_stops_without_retrying_or_warning(caplog: pytest.LogCaptureFixture) -> None:
|
|
154
|
+
serve = _SettledServe()
|
|
155
|
+
exporter = BatchExporter(
|
|
156
|
+
Config(api_key="test", endpoint="http://localhost:9999"), transport=httpx.MockTransport(serve.handler)
|
|
157
|
+
)
|
|
158
|
+
trk = OptimizationTracker(optimizer_type="GEPA", program_name="P")
|
|
159
|
+
trk.follow(IterationData(iteration=0, eval_scores=[0.5], eval_mean_score=0.5))
|
|
160
|
+
path = f"/api/v1/optimizations/{trk.optimization_run_id}/progress"
|
|
161
|
+
|
|
162
|
+
with caplog.at_level(logging.DEBUG):
|
|
163
|
+
exporter._flush_batch([ExportItem(item_type="optimization_progress", data=trk, timestamp=0.0)])
|
|
164
|
+
exporter._flush_batch([ExportItem(item_type="optimization_progress", data=trk, timestamp=0.0)])
|
|
165
|
+
|
|
166
|
+
assert [r.url.path for r in serve.requests] == [path], "a settled run's progress is sent once, then never"
|
|
167
|
+
assert exporter._error_count == 0
|
|
168
|
+
assert any(r.levelno == logging.INFO and "cancelled" in r.getMessage() for r in caplog.records)
|
|
169
|
+
_quiet(caplog)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def test_progress_for_a_settled_run_never_reaches_the_queue() -> None:
|
|
173
|
+
"""After the 409, a new update is skipped before it takes queue space or bytes."""
|
|
174
|
+
serve = _SettledServe()
|
|
175
|
+
exporter = BatchExporter(
|
|
176
|
+
Config(api_key="test", endpoint="http://localhost:9999"), transport=httpx.MockTransport(serve.handler)
|
|
177
|
+
)
|
|
178
|
+
trk = OptimizationTracker(optimizer_type="GEPA", program_name="P")
|
|
179
|
+
trk.follow(IterationData(iteration=0, eval_scores=[0.5], eval_mean_score=0.5))
|
|
180
|
+
exporter._flush_batch([ExportItem(item_type="optimization_progress", data=trk, timestamp=0.0)])
|
|
181
|
+
|
|
182
|
+
exporter.export_optimization_progress(trk)
|
|
183
|
+
|
|
184
|
+
assert exporter._detail_queue.qsize() == 0 and exporter._lifecycle_queue.qsize() == 0
|
|
185
|
+
assert exporter._bytes.held == 0
|
|
186
|
+
assert len(serve.requests) == 1
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def test_a_forked_child_never_waits_on_the_closed_run_lock_its_parent_held() -> None:
|
|
190
|
+
"""A fork while another thread held the lock leaves it held in the child for good.
|
|
191
|
+
|
|
192
|
+
The child rebuilds its own lock on its first use of the lane, before it closes the
|
|
193
|
+
run, so its settle reaches serve while the parent's lock is still held.
|
|
194
|
+
"""
|
|
195
|
+
import os
|
|
196
|
+
|
|
197
|
+
run_id = "op_abcdefghijkl"
|
|
198
|
+
parents = threading.Lock()
|
|
199
|
+
settles: list[bool] = [] # whether the parent's lock was held as each settle arrived
|
|
200
|
+
|
|
201
|
+
def handler(request: httpx.Request) -> httpx.Response:
|
|
202
|
+
if request.method == "PUT" and request.url.path == f"/api/v1/optimizations/{run_id}":
|
|
203
|
+
settles.append(parents.locked())
|
|
204
|
+
return httpx.Response(200, json={"optimization_run_id": run_id})
|
|
205
|
+
|
|
206
|
+
exporter = BatchExporter(
|
|
207
|
+
Config(api_key="test", endpoint="http://localhost:9999"), transport=httpx.MockTransport(handler)
|
|
208
|
+
)
|
|
209
|
+
trk = OptimizationTracker(optimizer_type="GEPA", program_name="P")
|
|
210
|
+
trk.optimization_run_id = run_id
|
|
211
|
+
exporter._closed_runs_lock = parents
|
|
212
|
+
parents.acquire() # the parent's other thread, at the fork
|
|
213
|
+
exporter._pid = os.getpid() - 1
|
|
214
|
+
|
|
215
|
+
settling = threading.Thread(target=exporter.export_optimization_complete, args=(trk,), daemon=True)
|
|
216
|
+
try:
|
|
217
|
+
settling.start()
|
|
218
|
+
settling.join(5.0)
|
|
219
|
+
assert not settling.is_alive(), "the child waited on its parent's held closed-run lock"
|
|
220
|
+
assert settles == [True], "the settle did not reach serve while the parent's lock was held"
|
|
221
|
+
assert exporter._closed_runs_lock is not parents
|
|
222
|
+
assert run_id in exporter._closed_runs
|
|
223
|
+
finally:
|
|
224
|
+
parents.release()
|
|
225
|
+
exporter.shutdown(timeout=2.0)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|