niceeval 0.13.1 → 0.13.2
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.
- package/INDEX.md +25 -2
- package/README.md +9 -10
- package/README.zh.md +9 -10
- package/dist/agents/ai-sdk.cjs.map +1 -1
- package/dist/agents/ai-sdk.d.cts +1 -1
- package/dist/agents/ai-sdk.d.mts +1 -1
- package/dist/agents/ai-sdk.d.ts +1 -1
- package/dist/agents/bub-install-spec.cjs +19 -5
- package/dist/agents/bub-install-spec.cjs.map +1 -1
- package/dist/agents/bub-install-spec.d.cts +9 -2
- package/dist/agents/bub-install-spec.d.mts +9 -2
- package/dist/agents/bub-install-spec.d.ts +9 -2
- package/dist/agents/bub-install-spec.js +14 -12
- package/dist/agents/bub.cjs +10 -6
- package/dist/agents/bub.cjs.map +1 -1
- package/dist/agents/bub.d.cts +2 -2
- package/dist/agents/bub.d.mts +2 -2
- package/dist/agents/bub.d.ts +2 -2
- package/dist/agents/claude-code.cjs.map +1 -1
- package/dist/agents/claude-code.d.cts +2 -2
- package/dist/agents/claude-code.d.mts +2 -2
- package/dist/agents/claude-code.d.ts +2 -2
- package/dist/agents/codex.cjs +4 -4
- package/dist/agents/codex.cjs.map +1 -1
- package/dist/agents/codex.d.cts +3 -3
- package/dist/agents/codex.d.mts +3 -3
- package/dist/agents/codex.d.ts +3 -3
- package/dist/agents/coding-cli-versions.cjs +10 -1
- package/dist/agents/coding-cli-versions.cjs.map +1 -1
- package/dist/agents/coding-cli-versions.d.cts +8 -3
- package/dist/agents/coding-cli-versions.d.mts +8 -3
- package/dist/agents/coding-cli-versions.d.ts +8 -3
- package/dist/agents/coding-cli-versions.js +18 -12
- package/dist/agents/deepseek-harness.cjs +151 -0
- package/dist/agents/deepseek-harness.cjs.map +1 -0
- package/dist/agents/deepseek-harness.d.cts +14 -0
- package/dist/agents/deepseek-harness.d.mts +14 -0
- package/dist/agents/deepseek-harness.d.ts +14 -0
- package/dist/agents/deepseek-harness.js +7 -0
- package/dist/agents/deepseek-harness.js.map +1 -0
- package/dist/agents/exact-npm-plugins.cjs +28 -0
- package/dist/agents/exact-npm-plugins.cjs.map +1 -0
- package/dist/agents/exact-npm-plugins.d.cts +10 -0
- package/dist/agents/exact-npm-plugins.d.mts +10 -0
- package/dist/agents/exact-npm-plugins.d.ts +10 -0
- package/dist/agents/exact-npm-plugins.js +8 -0
- package/dist/agents/exact-npm-plugins.js.map +1 -0
- package/dist/agents/index.cjs +5 -1
- package/dist/agents/index.cjs.map +1 -1
- package/dist/agents/index.d.cts +4 -0
- package/dist/agents/index.d.mts +4 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.js +54 -50
- package/dist/agents/index.mjs +54 -50
- package/dist/agents/omp.cjs +170 -0
- package/dist/agents/omp.cjs.map +1 -0
- package/dist/agents/omp.d.cts +14 -0
- package/dist/agents/omp.d.mts +14 -0
- package/dist/agents/omp.d.ts +14 -0
- package/dist/agents/omp.js +7 -0
- package/dist/agents/omp.js.map +1 -0
- package/dist/agents/openclaw.cjs +51 -2
- package/dist/agents/openclaw.cjs.map +1 -1
- package/dist/agents/openclaw.d.cts +2 -0
- package/dist/agents/openclaw.d.mts +2 -0
- package/dist/agents/openclaw.d.ts +2 -0
- package/dist/agents/types.cjs.map +1 -1
- package/dist/agents/types.d.cts +4 -4
- package/dist/agents/types.d.mts +4 -4
- package/dist/agents/types.d.ts +4 -4
- package/dist/agents/ui-message-stream.cjs +24 -7
- package/dist/agents/ui-message-stream.cjs.map +1 -1
- package/dist/analysis/api.cjs +28 -2
- package/dist/analysis/api.cjs.map +1 -1
- package/dist/analysis/api.d.cts +22 -1
- package/dist/analysis/api.d.mts +22 -1
- package/dist/analysis/api.d.ts +22 -1
- package/dist/analysis/api.js +8 -6
- package/dist/analysis/bindings.cjs +11 -18
- package/dist/analysis/bindings.cjs.map +1 -1
- package/dist/analysis/bindings.d.cts +177 -49
- package/dist/analysis/bindings.d.mts +177 -49
- package/dist/analysis/bindings.d.ts +177 -49
- package/dist/analysis/contracts.cjs +1 -0
- package/dist/analysis/contracts.cjs.map +1 -1
- package/dist/analysis/contracts.d.cts +43 -3
- package/dist/analysis/contracts.d.mts +43 -3
- package/dist/analysis/contracts.d.ts +43 -3
- package/dist/analysis/cost-projection.cjs +2 -1
- package/dist/analysis/cost-projection.cjs.map +1 -1
- package/dist/analysis/cost-projection.d.cts +1 -1
- package/dist/analysis/cost-projection.d.mts +1 -1
- package/dist/analysis/cost-projection.d.ts +1 -1
- package/dist/analysis/cost.cjs +13 -3
- package/dist/analysis/cost.cjs.map +1 -1
- package/dist/analysis/cost.d.cts +10 -3
- package/dist/analysis/cost.d.mts +10 -3
- package/dist/analysis/cost.d.ts +10 -3
- package/dist/analysis/experiment-groups.cjs +96 -0
- package/dist/analysis/experiment-groups.cjs.map +1 -0
- package/dist/analysis/experiment-groups.d.cts +9 -0
- package/dist/analysis/experiment-groups.d.mts +9 -0
- package/dist/analysis/experiment-groups.d.ts +9 -0
- package/dist/analysis/experiment-groups.js +10 -0
- package/dist/analysis/experiment-groups.js.map +1 -0
- package/dist/analysis/index.cjs +4 -1
- package/dist/analysis/index.cjs.map +1 -1
- package/dist/analysis/index.d.cts +4 -2
- package/dist/analysis/index.d.mts +4 -2
- package/dist/analysis/index.d.ts +4 -2
- package/dist/analysis/index.js +40 -36
- package/dist/analysis/index.mjs +40 -36
- package/dist/assertions/limits.cjs +4 -0
- package/dist/assertions/limits.cjs.map +1 -1
- package/dist/assertions/limits.d.cts +4 -0
- package/dist/assertions/limits.d.mts +4 -0
- package/dist/assertions/limits.d.ts +4 -0
- package/dist/assertions/match.cjs +63 -25
- package/dist/assertions/match.cjs.map +1 -1
- package/dist/assertions/match.d.cts +7 -0
- package/dist/assertions/match.d.mts +7 -0
- package/dist/assertions/match.d.ts +7 -0
- package/dist/assertions/record/attachment.cjs +32 -4
- package/dist/assertions/record/attachment.cjs.map +1 -1
- package/dist/assertions/record/diff.cjs +10 -4
- package/dist/assertions/record/diff.cjs.map +1 -1
- package/dist/assertions/record/producer.cjs +101 -4
- package/dist/assertions/record/producer.cjs.map +1 -1
- package/dist/assertions/record/producer.d.cts +4 -1
- package/dist/assertions/record/producer.d.mts +4 -1
- package/dist/assertions/record/producer.d.ts +4 -1
- package/dist/assertions/runtime.cjs +45 -5
- package/dist/assertions/runtime.cjs.map +1 -1
- package/dist/cli/record.cjs +113 -8
- package/dist/cli/record.cjs.map +1 -1
- package/dist/cli/record.d.cts +20 -1
- package/dist/cli/record.d.mts +20 -1
- package/dist/cli/record.d.ts +20 -1
- package/dist/cli/record.js +4 -2
- package/dist/cli.cjs +386 -31
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.d.cts +10 -2
- package/dist/cli.d.mts +10 -2
- package/dist/cli.d.ts +10 -2
- package/dist/context/send-retry.cjs +4 -4
- package/dist/context/send-retry.cjs.map +1 -1
- package/dist/coordination/host/runtime.cjs +8 -30
- package/dist/coordination/host/runtime.cjs.map +1 -1
- package/dist/coordination/host/runtime.d.cts +3 -3
- package/dist/coordination/host/runtime.d.mts +3 -3
- package/dist/coordination/host/runtime.d.ts +3 -3
- package/dist/coordination/host/types.cjs.map +1 -1
- package/dist/coordination/host/types.d.cts +0 -5
- package/dist/coordination/host/types.d.mts +0 -5
- package/dist/coordination/host/types.d.ts +0 -5
- package/dist/coordination/platform/node.cjs +90 -9
- package/dist/coordination/platform/node.cjs.map +1 -1
- package/dist/define.cjs +25 -1
- package/dist/define.cjs.map +1 -1
- package/dist/experiment/host/index.cjs +1 -0
- package/dist/experiment/host/index.cjs.map +1 -1
- package/dist/i18n/en.cjs +26 -8
- package/dist/i18n/en.cjs.map +1 -1
- package/dist/i18n/en.d.cts +19 -6
- package/dist/i18n/en.d.mts +19 -6
- package/dist/i18n/en.d.ts +19 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/o11y/parsers/hermes.cjs +1 -1
- package/dist/o11y/parsers/hermes.cjs.map +1 -1
- package/dist/o11y/prices.json +1 -1
- package/dist/o11y/record/families.cjs +12 -3
- package/dist/o11y/record/families.cjs.map +1 -1
- package/dist/o11y/record/families.d.cts +8 -8
- package/dist/o11y/record/families.d.mts +8 -8
- package/dist/o11y/record/families.d.ts +8 -8
- package/dist/o11y/record/family-projectors.d.cts +66 -18
- package/dist/o11y/record/family-projectors.d.mts +66 -18
- package/dist/o11y/record/family-projectors.d.ts +66 -18
- package/dist/o11y/record/family-writers.d.cts +11 -3
- package/dist/o11y/record/family-writers.d.mts +11 -3
- package/dist/o11y/record/family-writers.d.ts +11 -3
- package/dist/o11y/record/runner-producer.cjs +14 -4
- package/dist/o11y/record/runner-producer.cjs.map +1 -1
- package/dist/record/codec/core.d.cts +2 -2
- package/dist/record/codec/core.d.mts +2 -2
- package/dist/record/codec/core.d.ts +2 -2
- package/dist/record/family/catalog.d.cts +44 -12
- package/dist/record/family/catalog.d.mts +44 -12
- package/dist/record/family/catalog.d.ts +44 -12
- package/dist/record/family/index.js +128 -124
- package/dist/record/family/observability-v1.cjs +35 -0
- package/dist/record/family/observability-v1.cjs.map +1 -0
- package/dist/record/family/observability-v1.d.cts +3 -0
- package/dist/record/family/observability-v1.d.mts +3 -0
- package/dist/record/family/observability-v1.d.ts +3 -0
- package/dist/record/family/observability-v1.js +6 -0
- package/dist/record/family/observability-v1.js.map +1 -0
- package/dist/record/family/observability.cjs +58 -9
- package/dist/record/family/observability.cjs.map +1 -1
- package/dist/record/family/observability.d.cts +1014 -15
- package/dist/record/family/observability.d.mts +1014 -15
- package/dist/record/family/observability.d.ts +1014 -15
- package/dist/record/family/observability.js +22 -18
- package/dist/record/host/runtime.cjs +600 -31
- package/dist/record/host/runtime.cjs.map +1 -1
- package/dist/record/host/types.cjs.map +1 -1
- package/dist/record/host/types.d.cts +33 -9
- package/dist/record/host/types.d.mts +33 -9
- package/dist/record/host/types.d.ts +33 -9
- package/dist/record/maintenance/runtime.cjs +1 -2
- package/dist/record/maintenance/runtime.cjs.map +1 -1
- package/dist/record/model/core.cjs.map +1 -1
- package/dist/record/model/core.d.cts +1 -1
- package/dist/record/model/core.d.mts +1 -1
- package/dist/record/model/core.d.ts +1 -1
- package/dist/record/model/definition.d.cts +6 -6
- package/dist/record/model/definition.d.mts +6 -6
- package/dist/record/model/definition.d.ts +6 -6
- package/dist/record/model/identifiers.cjs +1 -1
- package/dist/record/model/identifiers.cjs.map +1 -1
- package/dist/record/model/identifiers.d.cts +1 -1
- package/dist/record/model/identifiers.d.mts +1 -1
- package/dist/record/model/identifiers.d.ts +1 -1
- package/dist/record/platform/node.cjs +159 -23
- package/dist/record/platform/node.cjs.map +1 -1
- package/dist/record/platform/services.cjs.map +1 -1
- package/dist/record/platform/services.d.cts +15 -2
- package/dist/record/platform/services.d.mts +15 -2
- package/dist/record/platform/services.d.ts +15 -2
- package/dist/record/reader/errors.cjs +37 -1
- package/dist/record/reader/errors.cjs.map +1 -1
- package/dist/record/reader/errors.d.cts +49 -1
- package/dist/record/reader/errors.d.mts +49 -1
- package/dist/record/reader/errors.d.ts +49 -1
- package/dist/record/reader/errors.js +22 -12
- package/dist/record/reader/format.cjs +76 -17
- package/dist/record/reader/format.cjs.map +1 -1
- package/dist/record/reader/format.d.cts +11 -4
- package/dist/record/reader/format.d.mts +11 -4
- package/dist/record/reader/format.d.ts +11 -4
- package/dist/record/reader/format.js +2 -0
- package/dist/record/reader/index.js +32 -18
- package/dist/record/reader/runtime.cjs +64 -0
- package/dist/record/reader/runtime.cjs.map +1 -1
- package/dist/record/reader/runtime.d.cts +15 -0
- package/dist/record/reader/runtime.d.mts +15 -0
- package/dist/record/reader/runtime.d.ts +15 -0
- package/dist/record/reader/runtime.js +2 -0
- package/dist/report/assets/styles.css +53 -29
- package/dist/report/built-in/analysis-values.cjs +21 -13
- package/dist/report/built-in/analysis-values.cjs.map +1 -1
- package/dist/report/built-in/analysis-values.d.cts +11 -22
- package/dist/report/built-in/analysis-values.d.mts +11 -22
- package/dist/report/built-in/analysis-values.d.ts +11 -22
- package/dist/report/built-in/analysis-values.js +4 -6
- package/dist/report/built-in/index.cjs +1 -3
- package/dist/report/built-in/index.cjs.map +1 -1
- package/dist/report/built-in/index.d.cts +1 -1
- package/dist/report/built-in/index.d.mts +1 -1
- package/dist/report/built-in/index.d.ts +1 -1
- package/dist/report/built-in/index.js +4 -8
- package/dist/report/built-in/index.mjs +4 -8
- package/dist/report/built-in/machine.cjs +0 -2
- package/dist/report/built-in/machine.cjs.map +1 -1
- package/dist/report/built-in/machine.d.cts +0 -2
- package/dist/report/built-in/machine.d.mts +0 -2
- package/dist/report/built-in/machine.d.ts +0 -2
- package/dist/report/built-in/result-components.cjs +49 -51
- package/dist/report/built-in/result-components.cjs.map +1 -1
- package/dist/report/built-in/result-components.d.cts +16 -17
- package/dist/report/built-in/result-components.d.mts +16 -17
- package/dist/report/built-in/result-components.d.ts +16 -17
- package/dist/report/built-in/result-components.js +0 -4
- package/dist/report/built-in/run-membership-overview.cjs +126 -17
- package/dist/report/built-in/run-membership-overview.cjs.map +1 -1
- package/dist/report/built-in/run-membership-overview.d.cts +14 -0
- package/dist/report/built-in/run-membership-overview.d.mts +14 -0
- package/dist/report/built-in/run-membership-overview.d.ts +14 -0
- package/dist/report/built-in/run-membership-overview.js +4 -2
- package/dist/report/built-in/standard.cjs +80 -45
- package/dist/report/built-in/standard.cjs.map +1 -1
- package/dist/report/built-in/standard.d.cts +19 -41
- package/dist/report/built-in/standard.d.mts +19 -41
- package/dist/report/built-in/standard.d.ts +19 -41
- package/dist/report/built-in/standard.js +6 -6
- package/dist/report/components/attempt-detail/compute.cjs +78 -2
- package/dist/report/components/attempt-detail/compute.cjs.map +1 -1
- package/dist/report/components/attempt-detail/compute.d.cts +1 -1
- package/dist/report/components/attempt-detail/compute.d.mts +1 -1
- package/dist/report/components/attempt-detail/compute.d.ts +1 -1
- package/dist/report/components/attempt-detail/content.cjs +1 -1
- package/dist/report/components/attempt-detail/content.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.cjs +42 -5
- package/dist/report/components/entity-lists/compute.cjs.map +1 -1
- package/dist/report/components/entity-lists/compute.d.cts +10 -8
- package/dist/report/components/entity-lists/compute.d.mts +10 -8
- package/dist/report/components/entity-lists/compute.d.ts +10 -8
- package/dist/report/components/entity-lists/content.cjs +31 -6
- package/dist/report/components/entity-lists/content.cjs.map +1 -1
- package/dist/report/components/entity-lists/index.cjs +9 -4
- package/dist/report/components/entity-lists/index.cjs.map +1 -1
- package/dist/report/components/entity-lists/index.d.cts +4 -7
- package/dist/report/components/entity-lists/index.d.mts +4 -7
- package/dist/report/components/entity-lists/index.d.ts +4 -7
- package/dist/report/components/summaries/compute.cjs +8 -1
- package/dist/report/components/summaries/compute.cjs.map +1 -1
- package/dist/report/components/summaries/compute.d.cts +9 -1
- package/dist/report/components/summaries/compute.d.mts +9 -1
- package/dist/report/components/summaries/compute.d.ts +9 -1
- package/dist/report/components/summaries/index.cjs +48 -4
- package/dist/report/components/summaries/index.cjs.map +1 -1
- package/dist/report/components/summaries/index.d.cts +7 -4
- package/dist/report/components/summaries/index.d.mts +7 -4
- package/dist/report/components/summaries/index.d.ts +7 -4
- package/dist/report/definition/cell.cjs +3 -0
- package/dist/report/definition/cell.cjs.map +1 -1
- package/dist/report/definition/cell.d.cts +2 -0
- package/dist/report/definition/cell.d.mts +2 -0
- package/dist/report/definition/cell.d.ts +2 -0
- package/dist/report/definition/primitives/chart.cjs +8 -5
- package/dist/report/definition/primitives/chart.cjs.map +1 -1
- package/dist/report/definition/primitives/points-dataset.cjs +1 -0
- package/dist/report/definition/primitives/points-dataset.cjs.map +1 -1
- package/dist/report/definition/primitives.cjs +15 -2
- package/dist/report/definition/primitives.cjs.map +1 -1
- package/dist/report/definition/report.cjs +27 -3
- package/dist/report/definition/report.cjs.map +1 -1
- package/dist/report/definition/report.d.cts +8 -0
- package/dist/report/definition/report.d.mts +8 -0
- package/dist/report/definition/report.d.ts +8 -0
- package/dist/report/execution/machine.cjs +30 -14
- package/dist/report/execution/machine.cjs.map +1 -1
- package/dist/report/execution/machine.d.cts +20 -10
- package/dist/report/execution/machine.d.mts +20 -10
- package/dist/report/execution/machine.d.ts +20 -10
- package/dist/report/execution/machine.js +6 -6
- package/dist/report/host/execute.cjs +25 -16
- package/dist/report/host/execute.cjs.map +1 -1
- package/dist/report/host/execute.d.cts +4 -0
- package/dist/report/host/execute.d.mts +4 -0
- package/dist/report/host/execute.d.ts +4 -0
- package/dist/report/host/from-record.cjs +22 -5
- package/dist/report/host/from-record.cjs.map +1 -1
- package/dist/report/host/machine.cjs +53 -11
- package/dist/report/host/machine.cjs.map +1 -1
- package/dist/report/host/site-runtime.cjs +9 -8
- package/dist/report/host/site-runtime.cjs.map +1 -1
- package/dist/report/host/site-runtime.d.cts +1 -1
- package/dist/report/host/site-runtime.d.mts +1 -1
- package/dist/report/host/site-runtime.d.ts +1 -1
- package/dist/report/host/static.cjs +56 -9
- package/dist/report/host/static.cjs.map +1 -1
- package/dist/report/index.cjs.map +1 -1
- package/dist/report/index.d.cts +1 -1
- package/dist/report/index.d.mts +1 -1
- package/dist/report/index.d.ts +1 -1
- package/dist/report/model/dataset.cjs +7 -2
- package/dist/report/model/dataset.cjs.map +1 -1
- package/dist/report/model/locale.cjs +2 -0
- package/dist/report/model/locale.cjs.map +1 -1
- package/dist/report/model/locale.d.cts +1 -0
- package/dist/report/model/locale.d.mts +1 -0
- package/dist/report/model/locale.d.ts +1 -0
- package/dist/report/model/metrics.cjs +3 -1
- package/dist/report/model/metrics.cjs.map +1 -1
- package/dist/report/model/pricing.cjs +16 -11
- package/dist/report/model/pricing.cjs.map +1 -1
- package/dist/report/react/styles.css +53 -29
- package/dist/runner/adoption.cjs +1 -0
- package/dist/runner/adoption.cjs.map +1 -1
- package/dist/runner/attempt.cjs +44 -5
- package/dist/runner/attempt.cjs.map +1 -1
- package/dist/runner/attempt.d.cts +13 -1
- package/dist/runner/attempt.d.mts +13 -1
- package/dist/runner/attempt.d.ts +13 -1
- package/dist/runner/config-identity.cjs +10 -2
- package/dist/runner/config-identity.cjs.map +1 -1
- package/dist/runner/config-identity.d.cts +4 -2
- package/dist/runner/config-identity.d.mts +4 -2
- package/dist/runner/config-identity.d.ts +4 -2
- package/dist/runner/feedback/human.cjs +298 -59
- package/dist/runner/feedback/human.cjs.map +1 -1
- package/dist/runner/feedback/json.cjs +14 -6
- package/dist/runner/feedback/json.cjs.map +1 -1
- package/dist/runner/feedback/json.d.cts +3 -2
- package/dist/runner/feedback/json.d.mts +3 -2
- package/dist/runner/feedback/json.d.ts +3 -2
- package/dist/runner/feedback/reducer.cjs +2 -0
- package/dist/runner/feedback/reducer.cjs.map +1 -1
- package/dist/runner/judge-config.cjs +1 -1
- package/dist/runner/judge-config.cjs.map +1 -1
- package/dist/runner/ledger.cjs +124 -12
- package/dist/runner/ledger.cjs.map +1 -1
- package/dist/runner/project-current.cjs +13 -5
- package/dist/runner/project-current.cjs.map +1 -1
- package/dist/runner/run.cjs +564 -256
- package/dist/runner/run.cjs.map +1 -1
- package/dist/runner/sandbox-pool.cjs +161 -30
- package/dist/runner/sandbox-pool.cjs.map +1 -1
- package/dist/runner/sandbox-pool.d.cts +34 -2
- package/dist/runner/sandbox-pool.d.mts +34 -2
- package/dist/runner/sandbox-pool.d.ts +34 -2
- package/dist/runner/shared-state-lease.cjs +803 -0
- package/dist/runner/shared-state-lease.cjs.map +1 -0
- package/dist/runner/shared-state-lease.d.cts +121 -0
- package/dist/runner/shared-state-lease.d.mts +121 -0
- package/dist/runner/shared-state-lease.d.ts +121 -0
- package/dist/runner/shared-state-lease.js +24 -0
- package/dist/runner/shared-state-lease.js.map +1 -0
- package/dist/runner/teardown-registry.cjs +97 -34
- package/dist/runner/teardown-registry.cjs.map +1 -1
- package/dist/runner/teardown-registry.d.cts +27 -1
- package/dist/runner/teardown-registry.d.mts +27 -1
- package/dist/runner/teardown-registry.d.ts +27 -1
- package/dist/runner/teardown-registry.js +20 -16
- package/dist/runner/types.cjs.map +1 -1
- package/dist/runner/types.d.cts +31 -5
- package/dist/runner/types.d.mts +31 -5
- package/dist/runner/types.d.ts +31 -5
- package/dist/sample/analysis.cjs +249 -459
- package/dist/sample/analysis.cjs.map +1 -1
- package/dist/sample/capability.cjs +138 -7
- package/dist/sample/capability.cjs.map +1 -1
- package/dist/sample/capability.d.cts +3 -1
- package/dist/sample/capability.d.mts +3 -1
- package/dist/sample/capability.d.ts +3 -1
- package/dist/sample/capability.js +8 -6
- package/dist/sandbox/docker-agent-image.cjs +5 -1
- package/dist/sandbox/docker-agent-image.cjs.map +1 -1
- package/dist/sandbox/docker-agent-image.d.cts +2 -0
- package/dist/sandbox/docker-agent-image.d.mts +2 -0
- package/dist/sandbox/docker-agent-image.d.ts +2 -0
- package/dist/sandbox/docker-agent-image.js +14 -10
- package/dist/sandbox/docker-profile/schema.cjs +283 -534
- package/dist/sandbox/docker-profile/schema.cjs.map +1 -1
- package/dist/sandbox/docker-profile/schema.d.cts +10 -27
- package/dist/sandbox/docker-profile/schema.d.mts +10 -27
- package/dist/sandbox/docker-profile/schema.d.ts +10 -27
- package/dist/sandbox/e2b-agent-template.cjs +5 -2
- package/dist/sandbox/e2b-agent-template.cjs.map +1 -1
- package/dist/sandbox/index.cjs +4 -2
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +1 -1
- package/dist/sandbox/index.d.mts +1 -1
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +120 -116
- package/dist/sandbox/index.mjs +120 -116
- package/dist/sandbox/keep-registry.cjs +28 -66
- package/dist/sandbox/keep-registry.cjs.map +1 -1
- package/dist/sandbox/types.cjs.map +1 -1
- package/dist/sandbox/types.d.cts +1 -1
- package/dist/sandbox/types.d.mts +1 -1
- package/dist/sandbox/types.d.ts +1 -1
- package/dist/shared/aggregate.cjs +16 -6
- package/dist/shared/aggregate.cjs.map +1 -1
- package/dist/shared/aggregate.d.cts +12 -4
- package/dist/shared/aggregate.d.mts +12 -4
- package/dist/shared/aggregate.d.ts +12 -4
- package/dist/shared/turn-label.cjs +20 -2
- package/dist/shared/turn-label.cjs.map +1 -1
- package/dist/shared/turn-label.d.cts +2 -0
- package/dist/shared/turn-label.d.mts +2 -0
- package/dist/shared/turn-label.d.ts +2 -0
- package/dist/shared/turn-label.js +4 -2
- package/dist/vendor/remark/remark-gfm.cjs +7 -7
- package/dist/vendor/remark/remark-gfm.cjs.map +1 -1
- package/dist/vendor/remark/remark-parse.cjs +12 -12
- package/dist/vendor/remark/remark-parse.cjs.map +1 -1
- package/dist/vendor/remark/remark.cjs +13 -13
- package/dist/vendor/remark/remark.cjs.map +1 -1
- package/dist/view/server.cjs +6 -0
- package/dist/view/server.cjs.map +1 -1
- package/docs-site/images/hitl-handshake-zh.svg +3 -3
- package/docs-site/zh/examples/ai-agent-application.mdx +1 -1
- package/docs-site/zh/examples/coding-agent-extensions.mdx +1 -1
- package/docs-site/zh/examples/integrations/ai-sdk-v7.mdx +4 -3
- package/docs-site/zh/examples/integrations/claude-sdk.mdx +3 -3
- package/docs-site/zh/examples/integrations/codex-sdk.mdx +5 -5
- package/docs-site/zh/examples/integrations/langgraph.mdx +4 -4
- package/docs-site/zh/examples/integrations/pi-sdk.mdx +5 -5
- package/docs-site/zh/explanation/adapter.mdx +5 -5
- package/docs-site/zh/explanation/assert.mdx +7 -7
- package/docs-site/zh/explanation/drive.mdx +4 -2
- package/docs-site/zh/explanation/evals.mdx +10 -8
- package/docs-site/zh/explanation/experiment.mdx +2 -2
- package/docs-site/zh/explanation/hitl.mdx +9 -9
- package/docs-site/zh/explanation/judge.mdx +5 -5
- package/docs-site/zh/explanation/overview.mdx +3 -3
- package/docs-site/zh/explanation/runner.mdx +1 -1
- package/docs-site/zh/index.mdx +3 -3
- package/docs-site/zh/reference/builtin-agents.mdx +13 -13
- package/docs-site/zh/reference/capabilities.mdx +1 -1
- package/docs-site/zh/reference/cli.mdx +18 -12
- package/docs-site/zh/reference/define-agent.mdx +130 -5
- package/docs-site/zh/reference/define-config.mdx +2 -2
- package/docs-site/zh/reference/define-eval.mdx +4 -4
- package/docs-site/zh/reference/events.mdx +11 -11
- package/docs-site/zh/reference/official-adapters.mdx +6 -6
- package/docs-site/zh/reference/results-data.mdx +6 -0
- package/docs-site/zh/troubleshooting/debugging.mdx +1 -1
- package/docs-site/zh/troubleshooting/recover-after-kill.mdx +37 -5
- package/docs-site/zh/tutorials/accept-results.mdx +72 -0
- package/docs-site/zh/tutorials/agent-onboarding.mdx +6 -6
- package/docs-site/zh/tutorials/authoring.mdx +9 -13
- package/docs-site/zh/tutorials/ci-integration.mdx +6 -6
- package/docs-site/zh/tutorials/compare-runs.mdx +61 -0
- package/docs-site/zh/tutorials/concurrency.mdx +13 -12
- package/docs-site/zh/tutorials/configuration.mdx +4 -6
- package/docs-site/zh/tutorials/connect-your-agent.mdx +1 -1
- package/docs-site/zh/tutorials/control-run-cost.mdx +58 -0
- package/docs-site/zh/tutorials/criteria-files.mdx +2 -2
- package/docs-site/zh/tutorials/custom-reports.mdx +2 -2
- package/docs-site/zh/tutorials/debug-lifecycle-plan.mdx +46 -0
- package/docs-site/zh/tutorials/docker-in-docker.mdx +52 -43
- package/docs-site/zh/tutorials/eval-groups.mdx +6 -6
- package/docs-site/zh/tutorials/evaluation-kinds.mdx +3 -3
- package/docs-site/zh/tutorials/experiments.mdx +2 -3
- package/docs-site/zh/tutorials/handle-execution-failures.mdx +18 -10
- package/docs-site/zh/tutorials/install-custom-sandbox-agent.mdx +16 -8
- package/docs-site/zh/tutorials/nixos-managed-dind.mdx +160 -0
- package/docs-site/zh/tutorials/plugins.mdx +14 -0
- package/docs-site/zh/tutorials/rerun-and-cache.mdx +4 -2
- package/docs-site/zh/tutorials/sandbox-agent.mdx +17 -11
- package/docs-site/zh/tutorials/sandbox-providers.mdx +17 -13
- package/docs-site/zh/tutorials/sandbox-reuse.mdx +12 -19
- package/docs-site/zh/tutorials/select-and-preview.mdx +65 -0
- package/docs-site/zh/tutorials/verify-judge.mdx +78 -0
- package/docs-site/zh/tutorials/viewing-results.mdx +38 -1
- package/docs-site/zh/tutorials/write-experiment.mdx +7 -5
- package/docs-site/zh/tutorials/write-send.mdx +9 -8
- package/package.json +9 -5
- package/dist/report/built-in/overview.cjs +0 -44
- package/dist/report/built-in/overview.cjs.map +0 -1
- package/dist/report/built-in/overview.d.cts +0 -6
- package/dist/report/built-in/overview.d.mts +0 -6
- package/dist/report/built-in/overview.d.ts +0 -6
- package/dist/report/built-in/overview.js +0 -9
- package/dist/report/built-in/overview.js.map +0 -1
- package/dist/runner/gate-lease.cjs +0 -283
- package/dist/runner/gate-lease.cjs.map +0 -1
- package/dist/runner/gate-lease.d.cts +0 -62
- package/dist/runner/gate-lease.d.mts +0 -62
- package/dist/runner/gate-lease.d.ts +0 -62
- package/dist/runner/gate-lease.js +0 -22
- package/dist/runner/gate-lease.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["pricing.ts"],"names":[],"mappings":";;;AA2BA,wEAYC;AAMD,oEAmBC;AAKD,wEAiCC;AAMD,8CAWC;AA9GD,oDAA+D;AAC/D,2CAAiF;AACjF,6CAA6C;AAC7C,iEAAiE;AACpD,QAAA,4BAA4B,GAAkB,MAAM,CAAC,MAAM,CAAC;IACrE,EAAE,EAAE,mEAAmE;IACvE,OAAO,EAAE,+BAA+B;CAC3C,CAAC,CAAC;AACH,uEAAuE;AAC1D,QAAA,4BAA4B,GAAkB,MAAM,CAAC,MAAM,CAAC;IACrE,EAAE,EAAE,uFAAuF;IAC3F,OAAO,EAAE,wCAAwC;CACpD,CAAC,CAAC;AAKH,4EAA4E;AAC5E,SAAgB,8BAA8B,CAAC,IAAqB,EAAE,MAAoB;IACtF,QAAQ,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QAC5B,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS;YACV,OAAO,IAAI,IAAI,CAAC,UAAU,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UAAU,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;AACjF,CAAC;AACD,SAAS,SAAS,CAAC,KAGlB;IACG,OAAO,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;AAC/C,CAAC;AACD,SAAS,eAAe,CAAC,UAA+B,EAAE,MAAoB;IAC1E,QAAQ,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QAChC,KAAK,MAAM;YACP,OAAO,IAAA,sBAAU,EAAC,MAAM,EAAE,wCAAwC,CAAC,CAAC;QACxE,KAAK,OAAO;YACR,OAAO,IAAA,sBAAU,EAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;QAC/D;YACI,OAAO,IAAA,sBAAU,EAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IAC/D,CAAC;AACL,CAAC","sourcesContent":["/**\n * Report's one-way view of Analysis-owned cost projections.\n *\n * Pricing, decimal arithmetic, display rounding, and projection construction\n * all belong to Analysis. This module only reads the already-closed\n * `CostMetricValue.projection` carried by the same metric cell that supplies\n * the ordinary numeric axis value.\n */\nimport type { CostMetricValue, CostProjectionValue, } from \"../../analysis/index.ts\";\nimport { isCostProjectionValue } from \"../../analysis/cost.ts\";\nimport { localeText, type LocalizedText, type ReportLocale, } from \"./locale.ts\";\nimport { isMetricValue } from \"./metrics.ts\";\n/** Exact no-profile copy for the official total-cost summary. */\nexport const COST_SUMMARY_NO_PROFILE_TEXT: LocalizedText = Object.freeze({\n en: \"Cost unavailable — this report does not declare a PricingProfile.\",\n \"zh-CN\": \"成本不可用——此报告未声明 PricingProfile。\",\n});\n/** Exact no-profile copy for the official cost × pass-rate scatter. */\nexport const COST_SCATTER_NO_PROFILE_TEXT: LocalizedText = Object.freeze({\n en: \"Cost × pass rate scatter unavailable — this report does not declare a PricingProfile.\",\n \"zh-CN\": \"成本 × 通过率散点图不可用——此报告未声明 PricingProfile。\",\n});\nexport interface CostProjectionCellText {\n readonly text: string;\n readonly detail?: string;\n}\n/** Compact table-cell amount copied from the Analysis-closed projection. */\nexport function formatCostProjectionAmountText(cell: CostMetricValue, locale: ReportLocale): string {\n switch (cell.projection.state) {\n case \"available\":\n case \"partial\":\n return `$${cell.projection.combined.amount}`;\n case \"unavailable\":\n return localeText(locale, \"costProjection.unavailable\");\n default: {\n const exhaustive: never = cell.projection;\n return exhaustive;\n }\n }\n}\n/**\n * Produces a compact display from the closed projection. Amount strings pass\n * through verbatim: Report deliberately does not parse, round, or otherwise\n * re-compute Analysis's canonical decimal values.\n */\nexport function formatCostProjectionCellText(cell: CostMetricValue, locale: ReportLocale): CostProjectionCellText {\n const projection = cell.projection;\n if (projection.state === \"unavailable\" || projection.combined === null) {\n return Object.freeze({\n text: localeText(locale, \"costProjection.unavailable\"),\n detail: formatCostProjectionCellDetail(cell, locale),\n });\n }\n const parts = [\n `${knownValueLabel(projection, locale)} ${moneyText(projection.combined)}`,\n localeText(locale, `costProjection.basis.${projection.basis}`),\n ];\n if (projection.state === \"partial\") {\n parts.push(localeText(locale, \"costProjection.state.partial\"));\n }\n return Object.freeze({\n text: parts.join(\" · \"),\n detail: formatCostProjectionCellDetail(cell, locale),\n });\n}\n/**\n * Preserves the closed ledger summary in text form. This is presentation only:\n * all values are copied directly from `cell.projection`.\n */\nexport function formatCostProjectionCellDetail(cell: CostMetricValue, locale: ReportLocale): string {\n const projection = cell.projection;\n const lines: string[] = [];\n lines.push(localeText(locale, \"costProjection.profile\", {\n identity: projection.profile.contentIdentity,\n currency: projection.profile.currency,\n decimals: projection.profile.display.decimalPlaces,\n }));\n lines.push(localeText(locale, \"costProjection.provenance\", {\n source: projection.profile.provenance.source,\n asOf: projection.profile.provenance.asOf,\n }));\n if (projection.observed !== null) {\n lines.push(`${localeText(locale, \"costProjection.providerObserved\").padEnd(20)} ${moneyText(projection.observed)}`);\n }\n if (projection.estimated !== null) {\n lines.push(`${localeText(locale, \"costProjection.profileEstimated\").padEnd(20)} ${moneyText(projection.estimated)}`);\n }\n if (projection.combined !== null) {\n lines.push(`${knownValueLabel(projection, locale).padEnd(28)} ${moneyText(projection.combined)} · ` +\n localeText(locale, \"costProjection.coverage\", { samples: cell.samples, total: cell.total }));\n }\n for (const entry of projection.observedOtherCurrencies) {\n lines.push(`${localeText(locale, \"costProjection.observedElsewhere\").padEnd(20)} ${entry.currency} ${entry.amount} · ` +\n localeText(locale, \"costProjection.notConverted\"));\n }\n for (const reason of projection.reasons) {\n lines.push(localeText(locale, \"costProjection.reason\", {\n provider: reason.provider ?? \"\",\n code: reason.code,\n }));\n }\n return lines.join(\"\\n\");\n}\n/**\n * Runtime narrowing for an Analysis-issued cost cell. Analysis owns the deep\n * projection guard; Report verifies only the normal MetricValue shell and its\n * required cost presentation fields.\n */\nexport function isCostMetricValue(value: unknown): value is CostMetricValue {\n if (!isMetricValue(value) || !Object.hasOwn(value, \"projection\"))\n return false;\n if (value.format !== \"currency-usd\" || value.better !== \"lower\")\n return false;\n const projection = (value as {\n readonly projection?: unknown;\n }).projection;\n // The Host's machine boundary additionally matches this identity against\n // the captured cost measure entry before a projection leaves the Report.\n return isCostProjectionValue(projection) && projection.state === value.state;\n}\nfunction moneyText(value: {\n readonly currency: string;\n readonly amount: string;\n}): string {\n return `${value.currency} ${value.amount}`;\n}\nfunction knownValueLabel(projection: CostProjectionValue, locale: ReportLocale): string {\n switch (projection.aggregate.kind) {\n case \"mean\":\n return localeText(locale, \"costProjection.meanPerContributingSlot\");\n case \"total\":\n return localeText(locale, \"costProjection.totalKnownCost\");\n default:\n return localeText(locale, \"costProjection.knownValue\");\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["pricing.ts"],"names":[],"mappings":";;;AA2BA,wEAcC;AAMD,oEAgBC;AAKD,wEAiCC;AAMD,8CAiBC;AAnHD,oDAA+D;AAC/D,2CAAiF;AACjF,6CAA6C;AAC7C,iEAAiE;AACpD,QAAA,4BAA4B,GAAkB,MAAM,CAAC,MAAM,CAAC;IACr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AACL,CAAC","sourcesContent":["/**\n * Report's one-way view of Analysis-owned cost projections.\n *\n * Pricing, decimal arithmetic, display rounding, and projection construction\n * all belong to Analysis. This module only reads the already-closed\n * `CostMetricValue.projection` carried by the same metric cell that supplies\n * the ordinary numeric axis value.\n */\nimport type { CostMetricValue, CostProjectionValue, } from \"../../analysis/index.ts\";\nimport { isCostProjectionValue } from \"../../analysis/cost.ts\";\nimport { localeText, type LocalizedText, type ReportLocale, } from \"./locale.ts\";\nimport { isMetricValue } from \"./metrics.ts\";\n/** Exact no-profile copy for the official total-cost summary. */\nexport const COST_SUMMARY_NO_PROFILE_TEXT: LocalizedText = Object.freeze({\n en: \"Cost unavailable — this report does not declare a PricingProfile.\",\n \"zh-CN\": \"成本不可用——此报告未声明 PricingProfile。\",\n});\n/** Exact no-profile copy for the official cost × pass-rate scatter. */\nexport const COST_SCATTER_NO_PROFILE_TEXT: LocalizedText = Object.freeze({\n en: \"Cost × pass rate scatter unavailable — this report does not declare a PricingProfile.\",\n \"zh-CN\": \"成本 × 通过率散点图不可用——此报告未声明 PricingProfile。\",\n});\nexport interface CostProjectionCellText {\n readonly text: string;\n readonly detail?: string;\n}\n/** Compact table-cell amount copied from the Analysis-closed projection. */\nexport function formatCostProjectionAmountText(cell: CostMetricValue, locale: ReportLocale): string {\n switch (cell.projection.state) {\n case \"available\":\n case \"partial\":\n return `$${cell.projection.combined.amount}`;\n case \"unavailable\":\n return localeText(locale, \"costProjection.unavailable\");\n case \"migration-required\":\n return localeText(locale, \"costProjection.migrationRequired\");\n default: {\n const exhaustive: never = cell.projection;\n return exhaustive;\n }\n }\n}\n/**\n * Produces a compact display from the closed projection. Amount strings pass\n * through verbatim: Report deliberately does not parse, round, or otherwise\n * re-compute Analysis's canonical decimal values.\n */\nexport function formatCostProjectionCellText(cell: CostMetricValue, locale: ReportLocale): CostProjectionCellText {\n const projection = cell.projection;\n if (projection.state === \"migration-required\") {\n return Object.freeze({\n text: localeText(locale, \"costProjection.migrationRequired\"),\n detail: formatCostProjectionCellDetail(cell, locale),\n });\n }\n if (projection.state === \"unavailable\" || projection.combined === null) {\n return Object.freeze({\n text: localeText(locale, \"costProjection.unavailable\"),\n });\n }\n return Object.freeze({\n text: moneyText(projection.combined),\n });\n}\n/**\n * Preserves the closed ledger summary in text form. This is presentation only:\n * all values are copied directly from `cell.projection`.\n */\nexport function formatCostProjectionCellDetail(cell: CostMetricValue, locale: ReportLocale): string {\n const projection = cell.projection;\n const lines: string[] = [];\n lines.push(localeText(locale, \"costProjection.profile\", {\n identity: projection.profile.contentIdentity,\n currency: projection.profile.currency,\n decimals: projection.profile.display.decimalPlaces,\n }));\n lines.push(localeText(locale, \"costProjection.provenance\", {\n source: projection.profile.provenance.source,\n asOf: projection.profile.provenance.asOf,\n }));\n if (projection.observed !== null) {\n lines.push(`${localeText(locale, \"costProjection.providerObserved\").padEnd(20)} ${moneyText(projection.observed)}`);\n }\n if (projection.estimated !== null) {\n lines.push(`${localeText(locale, \"costProjection.profileEstimated\").padEnd(20)} ${moneyText(projection.estimated)}`);\n }\n if (projection.combined !== null) {\n lines.push(`${knownValueLabel(projection, locale).padEnd(28)} ${moneyText(projection.combined)} · ` +\n localeText(locale, \"costProjection.coverage\", { samples: cell.samples, total: cell.total }));\n }\n for (const entry of projection.observedOtherCurrencies) {\n lines.push(`${localeText(locale, \"costProjection.observedElsewhere\").padEnd(20)} ${entry.currency} ${entry.amount} · ` +\n localeText(locale, \"costProjection.notConverted\"));\n }\n for (const reason of projection.reasons) {\n lines.push(localeText(locale, \"costProjection.reason\", {\n provider: reason.provider ?? \"\",\n code: reason.code,\n }));\n }\n return lines.join(\"\\n\");\n}\n/**\n * Runtime narrowing for an Analysis-issued cost cell. Analysis owns the deep\n * projection guard; Report verifies only the normal MetricValue shell and its\n * required cost presentation fields.\n */\nexport function isCostMetricValue(value: unknown): value is CostMetricValue {\n if (!isMetricValue(value) || !Object.hasOwn(value, \"projection\"))\n return false;\n if (value.format !== \"currency-usd\" || value.better !== \"lower\")\n return false;\n const projection = (value as {\n readonly projection?: unknown;\n }).projection;\n // The Host's machine boundary additionally matches this identity against\n // the captured cost measure entry before a projection leaves the Report.\n if (!isCostProjectionValue(projection) || projection.state !== value.state)\n return false;\n if (projection.state === \"migration-required\") {\n const slots = new Set(projection.ledger.map((entry) => `${entry.slot.runId}\\u0000${entry.slot.slotId}`));\n return value.samples === 0 && value.total > 0 && slots.size === value.total;\n }\n return true;\n}\nfunction moneyText(value: {\n readonly currency: string;\n readonly amount: string;\n}): string {\n return `${value.currency} ${value.amount}`;\n}\nfunction knownValueLabel(projection: CostProjectionValue, locale: ReportLocale): string {\n switch (projection.aggregate.kind) {\n case \"mean\":\n return localeText(locale, \"costProjection.meanPerContributingSlot\");\n case \"total\":\n return localeText(locale, \"costProjection.totalKnownCost\");\n default:\n return localeText(locale, \"costProjection.knownValue\");\n }\n}\n"]}
|
|
@@ -2456,9 +2456,9 @@ html.niceeval-view-document body {
|
|
|
2456
2456
|
position: sticky;
|
|
2457
2457
|
top: 0;
|
|
2458
2458
|
z-index: 10;
|
|
2459
|
-
display:
|
|
2459
|
+
display: grid;
|
|
2460
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
2460
2461
|
align-items: center;
|
|
2461
|
-
justify-content: space-between;
|
|
2462
2462
|
gap: 28px;
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
@@ -2470,6 +2470,7 @@ html.niceeval-view-document body {
|
|
|
2470
2470
|
|
|
2471
2471
|
.niceeval-view-brand {
|
|
2472
2472
|
display: flex;
|
|
2473
|
+
justify-self: start;
|
|
2473
2474
|
flex: 0 0 auto;
|
|
2474
2475
|
align-items: baseline;
|
|
2475
2476
|
gap: 12px;
|
|
@@ -2477,6 +2478,20 @@ html.niceeval-view-document body {
|
|
|
2477
2478
|
font-weight: 690;
|
|
2478
2479
|
}
|
|
2479
2480
|
|
|
2481
|
+
.niceeval-view-pages {
|
|
2482
|
+
display: flex;
|
|
2483
|
+
min-width: 0;
|
|
2484
|
+
justify-self: center;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
.niceeval-view-controls {
|
|
2488
|
+
display: flex;
|
|
2489
|
+
min-width: 0;
|
|
2490
|
+
align-items: center;
|
|
2491
|
+
justify-self: end;
|
|
2492
|
+
gap: 12px;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2480
2495
|
.niceeval-view-mark {
|
|
2481
2496
|
display: inline-block;
|
|
2482
2497
|
width: 18px;
|
|
@@ -2516,40 +2531,42 @@ html.niceeval-view-document body {
|
|
|
2516
2531
|
|
|
2517
2532
|
.niceeval-view-nav a[aria-current="page"] { font-weight: 560; }
|
|
2518
2533
|
|
|
2519
|
-
.niceeval-view-
|
|
2520
|
-
|
|
2521
|
-
|
|
2534
|
+
.niceeval-view-experiment {
|
|
2535
|
+
min-width: 0;
|
|
2536
|
+
color: var(--niceeval-color-text-secondary, #a1a1aa);
|
|
2537
|
+
font-size: 12px;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.niceeval-view-experiment label {
|
|
2541
|
+
display: flex;
|
|
2522
2542
|
align-items: center;
|
|
2523
|
-
|
|
2543
|
+
gap: 8px;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.niceeval-view-experiment select,
|
|
2547
|
+
.niceeval-view-language select {
|
|
2548
|
+
min-width: 132px;
|
|
2549
|
+
height: 32px;
|
|
2524
2550
|
border: 1px solid var(--niceeval-color-border, #262626);
|
|
2525
2551
|
border-radius: var(--niceeval-radius, 0);
|
|
2552
|
+
padding: 0 28px 0 10px;
|
|
2553
|
+
color: var(--niceeval-color-text, #ededed);
|
|
2526
2554
|
background: var(--niceeval-color-surface, #0b0b0b);
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
.niceeval-view-locale button {
|
|
2530
|
-
height: 30px;
|
|
2531
|
-
min-width: 44px;
|
|
2532
|
-
border: 0;
|
|
2533
|
-
border-right: 1px solid var(--niceeval-color-border, #262626);
|
|
2534
|
-
padding: 0;
|
|
2535
|
-
color: var(--niceeval-color-text-secondary, #a1a1aa);
|
|
2536
|
-
background: transparent;
|
|
2537
2555
|
font: inherit;
|
|
2538
|
-
font-size:
|
|
2539
|
-
line-height: 1;
|
|
2556
|
+
font-size: 14px;
|
|
2540
2557
|
cursor: pointer;
|
|
2541
2558
|
}
|
|
2542
2559
|
|
|
2543
|
-
.niceeval-view-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
color: var(--niceeval-color-text, #ededed);
|
|
2547
|
-
background: var(--niceeval-color-surface-subtle, #111111);
|
|
2548
|
-
font-weight: 620;
|
|
2560
|
+
.niceeval-view-language {
|
|
2561
|
+
display: block;
|
|
2562
|
+
flex: 0 0 auto;
|
|
2549
2563
|
}
|
|
2550
2564
|
|
|
2565
|
+
.niceeval-view-language select { min-width: 76px; }
|
|
2566
|
+
|
|
2551
2567
|
.niceeval-view-nav a:focus-visible,
|
|
2552
|
-
.niceeval-view-
|
|
2568
|
+
.niceeval-view-experiment select:focus-visible,
|
|
2569
|
+
.niceeval-view-language select:focus-visible,
|
|
2553
2570
|
.niceeval-view-brand:focus-visible {
|
|
2554
2571
|
outline: 1px solid var(--niceeval-color-focus, #cbd6dc);
|
|
2555
2572
|
outline-offset: 2px;
|
|
@@ -2665,14 +2682,21 @@ html.niceeval-view-document body {
|
|
|
2665
2682
|
[data-niceeval-locale][hidden] { display: none !important; }
|
|
2666
2683
|
|
|
2667
2684
|
@media (max-width: 760px) {
|
|
2668
|
-
.niceeval-view-shell {
|
|
2669
|
-
|
|
2670
|
-
|
|
2685
|
+
.niceeval-view-shell {
|
|
2686
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
2687
|
+
padding: 0 20px;
|
|
2688
|
+
}
|
|
2689
|
+
.niceeval-view-pages { display: none; }
|
|
2690
|
+
.niceeval-view-controls { grid-column: 2; }
|
|
2691
|
+
.niceeval-view-experiment noscript .niceeval-view-nav { display: none; }
|
|
2692
|
+
.niceeval-view-experiment label > span { display: none; }
|
|
2693
|
+
.niceeval-view-experiment select { min-width: 108px; }
|
|
2694
|
+
.niceeval-view-language select { min-width: 68px; }
|
|
2671
2695
|
.niceeval-view-main { width: min(calc(100vw - 28px), 1120px); padding-top: 42px; }
|
|
2672
2696
|
}
|
|
2673
2697
|
|
|
2674
2698
|
@media print {
|
|
2675
2699
|
.niceeval-view-shell { position: static; }
|
|
2676
|
-
.niceeval-view-
|
|
2700
|
+
.niceeval-view-controls { display: none; }
|
|
2677
2701
|
.niceeval-view-main { width: auto; padding: 0; }
|
|
2678
2702
|
}
|
package/dist/runner/adoption.cjs
CHANGED
|
@@ -123,6 +123,7 @@ function runForExperiment(experiment, selectedEvalIds) {
|
|
|
123
123
|
earlyExit: experiment.earlyExit,
|
|
124
124
|
...(experiment.sandbox === undefined ? {} : { sandbox: experiment.sandbox }),
|
|
125
125
|
sandboxReuse: experiment.sandboxReuse,
|
|
126
|
+
...(experiment.sharedState === undefined ? {} : { sharedState: experiment.sharedState }),
|
|
126
127
|
...(experiment.judge === undefined ? {} : { judge: experiment.judge }),
|
|
127
128
|
...(0, timeout_ts_1.resolveRunTimeout)(undefined, experiment.timeoutMs),
|
|
128
129
|
...(experiment.budget === undefined ? {} : { budget: experiment.budget }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["adoption.ts"],"names":[],"mappings":";;;AAsJA,kEAMC;AAED,gDAMC;AAED,kDAmBC;AAmGD,oEA2HC;AAKD,sEAqBC;AAED,wDAyCC;AAMD,4DAwBC;AACD,kDAEC;AAKD,sEAiBC;AAyED,sEAkEC;AAqCD,oEAgBC;AAED,wEA4BC;AAcD,gFAEC;AACD,8CAKC;AAED,gDAQC;AAMD,0DAKC;AAWD,wDAkDC;AAqBD,oEA6EC;AA37BD,6CAAyC;AACzC,yCAAoC;AACpC,mCAAgD;AAChD,8DAAwG;AACxG,oFAAyE;AACzE,kEAAiJ;AAEjJ,0DAA4E;AAC5E,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AC,OAAO,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;SACpC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport { resolve } from \"node:path\";\nimport { Effect, Either, Schema } from \"effect\";\nimport { encodeAttemptLocator, parseAttemptLocator, type AttemptLocator, } from \"../attempt-locator.ts\";\nimport { resolveAttemptLocator } from \"../attempt-locator-resolution.ts\";\nimport { EXECUTION_DURATION_DOMAIN, readAttemptExecutionDuration, type DurationLimit, type EqualityToken, } from \"../eval/record/eligibility.ts\";\nimport { type ComparisonProvenance, } from \"../eval/record/membership-provenance.ts\";\nimport { foldVerdict, type VerdictState, } from \"../eval/record/verdict.ts\";\nimport { loadConfigFile } from \"../load-config.ts\";\nimport { recordHost } from \"../record/host/runtime.ts\";\nimport type { RecordReadSession, SelectedAttemptRef, } from \"../record/host/types.ts\";\nimport { EvalIdSchema, ExecutionIdentityDigestSchema, ExperimentIdSchema, RunIdSchema, SlotIdSchema, UtcMillisSchema, } from \"../record/codec/identifiers.ts\";\nimport type { AttemptOutcome, RecordSlotIdentity } from \"../record/model/core.ts\";\nimport { canonicalizeRunContext, type RunContext, } from \"../record/model/run-context.ts\";\nimport type { EvalId, ExperimentId, ExecutionIdentityDigest, RunId, SlotId, UtcMillis, } from \"../record/model/identifiers.ts\";\nimport { makeRecordRoot, type RecordRoot, type RecordRootConstructionError, } from \"../record/platform/root.ts\";\nimport type { RecordReaderOpenError, RecordReaderReadError } from \"../record/reader/errors.ts\";\nimport type { RecordWriteError } from \"../record/writer/types.ts\";\nimport type { SandboxPlanningServices } from \"../sandbox/plan.ts\";\nimport { discoverEvals, discoverExperiments, } from \"./discover.ts\";\nimport { resolveExperimentEvals } from \"./eval-selection.ts\";\nimport { slotExecutionIdentityDigestHex } from \"./execution-identity.ts\";\nimport { planPreparedProjectTarget, } from \"./fingerprint.ts\";\nimport { prepareRunSandboxes, type PreparedRunPair } from \"./sandbox-selection.ts\";\nimport { resolveAttemptTimeout, resolveRunTimeout } from \"./timeout.ts\";\nimport type { AgentRun, Config, DiscoveredEval, DiscoveredExperiment, } from \"./types.ts\";\n/** Shared domains emitted by the current ProjectTarget producer. */\nexport const ADOPTION_INPUT_IDENTITY_DOMAIN = \"niceeval.input/fingerprint-v1\" as const;\nexport const ADOPTION_CONFIG_IDENTITY_DOMAIN = \"niceeval.config/identity-v1\" as const;\nconst ADOPTION_TARGET_SLOT_SEPARATOR = \"\\u0000\";\nexport type ExplicitAdoptionIntent = \"accept\" | \"rename\";\nexport type ExplicitAdoptionFailureCode = \"adoption-locator-malformed\" | \"adoption-locator-not-found\" | \"adoption-locator-ambiguous\" | \"adoption-batch-locator-duplicate\" | \"adoption-source-core-invalid\" | \"adoption-source-verdict-unavailable\" | \"adoption-source-observability-unavailable\" | \"adoption-source-verdict-ineligible\" | \"adoption-target-experiment-not-found\" | \"adoption-target-eval-not-selected\" | \"adoption-target-attempt-not-selected\" | \"adoption-target-planning-failed\" | \"adoption-target-invalid\" | \"adoption-target-slot-duplicate\" | \"adoption-target-member-duplicate\" | \"adoption-duration-domain-mismatch\" | \"adoption-timeout-exceeded\" | \"adoption-source-run-required\" | \"adoption-source-run-not-found\" | \"adoption-source-run-mismatch\" | \"adoption-provenance-invalid\" | \"adoption-evaluation-plan-invalid\";\n/** Expected product failures retain a stable code without collapsing Effect causes. */\nexport class ExplicitAdoptionError extends Error {\n readonly name = \"ExplicitAdoptionError\";\n constructor(readonly code: ExplicitAdoptionFailureCode, message: string) {\n super(message);\n }\n}\nexport type ExplicitAdoptionReadError = ExplicitAdoptionError | RecordReaderReadError;\nexport type ExplicitAdoptionOpenError = ExplicitAdoptionError | RecordRootConstructionError | RecordReaderOpenError | RecordReaderReadError | RecordWriteError;\nexport interface AdoptionProjectInput {\n readonly cwd: string;\n readonly config?: Config;\n readonly evals?: readonly DiscoveredEval[];\n readonly experiments?: readonly DiscoveredExperiment[];\n readonly planningServices?: SandboxPlanningServices;\n}\nexport interface AdoptionProject {\n readonly cwd: string;\n readonly config: Config;\n readonly evals: readonly DiscoveredEval[];\n readonly experiments: readonly DiscoveredExperiment[];\n readonly planningServices?: SandboxPlanningServices;\n}\nexport interface ExplicitAttemptLocator {\n readonly text: string;\n readonly locator: AttemptLocator;\n readonly attemptId: SelectedAttemptRef[\"attemptId\"];\n}\ninterface ParsedExplicitAttemptLocator {\n readonly text: string;\n readonly locator: AttemptLocator;\n}\nexport interface ResolvedAdoptionAttempt {\n readonly locator: ExplicitAttemptLocator;\n readonly attempt: SelectedAttemptRef;\n readonly origin: {\n readonly runId: RunId;\n readonly slotId: SlotId;\n readonly startedAt: UtcMillis;\n };\n readonly originExperimentId: string;\n readonly originEvalId: string;\n readonly originAttempt: number;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n}\nexport interface CurrentAdoptionSlot {\n readonly slotId: SlotId;\n readonly experimentId: string;\n readonly evalId: string;\n /** Durable Slot identity; `attempt` remains the caller-facing selector. */\n readonly attemptOrdinal: number;\n readonly attempt: number;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n readonly timeout?: DurationLimit;\n}\nexport interface CurrentAdoptionTarget {\n readonly experimentId: string;\n readonly startedAt: UtcMillis;\n readonly expectedSlots: readonly RecordSlotIdentity[];\n readonly context: RunContext;\n readonly slots: readonly CurrentAdoptionSlot[];\n readonly slotFor: (evalId: string, attempt: number) => CurrentAdoptionSlot | undefined;\n}\nexport interface ExplicitAdoptionMember {\n readonly target: CurrentAdoptionSlot;\n readonly source: ResolvedAdoptionAttempt;\n readonly locator: string;\n readonly verdict: \"passed\" | \"failed\";\n readonly comparisons: readonly ComparisonProvenance[];\n readonly operatorReason?: string;\n}\nexport interface ExplicitAdoptionRunPlan {\n readonly intent: ExplicitAdoptionIntent;\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}\nexport interface ExplicitAdoptionMemberReceipt {\n readonly slotId: SlotId;\n readonly locator: string;\n readonly sourceRunId: RunId;\n readonly attemptId: SelectedAttemptRef[\"attemptId\"];\n}\nexport interface ExplicitAdoptionRunReceipt {\n /** Explicit target identity; receipt ordering is never provenance. */\n readonly experimentId: string;\n readonly runId: RunId;\n readonly members: readonly ExplicitAdoptionMemberReceipt[];\n}\n/** Real Host write/open failures after all domain preflight has already passed. */\nexport type ExplicitAdoptionCommitError = RecordWriteError | RecordReaderOpenError;\nfunction adoptionError(code: ExplicitAdoptionFailureCode, message: string): ExplicitAdoptionError {\n return new ExplicitAdoptionError(code, message);\n}\nfunction safeMessage(cause: unknown): string {\n return cause instanceof Error ? cause.message : String(cause);\n}\nfunction decodeBrandedId<Id>(schema: Schema.Schema<Id, string>, value: string, code: ExplicitAdoptionFailureCode, label: string): Effect.Effect<Id, ExplicitAdoptionError> {\n const decoded = Schema.decodeUnknownEither(schema)(value);\n return Either.isLeft(decoded)\n ? Effect.fail(adoptionError(code, `${label} is not a current Record identity.`))\n : Effect.succeed(decoded.right);\n}\nfunction utcMillis(value: number): Effect.Effect<UtcMillis, ExplicitAdoptionError> {\n const decoded = Schema.decodeUnknownEither(UtcMillisSchema)(value);\n return Either.isLeft(decoded)\n ? Effect.fail(adoptionError(\"adoption-target-invalid\", \"Adoption timestamp is invalid.\"))\n : Effect.succeed(decoded.right);\n}\nfunction slotKey(evalId: string, attempt: number): string {\n return `${evalId}${ADOPTION_TARGET_SLOT_SEPARATOR}${String(attempt)}`;\n}\nfunction attemptLocatorFor(attemptId: SelectedAttemptRef[\"attemptId\"]): ExplicitAttemptLocator {\n const locator = encodeAttemptLocator(attemptId);\n return Object.freeze({ text: locator, locator, attemptId });\n}\n/** Strict v1 parser accepts only the current canonical short locator. */\nexport function parseExplicitAttemptLocator(value: string): Effect.Effect<ParsedExplicitAttemptLocator, ExplicitAdoptionError> {\n const parsed = parseAttemptLocator(value);\n if (!parsed.valid) {\n return Effect.fail(adoptionError(\"adoption-locator-malformed\", \"An explicit adoption locator must match @1 followed by 12 canonical uppercase Crockford characters.\"));\n }\n return Effect.succeed(Object.freeze({ text: value, locator: parsed.locator }));\n}\n/** The public application boundary owns Record-root construction. */\nexport function adoptionRecordRoot(input: {\n readonly cwd: string;\n readonly recordRoot?: string;\n}): Effect.Effect<RecordRoot, RecordRootConstructionError> {\n const root = makeRecordRoot(resolve(input.cwd, input.recordRoot ?? \".niceeval/record\"));\n return Either.isLeft(root) ? Effect.fail(root.left) : Effect.succeed(root.right);\n}\n/** Discovery is rerun for both read preflight and the write-session frozen view. */\nexport function loadAdoptionProject(input: AdoptionProjectInput): Effect.Effect<AdoptionProject, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const cwd = resolve(input.cwd);\n const config = input.config ?? (yield* Effect.tryPromise({\n try: () => loadConfigFile(cwd),\n catch: (cause) => adoptionError(\"adoption-target-invalid\", `Current configuration could not be loaded: ${safeMessage(cause)}`),\n }));\n const evals = input.evals ?? (yield* discoverEvals(cwd).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-invalid\", `Current Eval discovery failed: ${error.message}`))));\n const experiments = input.experiments ?? (yield* discoverExperiments(cwd).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-invalid\", `Current Experiment discovery failed: ${error.message}`))));\n return Object.freeze({\n cwd,\n config,\n evals: Object.freeze([...evals]),\n experiments: Object.freeze([...experiments]),\n ...(input.planningServices === undefined\n ? {}\n : { planningServices: input.planningServices }),\n });\n });\n}\nfunction runForExperiment(experiment: DiscoveredExperiment, selectedEvalIds: readonly string[]): AgentRun {\n return Object.freeze({\n agent: experiment.agent,\n ...(experiment.model === undefined ? {} : { model: experiment.model }),\n ...(experiment.reasoningEffort === undefined\n ? {}\n : { reasoningEffort: experiment.reasoningEffort }),\n flags: experiment.flags,\n plugins: experiment.plugins,\n attempts: experiment.attempts,\n earlyExit: experiment.earlyExit,\n ...(experiment.sandbox === undefined ? {} : { sandbox: experiment.sandbox }),\n sandboxReuse: experiment.sandboxReuse,\n ...(experiment.judge === undefined ? {} : { judge: experiment.judge }),\n ...resolveRunTimeout(undefined, experiment.timeoutMs),\n ...(experiment.budget === undefined ? {} : { budget: experiment.budget }),\n experimentId: experiment.id,\n experimentBaseDir: experiment.baseDir,\n experimentSourcePath: experiment.sourcePath,\n ...(experiment.description === undefined\n ? {}\n : { description: experiment.description }),\n ...(Object.keys(experiment.labels).length === 0\n ? {}\n : { labels: experiment.labels }),\n selectedEvalIds: Object.freeze([...selectedEvalIds]),\n ...(experiment.maxConcurrency === undefined\n ? {}\n : { maxConcurrency: experiment.maxConcurrency }),\n ...(experiment.setup === undefined ? {} : { setup: experiment.setup }),\n ...(experiment.teardown === undefined ? {} : { teardown: experiment.teardown }),\n ...(experiment.classifyFailure === undefined\n ? {}\n : { classifyFailure: experiment.classifyFailure }),\n });\n}\nfunction adoptionRunContext(run: AgentRun): Either.Either<RunContext, ExplicitAdoptionError> {\n const context = canonicalizeRunContext({\n experimentId: run.experimentId,\n execution: {\n agentId: run.agent.name,\n model: run.model ?? null,\n reasoningEffort: run.reasoningEffort ?? null,\n flags: run.flags,\n },\n labels: run.labels ?? {},\n });\n return Either.isLeft(context)\n ? Either.left(adoptionError(\"adoption-target-invalid\", `Run Context for \"${run.experimentId}\" is invalid.`))\n : Either.right(context.right);\n}\nfunction currentTargetSlotIdentity(input: {\n readonly experimentId: string;\n readonly evalId: string;\n readonly attempt: number;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly timeout?: DurationLimit;\n}): Effect.Effect<{\n readonly slotId: SlotId;\n readonly evalId: EvalId;\n readonly attemptOrdinal: number;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n}, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const digestValue = slotExecutionIdentityDigestHex({\n experimentId: input.experimentId,\n evalId: input.evalId,\n attempt: input.attempt,\n input: input.inputIdentity,\n config: input.configIdentity,\n timeout: input.timeout === undefined\n ? null\n : { domain: input.timeout.domain, milliseconds: input.timeout.milliseconds },\n });\n const digest = yield* decodeBrandedId(ExecutionIdentityDigestSchema, digestValue, \"adoption-target-invalid\", \"Adoption target execution identity\");\n const evalId = yield* decodeBrandedId(EvalIdSchema, input.evalId, \"adoption-target-invalid\", \"Adoption target Eval\");\n const slotId = yield* decodeBrandedId(SlotIdSchema, `slot-${digest}`, \"adoption-target-invalid\", \"Adoption target Slot\");\n return Object.freeze({\n slotId,\n evalId,\n attemptOrdinal: input.attempt,\n executionIdentityDigest: digest,\n });\n });\n}\ninterface CurrentTargetPair {\n readonly pair: PreparedRunPair;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly timeout?: DurationLimit;\n}\n/**\n * Rebuilds current discovery, physical planning, config identity and timeout\n * before any adoption decision. It intentionally plans every selected Eval so\n * a produced Run has the complete current denominator rather than only the\n * manually adopted Members.\n */\nexport function prepareCurrentAdoptionTarget(input: {\n readonly project: AdoptionProject;\n readonly experimentId: string;\n readonly startedAt: UtcMillis;\n}): Effect.Effect<CurrentAdoptionTarget, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const experiment = input.project.experiments.find((candidate) => candidate.id === input.experimentId);\n if (experiment === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-experiment-not-found\", `Current discovery does not contain Experiment \"${input.experimentId}\".`));\n }\n const selection = yield* Effect.try({\n try: () => resolveExperimentEvals({\n experimentId: experiment.id,\n selector: experiment.evals,\n cliPatterns: [],\n evals: input.project.evals,\n }),\n catch: (cause) => adoptionError(\"adoption-target-invalid\", `Current Eval selection for \"${experiment.id}\" failed: ${safeMessage(cause)}`),\n });\n if (selection.selectedEvals.length === 0 || experiment.attempts < 1) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", `Current Experiment \"${experiment.id}\" has no selectable target Slots.`));\n }\n const run = runForExperiment(experiment, selection.selectedEvalIds);\n const context = yield* adoptionRunContext(run);\n const pairs = yield* prepareRunSandboxes(selection.selectedEvals, [run], input.project.planningServices, { configTimeoutMs: input.project.config.timeoutMs }).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-planning-failed\", `Current planning for \"${experiment.id}\" failed: ${safeMessage(error)}`)));\n if (pairs.length !== selection.selectedEvals.length) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current planning for \"${experiment.id}\" did not return every selected Eval.`));\n }\n const projectPlan = yield* planPreparedProjectTarget(pairs, {\n configJudge: input.project.config.judge,\n }).pipe(Effect.mapError((cause) => adoptionError(\"adoption-target-planning-failed\", `Current identity planning for \"${experiment.id}\" failed: ${safeMessage(cause)}`)));\n const plannedPairs: CurrentTargetPair[] = [];\n for (const pair of pairs) {\n const fingerprint = projectPlan.plannedFingerprints.get(pair.key);\n const configHash = projectPlan.plannedConfigHashes.get(pair.key);\n if (fingerprint === undefined || configHash === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current identity planning omitted Eval \"${pair.evalDef.id}\".`));\n }\n const timeout = resolveAttemptTimeout(run, pair.evalDef, input.project.config);\n if (timeout !== undefined && !Number.isFinite(timeout.timeoutMs)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", `Current timeout for \"${pair.evalDef.id}\" is invalid.`));\n }\n plannedPairs.push(Object.freeze({\n pair,\n inputIdentity: Object.freeze({\n domain: ADOPTION_INPUT_IDENTITY_DOMAIN,\n value: fingerprint,\n }),\n configIdentity: Object.freeze({\n domain: ADOPTION_CONFIG_IDENTITY_DOMAIN,\n value: configHash,\n }),\n ...(timeout === undefined\n ? {}\n : {\n timeout: Object.freeze({\n domain: EXECUTION_DURATION_DOMAIN,\n milliseconds: timeout.timeoutMs,\n }),\n }),\n }));\n }\n const pairByEval = new Map<string, CurrentTargetPair>();\n for (const planned of plannedPairs) {\n if (pairByEval.has(planned.pair.evalDef.id)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current planning produced duplicate Eval \"${planned.pair.evalDef.id}\".`));\n }\n pairByEval.set(planned.pair.evalDef.id, planned);\n }\n const slots: CurrentAdoptionSlot[] = [];\n const seenSlots = new Set<string>();\n for (const evalDef of selection.selectedEvals) {\n const planned = pairByEval.get(evalDef.id);\n if (planned === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current planning omitted selected Eval \"${evalDef.id}\".`));\n }\n for (let attempt = 0; attempt < run.attempts; attempt += 1) {\n const identity = yield* currentTargetSlotIdentity({\n experimentId: experiment.id,\n evalId: evalDef.id,\n attempt,\n inputIdentity: planned.inputIdentity,\n configIdentity: planned.configIdentity,\n ...(planned.timeout === undefined ? {} : { timeout: planned.timeout }),\n });\n if (seenSlots.has(identity.slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current target produced duplicate Slot \"${identity.slotId}\".`));\n }\n seenSlots.add(identity.slotId);\n const targetSlot = Object.freeze({\n slotId: identity.slotId,\n experimentId: experiment.id,\n evalId: evalDef.id,\n attemptOrdinal: identity.attemptOrdinal,\n attempt,\n inputIdentity: planned.inputIdentity,\n configIdentity: planned.configIdentity,\n executionIdentityDigest: identity.executionIdentityDigest,\n ...(planned.timeout === undefined ? {} : { timeout: planned.timeout }),\n });\n slots.push(targetSlot);\n }\n }\n const byKey = new Map<string, CurrentAdoptionSlot>();\n for (const slot of slots)\n byKey.set(slotKey(slot.evalId, slot.attemptOrdinal), slot);\n const expectedSlots = Object.freeze([...slots]\n .map((slot) => Object.freeze({\n slotId: slot.slotId,\n evalId: Schema.decodeUnknownSync(EvalIdSchema)(slot.evalId),\n attemptOrdinal: slot.attemptOrdinal,\n executionIdentityDigest: slot.executionIdentityDigest,\n }))\n .sort((left, right) => left.slotId < right.slotId ? -1 : left.slotId > right.slotId ? 1 : 0));\n return Object.freeze({\n experimentId: experiment.id,\n startedAt: input.startedAt,\n context,\n expectedSlots,\n slots: Object.freeze([...slots]),\n slotFor: (evalId: string, attempt: number) => byKey.get(slotKey(evalId, attempt)),\n });\n });\n}\nfunction sourceCoreInvalid(message: string): ExplicitAdoptionError {\n return adoptionError(\"adoption-source-core-invalid\", message);\n}\n/** Locates one canonical short locator through the live Record Host session. */\nexport function resolveExplicitAttemptLocator(reader: RecordReadSession, text: string): Effect.Effect<ResolvedAdoptionAttempt, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const parsed = yield* parseExplicitAttemptLocator(text);\n const selected = yield* reader.selectRuns();\n const resolved = yield* resolveAttemptLocator({\n reader,\n selection: selected,\n locator: parsed.locator,\n });\n if (resolved.kind === \"not-found\") {\n return yield* Effect.fail(adoptionError(\"adoption-locator-not-found\", `No published current-Record Attempt matches locator \"${parsed.text}\".`));\n }\n if (resolved.kind === \"ambiguous\") {\n return yield* Effect.fail(adoptionError(\"adoption-locator-ambiguous\", `Locator \"${parsed.text}\" resolves to more than one immutable Attempt.`));\n }\n return yield* resolveAdoptionAttempt(reader, resolved.attempt, Object.freeze({\n text: parsed.text,\n locator: parsed.locator,\n attemptId: resolved.attempt.attemptId,\n }));\n });\n}\n/** Validates the origin anchor and evaluates its source Run/Slot metadata. */\nexport function resolveAdoptionAttempt(reader: RecordReadSession, attempt: SelectedAttemptRef, locator?: ExplicitAttemptLocator): Effect.Effect<ResolvedAdoptionAttempt, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const sourceLocator = locator ?? attemptLocatorFor(attempt.attemptId);\n const selected = yield* reader.selectRuns({ runIds: Object.freeze([attempt.originRunId]) });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no readable origin Run.`));\n }\n const originRun = yield* reader.readRun(selected.runRefs[0]!);\n if (originRun.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no readable origin Run.`));\n }\n const attemptRead = yield* reader.readAttempt(attempt);\n if (attemptRead.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Locator \"${sourceLocator.text}\" points at a missing or invalid source Attempt.`));\n }\n const originSlot = originRun.value.document.expectedSlots.find((slot) => slot.slotId === attemptRead.value.document.slotId);\n if (originSlot === undefined) {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no origin Member.`));\n }\n const matchingMembers = originRun.value.members.filter((member) => member.attempt !== null\n && member.attempt.originRunId === attempt.originRunId\n && member.attempt.attemptId === attempt.attemptId);\n if (matchingMembers.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(matchingMembers.length === 0\n ? `Source locator \"${sourceLocator.text}\" has no origin Member.`\n : `Source origin Run for \"${sourceLocator.text}\" has duplicate origin Members.`));\n }\n return Object.freeze({\n locator: sourceLocator,\n attempt,\n origin: Object.freeze({\n runId: originRun.value.document.runId,\n slotId: originSlot.slotId,\n startedAt: originRun.value.document.startedAt,\n }),\n originExperimentId: originRun.value.document.experimentId,\n originEvalId: originSlot.evalId,\n originAttempt: originSlot.attemptOrdinal,\n executionIdentityDigest: originSlot.executionIdentityDigest,\n });\n });\n}\nexport interface AdoptionAttemptFacts {\n readonly outcome: AttemptOutcome;\n readonly verdict: VerdictState;\n}\n/** Reads the exact Core outcome and its Assertion-derived terminal Verdict together. */\nexport function readAdoptionAttemptFacts(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<AdoptionAttemptFacts, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const attempt = yield* reader.readAttempt(source.attempt);\n if (attempt.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-unavailable\", \"Source Attempt/Core is unavailable.\"));\n }\n const assertions = yield* reader.readAssertions(attempt.value.owner);\n if (assertions.state !== \"available\") {\n const detail = assertions.state === \"invalid\" ? \"invalid\" : assertions.state;\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-unavailable\", `Source Assertions is ${detail}.`));\n }\n const outcome = attempt.value.document.outcome;\n const verdict = foldVerdict({\n execution: outcome === \"errored\" || outcome === \"interrupted\"\n ? \"errored\"\n : \"completed\",\n explicitlySkipped: outcome === \"cancelled\",\n assertions: assertions.value.entries.map((entry) => Object.freeze({\n required: entry.result.gate !== \"not-gate\",\n result: entry.result,\n })),\n });\n return Object.freeze({ outcome, verdict });\n });\n}\nexport function readAdoptionVerdict(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<VerdictState, ExplicitAdoptionReadError> {\n return readAdoptionAttemptFacts(reader, source).pipe(Effect.map((facts) => facts.verdict));\n}\n/**\n * Timing is a fixed Observability fact. No missing, partial, or invalid\n * timing collection is eligible for adoption, including an unbounded target.\n */\nexport function readAdoptionExecutionDuration(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<DurationLimit, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const attempt = yield* reader.readAttempt(source.attempt);\n if (attempt.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" has no readable Attempt.`));\n }\n const observability = yield* reader.readAttemptObservability(attempt.value.owner);\n if (observability.state !== \"available\") {\n const detail = observability.state === \"invalid\" ? \"invalid\" : observability.state;\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" is ${detail}.`));\n }\n const duration = readAttemptExecutionDuration(observability.value);\n if (duration.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" is ${duration.reason}.`));\n }\n return duration.duration;\n });\n}\nfunction executionIdentityComparison(input: {\n readonly source: ExecutionIdentityDigest;\n readonly target: ExecutionIdentityDigest;\n}): ComparisonProvenance {\n const reason = input.source === input.target\n ? \"execution-identity-match\"\n : \"execution-identity-mismatch\";\n return Object.freeze({\n attachment: \"core\" as const,\n recordedClaim: \"execution-identity\" as const,\n sourceState: \"available\" as const,\n result: reason.endsWith(\"-match\") ? \"match\" as const : \"mismatch\" as const,\n reason,\n });\n}\nfunction durationComparison(input: {\n readonly source: DurationLimit;\n readonly target?: DurationLimit;\n}): {\n readonly comparison: ComparisonProvenance;\n readonly failure?: \"adoption-duration-domain-mismatch\" | \"adoption-timeout-exceeded\";\n} {\n if (input.target === undefined) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"timeout-unbounded\",\n }),\n });\n }\n if (input.source.domain !== input.target.domain) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"mismatch\" as const,\n reason: \"duration-domain-mismatch\",\n }),\n failure: \"adoption-duration-domain-mismatch\",\n });\n }\n if (input.source.milliseconds > input.target.milliseconds) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"mismatch\" as const,\n reason: \"timeout-exceeded\",\n }),\n failure: \"adoption-timeout-exceeded\",\n });\n }\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"duration-within-timeout\",\n }),\n });\n}\n/**\n * Builds one accepted reference intent. The Core combined execution identity\n * is compared exactly, but an explicit operator decision may accept a mismatch.\n * The folded Verdict and complete fixed Observability timing remain hard gates.\n */\nexport function prepareExplicitAdoptionMember(input: {\n readonly reader: RecordReadSession;\n readonly target: CurrentAdoptionTarget;\n readonly source: ResolvedAdoptionAttempt;\n readonly evalId: string;\n readonly attempt: number;\n readonly operatorReason?: string;\n}): Effect.Effect<ExplicitAdoptionMember, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const target = input.target.slotFor(input.evalId, input.attempt);\n if (target === undefined) {\n const code = input.target.slots.some((slot) => slot.evalId === input.evalId)\n ? \"adoption-target-attempt-not-selected\"\n : \"adoption-target-eval-not-selected\";\n return yield* Effect.fail(adoptionError(code, `Current target ${input.target.experimentId}/${input.evalId} does not contain ordinal ${String(input.attempt)}.`));\n }\n const facts = yield* readAdoptionAttemptFacts(input.reader, input.source);\n const verdict = facts.verdict;\n if (facts.outcome !== \"completed\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-ineligible\", `Source locator \"${input.source.locator.text}\" has Attempt outcome \"${facts.outcome}\" and cannot be explicitly adopted.`));\n }\n if (verdict !== \"passed\" && verdict !== \"failed\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-ineligible\", `Source locator \"${input.source.locator.text}\" has Verdict \"${verdict}\" and cannot be explicitly adopted.`));\n }\n const executionDuration = yield* readAdoptionExecutionDuration(input.reader, input.source);\n const duration = durationComparison({\n source: executionDuration,\n target: target.timeout,\n });\n if (duration.failure !== undefined) {\n return yield* Effect.fail(adoptionError(duration.failure, duration.failure === \"adoption-timeout-exceeded\"\n ? `Source locator \"${input.source.locator.text}\" exceeds the current timeout.`\n : `Source locator \"${input.source.locator.text}\" uses an incomparable execution-duration domain.`));\n }\n const comparisons = Object.freeze([\n Object.freeze({\n attachment: \"core\" as const,\n recordedClaim: \"attempt-outcome\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"attempt-completed\",\n }),\n executionIdentityComparison({\n source: input.source.executionIdentityDigest,\n target: target.executionIdentityDigest,\n }),\n Object.freeze({\n attachment: \"niceeval.assertions\" as const,\n recordedClaim: \"assertion-verdict\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"verdict-eligible\",\n }),\n duration.comparison,\n ]);\n return Object.freeze({\n target,\n source: input.source,\n locator: input.source.locator.text,\n verdict,\n comparisons,\n ...(input.operatorReason === undefined\n ? {}\n : { operatorReason: input.operatorReason }),\n });\n });\n}\n/** Validates the exact Core Run denominator before the writer records Members. */\nfunction validateExplicitAdoptionMembers(input: {\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}): Effect.Effect<void, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const expected = new Set<string>();\n for (const slot of input.target.expectedSlots) {\n if (expected.has(slot.slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current target lists Slot \"${slot.slotId}\" more than once.`));\n }\n expected.add(slot.slotId);\n }\n const targetSlots = new Set(input.target.slots.map((slot) => String(slot.slotId)));\n if (targetSlots.size !== expected.size\n || [...expected].some((slotId) => !targetSlots.has(slotId))) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", \"Current target Slot definitions do not exactly match its expected Slot denominator.\"));\n }\n const memberBySlot = new Set<string>();\n for (const member of input.members) {\n const slotId = String(member.target.slotId);\n if (!expected.has(slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-eval-not-selected\", `Explicit adoption selected Slot \"${slotId}\" outside the current target denominator.`));\n }\n if (memberBySlot.has(slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-member-duplicate\", `More than one source attempts to occupy target Slot \"${slotId}\".`));\n }\n memberBySlot.add(slotId);\n }\n return undefined;\n });\n}\n/**\n * Performs Core denominator and Member validation before a writer creates a\n * reference Run. This is the batch's no-business-write boundary.\n */\nexport function buildExplicitAdoptionRunPlan(input: {\n readonly intent: ExplicitAdoptionIntent;\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}): Effect.Effect<ExplicitAdoptionRunPlan, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n if (input.members.length === 0) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", \"Explicit adoption requires at least one reference Member.\"));\n }\n yield* validateExplicitAdoptionMembers(input);\n return Object.freeze({\n intent: input.intent,\n target: input.target,\n members: Object.freeze([...input.members]),\n });\n });\n}\n/** Writes only plans already built from this exact session's Host reader. */\nexport function commitExplicitAdoptionRunPlans(_reader: RecordReadSession, root: RecordRoot, plans: readonly ExplicitAdoptionRunPlan[]) {\n return Effect.forEach(plans, (plan) => Effect.gen(function* () {\n const experimentId = yield* decodeBrandedId(ExperimentIdSchema, plan.target.experimentId, \"adoption-target-invalid\", \"Adoption target Experiment\");\n const writer = yield* recordHost.current.createReferenceRun({\n root,\n experimentId,\n context: plan.target.context,\n startedAt: plan.target.startedAt,\n expectedSlots: plan.target.expectedSlots,\n });\n const accepted = new Set(plan.members.map((member) => String(member.target.slotId)));\n for (const member of plan.members) {\n yield* writer.recordAcceptedMembership({\n slotId: member.target.slotId,\n attempt: member.source.attempt,\n });\n }\n for (const slot of plan.target.expectedSlots) {\n if (accepted.has(String(slot.slotId)))\n continue;\n yield* writer.recordTerminalMember({\n slotId: slot.slotId,\n action: \"not-dispatched\",\n });\n }\n const sealed = yield* writer.seal({ completedAt: plan.target.startedAt });\n return receiptForPlan(plan, sealed.runId);\n }), { concurrency: 1 });\n}\nfunction receiptForPlan(plan: ExplicitAdoptionRunPlan, runId: RunId): ExplicitAdoptionRunReceipt {\n return Object.freeze({\n experimentId: plan.target.experimentId,\n runId,\n members: Object.freeze(plan.members.map((member) => Object.freeze({\n slotId: member.target.slotId,\n locator: member.locator,\n sourceRunId: member.source.origin.runId,\n attemptId: member.source.attempt.attemptId,\n }))),\n });\n}\n/** A fresh in-memory invocation identity never enters Record Core. */\nexport function createExplicitAdoptionInvocationId(mint: () => string = randomUUID): Effect.Effect<string> {\n return Effect.sync(() => `adoption-${mint()}`);\n}\nexport function adoptionStartedAt(input?: () => string | number): Effect.Effect<UtcMillis, ExplicitAdoptionError> {\n return Effect.sync(() => input?.() ?? Date.now()).pipe(Effect.flatMap((value) => {\n const millis = typeof value === \"number\" ? value : Date.parse(value);\n return utcMillis(millis);\n }));\n}\n/** Opens a Host read session only; dry callers must use this rather than a writer. */\nexport function withAdoptionReader<A, E, R>(input: {\n readonly root: RecordRoot;\n readonly use: (reader: RecordReadSession) => Effect.Effect<A, E, R>;\n}) {\n return Effect.scoped(Effect.gen(function* () {\n const reader = yield* recordHost.current.openRead({ root: input.root });\n return yield* input.use(reader);\n }));\n}\n/**\n * One Scope keeps the Host reader live while reference Runs are created, so\n * SelectedAttemptRefs remain valid through seal. Discovery still happens\n * before this Scope opens, so the first preflight writes nothing.\n */\nexport function withAdoptionCommitScope<A, E, R>(input: {\n readonly root: RecordRoot;\n readonly use: (reader: RecordReadSession) => Effect.Effect<A, E, R>;\n}) {\n return withAdoptionReader(input);\n}\nexport interface RenameSourceRun {\n readonly runId: RunId;\n readonly experimentId: ExperimentId;\n readonly startedAt: UtcMillis;\n readonly expectedSlots: readonly RecordSlotIdentity[];\n}\n/**\n * Selects one old Experiment Run without directory-time inference. Multiple\n * matching Runs require the caller to pass an exact RunId.\n */\nexport function resolveRenameSourceRun(input: {\n readonly reader: RecordReadSession;\n readonly oldId: string;\n readonly sourceRunId?: string;\n}): Effect.Effect<RenameSourceRun, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n if (input.sourceRunId !== undefined) {\n const runId = yield* decodeBrandedId(RunIdSchema, input.sourceRunId, \"adoption-source-run-not-found\", \"Rename source Run\");\n const selected = yield* input.reader.selectRuns({ runIds: Object.freeze([runId]) });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `Rename source Run \"${input.sourceRunId}\" is not a published readable Run.`));\n }\n const run = yield* input.reader.readRun(selected.runRefs[0]!);\n if (run.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `Rename source Run \"${input.sourceRunId}\" is not a published readable Run.`));\n }\n if (run.value.document.experimentId !== input.oldId) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-mismatch\", `Run \"${input.sourceRunId}\" does not belong to old Experiment \"${input.oldId}\".`));\n }\n return Object.freeze({\n runId: run.value.document.runId,\n experimentId: run.value.document.experimentId,\n startedAt: run.value.document.startedAt,\n expectedSlots: run.value.document.expectedSlots,\n });\n }\n const selected = yield* input.reader.selectRuns();\n let first: RenameSourceRun | undefined;\n for (const ref of selected.runRefs) {\n const run = yield* input.reader.readRun(ref);\n if (run.state !== \"available\")\n continue;\n if (run.value.document.experimentId !== input.oldId)\n continue;\n const current = Object.freeze({\n runId: run.value.document.runId,\n experimentId: run.value.document.experimentId,\n startedAt: run.value.document.startedAt,\n expectedSlots: run.value.document.expectedSlots,\n });\n if (first !== undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-required\", `Old Experiment \"${input.oldId}\" has multiple published Runs; select one exact source RunId.`));\n }\n first = current;\n }\n if (first === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `No published source Run belongs to old Experiment \"${input.oldId}\".`));\n }\n return first;\n });\n}\nexport interface RenameAdoptionMember {\n readonly evalId: string;\n readonly attempt: number;\n readonly member: ExplicitAdoptionMember;\n}\nexport interface RenameAdoptionExcluded {\n readonly evalId: string;\n readonly attempt: number;\n readonly reason: \"source-member-missing\" | \"target-eval-not-selected\" | \"target-attempt-not-selected\";\n}\nexport interface RenameAdoptionPreflight {\n readonly sourceRun: RenameSourceRun;\n readonly members: readonly RenameAdoptionMember[];\n readonly excluded: readonly RenameAdoptionExcluded[];\n}\n/**\n * Reads exactly one selected old Run. Source slots omitted by the current\n * target are preview exclusions; every source Member that would be adopted is\n * fully validated before the caller is allowed to create a target Run.\n */\nexport function prepareRenameAdoptionMembers(input: {\n readonly reader: RecordReadSession;\n readonly oldId: string;\n readonly sourceRun: RenameSourceRun;\n readonly target: CurrentAdoptionTarget;\n readonly operatorReason: string;\n}): Effect.Effect<RenameAdoptionPreflight, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n if (input.sourceRun.experimentId !== input.oldId) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-mismatch\", `Selected source Run \"${input.sourceRun.runId}\" does not belong to old Experiment \"${input.oldId}\".`));\n }\n const selected = yield* input.reader.selectRuns({\n runIds: Object.freeze([input.sourceRun.runId]),\n });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" is not a published readable Run.`));\n }\n const run = yield* input.reader.readRun(selected.runRefs[0]!);\n if (run.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" is not a published readable Run.`));\n }\n const members: RenameAdoptionMember[] = [];\n const excluded: RenameAdoptionExcluded[] = [];\n const seenSourceSlots = new Set<string>();\n for (const sourceSlot of input.sourceRun.expectedSlots) {\n const slotId = sourceSlot.slotId;\n if (seenSourceSlots.has(slotId)) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" repeats Slot \"${slotId}\".`));\n }\n seenSourceSlots.add(slotId);\n const attemptOrdinal = sourceSlot.attemptOrdinal;\n const targetSlot = input.target.slotFor(sourceSlot.evalId, attemptOrdinal);\n if (targetSlot === undefined) {\n const selectedEval = input.target.slots.some((slot) => slot.evalId === sourceSlot.evalId);\n excluded.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n reason: selectedEval\n ? \"target-attempt-not-selected\"\n : \"target-eval-not-selected\",\n }));\n continue;\n }\n const sourceMember = run.value.members.find((member) => member.document.slotId === slotId);\n if (sourceMember === undefined || sourceMember.attempt === null) {\n excluded.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n reason: \"source-member-missing\",\n }));\n continue;\n }\n const source = yield* resolveAdoptionAttempt(input.reader, sourceMember.attempt);\n if (source.originEvalId !== sourceSlot.evalId\n || source.originAttempt !== attemptOrdinal) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Member for ${sourceSlot.evalId}/${String(attemptOrdinal)} does not retain a matching origin Attempt.`));\n }\n const member = yield* prepareExplicitAdoptionMember({\n reader: input.reader,\n target: input.target,\n source,\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n operatorReason: input.operatorReason,\n });\n members.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n member,\n }));\n }\n return Object.freeze({\n sourceRun: input.sourceRun,\n members: Object.freeze(members),\n excluded: Object.freeze(excluded),\n });\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"adoption.js","sourceRoot":"","sources":["adoption.ts"],"names":[],"mappings":";;;AAsJA,kEAMC;AAED,gDAMC;AAED,kDAmBC;AAoGD,oEA2HC;AAKD,sEAqBC;AAED,wDAyCC;AAMD,4DAwBC;AACD,kDAEC;AAKD,sEAiBC;AAyED,sEAkEC;AAqCD,oEAgBC;AAED,wEA4BC;AAcD,gFAEC;AACD,8CAKC;AAED,gDAQC;AAMD,0DAKC;AAWD,wDAkDC;AAqBD,oEA6EC;AA57BD,6CAAyC;AACzC,yCAAoC;AACpC,mCAAgD;AAChD,8DAAwG;AACxG,oFAAyE;AACzE,kEAAiJ;AAEjJ,0DAA4E;AAC5E,sDAAmD;AACnD,0DAAuD;AAEvD,mEAA8J;AAE9J,mEAA0F;AAE1F,wDAAgH;AAIhH,+CAAoE;AACpE,2DAA6D;AAC7D,mEAAyE;AACzE,qDAA8D;AAC9D,iEAAmF;AACnF,6CAAwE;AAExE,oEAAoE;AACvD,QAAA,8BAA8B,GAAG,+BAAwC,CAAC;AAC1E,QAAA,+BAA+B,GAAG,6BAAsC,CAAC;AACtF,MAAM,8BAA8B,GAAG,QAAQ,CAAC;AAGhD,uFAAuF;AACvF,MAAa,qBAAsB,SAAQ,KAAK;IAEvB;IADZ,IAAI,GAAG,uBAAuB,CAAC;IACxC,YAAqB,IAAiC,EAAE,OAAe;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,SAAI,GAAJ,IAAI,CAA6B;IAEtD,CAAC;CACJ;AALD,sDAKC;AAsFD,SAAS,aAAa,CAAC,IAAiC,EAAE,OAAe;IACrE,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AACD,SAAS,WAAW,CAAC,KAAc;IAC/B,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,C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A8B,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,cAAc,CAAC,6CAA6C,CAAC,CAAC,CAAC;YACzK,CAAC;YACD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,6BAA6B,CAAC;gBAChD,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,MAAM;gBACN,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,OAAO,EAAE,cAAc;gBACvB,cAAc,EAAE,KAAK,CAAC,cAAc;aACvC,CAAC,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;gBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;gBACzB,OAAO,EAAE,cAAc;gBACvB,MAAM;aACT,CAAC,CAAC,CAAC;QACR,CAAC;QACD,OAAO,MAAM,CAAC,MAAM,CAAC;YACjB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;YAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;SACpC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["import { randomUUID } from \"node:crypto\";\nimport { resolve } from \"node:path\";\nimport { Effect, Either, Schema } from \"effect\";\nimport { encodeAttemptLocator, parseAttemptLocator, type AttemptLocator, } from \"../attempt-locator.ts\";\nimport { resolveAttemptLocator } from \"../attempt-locator-resolution.ts\";\nimport { EXECUTION_DURATION_DOMAIN, readAttemptExecutionDuration, type DurationLimit, type EqualityToken, } from \"../eval/record/eligibility.ts\";\nimport { type ComparisonProvenance, } from \"../eval/record/membership-provenance.ts\";\nimport { foldVerdict, type VerdictState, } from \"../eval/record/verdict.ts\";\nimport { loadConfigFile } from \"../load-config.ts\";\nimport { recordHost } from \"../record/host/runtime.ts\";\nimport type { RecordReadSession, SelectedAttemptRef, } from \"../record/host/types.ts\";\nimport { EvalIdSchema, ExecutionIdentityDigestSchema, ExperimentIdSchema, RunIdSchema, SlotIdSchema, UtcMillisSchema, } from \"../record/codec/identifiers.ts\";\nimport type { AttemptOutcome, RecordSlotIdentity } from \"../record/model/core.ts\";\nimport { canonicalizeRunContext, type RunContext, } from \"../record/model/run-context.ts\";\nimport type { EvalId, ExperimentId, ExecutionIdentityDigest, RunId, SlotId, UtcMillis, } from \"../record/model/identifiers.ts\";\nimport { makeRecordRoot, type RecordRoot, type RecordRootConstructionError, } from \"../record/platform/root.ts\";\nimport type { RecordReaderOpenError, RecordReaderReadError } from \"../record/reader/errors.ts\";\nimport type { RecordWriteError } from \"../record/writer/types.ts\";\nimport type { SandboxPlanningServices } from \"../sandbox/plan.ts\";\nimport { discoverEvals, discoverExperiments, } from \"./discover.ts\";\nimport { resolveExperimentEvals } from \"./eval-selection.ts\";\nimport { slotExecutionIdentityDigestHex } from \"./execution-identity.ts\";\nimport { planPreparedProjectTarget, } from \"./fingerprint.ts\";\nimport { prepareRunSandboxes, type PreparedRunPair } from \"./sandbox-selection.ts\";\nimport { resolveAttemptTimeout, resolveRunTimeout } from \"./timeout.ts\";\nimport type { AgentRun, Config, DiscoveredEval, DiscoveredExperiment, } from \"./types.ts\";\n/** Shared domains emitted by the current ProjectTarget producer. */\nexport const ADOPTION_INPUT_IDENTITY_DOMAIN = \"niceeval.input/fingerprint-v1\" as const;\nexport const ADOPTION_CONFIG_IDENTITY_DOMAIN = \"niceeval.config/identity-v1\" as const;\nconst ADOPTION_TARGET_SLOT_SEPARATOR = \"\\u0000\";\nexport type ExplicitAdoptionIntent = \"accept\" | \"rename\";\nexport type ExplicitAdoptionFailureCode = \"adoption-locator-malformed\" | \"adoption-locator-not-found\" | \"adoption-locator-ambiguous\" | \"adoption-batch-locator-duplicate\" | \"adoption-source-core-invalid\" | \"adoption-source-verdict-unavailable\" | \"adoption-source-observability-unavailable\" | \"adoption-source-verdict-ineligible\" | \"adoption-target-experiment-not-found\" | \"adoption-target-eval-not-selected\" | \"adoption-target-attempt-not-selected\" | \"adoption-target-planning-failed\" | \"adoption-target-invalid\" | \"adoption-target-slot-duplicate\" | \"adoption-target-member-duplicate\" | \"adoption-duration-domain-mismatch\" | \"adoption-timeout-exceeded\" | \"adoption-source-run-required\" | \"adoption-source-run-not-found\" | \"adoption-source-run-mismatch\" | \"adoption-provenance-invalid\" | \"adoption-evaluation-plan-invalid\";\n/** Expected product failures retain a stable code without collapsing Effect causes. */\nexport class ExplicitAdoptionError extends Error {\n readonly name = \"ExplicitAdoptionError\";\n constructor(readonly code: ExplicitAdoptionFailureCode, message: string) {\n super(message);\n }\n}\nexport type ExplicitAdoptionReadError = ExplicitAdoptionError | RecordReaderReadError;\nexport type ExplicitAdoptionOpenError = ExplicitAdoptionError | RecordRootConstructionError | RecordReaderOpenError | RecordReaderReadError | RecordWriteError;\nexport interface AdoptionProjectInput {\n readonly cwd: string;\n readonly config?: Config;\n readonly evals?: readonly DiscoveredEval[];\n readonly experiments?: readonly DiscoveredExperiment[];\n readonly planningServices?: SandboxPlanningServices;\n}\nexport interface AdoptionProject {\n readonly cwd: string;\n readonly config: Config;\n readonly evals: readonly DiscoveredEval[];\n readonly experiments: readonly DiscoveredExperiment[];\n readonly planningServices?: SandboxPlanningServices;\n}\nexport interface ExplicitAttemptLocator {\n readonly text: string;\n readonly locator: AttemptLocator;\n readonly attemptId: SelectedAttemptRef[\"attemptId\"];\n}\ninterface ParsedExplicitAttemptLocator {\n readonly text: string;\n readonly locator: AttemptLocator;\n}\nexport interface ResolvedAdoptionAttempt {\n readonly locator: ExplicitAttemptLocator;\n readonly attempt: SelectedAttemptRef;\n readonly origin: {\n readonly runId: RunId;\n readonly slotId: SlotId;\n readonly startedAt: UtcMillis;\n };\n readonly originExperimentId: string;\n readonly originEvalId: string;\n readonly originAttempt: number;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n}\nexport interface CurrentAdoptionSlot {\n readonly slotId: SlotId;\n readonly experimentId: string;\n readonly evalId: string;\n /** Durable Slot identity; `attempt` remains the caller-facing selector. */\n readonly attemptOrdinal: number;\n readonly attempt: number;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n readonly timeout?: DurationLimit;\n}\nexport interface CurrentAdoptionTarget {\n readonly experimentId: string;\n readonly startedAt: UtcMillis;\n readonly expectedSlots: readonly RecordSlotIdentity[];\n readonly context: RunContext;\n readonly slots: readonly CurrentAdoptionSlot[];\n readonly slotFor: (evalId: string, attempt: number) => CurrentAdoptionSlot | undefined;\n}\nexport interface ExplicitAdoptionMember {\n readonly target: CurrentAdoptionSlot;\n readonly source: ResolvedAdoptionAttempt;\n readonly locator: string;\n readonly verdict: \"passed\" | \"failed\";\n readonly comparisons: readonly ComparisonProvenance[];\n readonly operatorReason?: string;\n}\nexport interface ExplicitAdoptionRunPlan {\n readonly intent: ExplicitAdoptionIntent;\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}\nexport interface ExplicitAdoptionMemberReceipt {\n readonly slotId: SlotId;\n readonly locator: string;\n readonly sourceRunId: RunId;\n readonly attemptId: SelectedAttemptRef[\"attemptId\"];\n}\nexport interface ExplicitAdoptionRunReceipt {\n /** Explicit target identity; receipt ordering is never provenance. */\n readonly experimentId: string;\n readonly runId: RunId;\n readonly members: readonly ExplicitAdoptionMemberReceipt[];\n}\n/** Real Host write/open failures after all domain preflight has already passed. */\nexport type ExplicitAdoptionCommitError = RecordWriteError | RecordReaderOpenError;\nfunction adoptionError(code: ExplicitAdoptionFailureCode, message: string): ExplicitAdoptionError {\n return new ExplicitAdoptionError(code, message);\n}\nfunction safeMessage(cause: unknown): string {\n return cause instanceof Error ? cause.message : String(cause);\n}\nfunction decodeBrandedId<Id>(schema: Schema.Schema<Id, string>, value: string, code: ExplicitAdoptionFailureCode, label: string): Effect.Effect<Id, ExplicitAdoptionError> {\n const decoded = Schema.decodeUnknownEither(schema)(value);\n return Either.isLeft(decoded)\n ? Effect.fail(adoptionError(code, `${label} is not a current Record identity.`))\n : Effect.succeed(decoded.right);\n}\nfunction utcMillis(value: number): Effect.Effect<UtcMillis, ExplicitAdoptionError> {\n const decoded = Schema.decodeUnknownEither(UtcMillisSchema)(value);\n return Either.isLeft(decoded)\n ? Effect.fail(adoptionError(\"adoption-target-invalid\", \"Adoption timestamp is invalid.\"))\n : Effect.succeed(decoded.right);\n}\nfunction slotKey(evalId: string, attempt: number): string {\n return `${evalId}${ADOPTION_TARGET_SLOT_SEPARATOR}${String(attempt)}`;\n}\nfunction attemptLocatorFor(attemptId: SelectedAttemptRef[\"attemptId\"]): ExplicitAttemptLocator {\n const locator = encodeAttemptLocator(attemptId);\n return Object.freeze({ text: locator, locator, attemptId });\n}\n/** Strict v1 parser accepts only the current canonical short locator. */\nexport function parseExplicitAttemptLocator(value: string): Effect.Effect<ParsedExplicitAttemptLocator, ExplicitAdoptionError> {\n const parsed = parseAttemptLocator(value);\n if (!parsed.valid) {\n return Effect.fail(adoptionError(\"adoption-locator-malformed\", \"An explicit adoption locator must match @1 followed by 12 canonical uppercase Crockford characters.\"));\n }\n return Effect.succeed(Object.freeze({ text: value, locator: parsed.locator }));\n}\n/** The public application boundary owns Record-root construction. */\nexport function adoptionRecordRoot(input: {\n readonly cwd: string;\n readonly recordRoot?: string;\n}): Effect.Effect<RecordRoot, RecordRootConstructionError> {\n const root = makeRecordRoot(resolve(input.cwd, input.recordRoot ?? \".niceeval/record\"));\n return Either.isLeft(root) ? Effect.fail(root.left) : Effect.succeed(root.right);\n}\n/** Discovery is rerun for both read preflight and the write-session frozen view. */\nexport function loadAdoptionProject(input: AdoptionProjectInput): Effect.Effect<AdoptionProject, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const cwd = resolve(input.cwd);\n const config = input.config ?? (yield* Effect.tryPromise({\n try: () => loadConfigFile(cwd),\n catch: (cause) => adoptionError(\"adoption-target-invalid\", `Current configuration could not be loaded: ${safeMessage(cause)}`),\n }));\n const evals = input.evals ?? (yield* discoverEvals(cwd).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-invalid\", `Current Eval discovery failed: ${error.message}`))));\n const experiments = input.experiments ?? (yield* discoverExperiments(cwd).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-invalid\", `Current Experiment discovery failed: ${error.message}`))));\n return Object.freeze({\n cwd,\n config,\n evals: Object.freeze([...evals]),\n experiments: Object.freeze([...experiments]),\n ...(input.planningServices === undefined\n ? {}\n : { planningServices: input.planningServices }),\n });\n });\n}\nfunction runForExperiment(experiment: DiscoveredExperiment, selectedEvalIds: readonly string[]): AgentRun {\n return Object.freeze({\n agent: experiment.agent,\n ...(experiment.model === undefined ? {} : { model: experiment.model }),\n ...(experiment.reasoningEffort === undefined\n ? {}\n : { reasoningEffort: experiment.reasoningEffort }),\n flags: experiment.flags,\n plugins: experiment.plugins,\n attempts: experiment.attempts,\n earlyExit: experiment.earlyExit,\n ...(experiment.sandbox === undefined ? {} : { sandbox: experiment.sandbox }),\n sandboxReuse: experiment.sandboxReuse,\n ...(experiment.sharedState === undefined ? {} : { sharedState: experiment.sharedState }),\n ...(experiment.judge === undefined ? {} : { judge: experiment.judge }),\n ...resolveRunTimeout(undefined, experiment.timeoutMs),\n ...(experiment.budget === undefined ? {} : { budget: experiment.budget }),\n experimentId: experiment.id,\n experimentBaseDir: experiment.baseDir,\n experimentSourcePath: experiment.sourcePath,\n ...(experiment.description === undefined\n ? {}\n : { description: experiment.description }),\n ...(Object.keys(experiment.labels).length === 0\n ? {}\n : { labels: experiment.labels }),\n selectedEvalIds: Object.freeze([...selectedEvalIds]),\n ...(experiment.maxConcurrency === undefined\n ? {}\n : { maxConcurrency: experiment.maxConcurrency }),\n ...(experiment.setup === undefined ? {} : { setup: experiment.setup }),\n ...(experiment.teardown === undefined ? {} : { teardown: experiment.teardown }),\n ...(experiment.classifyFailure === undefined\n ? {}\n : { classifyFailure: experiment.classifyFailure }),\n });\n}\nfunction adoptionRunContext(run: AgentRun): Either.Either<RunContext, ExplicitAdoptionError> {\n const context = canonicalizeRunContext({\n experimentId: run.experimentId,\n execution: {\n agentId: run.agent.name,\n model: run.model ?? null,\n reasoningEffort: run.reasoningEffort ?? null,\n flags: run.flags,\n },\n labels: run.labels ?? {},\n });\n return Either.isLeft(context)\n ? Either.left(adoptionError(\"adoption-target-invalid\", `Run Context for \"${run.experimentId}\" is invalid.`))\n : Either.right(context.right);\n}\nfunction currentTargetSlotIdentity(input: {\n readonly experimentId: string;\n readonly evalId: string;\n readonly attempt: number;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly timeout?: DurationLimit;\n}): Effect.Effect<{\n readonly slotId: SlotId;\n readonly evalId: EvalId;\n readonly attemptOrdinal: number;\n readonly executionIdentityDigest: ExecutionIdentityDigest;\n}, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const digestValue = slotExecutionIdentityDigestHex({\n experimentId: input.experimentId,\n evalId: input.evalId,\n attempt: input.attempt,\n input: input.inputIdentity,\n config: input.configIdentity,\n timeout: input.timeout === undefined\n ? null\n : { domain: input.timeout.domain, milliseconds: input.timeout.milliseconds },\n });\n const digest = yield* decodeBrandedId(ExecutionIdentityDigestSchema, digestValue, \"adoption-target-invalid\", \"Adoption target execution identity\");\n const evalId = yield* decodeBrandedId(EvalIdSchema, input.evalId, \"adoption-target-invalid\", \"Adoption target Eval\");\n const slotId = yield* decodeBrandedId(SlotIdSchema, `slot-${digest}`, \"adoption-target-invalid\", \"Adoption target Slot\");\n return Object.freeze({\n slotId,\n evalId,\n attemptOrdinal: input.attempt,\n executionIdentityDigest: digest,\n });\n });\n}\ninterface CurrentTargetPair {\n readonly pair: PreparedRunPair;\n readonly inputIdentity: EqualityToken;\n readonly configIdentity: EqualityToken;\n readonly timeout?: DurationLimit;\n}\n/**\n * Rebuilds current discovery, physical planning, config identity and timeout\n * before any adoption decision. It intentionally plans every selected Eval so\n * a produced Run has the complete current denominator rather than only the\n * manually adopted Members.\n */\nexport function prepareCurrentAdoptionTarget(input: {\n readonly project: AdoptionProject;\n readonly experimentId: string;\n readonly startedAt: UtcMillis;\n}): Effect.Effect<CurrentAdoptionTarget, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const experiment = input.project.experiments.find((candidate) => candidate.id === input.experimentId);\n if (experiment === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-experiment-not-found\", `Current discovery does not contain Experiment \"${input.experimentId}\".`));\n }\n const selection = yield* Effect.try({\n try: () => resolveExperimentEvals({\n experimentId: experiment.id,\n selector: experiment.evals,\n cliPatterns: [],\n evals: input.project.evals,\n }),\n catch: (cause) => adoptionError(\"adoption-target-invalid\", `Current Eval selection for \"${experiment.id}\" failed: ${safeMessage(cause)}`),\n });\n if (selection.selectedEvals.length === 0 || experiment.attempts < 1) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", `Current Experiment \"${experiment.id}\" has no selectable target Slots.`));\n }\n const run = runForExperiment(experiment, selection.selectedEvalIds);\n const context = yield* adoptionRunContext(run);\n const pairs = yield* prepareRunSandboxes(selection.selectedEvals, [run], input.project.planningServices, { configTimeoutMs: input.project.config.timeoutMs }).pipe(Effect.mapError((error) => adoptionError(\"adoption-target-planning-failed\", `Current planning for \"${experiment.id}\" failed: ${safeMessage(error)}`)));\n if (pairs.length !== selection.selectedEvals.length) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current planning for \"${experiment.id}\" did not return every selected Eval.`));\n }\n const projectPlan = yield* planPreparedProjectTarget(pairs, {\n configJudge: input.project.config.judge,\n }).pipe(Effect.mapError((cause) => adoptionError(\"adoption-target-planning-failed\", `Current identity planning for \"${experiment.id}\" failed: ${safeMessage(cause)}`)));\n const plannedPairs: CurrentTargetPair[] = [];\n for (const pair of pairs) {\n const fingerprint = projectPlan.plannedFingerprints.get(pair.key);\n const configHash = projectPlan.plannedConfigHashes.get(pair.key);\n if (fingerprint === undefined || configHash === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current identity planning omitted Eval \"${pair.evalDef.id}\".`));\n }\n const timeout = resolveAttemptTimeout(run, pair.evalDef, input.project.config);\n if (timeout !== undefined && !Number.isFinite(timeout.timeoutMs)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", `Current timeout for \"${pair.evalDef.id}\" is invalid.`));\n }\n plannedPairs.push(Object.freeze({\n pair,\n inputIdentity: Object.freeze({\n domain: ADOPTION_INPUT_IDENTITY_DOMAIN,\n value: fingerprint,\n }),\n configIdentity: Object.freeze({\n domain: ADOPTION_CONFIG_IDENTITY_DOMAIN,\n value: configHash,\n }),\n ...(timeout === undefined\n ? {}\n : {\n timeout: Object.freeze({\n domain: EXECUTION_DURATION_DOMAIN,\n milliseconds: timeout.timeoutMs,\n }),\n }),\n }));\n }\n const pairByEval = new Map<string, CurrentTargetPair>();\n for (const planned of plannedPairs) {\n if (pairByEval.has(planned.pair.evalDef.id)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current planning produced duplicate Eval \"${planned.pair.evalDef.id}\".`));\n }\n pairByEval.set(planned.pair.evalDef.id, planned);\n }\n const slots: CurrentAdoptionSlot[] = [];\n const seenSlots = new Set<string>();\n for (const evalDef of selection.selectedEvals) {\n const planned = pairByEval.get(evalDef.id);\n if (planned === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-target-planning-failed\", `Current planning omitted selected Eval \"${evalDef.id}\".`));\n }\n for (let attempt = 0; attempt < run.attempts; attempt += 1) {\n const identity = yield* currentTargetSlotIdentity({\n experimentId: experiment.id,\n evalId: evalDef.id,\n attempt,\n inputIdentity: planned.inputIdentity,\n configIdentity: planned.configIdentity,\n ...(planned.timeout === undefined ? {} : { timeout: planned.timeout }),\n });\n if (seenSlots.has(identity.slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current target produced duplicate Slot \"${identity.slotId}\".`));\n }\n seenSlots.add(identity.slotId);\n const targetSlot = Object.freeze({\n slotId: identity.slotId,\n experimentId: experiment.id,\n evalId: evalDef.id,\n attemptOrdinal: identity.attemptOrdinal,\n attempt,\n inputIdentity: planned.inputIdentity,\n configIdentity: planned.configIdentity,\n executionIdentityDigest: identity.executionIdentityDigest,\n ...(planned.timeout === undefined ? {} : { timeout: planned.timeout }),\n });\n slots.push(targetSlot);\n }\n }\n const byKey = new Map<string, CurrentAdoptionSlot>();\n for (const slot of slots)\n byKey.set(slotKey(slot.evalId, slot.attemptOrdinal), slot);\n const expectedSlots = Object.freeze([...slots]\n .map((slot) => Object.freeze({\n slotId: slot.slotId,\n evalId: Schema.decodeUnknownSync(EvalIdSchema)(slot.evalId),\n attemptOrdinal: slot.attemptOrdinal,\n executionIdentityDigest: slot.executionIdentityDigest,\n }))\n .sort((left, right) => left.slotId < right.slotId ? -1 : left.slotId > right.slotId ? 1 : 0));\n return Object.freeze({\n experimentId: experiment.id,\n startedAt: input.startedAt,\n context,\n expectedSlots,\n slots: Object.freeze([...slots]),\n slotFor: (evalId: string, attempt: number) => byKey.get(slotKey(evalId, attempt)),\n });\n });\n}\nfunction sourceCoreInvalid(message: string): ExplicitAdoptionError {\n return adoptionError(\"adoption-source-core-invalid\", message);\n}\n/** Locates one canonical short locator through the live Record Host session. */\nexport function resolveExplicitAttemptLocator(reader: RecordReadSession, text: string): Effect.Effect<ResolvedAdoptionAttempt, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const parsed = yield* parseExplicitAttemptLocator(text);\n const selected = yield* reader.selectRuns();\n const resolved = yield* resolveAttemptLocator({\n reader,\n selection: selected,\n locator: parsed.locator,\n });\n if (resolved.kind === \"not-found\") {\n return yield* Effect.fail(adoptionError(\"adoption-locator-not-found\", `No published current-Record Attempt matches locator \"${parsed.text}\".`));\n }\n if (resolved.kind === \"ambiguous\") {\n return yield* Effect.fail(adoptionError(\"adoption-locator-ambiguous\", `Locator \"${parsed.text}\" resolves to more than one immutable Attempt.`));\n }\n return yield* resolveAdoptionAttempt(reader, resolved.attempt, Object.freeze({\n text: parsed.text,\n locator: parsed.locator,\n attemptId: resolved.attempt.attemptId,\n }));\n });\n}\n/** Validates the origin anchor and evaluates its source Run/Slot metadata. */\nexport function resolveAdoptionAttempt(reader: RecordReadSession, attempt: SelectedAttemptRef, locator?: ExplicitAttemptLocator): Effect.Effect<ResolvedAdoptionAttempt, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const sourceLocator = locator ?? attemptLocatorFor(attempt.attemptId);\n const selected = yield* reader.selectRuns({ runIds: Object.freeze([attempt.originRunId]) });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no readable origin Run.`));\n }\n const originRun = yield* reader.readRun(selected.runRefs[0]!);\n if (originRun.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no readable origin Run.`));\n }\n const attemptRead = yield* reader.readAttempt(attempt);\n if (attemptRead.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Locator \"${sourceLocator.text}\" points at a missing or invalid source Attempt.`));\n }\n const originSlot = originRun.value.document.expectedSlots.find((slot) => slot.slotId === attemptRead.value.document.slotId);\n if (originSlot === undefined) {\n return yield* Effect.fail(sourceCoreInvalid(`Source locator \"${sourceLocator.text}\" has no origin Member.`));\n }\n const matchingMembers = originRun.value.members.filter((member) => member.attempt !== null\n && member.attempt.originRunId === attempt.originRunId\n && member.attempt.attemptId === attempt.attemptId);\n if (matchingMembers.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(matchingMembers.length === 0\n ? `Source locator \"${sourceLocator.text}\" has no origin Member.`\n : `Source origin Run for \"${sourceLocator.text}\" has duplicate origin Members.`));\n }\n return Object.freeze({\n locator: sourceLocator,\n attempt,\n origin: Object.freeze({\n runId: originRun.value.document.runId,\n slotId: originSlot.slotId,\n startedAt: originRun.value.document.startedAt,\n }),\n originExperimentId: originRun.value.document.experimentId,\n originEvalId: originSlot.evalId,\n originAttempt: originSlot.attemptOrdinal,\n executionIdentityDigest: originSlot.executionIdentityDigest,\n });\n });\n}\nexport interface AdoptionAttemptFacts {\n readonly outcome: AttemptOutcome;\n readonly verdict: VerdictState;\n}\n/** Reads the exact Core outcome and its Assertion-derived terminal Verdict together. */\nexport function readAdoptionAttemptFacts(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<AdoptionAttemptFacts, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const attempt = yield* reader.readAttempt(source.attempt);\n if (attempt.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-unavailable\", \"Source Attempt/Core is unavailable.\"));\n }\n const assertions = yield* reader.readAssertions(attempt.value.owner);\n if (assertions.state !== \"available\") {\n const detail = assertions.state === \"invalid\" ? \"invalid\" : assertions.state;\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-unavailable\", `Source Assertions is ${detail}.`));\n }\n const outcome = attempt.value.document.outcome;\n const verdict = foldVerdict({\n execution: outcome === \"errored\" || outcome === \"interrupted\"\n ? \"errored\"\n : \"completed\",\n explicitlySkipped: outcome === \"cancelled\",\n assertions: assertions.value.entries.map((entry) => Object.freeze({\n required: entry.result.gate !== \"not-gate\",\n result: entry.result,\n })),\n });\n return Object.freeze({ outcome, verdict });\n });\n}\nexport function readAdoptionVerdict(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<VerdictState, ExplicitAdoptionReadError> {\n return readAdoptionAttemptFacts(reader, source).pipe(Effect.map((facts) => facts.verdict));\n}\n/**\n * Timing is a fixed Observability fact. No missing, partial, or invalid\n * timing collection is eligible for adoption, including an unbounded target.\n */\nexport function readAdoptionExecutionDuration(reader: RecordReadSession, source: ResolvedAdoptionAttempt): Effect.Effect<DurationLimit, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const attempt = yield* reader.readAttempt(source.attempt);\n if (attempt.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" has no readable Attempt.`));\n }\n const observability = yield* reader.readAttemptObservability(attempt.value.owner);\n if (observability.state !== \"available\") {\n const detail = observability.state === \"invalid\" ? \"invalid\" : observability.state;\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" is ${detail}.`));\n }\n const duration = readAttemptExecutionDuration(observability.value);\n if (duration.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-observability-unavailable\", `Source timing for locator \"${source.locator.text}\" is ${duration.reason}.`));\n }\n return duration.duration;\n });\n}\nfunction executionIdentityComparison(input: {\n readonly source: ExecutionIdentityDigest;\n readonly target: ExecutionIdentityDigest;\n}): ComparisonProvenance {\n const reason = input.source === input.target\n ? \"execution-identity-match\"\n : \"execution-identity-mismatch\";\n return Object.freeze({\n attachment: \"core\" as const,\n recordedClaim: \"execution-identity\" as const,\n sourceState: \"available\" as const,\n result: reason.endsWith(\"-match\") ? \"match\" as const : \"mismatch\" as const,\n reason,\n });\n}\nfunction durationComparison(input: {\n readonly source: DurationLimit;\n readonly target?: DurationLimit;\n}): {\n readonly comparison: ComparisonProvenance;\n readonly failure?: \"adoption-duration-domain-mismatch\" | \"adoption-timeout-exceeded\";\n} {\n if (input.target === undefined) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"timeout-unbounded\",\n }),\n });\n }\n if (input.source.domain !== input.target.domain) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"mismatch\" as const,\n reason: \"duration-domain-mismatch\",\n }),\n failure: \"adoption-duration-domain-mismatch\",\n });\n }\n if (input.source.milliseconds > input.target.milliseconds) {\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"mismatch\" as const,\n reason: \"timeout-exceeded\",\n }),\n failure: \"adoption-timeout-exceeded\",\n });\n }\n return Object.freeze({\n comparison: Object.freeze({\n attachment: \"niceeval.observability\" as const,\n recordedClaim: \"execution-duration\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"duration-within-timeout\",\n }),\n });\n}\n/**\n * Builds one accepted reference intent. The Core combined execution identity\n * is compared exactly, but an explicit operator decision may accept a mismatch.\n * The folded Verdict and complete fixed Observability timing remain hard gates.\n */\nexport function prepareExplicitAdoptionMember(input: {\n readonly reader: RecordReadSession;\n readonly target: CurrentAdoptionTarget;\n readonly source: ResolvedAdoptionAttempt;\n readonly evalId: string;\n readonly attempt: number;\n readonly operatorReason?: string;\n}): Effect.Effect<ExplicitAdoptionMember, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n const target = input.target.slotFor(input.evalId, input.attempt);\n if (target === undefined) {\n const code = input.target.slots.some((slot) => slot.evalId === input.evalId)\n ? \"adoption-target-attempt-not-selected\"\n : \"adoption-target-eval-not-selected\";\n return yield* Effect.fail(adoptionError(code, `Current target ${input.target.experimentId}/${input.evalId} does not contain ordinal ${String(input.attempt)}.`));\n }\n const facts = yield* readAdoptionAttemptFacts(input.reader, input.source);\n const verdict = facts.verdict;\n if (facts.outcome !== \"completed\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-ineligible\", `Source locator \"${input.source.locator.text}\" has Attempt outcome \"${facts.outcome}\" and cannot be explicitly adopted.`));\n }\n if (verdict !== \"passed\" && verdict !== \"failed\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-verdict-ineligible\", `Source locator \"${input.source.locator.text}\" has Verdict \"${verdict}\" and cannot be explicitly adopted.`));\n }\n const executionDuration = yield* readAdoptionExecutionDuration(input.reader, input.source);\n const duration = durationComparison({\n source: executionDuration,\n target: target.timeout,\n });\n if (duration.failure !== undefined) {\n return yield* Effect.fail(adoptionError(duration.failure, duration.failure === \"adoption-timeout-exceeded\"\n ? `Source locator \"${input.source.locator.text}\" exceeds the current timeout.`\n : `Source locator \"${input.source.locator.text}\" uses an incomparable execution-duration domain.`));\n }\n const comparisons = Object.freeze([\n Object.freeze({\n attachment: \"core\" as const,\n recordedClaim: \"attempt-outcome\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"attempt-completed\",\n }),\n executionIdentityComparison({\n source: input.source.executionIdentityDigest,\n target: target.executionIdentityDigest,\n }),\n Object.freeze({\n attachment: \"niceeval.assertions\" as const,\n recordedClaim: \"assertion-verdict\" as const,\n sourceState: \"available\" as const,\n result: \"match\" as const,\n reason: \"verdict-eligible\",\n }),\n duration.comparison,\n ]);\n return Object.freeze({\n target,\n source: input.source,\n locator: input.source.locator.text,\n verdict,\n comparisons,\n ...(input.operatorReason === undefined\n ? {}\n : { operatorReason: input.operatorReason }),\n });\n });\n}\n/** Validates the exact Core Run denominator before the writer records Members. */\nfunction validateExplicitAdoptionMembers(input: {\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}): Effect.Effect<void, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n const expected = new Set<string>();\n for (const slot of input.target.expectedSlots) {\n if (expected.has(slot.slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-slot-duplicate\", `Current target lists Slot \"${slot.slotId}\" more than once.`));\n }\n expected.add(slot.slotId);\n }\n const targetSlots = new Set(input.target.slots.map((slot) => String(slot.slotId)));\n if (targetSlots.size !== expected.size\n || [...expected].some((slotId) => !targetSlots.has(slotId))) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", \"Current target Slot definitions do not exactly match its expected Slot denominator.\"));\n }\n const memberBySlot = new Set<string>();\n for (const member of input.members) {\n const slotId = String(member.target.slotId);\n if (!expected.has(slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-eval-not-selected\", `Explicit adoption selected Slot \"${slotId}\" outside the current target denominator.`));\n }\n if (memberBySlot.has(slotId)) {\n return yield* Effect.fail(adoptionError(\"adoption-target-member-duplicate\", `More than one source attempts to occupy target Slot \"${slotId}\".`));\n }\n memberBySlot.add(slotId);\n }\n return undefined;\n });\n}\n/**\n * Performs Core denominator and Member validation before a writer creates a\n * reference Run. This is the batch's no-business-write boundary.\n */\nexport function buildExplicitAdoptionRunPlan(input: {\n readonly intent: ExplicitAdoptionIntent;\n readonly target: CurrentAdoptionTarget;\n readonly members: readonly ExplicitAdoptionMember[];\n}): Effect.Effect<ExplicitAdoptionRunPlan, ExplicitAdoptionError> {\n return Effect.gen(function* () {\n if (input.members.length === 0) {\n return yield* Effect.fail(adoptionError(\"adoption-target-invalid\", \"Explicit adoption requires at least one reference Member.\"));\n }\n yield* validateExplicitAdoptionMembers(input);\n return Object.freeze({\n intent: input.intent,\n target: input.target,\n members: Object.freeze([...input.members]),\n });\n });\n}\n/** Writes only plans already built from this exact session's Host reader. */\nexport function commitExplicitAdoptionRunPlans(_reader: RecordReadSession, root: RecordRoot, plans: readonly ExplicitAdoptionRunPlan[]) {\n return Effect.forEach(plans, (plan) => Effect.gen(function* () {\n const experimentId = yield* decodeBrandedId(ExperimentIdSchema, plan.target.experimentId, \"adoption-target-invalid\", \"Adoption target Experiment\");\n const writer = yield* recordHost.current.createReferenceRun({\n root,\n experimentId,\n context: plan.target.context,\n startedAt: plan.target.startedAt,\n expectedSlots: plan.target.expectedSlots,\n });\n const accepted = new Set(plan.members.map((member) => String(member.target.slotId)));\n for (const member of plan.members) {\n yield* writer.recordAcceptedMembership({\n slotId: member.target.slotId,\n attempt: member.source.attempt,\n });\n }\n for (const slot of plan.target.expectedSlots) {\n if (accepted.has(String(slot.slotId)))\n continue;\n yield* writer.recordTerminalMember({\n slotId: slot.slotId,\n action: \"not-dispatched\",\n });\n }\n const sealed = yield* writer.seal({ completedAt: plan.target.startedAt });\n return receiptForPlan(plan, sealed.runId);\n }), { concurrency: 1 });\n}\nfunction receiptForPlan(plan: ExplicitAdoptionRunPlan, runId: RunId): ExplicitAdoptionRunReceipt {\n return Object.freeze({\n experimentId: plan.target.experimentId,\n runId,\n members: Object.freeze(plan.members.map((member) => Object.freeze({\n slotId: member.target.slotId,\n locator: member.locator,\n sourceRunId: member.source.origin.runId,\n attemptId: member.source.attempt.attemptId,\n }))),\n });\n}\n/** A fresh in-memory invocation identity never enters Record Core. */\nexport function createExplicitAdoptionInvocationId(mint: () => string = randomUUID): Effect.Effect<string> {\n return Effect.sync(() => `adoption-${mint()}`);\n}\nexport function adoptionStartedAt(input?: () => string | number): Effect.Effect<UtcMillis, ExplicitAdoptionError> {\n return Effect.sync(() => input?.() ?? Date.now()).pipe(Effect.flatMap((value) => {\n const millis = typeof value === \"number\" ? value : Date.parse(value);\n return utcMillis(millis);\n }));\n}\n/** Opens a Host read session only; dry callers must use this rather than a writer. */\nexport function withAdoptionReader<A, E, R>(input: {\n readonly root: RecordRoot;\n readonly use: (reader: RecordReadSession) => Effect.Effect<A, E, R>;\n}) {\n return Effect.scoped(Effect.gen(function* () {\n const reader = yield* recordHost.current.openRead({ root: input.root });\n return yield* input.use(reader);\n }));\n}\n/**\n * One Scope keeps the Host reader live while reference Runs are created, so\n * SelectedAttemptRefs remain valid through seal. Discovery still happens\n * before this Scope opens, so the first preflight writes nothing.\n */\nexport function withAdoptionCommitScope<A, E, R>(input: {\n readonly root: RecordRoot;\n readonly use: (reader: RecordReadSession) => Effect.Effect<A, E, R>;\n}) {\n return withAdoptionReader(input);\n}\nexport interface RenameSourceRun {\n readonly runId: RunId;\n readonly experimentId: ExperimentId;\n readonly startedAt: UtcMillis;\n readonly expectedSlots: readonly RecordSlotIdentity[];\n}\n/**\n * Selects one old Experiment Run without directory-time inference. Multiple\n * matching Runs require the caller to pass an exact RunId.\n */\nexport function resolveRenameSourceRun(input: {\n readonly reader: RecordReadSession;\n readonly oldId: string;\n readonly sourceRunId?: string;\n}): Effect.Effect<RenameSourceRun, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n if (input.sourceRunId !== undefined) {\n const runId = yield* decodeBrandedId(RunIdSchema, input.sourceRunId, \"adoption-source-run-not-found\", \"Rename source Run\");\n const selected = yield* input.reader.selectRuns({ runIds: Object.freeze([runId]) });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `Rename source Run \"${input.sourceRunId}\" is not a published readable Run.`));\n }\n const run = yield* input.reader.readRun(selected.runRefs[0]!);\n if (run.state !== \"available\") {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `Rename source Run \"${input.sourceRunId}\" is not a published readable Run.`));\n }\n if (run.value.document.experimentId !== input.oldId) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-mismatch\", `Run \"${input.sourceRunId}\" does not belong to old Experiment \"${input.oldId}\".`));\n }\n return Object.freeze({\n runId: run.value.document.runId,\n experimentId: run.value.document.experimentId,\n startedAt: run.value.document.startedAt,\n expectedSlots: run.value.document.expectedSlots,\n });\n }\n const selected = yield* input.reader.selectRuns();\n let first: RenameSourceRun | undefined;\n for (const ref of selected.runRefs) {\n const run = yield* input.reader.readRun(ref);\n if (run.state !== \"available\")\n continue;\n if (run.value.document.experimentId !== input.oldId)\n continue;\n const current = Object.freeze({\n runId: run.value.document.runId,\n experimentId: run.value.document.experimentId,\n startedAt: run.value.document.startedAt,\n expectedSlots: run.value.document.expectedSlots,\n });\n if (first !== undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-required\", `Old Experiment \"${input.oldId}\" has multiple published Runs; select one exact source RunId.`));\n }\n first = current;\n }\n if (first === undefined) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-not-found\", `No published source Run belongs to old Experiment \"${input.oldId}\".`));\n }\n return first;\n });\n}\nexport interface RenameAdoptionMember {\n readonly evalId: string;\n readonly attempt: number;\n readonly member: ExplicitAdoptionMember;\n}\nexport interface RenameAdoptionExcluded {\n readonly evalId: string;\n readonly attempt: number;\n readonly reason: \"source-member-missing\" | \"target-eval-not-selected\" | \"target-attempt-not-selected\";\n}\nexport interface RenameAdoptionPreflight {\n readonly sourceRun: RenameSourceRun;\n readonly members: readonly RenameAdoptionMember[];\n readonly excluded: readonly RenameAdoptionExcluded[];\n}\n/**\n * Reads exactly one selected old Run. Source slots omitted by the current\n * target are preview exclusions; every source Member that would be adopted is\n * fully validated before the caller is allowed to create a target Run.\n */\nexport function prepareRenameAdoptionMembers(input: {\n readonly reader: RecordReadSession;\n readonly oldId: string;\n readonly sourceRun: RenameSourceRun;\n readonly target: CurrentAdoptionTarget;\n readonly operatorReason: string;\n}): Effect.Effect<RenameAdoptionPreflight, ExplicitAdoptionReadError> {\n return Effect.gen(function* () {\n if (input.sourceRun.experimentId !== input.oldId) {\n return yield* Effect.fail(adoptionError(\"adoption-source-run-mismatch\", `Selected source Run \"${input.sourceRun.runId}\" does not belong to old Experiment \"${input.oldId}\".`));\n }\n const selected = yield* input.reader.selectRuns({\n runIds: Object.freeze([input.sourceRun.runId]),\n });\n if (selected.runRefs.length !== 1) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" is not a published readable Run.`));\n }\n const run = yield* input.reader.readRun(selected.runRefs[0]!);\n if (run.state !== \"available\") {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" is not a published readable Run.`));\n }\n const members: RenameAdoptionMember[] = [];\n const excluded: RenameAdoptionExcluded[] = [];\n const seenSourceSlots = new Set<string>();\n for (const sourceSlot of input.sourceRun.expectedSlots) {\n const slotId = sourceSlot.slotId;\n if (seenSourceSlots.has(slotId)) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Run \"${input.sourceRun.runId}\" repeats Slot \"${slotId}\".`));\n }\n seenSourceSlots.add(slotId);\n const attemptOrdinal = sourceSlot.attemptOrdinal;\n const targetSlot = input.target.slotFor(sourceSlot.evalId, attemptOrdinal);\n if (targetSlot === undefined) {\n const selectedEval = input.target.slots.some((slot) => slot.evalId === sourceSlot.evalId);\n excluded.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n reason: selectedEval\n ? \"target-attempt-not-selected\"\n : \"target-eval-not-selected\",\n }));\n continue;\n }\n const sourceMember = run.value.members.find((member) => member.document.slotId === slotId);\n if (sourceMember === undefined || sourceMember.attempt === null) {\n excluded.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n reason: \"source-member-missing\",\n }));\n continue;\n }\n const source = yield* resolveAdoptionAttempt(input.reader, sourceMember.attempt);\n if (source.originEvalId !== sourceSlot.evalId\n || source.originAttempt !== attemptOrdinal) {\n return yield* Effect.fail(sourceCoreInvalid(`Selected source Member for ${sourceSlot.evalId}/${String(attemptOrdinal)} does not retain a matching origin Attempt.`));\n }\n const member = yield* prepareExplicitAdoptionMember({\n reader: input.reader,\n target: input.target,\n source,\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n operatorReason: input.operatorReason,\n });\n members.push(Object.freeze({\n evalId: sourceSlot.evalId,\n attempt: attemptOrdinal,\n member,\n }));\n }\n return Object.freeze({\n sourceRun: input.sourceRun,\n members: Object.freeze(members),\n excluded: Object.freeze(excluded),\n });\n });\n}\n"]}
|