@tangle-network/agent-runtime 10.0.19 → 10.0.21
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-BudDVuT6.d.ts → activation-B0arteLE.d.ts} +2 -2
- package/dist/{activation-DLnZJab0.js → activation-D_J9qCzU.js} +2 -2
- package/dist/{activation-DLnZJab0.js.map → activation-D_J9qCzU.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +4 -4
- package/dist/{delegate-9b8qGlXp.js → delegate-AfWnrUWf.js} +2 -2
- package/dist/{delegate-9b8qGlXp.js.map → delegate-AfWnrUWf.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-b5MsXxR5.js → driver-control-acknowledgers-CgeEYeHA.js} +8 -8
- package/dist/{driver-control-acknowledgers-b5MsXxR5.js.map → driver-control-acknowledgers-CgeEYeHA.js.map} +1 -1
- package/dist/durable-writer-thread.js +4 -4
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +13 -14
- package/dist/durable.js.map +1 -1
- package/dist/{graph--n31XKWJ.js → graph-hVouinKw.js} +8 -8
- package/dist/{graph--n31XKWJ.js.map → graph-hVouinKw.js.map} +1 -1
- package/dist/{graph-registry-aMRd94PD.js → graph-registry-DI8o9iCB.js} +1 -1
- package/dist/{graph-registry-SgsCxCTZ.js → graph-registry-qyaNDATw.js} +2 -3
- package/dist/{graph-registry-SgsCxCTZ.js.map → graph-registry-qyaNDATw.js.map} +1 -1
- package/dist/{improve-sIZhpXqE.js → improve-BjKhfQ_b.js} +6 -6
- package/dist/{improve-sIZhpXqE.js.map → improve-BjKhfQ_b.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/{continuation-CDdjAkpk.js → jsonl-file-B2ESMrTh.js} +396 -4
- package/dist/jsonl-file-B2ESMrTh.js.map +1 -0
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +17 -18
- package/dist/{loop-runner-Bn7lFuQZ.d.ts → loop-runner-BFC781pC.d.ts} +2 -2
- package/dist/{loop-runner-Dt7I2oMa.js → loop-runner-BVTcuWZk.js} +2 -2
- package/dist/{loop-runner-Dt7I2oMa.js.map → loop-runner-BVTcuWZk.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 +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-DfDAdtqb.js → provision-supervisor-KXJqdixT.js} +6 -6
- package/dist/{provision-supervisor-DfDAdtqb.js.map → provision-supervisor-KXJqdixT.js.map} +1 -1
- package/dist/{result-blob-store-Dke805sV.js → result-blob-store-CJjp44Mz.js} +3 -3
- package/dist/{result-blob-store-Dke805sV.js.map → result-blob-store-CJjp44Mz.js.map} +1 -1
- package/dist/{run-cancellation-B0SgcidY.js → run-cancellation-BNBmsY3a.js} +2 -2
- package/dist/{run-cancellation-B0SgcidY.js.map → run-cancellation-BNBmsY3a.js.map} +1 -1
- package/dist/{run-lock-BOg7BaXF.js → run-lock-Dcr79Wql.js} +2 -2
- package/dist/{run-lock-BOg7BaXF.js.map → run-lock-Dcr79Wql.js.map} +1 -1
- package/dist/{run-reopen-B7TN2aQQ.js → run-reopen-Cr2SHmYa.js} +6 -6
- package/dist/{run-reopen-B7TN2aQQ.js.map → run-reopen-Cr2SHmYa.js.map} +1 -1
- package/dist/{run-state-BNBUy2uK.js → run-state-Bko0BF0_.js} +7 -7
- package/dist/{run-state-BNBUy2uK.js.map → run-state-Bko0BF0_.js.map} +1 -1
- package/dist/{runtime-DXeWY00j.js → runtime-CFjS-eQV.js} +19 -20
- package/dist/{runtime-DXeWY00j.js.map → runtime-CFjS-eQV.js.map} +1 -1
- package/dist/{search-executor-BoQHI2Tz.js → search-executor-DnWnh4kj.js} +4 -4
- package/dist/{search-executor-BoQHI2Tz.js.map → search-executor-DnWnh4kj.js.map} +1 -1
- package/dist/{server-Xkgobp5y.js → server-D87su_-4.js} +4 -4
- package/dist/{server-Xkgobp5y.js.map → server-D87su_-4.js.map} +1 -1
- package/dist/{settle-record-B5OpVDnC.js → settle-record-BlIw2MU1.js} +3 -3
- package/dist/{settle-record-B5OpVDnC.js.map → settle-record-BlIw2MU1.js.map} +1 -1
- package/dist/{structural-rollout-BSF5tzUm.js → structural-rollout-BLflx9cs.js} +4 -4
- package/dist/{structural-rollout-BSF5tzUm.js.map → structural-rollout-BLflx9cs.js.map} +1 -1
- package/dist/{supervise-Drc1Pj1d.js → supervise-CQfJyuLL.js} +13 -13
- package/dist/supervise-CQfJyuLL.js.map +1 -0
- package/dist/{supervise-identity-Cz-Hzg9s.js → supervise-identity-CtxWEk1I.js} +3 -3
- package/dist/{supervise-identity-Cz-Hzg9s.js.map → supervise-identity-CtxWEk1I.js.map} +1 -1
- package/dist/{supervision-discovery-DdRd1lsz.js → supervision-discovery-DKxqbnHf.js} +4 -4
- package/dist/{supervision-discovery-DdRd1lsz.js.map → supervision-discovery-DKxqbnHf.js.map} +1 -1
- package/dist/{supervisor-CwUD7dsm.js → supervisor-DL4hO7UW.js} +12 -593
- package/dist/supervisor-DL4hO7UW.js.map +1 -0
- package/dist/{supervisor-accounting-CPDPG8mH.js → supervisor-accounting-DlDUl58C.js} +600 -8
- package/dist/supervisor-accounting-DlDUl58C.js.map +1 -0
- package/dist/{supervisor-root-contract-Uw2q3nvG.js → supervisor-root-contract-BCbu1A4n.js} +3 -3
- package/dist/{supervisor-root-contract-Uw2q3nvG.js.map → supervisor-root-contract-BCbu1A4n.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{failure-cause-C96rzF-d.js → tool-server-n4XYpCok.js} +181 -2
- package/dist/tool-server-n4XYpCok.js.map +1 -0
- package/dist/{top-web-5ThvdyD0.js → top-web-B-sHmI3g.js} +8 -8
- package/dist/{top-web-5ThvdyD0.js.map → top-web-B-sHmI3g.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-BLhsL4qy.d.ts → types-YXZL7Wxi.d.ts} +5 -3
- package/package.json +1 -1
- package/dist/continuation-CDdjAkpk.js.map +0 -1
- package/dist/failure-cause-C96rzF-d.js.map +0 -1
- package/dist/jsonl-file-B8xfYz9M.js +0 -397
- package/dist/jsonl-file-B8xfYz9M.js.map +0 -1
- package/dist/supervise-Drc1Pj1d.js.map +0 -1
- package/dist/supervisor-CwUD7dsm.js.map +0 -1
- package/dist/supervisor-accounting-CPDPG8mH.js.map +0 -1
- package/dist/tool-server-BhsyVDj2.js +0 -174
- package/dist/tool-server-BhsyVDj2.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonl-file-B2ESMrTh.js","names":[],"sources":["../src/runtime/supervise/abortable.ts","../src/content-digest.ts","../src/finite-number.ts","../src/runtime/supervise/continuation.ts","../src/durable/jsonl-append.ts","../src/durable/jsonl-file.ts"],"sourcesContent":["/** Provenance of an explicit cancellation, preserved through every abort link. */\nexport class RunCancellationReason extends Error {\n constructor(\n readonly source: string,\n reason: string,\n readonly operationId?: string,\n /** Who stopped the run, from the durable cancel request; absent for an in-process abort. */\n readonly operator?: string,\n ) {\n super(reason)\n this.name = 'RunCancellationReason'\n }\n\n override toString(): string {\n return this.message\n }\n}\n\n/** The signal's explicit reason, or the caller's fallback when none was supplied. */\nexport function abortReason(signal: AbortSignal, fallback: string): unknown {\n const reason = signal.reason\n if (reason instanceof RunCancellationReason) return reason\n if (typeof reason === 'string' && reason.length > 0) return reason\n // A default AbortError carries no caller reason.\n if (reason instanceof Error && reason.name !== 'AbortError' && reason.message.length > 0) {\n return reason.message\n }\n return fallback\n}\n\n/** An `AbortError` carrying the signal's own string reason, or `fallback` when it states none. */\nexport function signalAbortError(signal: AbortSignal, fallback: string): Error {\n const reason = abortReason(signal, fallback)\n const error = new Error(\n reason instanceof Error\n ? reason.message\n : typeof reason === 'string' && reason.length > 0\n ? reason\n : fallback,\n )\n error.name = 'AbortError'\n return error\n}\n\n/** A parent abort stops the call at once. The timeout still bounds a parent that stays open. */\nexport function deadlineSignal(parent: AbortSignal | undefined, ms: number): AbortSignal {\n const timeout = AbortSignal.timeout(ms)\n return parent === undefined ? timeout : AbortSignal.any([parent, timeout])\n}\n\ninterface LinkedAbort {\n readonly signal: AbortSignal\n abort(reason?: unknown): void\n /** Stop listening to the sources. Idempotent; required where a source outlives the link. */\n release(): void\n}\n\n/** Cascade source aborts and preserve their reason; release removes the source listeners. */\nexport function linkAbort(...sources: ReadonlyArray<AbortSignal>): LinkedAbort {\n const controller = new AbortController()\n const listeners: Array<{ source: AbortSignal; onAbort: () => void }> = []\n const release = (): void => {\n for (const { source, onAbort } of listeners) source.removeEventListener('abort', onAbort)\n listeners.length = 0\n }\n const abort = (reason?: unknown): void => {\n release()\n controller.abort(reason)\n }\n const alreadyAborted = sources.find((source) => source.aborted)\n if (alreadyAborted !== undefined) {\n controller.abort(abortReason(alreadyAborted, 'aborted by parent scope'))\n return { signal: controller.signal, abort, release }\n }\n for (const source of sources) {\n const onAbort = (): void => abort(abortReason(source, 'aborted by parent scope'))\n listeners.push({ source, onAbort })\n source.addEventListener('abort', onAbort, { once: true })\n }\n return { signal: controller.signal, abort, release }\n}\n\n/** Settle work against cancellation once, observing the losing promise.\n * Defer abort one microtask so already-completed work wins. An action's own abort listener\n * cannot win this race: this function subscribes before invoking it.\n */\nexport async function runAbortable<T>(\n act: () => Promise<T>,\n signal: AbortSignal,\n /** The abort's message when the signal states none, or the abort error itself. */\n fallback: string | (() => unknown),\n): Promise<T> {\n const aborted = () =>\n typeof fallback === 'string' ? signalAbortError(signal, fallback) : fallback()\n if (signal.aborted) throw aborted()\n return await new Promise<T>((resolve, reject) => {\n let settled = false\n const cleanup = () => signal.removeEventListener('abort', onAbort)\n const onAbort = () => {\n queueMicrotask(() => {\n if (settled) return\n settled = true\n cleanup()\n reject(aborted())\n })\n }\n signal.addEventListener('abort', onAbort, { once: true })\n let work: Promise<T>\n try {\n work = Promise.resolve(act())\n } catch (error) {\n cleanup()\n reject(error)\n return\n }\n work.then(\n (value) => {\n if (settled) return\n settled = true\n cleanup()\n resolve(value)\n },\n (error) => {\n if (settled) return\n settled = true\n cleanup()\n reject(error)\n },\n )\n })\n}\n","import { createHash } from 'node:crypto'\n\nexport function sha256(value: string): string {\n return createHash('sha256').update(value).digest('hex')\n}\n","export function isFiniteNumber(value: unknown): value is number {\n return typeof value === 'number' && Number.isFinite(value)\n}\n","/**\n * One check ({@link CheckVerdict}; {@link CheckUnavailableError} pauses), one\n * {@link ContinuationPolicy} (`maxBarren`, an optional deadline, no re-prompt default), and one\n * note ({@link composeContinuationNote} owns the facts, {@link ContinuationProfile} owns the\n * words, a play may only append).\n */\n\nimport { mkdir } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport type { TraceAnalysisStore } from '@tangle-network/agent-eval'\nimport { sha256 } from '../../content-digest'\nimport { ValidationError } from '../../errors'\nimport { isFiniteNumber } from '../../finite-number'\nimport type { CheckVerdict } from './completion-gate'\nimport type { DriverBudgetReadout, DriverProgressMark } from './driver-retry'\nimport { writeAtomicDurableFile } from './durable-file'\n\n/** Read a check function's return value into a verdict. Anything but `true` or a passing verdict\n * is a failure: a check fails closed. */\nexport function checkVerdictOf(outcome: unknown): CheckVerdict {\n if (outcome === true) return { pass: true }\n if (typeof outcome !== 'object' || outcome === null || Array.isArray(outcome)) {\n return { pass: false }\n }\n const raw = outcome as Record<string, unknown>\n const items =\n typeof raw.items === 'object' && raw.items !== null && !Array.isArray(raw.items)\n ? Object.fromEntries(\n Object.entries(raw.items as Record<string, unknown>).filter(\n (entry): entry is [string, number] =>\n typeof entry[1] === 'number' && Number.isFinite(entry[1]),\n ),\n )\n : undefined\n const failures = Array.isArray(raw.failures)\n ? raw.failures.filter((line): line is string => typeof line === 'string' && line.trim() !== '')\n : undefined\n return Object.freeze({\n pass: raw.pass === true,\n ...(items === undefined ? {} : { items: Object.freeze(items) }),\n ...(isFiniteNumber(raw.composite) ? { composite: raw.composite } : {}),\n ...(isFiniteNumber(raw.threshold) ? { threshold: raw.threshold } : {}),\n ...(failures === undefined ? {} : { failures: Object.freeze(failures) }),\n ...(typeof raw.review === 'string' && raw.review.trim() !== ''\n ? { review: raw.review.trim() }\n : {}),\n })\n}\n\n/** Items that fail in `verdict`: every item below 1, or the named items of its FAIL lines. */\nexport function failedItems(verdict: CheckVerdict): ReadonlyArray<string> {\n if (verdict.items !== undefined) {\n return Object.entries(verdict.items)\n .filter(([, value]) => value < 1)\n .map(([name]) => name)\n }\n return (verdict.failures ?? []).map((line) => line.slice('FAIL '.length).split(/[\\s:]/u)[0] ?? '')\n}\n\n/** Items that pass in `verdict`. */\nexport function passedItems(verdict: CheckVerdict): ReadonlyArray<string> {\n return Object.entries(verdict.items ?? {})\n .filter(([, value]) => value >= 1)\n .map(([name]) => name)\n}\n\n/** One time the check ran inside the run, whatever started it. */\nexport interface CheckRead {\n /** 1-based count of check reads in this manager, the unavailable ones included. */\n readonly read: number\n /** The driver attempt the read belongs to. */\n readonly attempt: number\n /** Epoch ms. */\n readonly at: number\n /** `submit`: a `submit_result` call. `turn-end`: the turn ended with no accepted result. */\n readonly source: 'submit' | 'turn-end'\n /** Absent when the check could not run. */\n readonly verdict?: CheckVerdict\n /** Why the check could not run. */\n readonly unavailable?: string\n}\n\n// ── The resend rule ──────────────────────────────────────────────────────────────────────────────\n\n/**\n * How a manager with a completion check is sent back when its turn ends unmet.\n *\n * Required for an external manager with a check: Runtime supplies no default, because a retry\n * default in source is a research decision the record must make. There is no re-prompt count.\n * The loop re-enters until the check passes or a bound ends it: cancellation, the budget, or\n * this deadline when one is set. After `maxBarren` turns in a row without progress, each further continuation\n * waits a barren pause first (5 minutes, doubling to 60) and is journaled `barren-pause`; a\n * barren streak never ends the run. A tool `report_blocked` shows\n * really failed is recorded and the loop goes on: a blocked tool is not a terminal condition.\n * Progress means the check's best composite rose, an accepted result, or a worker that delivered.\n */\nexport interface ContinuationPolicy {\n /** No re-entry starts at or after this instant: epoch ms, or an ISO 8601 time. Absent: no clock\n * ends the run; it ends when its check passes, on cancellation, or on a spent budget. */\n readonly deadline?: number | string\n /** Re-entered turns in a row that may end without progress before each further continuation\n * waits a barren pause. Minimum 1. The evidence for 2: repair loses most of its effect within\n * two or three attempts, and a fresh start at the same budget scored higher (Debugging Decay\n * Index). */\n readonly maxBarren: number\n /** Every instruction word of the note. */\n readonly profile: ContinuationProfile\n /** `verbatim` sends the check's FAIL lines, the protected items, and what changed. A check with\n * `feedback: 'pass-only'` overrides this to `off`. */\n readonly failures: 'verbatim' | 'off'\n /** `on` runs the question panel at each continuation and puts its admitted findings in the note.\n * Requires `runPanel`. */\n readonly panel: 'on' | 'off'\n /** `on` states the bar: every check item with its state, the best version's verdict and the\n * gap, the reference result, and the check's review. */\n readonly bar: 'on' | 'off'\n /** The play's registered reference result, for the bar. */\n readonly reference?: string\n /** The best version's verdict on the same check, for the bar. The version loop sets it. */\n readonly best?: { readonly label: string; readonly verdict: CheckVerdict }\n /** The panel's dollar caps. Required with `panel: 'on'`. */\n readonly panelUsd?: { readonly perContinuation: number; readonly perRun: number }\n /** The question panel. Required with `panel: 'on'`. */\n readonly runPanel?: ContinuationPanel\n /** A play's own section, appended after Runtime's sections. It cannot remove or rewrite one. */\n readonly append?: ContinuationAppend\n /**\n * What a re-entered manager's harness session is. `native` (the default) sends the next turn\n * into the same harness session wherever the backend proves it, with the unmet items and what\n * changed. `fresh` starts a new harness session on every re-entry (a continuation, a wake, a\n * failure retry, a pause) whose only input is the full re-entry task: the original task, the\n * check's description and the coordinator's run state. The environment and its files are kept\n * while the provider holds them; only the conversation is new, so whatever the next turn needs\n * must be in the journal, the workspace or Knowledge, never in an earlier turn.\n *\n * Runtime's own drive harnesses (bridge and provider) honor it; a caller's `driveHarness`\n * receives it as `session` and must start a new session on each drive that carries `reentry`.\n */\n readonly session?: 'native' | 'fresh'\n}\n\n/** Resolve and check a policy before any compute. Returns the deadline in epoch ms, or undefined\n * when the policy sets none. */\nexport function admitContinuationPolicy(\n policy: ContinuationPolicy,\n context: string,\n): number | undefined {\n if (typeof policy !== 'object' || policy === null) {\n throw new ValidationError(`${context}: continuation must be an object`)\n }\n const deadlineMs =\n typeof policy.deadline === 'string' ? Date.parse(policy.deadline) : policy.deadline\n if (\n deadlineMs !== undefined &&\n (typeof deadlineMs !== 'number' || !Number.isFinite(deadlineMs) || deadlineMs <= 0)\n ) {\n throw new ValidationError(\n `${context}: continuation.deadline, when set, must be a finite time (epoch ms or ISO 8601)`,\n )\n }\n if (!Number.isInteger(policy.maxBarren) || policy.maxBarren < 1) {\n throw new ValidationError(`${context}: continuation.maxBarren must be an integer >= 1`)\n }\n if (policy.failures !== 'verbatim' && policy.failures !== 'off') {\n throw new ValidationError(`${context}: continuation.failures must be 'verbatim' or 'off'`)\n }\n if (policy.panel !== 'on' && policy.panel !== 'off') {\n throw new ValidationError(`${context}: continuation.panel must be 'on' or 'off'`)\n }\n if (policy.bar !== 'on' && policy.bar !== 'off') {\n throw new ValidationError(`${context}: continuation.bar must be 'on' or 'off'`)\n }\n if (policy.panel === 'on') {\n if (typeof policy.runPanel !== 'function') {\n throw new ValidationError(`${context}: continuation.panel 'on' needs runPanel`)\n }\n const usd = policy.panelUsd\n if (\n usd === undefined ||\n !isFiniteNumber(usd.perContinuation) ||\n !isFiniteNumber(usd.perRun) ||\n usd.perContinuation <= 0 ||\n usd.perRun < usd.perContinuation\n ) {\n throw new ValidationError(\n `${context}: continuation.panel 'on' needs panelUsd with 0 < perContinuation <= perRun`,\n )\n }\n }\n if (policy.append !== undefined && typeof policy.append !== 'function') {\n throw new ValidationError(`${context}: continuation.append must be a function`)\n }\n if (policy.session !== undefined && policy.session !== 'native' && policy.session !== 'fresh') {\n throw new ValidationError(`${context}: continuation.session must be 'native' or 'fresh'`)\n }\n if (policy.reference !== undefined && typeof policy.reference !== 'string')\n throw new ValidationError(`${context}: continuation.reference must be a string`)\n admitContinuationProfile(policy.profile, context)\n return deadlineMs\n}\n\n// ── The profile ──────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Every instruction word of the note. Runtime supplies the facts and their order; this data\n * supplies the words, so the note can be improved (by a person, reflection, or GEPA) without a code\n * change. Templates may name the facts in `CONTINUATION_FACTS` as `{name}`.\n */\nexport interface ContinuationProfile {\n /** Recorded with every note, so each continuation names the words it carried. */\n readonly id: string\n /** Section 1, the verdict. The first line should state the failure as a fact. */\n readonly opening: string\n /** Section 7: what to do before the next submit. */\n readonly plan: string\n /** Section 8: what the harness enforces, and the honest exit. */\n readonly rules: string\n /** Section headings; an empty heading prints the section without one. */\n readonly headings: {\n readonly failures: string\n readonly protected: string\n readonly changed: string\n readonly findings: string\n readonly bar: string\n readonly plan: string\n readonly rules: string\n }\n /** The bar's standing instruction, printed under its heading. */\n readonly barRule?: string\n /** The panel's question templates. `{item}` expands over failed items and `{worker}` over\n * settled workers; a template with neither is asked once. */\n readonly questions?: ReadonlyArray<string>\n /** The panel's model, when the profile chooses one. */\n readonly panelModel?: string\n /** What a new version's director reads about the best version's review, for the version\n * chain's `'review-of-best'`. It may name `{version}`, `{path}` and `{score}`. */\n readonly review?: string\n}\n\n/** The facts a profile template may name. */\nexport const CONTINUATION_FACTS = [\n 'composite',\n 'threshold',\n 'failed',\n 'total',\n 'reads',\n 'owed',\n 'settled',\n 'delivered',\n 'continuation',\n] as const\n\ntype ContinuationFact = (typeof CONTINUATION_FACTS)[number]\n\nconst factNames: ReadonlySet<string> = new Set(CONTINUATION_FACTS)\nconst placeholder = /\\{([a-zA-Z]+)\\}/gu\n\nfunction admitContinuationProfile(profile: ContinuationProfile, context: string): void {\n if (typeof profile !== 'object' || profile === null) {\n throw new ValidationError(`${context}: continuation.profile must be an object`)\n }\n if (typeof profile.id !== 'string' || profile.id.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.id must be non-empty`)\n }\n const texts: Array<[string, unknown]> = [\n ['opening', profile.opening],\n ['plan', profile.plan],\n ['rules', profile.rules],\n ...Object.entries(profile.headings ?? {}).map(([key, value]): [string, unknown] => [\n `headings.${key}`,\n value,\n ]),\n ...(profile.barRule === undefined ? [] : [['barRule', profile.barRule] as [string, unknown]]),\n ]\n for (const key of ['failures', 'protected', 'changed', 'findings', 'bar', 'plan', 'rules']) {\n if (typeof (profile.headings as Record<string, unknown> | undefined)?.[key] !== 'string') {\n throw new ValidationError(`${context}: continuation.profile.headings.${key} must be a string`)\n }\n }\n for (const [key, text] of texts) {\n if (typeof text !== 'string') {\n throw new ValidationError(`${context}: continuation.profile.${key} must be a string`)\n }\n for (const match of text.matchAll(placeholder)) {\n if (!factNames.has(match[1] ?? '')) {\n throw new ValidationError(\n `${context}: continuation.profile.${key} names {${match[1]}}, which is not a fact Runtime supplies (${CONTINUATION_FACTS.join(', ')})`,\n )\n }\n }\n }\n if (profile.review !== undefined) {\n if (typeof profile.review !== 'string' || profile.review.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.review must be non-empty`)\n }\n for (const match of profile.review.matchAll(placeholder)) {\n if (!['version', 'path', 'score'].includes(match[1] ?? '')) {\n throw new ValidationError(\n `${context}: continuation.profile.review names {${match[1]}}; it may name {version}, {path} and {score}`,\n )\n }\n }\n }\n if (profile.opening.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.opening must be non-empty`)\n }\n if (profile.panelModel !== undefined && typeof profile.panelModel !== 'string')\n throw new ValidationError(`${context}: continuation.profile.panelModel must be a string`)\n if (profile.questions !== undefined && !Array.isArray(profile.questions))\n throw new ValidationError(`${context}: continuation.profile.questions must be an array`)\n for (const [index, question] of (profile.questions ?? []).entries()) {\n if (typeof question !== 'string' || question.trim() === '') {\n throw new ValidationError(\n `${context}: continuation.profile.questions[${index}] must be a non-empty string`,\n )\n }\n }\n}\n\n// ── The panel ────────────────────────────────────────────────────────────────────────────────────\n\n/** What the question panel reads for one continuation. */\nexport interface ContinuationPanelInput {\n /** 1-based continuation number. */\n readonly continuation: number\n readonly task: unknown\n /** The check's verdict this note reports; absent when no result reached the check. */\n readonly verdict?: CheckVerdict\n /** Every check read so far, oldest first. */\n readonly reads: ReadonlyArray<CheckRead>\n /** The expanded questions, one per atomic question. */\n readonly questions: ReadonlyArray<string>\n /**\n * The run's own traces, one per agent and named by its node id: the manager's root stream, when\n * it is the root, and each settled worker's tool trace (`src/runtime/supervise/run-traces.ts`). The panel runs only\n * when the run has recorded a span.\n */\n readonly traces: TraceAnalysisStore\n /** Settled workers; each one's trace in `traces` is named by its `id`. */\n readonly workers: ReadonlyArray<{ readonly id: string; readonly label: string }>\n readonly bar?: ContinuationPolicy['best']\n readonly reference?: string\n /** The dollars this panel call may spend. */\n readonly usdCap: number\n readonly signal: AbortSignal\n}\n\n/** One answer the panel proposes for the note. */\nexport interface PanelFinding {\n readonly question: string\n /** The finding, stated as a claim about the run. */\n readonly claim: string\n /** Every `trace://` citation in the answer, and whether the trace store holds it. */\n readonly citations: ReadonlyArray<{ readonly uri: string; readonly resolved: boolean }>\n /** Whether an independent verifier, shown only the cited spans, agreed with the claim. */\n readonly verified: boolean\n /** The failed check items the finding explains, when it names any. */\n readonly items?: ReadonlyArray<string>\n}\n\nexport interface ContinuationPanelResult {\n readonly findings: ReadonlyArray<PanelFinding>\n /** Dollars spent; `null` when the provider reported no cost. Unknown is never zero. */\n readonly usd: number | null\n /** Provider receipts, recorded verbatim in `panel.jsonl`. */\n readonly receipts?: unknown\n}\n\n/** Ask the panel's questions over the run's own traces. */\nexport type ContinuationPanel = (input: ContinuationPanelInput) => Promise<ContinuationPanelResult>\n\n/** A play's own section for one note. Return `undefined` to add nothing this time. */\nexport type ContinuationAppend = (context: {\n readonly continuation: number\n readonly verdict?: CheckVerdict\n readonly reads: ReadonlyArray<CheckRead>\n readonly signal: AbortSignal\n}) => Promise<{ readonly heading: string; readonly text: string } | undefined>\n\n/** A finding that reached the note, with the continuation that admitted it. */\nexport interface AdmittedFinding extends PanelFinding {\n readonly admittedAt: number\n /** Set once every item the finding named passes. */\n readonly resolvedAt?: number\n}\n\n/** Findings reach the note only when every citation resolves, at least two distinct spans are\n * cited, and the independent verifier agreed. The best method in Who&When found the failing step\n * 14.2% of the time, so an unverified finding is noise with a citation. */\nexport function admitFinding(finding: PanelFinding): boolean {\n if (!finding.verified) return false\n if (finding.citations.length === 0) return false\n if (!finding.citations.every((citation) => citation.resolved)) return false\n return new Set(finding.citations.map((citation) => citation.uri)).size >= 2\n}\n\n/** About 1,500 tokens of findings. */\nconst FINDINGS_CHAR_CAP = 6_000\n\n/**\n * Rank the admitted findings by how many failed items they explain, drop repeats, and keep them\n * within the note's cap. Earlier findings stay as they were written (ACE: itemized additions keep\n * detail that repeated rewrites lose); a finding whose items all pass now is marked resolved.\n */\nexport function distillFindings(\n prior: ReadonlyArray<AdmittedFinding>,\n proposed: ReadonlyArray<PanelFinding>,\n failing: ReadonlySet<string>,\n continuation: number,\n): ReadonlyArray<AdmittedFinding> {\n const key = (claim: string) => claim.toLowerCase().replace(/\\s+/gu, ' ').trim()\n const known = new Set(prior.map((finding) => key(finding.claim)))\n const carried = prior.map((finding) =>\n finding.resolvedAt === undefined &&\n (finding.items?.length ?? 0) > 0 &&\n (finding.items ?? []).every((item) => !failing.has(item))\n ? { ...finding, resolvedAt: continuation }\n : finding,\n )\n const fresh = proposed\n .filter(admitFinding)\n .filter((finding) => {\n const k = key(finding.claim)\n if (known.has(k)) return false\n known.add(k)\n return true\n })\n .map((finding) => ({\n finding,\n links: (finding.items ?? []).filter((item) => failing.has(item)).length,\n }))\n .sort((a, b) => b.links - a.links)\n const out: AdmittedFinding[] = [...carried]\n let used = carried\n .filter((finding) => finding.resolvedAt === undefined)\n .reduce((sum, finding) => sum + finding.claim.length, 0)\n for (const { finding } of fresh) {\n if (used + finding.claim.length > FINDINGS_CHAR_CAP) break\n used += finding.claim.length\n out.push({ ...finding, admittedAt: continuation })\n }\n return out\n}\n\n/** Expand the profile's question templates over the failed items and the settled workers. */\nexport function expandQuestions(\n templates: ReadonlyArray<string>,\n failing: ReadonlyArray<string>,\n workers: ReadonlyArray<{ readonly id: string; readonly label: string }>,\n): ReadonlyArray<string> {\n const out: string[] = []\n for (const template of templates) {\n const hasItem = template.includes('{item}')\n const hasWorker = template.includes('{worker}')\n if (!hasItem && !hasWorker) {\n out.push(template)\n continue\n }\n const items = hasItem ? failing : ['']\n const each = hasWorker ? workers.map((worker) => `${worker.id} (${worker.label})`) : ['']\n for (const item of items) {\n for (const worker of each) {\n out.push(template.replaceAll('{item}', item).replaceAll('{worker}', worker))\n }\n }\n }\n return out\n}\n\n// ── The note ─────────────────────────────────────────────────────────────────────────────────────\n\n/** The facts one note is written from. */\nexport interface ContinuationNoteInput {\n readonly profile: ContinuationProfile\n /** 1-based. */\n readonly continuation: number\n /** The verdict this turn ended on; absent when no result has reached the check. */\n readonly verdict?: CheckVerdict\n /** The verdict the previous note reported, for what changed. */\n readonly previous?: CheckVerdict\n /** Check reads so far, the unavailable ones included. */\n readonly reads: number\n /** `verbatim` only when the policy and the check both allow the FAIL lines. */\n readonly failures: 'verbatim' | 'off'\n readonly findings?: ReadonlyArray<AdmittedFinding>\n readonly bar?: {\n readonly best?: ContinuationPolicy['best']\n readonly reference?: string\n }\n readonly appended?: ReadonlyArray<{ readonly heading: string; readonly text: string }>\n /** What the run owes, from the check's description. */\n readonly owed?: string\n readonly progress: DriverProgressMark\n /** Whether `read_continuation` is served to this manager. */\n readonly canReadMore: boolean\n /** Whether submit_result is served to this manager. Absent means unavailable. */\n readonly canSubmitResult?: boolean\n /** Whether the check's score comes from cases the director cannot see. */\n readonly sealed?: boolean\n}\n\n/** At most this many FAIL lines in the note; the rest through `read_continuation`. */\nexport const NOTE_FAILURE_LINES = 40\n\n/**\n * Write one continuation note, sections 1 to 8 of docs/38. Section 9, the run's state, is\n * `composeReentryTask`, which wraps this text. Pure: the same input writes the same note.\n */\nexport function composeContinuationNote(input: ContinuationNoteInput): string {\n const { profile, verdict } = input\n const items = verdict?.items ?? {}\n const total = Object.keys(items).length\n const failing = verdict === undefined ? [] : failedItems(verdict)\n const facts: Record<ContinuationFact, string> = {\n composite: verdict?.composite === undefined ? 'unknown' : format(verdict.composite),\n threshold: verdict?.threshold === undefined ? 'unknown' : format(verdict.threshold),\n failed:\n verdict === undefined || (total === 0 && (verdict.failures?.length ?? 0) === 0)\n ? 'unknown'\n : String(failing.length),\n total: total === 0 ? 'unknown' : String(total),\n reads: String(input.reads),\n owed: input.owed?.trim() || 'not described',\n settled: String(input.progress.settledCount),\n delivered: String(input.progress.deliveredCount ?? 0),\n continuation: String(input.continuation),\n }\n const fill = (text: string) =>\n text.replace(placeholder, (_, name: string) => facts[name as ContinuationFact] ?? `{${name}}`)\n // The opening states a failed verdict. When there is no verdict, or the check passes on a state\n // no result was submitted for, the fact replaces it: the profile cannot state a verdict that\n // does not exist.\n const sections: string[] = [\n verdict === undefined\n ? 'No check verdict is available yet.' +\n (input.canSubmitResult === true\n ? ' Submit a result through submit_result to request the check.'\n : '')\n : verdict.pass\n ? 'The check passes on the current state, but no result has been accepted.' +\n (input.canSubmitResult === true ? ' Call submit_result to request acceptance.' : '')\n : fill(profile.opening).trim(),\n ]\n const section = (heading: string, body: ReadonlyArray<string>) => {\n if (body.length === 0) return\n sections.push([...(heading.trim() === '' ? [] : [`## ${fill(heading)}`]), ...body].join('\\n'))\n }\n if (input.failures === 'verbatim' && verdict !== undefined) {\n const lines = verdict.failures ?? []\n const shown = lines.slice(0, NOTE_FAILURE_LINES)\n const more = lines.length - shown.length\n section(profile.headings.failures, [\n ...shown,\n ...(more > 0\n ? [\n input.canReadMore\n ? `${more} more failure lines: call read_continuation with continuation ${input.continuation}.`\n : `${more} more failure lines are not shown.`,\n ]\n : []),\n ])\n const passing = passedItems(verdict)\n section(profile.headings.protected, passing.length === 0 ? [] : [passing.join(', ')])\n if (input.previous !== undefined) {\n const before = new Set(failedItems(input.previous))\n const now = new Set(failing)\n const fixed = [...before].filter((item) => !now.has(item))\n const broke = [...now].filter((item) => !before.has(item))\n section(profile.headings.changed, [\n ...(fixed.length === 0 ? [] : [`Now passing: ${fixed.join(', ')}.`]),\n ...(broke.length === 0 ? [] : [`Newly failing: ${broke.join(', ')}.`]),\n ...(fixed.length === 0 && broke.length === 0\n ? ['No item changed since the last note.']\n : []),\n ...(input.previous.composite !== undefined && verdict.composite !== undefined\n ? [`Composite: ${format(input.previous.composite)} then ${format(verdict.composite)}.`]\n : []),\n ])\n }\n }\n if (input.findings !== undefined) {\n const open = input.findings.filter((finding) => finding.resolvedAt === undefined)\n const resolved = input.findings.filter((finding) => finding.resolvedAt === input.continuation)\n section(profile.headings.findings, [\n ...open.map(\n (finding) =>\n `- [hypothesis] ${finding.claim}` +\n (finding.items?.length ? ` (items: ${finding.items.join(', ')})` : '') +\n ` Evidence: ${finding.citations.map((citation) => citation.uri).join(', ')}`,\n ),\n ...resolved.map((finding) => `- [resolved] ${finding.claim}`),\n ])\n }\n if (input.bar !== undefined && verdict !== undefined) {\n const body: string[] = []\n if (profile.barRule?.trim()) body.push(fill(profile.barRule).trim())\n for (const [item, value] of Object.entries(items)) {\n const best = input.bar.best?.verdict.items?.[item]\n body.push(\n `- ${item}: ${value >= 1 ? 'passes' : `fails (${format(value)})`}` +\n (best === undefined\n ? ''\n : ` / ${input.bar.best?.label}: ${best >= 1 ? 'passes' : `fails (${format(best)})`}`),\n )\n }\n if (input.bar.best?.verdict.composite !== undefined) {\n body.push(\n `Best version ${input.bar.best.label}: composite ${format(input.bar.best.verdict.composite)}.`,\n )\n }\n if (input.bar.reference?.trim()) body.push(`Reference result: ${input.bar.reference.trim()}`)\n if (verdict.review?.trim()) body.push(`The check's review: ${verdict.review.trim()}`)\n section(profile.headings.bar, body)\n }\n section(profile.headings.plan, profile.plan.trim() === '' ? [] : [fill(profile.plan).trim()])\n section(profile.headings.rules, [\n ...(profile.rules.trim() === '' ? [] : [fill(profile.rules).trim()]),\n ...(input.sealed ? ['The score comes from cases you cannot see.'] : []),\n ])\n for (const appended of input.appended ?? []) {\n section(appended.heading, appended.text.trim() === '' ? [] : [appended.text.trim()])\n }\n return sections.join('\\n\\n')\n}\n\n// ── The record ───────────────────────────────────────────────────────────────────────────────────\n\n/** One continuation as the settle record carries it (`DriverContinuationRecord.continuations`). */\nexport interface ContinuationEntry {\n /** 1-based. */\n readonly continuation: number\n /** The driver attempt whose end this note answered. */\n readonly attempt: number\n /** sha256 of the note's text. */\n readonly noteDigest: string\n readonly profile: string\n readonly switches: {\n readonly failures: 'verbatim' | 'off'\n readonly panel: 'on' | 'off'\n readonly bar: 'on' | 'off'\n }\n /** The verdict the note reported: `null` when no result had reached the check. */\n readonly before: VerdictSummary | null\n /** The verdict at the director's next turn end: `null` when the run ended first. */\n readonly after: VerdictSummary | null\n /** The panel's part: questions asked, findings admitted, dollars (`null` = unknown). */\n readonly panel?: {\n readonly asked: number\n readonly proposed: number\n readonly admitted: number\n readonly usd: number | null\n /** Why the panel asked nothing this time, when it could not run. */\n readonly unavailable?: string\n }\n /** Sections a play appended. */\n readonly appended: number\n}\n\nexport interface VerdictSummary {\n readonly pass: boolean\n readonly composite?: number\n readonly failed?: number\n readonly total?: number\n}\n\nfunction summarizeVerdict(verdict: CheckVerdict | undefined): VerdictSummary | null {\n if (verdict === undefined) return null\n const total = Object.keys(verdict.items ?? {}).length\n return {\n pass: verdict.pass,\n ...(verdict.composite === undefined ? {} : { composite: verdict.composite }),\n ...(total === 0 ? {} : { failed: failedItems(verdict).length, total }),\n }\n}\n\nfunction noteDigest(note: string): string {\n return `sha256:${sha256(note)}`\n}\n\n/** A run directory's continuation files: the root's at `<runDir>/continuations/<n>/`, a nested\n * manager's at `<runDir>/continuations/managers/<owner>/<n>/`. */\nexport const CONTINUATIONS_DIR = 'continuations'\n\n/**\n * Write one continuation's files under `<dir>/<n>/`: `note.md`, `verdict.json`, and\n * `panel.jsonl` when the panel ran. The director reads them through `read_continuation`, because\n * its box cannot read the driver's run directory.\n */\nasync function writeContinuationFiles(\n dir: string,\n continuation: number,\n files: {\n readonly note: string\n readonly verdict?: CheckVerdict\n readonly panel?: ReadonlyArray<unknown>\n },\n): Promise<void> {\n const at = join(dir, String(continuation))\n await mkdir(at, { recursive: true })\n writeAtomicDurableFile(join(at, 'note.md'), `${files.note}\\n`)\n writeAtomicDurableFile(\n join(at, 'verdict.json'),\n `${JSON.stringify(files.verdict ?? null, null, 2)}\\n`,\n )\n if (files.panel !== undefined) {\n writeAtomicDurableFile(\n join(at, 'panel.jsonl'),\n files.panel.map((line) => JSON.stringify(line)).join('\\n') + (files.panel.length ? '\\n' : ''),\n )\n }\n}\n\n// ── The progress reading ─────────────────────────────────────────────────────────────────────────\n\n/** The best composite across `reads`, or `undefined` when no read scored. */\nexport function bestComposite(reads: ReadonlyArray<CheckRead>): number | undefined {\n let best: number | undefined\n for (const read of reads) {\n const value = read.verdict?.composite\n if (value !== undefined && (best === undefined || value > best)) best = value\n }\n return best\n}\n\n/** The readout a continuation is composed from. */\nexport interface ContinuationContext {\n /** The attempt that just completed, 1-based. */\n readonly attempt: number\n /** Continuations this run has already sent. */\n readonly continuations: number\n /** The mark read after the completed drive. */\n readonly progress: DriverProgressMark\n readonly budget: DriverBudgetReadout\n /** Re-entered drives in a row, this one included, that ended without progress. */\n readonly barrenReentries: number\n readonly signal: AbortSignal\n}\n\nfunction format(value: number): string {\n return Number.isInteger(value) ? String(value) : value.toFixed(3).replace(/0+$/u, '')\n}\n\n// ── One manager's continuations ──────────────────────────────────────────────────────────────────\n\n/** What a manager's continuation keeper reads from its run. */\ninterface ContinuationKeeperInput {\n readonly policy: ContinuationPolicy\n readonly task: unknown\n /** What the run owes, from the check's description. */\n readonly owed?: string\n /** The check's feedback mode: `pass-only` keeps the FAIL lines out of every note. */\n readonly feedback?: 'verbatim' | 'pass-only'\n readonly sealed?: boolean\n /** Every check read so far, oldest first. */\n readonly reads: () => ReadonlyArray<CheckRead>\n /** Settled workers, for the panel's `{worker}` questions. */\n readonly workers: () => ReadonlyArray<{ readonly id: string; readonly label: string }>\n /** Where each continuation's files go (`<dir>/<n>/`). Omit to keep them in memory only. */\n readonly dir?: string\n /** The run's own traces for the panel, read at each continuation; `undefined` when none yet. */\n readonly traces?: () => Promise<TraceAnalysisStore | undefined>\n /** Whether `read_continuation` is served to this manager. */\n readonly canReadMore: boolean\n /** Whether submit_result is served to this manager. Absent means unavailable. */\n readonly canSubmitResult?: boolean\n}\n\n/** One manager's continuation state: the notes it was sent and the panel's running ledger. */\nexport interface ContinuationKeeper {\n /** Write the next note. The driver loop calls it only when the check is unmet. */\n compose(context: ContinuationContext): Promise<string>\n /** `read_continuation`: the full record of continuation `n`, or the latest. */\n read(continuation: number | undefined): unknown\n /** The settle record's `continuations`, with the last note's `after` read from the final check. */\n entries(): ReadonlyArray<ContinuationEntry>\n}\n\n/** Build the continuation state for one manager with a check. */\nexport function createContinuationKeeper(input: ContinuationKeeperInput): ContinuationKeeper {\n const { policy } = input\n const failures: 'verbatim' | 'off' = input.feedback === 'pass-only' ? 'off' : policy.failures\n const entries: ContinuationEntry[] = []\n const notes: Array<{\n readonly note: string\n readonly verdict?: CheckVerdict\n readonly panel?: ReadonlyArray<unknown>\n /** The check read the note answered, for the `after` reading. */\n readonly read: number\n }> = []\n let findings: ReadonlyArray<AdmittedFinding> = []\n let panelUsd = 0\n let panelUsdKnown = true\n\n const latestVerdict = (): { verdict?: CheckVerdict; read: number } => {\n const reads = input.reads()\n for (let i = reads.length - 1; i >= 0; i -= 1) {\n const read = reads[i]\n if (read?.verdict !== undefined) return { verdict: read.verdict, read: read.read }\n }\n return { read: 0 }\n }\n\n const closePrevious = (): void => {\n const last = entries.at(-1)\n const lastNote = notes.at(-1)\n if (last === undefined || lastNote === undefined) return\n const latest = latestVerdict()\n entries[entries.length - 1] = {\n ...last,\n after: latest.read > lastNote.read ? summarizeVerdict(latest.verdict) : null,\n }\n }\n\n return {\n async compose(context) {\n closePrevious()\n const continuation = entries.length + 1\n const { verdict, read } = latestVerdict()\n const failing = verdict === undefined ? [] : failedItems(verdict)\n let panelRecord: ContinuationEntry['panel'] | undefined\n let panelLines: unknown[] | undefined\n if (policy.panel === 'on' && policy.runPanel !== undefined && policy.panelUsd !== undefined) {\n const workers = input.workers()\n const questions = expandQuestions(policy.profile.questions ?? [], failing, workers)\n const left = policy.panelUsd.perRun - panelUsd\n const usdCap = Math.min(policy.panelUsd.perContinuation, left)\n // An unknown cost closes the panel for the rest of the run: its cap can no longer be\n // proven, and an unmeasured spend is never read as zero.\n const asking = questions.length > 0 && usdCap > 0 && panelUsdKnown\n let traces: TraceAnalysisStore | undefined\n let unavailable: string | undefined\n if (asking) {\n try {\n traces = await input.traces?.()\n if (traces === undefined) unavailable = 'the run has recorded no trace yet'\n } catch (error) {\n // A trace that cannot be read is the evidence's failure, not the director's: the note\n // goes out without findings, and the record says why.\n unavailable = `the run's traces could not be read: ${error instanceof Error ? error.message : String(error)}`\n }\n }\n if (asking && traces !== undefined) {\n const result = await policy.runPanel({\n continuation,\n task: input.task,\n ...(verdict === undefined ? {} : { verdict }),\n reads: input.reads(),\n questions,\n traces,\n workers,\n ...(policy.best === undefined ? {} : { bar: policy.best }),\n ...(policy.reference === undefined ? {} : { reference: policy.reference }),\n usdCap,\n signal: context.signal,\n })\n if (result.usd === null) panelUsdKnown = false\n else panelUsd += result.usd\n findings = distillFindings(findings, result.findings, new Set(failing), continuation)\n panelRecord = {\n asked: questions.length,\n proposed: result.findings.length,\n admitted: findings.filter((finding) => finding.admittedAt === continuation).length,\n usd: result.usd,\n }\n panelLines = [\n ...result.findings.map((finding) => ({\n kind: 'finding',\n admitted: admitFinding(finding),\n ...finding,\n })),\n ...(result.receipts === undefined\n ? []\n : [{ kind: 'receipts', receipts: result.receipts }]),\n ]\n } else {\n panelRecord = {\n asked: 0,\n proposed: 0,\n admitted: 0,\n usd: 0,\n ...(unavailable === undefined ? {} : { unavailable }),\n }\n }\n }\n const appended = policy.append\n ? await policy.append({\n continuation,\n ...(verdict === undefined ? {} : { verdict }),\n reads: input.reads(),\n signal: context.signal,\n })\n : undefined\n const note = composeContinuationNote({\n profile: policy.profile,\n continuation,\n ...(verdict === undefined ? {} : { verdict }),\n ...(notes.at(-1)?.verdict === undefined ? {} : { previous: notes.at(-1)?.verdict }),\n reads: input.reads().length,\n failures,\n ...(policy.panel === 'on' ? { findings } : {}),\n ...(policy.bar === 'on'\n ? {\n bar: {\n ...(policy.best === undefined ? {} : { best: policy.best }),\n ...(policy.reference === undefined ? {} : { reference: policy.reference }),\n },\n }\n : {}),\n ...(appended === undefined ? {} : { appended: [appended] }),\n ...(input.owed === undefined ? {} : { owed: input.owed }),\n progress: context.progress,\n canReadMore: input.canReadMore,\n canSubmitResult: input.canSubmitResult === true,\n ...(input.sealed === true ? { sealed: true } : {}),\n })\n notes.push({\n note,\n ...(verdict === undefined ? {} : { verdict }),\n ...(panelLines === undefined ? {} : { panel: panelLines }),\n read,\n })\n entries.push({\n continuation,\n attempt: context.attempt,\n noteDigest: noteDigest(note),\n profile: policy.profile.id,\n switches: { failures, panel: policy.panel, bar: policy.bar },\n before: summarizeVerdict(verdict),\n after: null,\n ...(panelRecord === undefined ? {} : { panel: panelRecord }),\n appended: appended === undefined ? 0 : 1,\n })\n if (input.dir !== undefined) {\n await writeContinuationFiles(input.dir, continuation, {\n note,\n ...(verdict === undefined ? {} : { verdict }),\n ...(panelLines === undefined ? {} : { panel: panelLines }),\n })\n }\n return note\n },\n read(continuation) {\n const index = continuation === undefined ? notes.length - 1 : continuation - 1\n const entry = notes[index]\n if (entry === undefined) {\n return {\n found: false,\n reason:\n notes.length === 0\n ? 'no continuation has been sent in this run'\n : `continuations run from 1 to ${notes.length}`,\n }\n }\n return {\n found: true,\n continuation: index + 1,\n note: entry.note,\n // Under `pass-only` the check's lines stay hidden here too.\n verdict:\n failures === 'off' && entry.verdict !== undefined\n ? { pass: entry.verdict.pass }\n : (entry.verdict ?? null),\n findings: findings.filter((finding) => finding.admittedAt <= index + 1),\n }\n },\n entries() {\n closePrevious()\n return entries.map((entry) => ({ ...entry }))\n },\n }\n}\n","import {\n type BigIntStats,\n closeSync,\n fstatSync,\n fsync,\n fsyncSync,\n ftruncateSync,\n openSync,\n readSync,\n statSync,\n writeSync,\n} from 'node:fs'\nimport { promisify } from 'node:util'\nimport { durableCallAsync, routesToDurableWriter } from './durable-writer'\nimport { fenceRunWrite } from './run-fence'\n\n/** Append one JSONL record under the caller's existing single-writer discipline.\n * The caller creates the parent directory. Recover only an uncommitted tail and handle short\n * writes under one generation fence; fsync after the fence, off the event loop (#2362), and\n * resolve only once the bytes are durable. A claimed append made on the main thread runs on the\n * durable writer (durable-writer.ts). With `journalStamp`, the append also proves, inside the\n * fence, that the file it wrote is still the one at `path`, and resolves with that file's stamp.\n * @internal\n */\nexport function appendCommittedJsonLine(path: string, record: unknown): Promise<undefined>\nexport function appendCommittedJsonLine(\n path: string,\n record: unknown,\n options: { readonly journalStamp: true },\n): Promise<string>\nexport async function appendCommittedJsonLine(\n path: string,\n record: unknown,\n options: { readonly journalStamp?: boolean } = {},\n): Promise<string | undefined> {\n const encoded = JSON.stringify(record)\n if (encoded === undefined) throw new TypeError('JSONL records must be JSON serializable')\n const stamp = options.journalStamp === true\n if (routesToDurableWriter())\n return durableCallAsync({ name: 'appendCommittedLine', args: [path, encoded, stamp] })\n const written = writeCommittedLine(path, encoded, stamp)\n try {\n await promisify(fsync)(written.fd)\n return written.stamp\n } finally {\n closeSync(written.fd)\n }\n}\n\n/** The committed append the durable writer runs: the fenced write, then its fsync on that thread. @internal */\nexport function appendCommittedLine(\n path: string,\n encoded: string,\n journalStamp: boolean,\n): string | undefined {\n const written = writeCommittedLine(path, encoded, journalStamp)\n try {\n fsyncSync(written.fd)\n return written.stamp\n } finally {\n closeSync(written.fd)\n }\n}\n\n/** Under one fence: recover the tail, write the whole line, and stamp the file when asked. */\nfunction writeCommittedLine(\n path: string,\n encoded: string,\n journalStamp: boolean,\n): { fd: number; stamp?: string } {\n let fd: number | undefined\n try {\n return fenceRunWrite(() => {\n const bytes = Buffer.from(`${prepareJsonlTail(path) ? '\\n' : ''}${encoded}\\n`)\n fd = openSync(path, 'a')\n let offset = 0\n while (offset < bytes.length) {\n const written = writeSync(fd, bytes, offset, bytes.length - offset)\n if (written <= 0)\n throw new Error(`append-only file write made no progress at byte ${offset}`)\n offset += written\n }\n if (!journalStamp) return { fd }\n const stamp = journalFileStamp(fstatSync(fd, { bigint: true }))\n if (journalFileStamp(statSync(path, { bigint: true })) !== stamp) {\n throw new Error('spawn journal changed while acknowledging its append')\n }\n return { fd, stamp }\n })\n } catch (error) {\n if (fd !== undefined) closeSync(fd)\n throw error\n }\n}\n\n/** Detect replacement, truncation, and same-size edits; this is not a cross-process write lock. @internal */\nexport function journalFileStamp(stat: BigIntStats): string {\n return `${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}`\n}\n\n/** Recover only an uncommitted tail. Caller holds the generation fence. @internal */\nexport function prepareJsonlTail(path: string): boolean {\n let fd: number\n try {\n fd = openSync(path, 'r+')\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false\n throw error\n }\n try {\n const size = fstatSync(fd).size\n if (size === 0) return false\n const last = Buffer.allocUnsafe(1)\n readAt(fd, last, size - 1)\n if (last[0] === 0x0a) return false\n const chunks: Buffer[] = []\n let end = size\n let tailStart = 0\n while (end > 0) {\n const start = Math.max(0, end - 65_536)\n const chunk = Buffer.allocUnsafe(end - start)\n readAt(fd, chunk, start)\n const newline = chunk.lastIndexOf(0x0a)\n chunks.push(chunk.subarray(newline + 1))\n if (newline >= 0) {\n tailStart = start + newline + 1\n break\n }\n end = start\n }\n try {\n JSON.parse(Buffer.concat(chunks.reverse()).toString('utf8'))\n return true\n } catch (error) {\n if (!(error instanceof SyntaxError)) throw error\n ftruncateSync(fd, tailStart)\n fsyncSync(fd)\n return false\n }\n } finally {\n closeSync(fd)\n }\n}\n\nfunction readAt(fd: number, buffer: Buffer, position: number): void {\n let offset = 0\n while (offset < buffer.length) {\n const read = readSync(fd, buffer, offset, buffer.length - offset, position + offset)\n if (read === 0) throw new Error('journal changed while preparing its append tail')\n offset += read\n }\n}\n","import type { FileHandle } from 'node:fs/promises'\nimport { runFencedAsync } from './durable-writer'\nimport { prepareJsonlTail } from './jsonl-append'\nimport { fenceRunWrite } from './run-fence'\n\n/** Parse in-memory evidence with the same commit boundary as streamed journal reads. */\nexport function parseCommittedJsonLines<T>(text: string, source: string): T[] {\n const lines = text.split('\\n')\n const records: T[] = []\n for (const [index, line] of lines.entries()) {\n const record = parseRecord<T>(line, source, index + 1, index < lines.length - 1)\n if (record !== undefined) records.push(record.value)\n }\n return records\n}\n\n/** Read a fixed file prefix one record at a time, never allocating the whole journal as a string.\n * A reader cannot chase concurrent appends forever. Missing files are empty only when requested;\n * corruption, short reads, and other I/O errors remain failures. Closing the iterator closes the fd. */\nexport async function* readCommittedJsonLines<T>(\n path: string,\n options: {\n allowMissing?: boolean\n allowWhitespaceLines?: boolean\n invalid?: 'throw' | 'skip'\n onBytes?: (bytes: Uint8Array) => void\n /** Internal fixed-prefix range. The caller supplies a record boundary and owns the handle. */\n handle?: FileHandle\n start?: number\n end?: number\n strictUtf8?: boolean\n onCommit?: (offset: number) => void\n } = {},\n): AsyncGenerator<T> {\n const fs = await import('node:fs/promises')\n let handle: FileHandle\n try {\n handle = options.handle ?? (await fs.open(path, 'r'))\n } catch (error) {\n if (options.allowMissing && isNoEntError(error)) return\n throw error\n }\n try {\n const start = options.start ?? 0\n const end = options.end ?? (await handle.stat()).size\n if (end <= start) return\n const fragments: Buffer[] = []\n let offset = start\n let lineNumber = 1\n const parse = (terminated: boolean): { value: T } | undefined => {\n const bytes = Buffer.concat(fragments)\n let line: string\n try {\n line = options.strictUtf8\n ? new TextDecoder('utf-8', { fatal: true }).decode(bytes)\n : bytes.toString('utf8')\n } catch (cause) {\n if (!terminated || (options.invalid === 'skip' && cause instanceof TypeError))\n return undefined\n throw new Error(`${path}: malformed UTF-8 at line ${lineNumber}`, { cause })\n }\n return parseRecord<T>(\n line,\n path,\n lineNumber++,\n terminated,\n options.allowWhitespaceLines,\n options.invalid,\n )\n }\n let position = start\n while (position < end) {\n const buffer = Buffer.alloc(Math.min(65_536, end - position))\n const { bytesRead } = await handle.read(buffer, 0, buffer.length, position)\n if (bytesRead === 0) {\n throw new Error(`${path}: journal changed while reading its committed prefix`)\n }\n position += bytesRead\n const bytes = buffer.subarray(0, bytesRead)\n options.onBytes?.(bytes)\n let start = 0\n for (let end = bytes.indexOf(10); end !== -1; end = bytes.indexOf(10, start)) {\n fragments.push(bytes.subarray(start, end))\n const record = parse(true)\n offset += fragments.reduce((size, part) => size + part.length, 0) + 1\n fragments.length = 0\n options.onCommit?.(offset)\n if (record !== undefined) yield record.value\n start = end + 1\n }\n if (start < bytes.length) fragments.push(bytes.subarray(start))\n }\n const record = parse(false)\n if (record !== undefined) {\n options.onCommit?.(end)\n yield record.value\n }\n } finally {\n if (options.handle === undefined) await handle.close()\n }\n}\n\n/** An invalid unterminated tail may be a torn write; other parse failures are not evidence of one. */\nfunction parseRecord<T>(\n line: string,\n source: string,\n lineNumber: number,\n terminated: boolean,\n allowWhitespaceLines = false,\n invalid: 'throw' | 'skip' = 'throw',\n): { value: T } | undefined {\n if (line.length === 0 || (allowWhitespaceLines && line.trim().length === 0)) return undefined\n try {\n return { value: JSON.parse(line) as T }\n } catch (cause) {\n if (!(cause instanceof SyntaxError)) throw cause\n if (!terminated || invalid === 'skip') return undefined\n throw new Error(`${source}: malformed JSONL record at line ${lineNumber}`, { cause })\n }\n}\n\nexport { appendCommittedJsonLine } from './jsonl-append'\n\n/** Serialize JSONL file updates across processes and aliases using Eval's existing file lock.\n * The caller owns validation and the record format. The lock path names the canonical file,\n * including its first write, so two directory aliases cannot acquire different write heads.\n *\n * The wait bounds one live holder, not the queue. A holder that keeps the lock for the whole\n * bound is stuck and the caller is told; the lock primitive itself takes over a dead holder.\n * Writers that each release are progress, so a caller behind them keeps waiting. A bound on the\n * queue would refuse a caller whenever the writers ahead of it together took that long, which a\n * host with slow disk syncs does to a handful of concurrent writers.\n * @internal\n */\nexport async function withJsonlFileLock<T>(\n path: string,\n operation: (canonicalPath: string) => Promise<T>,\n): Promise<T> {\n const fs = await import('node:fs/promises')\n const { dirname } = await import('node:path')\n const { tryAcquireAtomicFileLock } = await import('@tangle-network/agent-eval/ledger-core')\n await fs.mkdir(dirname(path), { recursive: true })\n const file = await fs.open(path, 'a')\n await file.close()\n const canonicalPath = await fs.realpath(path)\n let holder: string | undefined\n let heldSince = Date.now()\n for (;;) {\n const acquisition = tryAcquireAtomicFileLock({ lockPath: `${canonicalPath}.lock` })\n if (!acquisition.acquired) {\n // Each acquisition writes a new nonce, so a changed nonce is a later holder, also when the\n // same process took the lock again. A recovery in progress names no holder, so the clock\n // keeps running.\n if (acquisition.reason === 'held' && acquisition.holder.nonce !== holder) {\n holder = acquisition.holder.nonce\n heldSince = Date.now()\n }\n if (Date.now() - heldSince >= 5000) {\n throw new Error(`journal file lock unavailable after 5000ms: ${canonicalPath}`)\n }\n await new Promise((resolve) => setTimeout(resolve, 25))\n continue\n }\n try {\n return await operation(canonicalPath)\n } finally {\n acquisition.lock.release()\n }\n }\n}\n\n/** Read one keyed registry snapshot without an extra whole-file text allocation.\n * Historical registry files allow whitespace-only separators; append journals remain strict.\n * @internal\n */\nexport async function readCommittedJsonFile<T>(path: string): Promise<T[]> {\n const records: T[] = []\n for await (const record of readCommittedJsonLines<T>(path, {\n allowMissing: true,\n allowWhitespaceLines: true,\n })) {\n records.push(record)\n }\n return records\n}\n\n/** Replace one keyed row and publish one durable snapshot. The caller holds the file lock.\n * Keep unrelated rows in order and put the replacement last. No revision archive is retained.\n * @internal\n */\nexport async function upsertCommittedJsonLine<T>(\n path: string,\n record: T,\n key: (record: T) => string,\n): Promise<void> {\n const encoded = JSON.stringify(record)\n if (encoded === undefined) throw new Error('JSONL records must be JSON serializable')\n const snapshot: T = JSON.parse(encoded)\n const id = key(snapshot)\n const updated: T[] = []\n for await (const prior of readCommittedJsonLines<T>(path, {\n allowMissing: true,\n allowWhitespaceLines: true,\n })) {\n if (key(prior) !== id) updated.push(prior)\n }\n updated.push(snapshot)\n // Reuse Runtime's file publication owner; this module owns JSONL framing, not another\n // durability implementation. Preserve the existing snapshot's permissions across rename.\n const { writeAtomicDurableFile } = await import('../runtime/supervise/durable-file')\n writeAtomicDurableFile(path, `${updated.map((row) => JSON.stringify(row)).join('\\n')}\\n`, {\n preserveMode: true,\n })\n}\n\n/** Recover a torn tail under the same generation fence as durable publications. @internal */\nexport async function prepareJsonlAppend(path: string): Promise<boolean> {\n return runFencedAsync('prepareJsonlAppend', prepareJsonlTailFenced, path)\n}\n\n/** The fenced tail recovery the durable writer runs. @internal */\nexport function prepareJsonlTailFenced(path: string): boolean {\n return fenceRunWrite(() => prepareJsonlTail(path))\n}\n\n/** True for a filesystem error meaning \"the file is not there yet\" — the one condition an\n * append-only reader treats as an empty log rather than a fault. */\nexport function isNoEntError(error: unknown): boolean {\n return (\n typeof error === 'object' &&\n error !== null &&\n 'code' in error &&\n (error as { code: unknown }).code === 'ENOENT'\n )\n}\n"],"mappings":";;;;;;;;;AACA,IAAa,wBAAb,cAA2C,MAAM;CAEpC;CAEA;CAEA;CALX,YACE,QACA,QACA,aAEA,UACA;EACA,MAAM,MAAM;EANH,KAAA,SAAA;EAEA,KAAA,cAAA;EAEA,KAAA,WAAA;EAGT,KAAK,OAAO;CACd;CAEA,WAA4B;EAC1B,OAAO,KAAK;CACd;AACF;;AAGA,SAAgB,YAAY,QAAqB,UAA2B;CAC1E,MAAM,SAAS,OAAO;CACtB,IAAI,kBAAkB,uBAAuB,OAAO;CACpD,IAAI,OAAO,WAAW,YAAY,OAAO,SAAS,GAAG,OAAO;CAE5D,IAAI,kBAAkB,SAAS,OAAO,SA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CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,KAAK,EACxF,cAAc,KAChB,CAAC;AACH;;AAGA,eAAsB,mBAAmB,MAAgC;CACvE,OAAO,eAAe,sBAAsB,wBAAwB,IAAI;AAC1E;;AAGA,SAAgB,uBAAuB,MAAuB;CAC5D,OAAO,oBAAoB,iBAAiB,IAAI,CAAC;AACnD;;;AAIA,SAAgB,aAAa,OAAyB;CACpD,OACE,OAAO,UAAU,YACjB,UAAU,QACV,UAAU,SACT,MAA4B,SAAS;AAE1C"}
|
package/dist/kernel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as BlockedToolReport, $C as LoopLineageOptions, $S as RetainedRunEffect, $a as ExecutorCancellationRequest, $b as DEFAULT_PEER_MAIL_LIMITS, $c as LoopCampaignDispatchOptions, $f as IsolatedCheckOutputEvidence, $g as RouterResponseReceipt, $h as Inbox, $i as DesignerToolsEnv, $l as strategyAuthorContract, $n as searchPresets, $o as structuralRollout, $p as ReservationRejection, $r as workerFromInteractiveProvider, $s as ResolveSandboxClientOptions, $t as AnalystAuthoring, $u as PersonaExecutors, $v as HarnessUsage, $x as SqlAdapter, A as ResourceSpend, AC as RetainedHarnessTranscriptDescriptor, Aa as Agent, Ac as PairedCommandInput, Af as EdgeDeliveryOutcome, Ag as WorkerProgress, Ai as graphFromStored, Al as ArtifactHandle, Am as StopDecision, An as gitWorkspace, Ao as CheckExecChannel, Ap as dumbContinuationPassPrompt, Ar as RemoteSupervisorSteerResult, As as acquireSandbox, At as CreateSandboxOptions, Au as PanelVerdict, Av as ExecutorResultMapping, Ax as ToolStepInput, Ay as bestSoFar, B as SpawnOpts, BC as ExecutorToolCall, BS as ReconnectRetainedRunOptions, Ba as ExecutorMaterialization, Bc as McpEndpoint, Bf as runGraph, Bg as resolveMcpServerLaunch, Bh as CliSeam, Bi as taskShapeDigest, Bl as sample, Bm as DeliveredOutput, Bn as createRootHandle, Bo as StructuralRolloutResult, Bp as WorkerTraceResolver, Br as ProfileRegistryDir, Bs as startRetainedRunInEnvironment, Bt as makeFinding, Bu as Verify, Bv as sentinelCompletion, Bx as AuthoredAnalystDefinition, CC as BoundHarnessSession, CS as readRunCancelRequest, Ca as RootStreamReceipt, Cb as RouteGate, Cc as CreateScopeAnalystOptions, Cd as assertDeclaredCheck, Cf as GraphCheckNode, Cg as ProviderPlacement, Ci as GraphRunRecord, Cl as connectStdioMcp, Cm as SupervisorToolInvocationContext, Cn as copyUntrackedIntoClone, Co as ProfileRichnessThresholds, Cp as PromptHandle, Cr as workerInboxFileFromEventDir, Cs as TurnResult, Ct as AgentSessionRef, Cu as FanoutSynthesis, Cx as EventBus, Cy as renderLeaderboardSvg, D as BudgetOverspend, DC as HarnessTranscriptReadLimits, DS as contentAddress, Da as ExecutorFactory, Dc as createScopeAnalyst, Dd as declaredCheckJudge, Df as GraphCommandCheck, Dg as ExecutorProgress, Di as digestOfGraph, Dl as AgenticSurface, Dm as NoProgressForOptions, Dn as Workspace, Do as profileRichnessFinding, Dp as createPromptRegistry, Dr as RemoteSupervisorCancelResult, Ds as createSandboxLineage, Dt as CheckpointRef, Du as Panel, Dv as CheckVerdict, Dx as defaultToolDetectors, Dy as AnytimeTaskCurve, E as Budget, EC as HarnessTranscriptMetadata, ES as InMemorySpawnJournal, Ea as ExecutorContext, Ec as buildSteerContext, Ed as declaredCheckDigest, Ef as GraphCheckPlacement, Eg as DEFAULT_STALL_AFTER_MS, Ei as StoredGraphInput, El as AgenticRunResult, Em as AllWorkersStalledOptions, En as Shell, Eo as defaultProfileRichnessThresholds, Ep as analyzesFindingsReportPrompt, Er as RemoteSupervisorAgent, Es as SandboxLineageHandle, Et as AnalystFinding, Eu as LoopUntilState, Ev as CheckUnavailableError, Ex as WatchTraceOptions, Ey as AnytimeStrategySummary, F as NodeId, FC as ProviderWorkspaceCaptureProvenance, Fa as UnconfirmedTeardown, Fb as QuestionPolicy, Fc as CanonicalObservedModelParts, Ff as GraphResult, Fg as BridgeSeam, Fi as lookupGraph, Fl as SurfaceScore, Fm as plateau, Fn as analyzeTrace, Fo as CheckSourceCtx, Fp as SupervisorSpanAttributes, Fr as ProvisionSupervisorConnection, Fs as PrivateCasNamespaceObject, Ft as ResourceRequest, Fu as ScopeWidenGate, Fv as CompletionEvidence, Fx as AnalystKind, Fy as WaterfallSpan, G as TreeView, GC as Driver, GS as RetainedInteractiveEnvironmentAdmission, Ga as NodeExecutionIdentity, Gb as DownMessageDeliveryOutcome, Gc as BenchmarkConfig, Gf as portableContinuationPolicySchema, Gg as SandboxToolPartState, Gh as RouterToolsSeam, Gi as DispatchReport, Gl as StrategyArtifacts, Gn as createFencedSqlRunContext, Go as defaultExtractCandidate, Gp as RunParkingRecord, Gr as profileRegistry, Gs as startRetainedInteractiveRun, Gt as SurfaceDiff, Gu as WidenSpec, Gv as CodexRolloutStoreReader, Gy as createOtelExporter, H as SpawnRejection, HC as UsageEvent, HS as RecoverRetainedRunOptions, Ha as MaterializedExecutionIdentity, Hc as createMcpEnvironment, Hf as defaultEdgeTraversalCap, Hg as secretEnvOfMcpServer, Hh as CliWorktreeSeam, Hi as graphFileNeedSchema, Hl as AuthoredStrategy, Hm as FinalizerSettled, Hn as validateStoredGraph, Ho as canDisplace, Hp as ParkedRun, Hr as bestProfileFor, Hs as claimRetainedInteractiveControl, Ht as createVerifierEnvironment, Hu as Widen, Hv as CodexForkBoundary, Hx as DefinedAnalystRecord, I as NodeSnapshot, IC as ProviderWorkspaceCaptureReceipt, Ia as WidenGate, Ib as QuestionRecord, Ic as SnapshotKind, If as GraphTopology, Ig as KeyProvider, Ih as createExecutorRegistry, Ii as pickBestGraph, Il as breadthStrategy, Im as ReentryContinuity, In as WorkerToolTraceArtifact, Io as RepairStop, Ip as SupervisorSpanOptions, Ir as ProvisionSupervisorRequest, Is as PrivateCasNamespaceRetirement, It as SandboxEvent, Iu as SteerContext, Iv as CompletionPolicy, Ix as AnalystLensOutput, Iy as createWaterfallCollector, J as DriverAttemptRecord, JC as LoopDecisionPayload, JS as RetainedRunAdmission, Ja as UnknownMaterializationReason, Jb as MapItemFailurePolicy, Jc as BenchmarkStrategySummary, Jf as IsolatedCheckCommandEvidence, Jg as mapSandboxToolEvent, Jh as SandboxSteeringOptions, Ji as RollingDispatchOptions, Jl as adaptiveRefine, Jn as SearchSpec, Jo as modelAuthoredChecks, Jp as BudgetPoolRestore, Jr as profileBridgeWireModel, Js as RetainedInteractiveAdmissionHook, Jt as SurfaceReader, Ju as DefinePersonaInput, Jv as CodexStoreDelta, K as EvidencePendingEvent, KC as ExecCtx, KS as RetainedInteractiveIntentAdmission, Ka as ProfileMaterializationReceipt, Kb as DownMessageEvent, Kc as BenchmarkLift, Kf as IsolatedCheckBox, Kg as createSandboxToolPartState, Kh as SandboxSeam, Ki as DispatchStopReason, Kl as StrategyCtx, Km as CoordinationControlAccess, Kn as CompiledSearchSpec, Ko as defaultStructuralRolloutPolicy, Kp as readRunParking, Kr as profileRunsForName, Ks as ReconnectRetainedInteractiveRunOptions, Kt as SurfaceReadBox, Ku as WinnerStrategy, Kv as CodexRolloutStoreRef, L as NodeStatus, LC as ProviderWorkspaceCaptureResult, LS as NativeContextContinuationExecution, La as AgentExecutionRef, Lc as canonicalObservedModelParts, Lf as RunGraphOptions, Lg as ResolvedMcpServerLaunch, Lh as ExecutorConfig, Li as recordGraphRun, Ll as depthStrategy, Lm as ReentryTaskInput, Ln as parseWorkerToolTraceArtifact, Lo as StructuralRolloutConfig, Lp as SupervisorSpanOutcome, Lr as ProvisionedSupervisor, Ls as reconnectRetainedRun, Lt as SandboxInstance, Lu as TrajectoryNode, Lv as CompletionVerdict, Lx as AnalystRegistry, Ly as RunAgentRoundsOptions, M as SpendChannel, MC as resolveHarnessTranscriptCapture, Ma as ResumedKeyState, Mb as QuestionEscalationTarget, Mc as PairedCommandOptions, Mf as GraphEdge, Mg as readWorkerProgress, Mi as graphRunsFor, Ml as RunAgenticOptions, Mm as allWorkersStalled, Mn as localShell, Mo as CheckRunContext, Mp as kernelPromptRegistry, Mr as RemoteWorkerEvents, Ms as S3PrivateCasStoreOptions, Mt as ExecResult, Mu as RenderCorpusToInstructionsOptions, Mv as mapExecutorResult, Mx as createPushTraceSource, My as renderAnytimeTable, N as SpendGap, NC as retainHarnessTranscript, Na as ResumedWork, Nc as measurePairedCommands, Nf as GraphEdgeCapError, Ng as BridgeHarnessStore, Ni as listGraphRuns, Nl as StrategyMessage, Nm as anyOf, Nn as runInWorkspace, No as CheckRunner, Np as naiveContinuationPrompt, Nr as connectRemoteSupervisor, Ns as createS3PrivateCasStore, Nt as ForkRequest, Nu as ScopeAnalyst, Nv as verdictFromJudgeScore, Nx as AnalystAssignmentRecord, Ny as WaterfallCollector, O as BudgetViolation, OC as HarnessTranscriptReadOptions, Oa as ExecutorRegistry, Oc as registryScopeAnalyst, Od as readDeclaredCheck, Of as GraphFromStoredOptions, Og as ScopeProgressInput, Oi as graphCorpusSummary, Ol as AgenticTask, Om as PlateauOptions, On as WorkspaceCommit, Oo as supervisorInstructions, Op as delegatesWorkerBriefPrompt, Or as RemoteSupervisorControl, Os as SandboxEvidenceReceipt, Ot as CheckpointRequest, Ou as PanelJudge, Ov as CompletionCheckContext, Ox as watchTrace, Oy as anytimeReport, P as Handle, PC as ProviderWorkspaceAttemptProvenance, Pa as Scope, Pc as observationFromRegistry, Pf as GraphNode, Pg as BridgeModelCredential, Pi as loadGraph, Pl as StrategyShotResult, Pm as noProgressFor, Pn as TrajectoryAnalysis, Po as CheckSource, Pp as promptHandle, Pr as connectRemoteSupervisorControl, Ps as PrivateCasNamespaceInventory, Pt as PlacementInfo, Pu as ScopeAnalyzeInput, Pv as CompletionAnalyst, Px as AnalystFindingEvent, Py as WaterfallReport, Q as DriverRepromptRefusal, QC as LoopIterationStartedPayload, QS as RetainedRunDispatchedAdmission, Qa as ExecutorCancellation, Qb as AUTHORITY_MARKERS, Qc as runBenchmark, Qf as IsolatedCheckOutputDeclaration, Qg as sumSandboxUsage, Qh as AuthorityInboxMessage, Qi as DesignerRunGraphEnv, Ql as sampleThenRefine, Qn as compileSearchSpec, Qo as selectBestIndex, Qp as ReservationHolder, Qr as InteractiveWorkerResult, Qs as StartRetainedInteractiveRunOptions, Qt as harvestSurfaceDiffs, Qu as PersonaContext, Qv as readCodexRolloutSession, Qx as openSqlRunStore, R as RetainedExecutionState, RC as ProviderWorkspaceEntryMetadata, RS as NativeContextContinuationHandle, Ra as ExecutionBindingReceipt, Rb as questionEscalationTargets, Rc as observedModelHasSnapshot, Rg as envKeyProvider, Rh as createExecutor, Ri as recordStoredGraphRun, Rl as refine, Rm as UNPROVEN_CONTINUITY, Rn as DEFAULT_MAX_DEPTH, Ro as StructuralRolloutMessage, Rp as SupervisorSpanRecorder, Rr as SupervisorCleanupReceipt, Rs as recoverRetainedRun, Rt as WorkspaceRequest, Ru as TrajectoryReport, Rv as completionAuthorizes, Rx as AnalystRunContext, Ry as runAgentRounds, SC as persistHarnessTranscript, SS as cancelRunAsync, Sa as RootProviderModelEvidence, Sb as RouteFlowEvent, Sc as widen, Sd as DeclaredCheckStateCapture, Sf as SuperviseRegistryTable, Sg as UnavailablePausePolicy, Si as GraphRunQuery, Sl as StdioMcpServerSpec, Sm as SupervisorToolDescriptor, Sn as UntrackedCopyStats, So as ProfileRichness, Sp as withRunContext, Sr as supervisorRunsRoot, Ss as SandboxRunAbortError, St as AgentSession, Su as FanoutOptions, Sx as BusStats, Sy as renderLeaderboardMarkdown, TC as HarnessFileBinding, TS as InMemoryResultBlobStore, Ta as AgentSpec, Tb as RouteWhen, Tc as assertTraceDerivedFindings, Td as declaredCheckDeliverable, Tf as GraphCheckOutput, Tg as ActivityNote, Ti as StoredGraph, Tl as AgenticOptions, Tm as SupervisorProfile, Tn as GitWorkspaceOptions, To as assessAuthoredProfile, Tp as RegisteredPrompt, Tr as writeWorkerSteerAsync, Ts as SandboxLineage, Tt as AgentTurnResult, Tu as LoopUntilSpec, Tx as createEventBus, Ty as AnytimeReport, U as SubtreeResult, UC as AgentRunSpec, US as RecoverRetainedRunResult, Ua as MaterializedModelIdentity, Uc as sanitizeMcpToolSchema, Uf as GraphRouteError, Ug as SandboxLeafOut, Uh as ProviderSeam, Ui as graphFileSchema, Ul as ShotSpec, Um as SupervisorFinalizer, Un as FencedSqlRunContext, Uo as compareCheckOutcomes, Up as RunParkedError, Ur as loadProfile, Us as reconnectRetainedInteractiveRun, Ut as BoxSurfaceReaderOptions, Uu as WidenDecision, Uv as CodexRolloutIdentity, Ux as CodexExecutionEvidence, V as SpawnPrior, VC as TokenUsageProvenance, VS as RecoverRetainedRunIntentOptions, Va as ExecutorNodeContext, Vb as ContinuationInstruction, Vc as McpEnvironmentOptions, Vg as resolveSecretEnv, Vh as CliWorktreeBridgeSeam, Vi as GraphTriggerBinding, Vl as AuthorStrategyOptions, Vm as FinalizeContext, Vn as ValidateStoredGraphOptions, Vo as VisibleCheck, Vr as ProfileRunRecord, Vs as ClaimRetainedInteractiveControlOptions, Vt as VerifierEnvironmentOptions, Vu as VerifySpec, Vv as stopSentinel, Vx as AuthoredAnalystLimits, W as SubtreeSummary, WC as DefaultVerdict, WS as RetainedInteractiveAdmission, Wa as MaterializedResources, Wb as DownMessageDeliveryAttempt, Wc as BenchmarkCell, Wf as PortableContinuationPolicy, Wg as SandboxOutputMarker, Wh as RouterSeam, Wi as graphRouteWhenSchema, Wl as Strategy, Wm as bestDelivered, Wn as SqlRunContextOptions, Wo as composeCheckSources, Wp as RunParkingPolicy, Wr as pickBestProfile, Ws as recoverRetainedInteractiveRun, Wt as HarvestSurfaceDiffsOptions, Wu as WidenLineage, Wv as CodexRolloutSession, Wx as LocalHarnessResult, X as DriverContinuationRecord, XC as LoopIterationDispatchPayload, XS as RetainedRunCancelOptions, Xa as Executor, Xb as MapSpawnMarker, Xc as Environment, Xf as IsolatedCheckResult, Xg as SandboxUsageLedger, Xh as SteerableSandboxSession, Xi as queueOf, Xl as authorStrategy, Xn as SearchSpecOwnedOption, Xo as resolveEntrySymbol, Xp as LeakedReservation, Xr as InteractiveWorkerKeyInput, Xs as RetainedInteractiveRunHandle, Xt as boxSurfaceReader, Xu as Outcome, Xv as createCodexRolloutStoreReader, Xx as CodexExecutionPolicy, Y as DriverAttemptStop, YC as LoopEndedPayload, YS as RetainedRunAdmissionHook, Ya as EnvironmentTeardownReceipt, Yc as BenchmarkTaskRow, Yf as IsolatedCheckOptions, Yg as SandboxServedBackend, Yh as SteerableSandboxArgs, Yi as freeSlots, Yl as assertStrategyContract, Ym as CoordinationReadAccess, Yn as SearchSpecInputs, Yo as officialChecksFromMeta, Yp as BudgetReadout, Yr as InteractiveWorkerEnvironment, Ys as RetainedInteractiveEnvironmentInput, Yt as WatchedSurface, Yu as LoopShape, Yv as addHarnessUsage, Yx as CodexTokenUsage, Z as DriverFailureClass, ZC as LoopIterationEndedPayload, ZS as RetainedRunCancellation, Za as ExecutorAccounting, Zb as MapTraversalEvent, Zc as printBenchmarkReport, Zf as runIsolatedCheck, Zg as extractLlmCallEvent, Zh as createSteerableSandboxSession, Zi as rollingDispatch, Zl as defineStrategy, Zm as serveCoordinationMcp, Zn as assertSearchSpec, Zo as sandboxCheckRunner, Zp as ReservationFloor, Zr as InteractiveWorkerOptions, Zs as RetainedInteractiveStartMaterial, Zt as fsSurfaceReader, Zu as Persona, Zv as harnessUsageIsEmpty, Zx as SqlRunOwnershipError, _C as HarnessTranscriptUnavailableReason, _S as readRunState, _a as SupervisorOpts, _c as loopUntil, _d as LeaderboardScore, _f as SuperviseOptions, _g as resolveAgentEnvironmentProvider, _h as DriverRetryPolicy, _i as graphWorkspace, _l as LocalMcpMaterialization, _m as ResolveSupervisorTools, _n as closingWorkerNote, _o as ChatWorkerSeamOptions, _p as InMemoryRunContextOptions, _r as readWorkerCancellation, _s as Deliverable, _t as AgentEnvironmentProvider, _u as CorpusFilter, _w as Validator, _y as ProfileKeyOf, aC as RetainedRunSnapshot, aS as SpawnForestNode, a_ as ToolLoopCompaction, aa as ResultBlobStore, ab as WorktreeCommandResult, ac as PrivateCasOffloadReport, ad as readHarnessTranscriptSessions, ag as SharedBoxCloseReceipt, ah as ContinuationAppend, ai as setGraphStrings, al as loopDispatch, an as WorktreeCliExecutorOptions, ao as Runtime, ap as IsolatedCheckCpuIdentity, ar as TRACE_SUMMARY_SCHEMA, as as StreamAgentTurnOptions, at as MakeWorkerAgent, au as harvestCorpus, aw as LoopTeardownFailedPayload, ax as PeerMailReadout, ay as CodeModeToolset, bC as captureHarnessTranscript, bS as RunCancellation, ba as ProviderModelAttemptEvidence, bb as JsonScalar, bc as selectValidWinner, bd as DeclaredCheck, bf as createWorkerSlots, bg as ProviderPromptOptions, bi as GraphCorpusSummary, bl as McpSpawnFault, bm as SupervisorNodeContext, bn as spendFromUsageEvents, bo as createChatSessionStore, bp as createFileRunContext, br as safeWorkerFile, bs as OpenSandboxRunPromptOptions, bt as AgentEnvironmentSummary, bu as EqualKOnCostOptions, bx as BusEvent, by as pairwiseSignificance, cC as StartRetainedRunInEnvironmentOptions, cS as FileResultBlobStore, c_ as ToolLoopToolCall, ca as TraceRootReceipt, cb as GitRunner, cc as equalKOnCost, cd as RetainedFileOutput, cg as SharedBoxStats, ch as ContinuationPanelInput, ci as GraphSessionObservationOptions, cl as TERMINAL_DECISIONS, cm as SettledUsage, cn as AttachWorkerOptions, co as WorkerTraceEvidence, cp as IsolatedCheckCpuSessionResult, cr as RunTraceSources, cs as EvolutionAuthor, cu as ObservationError, cw as LoopTraceEvent, cx as PeerMailbox, cy as runCodeMode, dC as HarnessTranscriptArtifact, dS as SpawnJournalReadOptions, da as RootHandle, db as EventAcknowledgement, dc as runPersonified, dd as LeaderboardBenchTask, df as supervise, dg as ROUTER_CLIENT_HEADER, dh as ContinuationProfile, di as graphFlowSpawnProfile, dl as inlineSandboxClient, dm as CoordinationToolFace, dn as attachWorker, do as WorkerEventEntry, dr as WorkerSteerAcknowledgement, ds as StrategyEvolutionConfig, du as defaultAnalystInstruction, dw as MountRecorder, dx as createPeerMailbox, dy as Interval, eC as RetainedRunEnvironmentAdmission, eS as materializeTreeView, e_ as RouterTransportConfig, ea as GraphDesignerExtraTools, ec as resolveSandboxClient, ed as RunPersonified, eg as InboxLease, ei as InPlaceCliExecutorOptions, el as LoopDispatchOptions, em as ReservationShortfall, en as analystsFromRegistry, eo as ExecutorResult, ep as IsolatedCheckOutputFailure, er as searchSpecDigest, es as visibleCheckScore, eu as strategyAuthorSystemPrompt, ew as LoopPlanDescription, ex as PEER_MAIL_WIRE_KEY, ey as decodeHarnessUsage, f as BackendErrorDetail, fC as HarnessTranscriptBinding, fS as SpawnJournalReadRecord, fa as RootSegment, fb as LeadMessage, fc as FileCorpus, fd as LeaderboardBenchmarkAdapter, ff as superviseFleetCapabilities, fg as sharedBoxRefusal, fh as PanelFinding, fi as GraphFileNeed, fl as InProcessOnPrompt, fm as CoordinationVerbs, fn as readWorkerInteractiveBinding, fo as WorkerEventPage, fr as WorkerSteerRequest, fs as StrategyTournament, ft as SuperviseProfileEntry, fu as observe, fw as OutputAdapter, fx as isPeerMailEnvelope, fy as Leaderboard, gC as HarnessTranscriptUnavailable, gS as RunState, ga as Supervisor, gc as flatWidenGate, gd as LeaderboardScenario, gg as createAgentEnvironmentProviderRegistry, gh as DriverReentry, gi as LoadedGraphFile, gl as HttpMcpServerSpec, gn as WorkerEvidenceInput, go as ChatTransportTool, gp as InMemoryRunContext, gr as legacySupervisorRunDir, gs as strategyTournament, gt as AgentEnvironmentEvent, gu as Corpus, gw as ValidationCtx, gy as PairwiseVerdict, hC as HarnessTranscriptFile, hS as FileSpawnJournal, ha as SteerableRootHandle, hb as ToolOutcomeEvent, hc as fanout, hd as LeaderboardRunContext, hg as AgentEnvironmentProviderRegistry, hh as DriverContractState, hi as LoadGraphFileOptions, hl as inProcessSandboxClient, hm as ObserveSupervisorNodeEvent, hn as VERIFY_TAIL_CHARS, ho as ChatTransportExecutorOptions, hp as subscriptionUsageLimitSignal, hr as fileEscalateQuestion, hs as runStrategyEvolution, ht as AgentEnvironmentCapabilities, hu as CombinatorShape, hw as SelectionReceipt, hy as PairwiseOptions, iC as RetainedRunReplayPoint, iS as SpawnForestMissingTree, i_ as ToolLoopChat, ia as delegate, ib as WorktreeCheckRunner, ic as PrivateCasDurableStore, id as ShapeRegistry, ig as DEFAULT_SHARED_BOX_WORKERS, ii as setGraphProfile, il as loopCampaignDispatch, im as createBudgetPool, in as worktreeFanout, io as HeldRelease, ip as IsolatedCheckCpuEvidence, ir as TRACE_ROOT_SCHEMA, is as CollectedAgentTurn, iu as HarvestReport, iw as LoopStartedPayload, ix as PeerMailOutcome, iy as CodeModeToolsOptions, j as Spend, jC as readBoundHarnessSessions, ja as ReenteredWorkers, jb as QuestionEscalationRecord, jc as PairedCommandMeasurement, jf as EdgeTraversal, jg as createActivityLog, ji as graphRegistry, jl as CorpusReadbackOptions, jm as StopRule, jn as jjWorkspace, jo as CheckOutcome, jp as formatPromptHandle, jr as RemoteSupervisorTree, js as S3PrivateCasStore, jt as ExecRequest, ju as PipelineStage, jv as gateOnDeliverable, jx as TraceSource, jy as plateauLength, k as ResourceLimit, kC as RetainedHarnessTranscriptCapture, ka as SpawnModelSubstitution, kb as QuestionDecision, kc as PairedCommandCall, kf as AgentGraph, kg as TeamProgress, ki as graphDigest, kl as AgenticTool, km as ProgressView, kn as WorkspaceRun, ko as RunCancellationReason, kp as dumbContinuationFailPrompt, kr as RemoteSupervisorReader, ks as AcquireOptions, kt as CreateAgentEnvironmentInput, ku as PanelSpec, kv as DeliverableSpec, kx as SessionMessageLike, ky as areaUnderCurve, lC as StartRetainedRunOptions, lS as replaySpawnTree, la as WorkspaceCheckpointMarker, lc as trajectoryReport, ld as DefinedLeaderboard, lg as SharedWorkerIdentity, lh as ContinuationPanelResult, li as ObservedSessionFacts, ll as TerminalDecision, lm as supervisorAgent, ln as WorkerInteractiveBinding, lo as WorkerTraceUnavailableReason, lp as createIsolatedCheckCpuSession, lr as runToolSpans, ls as EvolutionReport, lu as ObserveInput, lw as LoopWinner, lx as PeerMailboxOptions, ly as AxisScoresOf, mC as HarnessTranscriptEvidence, mS as readSpawnJournal, ma as RootSignal, mc as renderCorpusToInstructions, md as LeaderboardIterationInfo, mf as workerFromBackend, mh as admitContinuationPolicy, mi as GraphFileSeat, ml as InProcessSandboxClientOptions, mn as NOTE_MAX_CHARS, mo as ChatSessionStore, mr as cancelWorker, ms as TournamentRow, mt as AgentEnvironment, mu as AssertTraceDerivedFindings, mw as SandboxClient, mx as peerMailVerbNames, my as LeaderboardRow, nC as RetainedRunHandle, nS as SpawnForestEvent, n_ as ToolSpec, na as DelegateOptions, nc as profileOptimizerModelCall, nd as ShapeBudget, ng as PeerInboxMessage, nh as FileCoordinationLog, ni as readGraphProfile, nl as SuperviseDispatchOptions, nm as ReservationTicket, nn as AuthoredHarness, no as HeldEnvironment, np as validateIsolatedCheckOutputs, nr as createScope, ns as AgentTurnInput, nu as HarvestError, nw as LoopResult, nx as PeerMailEvent, ny as CodeModeTool, oC as RetainedRunStartMaterial, oS as SpawnForestTree, oa as SpawnEvent, ob as WorktreeHarnessResult, oc as PrivateCasOptions, od as ProviderAsSandboxClientOptions, og as SharedBoxPlacement, oh as ContinuationEntry, ol as superviseDispatch, on as WorktreePatchArtifact, oo as WorkerInteractiveSession, op as IsolatedCheckCpuResources, or as TraceRootArtifact, os as collectAgentTurn, ou as Observation, ow as LoopTokenUsage, ox as PeerMailRefusal, oy as RunCodeModeOptions, pC as HarnessTranscriptCapture, pS as SpawnJournalReadResult, pa as RootSegmentEntry, pb as ManagerReentryState, pc as InMemoryCorpus, pd as LeaderboardFlagSpec, pg as sharedWorkerClientName, ph as VerdictSummary, pi as GraphFileResolutionError, pl as InProcessPromptCtx, pm as DriveHarness, pn as EVIDENCE_MAX_CHARS, po as ChatCompletionsTransport, pp as SeatStage, pr as WriteWorkerSteerOptions, ps as TournamentCell, pt as WorkerSpawnContext, pu as renderReport, pw as RunProvenance, px as peerMailTools, py as LeaderboardOptions, qC as Iteration, qS as RetainedInteractiveStartedAdmission, qa as RootMaterialization, qb as WorkerResumeContext, qc as BenchmarkReport, qf as IsolatedCheckBoxEvidence, qg as mapSandboxEvent, qh as DEFAULT_SANDBOX_STEERING_MAX_TURNS, qi as DispatchUnit, ql as StrategyResult, qm as CoordinationMcpHandle, qn as SEARCH_SPEC_CORRELATION_KEY, qo as filterAuthoredAsserts, qp as BudgetPool, qr as recordProfileRun, qs as RecoverRetainedInteractiveRunOptions, qt as SurfaceReadOutcome, qu as DefinePersona, qv as CodexRolloutTurn, rC as RetainedRunIntentAdmission, rS as SpawnForestInDoubtNode, r_ as ToolLoopCallContext, ra as defaultDelegateBudget, rb as InPlaceHarnessResult, rc as PrivateCasArtifactPort, rd as ShapeContext, rg as DEFAULT_SHARED_BOX_RESOURCES, ri as readGraphStrings, rl as SuperviseOptionsForDispatch, rm as ReserveOptions, rn as WorktreeFanoutOptions, ro as HeldForContinuation, rp as IsolatedCheckCpuCounters, rr as ScopeArgs, rs as AgentTurnUsage, ru as HarvestFailure, rw as LoopSandboxPlacement, rx as PeerMailLimits, ry as CodeModeToolContext, sC as RetainedRunTurnInput, sS as loadSpawnForest, s_ as ToolLoopMessageRecord, sa as SpawnJournal, sb as WorktreeProfileMaterializationReceipt, sc as createPrivateCasArtifactPort, sd as providerAsSandboxClient, sg as SharedBoxPlacementOptions, sh as ContinuationPanel, sl as LocalSandboxClientOptions, sn as createWorktreeCliExecutor, so as WorkerInteractiveUnavailableReason, sp as IsolatedCheckCpuSession, sr as TraceSummary, ss as streamAgentTurn, st as SettledWorker, su as ObservationAnalysis, sw as LoopTraceEmitter, sx as PeerMailSendInput, sy as createCodeModeTools, tC as RetainedRunEventOptions, tS as SpawnForest, t_ as RouterRouting, ta as graphDesignerExtraTools, tc as profileChatClient, td as RunPersonifiedOptions, tg as InboxMessage, th as CoordinationLog, ti as createInPlaceCliExecutor, tl as LoopOptionsForDispatch, tm as ReservationStage, tn as failuresAnalyst, to as ExecutorTeardownWarning, tp as IsolatedCheckOutputOptions, tr as settledToIteration, ts as AgentTurnBackend, tu as HarvestCorpusOptions, tw as LoopPlanPayload, tx as PeerMailEnvelope, ty as CodeModeStore, uC as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, uS as SpawnJournalCursor, ua as RecursiveReservationPolicy, ub as CoordinationEvent, uc as definePersona, ud as LeaderboardBenchScore, ug as sharedBoxPlacement, uh as ContinuationPolicy, ui as graphFromSessionFacts, ul as defaultSelectWinner, un as WorkerInteractiveProviderSource, uo as WorkerEventCursor, up as SeatSegment, ur as WorkerCancellation, us as EvolutionStrategy, uu as ObserveOptions, uw as MountManifestEntry, ux as claimsAuthority, uy as GroupOf, vC as ReadableEnvironment, vS as CancelRunOptions, va as FleetYield, vb as GateDecision, vc as panel, vd as LeaderboardSpec, vg as ProviderExecutorOptions, vi as loadGraphFile, vl as MaterializeLocalMcpOptions, vm as SupervisorAgentDeps, vn as composeWorkerEvidence, vo as chatTransportExecutor, vp as RunContext, vr as readWorkerSteerAcknowledgement, vs as OpenSandboxRunBeforeStartContext, vt as AgentEnvironmentQuery, vu as CorpusRecord, vy as ScoreOf, wC as HARNESS_TRANSCRIPT_READ_LIMITS, wS as readRunCancellation, wa as SupervisedResult, wb as RouteMatch, wc as RegistryAnalyzeProjection, wd as checkProgramDigest, wf as GraphCheckNodes, wg as ActivityLog, wi as GraphSelection, wl as materializeLocalMcp, wn as withUntrackedArtifacts, wo as asAuthoredProfile, wp as PromptRegistry, wr as writeWorkerSteer, ws as openSandboxRun, wt as AgentSessionStatus, wu as FanoutWinnerSelector, wx as PublishOptions, wy as renderPairwiseMarkdown, xC as harnessTranscriptArtifact, xS as cancelRun, xa as ProviderModelExecutionEvidence, xc as verify, xd as DeclaredCheckPlacement, xf as SuperviseRegistry, xg as providerAsExecutor, xi as GraphRegistryDir, xl as StdioMcpConnection, xm as SupervisorNodeContextSeed, xn as CopyOptions, xo as AuthoredProfile, xp as createInMemoryRunContext, xr as supervisorRunDir, xs as SandboxRun, xt as AgentProfile, xu as EqualKVerdict, xx as BusRecord, xy as renderLeaderboardHtml, yC as captureBoundHarnessTranscript, yS as RunCancelRequest, ya as NoWinnerError, yb as GateRequest, yc as pipeline, yd as defineLeaderboard, yg as ProviderLeafOut, yi as GraphCorpusGroup, yl as McpListedTool, yn as settledWorkerOut, yo as chatWorkerSeam, yp as RunContextLease, yr as readWorkerSteerRequests, ys as OpenSandboxRunOptions, yt as AgentEnvironmentStatus, yu as EqualKArm, yy as leaderboard, z as Settled, zC as ExecutorProgressEvent, zS as NativeContextContinuationInput, za as ExecutorExecutionBinding, zc as observedModelMatchesDeclared, zf as TraversalContinuity, zg as mcpSecretEnvMetadataKey, zh as CliInPlaceSeam, zi as storedGraphDigests, zl as runAgentic, zm as composeReentryTask, zn as createSupervisor, zo as StructuralRolloutPolicy, zp as createSupervisorSpanRecorder, zr as provisionSupervisor, zs as startRetainedRun, zt as computeFindingId, zu as TrajectoryReportOptions, zv as deterministicCompletion } from "./types-BLhsL4qy.js";
|
|
1
|
+
import { $ as BlockedToolReport, $C as LoopLineageOptions, $S as RetainedRunEffect, $a as ExecutorCancellationRequest, $b as DEFAULT_PEER_MAIL_LIMITS, $c as LoopCampaignDispatchOptions, $f as IsolatedCheckOutputEvidence, $g as RouterResponseReceipt, $h as Inbox, $i as DesignerToolsEnv, $l as strategyAuthorContract, $n as searchPresets, $o as structuralRollout, $p as ReservationRejection, $r as workerFromInteractiveProvider, $s as ResolveSandboxClientOptions, $t as AnalystAuthoring, $u as PersonaExecutors, $v as HarnessUsage, $x as SqlAdapter, A as ResourceSpend, AC as RetainedHarnessTranscriptDescriptor, Aa as Agent, Ac as PairedCommandInput, Af as EdgeDeliveryOutcome, Ag as WorkerProgress, Ai as graphFromStored, Al as ArtifactHandle, Am as StopDecision, An as gitWorkspace, Ao as CheckExecChannel, Ap as dumbContinuationPassPrompt, Ar as RemoteSupervisorSteerResult, As as acquireSandbox, At as CreateSandboxOptions, Au as PanelVerdict, Av as ExecutorResultMapping, Ax as ToolStepInput, Ay as bestSoFar, B as SpawnOpts, BC as ExecutorToolCall, BS as ReconnectRetainedRunOptions, Ba as ExecutorMaterialization, Bc as McpEndpoint, Bf as runGraph, Bg as resolveMcpServerLaunch, Bh as CliSeam, Bi as taskShapeDigest, Bl as sample, Bm as DeliveredOutput, Bn as createRootHandle, Bo as StructuralRolloutResult, Bp as WorkerTraceResolver, Br as ProfileRegistryDir, Bs as startRetainedRunInEnvironment, Bt as makeFinding, Bu as Verify, Bv as sentinelCompletion, Bx as AuthoredAnalystDefinition, CC as BoundHarnessSession, CS as readRunCancelRequest, Ca as RootStreamReceipt, Cb as RouteGate, Cc as CreateScopeAnalystOptions, Cd as assertDeclaredCheck, Cf as GraphCheckNode, Cg as ProviderPlacement, Ci as GraphRunRecord, Cl as connectStdioMcp, Cm as SupervisorToolInvocationContext, Cn as copyUntrackedIntoClone, Co as ProfileRichnessThresholds, Cp as PromptHandle, Cr as workerInboxFileFromEventDir, Cs as TurnResult, Ct as AgentSessionRef, Cu as FanoutSynthesis, Cx as EventBus, Cy as renderLeaderboardSvg, D as BudgetOverspend, DC as HarnessTranscriptReadLimits, DS as contentAddress, Da as ExecutorFactory, Dc as createScopeAnalyst, Dd as declaredCheckJudge, Df as GraphCommandCheck, Dg as ExecutorProgress, Di as digestOfGraph, Dl as AgenticSurface, Dm as NoProgressForOptions, Dn as Workspace, Do as profileRichnessFinding, Dp as createPromptRegistry, Dr as RemoteSupervisorCancelResult, Ds as createSandboxLineage, Dt as CheckpointRef, Du as Panel, Dv as CheckVerdict, Dx as defaultToolDetectors, Dy as AnytimeTaskCurve, E as Budget, EC as HarnessTranscriptMetadata, ES as InMemorySpawnJournal, Ea as ExecutorContext, Ec as buildSteerContext, Ed as declaredCheckDigest, Ef as GraphCheckPlacement, Eg as DEFAULT_STALL_AFTER_MS, Ei as StoredGraphInput, El as AgenticRunResult, Em as AllWorkersStalledOptions, En as Shell, Eo as defaultProfileRichnessThresholds, Ep as analyzesFindingsReportPrompt, Er as RemoteSupervisorAgent, Es as SandboxLineageHandle, Et as AnalystFinding, Eu as LoopUntilState, Ev as CheckUnavailableError, Ex as WatchTraceOptions, Ey as AnytimeStrategySummary, F as NodeId, FC as ProviderWorkspaceCaptureProvenance, Fa as UnconfirmedTeardown, Fb as QuestionPolicy, Fc as CanonicalObservedModelParts, Ff as GraphResult, Fg as BridgeSeam, Fi as lookupGraph, Fl as SurfaceScore, Fm as plateau, Fn as analyzeTrace, Fo as CheckSourceCtx, Fp as SupervisorSpanAttributes, Fr as ProvisionSupervisorConnection, Fs as PrivateCasNamespaceObject, Ft as ResourceRequest, Fu as ScopeWidenGate, Fv as CompletionEvidence, Fx as AnalystKind, Fy as WaterfallSpan, G as TreeView, GC as Driver, GS as RetainedInteractiveEnvironmentAdmission, Ga as NodeExecutionIdentity, Gb as DownMessageDeliveryOutcome, Gc as BenchmarkConfig, Gf as portableContinuationPolicySchema, Gg as SandboxToolPartState, Gh as RouterToolsSeam, Gi as DispatchReport, Gl as StrategyArtifacts, Gn as createFencedSqlRunContext, Go as defaultExtractCandidate, Gp as RunParkingRecord, Gr as profileRegistry, Gs as startRetainedInteractiveRun, Gt as SurfaceDiff, Gu as WidenSpec, Gv as CodexRolloutStoreReader, Gy as createOtelExporter, H as SpawnRejection, HC as UsageEvent, HS as RecoverRetainedRunOptions, Ha as MaterializedExecutionIdentity, Hc as createMcpEnvironment, Hf as defaultEdgeTraversalCap, Hg as secretEnvOfMcpServer, Hh as CliWorktreeSeam, Hi as graphFileNeedSchema, Hl as AuthoredStrategy, Hm as FinalizerSettled, Hn as validateStoredGraph, Ho as canDisplace, Hp as ParkedRun, Hr as bestProfileFor, Hs as claimRetainedInteractiveControl, Ht as createVerifierEnvironment, Hu as Widen, Hv as CodexForkBoundary, Hx as DefinedAnalystRecord, I as NodeSnapshot, IC as ProviderWorkspaceCaptureReceipt, Ia as WidenGate, Ib as QuestionRecord, Ic as SnapshotKind, If as GraphTopology, Ig as KeyProvider, Ih as createExecutorRegistry, Ii as pickBestGraph, Il as breadthStrategy, Im as ReentryContinuity, In as WorkerToolTraceArtifact, Io as RepairStop, Ip as SupervisorSpanOptions, Ir as ProvisionSupervisorRequest, Is as PrivateCasNamespaceRetirement, It as SandboxEvent, Iu as SteerContext, Iv as CompletionPolicy, Ix as AnalystLensOutput, Iy as createWaterfallCollector, J as DriverAttemptRecord, JC as LoopDecisionPayload, JS as RetainedRunAdmission, Ja as UnknownMaterializationReason, Jb as MapItemFailurePolicy, Jc as BenchmarkStrategySummary, Jf as IsolatedCheckCommandEvidence, Jg as mapSandboxToolEvent, Jh as SandboxSteeringOptions, Ji as RollingDispatchOptions, Jl as adaptiveRefine, Jn as SearchSpec, Jo as modelAuthoredChecks, Jp as BudgetPoolRestore, Jr as profileBridgeWireModel, Js as RetainedInteractiveAdmissionHook, Jt as SurfaceReader, Ju as DefinePersonaInput, Jv as CodexStoreDelta, K as EvidencePendingEvent, KC as ExecCtx, KS as RetainedInteractiveIntentAdmission, Ka as ProfileMaterializationReceipt, Kb as DownMessageEvent, Kc as BenchmarkLift, Kf as IsolatedCheckBox, Kg as createSandboxToolPartState, Kh as SandboxSeam, Ki as DispatchStopReason, Kl as StrategyCtx, Km as CoordinationControlAccess, Kn as CompiledSearchSpec, Ko as defaultStructuralRolloutPolicy, Kp as readRunParking, Kr as profileRunsForName, Ks as ReconnectRetainedInteractiveRunOptions, Kt as SurfaceReadBox, Ku as WinnerStrategy, Kv as CodexRolloutStoreRef, L as NodeStatus, LC as ProviderWorkspaceCaptureResult, LS as NativeContextContinuationExecution, La as AgentExecutionRef, Lc as canonicalObservedModelParts, Lf as RunGraphOptions, Lg as ResolvedMcpServerLaunch, Lh as ExecutorConfig, Li as recordGraphRun, Ll as depthStrategy, Lm as ReentryTaskInput, Ln as parseWorkerToolTraceArtifact, Lo as StructuralRolloutConfig, Lp as SupervisorSpanOutcome, Lr as ProvisionedSupervisor, Ls as reconnectRetainedRun, Lt as SandboxInstance, Lu as TrajectoryNode, Lv as CompletionVerdict, Lx as AnalystRegistry, Ly as RunAgentRoundsOptions, M as SpendChannel, MC as resolveHarnessTranscriptCapture, Ma as ResumedKeyState, Mb as QuestionEscalationTarget, Mc as PairedCommandOptions, Mf as GraphEdge, Mg as readWorkerProgress, Mi as graphRunsFor, Ml as RunAgenticOptions, Mm as allWorkersStalled, Mn as localShell, Mo as CheckRunContext, Mp as kernelPromptRegistry, Mr as RemoteWorkerEvents, Ms as S3PrivateCasStoreOptions, Mt as ExecResult, Mu as RenderCorpusToInstructionsOptions, Mv as mapExecutorResult, Mx as createPushTraceSource, My as renderAnytimeTable, N as SpendGap, NC as retainHarnessTranscript, Na as ResumedWork, Nc as measurePairedCommands, Nf as GraphEdgeCapError, Ng as BridgeHarnessStore, Ni as listGraphRuns, Nl as StrategyMessage, Nm as anyOf, Nn as runInWorkspace, No as CheckRunner, Np as naiveContinuationPrompt, Nr as connectRemoteSupervisor, Ns as createS3PrivateCasStore, Nt as ForkRequest, Nu as ScopeAnalyst, Nv as verdictFromJudgeScore, Nx as AnalystAssignmentRecord, Ny as WaterfallCollector, O as BudgetViolation, OC as HarnessTranscriptReadOptions, Oa as ExecutorRegistry, Oc as registryScopeAnalyst, Od as readDeclaredCheck, Of as GraphFromStoredOptions, Og as ScopeProgressInput, Oi as graphCorpusSummary, Ol as AgenticTask, Om as PlateauOptions, On as WorkspaceCommit, Oo as supervisorInstructions, Op as delegatesWorkerBriefPrompt, Or as RemoteSupervisorControl, Os as SandboxEvidenceReceipt, Ot as CheckpointRequest, Ou as PanelJudge, Ov as CompletionCheckContext, Ox as watchTrace, Oy as anytimeReport, P as Handle, PC as ProviderWorkspaceAttemptProvenance, Pa as Scope, Pc as observationFromRegistry, Pf as GraphNode, Pg as BridgeModelCredential, Pi as loadGraph, Pl as StrategyShotResult, Pm as noProgressFor, Pn as TrajectoryAnalysis, Po as CheckSource, Pp as promptHandle, Pr as connectRemoteSupervisorControl, Ps as PrivateCasNamespaceInventory, Pt as PlacementInfo, Pu as ScopeAnalyzeInput, Pv as CompletionAnalyst, Px as AnalystFindingEvent, Py as WaterfallReport, Q as DriverRepromptRefusal, QC as LoopIterationStartedPayload, QS as RetainedRunDispatchedAdmission, Qa as ExecutorCancellation, Qb as AUTHORITY_MARKERS, Qc as runBenchmark, Qf as IsolatedCheckOutputDeclaration, Qg as sumSandboxUsage, Qh as AuthorityInboxMessage, Qi as DesignerRunGraphEnv, Ql as sampleThenRefine, Qn as compileSearchSpec, Qo as selectBestIndex, Qp as ReservationHolder, Qr as InteractiveWorkerResult, Qs as StartRetainedInteractiveRunOptions, Qt as harvestSurfaceDiffs, Qu as PersonaContext, Qv as readCodexRolloutSession, Qx as openSqlRunStore, R as RetainedExecutionState, RC as ProviderWorkspaceEntryMetadata, RS as NativeContextContinuationHandle, Ra as ExecutionBindingReceipt, Rb as questionEscalationTargets, Rc as observedModelHasSnapshot, Rg as envKeyProvider, Rh as createExecutor, Ri as recordStoredGraphRun, Rl as refine, Rm as UNPROVEN_CONTINUITY, Rn as DEFAULT_MAX_DEPTH, Ro as StructuralRolloutMessage, Rp as SupervisorSpanRecorder, Rr as SupervisorCleanupReceipt, Rs as recoverRetainedRun, Rt as WorkspaceRequest, Ru as TrajectoryReport, Rv as completionAuthorizes, Rx as AnalystRunContext, Ry as runAgentRounds, SC as persistHarnessTranscript, SS as cancelRunAsync, Sa as RootProviderModelEvidence, Sb as RouteFlowEvent, Sc as widen, Sd as DeclaredCheckStateCapture, Sf as SuperviseRegistryTable, Sg as UnavailablePausePolicy, Si as GraphRunQuery, Sl as StdioMcpServerSpec, Sm as SupervisorToolDescriptor, Sn as UntrackedCopyStats, So as ProfileRichness, Sp as withRunContext, Sr as supervisorRunsRoot, Ss as SandboxRunAbortError, St as AgentSession, Su as FanoutOptions, Sx as BusStats, Sy as renderLeaderboardMarkdown, TC as HarnessFileBinding, TS as InMemoryResultBlobStore, Ta as AgentSpec, Tb as RouteWhen, Tc as assertTraceDerivedFindings, Td as declaredCheckDeliverable, Tf as GraphCheckOutput, Tg as ActivityNote, Ti as StoredGraph, Tl as AgenticOptions, Tm as SupervisorProfile, Tn as GitWorkspaceOptions, To as assessAuthoredProfile, Tp as RegisteredPrompt, Tr as writeWorkerSteerAsync, Ts as SandboxLineage, Tt as AgentTurnResult, Tu as LoopUntilSpec, Tx as createEventBus, Ty as AnytimeReport, U as SubtreeResult, UC as AgentRunSpec, US as RecoverRetainedRunResult, Ua as MaterializedModelIdentity, Uc as sanitizeMcpToolSchema, Uf as GraphRouteError, Ug as SandboxLeafOut, Uh as ProviderSeam, Ui as graphFileSchema, Ul as ShotSpec, Um as SupervisorFinalizer, Un as FencedSqlRunContext, Uo as compareCheckOutcomes, Up as RunParkedError, Ur as loadProfile, Us as reconnectRetainedInteractiveRun, Ut as BoxSurfaceReaderOptions, Uu as WidenDecision, Uv as CodexRolloutIdentity, Ux as CodexExecutionEvidence, V as SpawnPrior, VC as TokenUsageProvenance, VS as RecoverRetainedRunIntentOptions, Va as ExecutorNodeContext, Vb as ContinuationInstruction, Vc as McpEnvironmentOptions, Vg as resolveSecretEnv, Vh as CliWorktreeBridgeSeam, Vi as GraphTriggerBinding, Vl as AuthorStrategyOptions, Vm as FinalizeContext, Vn as ValidateStoredGraphOptions, Vo as VisibleCheck, Vr as ProfileRunRecord, Vs as ClaimRetainedInteractiveControlOptions, Vt as VerifierEnvironmentOptions, Vu as VerifySpec, Vv as stopSentinel, Vx as AuthoredAnalystLimits, W as SubtreeSummary, WC as DefaultVerdict, WS as RetainedInteractiveAdmission, Wa as MaterializedResources, Wb as DownMessageDeliveryAttempt, Wc as BenchmarkCell, Wf as PortableContinuationPolicy, Wg as SandboxOutputMarker, Wh as RouterSeam, Wi as graphRouteWhenSchema, Wl as Strategy, Wm as bestDelivered, Wn as SqlRunContextOptions, Wo as composeCheckSources, Wp as RunParkingPolicy, Wr as pickBestProfile, Ws as recoverRetainedInteractiveRun, Wt as HarvestSurfaceDiffsOptions, Wu as WidenLineage, Wv as CodexRolloutSession, Wx as LocalHarnessResult, X as DriverContinuationRecord, XC as LoopIterationDispatchPayload, XS as RetainedRunCancelOptions, Xa as Executor, Xb as MapSpawnMarker, Xc as Environment, Xf as IsolatedCheckResult, Xg as SandboxUsageLedger, Xh as SteerableSandboxSession, Xi as queueOf, Xl as authorStrategy, Xn as SearchSpecOwnedOption, Xo as resolveEntrySymbol, Xp as LeakedReservation, Xr as InteractiveWorkerKeyInput, Xs as RetainedInteractiveRunHandle, Xt as boxSurfaceReader, Xu as Outcome, Xv as createCodexRolloutStoreReader, Xx as CodexExecutionPolicy, Y as DriverAttemptStop, YC as LoopEndedPayload, YS as RetainedRunAdmissionHook, Ya as EnvironmentTeardownReceipt, Yc as BenchmarkTaskRow, Yf as IsolatedCheckOptions, Yg as SandboxServedBackend, Yh as SteerableSandboxArgs, Yi as freeSlots, Yl as assertStrategyContract, Ym as CoordinationReadAccess, Yn as SearchSpecInputs, Yo as officialChecksFromMeta, Yp as BudgetReadout, Yr as InteractiveWorkerEnvironment, Ys as RetainedInteractiveEnvironmentInput, Yt as WatchedSurface, Yu as LoopShape, Yv as addHarnessUsage, Yx as CodexTokenUsage, Z as DriverFailureClass, ZC as LoopIterationEndedPayload, ZS as RetainedRunCancellation, Za as ExecutorAccounting, Zb as MapTraversalEvent, Zc as printBenchmarkReport, Zf as runIsolatedCheck, Zg as extractLlmCallEvent, Zh as createSteerableSandboxSession, Zi as rollingDispatch, Zl as defineStrategy, Zm as serveCoordinationMcp, Zn as assertSearchSpec, Zo as sandboxCheckRunner, Zp as ReservationFloor, Zr as InteractiveWorkerOptions, Zs as RetainedInteractiveStartMaterial, Zt as fsSurfaceReader, Zu as Persona, Zv as harnessUsageIsEmpty, Zx as SqlRunOwnershipError, _C as HarnessTranscriptUnavailableReason, _S as readRunState, _a as SupervisorOpts, _c as loopUntil, _d as LeaderboardScore, _f as SuperviseOptions, _g as resolveAgentEnvironmentProvider, _h as DriverRetryPolicy, _i as graphWorkspace, _l as LocalMcpMaterialization, _m as ResolveSupervisorTools, _n as closingWorkerNote, _o as ChatWorkerSeamOptions, _p as InMemoryRunContextOptions, _r as readWorkerCancellation, _s as Deliverable, _t as AgentEnvironmentProvider, _u as CorpusFilter, _w as Validator, _y as ProfileKeyOf, aC as RetainedRunSnapshot, aS as SpawnForestNode, a_ as ToolLoopCompaction, aa as ResultBlobStore, ab as WorktreeCommandResult, ac as PrivateCasOffloadReport, ad as readHarnessTranscriptSessions, ag as SharedBoxCloseReceipt, ah as ContinuationAppend, ai as setGraphStrings, al as loopDispatch, an as WorktreeCliExecutorOptions, ao as Runtime, ap as IsolatedCheckCpuIdentity, ar as TRACE_SUMMARY_SCHEMA, as as StreamAgentTurnOptions, at as MakeWorkerAgent, au as harvestCorpus, aw as LoopTeardownFailedPayload, ax as PeerMailReadout, ay as CodeModeToolset, bC as captureHarnessTranscript, bS as RunCancellation, ba as ProviderModelAttemptEvidence, bb as JsonScalar, bc as selectValidWinner, bd as DeclaredCheck, bf as createWorkerSlots, bg as ProviderPromptOptions, bi as GraphCorpusSummary, bl as McpSpawnFault, bm as SupervisorNodeContext, bn as spendFromUsageEvents, bo as createChatSessionStore, bp as createFileRunContext, br as safeWorkerFile, bs as OpenSandboxRunPromptOptions, bt as AgentEnvironmentSummary, bu as EqualKOnCostOptions, bx as BusEvent, by as pairwiseSignificance, cC as StartRetainedRunInEnvironmentOptions, cS as FileResultBlobStore, c_ as ToolLoopToolCall, ca as TraceRootReceipt, cb as GitRunner, cc as equalKOnCost, cd as RetainedFileOutput, cg as SharedBoxStats, ch as ContinuationPanelInput, ci as GraphSessionObservationOptions, cl as TERMINAL_DECISIONS, cm as SettledUsage, cn as AttachWorkerOptions, co as WorkerTraceEvidence, cp as IsolatedCheckCpuSessionResult, cr as RunTraceSources, cs as EvolutionAuthor, cu as ObservationError, cw as LoopTraceEvent, cx as PeerMailbox, cy as runCodeMode, dC as HarnessTranscriptArtifact, dS as SpawnJournalReadOptions, da as RootHandle, db as EventAcknowledgement, dc as runPersonified, dd as LeaderboardBenchTask, df as supervise, dg as ROUTER_CLIENT_HEADER, dh as ContinuationProfile, di as graphFlowSpawnProfile, dl as inlineSandboxClient, dm as CoordinationToolFace, dn as attachWorker, do as WorkerEventEntry, dr as WorkerSteerAcknowledgement, ds as StrategyEvolutionConfig, du as defaultAnalystInstruction, dw as MountRecorder, dx as createPeerMailbox, dy as Interval, eC as RetainedRunEnvironmentAdmission, eS as materializeTreeView, e_ as RouterTransportConfig, ea as GraphDesignerExtraTools, ec as resolveSandboxClient, ed as RunPersonified, eg as InboxLease, ei as InPlaceCliExecutorOptions, el as LoopDispatchOptions, em as ReservationShortfall, en as analystsFromRegistry, eo as ExecutorResult, ep as IsolatedCheckOutputFailure, er as searchSpecDigest, es as visibleCheckScore, eu as strategyAuthorSystemPrompt, ew as LoopPlanDescription, ex as PEER_MAIL_WIRE_KEY, ey as decodeHarnessUsage, f as BackendErrorDetail, fC as HarnessTranscriptBinding, fS as SpawnJournalReadRecord, fa as RootSegment, fb as LeadMessage, fc as FileCorpus, fd as LeaderboardBenchmarkAdapter, ff as superviseFleetCapabilities, fg as sharedBoxRefusal, fh as PanelFinding, fi as GraphFileNeed, fl as InProcessOnPrompt, fm as CoordinationVerbs, fn as readWorkerInteractiveBinding, fo as WorkerEventPage, fr as WorkerSteerRequest, fs as StrategyTournament, ft as SuperviseProfileEntry, fu as observe, fw as OutputAdapter, fx as isPeerMailEnvelope, fy as Leaderboard, gC as HarnessTranscriptUnavailable, gS as RunState, ga as Supervisor, gc as flatWidenGate, gd as LeaderboardScenario, gg as createAgentEnvironmentProviderRegistry, gh as DriverReentry, gi as LoadedGraphFile, gl as HttpMcpServerSpec, gn as WorkerEvidenceInput, go as ChatTransportTool, gp as InMemoryRunContext, gr as legacySupervisorRunDir, gs as strategyTournament, gt as AgentEnvironmentEvent, gu as Corpus, gw as ValidationCtx, gy as PairwiseVerdict, hC as HarnessTranscriptFile, hS as FileSpawnJournal, ha as SteerableRootHandle, hb as ToolOutcomeEvent, hc as fanout, hd as LeaderboardRunContext, hg as AgentEnvironmentProviderRegistry, hh as DriverContractState, hi as LoadGraphFileOptions, hl as inProcessSandboxClient, hm as ObserveSupervisorNodeEvent, hn as VERIFY_TAIL_CHARS, ho as ChatTransportExecutorOptions, hp as subscriptionUsageLimitSignal, hr as fileEscalateQuestion, hs as runStrategyEvolution, ht as AgentEnvironmentCapabilities, hu as CombinatorShape, hw as SelectionReceipt, hy as PairwiseOptions, iC as RetainedRunReplayPoint, iS as SpawnForestMissingTree, i_ as ToolLoopChat, ia as delegate, ib as WorktreeCheckRunner, ic as PrivateCasDurableStore, id as ShapeRegistry, ig as DEFAULT_SHARED_BOX_WORKERS, ii as setGraphProfile, il as loopCampaignDispatch, im as createBudgetPool, in as worktreeFanout, io as HeldRelease, ip as IsolatedCheckCpuEvidence, ir as TRACE_ROOT_SCHEMA, is as CollectedAgentTurn, iu as HarvestReport, iw as LoopStartedPayload, ix as PeerMailOutcome, iy as CodeModeToolsOptions, j as Spend, jC as readBoundHarnessSessions, ja as ReenteredWorkers, jb as QuestionEscalationRecord, jc as PairedCommandMeasurement, jf as EdgeTraversal, jg as createActivityLog, ji as graphRegistry, jl as CorpusReadbackOptions, jm as StopRule, jn as jjWorkspace, jo as CheckOutcome, jp as formatPromptHandle, jr as RemoteSupervisorTree, js as S3PrivateCasStore, jt as ExecRequest, ju as PipelineStage, jv as gateOnDeliverable, jx as TraceSource, jy as plateauLength, k as ResourceLimit, kC as RetainedHarnessTranscriptCapture, ka as SpawnModelSubstitution, kb as QuestionDecision, kc as PairedCommandCall, kf as AgentGraph, kg as TeamProgress, ki as graphDigest, kl as AgenticTool, km as ProgressView, kn as WorkspaceRun, ko as RunCancellationReason, kp as dumbContinuationFailPrompt, kr as RemoteSupervisorReader, ks as AcquireOptions, kt as CreateAgentEnvironmentInput, ku as PanelSpec, kv as DeliverableSpec, kx as SessionMessageLike, ky as areaUnderCurve, lC as StartRetainedRunOptions, lS as replaySpawnTree, la as WorkspaceCheckpointMarker, lc as trajectoryReport, ld as DefinedLeaderboard, lg as SharedWorkerIdentity, lh as ContinuationPanelResult, li as ObservedSessionFacts, ll as TerminalDecision, lm as supervisorAgent, ln as WorkerInteractiveBinding, lo as WorkerTraceUnavailableReason, lp as createIsolatedCheckCpuSession, lr as runToolSpans, ls as EvolutionReport, lu as ObserveInput, lw as LoopWinner, lx as PeerMailboxOptions, ly as AxisScoresOf, mC as HarnessTranscriptEvidence, mS as readSpawnJournal, ma as RootSignal, mc as renderCorpusToInstructions, md as LeaderboardIterationInfo, mf as workerFromBackend, mh as admitContinuationPolicy, mi as GraphFileSeat, ml as InProcessSandboxClientOptions, mn as NOTE_MAX_CHARS, mo as ChatSessionStore, mr as cancelWorker, ms as TournamentRow, mt as AgentEnvironment, mu as AssertTraceDerivedFindings, mw as SandboxClient, mx as peerMailVerbNames, my as LeaderboardRow, nC as RetainedRunHandle, nS as SpawnForestEvent, n_ as ToolSpec, na as DelegateOptions, nc as profileOptimizerModelCall, nd as ShapeBudget, ng as PeerInboxMessage, nh as FileCoordinationLog, ni as readGraphProfile, nl as SuperviseDispatchOptions, nm as ReservationTicket, nn as AuthoredHarness, no as HeldEnvironment, np as validateIsolatedCheckOutputs, nr as createScope, ns as AgentTurnInput, nu as HarvestError, nw as LoopResult, nx as PeerMailEvent, ny as CodeModeTool, oC as RetainedRunStartMaterial, oS as SpawnForestTree, oa as SpawnEvent, ob as WorktreeHarnessResult, oc as PrivateCasOptions, od as ProviderAsSandboxClientOptions, og as SharedBoxPlacement, oh as ContinuationEntry, ol as superviseDispatch, on as WorktreePatchArtifact, oo as WorkerInteractiveSession, op as IsolatedCheckCpuResources, or as TraceRootArtifact, os as collectAgentTurn, ou as Observation, ow as LoopTokenUsage, ox as PeerMailRefusal, oy as RunCodeModeOptions, pC as HarnessTranscriptCapture, pS as SpawnJournalReadResult, pa as RootSegmentEntry, pb as ManagerReentryState, pc as InMemoryCorpus, pd as LeaderboardFlagSpec, pg as sharedWorkerClientName, ph as VerdictSummary, pi as GraphFileResolutionError, pl as InProcessPromptCtx, pm as DriveHarness, pn as EVIDENCE_MAX_CHARS, po as ChatCompletionsTransport, pp as SeatStage, pr as WriteWorkerSteerOptions, ps as TournamentCell, pt as WorkerSpawnContext, pu as renderReport, pw as RunProvenance, px as peerMailTools, py as LeaderboardOptions, qC as Iteration, qS as RetainedInteractiveStartedAdmission, qa as RootMaterialization, qb as WorkerResumeContext, qc as BenchmarkReport, qf as IsolatedCheckBoxEvidence, qg as mapSandboxEvent, qh as DEFAULT_SANDBOX_STEERING_MAX_TURNS, qi as DispatchUnit, ql as StrategyResult, qm as CoordinationMcpHandle, qn as SEARCH_SPEC_CORRELATION_KEY, qo as filterAuthoredAsserts, qp as BudgetPool, qr as recordProfileRun, qs as RecoverRetainedInteractiveRunOptions, qt as SurfaceReadOutcome, qu as DefinePersona, qv as CodexRolloutTurn, rC as RetainedRunIntentAdmission, rS as SpawnForestInDoubtNode, r_ as ToolLoopCallContext, ra as defaultDelegateBudget, rb as InPlaceHarnessResult, rc as PrivateCasArtifactPort, rd as ShapeContext, rg as DEFAULT_SHARED_BOX_RESOURCES, ri as readGraphStrings, rl as SuperviseOptionsForDispatch, rm as ReserveOptions, rn as WorktreeFanoutOptions, ro as HeldForContinuation, rp as IsolatedCheckCpuCounters, rr as ScopeArgs, rs as AgentTurnUsage, ru as HarvestFailure, rw as LoopSandboxPlacement, rx as PeerMailLimits, ry as CodeModeToolContext, sC as RetainedRunTurnInput, sS as loadSpawnForest, s_ as ToolLoopMessageRecord, sa as SpawnJournal, sb as WorktreeProfileMaterializationReceipt, sc as createPrivateCasArtifactPort, sd as providerAsSandboxClient, sg as SharedBoxPlacementOptions, sh as ContinuationPanel, sl as LocalSandboxClientOptions, sn as createWorktreeCliExecutor, so as WorkerInteractiveUnavailableReason, sp as IsolatedCheckCpuSession, sr as TraceSummary, ss as streamAgentTurn, st as SettledWorker, su as ObservationAnalysis, sw as LoopTraceEmitter, sx as PeerMailSendInput, sy as createCodeModeTools, tC as RetainedRunEventOptions, tS as SpawnForest, t_ as RouterRouting, ta as graphDesignerExtraTools, tc as profileChatClient, td as RunPersonifiedOptions, tg as InboxMessage, th as CoordinationLog, ti as createInPlaceCliExecutor, tl as LoopOptionsForDispatch, tm as ReservationStage, tn as failuresAnalyst, to as ExecutorTeardownWarning, tp as IsolatedCheckOutputOptions, tr as settledToIteration, ts as AgentTurnBackend, tu as HarvestCorpusOptions, tw as LoopPlanPayload, tx as PeerMailEnvelope, ty as CodeModeStore, uC as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, uS as SpawnJournalCursor, ua as RecursiveReservationPolicy, ub as CoordinationEvent, uc as definePersona, ud as LeaderboardBenchScore, ug as sharedBoxPlacement, uh as ContinuationPolicy, ui as graphFromSessionFacts, ul as defaultSelectWinner, un as WorkerInteractiveProviderSource, uo as WorkerEventCursor, up as SeatSegment, ur as WorkerCancellation, us as EvolutionStrategy, uu as ObserveOptions, uw as MountManifestEntry, ux as claimsAuthority, uy as GroupOf, vC as ReadableEnvironment, vS as CancelRunOptions, va as FleetYield, vb as GateDecision, vc as panel, vd as LeaderboardSpec, vg as ProviderExecutorOptions, vi as loadGraphFile, vl as MaterializeLocalMcpOptions, vm as SupervisorAgentDeps, vn as composeWorkerEvidence, vo as chatTransportExecutor, vp as RunContext, vr as readWorkerSteerAcknowledgement, vs as OpenSandboxRunBeforeStartContext, vt as AgentEnvironmentQuery, vu as CorpusRecord, vy as ScoreOf, wC as HARNESS_TRANSCRIPT_READ_LIMITS, wS as readRunCancellation, wa as SupervisedResult, wb as RouteMatch, wc as RegistryAnalyzeProjection, wd as checkProgramDigest, wf as GraphCheckNodes, wg as ActivityLog, wi as GraphSelection, wl as materializeLocalMcp, wn as withUntrackedArtifacts, wo as asAuthoredProfile, wp as PromptRegistry, wr as writeWorkerSteer, ws as openSandboxRun, wt as AgentSessionStatus, wu as FanoutWinnerSelector, wx as PublishOptions, wy as renderPairwiseMarkdown, xC as harnessTranscriptArtifact, xS as cancelRun, xa as ProviderModelExecutionEvidence, xc as verify, xd as DeclaredCheckPlacement, xf as SuperviseRegistry, xg as providerAsExecutor, xi as GraphRegistryDir, xl as StdioMcpConnection, xm as SupervisorNodeContextSeed, xn as CopyOptions, xo as AuthoredProfile, xp as createInMemoryRunContext, xr as supervisorRunDir, xs as SandboxRun, xt as AgentProfile, xu as EqualKVerdict, xx as BusRecord, xy as renderLeaderboardHtml, yC as captureBoundHarnessTranscript, yS as RunCancelRequest, ya as NoWinnerError, yb as GateRequest, yc as pipeline, yd as defineLeaderboard, yg as ProviderLeafOut, yi as GraphCorpusGroup, yl as McpListedTool, yn as settledWorkerOut, yo as chatWorkerSeam, yp as RunContextLease, yr as readWorkerSteerRequests, ys as OpenSandboxRunOptions, yt as AgentEnvironmentStatus, yu as EqualKArm, yy as leaderboard, z as Settled, zC as ExecutorProgressEvent, zS as NativeContextContinuationInput, za as ExecutorExecutionBinding, zc as observedModelMatchesDeclared, zf as TraversalContinuity, zg as mcpSecretEnvMetadataKey, zh as CliInPlaceSeam, zi as storedGraphDigests, zl as runAgentic, zm as composeReentryTask, zn as createSupervisor, zo as StructuralRolloutPolicy, zp as createSupervisorSpanRecorder, zr as provisionSupervisor, zs as startRetainedRun, zt as computeFindingId, zu as TrajectoryReportOptions, zv as deterministicCompletion } from "./types-YXZL7Wxi.js";
|
|
2
2
|
import { t as AgentCandidateWorkspaceArchiveLimits } from "./workspace-archive-DS9E9tUr.js";
|
|
3
3
|
import { c as assertProfileMaterializes } from "./profile-materialization-BRY22Oh8.js";
|
|
4
4
|
import { i as runTaskQueue, n as TaskQueueOptions, r as TaskQueueSettlement, t as TaskQueueEntry } from "./task-queue-kefGy79U.js";
|
package/dist/kernel.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { An as startRetainedRunInEnvironment, C as readWorkerSteerRequests, Dn as reconnectRetainedRun, E as supervisorRunsRoot, F as createWorkerSlots, G as attachWorker, J as recoverRetainedInteractiveRun, K as readWorkerInteractiveBinding, M as writeWorkerSteer, On as recoverRetainedRun, P as writeWorkerSteerAsync, S as readWorkerSteerAcknowledgement, T as supervisorRunDir, V as parseWorkerToolTraceArtifact, X as FileSpawnJournal, Y as startRetainedInteractiveRun, Zn as createOtelExporter, _ as fileEscalateQuestion, _r as retainHarnessTranscript, ar as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, at as queueOf, cr as harnessTranscriptArtifact, dn as materializeTreeView, dr as persistHarnessTranscript, gr as resolveHarnessTranscriptCapture, h as cancelWorker, hr as readBoundHarnessSessions, it as freeSlots, k as workerInboxFileFromEventDir, kn as startRetainedRun,
|
|
2
|
-
import { A as defaultAnalystInstruction, D as runAgentic, E as refine, F as collectAgentTurn, I as streamAgentTurn, M as renderReport, N as profileChatClient, O as sample, P as profileOptimizerModelCall, S as strategyAuthorSystemPrompt, T as depthStrategy, _ as defineStrategy, a as defaultStructuralRolloutPolicy, b as sampleThenRefine, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as authorStrategy, h as assertStrategyContract, i as defaultExtractCandidate, j as observe, k as ObservationError, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, w as breadthStrategy, x as strategyAuthorContract } from "./structural-rollout-
|
|
3
|
-
import {
|
|
1
|
+
import { An as startRetainedRunInEnvironment, Br as CheckUnavailableError, C as readWorkerSteerRequests, Dn as reconnectRetainedRun, E as supervisorRunsRoot, F as createWorkerSlots, G as attachWorker, Hr as gateOnDeliverable, J as recoverRetainedInteractiveRun, K as readWorkerInteractiveBinding, M as writeWorkerSteer, On as recoverRetainedRun, P as writeWorkerSteerAsync, Rr as subscriptionUsageLimitSignal, S as readWorkerSteerAcknowledgement, T as supervisorRunDir, Ur as mapExecutorResult, V as parseWorkerToolTraceArtifact, Wr as verdictFromJudgeScore, X as FileSpawnJournal, Y as startRetainedInteractiveRun, Zn as createOtelExporter, _ as fileEscalateQuestion, _r as retainHarnessTranscript, ar as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, at as queueOf, cr as harnessTranscriptArtifact, dn as materializeTreeView, dr as persistHarnessTranscript, gr as resolveHarnessTranscriptCapture, h as cancelWorker, hr as readBoundHarnessSessions, it as freeSlots, k as workerInboxFileFromEventDir, kn as startRetainedRun, ln as loadSpawnForest, mr as HARNESS_TRANSCRIPT_READ_LIMITS, or as captureBoundHarnessTranscript, ot as rollingDispatch, q as reconnectRetainedInteractiveRun, r as createScope, sr as captureHarnessTranscript, tt as settledToIteration, v as legacySupervisorRunDir, vr as DEFAULT_STALL_AFTER_MS, w as safeWorkerFile, x as readWorkerCancellation, xr as readWorkerProgress, yr as createActivityLog, z as replaySpawnTree } from "./supervisor-accounting-DlDUl58C.js";
|
|
2
|
+
import { A as defaultAnalystInstruction, D as runAgentic, E as refine, F as collectAgentTurn, I as streamAgentTurn, M as renderReport, N as profileChatClient, O as sample, P as profileOptimizerModelCall, S as strategyAuthorSystemPrompt, T as depthStrategy, _ as defineStrategy, a as defaultStructuralRolloutPolicy, b as sampleThenRefine, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as authorStrategy, h as assertStrategyContract, i as defaultExtractCandidate, j as observe, k as ObservationError, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, w as breadthStrategy, x as strategyAuthorContract } from "./structural-rollout-BLflx9cs.js";
|
|
3
|
+
import { b as RunCancellationReason, p as admitContinuationPolicy } from "./jsonl-file-B2ESMrTh.js";
|
|
4
4
|
import { t as runTaskQueue } from "./task-queue-DbpZAp6C.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { F as TRACE_ROOT_SCHEMA, I as TRACE_SUMMARY_SCHEMA, Mt as decodeHarnessUsage, R as contentAddress, dt as mapSandboxEvent, ft as mapSandboxToolEvent, jt as sumSandboxUsage, nt as createBudgetPool, ot as spendFromUsageEvents, ut as createSandboxToolPartState, wt as extractLlmCallEvent } from "./tool-server-n4XYpCok.js";
|
|
6
|
+
import { D as createSteerableSandboxSession, E as DEFAULT_SANDBOX_STEERING_MAX_TURNS, F as defaultSelectWinner, G as providerAsExecutor, J as providerAsSandboxClient, M as createSandboxLineage, N as acquireSandbox, O as runAgentRounds, Ot as assertProfileMaterializes, P as TERMINAL_DECISIONS, R as createCodeModeTools, U as createAgentEnvironmentProviderRegistry, W as resolveAgentEnvironmentProvider, X as createInPlaceCliExecutor, Y as createWorktreeCliExecutor, _t as createPushTraceSource, at as isPeerMailEnvelope, b as InMemorySpawnJournal, c as readRunParking, d as bestDelivered, et as AUTHORITY_MARKERS, gt as readCodexRolloutSession, ht as harnessUsageIsEmpty, it as createPeerMailbox, m as createRootHandle, mt as createCodexRolloutStoreReader, n as createSupervisor, nt as PEER_MAIL_WIRE_KEY, ot as peerMailTools, pt as addHarnessUsage, r as RunParkedError, rt as claimsAuthority, st as peerMailVerbNames, t as DEFAULT_MAX_DEPTH, tt as DEFAULT_PEER_MAIL_LIMITS, w as createExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore, z as runCodeMode } from "./supervisor-DL4hO7UW.js";
|
|
7
7
|
import { g as observedModelMatchesDeclared, h as observedModelHasSnapshot, p as canonicalObservedModelParts, s as profileBridgeWireModel } from "./model-policy-DFuhCC0-.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as
|
|
15
|
-
import {
|
|
16
|
-
import { n as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { n as
|
|
20
|
-
import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-9b8qGlXp.js";
|
|
8
|
+
import { t as FileResultBlobStore } from "./result-blob-store-CJjp44Mz.js";
|
|
9
|
+
import { _ as sharedWorkerClientName, f as DEFAULT_SHARED_BOX_RESOURCES, g as sharedBoxRefusal, h as ROUTER_CLIENT_HEADER, m as sharedBoxPlacement, p as DEFAULT_SHARED_BOX_WORKERS } from "./search-executor-DnWnh4kj.js";
|
|
10
|
+
import { u as FileCoordinationLog } from "./supervise-identity-CtxWEk1I.js";
|
|
11
|
+
import { a as defaultToolDetectors, d as createEventBus, f as createFileRunContext, m as withRunContext, o as watchTrace, p as createInMemoryRunContext } from "./driver-control-acknowledgers-CgeEYeHA.js";
|
|
12
|
+
import { B as allWorkersStalled, F as dumbContinuationPassPrompt, G as areaUnderCurve, H as noProgressFor, I as formatPromptHandle, J as renderAnytimeTable, K as bestSoFar, L as kernelPromptRegistry, M as createPromptRegistry, N as delegatesWorkerBriefPrompt, O as defaultEdgeTraversalCap, P as dumbContinuationFailPrompt, R as naiveContinuationPrompt, S as GraphRouteError, U as plateau, V as anyOf, W as anytimeReport, Y as createSupervisorSpanRecorder, _ as graphFlowSpawnProfile, b as serveCoordinationMcp, d as runToolSpans, f as UNPROVEN_CONTINUITY, i as workerFromBackend, j as analyzesFindingsReportPrompt, n as superviseFleetCapabilities, o as supervisorAgent, p as composeReentryTask, q as plateauLength, t as supervise, z as promptHandle } from "./supervise-CQfJyuLL.js";
|
|
13
|
+
import { a as readRunCancelRequest, i as cancelRunAsync, o as readRunCancellation, r as cancelRun } from "./run-cancellation-BNBmsY3a.js";
|
|
14
|
+
import { A as portableContinuationPolicySchema, S as graphRouteWhenSchema, a as graphRegistry, b as graphFileNeedSchema, c as loadGraph, d as recordGraphRun, f as recordStoredGraphRun, i as graphFromStored, k as validateIsolatedCheckOutputs, l as lookupGraph, m as taskShapeDigest, n as graphCorpusSummary, o as graphRunsFor, p as storedGraphDigests, r as graphDigest, s as listGraphRuns, t as digestOfGraph, u as pickBestGraph, x as graphFileSchema } from "./graph-registry-qyaNDATw.js";
|
|
15
|
+
import { n as readSpawnJournal, t as readRunState } from "./run-state-Bko0BF0_.js";
|
|
16
|
+
import { $ as strategyTournament, $t as completionAuthorizes, A as searchPresets, At as readHarnessTranscriptSessions, B as graphFromSessionFacts, Bt as resolveMcpServerLaunch, C as withUntrackedArtifacts, Ct as createScopeAnalyst, D as SEARCH_SPEC_CORRELATION_KEY, Dt as inProcessSandboxClient, E as createFencedSqlRunContext, Et as observationFromRegistry, F as loadProfile, Ft as materializeLocalMcp, G as readGraphStrings, Gt as loopDispatch, H as graphWorkspace, Ht as secretEnvOfMcpServer, I as pickBestProfile, It as createMcpEnvironment, J as graphDesignerExtraTools, Jt as checkProgramDigest, K as setGraphProfile, Kt as superviseDispatch, L as profileRegistry, Lt as sanitizeMcpToolSchema, M as connectRemoteSupervisor, Mt as resolveSandboxClient, N as connectRemoteSupervisorControl, Nt as McpSpawnFault, O as assertSearchSpec, Ot as HarvestError, P as bestProfileFor, Pt as connectStdioMcp, Q as runStrategyEvolution, Qt as readDeclaredCheck, R as profileRunsForName, Rt as envKeyProvider, S as copyUntrackedIntoClone, St as buildSteerContext, T as validateStoredGraph, Tt as measurePairedCommands, U as loadGraphFile, Ut as inlineSandboxClient, V as GraphFileResolutionError, Vt as resolveSecretEnv, W as readGraphProfile, Wt as loopCampaignDispatch, X as chatWorkerSeam, Xt as declaredCheckDigest, Y as chatTransportExecutor, Yt as declaredCheckDeliverable, Z as createChatSessionStore, Zt as declaredCheckJudge, _ as NOTE_MAX_CHARS, _t as pipeline, a as localShell, an as renderLeaderboardHtml, at as createPrivateCasArtifactPort, b as composeWorkerEvidence, bt as widen, c as createVerifierEnvironment, cn as renderPairwiseMarkdown, ct as definePersona, d as harvestSurfaceDiffs, dt as InMemoryCorpus, en as deterministicCompletion, et as SandboxRunAbortError, f as analystsFromRegistry, ft as renderCorpusToInstructions, g as EVIDENCE_MAX_CHARS, gt as panel, ht as loopUntil, i as jjWorkspace, in as pairwiseSignificance, it as runBenchmark, j as searchSpecDigest, jt as defineLeaderboard, k as compileSearchSpec, kt as harvestCorpus, l as boxSurfaceReader, ln as SqlRunOwnershipError, lt as runPersonified, m as worktreeFanout, mt as flatWidenGate, n as makeFinding, nn as stopSentinel, nt as createS3PrivateCasStore, o as runInWorkspace, on as renderLeaderboardMarkdown, ot as equalKOnCost, p as failuresAnalyst, pt as fanout, q as setGraphStrings, qt as assertDeclaredCheck, r as gitWorkspace, rn as leaderboard, rt as printBenchmarkReport, s as createWaterfallCollector, sn as renderLeaderboardSvg, st as trajectoryReport, t as computeFindingId, tn as sentinelCompletion, tt as openSandboxRun, u as fsSurfaceReader, un as openSqlRunStore, ut as FileCorpus, v as VERIFY_TAIL_CHARS, vt as selectValidWinner, w as analyzeTrace, wt as registryScopeAnalyst, x as settledWorkerOut, xt as assertTraceDerivedFindings, y as closingWorkerNote, yt as verify, z as recordProfileRun, zt as mcpSecretEnvMetadataKey } from "./runtime-CFjS-eQV.js";
|
|
17
|
+
import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession, n as runGraph, t as GraphEdgeCapError } from "./graph-hVouinKw.js";
|
|
18
|
+
import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-KXJqdixT.js";
|
|
19
|
+
import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-AfWnrUWf.js";
|
|
21
20
|
export { AUTHORITY_MARKERS, CheckUnavailableError, DEFAULT_MAX_DEPTH, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_SHARED_BOX_RESOURCES, DEFAULT_SHARED_BOX_WORKERS, DEFAULT_STALL_AFTER_MS, EVIDENCE_MAX_CHARS, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, GraphEdgeCapError, GraphFileResolutionError, GraphRouteError, HARNESS_TRANSCRIPT_READ_LIMITS, HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, HarvestError, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, McpSpawnFault, NOTE_MAX_CHARS, ObservationError, PEER_MAIL_WIRE_KEY, ROUTER_CLIENT_HEADER, RunCancellationReason, RunParkedError, SEARCH_SPEC_CORRELATION_KEY, SandboxRunAbortError, SqlRunOwnershipError, TERMINAL_DECISIONS, TRACE_ROOT_SCHEMA, TRACE_SUMMARY_SCHEMA, UNPROVEN_CONTINUITY, VERIFY_TAIL_CHARS, acquireSandbox, adaptiveRefine, addHarnessUsage, admitContinuationPolicy, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertDeclaredCheck, assertProfileMaterializes, assertSearchSpec, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, authorStrategy, bestDelivered, bestProfileFor, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, canDisplace, cancelRun, cancelRunAsync, cancelWorker, canonicalObservedModelParts, captureBoundHarnessTranscript, captureHarnessTranscript, chatTransportExecutor, chatWorkerSeam, checkProgramDigest, claimRetainedInteractiveControl, claimsAuthority, closingWorkerNote, collectAgentTurn, compareCheckOutcomes, compileSearchSpec, completionAuthorizes, composeCheckSources, composeReentryTask, composeWorkerEvidence, computeFindingId, connectRemoteSupervisor, connectRemoteSupervisorControl, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodeModeTools, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFencedSqlRunContext, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createIsolatedCheckCpuSession, createMcpEnvironment, createOtelExporter, createPeerMailbox, createPrivateCasArtifactPort, createPromptRegistry, createPushTraceSource, createRootHandle, createS3PrivateCasStore, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createVerifierEnvironment, createWaterfallCollector, createWorkerSlots, createWorktreeCliExecutor, declaredCheckDeliverable, declaredCheckDigest, declaredCheckJudge, decodeHarnessUsage, defaultAnalystInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, digestOfGraph, dumbContinuationFailPrompt, dumbContinuationPassPrompt, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, fileEscalateQuestion, filterAuthoredAsserts, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, graphCorpusSummary, graphDesignerExtraTools, graphDigest, graphFileNeedSchema, graphFileSchema, graphFlowSpawnProfile, graphFromSessionFacts, graphFromStored, graphRegistry, graphRouteWhenSchema, graphRunsFor, graphWorkspace, harnessTranscriptArtifact, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, listGraphRuns, loadGraph, loadGraphFile, loadProfile, loadSpawnForest, localShell, lookupGraph, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, measurePairedCommands, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, observationFromRegistry, observe, observedModelHasSnapshot, observedModelMatchesDeclared, officialChecksFromMeta, openSandboxRun, openSqlRunStore, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, peerMailTools, peerMailVerbNames, persistHarnessTranscript, pickBestGraph, pickBestProfile, pipeline, plateau, plateauLength, portableContinuationPolicySchema, printBenchmarkReport, profileBridgeWireModel, profileChatClient, profileOptimizerModelCall, profileRegistry, profileRichnessFinding, profileRunsForName, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readBoundHarnessSessions, readCodexRolloutSession, readDeclaredCheck, readGraphProfile, readGraphStrings, readHarnessTranscriptSessions, readRunCancelRequest, readRunCancellation, readRunParking, readRunState, readSpawnJournal, readWorkerCancellation, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, reconnectRetainedInteractiveRun, reconnectRetainedRun, recordGraphRun, recordProfileRun, recordStoredGraphRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveHarnessTranscriptCapture, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, retainHarnessTranscript, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCodeMode, runGraph, runInWorkspace, runIsolatedCheck, runPersonified, runStrategyEvolution, runTaskQueue, runToolSpans, safeWorkerFile, sample, sampleThenRefine, sandboxCheckRunner, sanitizeMcpToolSchema, searchPresets, searchSpecDigest, secretEnvOfMcpServer, selectBestIndex, selectValidWinner, sentinelCompletion, serveCoordinationMcp, setGraphProfile, setGraphStrings, settledToIteration, settledWorkerOut, sharedBoxPlacement, sharedBoxRefusal, sharedWorkerClientName, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, storedGraphDigests, strategyAuthorContract, strategyAuthorSystemPrompt, strategyTournament, streamAgentTurn, structuralRollout, subscriptionUsageLimitSignal, sumSandboxUsage, supervise, superviseDispatch, superviseFleetCapabilities, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, taskShapeDigest, trajectoryReport, validateIsolatedCheckOutputs, validateStoredGraph, verdictFromJudgeScore, verify, visibleCheckScore, watchTrace, widen, withRunContext, withUntrackedArtifacts, workerFromBackend, workerFromInteractiveProvider, workerInboxFileFromEventDir, worktreeFanout, writeWorkerSteer, writeWorkerSteerAsync };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as RunAnalystLoopResult, u as RunAnalystLoopOpts } from "./types-qsqfyQoY.js";
|
|
2
|
-
import "./types-
|
|
2
|
+
import "./types-YXZL7Wxi.js";
|
|
3
3
|
import { AgentProfile } from "@tangle-network/agent-interface";
|
|
4
4
|
/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */
|
|
5
5
|
declare const DELEGATED_LOOP_MODES: readonly ["code", "review", "research", "audit", "self-improve"];
|
|
@@ -27,4 +27,4 @@ interface DelegatedLoopResult<T = unknown> {
|
|
|
27
27
|
*/
|
|
28
28
|
declare function auditLoopRunner<TProposal = unknown, TEdit = unknown>(options: RunAnalystLoopOpts): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>>;
|
|
29
29
|
export { auditLoopRunner as i, DelegatedLoopResult as n, DelegatedLoopRunner as r, DelegatedLoopRegistry as t };
|
|
30
|
-
//# sourceMappingURL=loop-runner-
|
|
30
|
+
//# sourceMappingURL=loop-runner-BFC781pC.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as runAnalystLoop } from "./analyst-loop-BZvXCDKy.js";
|
|
2
2
|
import { i as ConfigError } from "./errors-DG8yufqX.js";
|
|
3
|
-
import "./runtime-
|
|
3
|
+
import "./runtime-CFjS-eQV.js";
|
|
4
4
|
// src/loop-runner.ts
|
|
5
5
|
/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */
|
|
6
6
|
const DELEGATED_LOOP_MODES = [
|
|
@@ -55,4 +55,4 @@ function auditLoopRunner(options) {
|
|
|
55
55
|
}
|
|
56
56
|
export { runDelegatedLoop as i, auditLoopRunner as n, isDelegatedLoopMode as r, DELEGATED_LOOP_MODES as t };
|
|
57
57
|
|
|
58
|
-
//# sourceMappingURL=loop-runner-
|
|
58
|
+
//# sourceMappingURL=loop-runner-BVTcuWZk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-runner-Dt7I2oMa.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `DelegatedLoopResult`. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\ninterface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\ninterface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n"],"mappings":";;;;;AAyCA,MAAa,uBAAuB;CAAC;CAAQ;CAAU;CAAY;CAAS;AAAc;;AAM1F,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,OAAO,UAAU,YAAa,qBAA2C,SAAS,KAAK;AAChG;;;;;;;;;;AAoCA,eAAsB,iBACpB,MACA,UACA,UAAmC,CAAC,GACH;CACjC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QACH,MAAM,IAAI,YACR,oDAAoD,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC,EACH;CAEF,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,QAAQ,IAAI;CAClB,IAAI;EAEF,OAAO;GAAE;GAAM,IAAI;GAAM,QAAA,MADJ,OAAO,MAAM;GACD,YAAY,IAAI,IAAI;EAAM;CAC7D,SAAS,KAAK;EACZ,OAAO;GACL;GACA,IAAI;GACJ,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GACtD,YAAY,IAAI,IAAI;EACtB;CACF;AACF;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
|
|
1
|
+
{"version":3,"file":"loop-runner-BVTcuWZk.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `DelegatedLoopResult`. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\ninterface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\ninterface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n"],"mappings":";;;;;AAyCA,MAAa,uBAAuB;CAAC;CAAQ;CAAU;CAAY;CAAS;AAAc;;AAM1F,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,OAAO,UAAU,YAAa,qBAA2C,SAAS,KAAK;AAChG;;;;;;;;;;AAoCA,eAAsB,iBACpB,MACA,UACA,UAAmC,CAAC,GACH;CACjC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QACH,MAAM,IAAI,YACR,oDAAoD,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC,EACH;CAEF,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,QAAQ,IAAI;CAClB,IAAI;EAEF,OAAO;GAAE;GAAM,IAAI;GAAM,QAAA,MADJ,OAAO,MAAM;GACD,YAAY,IAAI,IAAI;EAAM;CAC7D,SAAS,KAAK;EACZ,OAAO;GACL;GACA,IAAI;GACJ,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GACtD,YAAY,IAAI,IAAI;EACtB;CACF;AACF;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as DelegatedLoopResult, t as DelegatedLoopRegistry } from "./loop-runner-
|
|
1
|
+
import { n as DelegatedLoopResult, t as DelegatedLoopRegistry } from "./loop-runner-BFC781pC.js";
|
|
2
2
|
/** @experimental Parsed CLI invocation. */
|
|
3
3
|
export interface LoopRunnerCliArgs {
|
|
4
4
|
mode: string;
|
package/dist/loop-runner-bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-
|
|
2
|
+
import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-BVTcuWZk.js";
|
|
3
3
|
// src/loop-runner-bin.ts
|
|
4
4
|
/**
|
|
5
5
|
*
|
package/dist/mcp/bin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Fn as FileObserverJournal, Kn as readTraceContextFromEnv, Kt as coordinationProfileToolPrefix } from "../supervisor-accounting-
|
|
2
|
+
import { Fn as FileObserverJournal, Kn as readTraceContextFromEnv, Kt as coordinationProfileToolPrefix } from "../supervisor-accounting-DlDUl58C.js";
|
|
3
3
|
import { i as ConfigError } from "../errors-DG8yufqX.js";
|
|
4
|
-
import { s as supervisorInstructions } from "../delegate-
|
|
5
|
-
import { a as DelegationTaskQueue, n as observerJournalEventSource, o as FileDelegationStore, r as rootStreamEventSource, t as createMcpServer } from "../server-
|
|
4
|
+
import { s as supervisorInstructions } from "../delegate-AfWnrUWf.js";
|
|
5
|
+
import { a as DelegationTaskQueue, n as observerJournalEventSource, o as FileDelegationStore, r as rootStreamEventSource, t as createMcpServer } from "../server-D87su_-4.js";
|
|
6
6
|
import { basename, isAbsolute } from "node:path";
|
|
7
7
|
// src/mcp/delegate-supervisor-provisioning.ts
|
|
8
8
|
function trimmed(value) {
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $_ as FeedbackRating, A_ as DelegationResumeContext, Ah as McpEventRecord, B_ as DelegateResearchArgs, C_ as createFleetWorkspaceExecutor, Ch as environmentReader, Cv as FileDelegationStoreOptions, D_ as runDetachedTurn, Dh as createMcpServer, E_ as RunDetachedTurnOptions, Eh as McpServerOptions, F_ as DelegationTaskQueueOptions, Fh as createDelegateHandler, G_ as DelegationError, Gx as RunLocalHarnessOptions, H_ as DelegateUiAuditArgs, I_ as SubmitInput, J_ as DelegationHistoryEntry, Jx as LocalHarness, K_ as DelegationFeedbackSnapshot, Kx as runLocalHarness, L_ as SubmitOutput, Lb as QuestionUrgency, Lx as AnalystRegistry, M_ as DelegationResumeTick, Mh as DelegateError, N_ as DelegationRunContext, Nb as QuestionLevel, Nh as DelegateHandlerOptions, O_ as DelegationArgs, Ob as Question, Oh as EventSubscription, P_ as DelegationTaskQueue, Pb as QuestionOption, Ph as DelegateResult, Q_ as DelegationStatusResult, R_ as DelegateCodeArgs, S_ as SiblingSandboxExecutorOptions, Sh as SpawnResourceReader, Sv as FileDelegationStore, T_ as DetachedTurn, Th as McpServer, Tv as CoderTask, U_ as DelegateUiAuditConfig, V_ as DelegateResearchConfig, W_ as DelegateUiAuditRoute, X_ as DelegationResultPayload, Y_ as DelegationProgress, Z_ as DelegationStatus, __ as UiAuditorDelegate, _v as readTraceContextFromEnv, _x as McpToolAnnotations, at as MakeWorkerAgent, b_ as FleetHandle, bh as SpawnResourceBytes, bv as DelegationPersistenceError, cb as GitRunner, d_ as CoderDelegate, dt as SpawnRefusalCause, et as CoordinationStats, ev as FeedbackRefersTo, f_ as CoderReview, g_ as DetachedWinnerSelection, gv as createPropagatingTraceEmitter, gx as JsonRpcResponse, h_ as DetachedSessionDelegateOptions, hv as TraceContext, hx as JsonRpcMessage, ih as CheckRead, j_ as DelegationResumeDriver, jh as McpEventSource, k_ as DelegationRecord, kh as EventSubscriptionStore, l_ as FeedbackEvent, lb as AwaitWakeInput, m_ as DelegateRunCtx, mb as ManagerWake, nt as CoordinationToolsOptions, nv as UiAuditLensFilter, p_ as CoderReviewer, pt as WorkerSpawnContext, q_ as DelegationHistoryArgs, qx as LOCAL_HARNESSES, rv as UiAuditorDelegationOutput, tt as CoordinationTools, tv as ResearchOutputShape, u_ as FeedbackStore, ub as CoordinationEvent, v_ as detachedSessionDelegate, vh as ResolveSpawnResourcePathsResult, vv as DelegationTraceSpan, vx as McpToolDescriptor, w_ as createSiblingSandboxExecutor, wh as resolveSpawnResourcePaths, wv as CoderOutput, x_ as FleetWorkspaceExecutorOptions, xh as SpawnResourceRead, xv as DelegationStore, y_ as DelegationExecutor, yh as ResolvedSpawnResourcePath, yv as composeLoopTraceEmitters, yx as McpTransport, z_ as DelegateCodeConfig } from "../types-
|
|
1
|
+
import { $_ as FeedbackRating, A_ as DelegationResumeContext, Ah as McpEventRecord, B_ as DelegateResearchArgs, C_ as createFleetWorkspaceExecutor, Ch as environmentReader, Cv as FileDelegationStoreOptions, D_ as runDetachedTurn, Dh as createMcpServer, E_ as RunDetachedTurnOptions, Eh as McpServerOptions, F_ as DelegationTaskQueueOptions, Fh as createDelegateHandler, G_ as DelegationError, Gx as RunLocalHarnessOptions, H_ as DelegateUiAuditArgs, I_ as SubmitInput, J_ as DelegationHistoryEntry, Jx as LocalHarness, K_ as DelegationFeedbackSnapshot, Kx as runLocalHarness, L_ as SubmitOutput, Lb as QuestionUrgency, Lx as AnalystRegistry, M_ as DelegationResumeTick, Mh as DelegateError, N_ as DelegationRunContext, Nb as QuestionLevel, Nh as DelegateHandlerOptions, O_ as DelegationArgs, Ob as Question, Oh as EventSubscription, P_ as DelegationTaskQueue, Pb as QuestionOption, Ph as DelegateResult, Q_ as DelegationStatusResult, R_ as DelegateCodeArgs, S_ as SiblingSandboxExecutorOptions, Sh as SpawnResourceReader, Sv as FileDelegationStore, T_ as DetachedTurn, Th as McpServer, Tv as CoderTask, U_ as DelegateUiAuditConfig, V_ as DelegateResearchConfig, W_ as DelegateUiAuditRoute, X_ as DelegationResultPayload, Y_ as DelegationProgress, Z_ as DelegationStatus, __ as UiAuditorDelegate, _v as readTraceContextFromEnv, _x as McpToolAnnotations, at as MakeWorkerAgent, b_ as FleetHandle, bh as SpawnResourceBytes, bv as DelegationPersistenceError, cb as GitRunner, d_ as CoderDelegate, dt as SpawnRefusalCause, et as CoordinationStats, ev as FeedbackRefersTo, f_ as CoderReview, g_ as DetachedWinnerSelection, gv as createPropagatingTraceEmitter, gx as JsonRpcResponse, h_ as DetachedSessionDelegateOptions, hv as TraceContext, hx as JsonRpcMessage, ih as CheckRead, j_ as DelegationResumeDriver, jh as McpEventSource, k_ as DelegationRecord, kh as EventSubscriptionStore, l_ as FeedbackEvent, lb as AwaitWakeInput, m_ as DelegateRunCtx, mb as ManagerWake, nt as CoordinationToolsOptions, nv as UiAuditLensFilter, p_ as CoderReviewer, pt as WorkerSpawnContext, q_ as DelegationHistoryArgs, qx as LOCAL_HARNESSES, rv as UiAuditorDelegationOutput, tt as CoordinationTools, tv as ResearchOutputShape, u_ as FeedbackStore, ub as CoordinationEvent, v_ as detachedSessionDelegate, vh as ResolveSpawnResourcePathsResult, vv as DelegationTraceSpan, vx as McpToolDescriptor, w_ as createSiblingSandboxExecutor, wh as resolveSpawnResourcePaths, wv as CoderOutput, x_ as FleetWorkspaceExecutorOptions, xh as SpawnResourceRead, xv as DelegationStore, y_ as DelegationExecutor, yh as ResolvedSpawnResourcePath, yv as composeLoopTraceEmitters, yx as McpTransport, z_ as DelegateCodeConfig } from "../types-YXZL7Wxi.js";
|
|
2
2
|
import { HarnessType } from "@tangle-network/agent-interface";
|
|
3
3
|
/**
|
|
4
4
|
*
|