@tangle-network/agent-runtime 6.0.5 → 6.0.7
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/CHANGELOG.md +8 -0
- package/dist/{activation-kpRQffeo.js → activation-Bb2ovvM5.js} +4 -4
- package/dist/{activation-kpRQffeo.js.map → activation-Bb2ovvM5.js.map} +1 -1
- package/dist/{activation-DEKw9CDD.d.ts → activation-DPz8kGpT.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{bundle-BET6gl5r.js → bundle-Cy5igJdv.js} +2 -2
- package/dist/{bundle-BET6gl5r.js.map → bundle-Cy5igJdv.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{coordination-manager-ds4pn4IC.js → coordination-manager-Cow3jgu1.js} +4 -4
- package/dist/{coordination-manager-ds4pn4IC.js.map → coordination-manager-Cow3jgu1.js.map} +1 -1
- package/dist/{delegate-B2Z1CueR.js → delegate-zUOoWutU.js} +2 -2
- package/dist/{delegate-B2Z1CueR.js.map → delegate-zUOoWutU.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +8 -8
- package/dist/{graph-flrNgUfu.js → graph-BS9p0hHV.js} +5 -5
- package/dist/{graph-flrNgUfu.js.map → graph-BS9p0hHV.js.map} +1 -1
- package/dist/{improve-DEkdGeQV.js → improve-Ca4PSA2z.js} +7 -7
- package/dist/{improve-DEkdGeQV.js.map → improve-Ca4PSA2z.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +61 -13
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +13 -13
- package/dist/{loop-runner-CDad0CCY.d.ts → loop-runner-9surW8mg.d.ts} +2 -2
- package/dist/{loop-runner-CrEq3gmu.js → loop-runner-B_K3oLGC.js} +2 -2
- package/dist/{loop-runner-CrEq3gmu.js.map → loop-runner-B_K3oLGC.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/{prepare-O1HbzOqs.js → prepare-Dtfk_Wi_.js} +3 -3
- package/dist/{prepare-O1HbzOqs.js.map → prepare-Dtfk_Wi_.js.map} +1 -1
- package/dist/{profile-DcRoyryP.js → profile-CNSQjOes.js} +2 -2
- package/dist/{profile-DcRoyryP.js.map → profile-CNSQjOes.js.map} +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-CuX82sFT.js → provision-supervisor-ZG-ZxIe9.js} +4 -4
- package/dist/{provision-supervisor-CuX82sFT.js.map → provision-supervisor-ZG-ZxIe9.js.map} +1 -1
- package/dist/{run-cancellation-ZmRSYLu5.js → run-cancellation-CqF01-zj.js} +2 -2
- package/dist/{run-cancellation-ZmRSYLu5.js.map → run-cancellation-CqF01-zj.js.map} +1 -1
- package/dist/{run-state-Dt-v0Fr8.js → run-state-CeMgqULw.js} +4 -4
- package/dist/{run-state-Dt-v0Fr8.js.map → run-state-CeMgqULw.js.map} +1 -1
- package/dist/{runtime-BNSsSOZ7.js → runtime-CBt8PWn5.js} +419 -54
- package/dist/runtime-CBt8PWn5.js.map +1 -0
- package/dist/{scope-DSm2RW5I.js → scope-BF3RUg3U.js} +2 -2
- package/dist/{scope-DSm2RW5I.js.map → scope-BF3RUg3U.js.map} +1 -1
- package/dist/{search-executor-CpQIJAdh.js → search-executor-CoLgtigZ.js} +4 -4
- package/dist/{search-executor-CpQIJAdh.js.map → search-executor-CoLgtigZ.js.map} +1 -1
- package/dist/{server-umzSNbPI.js → server-Dv_wLT9_.js} +3 -3
- package/dist/{server-umzSNbPI.js.map → server-Dv_wLT9_.js.map} +1 -1
- package/dist/{structural-rollout-B8PkKbfv.js → structural-rollout-ccetqcnq.js} +4 -4
- package/dist/{structural-rollout-B8PkKbfv.js.map → structural-rollout-ccetqcnq.js.map} +1 -1
- package/dist/{supervise-B3hzcqVU.js → supervise-BMqPWSv7.js} +5 -5
- package/dist/{supervise-B3hzcqVU.js.map → supervise-BMqPWSv7.js.map} +1 -1
- package/dist/{supervision-discovery-BNChDps7.js → supervision-discovery-mF3cWh36.js} +2 -2
- package/dist/{supervision-discovery-BNChDps7.js.map → supervision-discovery-mF3cWh36.js.map} +1 -1
- package/dist/{supervisor-DpWSUrwB.js → supervisor-CigTbS9A.js} +21 -20
- package/dist/supervisor-CigTbS9A.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +13 -13
- package/dist/{top-web-CQNkrh_j.js → top-web-DBhkr1lN.js} +4 -4
- package/dist/{top-web-CQNkrh_j.js.map → top-web-DBhkr1lN.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-niKnm6ux.d.ts → types-DmJTtmgm.d.ts} +54 -4
- package/dist/{workspace-streams-uB9rRbms.js → workspace-streams-B7yNMahl.js} +2 -2
- package/dist/{workspace-streams-uB9rRbms.js.map → workspace-streams-B7yNMahl.js.map} +1 -1
- package/package.json +1 -1
- package/dist/runtime-BNSsSOZ7.js.map +0 -1
- package/dist/supervisor-DpWSUrwB.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $S as
|
|
1
|
+
import { $S as startRuntimeRun, Ay as RuntimeStreamEventSink, C as RuntimeFailureCause, Cy as OtelExporter, Dy as loopEventToOtelSpan, El as IsolatedCheckResult, Ey as createOtelExporter, Fy as createRuntimeEventCollector, Iy as createRuntimeStreamEventCollector, JS as RuntimeRunHandle, KS as RuntimeRunCompleteInput, Ky as Budget, Ld as SupervisorProfile, Ly as sanitizeKnowledgeReadinessReport, My as RuntimeTelemetryOptions, Ny as SanitizedKnowledgeReadinessReport, Oy as RuntimeEventCollector, Py as SanitizedKnowledgeRequirement, QS as RuntimeRunStatus, Ru as SuperviseOptions, S as RuntimeStreamEvent, Sy as OtelExportStats, T as RuntimeFailureOwner, Ty as buildLoopOtelSpans, Ub as ExecutorFactory, XS as RuntimeRunPersistenceAdapter, YS as RuntimeRunOptions, Yf as ExecutorConfig, ZS as RuntimeRunRow, _ as RunAgentTaskOptions, a as AgentKnowledgeProvider, aC as BackendTransportError, b as RuntimeSession, by as OtelAttribute, c as AgentTaskContext, cC as NotFoundError, d as AgentTaskStatus, g as OpenAIChatToolChoice, h as OpenAIChatTool, i as AgentExecutionBackend, iC as AgentEvalErrorCode, jy as RuntimeStreamEventSummary, ky as RuntimeStreamEventCollector, l as AgentTaskRunResult, lC as ValidationError, m as OpenAIChatResponseFormat, n as AgentBackendContext, o as AgentRuntimeEvent, oC as ConfigError, p as KnowledgeReadinessDecision, qS as RuntimeRunCost, r as AgentBackendInput, rC as AgentEvalError, s as AgentRuntimeEventSink, sC as JudgeError, t as AgentAdapter, tC as Redactor, u as AgentTaskSpec, v as RunAgentTaskStreamOptions, vb as SupervisedResult, w as RuntimeFailureCode, wl as IsolatedCheckBoxEvidence, wy as OtelSpan, x as RuntimeSessionStore, xy as OtelExportConfig, y as RuntimeCanonicalStreamEvent } from "./types-DmJTtmgm.js";
|
|
2
2
|
import { T as AgentCandidateOutputArtifactPort } from "./workspace-archive-DS9E9tUr.js";
|
|
3
3
|
import { a as RuntimeHookContext, c as RuntimeHookPhase, d as composeRuntimeHooks, f as defineRuntimeHooks, i as RuntimeExecutionAdmittedPayload, l as RuntimeHookTarget, o as RuntimeHookErrorContext, s as RuntimeHookEvent, u as RuntimeHooks } from "./runtime-hooks-DPghSHV7.js";
|
|
4
4
|
import { a as ImprovementProposalSource } from "./types-qsqfyQoY.js";
|
|
5
5
|
import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5GRU1eY.js";
|
|
6
|
-
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-
|
|
7
|
-
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-
|
|
6
|
+
import { $ as ImproveCodeBaseOptions, $t as CandidateGenerator, At as SearchPromotion, B as DecideSearchImprovementOptions, Bt as sharedBoxLane, Ct as ImproveSearchOptions, Dt as ImprovementCodeCandidate, Et as ImproveSurface, Ft as SearchLaneOptions, G as ImproveTrainingOptions, Gt as AgenticGeneratorOptions, H as decideSearchImprovement, Ht as DeepReadonly, It as SearchTraceOptions, J as ProfileTrainerRequest, Jt as AgenticGeneratorShotReceipt, K as ImproveTrainingResult, Kt as AgenticGeneratorShotDisposition, L as improve, Lt as SharedBoxSearchLane, Mt as SearchEnvironmentFault, Nt as SearchLane, Ot as ImprovementProfileCandidate, Pt as SearchLaneKind, Q as ImproveCandidateValidator, Qt as commandVerifier, R as SearchMethodOptions, Rt as dedicatedLane, St as ImproveSearchMethod, Tt as ImproveSkillsOptions, U as CheckpointServingPort, Ut as ReadonlyAgentProfile, V as SearchImprovementDecision, Vt as subscriptionLane, W as ControlledTrainingCommand, Wt as AgenticGeneratorExecutorForWorktree, X as createCommandProfileTrainer, Xt as VerifyResult, Y as TrainingBoundaryResult, Yt as Verifier, Z as ImproveCandidateValidationInput, Zt as agenticGenerator, at as ImproveLineage, bt as ImproveSearchAgent, ct as ImproveMethodLineage, dt as ImproveMethodSource, et as ImproveCodeOptions, ft as ImproveOptimizationRunOptions, gt as ImproveProfileSurface, ht as ImproveProfileComponents, i as AgentImprovementActivationTransition, it as ImproveCustomCodeGeneratorOptions, jt as SearchCellContext, kt as SearchDispatchContext, lt as ImproveMethodOptions, mt as ImproveProfileAgent, n as AgentImprovementActivationResultStore, nt as ImproveCodeRunOptions, ot as ImproveMethodContext, q as ProfileTrainer, qt as AgenticGeneratorShotExecution, rt as ImproveCost, st as ImproveMethodFactory, t as AgentImprovementActivationReconciliation, tt as ImproveCodeResult, ut as ImproveMethodResult, vt as ImproveRuntimeCodeGeneratorOptions, wt as ImproveSearchResult, xt as ImproveSearchIdentity, yt as ImproveScenarioPartitions, z as searchMethod, zt as routerLane } from "./activation-DPz8kGpT.js";
|
|
7
|
+
import { i as auditLoopRunner, r as DelegatedLoopRunner } from "./loop-runner-9surW8mg.js";
|
|
8
8
|
import { toW3CSpanId as padSpanId, toW3CTraceId as padTraceId } from "@tangle-network/agent-trace-contract";
|
|
9
9
|
import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
|
|
10
10
|
import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, CustomTokenPricing, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { Bn as createRuntimeEventCollector, Br as executableAgentProfileSnapshot, Hn as sanitizeKnowledgeReadinessReport, In as createOtelExporter, Mn as buildLoopOtelSpans, Un as sanitizeRuntimeStreamEvent, Vn as createRuntimeStreamEventCollector, ii as providerMessageText, zn as loopEventToOtelSpan } from "./scope-
|
|
1
|
+
import { Bn as createRuntimeEventCollector, Br as executableAgentProfileSnapshot, Hn as sanitizeKnowledgeReadinessReport, In as createOtelExporter, Mn as buildLoopOtelSpans, Un as sanitizeRuntimeStreamEvent, Vn as createRuntimeStreamEventCollector, ii as providerMessageText, zn as loopEventToOtelSpan } from "./scope-BF3RUg3U.js";
|
|
2
2
|
import { a as JudgeError, f as RuntimeRunStateError, i as ConfigError, m as ValidationError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError } from "./errors-AzSuGI23.js";
|
|
3
|
-
import { B as InMemoryRuntimeSessionStore, C as optimizerMethod, H as nowIso, I as streamAgentTurn, L as createIterableBackend, R as createSandboxPromptBackend, U as startOrResumeRuntimeSession, V as newRuntimeSession, W as touchSession, z as normalizeBackendStreamEvent } from "./structural-rollout-
|
|
3
|
+
import { B as InMemoryRuntimeSessionStore, C as optimizerMethod, H as nowIso, I as streamAgentTurn, L as createIterableBackend, R as createSandboxPromptBackend, U as startOrResumeRuntimeSession, V as newRuntimeSession, W as touchSession, z as normalizeBackendStreamEvent } from "./structural-rollout-ccetqcnq.js";
|
|
4
4
|
import { v as sleep } from "./util-C_cdPNC4.js";
|
|
5
5
|
import { n as runtimeFailureCause } from "./failure-cause-BzjUUsRz.js";
|
|
6
6
|
import { d as resolveRedactor, u as defaultRedactorIdentityMaterial } from "./snapshot-Cgj2Wzi6.js";
|
|
7
|
-
import { At as priceTokens, jt as ROUTER_PRICE_SOURCE } from "./supervisor-
|
|
7
|
+
import { At as priceTokens, jt as ROUTER_PRICE_SOURCE } from "./supervisor-CigTbS9A.js";
|
|
8
8
|
import { t as assertExecutableAgentProfile } from "./model-policy-JOcg3NRs.js";
|
|
9
|
-
import { c as withMethodRuntimeControls, d as commandVerifier, f as addRuntimeUsage, i as assertCandidateValidator, m as isUsageAmount, n as createCommandProfileTrainer, o as parseExecutionRef, p as createRuntimeUsageTotals, r as searchMethod, s as privateValuePaths, t as improve, u as agenticGenerator } from "./improve-
|
|
10
|
-
import {
|
|
9
|
+
import { c as withMethodRuntimeControls, d as commandVerifier, f as addRuntimeUsage, i as assertCandidateValidator, m as isUsageAmount, n as createCommandProfileTrainer, o as parseExecutionRef, p as createRuntimeUsageTotals, r as searchMethod, s as privateValuePaths, t as improve, u as agenticGenerator } from "./improve-Ca4PSA2z.js";
|
|
10
|
+
import { I as embeddedCandidateArtifact, L as immutableCandidateValue, M as canonicalCandidateBytes$1, N as canonicalCandidateDigest$1, R as omitTopLevelDigest, g as persistCandidateOutputArtifact, s as captureAgentCandidateWorkspace } from "./workspace-streams-B7yNMahl.js";
|
|
11
11
|
import { n as defineRuntimeHooks, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
12
|
-
import { n as createAgentImprovementActivationResult } from "./activation-
|
|
13
|
-
import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-
|
|
14
|
-
import { t as sealAgentCandidateBundle } from "./bundle-
|
|
15
|
-
import { t as supervise } from "./supervise-
|
|
16
|
-
import {
|
|
12
|
+
import { n as createAgentImprovementActivationResult } from "./activation-Bb2ovvM5.js";
|
|
13
|
+
import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-CoLgtigZ.js";
|
|
14
|
+
import { t as sealAgentCandidateBundle } from "./bundle-Cy5igJdv.js";
|
|
15
|
+
import { t as supervise } from "./supervise-BMqPWSv7.js";
|
|
16
|
+
import { qt as validateIsolatedCheckOutputs } from "./runtime-CBt8PWn5.js";
|
|
17
|
+
import { n as auditLoopRunner } from "./loop-runner-B_K3oLGC.js";
|
|
17
18
|
import { toW3CSpanId as padSpanId, toW3CTraceId as padTraceId } from "@tangle-network/agent-trace-contract";
|
|
18
|
-
import { agentCandidateKnowledgeSchema, agentCandidateWorkspaceManifestMaterialSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
19
|
+
import { agentCandidateArtifactRefSchema, agentCandidateKnowledgeSchema, agentCandidateWorkspaceManifestMaterialSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
19
20
|
import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
|
|
20
21
|
import { z } from "zod";
|
|
21
22
|
import { createHash } from "node:crypto";
|
|
@@ -2662,6 +2663,51 @@ function toAgentContext(task, knowledge, ctx) {
|
|
|
2662
2663
|
};
|
|
2663
2664
|
}
|
|
2664
2665
|
// src/runtime/isolated-check-result.ts
|
|
2666
|
+
const isolatedCheckOutputEvidenceSchema = z.object({
|
|
2667
|
+
executionId: z.string().max(200).refine((value) => value.trim() !== "" && !/\p{Cc}/u.test(value)),
|
|
2668
|
+
inputDigest: sha256DigestSchema,
|
|
2669
|
+
status: z.enum(["retained", "incomplete"]),
|
|
2670
|
+
files: z.array(z.object({
|
|
2671
|
+
path: z.string(),
|
|
2672
|
+
artifact: agentCandidateArtifactRefSchema
|
|
2673
|
+
}).strict()).max(16),
|
|
2674
|
+
missing: z.array(z.object({
|
|
2675
|
+
path: z.string(),
|
|
2676
|
+
reason: z.enum([
|
|
2677
|
+
"missing",
|
|
2678
|
+
"unsafe-path",
|
|
2679
|
+
"size-limit",
|
|
2680
|
+
"capture-failed",
|
|
2681
|
+
"store-failed",
|
|
2682
|
+
"timeout"
|
|
2683
|
+
])
|
|
2684
|
+
}).strict()).max(16),
|
|
2685
|
+
source: z.discriminatedUnion("kind", [z.object({
|
|
2686
|
+
kind: z.literal("local"),
|
|
2687
|
+
path: z.string().min(1)
|
|
2688
|
+
}).strict(), z.object({
|
|
2689
|
+
kind: z.literal("sandbox"),
|
|
2690
|
+
sandboxId: z.string().min(1),
|
|
2691
|
+
state: z.literal("stopped")
|
|
2692
|
+
}).strict()]).optional()
|
|
2693
|
+
}).strict().superRefine((value, context) => {
|
|
2694
|
+
try {
|
|
2695
|
+
validateIsolatedCheckOutputs({
|
|
2696
|
+
paths: [...value.files, ...value.missing].map((file) => file.path),
|
|
2697
|
+
maxFileBytes: 67108864,
|
|
2698
|
+
maxTotalBytes: 67108864
|
|
2699
|
+
});
|
|
2700
|
+
} catch {
|
|
2701
|
+
context.addIssue({
|
|
2702
|
+
code: "custom",
|
|
2703
|
+
message: "Check output evidence has invalid paths"
|
|
2704
|
+
});
|
|
2705
|
+
}
|
|
2706
|
+
if (value.status === "retained" !== (value.missing.length === 0) || value.status === "retained" && value.source !== void 0 || value.files.reduce((bytes, file) => bytes + file.artifact.byteLength, 0) > 67108864) context.addIssue({
|
|
2707
|
+
code: "custom",
|
|
2708
|
+
message: "Check output evidence is inconsistent"
|
|
2709
|
+
});
|
|
2710
|
+
});
|
|
2665
2711
|
/** Decode the existing execution contract without widening or reinterpreting its evidence. */
|
|
2666
2712
|
const isolatedCheckBoxEvidenceSchema = z.object({
|
|
2667
2713
|
sandboxId: z.string().min(1),
|
|
@@ -2682,7 +2728,8 @@ const isolatedCheckResultSchema = z.discriminatedUnion("succeeded", [z.object({
|
|
|
2682
2728
|
stdout: z.string(),
|
|
2683
2729
|
stderr: z.string()
|
|
2684
2730
|
}).strict(),
|
|
2685
|
-
box: isolatedCheckBoxEvidenceSchema.optional()
|
|
2731
|
+
box: isolatedCheckBoxEvidenceSchema.optional(),
|
|
2732
|
+
outputs: isolatedCheckOutputEvidenceSchema.optional()
|
|
2686
2733
|
}).strict(), z.object({
|
|
2687
2734
|
succeeded: z.literal(false),
|
|
2688
2735
|
reason: z.enum([
|
|
@@ -2699,7 +2746,8 @@ const isolatedCheckResultSchema = z.discriminatedUnion("succeeded", [z.object({
|
|
|
2699
2746
|
stderr: z.string().optional(),
|
|
2700
2747
|
exitCode: z.number().int().nullable().optional(),
|
|
2701
2748
|
cleanupDiagnostic: z.string().optional(),
|
|
2702
|
-
box: isolatedCheckBoxEvidenceSchema.optional()
|
|
2749
|
+
box: isolatedCheckBoxEvidenceSchema.optional(),
|
|
2750
|
+
outputs: isolatedCheckOutputEvidenceSchema.optional()
|
|
2703
2751
|
}).strict()]);
|
|
2704
2752
|
// src/runtime-run.ts
|
|
2705
2753
|
/**
|