niceeval 0.16.3-canary.99 → 0.17.1
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/dist/cli/bootstrap.cjs +7 -1
- package/dist/cli/bootstrap.cjs.map +1 -1
- package/dist/cli/project-configuration.cjs +8 -11
- package/dist/cli/project-configuration.cjs.map +1 -1
- package/dist/expect/index.cjs.map +1 -1
- package/dist/expect/index.d.cts +2 -1
- package/dist/expect/index.d.mts +2 -1
- package/dist/expect/index.d.ts +2 -1
- package/dist/experiment/host/cli/contribution.cjs +6 -11
- package/dist/experiment/host/cli/contribution.cjs.map +1 -1
- package/dist/experiment/host/cli/contribution.d.cts +0 -16
- package/dist/experiment/host/cli/contribution.d.mts +0 -16
- package/dist/experiment/host/cli/contribution.d.ts +0 -16
- package/dist/experiment/host/operations.cjs +3 -3
- package/dist/experiment/host/operations.cjs.map +1 -1
- package/dist/experiment/host/types.cjs.map +1 -1
- package/dist/experiment/host/types.d.cts +0 -4
- package/dist/experiment/host/types.d.mts +0 -4
- package/dist/experiment/host/types.d.ts +0 -4
- package/dist/fresh-import.cjs +2 -2
- package/dist/fresh-import.cjs.map +1 -1
- package/dist/fresh-import.d.cts +3 -3
- package/dist/fresh-import.d.mts +3 -3
- package/dist/fresh-import.d.ts +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/inspection/codec.cjs.map +1 -1
- package/dist/inspection/codec.d.cts +1 -1
- package/dist/inspection/codec.d.mts +1 -1
- package/dist/inspection/codec.d.ts +1 -1
- package/dist/inspection/facts.cjs +66 -9
- package/dist/inspection/facts.cjs.map +1 -1
- package/dist/inspection/facts.d.cts +4 -0
- package/dist/inspection/facts.d.mts +4 -0
- package/dist/inspection/facts.d.ts +4 -0
- package/dist/inspection/facts.js +4 -2
- package/dist/inspection/index.cjs +1 -3
- package/dist/inspection/index.cjs.map +1 -1
- package/dist/inspection/index.d.cts +1 -1
- package/dist/inspection/index.d.mts +1 -1
- package/dist/inspection/index.d.ts +1 -1
- package/dist/inspection/index.js +44 -48
- package/dist/inspection/limits.cjs +3 -1
- package/dist/inspection/limits.cjs.map +1 -1
- package/dist/inspection/limits.d.cts +2 -0
- package/dist/inspection/limits.d.mts +2 -0
- package/dist/inspection/limits.d.ts +2 -0
- package/dist/inspection/limits.js +6 -4
- package/dist/inspection/project-source.cjs +4 -1
- package/dist/inspection/project-source.cjs.map +1 -1
- package/dist/inspection/protocol.cjs +10 -18
- package/dist/inspection/protocol.cjs.map +1 -1
- package/dist/inspection/protocol.d.cts +111 -173
- package/dist/inspection/protocol.d.mts +111 -173
- package/dist/inspection/protocol.d.ts +111 -173
- package/dist/inspection/public.mjs +73 -109
- package/dist/inspection/results.cjs +12 -48
- package/dist/inspection/results.cjs.map +1 -1
- package/dist/inspection/results.d.cts +124 -122
- package/dist/inspection/results.d.mts +124 -122
- package/dist/inspection/results.d.ts +124 -122
- package/dist/inspection/results.js +16 -20
- package/dist/inspection/select.cjs +80 -117
- package/dist/inspection/select.cjs.map +1 -1
- package/dist/inspection/source.cjs +14 -15
- package/dist/inspection/source.cjs.map +1 -1
- package/dist/inspection/source.d.cts +6 -3
- package/dist/inspection/source.d.mts +6 -3
- package/dist/inspection/source.d.ts +6 -3
- package/dist/inspection/trace.cjs +1 -1
- package/dist/inspection/trace.cjs.map +1 -1
- package/dist/load-config.cjs +17 -11
- package/dist/load-config.cjs.map +1 -1
- package/dist/load-config.d.cts +3 -2
- package/dist/load-config.d.mts +3 -2
- package/dist/load-config.d.ts +3 -2
- package/dist/o11y/adapter-usage-projection.cjs +5 -1
- package/dist/o11y/adapter-usage-projection.cjs.map +1 -1
- package/dist/o11y/adapter-usage-projection.d.cts +109 -1
- package/dist/o11y/adapter-usage-projection.d.mts +109 -1
- package/dist/o11y/adapter-usage-projection.d.ts +109 -1
- package/dist/o11y/cache-read.cjs +113 -0
- package/dist/o11y/cache-read.cjs.map +1 -0
- package/dist/o11y/cache-read.d.cts +80 -0
- package/dist/o11y/cache-read.d.mts +80 -0
- package/dist/o11y/cache-read.d.ts +80 -0
- package/dist/o11y/cache-read.js +8 -0
- package/dist/o11y/cache-read.js.map +1 -0
- package/dist/o11y/eval-usage.cjs +22 -1
- package/dist/o11y/eval-usage.cjs.map +1 -1
- package/dist/o11y/eval-usage.d.cts +9 -1
- package/dist/o11y/eval-usage.d.mts +9 -1
- package/dist/o11y/eval-usage.d.ts +9 -1
- package/dist/record/host/sqlite-host.cjs +188 -53
- package/dist/record/host/sqlite-host.cjs.map +1 -1
- package/dist/record/host/sqlite-host.d.cts +37 -1
- package/dist/record/host/sqlite-host.d.mts +37 -1
- package/dist/record/host/sqlite-host.d.ts +37 -1
- package/dist/record/host/sqlite-host.js +16 -8
- package/dist/record/maintenance/runtime.cjs +3 -3
- package/dist/record/maintenance/runtime.cjs.map +1 -1
- package/dist/record/sqlite/admission-repository.cjs +18 -18
- package/dist/record/sqlite/admission-repository.cjs.map +1 -1
- package/dist/record/sqlite/case-repository.cjs +6 -6
- package/dist/record/sqlite/case-repository.cjs.map +1 -1
- package/dist/record/sqlite/coordination-repository.cjs +25 -25
- package/dist/record/sqlite/coordination-repository.cjs.map +1 -1
- package/dist/record/sqlite/current-schema.cjs +115 -111
- package/dist/record/sqlite/current-schema.cjs.map +1 -1
- package/dist/record/sqlite/current-schema.d.cts +3 -3
- package/dist/record/sqlite/current-schema.d.mts +3 -3
- package/dist/record/sqlite/current-schema.d.ts +3 -3
- package/dist/record/sqlite/database.cjs +56 -53
- package/dist/record/sqlite/database.cjs.map +1 -1
- package/dist/record/sqlite/index.cjs +3 -1
- package/dist/record/sqlite/index.cjs.map +1 -1
- package/dist/record/sqlite/index.d.cts +5 -2
- package/dist/record/sqlite/index.d.mts +5 -2
- package/dist/record/sqlite/index.d.ts +5 -2
- package/dist/record/sqlite/legacy-schema-018.cjs +443 -0
- package/dist/record/sqlite/legacy-schema-018.cjs.map +1 -0
- package/dist/record/sqlite/legacy-schema-018.d.cts +6 -0
- package/dist/record/sqlite/legacy-schema-018.d.mts +6 -0
- package/dist/record/sqlite/legacy-schema-018.d.ts +6 -0
- package/dist/record/sqlite/legacy-schema-018.js +6 -0
- package/dist/record/sqlite/legacy-schema-018.js.map +1 -0
- package/dist/record/sqlite/migration.cjs +105 -46
- package/dist/record/sqlite/migration.cjs.map +1 -1
- package/dist/record/sqlite/migration.d.cts +2 -1
- package/dist/record/sqlite/migration.d.mts +2 -1
- package/dist/record/sqlite/migration.d.ts +2 -1
- package/dist/record/sqlite/portable-capture.cjs +13 -13
- package/dist/record/sqlite/portable-capture.cjs.map +1 -1
- package/dist/record/sqlite/registry-repository.cjs +22 -22
- package/dist/record/sqlite/registry-repository.cjs.map +1 -1
- package/dist/record/sqlite/schema.cjs +10 -2
- package/dist/record/sqlite/schema.cjs.map +1 -1
- package/dist/record/sqlite/schema.d.cts +4 -1
- package/dist/record/sqlite/schema.d.mts +4 -1
- package/dist/record/sqlite/schema.d.ts +4 -1
- package/dist/record/sqlite/schema.js +20 -14
- package/dist/record/sqlite/storage-worker.cjs +1 -1
- package/dist/record/sqlite/storage-worker.cjs.map +1 -1
- package/dist/record/sqlite/storage.cjs +316 -232
- package/dist/record/sqlite/storage.cjs.map +1 -1
- package/dist/record/sqlite/storage.d.cts +10 -2
- package/dist/record/sqlite/storage.d.mts +10 -2
- package/dist/record/sqlite/storage.d.ts +10 -2
- package/dist/record/sqlite/storage.js +54 -50
- package/dist/record/sqlite/types.cjs +1 -1
- package/dist/record/sqlite/types.cjs.map +1 -1
- package/dist/record/sqlite/types.d.cts +13 -1
- package/dist/record/sqlite/types.d.mts +13 -1
- package/dist/record/sqlite/types.d.ts +13 -1
- package/dist/run/cli/contribution.cjs +17 -12
- package/dist/run/cli/contribution.cjs.map +1 -1
- package/dist/run/host/lifecycle-adapter.cjs +1 -1
- package/dist/run/host/lifecycle-adapter.cjs.map +1 -1
- package/dist/run/storage/owner-identity.cjs +78 -16
- package/dist/run/storage/owner-identity.cjs.map +1 -1
- package/dist/run/storage/owner-identity.d.cts +2 -1
- package/dist/run/storage/owner-identity.d.mts +2 -1
- package/dist/run/storage/owner-identity.d.ts +2 -1
- package/dist/run/storage/sqlite.cjs +55 -55
- package/dist/run/storage/sqlite.cjs.map +1 -1
- package/dist/runner/accept.cjs +12 -42
- package/dist/runner/accept.cjs.map +1 -1
- package/dist/runner/accept.d.cts +2 -3
- package/dist/runner/accept.d.mts +2 -3
- package/dist/runner/accept.d.ts +2 -3
- package/dist/runner/adapter-usage.cjs +2 -2
- package/dist/runner/adapter-usage.cjs.map +1 -1
- package/dist/runner/adoption.cjs +14 -26
- package/dist/runner/adoption.cjs.map +1 -1
- package/dist/runner/adoption.d.cts +5 -13
- package/dist/runner/adoption.d.mts +5 -13
- package/dist/runner/adoption.d.ts +5 -13
- package/dist/runner/adoption.js +2 -4
- package/dist/runner/record.cjs +24 -18
- package/dist/runner/record.cjs.map +1 -1
- package/dist/runner/rename-experiment.cjs +5 -7
- package/dist/runner/rename-experiment.cjs.map +1 -1
- package/dist/runner/reuse-plan.cjs +37 -18
- package/dist/runner/reuse-plan.cjs.map +1 -1
- package/dist/runner/reuse-plan.d.cts +4 -1
- package/dist/runner/reuse-plan.d.mts +4 -1
- package/dist/runner/reuse-plan.d.ts +4 -1
- package/dist/runner/setup-prefix-plan.cjs +17 -12
- package/dist/runner/setup-prefix-plan.cjs.map +1 -1
- package/dist/runner/setup-prefix-plan.d.cts +0 -2
- package/dist/runner/setup-prefix-plan.d.mts +0 -2
- package/dist/runner/setup-prefix-plan.d.ts +0 -2
- package/dist/runner/setup-prefix-plan.js +8 -12
- package/dist/sandbox/backend.cjs +10 -1
- package/dist/sandbox/backend.cjs.map +1 -1
- package/dist/sandbox/backend.d.cts +16 -8
- package/dist/sandbox/backend.d.mts +16 -8
- package/dist/sandbox/backend.d.ts +16 -8
- package/dist/sandbox/backend.js +28 -26
- package/dist/sandbox/docker.cjs +7 -1
- package/dist/sandbox/docker.cjs.map +1 -1
- package/dist/sandbox/e2b-cache-repository.cjs +13 -3
- package/dist/sandbox/e2b-cache-repository.cjs.map +1 -1
- package/dist/sandbox/e2b-cache-repository.d.cts +3 -0
- package/dist/sandbox/e2b-cache-repository.d.mts +3 -0
- package/dist/sandbox/e2b-cache-repository.d.ts +3 -0
- package/dist/sandbox/e2b-cache-repository.js +16 -12
- package/dist/sandbox/e2b.cjs +2 -2
- package/dist/sandbox/e2b.cjs.map +1 -1
- package/dist/sandbox/incus/materialize.cjs +1 -1
- package/dist/sandbox/incus/materialize.cjs.map +1 -1
- package/dist/show/contribution.cjs +3 -3
- package/dist/show/contribution.cjs.map +1 -1
- package/dist/show/model.cjs +14 -13
- package/dist/show/model.cjs.map +1 -1
- package/dist/show/model.d.cts +7 -7
- package/dist/show/model.d.mts +7 -7
- package/dist/show/model.d.ts +7 -7
- package/dist/show/render.cjs +14 -0
- package/dist/show/render.cjs.map +1 -1
- package/dist/user-database/storage-worker.cjs +13 -3
- package/dist/user-database/storage-worker.cjs.map +1 -1
- package/dist/view/app-dist/.vite/manifest.json +2 -2
- package/dist/view/app-dist/assets/{index-CmVoXbwG.js → index-B3ijZRph.js} +17 -17
- package/dist/view/app-dist/assets/{quality-cost-scatter-BuLISaH4.js → quality-cost-scatter-B--DfJ9s.js} +1 -1
- package/dist/view/app-dist/index.html +1 -1
- package/dist/view/application-runtime.cjs +8 -0
- package/dist/view/application-runtime.cjs.map +1 -0
- package/dist/view/application-runtime.d.cts +9 -0
- package/dist/view/application-runtime.d.mts +9 -0
- package/dist/view/application-runtime.d.ts +9 -0
- package/dist/view/application-runtime.js +6 -0
- package/dist/view/application-runtime.js.map +1 -0
- package/dist/view/cli/contribution.cjs +5 -2
- package/dist/view/cli/contribution.cjs.map +1 -1
- package/dist/view/cli/contribution.d.cts +2 -1
- package/dist/view/cli/contribution.d.mts +2 -1
- package/dist/view/cli/contribution.d.ts +2 -1
- package/dist/view/function-runtime.mjs +1019 -456
- package/dist/view/http-protocol.d.cts +1 -9
- package/dist/view/http-protocol.d.mts +1 -9
- package/dist/view/http-protocol.d.ts +1 -9
- package/dist/view/inspection-host.cjs +39 -30
- package/dist/view/inspection-host.cjs.map +1 -1
- package/dist/view/inspection-host.d.cts +7545 -2
- package/dist/view/inspection-host.d.mts +7545 -2
- package/dist/view/inspection-host.d.ts +7545 -2
- package/dist/view/server.cjs +8 -5
- package/dist/view/server.cjs.map +1 -1
- package/dist/view/server.d.cts +4 -2
- package/dist/view/server.d.mts +4 -2
- package/dist/view/server.d.ts +4 -2
- package/docs-site/zh/reference/cli.mdx +1 -2
- package/docs-site/zh/tutorials/control-run-cost.mdx +61 -0
- package/docs-site/zh/tutorials/niceeval-taste-application.mdx +21 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["protocol.ts"],"names":[],"mappings":";;;AA4NA,4DAKC;AACD,0DAIC;AACD,kEAIC;AA3OD,4CAA4C;AAC5C,wDAAwD;AACxD,8DAA8D;AAC9D,wFAAwF;AACxF,mCAAwC;AACxC,4DAAuE;AACvE,8DAAgE;AAChE,mEAAmG;AACnG,iDAA+H;AAC/H,qDAA4D;AAC5D,yDAA0I;AAC1I,uEAAqG;AACrG,6DAAmF;AACnF,uEAAwE;AACxE,2DAAoE;AACpE,6CAA2a;AAC3a,MAAM,oBAAoB,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,eAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,4CAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC,CAAC,CAAC;AACzN,MAAM,YAAY,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,eAAM,CAAC,KAAK,CAAC,eAAM,CAAC,UAAU,CAAC,mBAAQ,CAAC,CAAC,CAAC,C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E,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,wBAAwB,WAAW,cAAc,QAAQ,CAAC,OAAO,GAAG,WAAW,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;AACpK,CAAC","sourcesContent":["// @concord-file ne-eval-inspection-protocol\n// @concord-implements docs/feature/inspection/README.md\n// @concord-implements docs/feature/inspection/architecture.md\n// @concord-implements docs/feature/inspection/use-case/inspection-check-completeness.md\nimport { Result, Schema } from \"effect\";\nimport { AssertionEntryIdSchema } from \"../assertions/record/codec.ts\";\nimport { ATTEMPT_LOCATOR_PATTERN } from \"../attempt-locator.ts\";\nimport { ArtifactIdSchema, ExperimentIdSchema, RunIdSchema } from \"../record/codec/identifiers.ts\";\nimport { InspectionArtifactLimitSchema, InspectionArtifactOffsetSchema, InspectionArtifactResultSchema } from \"./artifacts.ts\";\nimport { RunDocumentSchema } from \"../record/codec/core.ts\";\nimport { InspectionArtifactMetadataSchema, InspectionArtifactsPageLimitSchema, InspectionArtifactsValueSchema } from \"./artifact-list.ts\";\nimport { isCommandId, isItemId, isToolOccurrenceId } from \"../record/family/source-receipt/model.ts\";\nimport { INSPECTION_BEHAVIOR_VERSION, QUERY_PROTOCOL } from \"./protocol-values.ts\";\nimport { AssertionDetailResultSchema } from \"./assertion-projection.ts\";\nimport { InspectionProjectResultSchema } from \"./project-result.ts\";\nimport { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunOverviewResultSchema, InspectionRunResultSchema, InspectionRunSummaryResultSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, } from \"./results.ts\";\nconst AttemptLocatorSchema = Schema.String.pipe(Schema.refine((value): value is string => ATTEMPT_LOCATOR_PATTERN.test(value), { identifier: \"AttemptLocator\", description: \"a canonical @-prefixed Attempt locator\" }));\nconst ItemIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isItemId)));\nconst ToolOccurrenceIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isToolOccurrenceId)));\nconst CommandIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isCommandId)));\nconst RunIdsSchema = Schema.Array(RunIdSchema);\nconst ProjectExperimentIdsSchema = Schema.Array(ExperimentIdSchema).check(Schema.makeFilter((ids) => ids.length > 0 && new Set(ids).size === ids.length));\nconst operation = <Kind extends string, Fields extends Schema.Struct.Fields>(kind: Kind, fields: Fields) => Schema.Struct({ kind: Schema.Literal(kind), ...fields });\nconst SourceSchema = Schema.Struct({\n kind: Schema.Literals([\"project-record\", \"external-record\"]), sealedCutoffIdentity: Schema.String,\n});\nconst SealedCutoffSchema = Schema.Struct({\n kind: Schema.Literal(\"inspection-sealed-cutoff\"), identity: Schema.String, runCount: Schema.Number,\n runs: Schema.Array(Schema.Struct({ runId: Schema.String, logicalSealIdentity: Schema.String })),\n});\nconst SelectionSchema = Schema.Struct({\n requestedRunIds: Schema.Array(Schema.String), selectedRunIds: Schema.Array(Schema.String), missingRunIds: Schema.Array(Schema.String),\n});\nconst SuccessMetadataSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"success\"),\n behaviorVersion: Schema.Literal(INSPECTION_BEHAVIOR_VERSION),\n source: SourceSchema, sealedCutoff: SealedCutoffSchema, selection: SelectionSchema,\n issues: Schema.Tuple([]), evidence: Schema.Struct({ refs: Schema.Array(Schema.String) }),\n});\nconst RunsListSuccessMetadataSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"success\"),\n behaviorVersion: Schema.Literal(INSPECTION_BEHAVIOR_VERSION),\n source: SourceSchema,\n sealedCutoff: Schema.Struct({ kind: Schema.Literal(\"inspection-sealed-cutoff\"), identity: Schema.String, runCount: Schema.Number }),\n selection: Schema.Struct({\n requestedRunIds: Schema.Array(Schema.String), selectedRunIds: Schema.Array(Schema.String), missingRunIds: Schema.Array(Schema.String),\n returnedRunCount: Schema.Number, totalRunCount: Schema.Number, truncated: Schema.Boolean,\n }),\n issues: Schema.Tuple([]), evidence: Schema.Struct({ refs: Schema.Array(Schema.String) }),\n});\nconst CompareIssueSchema = Schema.Union([\n Schema.Struct({ code: Schema.Literal(\"selection-run-missing\"), side: Schema.Literals([\"left\", \"right\"]), runId: Schema.String }),\n Schema.Struct({ code: Schema.Literal(\"comparison-member-set-mismatch\") }),\n]);\nconst CompareSuccessMetadataSchema = SuccessMetadataSchema.pipe(Schema.fieldsAssign({ issues: Schema.Array(CompareIssueSchema) }));\nconst ArtifactsResultSchema = Schema.Union([\n Schema.Struct({ state: Schema.Literal(\"not-recorded\") }),\n Schema.Struct({\n state: Schema.Literal(\"available\"), value: InspectionArtifactsValueSchema,\n collection: Schema.Struct({ state: Schema.Literals([\"complete-page\", \"bounded-page\"]), items: Schema.Array(InspectionArtifactMetadataSchema), hasMore: Schema.Boolean, nextOffset: Schema.NullOr(InspectionArtifactOffsetSchema), total: InspectionArtifactOffsetSchema }),\n contents: Schema.Array(Schema.Struct({ logicalHandle: Schema.String, byteLength: Schema.Number, digest: Schema.String })),\n contentsTruncated: Schema.Boolean,\n }),\n]);\nconst SealedRunSummarySchema = Schema.Struct({\n runId: Schema.String, writerGeneration: Schema.String, startedAt: Schema.String, logicalSealIdentity: Schema.String,\n slotCount: Schema.Number, memberCount: Schema.Number, attemptCount: Schema.Number, attachmentCount: Schema.Number,\n contentCount: Schema.Number, contentByteLength: Schema.Number, sealEntryCount: Schema.Number,\n});\nconst ComparisonMemberSchema = Schema.Struct({\n key: Schema.String, runId: Schema.String, slotId: Schema.String, evalId: Schema.String,\n attemptOrdinal: Schema.Number, locator: Schema.String,\n});\nconst RunsCompareResultSchema = Schema.Struct({\n mode: Schema.Literals([\"side-by-side\", \"exact\", \"paired\"]),\n left: Schema.Struct({ runs: Schema.Array(RunDocumentSchema), members: Schema.Array(ComparisonMemberSchema) }),\n right: Schema.Struct({ runs: Schema.Array(RunDocumentSchema), members: Schema.Array(ComparisonMemberSchema) }),\n exactMemberSet: Schema.Boolean,\n pairs: Schema.Array(Schema.Struct({ key: Schema.String, left: ComparisonMemberSchema, right: ComparisonMemberSchema })),\n});\nconst spec = <Request extends Schema.Constraint, ResultFields extends Schema.Struct.Fields, const FactKinds extends readonly string[]>(fields: {\n readonly request: Request;\n readonly result: ResultFields;\n readonly factKinds: FactKinds;\n}) => Object.freeze(fields);\n/** The sole protocol catalog owner. Every request, result and descriptor projection is derived from this registry. */\nexport const inspectionProtocolRegistry = Object.freeze({\n \"project.get\": spec({ request: operation(\"project.get\", { experimentIds: Schema.optional(ProjectExperimentIdsSchema) }), result: { project: InspectionProjectResultSchema }, factKinds: [\"current-project\", \"core\", \"assertions\", \"attempt-cost\"] }),\n \"overview.get\": spec({ request: operation(\"overview.get\", { runIds: Schema.optional(RunIdsSchema) }), result: { overview: InspectionOverviewResultSchema }, factKinds: [\"core\", \"assertions\", \"attempt-cost\"] }),\n \"experiment.get\": spec({ request: operation(\"experiment.get\", { experimentId: ExperimentIdSchema }), result: { experiment: InspectionExperimentResultSchema }, factKinds: [\"core\", \"assertions\", \"attempt-cost\", \"agent-turns\", \"adapter-usage\", \"judge-usage\"] }),\n \"runs.list\": spec({ request: operation(\"runs.list\", { continuation: Schema.optional(Schema.String) }), result: { runs: Schema.Array(SealedRunSummarySchema), continuation: Schema.optional(Schema.String) }, factKinds: [\"core\"] }),\n \"run.get\": spec({ request: operation(\"run.get\", { runId: RunIdSchema }), result: { run: InspectionRunResultSchema }, factKinds: [\"core\"] }),\n \"run.summary\": spec({ request: operation(\"run.summary\", { runId: RunIdSchema }), result: { summary: InspectionRunSummaryResultSchema }, factKinds: [\"core\", \"assertions\", \"agent-turns\"] }),\n \"run.overview\": spec({ request: operation(\"run.overview\", { runId: RunIdSchema }), result: { runOverview: InspectionRunOverviewResultSchema }, factKinds: [\"core\", \"assertions\", \"agent-turns\"] }),\n \"attempt.get\": spec({ request: operation(\"attempt.get\", { locator: AttemptLocatorSchema }), result: { attempt: InspectionAttemptResultSchema }, factKinds: [\"core\", \"assertions\"] }),\n \"attempt.assertion.detail\": spec({ request: operation(\"attempt.assertion.detail\", { locator: AttemptLocatorSchema, entryId: AssertionEntryIdSchema }), result: { assertion: AssertionDetailResultSchema }, factKinds: [\"assertions\", \"agent-turns\", \"sources\"] }),\n \"attempt.assertion.image\": spec({ request: operation(\"attempt.assertion.image\", { locator: AttemptLocatorSchema,\n entryId: AssertionEntryIdSchema, imageId: Schema.String,\n offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactLimitSchema) }),\n result: { image: Schema.Union([\n Schema.Struct({ state: Schema.Literal(\"available\"), imageId: Schema.String, mediaType: Schema.Literals([\"image/png\", \"image/jpeg\"]),\n byteLength: Schema.Number, sha256: Schema.String, offset: Schema.Number, base64: Schema.String, nextOffset: Schema.NullOr(Schema.Number) }),\n Schema.Struct({ state: Schema.Literal(\"invalid\") }), Schema.Struct({ state: Schema.Literal(\"not-recorded\") }),\n ]) }, factKinds: [\"assertions\"] }),\n \"attempt.trace\": spec({ request: operation(\"attempt.trace\", {\n locator: AttemptLocatorSchema,\n traceId: Schema.optional(Schema.String),\n sourceId: Schema.optional(Schema.String),\n actorId: Schema.optional(Schema.String),\n eventType: Schema.optional(Schema.String),\n continuation: Schema.optional(Schema.String),\n }), result: { trace: InspectionTraceResultSchema }, factKinds: [\"execution-traces\", \"agent-turns\", \"turn-contexts\", \"sandbox-commands\", \"runner-activities\", \"runner-diagnostics\"] }),\n \"attempt.trace.detail\": spec({ request: operation(\"attempt.trace.detail\", { locator: AttemptLocatorSchema, selector: Schema.Union([\n operation(\"execution-event\", { eventId: Schema.String }),\n operation(\"execution-evidence\", {\n evidenceId: Schema.String,\n offset: Schema.optional(InspectionArtifactOffsetSchema),\n limit: Schema.optional(InspectionArtifactLimitSchema),\n }),\n operation(\"item\", { itemId: ItemIdSchema }),\n operation(\"tool-occurrence\", { toolOccurrenceId: ToolOccurrenceIdSchema }),\n operation(\"command\", { commandId: CommandIdSchema }),\n ]) }), result: { detail: InspectionTraceDetailResultSchema }, factKinds: [\"execution-traces\", \"agent-turns\", \"sandbox-commands\", \"artifacts\"] }),\n \"attempt.timing\": spec({ request: operation(\"attempt.timing\", { locator: AttemptLocatorSchema }), result: { timing: InspectionAttemptTimingResultSchema }, factKinds: [\"runner-activities\"] }),\n \"attempt.usage\": spec({ request: operation(\"attempt.usage\", { locator: AttemptLocatorSchema }), result: { usage: InspectionAttemptUsageResultSchema }, factKinds: [\"agent-turns\", \"adapter-usage\", \"judge-usage\"] }),\n \"attempt.diff\": spec({ request: operation(\"attempt.diff\", { locator: AttemptLocatorSchema }), result: { diff: InspectionAttemptDiffResultSchema }, factKinds: [\"file-changes\"] }),\n \"attempt.sources\": spec({ request: operation(\"attempt.sources\", { locator: AttemptLocatorSchema }), result: { sources: InspectionSourcesResultSchema }, factKinds: [\"assertions\", \"sources\"] }),\n \"attempt.artifacts\": spec({ request: operation(\"attempt.artifacts\", { locator: AttemptLocatorSchema, offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactsPageLimitSchema) }), result: { artifacts: ArtifactsResultSchema }, factKinds: [\"artifacts\"] }),\n \"attempt.artifact\": spec({ request: operation(\"attempt.artifact\", { locator: AttemptLocatorSchema, artifactId: ArtifactIdSchema, offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactLimitSchema) }), result: { artifact: InspectionArtifactResultSchema }, factKinds: [\"artifacts\"] }),\n \"runs.compare\": spec({ request: operation(\"runs.compare\", { mode: Schema.Literals([\"side-by-side\", \"exact\", \"paired\"]), leftRunIds: RunIdsSchema, rightRunIds: RunIdsSchema }), result: { comparison: RunsCompareResultSchema }, factKinds: [\"core\"] }),\n});\nexport type InspectionOperationId = keyof typeof inspectionProtocolRegistry;\nexport const INSPECTION_OPERATION_IDS = Object.freeze(Object.keys(inspectionProtocolRegistry) as InspectionOperationId[]);\nexport const InspectionOperationIdSchema = Schema.Literals(INSPECTION_OPERATION_IDS);\nconst specs = Object.entries(inspectionProtocolRegistry);\nexport const InspectionRequestSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL),\n operation: Schema.Union(specs.map(([, entry]) => entry.request)),\n});\nexport type InspectionRequest = Schema.Schema.Type<typeof InspectionRequestSchema>;\nexport type InspectionOperation = InspectionRequest[\"operation\"];\nexport type InspectionOperationFor<Kind extends InspectionOperationId> = Extract<InspectionOperation, {\n readonly kind: Kind;\n}>;\nconst successSchema = (id: InspectionOperationId, entry: (typeof inspectionProtocolRegistry)[InspectionOperationId]): Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded> => {\n const fields = Schema.fieldsAssign({ operation: Schema.Literal(id), ...entry.result });\n const schema = id === \"runs.list\" ? RunsListSuccessMetadataSchema.pipe(fields)\n : id === \"runs.compare\" ? CompareSuccessMetadataSchema.pipe(fields)\n : SuccessMetadataSchema.pipe(fields);\n // Object.entries erases the ID/result correlation established by the registry.\n return schema as unknown as Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>;\n};\nexport const InspectionSuccessDocumentSchema: Schema.Union<readonly Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>[]> = Schema.Union(specs.map(([id, entry]) => successSchema(id as InspectionOperationId, entry)));\nconst explanationSchema = (id: InspectionOperationId, entry: (typeof inspectionProtocolRegistry)[InspectionOperationId]) => {\n const fields = Schema.fieldsAssign({\n outcome: Schema.Literal(\"explanation\"), operation: Schema.Literal(id),\n factKinds: Schema.Tuple(entry.factKinds.map((value) => Schema.Literal(value))),\n });\n if (id === \"runs.list\")\n return RunsListSuccessMetadataSchema.pipe(fields);\n return SuccessMetadataSchema.pipe(fields);\n};\nexport const InspectionExplanationDocumentSchema = Schema.Union(specs.map(([id, entry]) => explanationSchema(id as InspectionOperationId, entry)));\nconst DescriptorSchema = Schema.Union(specs.map(([id]) => Schema.Struct({ id: Schema.Literal(id as InspectionOperationId) })));\nexport const InspectionDiscoveryDocumentSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"discovery\"), operations: Schema.Array(DescriptorSchema),\n});\nexport const InspectionFailureDocumentSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"failure\"),\n operation: Schema.NullOr(InspectionOperationIdSchema),\n failure: Schema.Struct({\n code: Schema.Literals([\"inspection-request-invalid\", \"inspection-selection-missing\", \"inspection-source-invalid\", \"inspection-record-integrity-failure\", \"inspection-operation-failed\", \"inspection-result-invalid\", \"evidence-budget-exceeded\", \"restart-required\", \"current-target-unavailable\"]),\n reason: Schema.String,\n identity: Schema.optional(Schema.Struct({ runId: Schema.String })),\n correction: Schema.Literals([\"fix-request\", \"choose-existing-selection\", \"fix-record-source\", \"retry\", \"upgrade-or-report\", \"restart\"]),\n }),\n});\nexport const InspectionDocumentSchema: Schema.Union<readonly [\n typeof InspectionDiscoveryDocumentSchema,\n typeof InspectionSuccessDocumentSchema,\n typeof InspectionExplanationDocumentSchema,\n typeof InspectionFailureDocumentSchema\n]> = Schema.Union([\n InspectionDiscoveryDocumentSchema, InspectionSuccessDocumentSchema,\n InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema,\n]);\ntype Registry = typeof inspectionProtocolRegistry;\ntype MetadataFor<Kind extends InspectionOperationId> = Kind extends \"runs.list\" ? Schema.Schema.Type<typeof RunsListSuccessMetadataSchema> : Kind extends \"runs.compare\" ? Schema.Schema.Type<typeof CompareSuccessMetadataSchema> : Schema.Schema.Type<typeof SuccessMetadataSchema>;\ntype ResultFields<Kind extends InspectionOperationId> = {\n readonly [Field in keyof Registry[Kind][\"result\"]]: Registry[Kind][\"result\"][Field] extends Schema.Constraint ? Schema.Schema.Type<Registry[Kind][\"result\"][Field]> : never;\n};\nexport type InspectionSuccessDocumentFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? MetadataFor<Kind> & {\n readonly operation: Kind;\n} & ResultFields<Kind> : never;\nexport type InspectionSuccessDocument = InspectionSuccessDocumentFor<InspectionOperationId>;\ntype SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends \"runs.list\" ? Schema.Codec.Encoded<typeof RunsListSuccessMetadataSchema> : Kind extends \"runs.compare\" ? Schema.Codec.Encoded<typeof CompareSuccessMetadataSchema> : Schema.Codec.Encoded<typeof SuccessMetadataSchema>) & {\n readonly operation: Kind;\n} & {\n readonly [Field in keyof Registry[Kind][\"result\"]]: Registry[Kind][\"result\"][Field] extends Schema.Constraint ? Schema.Codec.Encoded<Registry[Kind][\"result\"][Field]> : never;\n} : never;\ntype InspectionSuccessEncoded = SuccessEncodedFor<InspectionOperationId>;\nexport type InspectionExplanationDocumentFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? Omit<MetadataFor<Kind>, \"outcome\"> & {\n readonly outcome: \"explanation\";\n readonly operation: Kind;\n readonly factKinds: Registry[Kind][\"factKinds\"];\n} : never;\nexport type InspectionExplanationDocument = InspectionExplanationDocumentFor<InspectionOperationId>;\nexport type InspectionOperationDocument = InspectionSuccessDocument | InspectionExplanationDocument;\nexport type InspectionDiscoveryDocument = Schema.Schema.Type<typeof InspectionDiscoveryDocumentSchema>;\nexport type InspectionFailureDocument = Schema.Schema.Type<typeof InspectionFailureDocumentSchema>;\nexport type InspectionDocument = InspectionDiscoveryDocument | InspectionOperationDocument | InspectionFailureDocument;\nexport type InspectionProtocolDecodeResult<A> = {\n readonly success: true;\n readonly value: A;\n} | {\n readonly success: false;\n readonly reason: string;\n};\n// @concord-code ne-eval-inspection-decode-document\n// @concord-implements docs/feature/inspection/architecture.md\nexport function decodeInspectionDocument(input: unknown): InspectionProtocolDecodeResult<InspectionDocument> {\n const decoded = Schema.decodeUnknownResult(InspectionDocumentSchema, { errors: \"all\", onExcessProperty: \"error\" })(input);\n return Result.isSuccess(decoded)\n ? { success: true, value: input as InspectionDocument }\n : { success: false, reason: String(decoded.failure) };\n}\nexport function narrowInspectionSuccess<Kind extends InspectionOperationId>(document: InspectionDocument, operationId: Kind): InspectionProtocolDecodeResult<InspectionSuccessDocumentFor<Kind>> {\n return document.outcome === \"success\" && document.operation === operationId\n ? { success: true, value: document as InspectionSuccessDocumentFor<Kind> }\n : { success: false, reason: `expected success ${operationId}, received ${document.outcome}${\"operation\" in document ? ` ${document.operation}` : \"\"}` };\n}\nexport function narrowInspectionExplanation<Kind extends InspectionOperationId>(document: InspectionDocument, operationId: Kind): InspectionProtocolDecodeResult<InspectionExplanationDocumentFor<Kind>> {\n return document.outcome === \"explanation\" && document.operation === operationId\n ? { success: true, value: document as InspectionExplanationDocumentFor<Kind> }\n : { success: false, reason: `expected explanation ${operationId}, received ${document.outcome}${\"operation\" in document ? ` ${document.operation}` : \"\"}` };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["protocol.ts"],"names":[],"mappings":";;;AAoNA,4DAKC;AACD,0DAIC;AACD,kEAIC;AAnOD,4CAA4C;AAC5C,wDAAwD;AACxD,8DAA8D;AAC9D,wFAAwF;AACxF,mCAAwC;AACxC,4DAAuE;AACvE,8DAAgE;AAChE,mEAAmG;AACnG,iDAA+H;AAC/H,qDAA4D;AAC5D,yDAA0I;AAC1I,uEAAqG;AACrG,6DAAmF;AACnF,uEAAwE;AACxE,2DAAoE;AACpE,6CAAqY;AACrY,MAAM,oBAAoB,GAAG,eAAM,CAAC,MAAM,CAAC,IAAI,CAAC,eAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,4CAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC,CAAC,CAAC;AACzN,MAAM,YAAY,GAAG,eAAM,CAAC,MAAM,C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E,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,QAAkD,EAAE;QAC9E,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,wBAAwB,WAAW,cAAc,QAAQ,CAAC,OAAO,GAAG,WAAW,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;AACpK,CAAC","sourcesContent":["// @concord-file ne-eval-inspection-protocol\n// @concord-implements docs/feature/inspection/README.md\n// @concord-implements docs/feature/inspection/architecture.md\n// @concord-implements docs/feature/inspection/use-case/inspection-check-completeness.md\nimport { Result, Schema } from \"effect\";\nimport { AssertionEntryIdSchema } from \"../assertions/record/codec.ts\";\nimport { ATTEMPT_LOCATOR_PATTERN } from \"../attempt-locator.ts\";\nimport { ArtifactIdSchema, ExperimentIdSchema, RunIdSchema } from \"../record/codec/identifiers.ts\";\nimport { InspectionArtifactLimitSchema, InspectionArtifactOffsetSchema, InspectionArtifactResultSchema } from \"./artifacts.ts\";\nimport { RunDocumentSchema } from \"../record/codec/core.ts\";\nimport { InspectionArtifactMetadataSchema, InspectionArtifactsPageLimitSchema, InspectionArtifactsValueSchema } from \"./artifact-list.ts\";\nimport { isCommandId, isItemId, isToolOccurrenceId } from \"../record/family/source-receipt/model.ts\";\nimport { INSPECTION_BEHAVIOR_VERSION, QUERY_PROTOCOL } from \"./protocol-values.ts\";\nimport { AssertionDetailResultSchema } from \"./assertion-projection.ts\";\nimport { InspectionProjectResultSchema } from \"./project-result.ts\";\nimport { InspectionAttemptDiffResultSchema, InspectionAttemptResultSchema, InspectionAttemptTimingResultSchema, InspectionAttemptUsageResultSchema, InspectionExperimentResultSchema, InspectionOverviewResultSchema, InspectionRunResultSchema, InspectionRunListResultSchema, InspectionSourcesResultSchema, InspectionTraceDetailResultSchema, InspectionTraceResultSchema, } from \"./results.ts\";\nconst AttemptLocatorSchema = Schema.String.pipe(Schema.refine((value): value is string => ATTEMPT_LOCATOR_PATTERN.test(value), { identifier: \"AttemptLocator\", description: \"a canonical @-prefixed Attempt locator\" }));\nconst ItemIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isItemId)));\nconst ToolOccurrenceIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isToolOccurrenceId)));\nconst CommandIdSchema = Schema.String.pipe(Schema.check(Schema.makeFilter(isCommandId)));\nconst RunIdsSchema = Schema.Array(RunIdSchema);\nconst ProjectExperimentIdsSchema = Schema.Array(ExperimentIdSchema).check(Schema.makeFilter((ids) => ids.length > 0 && new Set(ids).size === ids.length));\nconst operation = <Kind extends string, Fields extends Schema.Struct.Fields>(kind: Kind, fields: Fields) => Schema.Struct({ kind: Schema.Literal(kind), ...fields });\nconst SourceSchema = Schema.Struct({\n kind: Schema.Literals([\"project-record\", \"external-record\"]), publicationCutoffIdentity: Schema.String,\n});\nconst PublicationCutoffSchema = Schema.Struct({\n storeGeneration: Schema.String, revision: Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0)),\n});\nconst SelectionSchema = Schema.Struct({\n requestedRunIds: Schema.Array(Schema.String), selectedRunIds: Schema.Array(Schema.String), missingRunIds: Schema.Array(Schema.String),\n});\nconst SuccessMetadataSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"success\"),\n behaviorVersion: Schema.Literal(INSPECTION_BEHAVIOR_VERSION),\n source: SourceSchema, publicationCutoff: PublicationCutoffSchema, selection: SelectionSchema,\n issues: Schema.Tuple([]), evidence: Schema.Struct({ refs: Schema.Array(Schema.String) }),\n});\nconst RunsListSuccessMetadataSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"success\"),\n behaviorVersion: Schema.Literal(INSPECTION_BEHAVIOR_VERSION),\n source: SourceSchema,\n publicationCutoff: PublicationCutoffSchema,\n selection: Schema.Struct({\n requestedRunIds: Schema.Array(Schema.String), selectedRunIds: Schema.Array(Schema.String), missingRunIds: Schema.Array(Schema.String),\n returnedRunCount: Schema.Number, truncated: Schema.Boolean,\n }),\n issues: Schema.Tuple([]), evidence: Schema.Struct({ refs: Schema.Array(Schema.String) }),\n});\nconst CompareIssueSchema = Schema.Union([\n Schema.Struct({ code: Schema.Literal(\"selection-run-missing\"), side: Schema.Literals([\"left\", \"right\"]), runId: Schema.String }),\n Schema.Struct({ code: Schema.Literal(\"comparison-member-set-mismatch\") }),\n]);\nconst CompareSuccessMetadataSchema = SuccessMetadataSchema.pipe(Schema.fieldsAssign({ issues: Schema.Array(CompareIssueSchema) }));\nconst ArtifactsResultSchema = Schema.Union([\n Schema.Struct({ state: Schema.Literal(\"not-recorded\") }),\n Schema.Struct({\n state: Schema.Literal(\"available\"), value: InspectionArtifactsValueSchema,\n collection: Schema.Struct({ state: Schema.Literals([\"complete-page\", \"bounded-page\"]), items: Schema.Array(InspectionArtifactMetadataSchema), hasMore: Schema.Boolean, nextOffset: Schema.NullOr(InspectionArtifactOffsetSchema), total: InspectionArtifactOffsetSchema }),\n contents: Schema.Array(Schema.Struct({ logicalHandle: Schema.String, byteLength: Schema.Number, digest: Schema.String })),\n contentsTruncated: Schema.Boolean,\n }),\n]);\nconst ComparisonMemberSchema = Schema.Struct({\n key: Schema.String, runId: Schema.String, slotId: Schema.String, evalId: Schema.String,\n attemptOrdinal: Schema.Number, locator: Schema.String,\n});\nconst RunsCompareResultSchema = Schema.Struct({\n mode: Schema.Literals([\"side-by-side\", \"exact\", \"paired\"]),\n left: Schema.Struct({ runs: Schema.Array(RunDocumentSchema), members: Schema.Array(ComparisonMemberSchema) }),\n right: Schema.Struct({ runs: Schema.Array(RunDocumentSchema), members: Schema.Array(ComparisonMemberSchema) }),\n exactMemberSet: Schema.Boolean,\n pairs: Schema.Array(Schema.Struct({ key: Schema.String, left: ComparisonMemberSchema, right: ComparisonMemberSchema })),\n});\nconst spec = <Request extends Schema.Constraint, ResultFields extends Schema.Struct.Fields, const FactKinds extends readonly string[]>(fields: {\n readonly request: Request;\n readonly result: ResultFields;\n readonly factKinds: FactKinds;\n}) => Object.freeze(fields);\n/** The sole protocol catalog owner. Every request, result and descriptor projection is derived from this registry. */\nexport const inspectionProtocolRegistry = Object.freeze({\n \"project.get\": spec({ request: operation(\"project.get\", { experimentIds: Schema.optional(ProjectExperimentIdsSchema) }), result: { project: InspectionProjectResultSchema }, factKinds: [\"current-project\", \"core\", \"assertions\", \"attempt-cost\"] }),\n \"overview.get\": spec({ request: operation(\"overview.get\", { runIds: Schema.optional(RunIdsSchema) }), result: { overview: InspectionOverviewResultSchema }, factKinds: [\"core\", \"assertions\", \"attempt-cost\"] }),\n \"experiment.get\": spec({ request: operation(\"experiment.get\", { experimentId: ExperimentIdSchema }), result: { experiment: InspectionExperimentResultSchema }, factKinds: [\"core\", \"assertions\", \"attempt-cost\", \"agent-turns\", \"adapter-usage\", \"judge-usage\"] }),\n \"run.list\": spec({ request: operation(\"run.list\", { continuation: Schema.optional(Schema.String) }), result: { runs: InspectionRunListResultSchema, continuation: Schema.optional(Schema.String) }, factKinds: [\"core\"] }),\n \"run.get\": spec({ request: operation(\"run.get\", { runId: RunIdSchema }), result: { run: InspectionRunResultSchema }, factKinds: [\"core\", \"assertions\", \"agent-turns\", \"adapter-usage\", \"judge-usage\"] }),\n \"attempt.get\": spec({ request: operation(\"attempt.get\", { locator: AttemptLocatorSchema }), result: { attempt: InspectionAttemptResultSchema }, factKinds: [\"core\", \"assertions\"] }),\n \"attempt.assertion.detail\": spec({ request: operation(\"attempt.assertion.detail\", { locator: AttemptLocatorSchema, entryId: AssertionEntryIdSchema }), result: { assertion: AssertionDetailResultSchema }, factKinds: [\"assertions\", \"agent-turns\", \"sources\"] }),\n \"attempt.assertion.image\": spec({ request: operation(\"attempt.assertion.image\", { locator: AttemptLocatorSchema,\n entryId: AssertionEntryIdSchema, imageId: Schema.String,\n offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactLimitSchema) }),\n result: { image: Schema.Union([\n Schema.Struct({ state: Schema.Literal(\"available\"), imageId: Schema.String, mediaType: Schema.Literals([\"image/png\", \"image/jpeg\"]),\n byteLength: Schema.Number, sha256: Schema.String, offset: Schema.Number, base64: Schema.String, nextOffset: Schema.NullOr(Schema.Number) }),\n Schema.Struct({ state: Schema.Literal(\"invalid\") }), Schema.Struct({ state: Schema.Literal(\"not-recorded\") }),\n ]) }, factKinds: [\"assertions\"] }),\n \"attempt.trace\": spec({ request: operation(\"attempt.trace\", {\n locator: AttemptLocatorSchema,\n traceId: Schema.optional(Schema.String),\n sourceId: Schema.optional(Schema.String),\n actorId: Schema.optional(Schema.String),\n eventType: Schema.optional(Schema.String),\n continuation: Schema.optional(Schema.String),\n }), result: { trace: InspectionTraceResultSchema }, factKinds: [\"execution-traces\", \"agent-turns\", \"turn-contexts\", \"sandbox-commands\", \"runner-activities\", \"runner-diagnostics\"] }),\n \"attempt.trace.detail\": spec({ request: operation(\"attempt.trace.detail\", { locator: AttemptLocatorSchema, selector: Schema.Union([\n operation(\"execution-event\", { eventId: Schema.String }),\n operation(\"execution-evidence\", {\n evidenceId: Schema.String,\n offset: Schema.optional(InspectionArtifactOffsetSchema),\n limit: Schema.optional(InspectionArtifactLimitSchema),\n }),\n operation(\"item\", { itemId: ItemIdSchema }),\n operation(\"tool-occurrence\", { toolOccurrenceId: ToolOccurrenceIdSchema }),\n operation(\"command\", { commandId: CommandIdSchema }),\n ]) }), result: { detail: InspectionTraceDetailResultSchema }, factKinds: [\"execution-traces\", \"agent-turns\", \"sandbox-commands\", \"artifacts\"] }),\n \"attempt.timing\": spec({ request: operation(\"attempt.timing\", { locator: AttemptLocatorSchema }), result: { timing: InspectionAttemptTimingResultSchema }, factKinds: [\"runner-activities\"] }),\n \"attempt.usage\": spec({ request: operation(\"attempt.usage\", { locator: AttemptLocatorSchema }), result: { usage: InspectionAttemptUsageResultSchema }, factKinds: [\"agent-turns\", \"adapter-usage\", \"judge-usage\"] }),\n \"attempt.diff\": spec({ request: operation(\"attempt.diff\", { locator: AttemptLocatorSchema }), result: { diff: InspectionAttemptDiffResultSchema }, factKinds: [\"file-changes\"] }),\n \"attempt.sources\": spec({ request: operation(\"attempt.sources\", { locator: AttemptLocatorSchema }), result: { sources: InspectionSourcesResultSchema }, factKinds: [\"assertions\", \"sources\"] }),\n \"attempt.artifacts\": spec({ request: operation(\"attempt.artifacts\", { locator: AttemptLocatorSchema, offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactsPageLimitSchema) }), result: { artifacts: ArtifactsResultSchema }, factKinds: [\"artifacts\"] }),\n \"attempt.artifact\": spec({ request: operation(\"attempt.artifact\", { locator: AttemptLocatorSchema, artifactId: ArtifactIdSchema, offset: Schema.optional(InspectionArtifactOffsetSchema), limit: Schema.optional(InspectionArtifactLimitSchema) }), result: { artifact: InspectionArtifactResultSchema }, factKinds: [\"artifacts\"] }),\n \"runs.compare\": spec({ request: operation(\"runs.compare\", { mode: Schema.Literals([\"side-by-side\", \"exact\", \"paired\"]), leftRunIds: RunIdsSchema, rightRunIds: RunIdsSchema }), result: { comparison: RunsCompareResultSchema }, factKinds: [\"core\"] }),\n});\nexport type InspectionOperationId = keyof typeof inspectionProtocolRegistry;\nexport const INSPECTION_OPERATION_IDS = Object.freeze(Object.keys(inspectionProtocolRegistry) as InspectionOperationId[]);\nexport const InspectionOperationIdSchema = Schema.Literals(INSPECTION_OPERATION_IDS);\nconst specs = Object.entries(inspectionProtocolRegistry);\nexport const InspectionRequestSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL),\n operation: Schema.Union(specs.map(([, entry]) => entry.request)),\n});\nexport type InspectionRequest = Schema.Schema.Type<typeof InspectionRequestSchema>;\nexport type InspectionOperation = InspectionRequest[\"operation\"];\nexport type InspectionOperationFor<Kind extends InspectionOperationId> = Extract<InspectionOperation, {\n readonly kind: Kind;\n}>;\nconst successSchema = (id: InspectionOperationId, entry: (typeof inspectionProtocolRegistry)[InspectionOperationId]): Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded> => {\n const fields = Schema.fieldsAssign({ operation: Schema.Literal(id), ...entry.result });\n const schema = id === \"run.list\" ? RunsListSuccessMetadataSchema.pipe(fields)\n : id === \"runs.compare\" ? CompareSuccessMetadataSchema.pipe(fields)\n : SuccessMetadataSchema.pipe(fields);\n // Object.entries erases the ID/result correlation established by the registry.\n return schema as unknown as Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>;\n};\nexport const InspectionSuccessDocumentSchema: Schema.Union<readonly Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>[]> = Schema.Union(specs.map(([id, entry]) => successSchema(id as InspectionOperationId, entry)));\nconst explanationSchema = (id: InspectionOperationId, entry: (typeof inspectionProtocolRegistry)[InspectionOperationId]) => {\n const fields = Schema.fieldsAssign({\n outcome: Schema.Literal(\"explanation\"), operation: Schema.Literal(id),\n factKinds: Schema.Tuple(entry.factKinds.map((value) => Schema.Literal(value))),\n });\n if (id === \"run.list\")\n return RunsListSuccessMetadataSchema.pipe(fields);\n return SuccessMetadataSchema.pipe(fields);\n};\nexport const InspectionExplanationDocumentSchema = Schema.Union(specs.map(([id, entry]) => explanationSchema(id as InspectionOperationId, entry)));\nconst DescriptorSchema = Schema.Union(specs.map(([id]) => Schema.Struct({ id: Schema.Literal(id as InspectionOperationId) })));\nexport const InspectionDiscoveryDocumentSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"discovery\"), operations: Schema.Array(DescriptorSchema),\n});\nexport const InspectionFailureDocumentSchema = Schema.Struct({\n protocol: Schema.Literal(QUERY_PROTOCOL), outcome: Schema.Literal(\"failure\"),\n operation: Schema.NullOr(InspectionOperationIdSchema),\n failure: Schema.Struct({\n code: Schema.Literals([\"inspection-request-invalid\", \"inspection-selection-missing\", \"inspection-source-invalid\", \"inspection-record-integrity-failure\", \"inspection-operation-failed\", \"inspection-result-invalid\", \"evidence-budget-exceeded\", \"restart-required\", \"current-target-unavailable\"]),\n reason: Schema.String,\n identity: Schema.optional(Schema.Struct({ runId: Schema.String })),\n correction: Schema.Literals([\"fix-request\", \"choose-existing-selection\", \"fix-record-source\", \"retry\", \"upgrade-or-report\", \"restart\"]),\n }),\n});\nexport const InspectionDocumentSchema: Schema.Union<readonly [\n typeof InspectionDiscoveryDocumentSchema,\n typeof InspectionSuccessDocumentSchema,\n typeof InspectionExplanationDocumentSchema,\n typeof InspectionFailureDocumentSchema\n]> = Schema.Union([\n InspectionDiscoveryDocumentSchema, InspectionSuccessDocumentSchema,\n InspectionExplanationDocumentSchema, InspectionFailureDocumentSchema,\n]);\ntype Registry = typeof inspectionProtocolRegistry;\ntype MetadataFor<Kind extends InspectionOperationId> = Kind extends \"run.list\" ? Schema.Schema.Type<typeof RunsListSuccessMetadataSchema> : Kind extends \"runs.compare\" ? Schema.Schema.Type<typeof CompareSuccessMetadataSchema> : Schema.Schema.Type<typeof SuccessMetadataSchema>;\ntype ResultFields<Kind extends InspectionOperationId> = {\n readonly [Field in keyof Registry[Kind][\"result\"]]: Registry[Kind][\"result\"][Field] extends Schema.Constraint ? Schema.Schema.Type<Registry[Kind][\"result\"][Field]> : never;\n};\nexport type InspectionSuccessDocumentFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? MetadataFor<Kind> & {\n readonly operation: Kind;\n} & ResultFields<Kind> : never;\nexport type InspectionSuccessDocument = InspectionSuccessDocumentFor<InspectionOperationId>;\ntype SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends \"run.list\" ? Schema.Codec.Encoded<typeof RunsListSuccessMetadataSchema> : Kind extends \"runs.compare\" ? Schema.Codec.Encoded<typeof CompareSuccessMetadataSchema> : Schema.Codec.Encoded<typeof SuccessMetadataSchema>) & {\n readonly operation: Kind;\n} & {\n readonly [Field in keyof Registry[Kind][\"result\"]]: Registry[Kind][\"result\"][Field] extends Schema.Constraint ? Schema.Codec.Encoded<Registry[Kind][\"result\"][Field]> : never;\n} : never;\ntype InspectionSuccessEncoded = SuccessEncodedFor<InspectionOperationId>;\nexport type InspectionExplanationDocumentFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? Omit<MetadataFor<Kind>, \"outcome\"> & {\n readonly outcome: \"explanation\";\n readonly operation: Kind;\n readonly factKinds: Registry[Kind][\"factKinds\"];\n} : never;\nexport type InspectionExplanationDocument = InspectionExplanationDocumentFor<InspectionOperationId>;\nexport type InspectionOperationDocument = InspectionSuccessDocument | InspectionExplanationDocument;\nexport type InspectionDiscoveryDocument = Schema.Schema.Type<typeof InspectionDiscoveryDocumentSchema>;\nexport type InspectionFailureDocument = Schema.Schema.Type<typeof InspectionFailureDocumentSchema>;\nexport type InspectionDocument = InspectionDiscoveryDocument | InspectionOperationDocument | InspectionFailureDocument;\nexport type InspectionProtocolDecodeResult<A> = {\n readonly success: true;\n readonly value: A;\n} | {\n readonly success: false;\n readonly reason: string;\n};\n// @concord-code ne-eval-inspection-decode-document\n// @concord-implements docs/feature/inspection/architecture.md\nexport function decodeInspectionDocument(input: unknown): InspectionProtocolDecodeResult<InspectionDocument> {\n const decoded = Schema.decodeUnknownResult(InspectionDocumentSchema, { errors: \"all\", onExcessProperty: \"error\" })(input);\n return Result.isSuccess(decoded)\n ? { success: true, value: input as InspectionDocument }\n : { success: false, reason: String(decoded.failure) };\n}\nexport function narrowInspectionSuccess<Kind extends InspectionOperationId>(document: InspectionDocument, operationId: Kind): InspectionProtocolDecodeResult<InspectionSuccessDocumentFor<Kind>> {\n return document.outcome === \"success\" && document.operation === operationId\n ? { success: true, value: document as InspectionSuccessDocumentFor<Kind> }\n : { success: false, reason: `expected success ${operationId}, received ${document.outcome}${\"operation\" in document ? ` ${document.operation}` : \"\"}` };\n}\nexport function narrowInspectionExplanation<Kind extends InspectionOperationId>(document: InspectionDocument, operationId: Kind): InspectionProtocolDecodeResult<InspectionExplanationDocumentFor<Kind>> {\n return document.outcome === \"explanation\" && document.operation === operationId\n ? { success: true, value: document as InspectionExplanationDocumentFor<Kind> }\n : { success: false, reason: `expected explanation ${operationId}, received ${document.outcome}${\"operation\" in document ? ` ${document.operation}` : \"\"}` };\n}\n"]}
|
|
@@ -5,16 +5,11 @@ declare const SuccessMetadataSchema: Schema.Struct<{
|
|
|
5
5
|
readonly behaviorVersion: Schema.Literal<"2.0.0">;
|
|
6
6
|
readonly source: Schema.Struct<{
|
|
7
7
|
readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
|
|
8
|
-
readonly
|
|
8
|
+
readonly publicationCutoffIdentity: Schema.String;
|
|
9
9
|
}>;
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly runCount: Schema.Number;
|
|
14
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
15
|
-
readonly runId: Schema.String;
|
|
16
|
-
readonly logicalSealIdentity: Schema.String;
|
|
17
|
-
}>>;
|
|
10
|
+
readonly publicationCutoff: Schema.Struct<{
|
|
11
|
+
readonly storeGeneration: Schema.String;
|
|
12
|
+
readonly revision: Schema.Number;
|
|
18
13
|
}>;
|
|
19
14
|
readonly selection: Schema.Struct<{
|
|
20
15
|
readonly requestedRunIds: Schema.$Array<Schema.String>;
|
|
@@ -32,19 +27,17 @@ declare const RunsListSuccessMetadataSchema: Schema.Struct<{
|
|
|
32
27
|
readonly behaviorVersion: Schema.Literal<"2.0.0">;
|
|
33
28
|
readonly source: Schema.Struct<{
|
|
34
29
|
readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
|
|
35
|
-
readonly
|
|
30
|
+
readonly publicationCutoffIdentity: Schema.String;
|
|
36
31
|
}>;
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly runCount: Schema.Number;
|
|
32
|
+
readonly publicationCutoff: Schema.Struct<{
|
|
33
|
+
readonly storeGeneration: Schema.String;
|
|
34
|
+
readonly revision: Schema.Number;
|
|
41
35
|
}>;
|
|
42
36
|
readonly selection: Schema.Struct<{
|
|
43
37
|
readonly requestedRunIds: Schema.$Array<Schema.String>;
|
|
44
38
|
readonly selectedRunIds: Schema.$Array<Schema.String>;
|
|
45
39
|
readonly missingRunIds: Schema.$Array<Schema.String>;
|
|
46
40
|
readonly returnedRunCount: Schema.Number;
|
|
47
|
-
readonly totalRunCount: Schema.Number;
|
|
48
41
|
readonly truncated: Schema.Boolean;
|
|
49
42
|
}>;
|
|
50
43
|
readonly issues: Schema.Tuple<readonly []>;
|
|
@@ -56,20 +49,15 @@ declare const CompareSuccessMetadataSchema: Schema.Struct<{
|
|
|
56
49
|
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
57
50
|
readonly source: Schema.Struct<{
|
|
58
51
|
readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
|
|
59
|
-
readonly
|
|
52
|
+
readonly publicationCutoffIdentity: Schema.String;
|
|
60
53
|
}>;
|
|
61
54
|
readonly outcome: Schema.Literal<"success">;
|
|
62
55
|
readonly evidence: Schema.Struct<{
|
|
63
56
|
readonly refs: Schema.$Array<Schema.String>;
|
|
64
57
|
}>;
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly runCount: Schema.Number;
|
|
69
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
70
|
-
readonly runId: Schema.String;
|
|
71
|
-
readonly logicalSealIdentity: Schema.String;
|
|
72
|
-
}>>;
|
|
58
|
+
readonly publicationCutoff: Schema.Struct<{
|
|
59
|
+
readonly storeGeneration: Schema.String;
|
|
60
|
+
readonly revision: Schema.Number;
|
|
73
61
|
}>;
|
|
74
62
|
readonly selection: Schema.Struct<{
|
|
75
63
|
readonly requestedRunIds: Schema.$Array<Schema.String>;
|
|
@@ -3714,25 +3702,25 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
3714
3702
|
};
|
|
3715
3703
|
readonly factKinds: readonly ["core", "assertions", "attempt-cost", "agent-turns", "adapter-usage", "judge-usage"];
|
|
3716
3704
|
}>;
|
|
3717
|
-
"
|
|
3705
|
+
"run.list": Readonly<{
|
|
3718
3706
|
readonly request: Schema.Struct<{
|
|
3719
|
-
readonly kind: Schema.Literal<"
|
|
3707
|
+
readonly kind: Schema.Literal<"run.list">;
|
|
3720
3708
|
} & {
|
|
3721
3709
|
continuation: Schema.optional<Schema.String>;
|
|
3722
3710
|
}>;
|
|
3723
3711
|
readonly result: {
|
|
3724
3712
|
runs: Schema.$Array<Schema.Struct<{
|
|
3725
3713
|
readonly runId: Schema.String;
|
|
3726
|
-
readonly
|
|
3714
|
+
readonly invocationId: Schema.String;
|
|
3715
|
+
readonly experimentId: Schema.String;
|
|
3716
|
+
readonly state: Schema.Literals<readonly ["active", "completed", "interrupted", "failed"]>;
|
|
3727
3717
|
readonly startedAt: Schema.String;
|
|
3728
|
-
readonly
|
|
3729
|
-
readonly
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
readonly contentByteLength: Schema.Number;
|
|
3735
|
-
readonly sealEntryCount: Schema.Number;
|
|
3718
|
+
readonly completedAt: Schema.optional<Schema.String>;
|
|
3719
|
+
readonly coverage: Schema.Struct<{
|
|
3720
|
+
readonly published: Schema.Number;
|
|
3721
|
+
readonly expected: Schema.Number;
|
|
3722
|
+
readonly missing: Schema.Number;
|
|
3723
|
+
}>;
|
|
3736
3724
|
}>>;
|
|
3737
3725
|
continuation: Schema.optional<Schema.String>;
|
|
3738
3726
|
};
|
|
@@ -3785,93 +3773,25 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
3785
3773
|
readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.cjs").ExecutionIdentityDigest, string, never, never>;
|
|
3786
3774
|
readonly outcome: Schema.Literals<readonly ["completed", "errored", "cancelled", "interrupted"]>;
|
|
3787
3775
|
}>>;
|
|
3788
|
-
}>;
|
|
3789
|
-
};
|
|
3790
|
-
readonly factKinds: readonly ["core"];
|
|
3791
|
-
}>;
|
|
3792
|
-
"run.summary": Readonly<{
|
|
3793
|
-
readonly request: Schema.Struct<{
|
|
3794
|
-
readonly kind: Schema.Literal<"run.summary">;
|
|
3795
|
-
} & {
|
|
3796
|
-
runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
3797
|
-
}>;
|
|
3798
|
-
readonly result: {
|
|
3799
|
-
summary: Schema.Struct<{
|
|
3800
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
3801
|
-
readonly runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
3802
|
-
readonly experimentId: Schema.Codec<import("../record/model/identifiers.cjs").ExperimentId, string, never, never>;
|
|
3803
|
-
readonly context: Schema.Struct<{
|
|
3804
|
-
readonly experimentId: Schema.Codec<import("../record/model/identifiers.cjs").ExperimentId, string, never, never>;
|
|
3805
|
-
readonly execution: Schema.Codec<import("../record/model/run-context.cjs").RunExecutionContext, import("../record/model/run-context.cjs").RunExecutionContext, never, never>;
|
|
3806
|
-
readonly labels: Schema.Codec<Readonly<Record<string, string>>, Readonly<Record<string, string>>, never, never>;
|
|
3807
|
-
}>;
|
|
3808
|
-
readonly startedAt: Schema.Codec<import("../record/model/identifiers.cjs").UtcMillis, number, never, never>;
|
|
3809
|
-
readonly completedAt: Schema.Codec<import("../record/model/identifiers.cjs").UtcMillis, number, never, never>;
|
|
3810
|
-
readonly expectedSlots: Schema.$Array<Schema.Struct<{
|
|
3811
|
-
readonly slotId: Schema.Codec<import("../record/model/identifiers.cjs").SlotId, string, never, never>;
|
|
3812
|
-
readonly evalId: Schema.Codec<import("../record/model/identifiers.cjs").EvalId, string, never, never>;
|
|
3813
|
-
readonly attemptOrdinal: Schema.Number;
|
|
3814
|
-
readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.cjs").ExecutionIdentityDigest, string, never, never>;
|
|
3815
|
-
}>>;
|
|
3816
|
-
}>>;
|
|
3817
3776
|
readonly denominator: Schema.Struct<{
|
|
3818
3777
|
readonly expected: Schema.Number;
|
|
3819
|
-
readonly
|
|
3778
|
+
readonly published: Schema.Number;
|
|
3779
|
+
readonly missing: Schema.Number;
|
|
3820
3780
|
}>;
|
|
3821
|
-
readonly
|
|
3822
|
-
readonly
|
|
3823
|
-
|
|
3824
|
-
readonly evalId: Schema.String;
|
|
3825
|
-
readonly attemptOrdinal: Schema.Number;
|
|
3826
|
-
readonly executionIdentityDigest: Schema.String;
|
|
3827
|
-
readonly state: Schema.Literals<readonly ["executed", "carried", "accepted", "not-dispatched", "interrupted", "missing"]>;
|
|
3828
|
-
readonly locator: Schema.NullOr<Schema.String>;
|
|
3829
|
-
readonly outcome: Schema.NullOr<Schema.Literals<readonly ["completed", "errored", "cancelled", "interrupted"]>>;
|
|
3830
|
-
readonly verdict: Schema.NullOr<Schema.Literals<readonly ["passed", "failed", "errored", "skipped"]>>;
|
|
3831
|
-
readonly score: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
3832
|
-
readonly state: Schema.Literal<"not-scored">;
|
|
3781
|
+
readonly slots: Schema.$Array<Schema.Struct<{
|
|
3782
|
+
readonly publication: Schema.Union<readonly [Schema.Struct<{
|
|
3783
|
+
readonly state: Schema.Literal<"pending">;
|
|
3833
3784
|
}>, Schema.Struct<{
|
|
3834
|
-
readonly state: Schema.Literal<"
|
|
3835
|
-
readonly
|
|
3836
|
-
readonly
|
|
3785
|
+
readonly state: Schema.Literal<"published">;
|
|
3786
|
+
readonly action: Schema.Literals<readonly ["executed", "carried", "accepted"]>;
|
|
3787
|
+
readonly attemptId: Schema.String;
|
|
3788
|
+
readonly attemptLocator: Schema.String;
|
|
3789
|
+
readonly originRunId: Schema.String;
|
|
3790
|
+
readonly originSlotId: Schema.String;
|
|
3837
3791
|
}>, Schema.Struct<{
|
|
3838
|
-
readonly state: Schema.Literal<"
|
|
3839
|
-
readonly
|
|
3840
|
-
|
|
3841
|
-
readonly unavailable: Schema.Number;
|
|
3842
|
-
}>]>>;
|
|
3843
|
-
}>>;
|
|
3844
|
-
}>;
|
|
3845
|
-
};
|
|
3846
|
-
readonly factKinds: readonly ["core", "assertions", "agent-turns"];
|
|
3847
|
-
}>;
|
|
3848
|
-
"run.overview": Readonly<{
|
|
3849
|
-
readonly request: Schema.Struct<{
|
|
3850
|
-
readonly kind: Schema.Literal<"run.overview">;
|
|
3851
|
-
} & {
|
|
3852
|
-
runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
3853
|
-
}>;
|
|
3854
|
-
readonly result: {
|
|
3855
|
-
runOverview: Schema.Struct<{
|
|
3856
|
-
readonly identity: Schema.Struct<{
|
|
3857
|
-
readonly runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
3858
|
-
readonly experimentId: Schema.Codec<import("../record/model/identifiers.cjs").ExperimentId, string, never, never>;
|
|
3859
|
-
readonly adapter: Schema.NullOr<Schema.Codec<import("../types.cjs").AdapterIdentity, import("../types.cjs").AdapterIdentity, never, never>>;
|
|
3860
|
-
}>;
|
|
3861
|
-
readonly state: Schema.Literals<readonly ["active", "completed", "interrupted", "failed"]>;
|
|
3862
|
-
readonly startedAt: Schema.Codec<import("../record/model/identifiers.cjs").UtcMillis, number, never, never>;
|
|
3863
|
-
readonly completedAt: Schema.optional<Schema.Codec<import("../record/model/identifiers.cjs").UtcMillis, number, never, never>>;
|
|
3864
|
-
readonly denominator: Schema.Struct<{
|
|
3865
|
-
readonly expected: Schema.Number;
|
|
3866
|
-
readonly observed: Schema.Number;
|
|
3867
|
-
}>;
|
|
3868
|
-
readonly members: Schema.$Array<Schema.Struct<{
|
|
3869
|
-
readonly slot: Schema.Struct<{
|
|
3870
|
-
readonly slotId: Schema.Codec<import("../record/model/identifiers.cjs").SlotId, string, never, never>;
|
|
3871
|
-
readonly evalId: Schema.Codec<import("../record/model/identifiers.cjs").EvalId, string, never, never>;
|
|
3872
|
-
readonly attemptOrdinal: Schema.Number;
|
|
3873
|
-
readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.cjs").ExecutionIdentityDigest, string, never, never>;
|
|
3874
|
-
}>;
|
|
3792
|
+
readonly state: Schema.Literal<"absent">;
|
|
3793
|
+
readonly reason: Schema.Literals<readonly ["early-exit-satisfied", "budget-exhausted", "stopped-by-failure", "interrupted-before-publication", "dispatch-failed"]>;
|
|
3794
|
+
}>]>;
|
|
3875
3795
|
readonly state: Schema.Literals<readonly ["executed", "carried", "accepted", "not-dispatched", "interrupted", "pending"]>;
|
|
3876
3796
|
readonly locator: Schema.NullOr<Schema.String>;
|
|
3877
3797
|
readonly relation: Schema.NullOr<Schema.Literals<readonly ["origin", "reference"]>>;
|
|
@@ -4146,6 +4066,10 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
4146
4066
|
readonly reason: Schema.String;
|
|
4147
4067
|
}>]>;
|
|
4148
4068
|
}>]>>;
|
|
4069
|
+
readonly slotId: Schema.Codec<import("../record/model/identifiers.cjs").SlotId, string, never, never>;
|
|
4070
|
+
readonly evalId: Schema.Codec<import("../record/model/identifiers.cjs").EvalId, string, never, never>;
|
|
4071
|
+
readonly attemptOrdinal: Schema.Number;
|
|
4072
|
+
readonly executionIdentityDigest: Schema.Codec<import("../record/model/identifiers.cjs").ExecutionIdentityDigest, string, never, never>;
|
|
4149
4073
|
}>>;
|
|
4150
4074
|
readonly coverage: Schema.Struct<{
|
|
4151
4075
|
readonly state: Schema.Literals<readonly ["complete", "partial", "not-recorded", "invalid", "unavailable"]>;
|
|
@@ -4530,7 +4454,7 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
4530
4454
|
}>>;
|
|
4531
4455
|
}>;
|
|
4532
4456
|
};
|
|
4533
|
-
readonly factKinds: readonly ["core", "assertions", "agent-turns"];
|
|
4457
|
+
readonly factKinds: readonly ["core", "assertions", "agent-turns", "adapter-usage", "judge-usage"];
|
|
4534
4458
|
}>;
|
|
4535
4459
|
"attempt.get": Readonly<{
|
|
4536
4460
|
readonly request: Schema.Struct<{
|
|
@@ -6688,6 +6612,60 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
6688
6612
|
}>;
|
|
6689
6613
|
readonly result: {
|
|
6690
6614
|
usage: Schema.Struct<{
|
|
6615
|
+
readonly cacheRead: Schema.Struct<{
|
|
6616
|
+
readonly total: Schema.Struct<{
|
|
6617
|
+
rate: Schema.Union<readonly [Schema.Struct<{
|
|
6618
|
+
readonly state: Schema.Literal<"exact">;
|
|
6619
|
+
readonly value: Schema.Number;
|
|
6620
|
+
}>, Schema.Struct<{
|
|
6621
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
6622
|
+
readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
|
|
6623
|
+
}>]>;
|
|
6624
|
+
recordedCalls: Schema.Number;
|
|
6625
|
+
coveredCalls: Schema.Number;
|
|
6626
|
+
missingCacheReadCalls: Schema.Number;
|
|
6627
|
+
missingInputTotalCalls: Schema.Number;
|
|
6628
|
+
unknownStatusCalls: Schema.Number;
|
|
6629
|
+
collectionComplete: Schema.Boolean;
|
|
6630
|
+
reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
|
|
6631
|
+
}>;
|
|
6632
|
+
readonly modelSlots: Schema.$Array<Schema.Struct<{
|
|
6633
|
+
readonly rate: Schema.Union<readonly [Schema.Struct<{
|
|
6634
|
+
readonly state: Schema.Literal<"exact">;
|
|
6635
|
+
readonly value: Schema.Number;
|
|
6636
|
+
}>, Schema.Struct<{
|
|
6637
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
6638
|
+
readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
|
|
6639
|
+
}>]>;
|
|
6640
|
+
readonly recordedCalls: Schema.Number;
|
|
6641
|
+
readonly coveredCalls: Schema.Number;
|
|
6642
|
+
readonly missingCacheReadCalls: Schema.Number;
|
|
6643
|
+
readonly missingInputTotalCalls: Schema.Number;
|
|
6644
|
+
readonly unknownStatusCalls: Schema.Number;
|
|
6645
|
+
readonly collectionComplete: Schema.Boolean;
|
|
6646
|
+
readonly reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
|
|
6647
|
+
readonly modelSlot: Schema.NullOr<Schema.String>;
|
|
6648
|
+
}>>;
|
|
6649
|
+
readonly models: Schema.$Array<Schema.Struct<{
|
|
6650
|
+
readonly rate: Schema.Union<readonly [Schema.Struct<{
|
|
6651
|
+
readonly state: Schema.Literal<"exact">;
|
|
6652
|
+
readonly value: Schema.Number;
|
|
6653
|
+
}>, Schema.Struct<{
|
|
6654
|
+
readonly state: Schema.Literal<"unavailable">;
|
|
6655
|
+
readonly reason: Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>;
|
|
6656
|
+
}>]>;
|
|
6657
|
+
readonly recordedCalls: Schema.Number;
|
|
6658
|
+
readonly coveredCalls: Schema.Number;
|
|
6659
|
+
readonly missingCacheReadCalls: Schema.Number;
|
|
6660
|
+
readonly missingInputTotalCalls: Schema.Number;
|
|
6661
|
+
readonly unknownStatusCalls: Schema.Number;
|
|
6662
|
+
readonly collectionComplete: Schema.Boolean;
|
|
6663
|
+
readonly reasons: Schema.$Array<Schema.Literals<readonly ["usage-not-recorded", "source-invalid", "adapter-usage-required", "collection-incomplete", "call-status-unknown", "no-calls", "cache-read-missing", "input-total-missing", "zero-input-total", "unsafe-token-total"]>>;
|
|
6664
|
+
readonly modelSlot: Schema.NullOr<Schema.String>;
|
|
6665
|
+
readonly provider: Schema.NullOr<Schema.String>;
|
|
6666
|
+
readonly model: Schema.NullOr<Schema.String>;
|
|
6667
|
+
}>>;
|
|
6668
|
+
}>;
|
|
6691
6669
|
readonly configuredModels: Schema.Union<readonly [Schema.Struct<{
|
|
6692
6670
|
readonly state: Schema.Literal<"not-recorded">;
|
|
6693
6671
|
}>, Schema.Struct<{
|
|
@@ -7395,8 +7373,8 @@ export declare const inspectionProtocolRegistry: Readonly<{
|
|
|
7395
7373
|
}>;
|
|
7396
7374
|
}>;
|
|
7397
7375
|
export type InspectionOperationId = keyof typeof inspectionProtocolRegistry;
|
|
7398
|
-
export declare const INSPECTION_OPERATION_IDS: readonly ("run.
|
|
7399
|
-
export declare const InspectionOperationIdSchema: Schema.Literals<readonly ("run.
|
|
7376
|
+
export declare const INSPECTION_OPERATION_IDS: readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[];
|
|
7377
|
+
export declare const InspectionOperationIdSchema: Schema.Literals<readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>;
|
|
7400
7378
|
export declare const InspectionRequestSchema: Schema.Struct<{
|
|
7401
7379
|
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
7402
7380
|
readonly operation: Schema.Union<(Schema.Struct<{
|
|
@@ -7412,21 +7390,13 @@ export declare const InspectionRequestSchema: Schema.Struct<{
|
|
|
7412
7390
|
} & {
|
|
7413
7391
|
experimentId: Schema.Codec<import("../record/model/identifiers.cjs").ExperimentId, string, never, never>;
|
|
7414
7392
|
}> | Schema.Struct<{
|
|
7415
|
-
readonly kind: Schema.Literal<"
|
|
7393
|
+
readonly kind: Schema.Literal<"run.list">;
|
|
7416
7394
|
} & {
|
|
7417
7395
|
continuation: Schema.optional<Schema.String>;
|
|
7418
7396
|
}> | Schema.Struct<{
|
|
7419
7397
|
readonly kind: Schema.Literal<"run.get">;
|
|
7420
7398
|
} & {
|
|
7421
7399
|
runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
7422
|
-
}> | Schema.Struct<{
|
|
7423
|
-
readonly kind: Schema.Literal<"run.summary">;
|
|
7424
|
-
} & {
|
|
7425
|
-
runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
7426
|
-
}> | Schema.Struct<{
|
|
7427
|
-
readonly kind: Schema.Literal<"run.overview">;
|
|
7428
|
-
} & {
|
|
7429
|
-
runId: Schema.Codec<import("../record/model/identifiers.cjs").RunId, string, never, never>;
|
|
7430
7400
|
}> | Schema.Struct<{
|
|
7431
7401
|
readonly kind: Schema.Literal<"attempt.get">;
|
|
7432
7402
|
} & {
|
|
@@ -7523,51 +7493,19 @@ export type InspectionOperationFor<Kind extends InspectionOperationId> = Extract
|
|
|
7523
7493
|
readonly kind: Kind;
|
|
7524
7494
|
}>;
|
|
7525
7495
|
export declare const InspectionSuccessDocumentSchema: Schema.Union<readonly Schema.Codec<InspectionSuccessDocument, InspectionSuccessEncoded>[]>;
|
|
7526
|
-
export declare const InspectionExplanationDocumentSchema: Schema.Union<
|
|
7527
|
-
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
7528
|
-
readonly source: Schema.Struct<{
|
|
7529
|
-
readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
|
|
7530
|
-
readonly sealedCutoffIdentity: Schema.String;
|
|
7531
|
-
}>;
|
|
7532
|
-
readonly issues: Schema.Tuple<readonly []>;
|
|
7533
|
-
readonly evidence: Schema.Struct<{
|
|
7534
|
-
readonly refs: Schema.$Array<Schema.String>;
|
|
7535
|
-
}>;
|
|
7536
|
-
readonly sealedCutoff: Schema.Struct<{
|
|
7537
|
-
readonly kind: Schema.Literal<"inspection-sealed-cutoff">;
|
|
7538
|
-
readonly identity: Schema.String;
|
|
7539
|
-
readonly runCount: Schema.Number;
|
|
7540
|
-
}>;
|
|
7541
|
-
readonly selection: Schema.Struct<{
|
|
7542
|
-
readonly requestedRunIds: Schema.$Array<Schema.String>;
|
|
7543
|
-
readonly selectedRunIds: Schema.$Array<Schema.String>;
|
|
7544
|
-
readonly missingRunIds: Schema.$Array<Schema.String>;
|
|
7545
|
-
readonly returnedRunCount: Schema.Number;
|
|
7546
|
-
readonly totalRunCount: Schema.Number;
|
|
7547
|
-
readonly truncated: Schema.Boolean;
|
|
7548
|
-
}>;
|
|
7549
|
-
readonly behaviorVersion: Schema.Literal<"2.0.0">;
|
|
7550
|
-
readonly outcome: Schema.Literal<"explanation">;
|
|
7551
|
-
readonly operation: Schema.Literal<"run.get" | "project.get" | "overview.get" | "experiment.get" | "runs.list" | "run.summary" | "run.overview" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
|
|
7552
|
-
readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-activities" | "runner-diagnostics" | "turn-contexts" | "current-project" | "attempt-cost" | "judge-usage" | "execution-traces">[]>;
|
|
7553
|
-
}> | Schema.Struct<{
|
|
7496
|
+
export declare const InspectionExplanationDocumentSchema: Schema.Union<Schema.Struct<{
|
|
7554
7497
|
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
7555
7498
|
readonly source: Schema.Struct<{
|
|
7556
7499
|
readonly kind: Schema.Literals<readonly ["project-record", "external-record"]>;
|
|
7557
|
-
readonly
|
|
7500
|
+
readonly publicationCutoffIdentity: Schema.String;
|
|
7558
7501
|
}>;
|
|
7559
7502
|
readonly issues: Schema.Tuple<readonly []>;
|
|
7560
7503
|
readonly evidence: Schema.Struct<{
|
|
7561
7504
|
readonly refs: Schema.$Array<Schema.String>;
|
|
7562
7505
|
}>;
|
|
7563
|
-
readonly
|
|
7564
|
-
readonly
|
|
7565
|
-
readonly
|
|
7566
|
-
readonly runCount: Schema.Number;
|
|
7567
|
-
readonly runs: Schema.$Array<Schema.Struct<{
|
|
7568
|
-
readonly runId: Schema.String;
|
|
7569
|
-
readonly logicalSealIdentity: Schema.String;
|
|
7570
|
-
}>>;
|
|
7506
|
+
readonly publicationCutoff: Schema.Struct<{
|
|
7507
|
+
readonly storeGeneration: Schema.String;
|
|
7508
|
+
readonly revision: Schema.Number;
|
|
7571
7509
|
}>;
|
|
7572
7510
|
readonly selection: Schema.Struct<{
|
|
7573
7511
|
readonly requestedRunIds: Schema.$Array<Schema.String>;
|
|
@@ -7576,20 +7514,20 @@ export declare const InspectionExplanationDocumentSchema: Schema.Union<(Schema.S
|
|
|
7576
7514
|
}>;
|
|
7577
7515
|
readonly behaviorVersion: Schema.Literal<"2.0.0">;
|
|
7578
7516
|
readonly outcome: Schema.Literal<"explanation">;
|
|
7579
|
-
readonly operation: Schema.Literal<"run.
|
|
7580
|
-
readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-
|
|
7581
|
-
}>
|
|
7517
|
+
readonly operation: Schema.Literal<"run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
|
|
7518
|
+
readonly factKinds: Schema.Tuple<Schema.Literal<"assertions" | "core" | "artifacts" | "sources" | "runner-activities" | "adapter-usage" | "file-changes" | "agent-turns" | "sandbox-commands" | "runner-diagnostics" | "turn-contexts" | "current-project" | "attempt-cost" | "judge-usage" | "execution-traces">[]>;
|
|
7519
|
+
}>[]>;
|
|
7582
7520
|
export declare const InspectionDiscoveryDocumentSchema: Schema.Struct<{
|
|
7583
7521
|
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
7584
7522
|
readonly outcome: Schema.Literal<"discovery">;
|
|
7585
7523
|
readonly operations: Schema.$Array<Schema.Union<Schema.Struct<{
|
|
7586
|
-
readonly id: Schema.Literal<"run.
|
|
7524
|
+
readonly id: Schema.Literal<"run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare">;
|
|
7587
7525
|
}>[]>>;
|
|
7588
7526
|
}>;
|
|
7589
7527
|
export declare const InspectionFailureDocumentSchema: Schema.Struct<{
|
|
7590
7528
|
readonly protocol: Schema.Literal<"niceeval.query/v1">;
|
|
7591
7529
|
readonly outcome: Schema.Literal<"failure">;
|
|
7592
|
-
readonly operation: Schema.NullOr<Schema.Literals<readonly ("run.
|
|
7530
|
+
readonly operation: Schema.NullOr<Schema.Literals<readonly ("run.list" | "run.get" | "project.get" | "overview.get" | "experiment.get" | "attempt.get" | "attempt.assertion.detail" | "attempt.assertion.image" | "attempt.trace" | "attempt.trace.detail" | "attempt.timing" | "attempt.usage" | "attempt.diff" | "attempt.sources" | "attempt.artifacts" | "attempt.artifact" | "runs.compare")[]>>;
|
|
7593
7531
|
readonly failure: Schema.Struct<{
|
|
7594
7532
|
readonly code: Schema.Literals<readonly ["inspection-request-invalid", "inspection-selection-missing", "inspection-source-invalid", "inspection-record-integrity-failure", "inspection-operation-failed", "inspection-result-invalid", "evidence-budget-exceeded", "restart-required", "current-target-unavailable"]>;
|
|
7595
7533
|
readonly reason: Schema.String;
|
|
@@ -7606,7 +7544,7 @@ export declare const InspectionDocumentSchema: Schema.Union<readonly [
|
|
|
7606
7544
|
typeof InspectionFailureDocumentSchema
|
|
7607
7545
|
]>;
|
|
7608
7546
|
type Registry = typeof inspectionProtocolRegistry;
|
|
7609
|
-
type MetadataFor<Kind extends InspectionOperationId> = Kind extends "
|
|
7547
|
+
type MetadataFor<Kind extends InspectionOperationId> = Kind extends "run.list" ? Schema.Schema.Type<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Schema.Type<typeof CompareSuccessMetadataSchema> : Schema.Schema.Type<typeof SuccessMetadataSchema>;
|
|
7610
7548
|
type ResultFields<Kind extends InspectionOperationId> = {
|
|
7611
7549
|
readonly [Field in keyof Registry[Kind]["result"]]: Registry[Kind]["result"][Field] extends Schema.Constraint ? Schema.Schema.Type<Registry[Kind]["result"][Field]> : never;
|
|
7612
7550
|
};
|
|
@@ -7614,7 +7552,7 @@ export type InspectionSuccessDocumentFor<Kind extends InspectionOperationId> = K
|
|
|
7614
7552
|
readonly operation: Kind;
|
|
7615
7553
|
} & ResultFields<Kind> : never;
|
|
7616
7554
|
export type InspectionSuccessDocument = InspectionSuccessDocumentFor<InspectionOperationId>;
|
|
7617
|
-
type SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends "
|
|
7555
|
+
type SuccessEncodedFor<Kind extends InspectionOperationId> = Kind extends InspectionOperationId ? (Kind extends "run.list" ? Schema.Codec.Encoded<typeof RunsListSuccessMetadataSchema> : Kind extends "runs.compare" ? Schema.Codec.Encoded<typeof CompareSuccessMetadataSchema> : Schema.Codec.Encoded<typeof SuccessMetadataSchema>) & {
|
|
7618
7556
|
readonly operation: Kind;
|
|
7619
7557
|
} & {
|
|
7620
7558
|
readonly [Field in keyof Registry[Kind]["result"]]: Registry[Kind]["result"][Field] extends Schema.Constraint ? Schema.Codec.Encoded<Registry[Kind]["result"][Field]> : never;
|