@tangle-network/agent-runtime 0.56.1 → 0.57.0

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.
Files changed (41) hide show
  1. package/dist/agent.d.ts +1 -1
  2. package/dist/agent.js +1 -1
  3. package/dist/analyst-loop.d.ts +1 -1
  4. package/dist/{chunk-6XKXWA7H.js → chunk-6BOIKGSU.js} +2 -2
  5. package/dist/{chunk-F5XQA43K.js → chunk-NJST5D2G.js} +2 -2
  6. package/dist/{chunk-4H2FML7G.js → chunk-RLDUT4JL.js} +758 -191
  7. package/dist/chunk-RLDUT4JL.js.map +1 -0
  8. package/dist/{chunk-EXIV2C72.js → chunk-TVBXDW7C.js} +59 -79
  9. package/dist/chunk-TVBXDW7C.js.map +1 -0
  10. package/dist/{chunk-G4NIVG34.js → chunk-WFEQCRQP.js} +4 -3
  11. package/dist/chunk-WFEQCRQP.js.map +1 -0
  12. package/dist/{coder-COuOK8h8.d.ts → coder-CybltHEm.d.ts} +1 -1
  13. package/dist/{coordination-DWNGqygr.d.ts → coordination-BydGBQCZ.d.ts} +164 -4
  14. package/dist/{delegates-D9o5_VFj.d.ts → delegates-C94qchkz.d.ts} +8 -2
  15. package/dist/index.d.ts +6 -6
  16. package/dist/index.js +4 -4
  17. package/dist/intelligence.d.ts +1 -1
  18. package/dist/{loop-runner-bin-CN2Se3jB.d.ts → loop-runner-bin-Noz7P-mS.d.ts} +3 -3
  19. package/dist/loop-runner-bin.d.ts +4 -4
  20. package/dist/loop-runner-bin.js +3 -3
  21. package/dist/loops.d.ts +7 -6
  22. package/dist/loops.js +13 -1
  23. package/dist/mcp/bin.js +3 -3
  24. package/dist/mcp/index.d.ts +20 -82
  25. package/dist/mcp/index.js +4 -4
  26. package/dist/{openai-tools-CoeLQ7Uo.d.ts → openai-tools-d4GKwgya.d.ts} +1 -1
  27. package/dist/profiles.d.ts +2 -2
  28. package/dist/{run-loop-DluzfJ2h.d.ts → run-loop-CcqfR_gy.d.ts} +1 -1
  29. package/dist/runtime.d.ts +255 -67
  30. package/dist/runtime.js +13 -1
  31. package/dist/{types-C8rNlxfV.d.ts → types-CUzjRFZ3.d.ts} +1 -1
  32. package/dist/workflow.d.ts +2 -2
  33. package/dist/workflow.js +1 -1
  34. package/package.json +2 -2
  35. package/skills/loop-writer/SKILL.md +1 -1
  36. package/skills/supervise/SKILL.md +1 -1
  37. package/dist/chunk-4H2FML7G.js.map +0 -1
  38. package/dist/chunk-EXIV2C72.js.map +0 -1
  39. package/dist/chunk-G4NIVG34.js.map +0 -1
  40. /package/dist/{chunk-6XKXWA7H.js.map → chunk-6BOIKGSU.js.map} +0 -0
  41. /package/dist/{chunk-F5XQA43K.js.map → chunk-NJST5D2G.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { C as CoderOutput, d as CoderTask } from './coder-COuOK8h8.js';
2
- import { g as LoopTraceEmitter, e as LoopTraceEvent, S as SandboxClient, A as AgentRunSpec } from './types-C8rNlxfV.js';
1
+ import { C as CoderOutput, d as CoderTask } from './coder-CybltHEm.js';
2
+ import { g as LoopTraceEmitter, d as LoopTraceEvent, S as SandboxClient, A as AgentRunSpec } from './types-CUzjRFZ3.js';
3
3
  import { SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
4
4
  import { AgentEvalError } from '@tangle-network/agent-eval';
5
5
  import { a as UiLens, U as UiFinding } from './substrate-CUgk7F7s.js';
@@ -1422,6 +1422,12 @@ interface CreateDefaultCoderDelegateOptions {
1422
1422
  harness?: string;
1423
1423
  /** Model override for the single-coder path. */
1424
1424
  model?: string;
1425
+ /**
1426
+ * The worker's authored system prompt (§1.5). Flows onto `coderProfile`'s
1427
+ * `profile.prompt.systemPrompt` → through `runLoop` → the executor's `harnessInvocation`, so the
1428
+ * harness runs under this stance, not just the default coder prompt. Omit to keep the default.
1429
+ */
1430
+ systemPrompt?: string;
1425
1431
  /** Default `['claude-code', 'codex', 'opencode/zai-coding-plan/glm-5.1']` when variants > 1. */
1426
1432
  fanoutHarnesses?: string[];
1427
1433
  /** Optional per-harness model override for `variants > 1`. */
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import { AgentProfile, AgentEvalError, KnowledgeReadinessReport, RunRecord, ControlEvalResult, KnowledgeRequirement } from '@tangle-network/agent-eval';
2
2
  export { AgentEvalError, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ValidationError } from '@tangle-network/agent-eval';
3
- import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-C8rNlxfV.js';
4
- export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-C8rNlxfV.js';
3
+ import { h as AgentBackendInput, i as AgentExecutionBackend, c as OpenAIChatTool, j as OpenAIChatToolChoice, k as AgentBackendContext, R as RuntimeStreamEvent, K as KnowledgeReadinessDecision, l as RunAgentTaskOptions, m as AgentTaskRunResult, n as RunAgentTaskStreamOptions, o as AgentRuntimeEvent, p as AgentTaskStatus, q as RuntimeSessionStore, r as RuntimeSession } from './types-CUzjRFZ3.js';
4
+ export { s as AgentAdapter, t as AgentKnowledgeProvider, u as AgentRuntimeEventSink, v as AgentTaskContext, w as AgentTaskSpec, B as BackendErrorDetail, x as RuntimeRunHandle, y as RuntimeRunPersistenceAdapter, z as RuntimeRunRow, C as startRuntimeRun } from './types-CUzjRFZ3.js';
5
5
  import { Scenario, ProfileDispatchFn } from '@tangle-network/agent-eval/campaign';
6
- export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as reviewLoopRunner, l as runDelegatedLoop, m as runLoopRunnerCli, s as selfImproveLoopRunner } from './loop-runner-bin-CN2Se3jB.js';
7
- export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-CoeLQ7Uo.js';
8
- export { ax as EvalRunEvent, ay as EvalRunGeneration, az as EvalRunsExportConfig, aA as EvalRunsExportResult, aB as INTELLIGENCE_WIRE_VERSION, aC as LoopSpanNode, aD as OtelAttribute, aE as OtelExportConfig, aF as OtelExporter, aG as OtelSpan, aH as buildLoopOtelSpans, aI as buildLoopSpanNodes, aJ as createOtelExporter, aK as exportEvalRuns, aL as loopEventToOtelSpan } from './delegates-D9o5_VFj.js';
6
+ export { C as CoderLoopRunnerOptions, D as DELEGATED_LOOP_MODES, a as DelegatedLoopMode, b as DelegatedLoopRegistry, c as DelegatedLoopResult, d as DelegatedLoopRunner, L as LoopRunnerCliArgs, e as LoopRunnerCliResult, R as ResearchLoopResult, f as ResearchLoopRunnerOptions, g as RunDelegatedLoopOptions, V as VetoedFact, h as auditLoopRunner, i as coderLoopRunner, j as isDelegatedLoopMode, p as parseLoopRunnerArgv, r as researchLoopRunner, k as reviewLoopRunner, l as runDelegatedLoop, m as runLoopRunnerCli, s as selfImproveLoopRunner } from './loop-runner-bin-Noz7P-mS.js';
7
+ export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from './openai-tools-d4GKwgya.js';
8
+ export { ax as EvalRunEvent, ay as EvalRunGeneration, az as EvalRunsExportConfig, aA as EvalRunsExportResult, aB as INTELLIGENCE_WIRE_VERSION, aC as LoopSpanNode, aD as OtelAttribute, aE as OtelExportConfig, aF as OtelExporter, aG as OtelSpan, aH as buildLoopOtelSpans, aI as buildLoopSpanNodes, aJ as createOtelExporter, aK as exportEvalRuns, aL as loopEventToOtelSpan } from './delegates-C94qchkz.js';
9
9
  import { R as RuntimeHooks } from './runtime-hooks-C7JwKb9E.js';
10
10
  export { b as RuntimeDecisionEvidenceRef, c as RuntimeDecisionKind, d as RuntimeDecisionPoint, e as RuntimeHookContext, f as RuntimeHookErrorContext, a as RuntimeHookEvent, g as RuntimeHookPhase, h as RuntimeHookTarget, i as composeRuntimeHooks, j as defineRuntimeHooks, n as notifyRuntimeDecisionPoint, k as notifyRuntimeHookEvent } from './runtime-hooks-C7JwKb9E.js';
11
11
  import '@tangle-network/sandbox';
12
12
  import '@tangle-network/agent-eval/contract';
13
13
  import './types-p8dWBIXL.js';
14
14
  import './kb-gate-CuzMYGYM.js';
15
- import './coder-COuOK8h8.js';
15
+ import './coder-CybltHEm.js';
16
16
  import './substrate-CUgk7F7s.js';
17
17
 
18
18
  /**
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  mcpToolsForRuntimeMcp,
3
3
  mcpToolsForRuntimeMcpSubset
4
- } from "./chunk-F5XQA43K.js";
4
+ } from "./chunk-NJST5D2G.js";
5
5
  import {
6
6
  DEFAULT_ROUTER_BASE_URL,
7
7
  cleanModelId,
@@ -21,16 +21,16 @@ import {
21
21
  runDelegatedLoop,
22
22
  runLoopRunnerCli,
23
23
  selfImproveLoopRunner
24
- } from "./chunk-6XKXWA7H.js";
24
+ } from "./chunk-6BOIKGSU.js";
25
25
  import "./chunk-FNMGYYSS.js";
26
- import "./chunk-G4NIVG34.js";
26
+ import "./chunk-WFEQCRQP.js";
27
27
  import "./chunk-P5OKDSLB.js";
28
28
  import {
29
29
  composeRuntimeHooks,
30
30
  defineRuntimeHooks,
31
31
  notifyRuntimeDecisionPoint,
32
32
  notifyRuntimeHookEvent
33
- } from "./chunk-4H2FML7G.js";
33
+ } from "./chunk-RLDUT4JL.js";
34
34
  import "./chunk-7QYOXFCD.js";
35
35
  import "./chunk-WIR4HOOJ.js";
36
36
  import {
@@ -1,4 +1,4 @@
1
- import { e as LoopTraceEvent } from './types-C8rNlxfV.js';
1
+ import { d as LoopTraceEvent } from './types-CUzjRFZ3.js';
2
2
  import { AgentProfileMcpServer } from '@tangle-network/sandbox';
3
3
  import { T as ToolSpec } from './router-client-30Y_pca8.js';
4
4
  import '@tangle-network/agent-eval';
@@ -1,10 +1,10 @@
1
1
  import { Scenario } from '@tangle-network/agent-eval/campaign';
2
2
  import { SelfImproveOptions, SelfImproveResult } from '@tangle-network/agent-eval/contract';
3
3
  import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-p8dWBIXL.js';
4
- import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-D9o5_VFj.js';
4
+ import { D as DelegateCodeArgs, C as CoderReviewer, a as CoderWinnerSelection } from './delegates-C94qchkz.js';
5
5
  import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CuzMYGYM.js';
6
- import { C as CoderOutput } from './coder-COuOK8h8.js';
7
- import { S as SandboxClient } from './types-C8rNlxfV.js';
6
+ import { C as CoderOutput } from './coder-CybltHEm.js';
7
+ import { S as SandboxClient } from './types-CUzjRFZ3.js';
8
8
 
9
9
  /**
10
10
  * @experimental
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
- export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-CN2Se3jB.js';
2
+ export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, m as runLoopRunnerCli } from './loop-runner-bin-Noz7P-mS.js';
3
3
  import '@tangle-network/agent-eval/campaign';
4
4
  import '@tangle-network/agent-eval/contract';
5
5
  import './types-p8dWBIXL.js';
6
6
  import '@tangle-network/agent-eval';
7
- import './delegates-D9o5_VFj.js';
8
- import './coder-COuOK8h8.js';
7
+ import './delegates-C94qchkz.js';
8
+ import './coder-CybltHEm.js';
9
9
  import '@tangle-network/sandbox';
10
- import './types-C8rNlxfV.js';
10
+ import './types-CUzjRFZ3.js';
11
11
  import './runtime-hooks-C7JwKb9E.js';
12
12
  import './substrate-CUgk7F7s.js';
13
13
  import './kb-gate-CuzMYGYM.js';
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  parseLoopRunnerArgv,
4
4
  runLoopRunnerCli
5
- } from "./chunk-6XKXWA7H.js";
5
+ } from "./chunk-6BOIKGSU.js";
6
6
  import "./chunk-FNMGYYSS.js";
7
- import "./chunk-G4NIVG34.js";
7
+ import "./chunk-WFEQCRQP.js";
8
8
  import "./chunk-P5OKDSLB.js";
9
- import "./chunk-4H2FML7G.js";
9
+ import "./chunk-RLDUT4JL.js";
10
10
  import "./chunk-7QYOXFCD.js";
11
11
  import "./chunk-WIR4HOOJ.js";
12
12
  import "./chunk-VLF5RHEQ.js";
package/dist/loops.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
2
- export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredCoderHarness, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CoderDeliverableOptions, CoderWinnerStrategy, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, TrajectoryNode, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, WorktreeCliExecutorOptions, WorktreeCoderFanoutOptions, WorktreeCommandResult, WorktreePatchArtifact, acquireSandbox, adaptiveRefine, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, coderDeliverable, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createExecutor, createExecutorRegistry, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, defaultAnalystInstruction, defaultAuditorInstruction, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, widen, withDriverExecutor, worktreeCoderFanout } from './runtime.js';
2
+ export { AgenticOptions, AgenticRunResult, AgenticSurface, AgenticTask, AgenticTool, AnytimeReport, AnytimeStrategySummary, AnytimeTaskCurve, ArtifactHandle, AssertTraceDerivedFindings, AuditIntentInput, AuditIntentOptions, AuthorStrategyOptions, AuthoredCoderHarness, AuthoredProfile, AuthoredStrategy, BenchmarkCell, BenchmarkConfig, BenchmarkLift, BenchmarkReport, BenchmarkStrategySummary, BenchmarkTaskRow, BridgeSeam, BudgetPool, BudgetReadout, ChampionPick, ChampionPolicy, CheckpointCapableBox, CliSeam, CliWorktreeSeam, CoderDeliverableOptions, CoderWinnerStrategy, CombinatorShape, CompletionAnalyst, CompletionEvidence, CompletionPolicy, CompletionVerdict, CoordinationDriverOptions, CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, CreateScopeAnalystOptions, CriuCapableClient, DefinePersona, DefinePersonaInput, Deliverable, DeliverableSpec, DetectorMonitor, DetectorMonitorOptions, DriverChat, DriverMessage, DriverToolCall, DriverTurn, Environment, EqualKArm, EqualKOnCost, EqualKOnCostOptions, EqualKVerdict, EvolutionArchiveNode, EvolutionAuthor, EvolutionBandInfo, EvolutionCandidate, EvolutionGeneration, EvolutionReport, ExecutorConfig, Fanout, FanoutOptions, FanoutSynthesis, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, FlatWidenGate, ForkCapableBox, GitWorkspaceOptions, HarvestCorpusOptions, HarvestFailure, HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, Inbox, InboxMessage, IntentAudit, LoopDispatchOptions, LoopOptionsForDispatch, LoopShape, LoopUntil, LoopUntilSpec, LoopUntilState, McpEndpoint, McpEnvironmentOptions, NestedScopeSeam, Observation, ObserveInput, ObserveOptions, OpenSandboxRunOptions, Outcome, Panel, PanelJudge, PanelSpec, PanelVerdict, Persona, PersonaContext, PersonaExecutors, Pipeline, PipelineStage, PromotionGateOptions, PromotionVerdict, RecordedToolStep, RegistryAnalyzeProjection, RenderCorpusToInstructions, RenderCorpusToInstructionsOptions, ReservationTicket, RouterSeam, RouterToolsSeam, RunAgenticOptions, RunPersonified, RunPersonifiedOptions, SandboxCapabilities, SandboxLineage, SandboxLineageHandle, SandboxRun, SandboxSeam, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, SessionCapableBox, ShapeBudget, ShapeContext, ShapeRegistry, Shell, ShotPersona, ShotSpec, SteerContext, Strategy, StrategyCtx, StrategyEvolutionConfig, StrategyResult, SurfaceScore, ToolStep, TrajectoryAnalysis, TrajectoryNode, TrajectoryRecorder, TrajectoryReport, TrajectoryReportFn, TrajectoryReportOptions, TurnResult, UsageSink, VerifierEnvironmentOptions, Verify, VerifySpec, WaterfallCollector, WaterfallReport, WaterfallSpan, Widen, WidenDecision, WidenLineage, WidenSpec, Workspace, WorkspaceCommit, WorkspaceRun, WorktreeCliExecutorOptions, WorktreeCoderFanoutOptions, WorktreeCommandResult, WorktreePatchArtifact, acquireSandbox, adaptiveRefine, anytimeReport, asAuthoredProfile, assertStrategyContract, assertTraceDerivedFindings, auditIntent, authorStrategy, authoredWorker, breadthDriver, buildSteerContext, builtinShapes, cliWorktreeExecutor, coderDeliverable, completionAuthorizes, contentAddress, coordinationDriverAgent, createBudgetPool, createDetectorMonitor, createExecutor, createExecutorRegistry, createInbox, createMcpEnvironment, createRootHandle, createSandboxLineage, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createTrajectoryRecorder, createVerifierEnvironment, createWaterfallCollector, createWorktreeCliExecutor, defaultAnalystInstruction, defaultAuditorInstruction, defaultToolDetectors, definePersona, defineStrategy, depthDriver, deterministicCompletion, discriminatingMeans, driverChild, driverExecutorFactory, driverRuntime, equalKOnCost, extractLlmCallEvent, fanout, flatWidenGate, gateOnDeliverable, gitWorkspace, harvestCorpus, inlineSandboxClient, isDriverSpec, jjWorkspace, localShell, loopDispatch, loopUntil, mapSandboxEvent, materializeTreeView, nestedScopeSeamKey, observe, openSandboxRun, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, promotionGate, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderReport, replaySpawnTree, reportLoopUsage, routerDriverChat, runAgentic, runBenchmark, runInWorkspace, runPersonified, runStrategyEvolution, sample, sampleThenRefine, selectChampion, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, supervisorSkill, trajectoryReport, verify, widen, withDriverExecutor, worktreeCoderFanout } from './runtime.js';
3
3
  export { a as RouterChatResult, b as RouterChatToolsResult, R as RouterConfig, c as RouterToolCall, d as RouterToolLoopResult, T as ToolSpec, r as routerChatWithTools, e as routerChatWithUsage, f as routerToolLoop } from './router-client-30Y_pca8.js';
4
- export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-DluzfJ2h.js';
5
- export { z as Agent, y as AgentSpec, B as Budget, U as Executor, Y as ExecutorContext, P as ExecutorFactory, E as ExecutorRegistry, Z as ExecutorResult, _ as Handle, N as NodeId, $ as NodeSnapshot, a0 as NodeStatus, a1 as Restart, u as ResultBlobStore, H as RootHandle, a2 as RootSignal, a3 as Runtime, O as Scope, x as Settled, w as SpawnEvent, v as SpawnJournal, a4 as SpawnOpts, L as Spend, K as SupervisedResult, X as Supervisor, a5 as SupervisorOpts, T as TreeView, V as UsageEvent, a6 as WidenGate } from './coordination-DWNGqygr.js';
6
- export { A as AgentRunSpec, D as Driver, E as ExecCtx, I as Iteration, F as LoopDecisionPayload, G as LoopEndedPayload, H as LoopIterationDispatchPayload, J as LoopIterationEndedPayload, M as LoopIterationStartedPayload, a as LoopLineageOptions, N as LoopPlanDescription, P as LoopPlanPayload, b as LoopResult, f as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, d as LoopTokenUsage, g as LoopTraceEmitter, e as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-C8rNlxfV.js';
4
+ export { R as RunLoopOptions, c as createSandboxForSpec, d as defaultSelectWinner, r as runLoop } from './run-loop-CcqfR_gy.js';
5
+ export { z as Agent, y as AgentSpec, B as Budget, Y as BusEvent, Z as BusRecord, _ as BusStats, $ as EventBus, U as Executor, a0 as ExecutorContext, P as ExecutorFactory, E as ExecutorRegistry, a1 as ExecutorResult, a2 as Handle, N as NodeId, a3 as NodeSnapshot, a4 as NodeStatus, a5 as PublishOptions, a6 as Restart, u as ResultBlobStore, H as RootHandle, a7 as RootSignal, a8 as Runtime, O as Scope, x as Settled, w as SpawnEvent, v as SpawnJournal, a9 as SpawnOpts, L as Spend, K as SupervisedResult, X as Supervisor, aa as SupervisorOpts, T as TreeView, V as UsageEvent, ab as WidenGate, ac as createEventBus } from './coordination-BydGBQCZ.js';
6
+ export { A as AgentRunSpec, D as Driver, E as ExecCtx, I as Iteration, F as LoopDecisionPayload, G as LoopEndedPayload, H as LoopIterationDispatchPayload, J as LoopIterationEndedPayload, M as LoopIterationStartedPayload, a as LoopLineageOptions, N as LoopPlanDescription, P as LoopPlanPayload, b as LoopResult, f as LoopSandboxPlacement, Q as LoopStartedPayload, T as LoopTeardownFailedPayload, e as LoopTokenUsage, g as LoopTraceEmitter, d as LoopTraceEvent, L as LoopWinner, O as OutputAdapter, S as SandboxClient, U as ValidationCtx, V as Validator } from './types-CUzjRFZ3.js';
7
7
  export { DefaultVerdict } from '@tangle-network/agent-eval';
8
8
  import './runtime-hooks-C7JwKb9E.js';
9
9
  import '@tangle-network/agent-eval/campaign';
10
10
  import './types-p8dWBIXL.js';
11
- import './coder-COuOK8h8.js';
11
+ import './coder-CybltHEm.js';
12
12
  import './local-harness-BE_h8szs.js';
13
13
  import 'node:child_process';
14
- import './delegates-D9o5_VFj.js';
14
+ import '@tangle-network/agent-eval/pipelines';
15
+ import './delegates-C94qchkz.js';
15
16
  import './substrate-CUgk7F7s.js';
package/dist/loops.js CHANGED
@@ -23,8 +23,11 @@ import {
23
23
  contentAddress,
24
24
  coordinationDriverAgent,
25
25
  createBudgetPool,
26
+ createDetectorMonitor,
27
+ createEventBus,
26
28
  createExecutor,
27
29
  createExecutorRegistry,
30
+ createInbox,
28
31
  createMcpEnvironment,
29
32
  createRootHandle,
30
33
  createSandboxForSpec,
@@ -33,12 +36,14 @@ import {
33
36
  createScopeAnalyst,
34
37
  createShapeRegistry,
35
38
  createSupervisor,
39
+ createTrajectoryRecorder,
36
40
  createVerifierEnvironment,
37
41
  createWaterfallCollector,
38
42
  createWorktreeCliExecutor,
39
43
  defaultAnalystInstruction,
40
44
  defaultAuditorInstruction,
41
45
  defaultSelectWinner,
46
+ defaultToolDetectors,
42
47
  definePersona,
43
48
  defineStrategy,
44
49
  depthDriver,
@@ -79,6 +84,7 @@ import {
79
84
  reportLoopUsage,
80
85
  routerChatWithTools,
81
86
  routerChatWithUsage,
87
+ routerDriverChat,
82
88
  routerToolLoop,
83
89
  runAgentic,
84
90
  runBenchmark,
@@ -101,7 +107,7 @@ import {
101
107
  widen,
102
108
  withDriverExecutor,
103
109
  worktreeCoderFanout
104
- } from "./chunk-4H2FML7G.js";
110
+ } from "./chunk-RLDUT4JL.js";
105
111
  import "./chunk-7QYOXFCD.js";
106
112
  import "./chunk-WIR4HOOJ.js";
107
113
  import {
@@ -136,8 +142,11 @@ export {
136
142
  contentAddress,
137
143
  coordinationDriverAgent,
138
144
  createBudgetPool,
145
+ createDetectorMonitor,
146
+ createEventBus,
139
147
  createExecutor,
140
148
  createExecutorRegistry,
149
+ createInbox,
141
150
  createMcpEnvironment,
142
151
  createRootHandle,
143
152
  createSandboxForSpec,
@@ -146,12 +155,14 @@ export {
146
155
  createScopeAnalyst,
147
156
  createShapeRegistry,
148
157
  createSupervisor,
158
+ createTrajectoryRecorder,
149
159
  createVerifierEnvironment,
150
160
  createWaterfallCollector,
151
161
  createWorktreeCliExecutor,
152
162
  defaultAnalystInstruction,
153
163
  defaultAuditorInstruction,
154
164
  defaultSelectWinner,
165
+ defaultToolDetectors,
155
166
  definePersona,
156
167
  defineStrategy,
157
168
  depthDriver,
@@ -194,6 +205,7 @@ export {
194
205
  reportLoopUsage,
195
206
  routerChatWithTools,
196
207
  routerChatWithUsage,
208
+ routerDriverChat,
197
209
  routerToolLoop,
198
210
  runAgentic,
199
211
  runBenchmark,
package/dist/mcp/bin.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createPropagatingTraceEmitter,
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv
6
- } from "../chunk-EXIV2C72.js";
6
+ } from "../chunk-TVBXDW7C.js";
7
7
  import {
8
8
  resolveRouterBaseUrl
9
9
  } from "../chunk-GRAGM4MC.js";
@@ -11,7 +11,7 @@ import {
11
11
  coderTaskFromArgs,
12
12
  createDefaultCoderDelegate,
13
13
  settleDetachedCoderTurn
14
- } from "../chunk-G4NIVG34.js";
14
+ } from "../chunk-WFEQCRQP.js";
15
15
  import {
16
16
  DEFAULT_SANDBOX_BASE_URL
17
17
  } from "../chunk-XRYEZPR6.js";
@@ -26,7 +26,7 @@ import {
26
26
  parseDetachedSessionRef,
27
27
  runDetachedTurn,
28
28
  runLoop
29
- } from "../chunk-4H2FML7G.js";
29
+ } from "../chunk-RLDUT4JL.js";
30
30
  import {
31
31
  coderProfile
32
32
  } from "../chunk-7QYOXFCD.js";
@@ -1,18 +1,18 @@
1
- import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-C8rNlxfV.js';
2
- import { F as FleetHandle, f as DelegationExecutor, d as DelegationTaskQueue, e as CoderDelegate, D as DelegateCodeArgs, g as DelegateCodeResult, h as DelegateFeedbackResult, b as DelegateFeedbackArgs, i as ResearchSource, R as ResearcherDelegate, j as DelegateResearchArgs, k as DelegateResearchResult, U as UiAuditorDelegate, l as DelegateUiAuditArgs, m as DelegateUiAuditResult, n as DelegationHistoryResult, o as DelegationHistoryArgs, p as DelegationStatusResult, q as DelegationStatusArgs } from '../delegates-D9o5_VFj.js';
3
- export { r as CappedDelegationTrace, s as CoderReview, C as CoderReviewer, a as CoderWinnerSelection, t as CreateDefaultCoderDelegateOptions, u as DELEGATION_TRACE_MAX_BYTES, v as DELEGATION_TRACE_MAX_SPANS, w as DelegateCodeConfig, x as DelegateResearchConfig, y as DelegateRunCtx, z as DelegateUiAuditConfig, A as DelegateUiAuditRoute, B as DelegationError, c as DelegationFeedbackSnapshot, E as DelegationHistoryEntry, G as DelegationPersistenceError, H as DelegationProfile, I as DelegationProgress, J as DelegationRecord, K as DelegationResultPayload, L as DelegationResumeContext, M as DelegationResumeDriver, N as DelegationResumeTick, O as DelegationRunContext, P as DelegationStateCorruptError, Q as DelegationStatus, S as DelegationStore, V as DelegationTaskQueueOptions, W as DelegationTraceCaps, X as DelegationTraceCollector, Y as DelegationTraceSpan, Z as DetachedSessionRefParts, _ as DetachedTurn, $ as DriveTurnCapableBox, a0 as DriveTurnResumeDriverOptions, a1 as DriveTurnTick, a2 as FeedbackRating, a3 as FeedbackRefersTo, a4 as FileDelegationStore, a5 as FileDelegationStoreOptions, a6 as FleetWorkspaceExecutorOptions, a7 as InMemoryDelegationStore, a8 as ResearchOutputShape, a9 as RunDetachedTurnOptions, aa as SettleDetachedCoderTurnOptions, ab as SiblingSandboxExecutorOptions, ac as SubmitInput, ad as SubmitOutput, T as TraceContext, ae as UiAuditorDelegationOutput, af as buildDelegationTraceSpans, ag as capDelegationTrace, ah as coderTaskFromArgs, ai as composeLoopTraceEmitters, aj as createDefaultCoderDelegate, ak as createDelegationTraceCollector, al as createDriveTurnResumeDriver, am as createFleetWorkspaceExecutor, an as createPropagatingTraceEmitter, ao as createSiblingSandboxExecutor, ap as detachedTurnEvents, aq as formatDetachedSessionRef, ar as hashIdempotencyInput, as as parseDetachedSessionRef, at as readTraceContextFromEnv, au as runDetachedTurn, av as settleDetachedCoderTurn, aw as traceContextToEnv } from '../delegates-D9o5_VFj.js';
1
+ import { S as SandboxClient, f as LoopSandboxPlacement } from '../types-CUzjRFZ3.js';
2
+ import { F as FleetHandle, f as DelegationExecutor, d as DelegationTaskQueue, e as CoderDelegate, D as DelegateCodeArgs, g as DelegateCodeResult, h as DelegateFeedbackResult, b as DelegateFeedbackArgs, i as ResearchSource, R as ResearcherDelegate, j as DelegateResearchArgs, k as DelegateResearchResult, U as UiAuditorDelegate, l as DelegateUiAuditArgs, m as DelegateUiAuditResult, n as DelegationHistoryResult, o as DelegationHistoryArgs, p as DelegationStatusResult, q as DelegationStatusArgs } from '../delegates-C94qchkz.js';
3
+ export { r as CappedDelegationTrace, s as CoderReview, C as CoderReviewer, a as CoderWinnerSelection, t as CreateDefaultCoderDelegateOptions, u as DELEGATION_TRACE_MAX_BYTES, v as DELEGATION_TRACE_MAX_SPANS, w as DelegateCodeConfig, x as DelegateResearchConfig, y as DelegateRunCtx, z as DelegateUiAuditConfig, A as DelegateUiAuditRoute, B as DelegationError, c as DelegationFeedbackSnapshot, E as DelegationHistoryEntry, G as DelegationPersistenceError, H as DelegationProfile, I as DelegationProgress, J as DelegationRecord, K as DelegationResultPayload, L as DelegationResumeContext, M as DelegationResumeDriver, N as DelegationResumeTick, O as DelegationRunContext, P as DelegationStateCorruptError, Q as DelegationStatus, S as DelegationStore, V as DelegationTaskQueueOptions, W as DelegationTraceCaps, X as DelegationTraceCollector, Y as DelegationTraceSpan, Z as DetachedSessionRefParts, _ as DetachedTurn, $ as DriveTurnCapableBox, a0 as DriveTurnResumeDriverOptions, a1 as DriveTurnTick, a2 as FeedbackRating, a3 as FeedbackRefersTo, a4 as FileDelegationStore, a5 as FileDelegationStoreOptions, a6 as FleetWorkspaceExecutorOptions, a7 as InMemoryDelegationStore, a8 as ResearchOutputShape, a9 as RunDetachedTurnOptions, aa as SettleDetachedCoderTurnOptions, ab as SiblingSandboxExecutorOptions, ac as SubmitInput, ad as SubmitOutput, T as TraceContext, ae as UiAuditorDelegationOutput, af as buildDelegationTraceSpans, ag as capDelegationTrace, ah as coderTaskFromArgs, ai as composeLoopTraceEmitters, aj as createDefaultCoderDelegate, ak as createDelegationTraceCollector, al as createDriveTurnResumeDriver, am as createFleetWorkspaceExecutor, an as createPropagatingTraceEmitter, ao as createSiblingSandboxExecutor, ap as detachedTurnEvents, aq as formatDetachedSessionRef, ar as hashIdempotencyInput, as as parseDetachedSessionRef, at as readTraceContextFromEnv, au as runDetachedTurn, av as settleDetachedCoderTurn, aw as traceContextToEnv } from '../delegates-C94qchkz.js';
4
4
  export { B as BuildDelegationMcpServerOptions, C as ComposeProductionAgentProfileOptions, D as DELEGATION_MCP_SERVER_KEY, b as buildDelegationMcpServer, c as composeProductionAgentProfile } from '../delegation-profile-Bvfro2m1.js';
5
- import { G as GitRunner, F as FeedbackStore } from '../coordination-DWNGqygr.js';
6
- export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, c as CreateWorktreeOptions, D as DiffOptions, d as DiffResult, e as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage, f as JsonRpcResponse, M as MakeWorkerAgent, g as McpServer, h as McpServerOptions, i as McpToolDescriptor, j as McpTransport, Q as Question, k as QuestionDecision, l as QuestionPolicy, m as QuestionRecord, R as RemoveWorktreeOptions, S as SettledWorker, W as WorktreeHandle, n as captureWorktreeDiff, o as createCoordinationTools, p as createInProcessTransport, q as createMcpServer, r as createWorktree, s as eventToSnapshot, t as removeWorktree } from '../coordination-DWNGqygr.js';
5
+ import { G as GitRunner, F as FeedbackStore } from '../coordination-BydGBQCZ.js';
6
+ export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, c as CreateWorktreeOptions, D as DiffOptions, d as DiffResult, e as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage, f as JsonRpcResponse, M as MakeWorkerAgent, g as McpServer, h as McpServerOptions, i as McpToolDescriptor, j as McpTransport, Q as Question, k as QuestionDecision, l as QuestionPolicy, m as QuestionRecord, R as RemoveWorktreeOptions, S as SettledWorker, W as WorktreeHandle, n as captureWorktreeDiff, o as createCoordinationTools, p as createInProcessTransport, q as createMcpServer, r as createWorktree, s as eventToSnapshot, t as removeWorktree } from '../coordination-BydGBQCZ.js';
7
7
  import { L as LocalHarness, r as runLocalHarness } from '../local-harness-BE_h8szs.js';
8
8
  export { a as LocalHarnessResult, R as RunLocalHarnessOptions } from '../local-harness-BE_h8szs.js';
9
9
  export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CuzMYGYM.js';
10
- export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-CoeLQ7Uo.js';
10
+ export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-d4GKwgya.js';
11
11
  import { AnalystFinding } from '@tangle-network/agent-eval';
12
12
  import { a as UiLens } from '../substrate-CUgk7F7s.js';
13
13
  import '@tangle-network/sandbox';
14
14
  import '../runtime-hooks-C7JwKb9E.js';
15
- import '../coder-COuOK8h8.js';
15
+ import '../coder-CybltHEm.js';
16
16
  import 'node:child_process';
17
17
 
18
18
  /**
@@ -51,63 +51,15 @@ interface DetectExecutorArgs {
51
51
  */
52
52
  declare function detectExecutor(args: DetectExecutorArgs): Promise<DelegationExecutor>;
53
53
 
54
- /**
55
- * @experimental
56
- *
57
- * In-process delegation executor — when `agent-runtime-mcp` is running
58
- * inside a sandbox whose image carries the local coding-harness CLIs
59
- * (claude / codex / opencode), delegations spawn the harness AS A
60
- * SUBPROCESS against a git worktree on the SAME filesystem instead of
61
- * provisioning a sibling sandbox.
62
- *
63
- * Why: zero provisioning latency, worker diffs land in-place, multi-harness
64
- * fanout = N parallel subprocesses in N parallel worktrees.
65
- *
66
- * Selection:
67
- * - env `AGENT_RUNTIME_IN_SANDBOX=1` (set by the parent harness at MCP
68
- * server launch) → in-process executor
69
- * - env `TANGLE_FLEET_ID=...` → fleet executor (Phase 2.5)
70
- * - neither → sibling sandbox executor (default)
71
- *
72
- * Multi-harness rotation: pass `harnesses: ['claude', 'codex', 'opencode']`
73
- * to round-robin across calls. A `runLoop` + `FanoutVote(n: 3)` against this
74
- * executor produces three parallel iterations, each running a different
75
- * harness on its own worktree.
76
- *
77
- * Architecture:
78
- *
79
- * client.create() → returns a fake SandboxInstance whose streamPrompt:
80
- * 1. createWorktree() — git worktree add /workspace/.coder-variants/<id>
81
- * 2. runLocalHarness() — spawn claude/codex/opencode subprocess
82
- * 3. captureWorktreeDiff() — git diff HEAD → patch + stats
83
- * 4. run testCmd + typecheckCmd if specified (the executor doesn't
84
- * own these — caller wires via task-extractor callback)
85
- * 5. emit ONE SandboxEvent { type: 'result', data: { result: CoderOutput } }
86
- * 6. removeWorktree() in finally
87
- */
88
-
89
54
  /** @experimental */
90
55
  interface InProcessExecutorOptions {
91
- /**
92
- * Absolute path to the git repo (the workspace inside the sandbox). The
93
- * executor creates worktrees under `<repoRoot>/.coder-variants/`.
94
- */
56
+ /** Absolute path to the git repo (the workspace). Worktrees go under `<repoRoot>/.coder-variants/`. */
95
57
  repoRoot: string;
96
- /**
97
- * Harnesses to round-robin across calls. With one entry every delegation
98
- * uses that harness; with three you get fanout diversity for free.
99
- * Default `['claude']`.
100
- */
58
+ /** Harnesses to round-robin across `create()` calls. One entry = no fanout. Default `['claude']`. */
101
59
  harnesses?: ReadonlyArray<LocalHarness>;
102
- /**
103
- * Optional per-delegation test command. Run with `cwd = worktree.path`
104
- * after the harness exits. The exit code populates
105
- * `CoderOutput.testResult.passed`.
106
- */
60
+ /** Optional per-delegation test command run in the worktree after the harness exits. */
107
61
  testCmd?: string;
108
- /**
109
- * Optional per-delegation typecheck command. Same shape as `testCmd`.
110
- */
62
+ /** Optional per-delegation typecheck command. Same shape as `testCmd`. */
111
63
  typecheckCmd?: string;
112
64
  /** Wall-clock cap per harness subprocess (ms). Default 5min. */
113
65
  harnessTimeoutMs?: number;
@@ -115,16 +67,10 @@ interface InProcessExecutorOptions {
115
67
  postCheckTimeoutMs?: number;
116
68
  /** Test seam — override the git runner used by the worktree helpers. */
117
69
  runGit?: GitRunner;
118
- /**
119
- * Test seam — override the harness runner. Defaults to spawning the real
120
- * CLI via `runLocalHarness`. Tests inject a stub that returns a scripted
121
- * `LocalHarnessResult`.
122
- */
70
+ /** Test seam — override the harness runner (defaults to the real CLI via `runLocalHarness`). */
123
71
  runHarness?: typeof runLocalHarness;
124
- /**
125
- * Test seam override the post-check runner. Defaults to spawning the
126
- * configured `testCmd` / `typecheckCmd` via `child_process.spawn`.
127
- */
72
+ /** Test seam — override the post-check runner (defaults to a `sh -c` spawn). A throw is folded
73
+ * into a non-fatal `{exitCode:-1}` so a broken check command fails the signal, not the run. */
128
74
  runPostCheck?: (cmd: string, cwd: string, signal?: AbortSignal) => Promise<{
129
75
  exitCode: number;
130
76
  stdout: string;
@@ -133,25 +79,17 @@ interface InProcessExecutorOptions {
133
79
  }
134
80
  /** @experimental */
135
81
  interface InProcessExecutorDescribePlacement extends LoopSandboxPlacement {
136
- /**
137
- * Worktree path in the parent sandbox's filesystem. Set so trace
138
- * consumers can correlate dispatch events with on-disk artifacts after
139
- * the worker exits.
140
- */
82
+ /** Worktree path in the parent sandbox's filesystem (set so traces correlate to on-disk artifacts). */
141
83
  worktreePath?: string;
142
84
  /** Which harness handled this delegation. */
143
85
  harness?: LocalHarness;
144
86
  }
145
87
  /**
146
- * Build an in-process executor.
147
- *
148
- * Returns a {@link DelegationExecutor} whose `client.create()` returns a
149
- * minimal "virtual" SandboxInstance the kernel calls `streamPrompt(msg)`
150
- * on it, which runs the local harness on a worktree and emits one
151
- * `result` event whose `data.result` is a `CoderOutput`-shaped record.
152
- *
153
- * Pairs with `coderProfile`'s event parser (it walks the event list
154
- * back-to-front for the first `type === 'result'`).
88
+ * Build an in-process executor. Returns a {@link DelegationExecutor} whose `client.create()`
89
+ * returns a minimal virtual `SandboxInstance`; the kernel calls `streamPrompt(msg)` on it, which
90
+ * runs the shared worktree-harness core and emits one `result` event whose `data.result` is a
91
+ * `CoderOutput`. The authored profile (`backend.profile`) threads its systemPrompt + model into
92
+ * the harness via the core.
155
93
  *
156
94
  * @experimental
157
95
  */
package/dist/mcp/index.js CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  detectExecutor,
5
5
  readTraceContextFromEnv,
6
6
  traceContextToEnv
7
- } from "../chunk-EXIV2C72.js";
7
+ } from "../chunk-TVBXDW7C.js";
8
8
  import {
9
9
  mcpToolsForRuntimeMcp,
10
10
  mcpToolsForRuntimeMcpSubset
11
- } from "../chunk-F5XQA43K.js";
11
+ } from "../chunk-NJST5D2G.js";
12
12
  import {
13
13
  createKbGate
14
14
  } from "../chunk-FNMGYYSS.js";
@@ -18,7 +18,7 @@ import {
18
18
  createFleetWorkspaceExecutor,
19
19
  createSiblingSandboxExecutor,
20
20
  settleDetachedCoderTurn
21
- } from "../chunk-G4NIVG34.js";
21
+ } from "../chunk-WFEQCRQP.js";
22
22
  import {
23
23
  DELEGATION_MCP_SERVER_KEY,
24
24
  buildDelegationMcpServer,
@@ -81,7 +81,7 @@ import {
81
81
  validateDelegateUiAuditArgs,
82
82
  validateDelegationHistoryArgs,
83
83
  validateDelegationStatusArgs
84
- } from "../chunk-4H2FML7G.js";
84
+ } from "../chunk-RLDUT4JL.js";
85
85
  import "../chunk-7QYOXFCD.js";
86
86
  import "../chunk-WIR4HOOJ.js";
87
87
  import "../chunk-VLF5RHEQ.js";
@@ -1,4 +1,4 @@
1
- import { c as OpenAIChatTool } from './types-C8rNlxfV.js';
1
+ import { c as OpenAIChatTool } from './types-CUzjRFZ3.js';
2
2
 
3
3
  /**
4
4
  * @experimental
@@ -1,5 +1,5 @@
1
- export { a as CoderCheckConstraints, b as CoderCheckInput, C as CoderOutput, c as CoderProfileOptions, d as CoderTask, M as MultiHarnessCoderFanoutOptions, e as coderProfile, f as createCoderValidator, m as multiHarnessCoderFanout, r as runCoderChecks } from './coder-COuOK8h8.js';
2
- import { S as SandboxClient, O as OutputAdapter, V as Validator, A as AgentRunSpec } from './types-C8rNlxfV.js';
1
+ export { a as CoderCheckConstraints, b as CoderCheckInput, C as CoderOutput, c as CoderProfileOptions, d as CoderTask, M as MultiHarnessCoderFanoutOptions, e as coderProfile, f as createCoderValidator, m as multiHarnessCoderFanout, r as runCoderChecks } from './coder-CybltHEm.js';
2
+ import { S as SandboxClient, O as OutputAdapter, V as Validator, A as AgentRunSpec } from './types-CUzjRFZ3.js';
3
3
  import { a as UiLens, U as UiFinding } from './substrate-CUgk7F7s.js';
4
4
  export { b as UI_FINDING_SEVERITIES, c as UI_LENSES, d as UiFindingScreenshot, e as UiFindingSeverity } from './substrate-CUgk7F7s.js';
5
5
  import { SandboxEvent, AgentProfile } from '@tangle-network/sandbox';
@@ -1,5 +1,5 @@
1
1
  import { SandboxInstance } from '@tangle-network/sandbox';
2
- import { D as Driver, A as AgentRunSpec, O as OutputAdapter, V as Validator, E as ExecCtx, I as Iteration, L as LoopWinner, a as LoopLineageOptions, S as SandboxClient, b as LoopResult } from './types-C8rNlxfV.js';
2
+ import { D as Driver, A as AgentRunSpec, O as OutputAdapter, V as Validator, E as ExecCtx, I as Iteration, L as LoopWinner, a as LoopLineageOptions, S as SandboxClient, b as LoopResult } from './types-CUzjRFZ3.js';
3
3
 
4
4
  /**
5
5
  * @experimental