@tangle-network/agent-runtime 10.0.4 → 10.0.6
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 +36 -0
- package/dist/{activation-38MolXIP.js → activation-B3qLMoog.js} +2 -2
- package/dist/{activation-38MolXIP.js.map → activation-B3qLMoog.js.map} +1 -1
- package/dist/{activation-Ckx0yHjT.d.ts → activation-CT-rr2-5.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +4 -4
- package/dist/{continuation-CL4B1Y4M.js → continuation-Bccak14N.js} +3 -3
- package/dist/{continuation-CL4B1Y4M.js.map → continuation-Bccak14N.js.map} +1 -1
- package/dist/{delegate-dhNeiaH_.js → delegate-BFP1uCNY.js} +2 -2
- package/dist/{delegate-dhNeiaH_.js.map → delegate-BFP1uCNY.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-C6GaGBf_.js → driver-control-acknowledgers-jdlf49OQ.js} +13 -11
- package/dist/driver-control-acknowledgers-jdlf49OQ.js.map +1 -0
- package/dist/durable-file-iPCEs_-s.js +1 -0
- package/dist/{durable-file-lXnojyij.js → durable-file-pao7FijS.js} +7 -11
- package/dist/durable-file-pao7FijS.js.map +1 -0
- package/dist/durable-writer-thread.js +5 -5
- package/dist/durable.d.ts +4 -1
- package/dist/durable.js +22 -16
- package/dist/durable.js.map +1 -1
- package/dist/{failure-cause-DoCCGLDH.js → failure-cause-DvYGlOEV.js} +13 -5
- package/dist/{failure-cause-DoCCGLDH.js.map → failure-cause-DvYGlOEV.js.map} +1 -1
- package/dist/{graph-CwLg3LGC.js → graph-CiApRth2.js} +10 -14
- package/dist/graph-CiApRth2.js.map +1 -0
- package/dist/{graph-registry-Bs6mGKou.js → graph-registry-CGKyYabE.js} +1 -1
- package/dist/{graph-registry-DtGd03zk.js → graph-registry-CRskE_Yp.js} +4 -4
- package/dist/{graph-registry-DtGd03zk.js.map → graph-registry-CRskE_Yp.js.map} +1 -1
- package/dist/{improve-C_LKfgH9.js → improve-LJaiGxdI.js} +8 -8
- package/dist/{improve-C_LKfgH9.js.map → improve-LJaiGxdI.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +11 -11
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/{jsonl-file-DyzefaZ6.js → jsonl-file-vE9H9UXa.js} +3 -3
- package/dist/{jsonl-file-DyzefaZ6.js.map → jsonl-file-vE9H9UXa.js.map} +1 -1
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +20 -20
- package/dist/{loop-runner-LWqWf8FD.d.ts → loop-runner-D6egvap-.d.ts} +2 -2
- package/dist/{loop-runner-BS3ru-yj.js → loop-runner-Dgow637w.js} +2 -2
- package/dist/{loop-runner-BS3ru-yj.js.map → loop-runner-Dgow637w.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 +7 -7
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/{model-policy-DZnL8Yj9.js → model-policy-DTbTFyOG.js} +12 -6
- package/dist/model-policy-DTbTFyOG.js.map +1 -0
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{provision-supervisor-D8N0l2DM.js → provision-supervisor-DLOeyFHV.js} +8 -8
- package/dist/{provision-supervisor-D8N0l2DM.js.map → provision-supervisor-DLOeyFHV.js.map} +1 -1
- package/dist/{result-blob-store-DfTcyQ05.js → result-blob-store-BMMzqpHa.js} +4 -4
- package/dist/{result-blob-store-DfTcyQ05.js.map → result-blob-store-BMMzqpHa.js.map} +1 -1
- package/dist/{run-cancellation-D3qc9wAD.js → run-cancellation-Bv7ooTJa.js} +129 -54
- package/dist/run-cancellation-Bv7ooTJa.js.map +1 -0
- package/dist/{run-lock-D1xnb9ve.js → run-lock-Ckakh1Uq.js} +3 -3
- package/dist/{run-lock-D1xnb9ve.js.map → run-lock-Ckakh1Uq.js.map} +1 -1
- package/dist/{run-reopen-DVM5AEKV.js → run-reopen-KAnkEJV4.js} +7 -7
- package/dist/{run-reopen-DVM5AEKV.js.map → run-reopen-KAnkEJV4.js.map} +1 -1
- package/dist/{run-state-tgQ-S9Ln.js → run-state-Bcci4zIN.js} +7 -7
- package/dist/{run-state-tgQ-S9Ln.js.map → run-state-Bcci4zIN.js.map} +1 -1
- package/dist/{runtime-BTECV05R.js → runtime-DCo0OP4n.js} +46 -55
- package/dist/runtime-DCo0OP4n.js.map +1 -0
- package/dist/{search-executor-Uco2_KTB.js → search-executor-Dn5YmHsg.js} +5 -5
- package/dist/{search-executor-Uco2_KTB.js.map → search-executor-Dn5YmHsg.js.map} +1 -1
- package/dist/{server-BMp24-xn.js → server-DxpG9y6W.js} +4 -4
- package/dist/{server-BMp24-xn.js.map → server-DxpG9y6W.js.map} +1 -1
- package/dist/{settle-record-au3w7bQG.js → settle-record-DMdeNy8A.js} +4 -4
- package/dist/{settle-record-au3w7bQG.js.map → settle-record-DMdeNy8A.js.map} +1 -1
- package/dist/{structural-rollout-D8wufVJI.js → structural-rollout-DOmjcEMD.js} +5 -5
- package/dist/{structural-rollout-D8wufVJI.js.map → structural-rollout-DOmjcEMD.js.map} +1 -1
- package/dist/{supervise-DtVdvZpr.js → supervise-D7jtypE-.js} +34 -29
- package/dist/supervise-D7jtypE-.js.map +1 -0
- package/dist/{supervise-identity-S5XwgaF3.js → supervise-identity-QavM_M4r.js} +4 -4
- package/dist/{supervise-identity-S5XwgaF3.js.map → supervise-identity-QavM_M4r.js.map} +1 -1
- package/dist/{supervision-discovery-Cqu4NxPV.js → supervision-discovery-CFZnbNTB.js} +6 -9
- package/dist/supervision-discovery-CFZnbNTB.js.map +1 -0
- package/dist/{supervisor-CHgCAMjm.js → supervisor-BFs4u2Vo.js} +147 -73
- package/dist/supervisor-BFs4u2Vo.js.map +1 -0
- package/dist/{supervisor-accounting-CZ7i4cd5.js → supervisor-accounting-CgipDzYg.js} +59 -20
- package/dist/supervisor-accounting-CgipDzYg.js.map +1 -0
- package/dist/{supervisor-root-contract-D70KTGXF.js → supervisor-root-contract-Ca5xp0Vg.js} +3 -3
- package/dist/{supervisor-root-contract-D70KTGXF.js.map → supervisor-root-contract-Ca5xp0Vg.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-DQCdu3am.js → tool-server-Cb7LBW4e.js} +2 -2
- package/dist/{tool-server-DQCdu3am.js.map → tool-server-Cb7LBW4e.js.map} +1 -1
- package/dist/{top-web-COrMqTRC.js → top-web-oDO4xhNE.js} +8 -8
- package/dist/{top-web-COrMqTRC.js.map → top-web-oDO4xhNE.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-9xsn2GGY.d.ts → types-CKsn_wgO.d.ts} +26 -4
- package/package.json +1 -1
- package/dist/driver-control-acknowledgers-C6GaGBf_.js.map +0 -1
- package/dist/durable-file-DJ3JsA4B.js +0 -1
- package/dist/durable-file-lXnojyij.js.map +0 -1
- package/dist/graph-CwLg3LGC.js.map +0 -1
- package/dist/model-policy-DZnL8Yj9.js.map +0 -1
- package/dist/run-cancellation-D3qc9wAD.js.map +0 -1
- package/dist/runtime-BTECV05R.js.map +0 -1
- package/dist/supervise-DtVdvZpr.js.map +0 -1
- package/dist/supervision-discovery-Cqu4NxPV.js.map +0 -1
- package/dist/supervisor-CHgCAMjm.js.map +0 -1
- package/dist/supervisor-accounting-CZ7i4cd5.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-state-tgQ-S9Ln.js","names":[],"sources":["../src/durable/spawn-journal/read.ts","../src/durable/run-state.ts"],"sourcesContent":["import { createHash } from 'node:crypto'\nimport type { BigIntStats } from 'node:fs'\nimport { type FileHandle, open, stat } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport { isRecord } from '@tangle-network/agent-core'\nimport type { NodeId, SpawnEvent } from '../../runtime/supervise/types'\nimport { isNoEntError, readCommittedJsonLines } from '../jsonl-file'\nimport { spawnJournalRecordEvents } from './record-events'\n\n/** Serializable checkpoint of a committed byte boundary, bound to one file and its bytes. */\nexport interface SpawnJournalCursor {\n readonly file: string\n readonly offset: number\n readonly boundary: string\n}\n\n/** Physical groups expand to event records; the owning tree is preserved for every event. */\nexport type SpawnJournalReadRecord =\n | { readonly kind: 'begin'; readonly root: NodeId; readonly at: string }\n | { readonly kind: 'event'; readonly root: NodeId; readonly event: SpawnEvent }\n\nexport interface SpawnJournalReadOptions {\n /** Read-only projections may skip malformed physical rows; execution readers stay strict. */\n readonly invalid?: 'throw' | 'skip'\n readonly after?: SpawnJournalCursor\n /** Initial opening-and-tail window, or an incremental page's byte budget. A crossing record\n * is read whole, so one large record can exceed this budget. Omit for complete history. */\n readonly tailBytes?: number\n}\n\nexport interface SpawnJournalReadResult {\n readonly records: ReadonlyArray<SpawnJournalReadRecord>\n /** Absent only when the journal does not exist. Treat as opaque and persist unchanged. */\n readonly cursor?: SpawnJournalCursor\n /** The supplied cursor no longer matches; this page starts over. */\n readonly reset: boolean\n /** An initial opening-and-tail window omitted records between its two windows. */\n readonly truncated: boolean\n /** Bytes after the committed cursor in this snapshot, including an incomplete final write. */\n readonly remainingBytes: number\n}\n\n/** Read a fixed journal prefix, with historical envelopes and framing owned by Runtime.\n * Missing journals return an empty page. Malformed committed records fail by default; incomplete final\n * writes remain unread for the next call. Cursors detect replacement, truncation and edits at\n * their sampled opening/boundary; they are not integrity proofs against arbitrary file edits.\n */\nexport async function readSpawnJournal(\n runDir: string,\n options: SpawnJournalReadOptions = {},\n): Promise<SpawnJournalReadResult> {\n const { after, tailBytes } = options\n if (tailBytes !== undefined && (!Number.isSafeInteger(tailBytes) || tailBytes < 1)) {\n throw new RangeError('readSpawnJournal: tailBytes must be a positive safe integer')\n }\n const path = join(runDir, 'spawn-journal.jsonl')\n let handle: FileHandle\n try {\n handle = await open(path, 'r')\n } catch (error) {\n if (isNoEntError(error)) {\n return { records: [], reset: after !== undefined, truncated: false, remainingBytes: 0 }\n }\n throw error\n }\n try {\n const snapshot = await handle.stat({ bigint: true })\n if (!snapshot.isFile()) throw new Error(`${path}: expected a regular file`)\n const size = Number(snapshot.size)\n const file = identity(snapshot)\n const resumed =\n after !== undefined &&\n after.file === file &&\n Number.isSafeInteger(after.offset) &&\n after.offset >= 0 &&\n after.offset <= size &&\n after.boundary === (await boundary(handle, after.offset))\n let offset = resumed ? after.offset : 0\n const records: SpawnJournalReadRecord[] = []\n const read = async (start: number, end: number, firstOnly = false): Promise<void> => {\n offset = start\n for await (const record of readCommittedJsonLines<unknown>(path, {\n handle,\n start,\n end,\n strictUtf8: true,\n invalid: options.invalid,\n onCommit: (committed) => {\n offset = committed\n },\n })) {\n if (\n !isRecord(record) ||\n typeof record.root !== 'string' ||\n (record.kind === 'begin' && typeof record.at !== 'string')\n ) {\n if (options.invalid === 'skip') continue\n throw new Error(`${path}: spawn journal record has no root or begin timestamp`)\n }\n if (record.kind === 'begin') {\n records.push({ kind: 'begin', root: record.root, at: record.at as string })\n } else {\n const events = spawnJournalRecordEvents(record, options.invalid)\n if (\n events.some(\n (event) =>\n !isRecord(event) || typeof event.kind !== 'string' || typeof event.id !== 'string',\n )\n ) {\n if (options.invalid === 'skip') continue\n throw new Error(`${path}: spawn journal record has no event identity`)\n }\n for (const event of events) records.push({ kind: 'event', root: record.root, event })\n }\n if (firstOnly) break\n }\n }\n let truncated = false\n if (!resumed && tailBytes !== undefined && size > tailBytes) {\n await read(0, size, true)\n const openingEnd = offset\n const tailStart = await lineBoundary(handle, size - tailBytes, size, -1)\n truncated = tailStart > openingEnd\n await read(Math.max(openingEnd, tailStart), size)\n // A long torn tail must not hide the latest committed activity before it.\n if (offset === tailStart && tailStart > openingEnd) {\n const previous = await lineBoundary(handle, tailStart - 1, size, -1)\n truncated = previous > openingEnd\n await read(Math.max(openingEnd, previous), tailStart)\n }\n } else {\n const end =\n resumed && tailBytes !== undefined && size - offset > tailBytes\n ? await lineBoundary(handle, offset + tailBytes, size, 1)\n : size\n await read(offset, end)\n }\n if (identity(await stat(path, { bigint: true })) !== file || (await handle.stat()).size < size)\n throw new Error(`${path}: journal changed while reading its committed prefix`)\n return {\n records,\n cursor: { file, offset, boundary: await boundary(handle, offset) },\n reset: after !== undefined && !resumed,\n truncated,\n remainingBytes: size - offset,\n }\n } finally {\n await handle.close()\n }\n}\n\nfunction identity(info: BigIntStats): string {\n return `${info.dev}:${info.ino}:${info.birthtimeNs}`\n}\n\nasync function bytes(handle: FileHandle, start: number, length: number): Promise<Buffer> {\n const buffer = Buffer.alloc(length)\n const { bytesRead } = await handle.read(buffer, 0, length, start)\n if (bytesRead !== length) throw new Error('spawn journal changed while reading its boundary')\n return buffer\n}\n\nasync function boundary(handle: FileHandle, offset: number): Promise<string> {\n const length = Math.min(offset, 128)\n return createHash('sha256')\n .update(await bytes(handle, 0, length))\n .update(await bytes(handle, offset - length, length))\n .digest('hex')\n}\n\n/** Include the record crossing a tail window or incremental page boundary. */\nasync function lineBoundary(\n handle: FileHandle,\n position: number,\n size: number,\n direction: -1 | 1,\n): Promise<number> {\n while (position > 0 && position < size) {\n const start = direction === -1 ? Math.max(0, position - 65_536) : position\n const end = direction === -1 ? position : Math.min(size, position + 65_536)\n const part = await bytes(handle, start, end - start)\n const newline = direction === -1 ? part.lastIndexOf(10) : part.indexOf(10)\n if (newline !== -1) return start + newline + 1\n position = direction === -1 ? start : end\n }\n return position\n}\n","import type { RuntimeFailureCause } from '../runtime/failure-cause'\nimport { type RunCancelRequest, readRunCancelRequest } from '../runtime/supervise/run-cancellation'\nimport { readRunParking } from '../runtime/supervise/run-parking'\nimport type { SupervisedResult } from '../runtime/supervise/types'\nimport { runDirectoryHolderIsLive } from './run-lock'\nimport { readFailureRecord, readSettleRecord } from './settle-record'\nimport { readSpawnJournal } from './spawn-journal/read'\n\n/** Runtime evidence only. Product-specific launch, checks and trace completeness belong to callers. */\nexport interface RunState {\n /** Absent when a recorded holder cannot be verified on this host. */\n readonly phase?: 'running' | 'parked' | 'cancelling' | 'settled' | 'down'\n /** A persisted typed root failure; legacy failure messages do not establish a code. */\n readonly failureCode?: RuntimeFailureCause['code']\n readonly settle?: SupervisedResult<unknown>\n readonly cancelRequest?: RunCancelRequest\n /** Absent when holder liveness is unknown. This is advisory, never ownership authorization. */\n readonly holderLive?: boolean\n /** Latest explicit Runtime timestamp observed, as ISO UTC; never a filesystem mtime. */\n readonly lastActivityAt?: string\n}\n\n/** Compose maintained record readers. Terminal settlement outranks cancellation and parking;\n * a request remains cancelling until settlement. An unheld run with evidence is down.\n * No Runtime evidence (including a missing or empty directory) returns undefined. Reads are\n * advisory snapshots across independently published files, not a transaction or a resume gate.\n */\nexport async function readRunState(runDir: string): Promise<RunState | undefined> {\n const [settle, failure, parking, holder, journal] = await Promise.all([\n readSettleRecord(runDir),\n readFailureRecord(runDir),\n readRunParking(runDir),\n runDirectoryHolderIsLive(runDir),\n readSpawnJournal(runDir, { tailBytes: 65_536 }),\n ])\n const cancelRequest = readRunCancelRequest(runDir)\n if (\n !settle &&\n !failure &&\n !parking &&\n !holder.holder &&\n !cancelRequest &&\n journal.records.length === 0\n ) {\n return undefined\n }\n const holderLive = holder.unknown ? undefined : holder.live\n const phase = settle\n ? 'settled'\n : cancelRequest\n ? 'cancelling'\n : parking\n ? 'parked'\n : holderLive === true\n ? 'running'\n : holderLive === false\n ? 'down'\n : undefined\n const root = settle?.tree.nodes?.find((node) => node.id === settle.tree.root)\n const failureCode =\n (settle?.kind === 'no-winner' && settle.reason === 'driver-failed'\n ? settle.error?.failure?.code\n : undefined) ?? root?.failure?.code\n let latest: number | undefined\n const observe = (at: string | number | undefined): void => {\n const timestamp = at === undefined ? undefined : new Date(at).getTime()\n if (timestamp !== undefined && Number.isFinite(timestamp)) {\n latest = latest === undefined ? timestamp : Math.max(latest, timestamp)\n }\n }\n observe(failure?.at)\n observe(parking?.since)\n observe(cancelRequest?.at)\n observe(holder.holder?.startedAt)\n for (const record of journal.records)\n observe(record.kind === 'begin' ? record.at : record.event.at)\n for (const node of settle?.tree.nodes ?? []) {\n observe(node.spawnedAt)\n observe(node.settledAt)\n }\n const lastActivityAt = latest === undefined ? undefined : new Date(latest).toISOString()\n return {\n ...(phase === undefined ? {} : { phase }),\n ...(failureCode === undefined ? {} : { failureCode }),\n ...(settle === undefined ? {} : { settle }),\n ...(cancelRequest === undefined ? {} : { cancelRequest }),\n ...(holderLive === undefined ? {} : { holderLive }),\n ...(lastActivityAt === undefined ? {} : { lastActivityAt }),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA+CA,eAAsB,iBACpB,QACA,UAAmC,CAAC,GACH;CACjC,MAAM,EAAE,OAAO,cAAc;CAC7B,IAAI,cAAc,KAAA,MAAc,CAAC,OAAO,cAAc,SAAS,KAAK,YAAY,IAC9E,MAAM,IAAI,WAAW,6DAA6D;CAEpF,MAAM,OAAO,KAAK,QAAQ,qBAAqB;CAC/C,IAAI;CACJ,IAAI;EACF,SAAS,MAAM,KAAK,MAAM,GAAG;CAC/B,SAAS,OAAO;EACd,IAAI,aAAa,KAAK,GACpB,OAAO;GAAE,SAAS,CAAC;GAAG,OAAO,UAAU,KAAA;GAAW,WAAW;GAAO,gBAAgB;EAAE;EAExF,MAAM;CACR;CACA,IAAI;EACF,MAAM,WAAW,MAAM,OAAO,KAAK,EAAE,QAAQ,KAAK,CAAC;EACnD,IAAI,CAAC,SAAS,OAAO,GAAG,MAAM,IAAI,MAAM,GAAG,KAAK,0BAA0B;EAC1E,MAAM,OAAO,OAAO,SAAS,IAAI;EACjC,MAAM,OAAO,SAAS,QAAQ;EAC9B,MAAM,UACJ,UAAU,KAAA,KACV,MAAM,SAAS,QACf,OAAO,cAAc,MAAM,MAAM,KACjC,MAAM,UAAU,KAChB,MAAM,UAAU,QAChB,MAAM,aAAc,MAAM,SAAS,QAAQ,MAAM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,KAAA,KAAa,OAAO,SAAS,SAAS,GACtD,SAAS,WAAW,KAAA,IAAY,YAAY,KAAK,IAAI,QAAQ,SAAS;CAE1E;CACA,QAAQ,SAAS,EAAE;CACnB,QAAQ,SAAS,KAAK;CACtB,QAAQ,eAAe,EAAE;CACzB,QAAQ,OAAO,QAAQ,SAAS;CAChC,KAAK,MAAM,UAAU,QAAQ,SAC3B,QAAQ,OAAO,SAAS,UAAU,OAAO,KAAK,OAAO,MAAM,EAAE;CAC/D,KAAK,MAAM,QAAQ,QAAQ,KAAK,SAAS,CAAC,GAAG;EAC3C,QAAQ,KAAK,SAAS;EACtB,QAAQ,KAAK,SAAS;CACxB;CACA,MAAM,iBAAiB,WAAW,KAAA,IAAY,KAAA,IAAY,IAAI,KAAK,MAAM,CAAC,CAAC,YAAY;CACvF,OAAO;EACL,GAAI,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,MAAM;EACvC,GAAI,gBAAgB,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY;EACnD,GAAI,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO;EACzC,GAAI,kBAAkB,KAAA,IAAY,CAAC,IAAI,EAAE,cAAc;EACvD,GAAI,eAAe,KAAA,IAAY,CAAC,IAAI,EAAE,WAAW;EACjD,GAAI,mBAAmB,KAAA,IAAY,CAAC,IAAI,EAAE,eAAe;CAC3D;AACF"}
|
|
1
|
+
{"version":3,"file":"run-state-Bcci4zIN.js","names":[],"sources":["../src/durable/spawn-journal/read.ts","../src/durable/run-state.ts"],"sourcesContent":["import { createHash } from 'node:crypto'\nimport type { BigIntStats } from 'node:fs'\nimport { type FileHandle, open, stat } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport { isRecord } from '@tangle-network/agent-core'\nimport type { NodeId, SpawnEvent } from '../../runtime/supervise/types'\nimport { isNoEntError, readCommittedJsonLines } from '../jsonl-file'\nimport { spawnJournalRecordEvents } from './record-events'\n\n/** Serializable checkpoint of a committed byte boundary, bound to one file and its bytes. */\nexport interface SpawnJournalCursor {\n readonly file: string\n readonly offset: number\n readonly boundary: string\n}\n\n/** Physical groups expand to event records; the owning tree is preserved for every event. */\nexport type SpawnJournalReadRecord =\n | { readonly kind: 'begin'; readonly root: NodeId; readonly at: string }\n | { readonly kind: 'event'; readonly root: NodeId; readonly event: SpawnEvent }\n\nexport interface SpawnJournalReadOptions {\n /** Read-only projections may skip malformed physical rows; execution readers stay strict. */\n readonly invalid?: 'throw' | 'skip'\n readonly after?: SpawnJournalCursor\n /** Initial opening-and-tail window, or an incremental page's byte budget. A crossing record\n * is read whole, so one large record can exceed this budget. Omit for complete history. */\n readonly tailBytes?: number\n}\n\nexport interface SpawnJournalReadResult {\n readonly records: ReadonlyArray<SpawnJournalReadRecord>\n /** Absent only when the journal does not exist. Treat as opaque and persist unchanged. */\n readonly cursor?: SpawnJournalCursor\n /** The supplied cursor no longer matches; this page starts over. */\n readonly reset: boolean\n /** An initial opening-and-tail window omitted records between its two windows. */\n readonly truncated: boolean\n /** Bytes after the committed cursor in this snapshot, including an incomplete final write. */\n readonly remainingBytes: number\n}\n\n/** Read a fixed journal prefix, with historical envelopes and framing owned by Runtime.\n * Missing journals return an empty page. Malformed committed records fail by default; incomplete final\n * writes remain unread for the next call. Cursors detect replacement, truncation and edits at\n * their sampled opening/boundary; they are not integrity proofs against arbitrary file edits.\n */\nexport async function readSpawnJournal(\n runDir: string,\n options: SpawnJournalReadOptions = {},\n): Promise<SpawnJournalReadResult> {\n const { after, tailBytes } = options\n if (tailBytes !== undefined && (!Number.isSafeInteger(tailBytes) || tailBytes < 1)) {\n throw new RangeError('readSpawnJournal: tailBytes must be a positive safe integer')\n }\n const path = join(runDir, 'spawn-journal.jsonl')\n let handle: FileHandle\n try {\n handle = await open(path, 'r')\n } catch (error) {\n if (isNoEntError(error)) {\n return { records: [], reset: after !== undefined, truncated: false, remainingBytes: 0 }\n }\n throw error\n }\n try {\n const snapshot = await handle.stat({ bigint: true })\n if (!snapshot.isFile()) throw new Error(`${path}: expected a regular file`)\n const size = Number(snapshot.size)\n const file = identity(snapshot)\n const resumed =\n after !== undefined &&\n after.file === file &&\n Number.isSafeInteger(after.offset) &&\n after.offset >= 0 &&\n after.offset <= size &&\n after.boundary === (await boundary(handle, after.offset))\n let offset = resumed ? after.offset : 0\n const records: SpawnJournalReadRecord[] = []\n const read = async (start: number, end: number, firstOnly = false): Promise<void> => {\n offset = start\n for await (const record of readCommittedJsonLines<unknown>(path, {\n handle,\n start,\n end,\n strictUtf8: true,\n invalid: options.invalid,\n onCommit: (committed) => {\n offset = committed\n },\n })) {\n if (\n !isRecord(record) ||\n typeof record.root !== 'string' ||\n (record.kind === 'begin' && typeof record.at !== 'string')\n ) {\n if (options.invalid === 'skip') continue\n throw new Error(`${path}: spawn journal record has no root or begin timestamp`)\n }\n if (record.kind === 'begin') {\n records.push({ kind: 'begin', root: record.root, at: record.at as string })\n } else {\n const events = spawnJournalRecordEvents(record, options.invalid)\n if (\n events.some(\n (event) =>\n !isRecord(event) || typeof event.kind !== 'string' || typeof event.id !== 'string',\n )\n ) {\n if (options.invalid === 'skip') continue\n throw new Error(`${path}: spawn journal record has no event identity`)\n }\n for (const event of events) records.push({ kind: 'event', root: record.root, event })\n }\n if (firstOnly) break\n }\n }\n let truncated = false\n if (!resumed && tailBytes !== undefined && size > tailBytes) {\n await read(0, size, true)\n const openingEnd = offset\n const tailStart = await lineBoundary(handle, size - tailBytes, size, -1)\n truncated = tailStart > openingEnd\n await read(Math.max(openingEnd, tailStart), size)\n // A long torn tail must not hide the latest committed activity before it.\n if (offset === tailStart && tailStart > openingEnd) {\n const previous = await lineBoundary(handle, tailStart - 1, size, -1)\n truncated = previous > openingEnd\n await read(Math.max(openingEnd, previous), tailStart)\n }\n } else {\n const end =\n resumed && tailBytes !== undefined && size - offset > tailBytes\n ? await lineBoundary(handle, offset + tailBytes, size, 1)\n : size\n await read(offset, end)\n }\n if (identity(await stat(path, { bigint: true })) !== file || (await handle.stat()).size < size)\n throw new Error(`${path}: journal changed while reading its committed prefix`)\n return {\n records,\n cursor: { file, offset, boundary: await boundary(handle, offset) },\n reset: after !== undefined && !resumed,\n truncated,\n remainingBytes: size - offset,\n }\n } finally {\n await handle.close()\n }\n}\n\nfunction identity(info: BigIntStats): string {\n return `${info.dev}:${info.ino}:${info.birthtimeNs}`\n}\n\nasync function bytes(handle: FileHandle, start: number, length: number): Promise<Buffer> {\n const buffer = Buffer.alloc(length)\n const { bytesRead } = await handle.read(buffer, 0, length, start)\n if (bytesRead !== length) throw new Error('spawn journal changed while reading its boundary')\n return buffer\n}\n\nasync function boundary(handle: FileHandle, offset: number): Promise<string> {\n const length = Math.min(offset, 128)\n return createHash('sha256')\n .update(await bytes(handle, 0, length))\n .update(await bytes(handle, offset - length, length))\n .digest('hex')\n}\n\n/** Include the record crossing a tail window or incremental page boundary. */\nasync function lineBoundary(\n handle: FileHandle,\n position: number,\n size: number,\n direction: -1 | 1,\n): Promise<number> {\n while (position > 0 && position < size) {\n const start = direction === -1 ? Math.max(0, position - 65_536) : position\n const end = direction === -1 ? position : Math.min(size, position + 65_536)\n const part = await bytes(handle, start, end - start)\n const newline = direction === -1 ? part.lastIndexOf(10) : part.indexOf(10)\n if (newline !== -1) return start + newline + 1\n position = direction === -1 ? start : end\n }\n return position\n}\n","import type { RuntimeFailureCause } from '../runtime/failure-cause'\nimport { type RunCancelRequest, readRunCancelRequest } from '../runtime/supervise/run-cancellation'\nimport { readRunParking } from '../runtime/supervise/run-parking'\nimport type { SupervisedResult } from '../runtime/supervise/types'\nimport { runDirectoryHolderIsLive } from './run-lock'\nimport { readFailureRecord, readSettleRecord } from './settle-record'\nimport { readSpawnJournal } from './spawn-journal/read'\n\n/** Runtime evidence only. Product-specific launch, checks and trace completeness belong to callers. */\nexport interface RunState {\n /** Absent when a recorded holder cannot be verified on this host. */\n readonly phase?: 'running' | 'parked' | 'cancelling' | 'settled' | 'down'\n /** A persisted typed root failure; legacy failure messages do not establish a code. */\n readonly failureCode?: RuntimeFailureCause['code']\n readonly settle?: SupervisedResult<unknown>\n readonly cancelRequest?: RunCancelRequest\n /** Absent when holder liveness is unknown. This is advisory, never ownership authorization. */\n readonly holderLive?: boolean\n /** Latest explicit Runtime timestamp observed, as ISO UTC; never a filesystem mtime. */\n readonly lastActivityAt?: string\n}\n\n/** Compose maintained record readers. Terminal settlement outranks cancellation and parking;\n * a request remains cancelling until settlement. An unheld run with evidence is down.\n * No Runtime evidence (including a missing or empty directory) returns undefined. Reads are\n * advisory snapshots across independently published files, not a transaction or a resume gate.\n */\nexport async function readRunState(runDir: string): Promise<RunState | undefined> {\n const [settle, failure, parking, holder, journal] = await Promise.all([\n readSettleRecord(runDir),\n readFailureRecord(runDir),\n readRunParking(runDir),\n runDirectoryHolderIsLive(runDir),\n readSpawnJournal(runDir, { tailBytes: 65_536 }),\n ])\n const cancelRequest = readRunCancelRequest(runDir)\n if (\n !settle &&\n !failure &&\n !parking &&\n !holder.holder &&\n !cancelRequest &&\n journal.records.length === 0\n ) {\n return undefined\n }\n const holderLive = holder.unknown ? undefined : holder.live\n const phase = settle\n ? 'settled'\n : cancelRequest\n ? 'cancelling'\n : parking\n ? 'parked'\n : holderLive === true\n ? 'running'\n : holderLive === false\n ? 'down'\n : undefined\n const root = settle?.tree.nodes?.find((node) => node.id === settle.tree.root)\n const failureCode =\n (settle?.kind === 'no-winner' && settle.reason === 'driver-failed'\n ? settle.error?.failure?.code\n : undefined) ?? root?.failure?.code\n let latest: number | undefined\n const observe = (at: string | number | undefined): void => {\n const timestamp = at === undefined ? undefined : new Date(at).getTime()\n if (timestamp !== undefined && Number.isFinite(timestamp)) {\n latest = latest === undefined ? timestamp : Math.max(latest, timestamp)\n }\n }\n observe(failure?.at)\n observe(parking?.since)\n observe(cancelRequest?.at)\n observe(holder.holder?.startedAt)\n for (const record of journal.records)\n observe(record.kind === 'begin' ? record.at : record.event.at)\n for (const node of settle?.tree.nodes ?? []) {\n observe(node.spawnedAt)\n observe(node.settledAt)\n }\n const lastActivityAt = latest === undefined ? undefined : new Date(latest).toISOString()\n return {\n ...(phase === undefined ? {} : { phase }),\n ...(failureCode === undefined ? {} : { failureCode }),\n ...(settle === undefined ? {} : { settle }),\n ...(cancelRequest === undefined ? {} : { cancelRequest }),\n ...(holderLive === undefined ? {} : { holderLive }),\n ...(lastActivityAt === undefined ? {} : { lastActivityAt }),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA+CA,eAAsB,iBACpB,QACA,UAAmC,CAAC,GACH;CACjC,MAAM,EAAE,OAAO,cAAc;CAC7B,IAAI,cAAc,KAAA,MAAc,CAAC,OAAO,cAAc,SAAS,KAAK,YAAY,IAC9E,MAAM,IAAI,WAAW,6DAA6D;CAEpF,MAAM,OAAO,KAAK,QAAQ,qBAAqB;CAC/C,IAAI;CACJ,IAAI;EACF,SAAS,MAAM,KAAK,MAAM,GAAG;CAC/B,SAAS,OAAO;EACd,IAAI,aAAa,KAAK,GACpB,OAAO;GAAE,SAAS,CAAC;GAAG,OAAO,UAAU,KAAA;GAAW,WAAW;GAAO,gBAAgB;EAAE;EAExF,MAAM;CACR;CACA,IAAI;EACF,MAAM,WAAW,MAAM,OAAO,KAAK,EAAE,QAAQ,KAAK,CAAC;EACnD,IAAI,CAAC,SAAS,OAAO,GAAG,MAAM,IAAI,MAAM,GAAG,KAAK,0BAA0B;EAC1E,MAAM,OAAO,OAAO,SAAS,IAAI;EACjC,MAAM,OAAO,SAAS,QAAQ;EAC9B,MAAM,UACJ,UAAU,KAAA,KACV,MAAM,SAAS,QACf,OAAO,cAAc,MAAM,MAAM,KACjC,MAAM,UAAU,KAChB,MAAM,UAAU,QAChB,MAAM,aAAc,MAAM,SAAS,QAAQ,MAAM,MAAM;EACzD,IAAI,SAAS,UAAU,MAAM,SAAS;EACtC,MAAM,UAAoC,CAAC;EAC3C,MAAM,OAAO,OAAO,OAAe,KAAa,YAAY,UAAyB;GACnF,SAAS;GACT,WAAW,MAAM,UAAU,uBAAgC,MAAM;IAC/D;IAC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B,QAAQ,OAAO,QAAQ,SAAS;CAChC,KAAK,MAAM,UAAU,QAAQ,SAC3B,QAAQ,OAAO,SAAS,UAAU,OAAO,KAAK,OAAO,MAAM,EAAE;CAC/D,KAAK,MAAM,QAAQ,QAAQ,KAAK,SAAS,CAAC,GAAG;EAC3C,QAAQ,KAAK,SAAS;EACtB,QAAQ,KAAK,SAAS;CACxB;CACA,MAAM,iBAAiB,WAAW,KAAA,IAAY,KAAA,IAAY,IAAI,KAAK,MAAM,CAAC,CAAC,YAAY;CACvF,OAAO;EACL,GAAI,UAAU,KAAA,IAAY,CAAC,IAAI,EAAE,MAAM;EACvC,GAAI,gBAAgB,KAAA,IAAY,CAAC,IAAI,EAAE,YAAY;EACnD,GAAI,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,OAAO;EACzC,GAAI,kBAAkB,KAAA,IAAY,CAAC,IAAI,EAAE,cAAc;EACvD,GAAI,eAAe,KAAA,IAAY,CAAC,IAAI,EAAE,WAAW;EACjD,GAAI,mBAAmB,KAAA,IAAY,CAAC,IAAI,EAAE,eAAe;CAC3D;AACF"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./run-state-
|
|
4
|
-
import {
|
|
5
|
-
import "./result-blob-store-
|
|
6
|
-
import { E as validateFlowGraph, I as kernelPromptRegistry, b as coordinationControlToolNames, k as validateGraphTopology, m as runBrainLoop, t as supervise } from "./supervise-
|
|
1
|
+
import { A as readPromptOptions, F as defaultSelectWinner, H as routerBrain, M as createSandboxLineage, O as runAgentRounds, St as verdictFromJudgeScore, Y as createWorktreeCliExecutor, b as InMemorySpawnJournal, bt as gateOnDeliverable, k as assertBoxlessPromptOptions, n as createSupervisor, v as withDriverExecutor, vt as CheckUnavailableError, w as createExecutor, x as createExecutorRegistry, xt as mapExecutorResult, y as InMemoryResultBlobStore } from "./supervisor-BFs4u2Vo.js";
|
|
2
|
+
import { At as recordValue, P as contentAddress, St as notifySandboxEventObserver, r as runtimeFailureCauseSchema, vt as createSandboxTurnEventCollector } from "./failure-cause-DvYGlOEV.js";
|
|
3
|
+
import "./run-state-Bcci4zIN.js";
|
|
4
|
+
import { B as isTraceAnalysisStore, Kt as coordinationProfileToolPrefix, cr as harnessTranscriptArtifact, gn as insideCursorNamespace, hr as readBoundHarnessSessions, ni as executableAgentProfileSnapshot, ot as rollingDispatch, ri as executableAgentSpecSnapshot, tt as settledToIteration } from "./supervisor-accounting-CgipDzYg.js";
|
|
5
|
+
import "./result-blob-store-BMMzqpHa.js";
|
|
6
|
+
import { E as validateFlowGraph, I as kernelPromptRegistry, b as coordinationControlToolNames, k as validateGraphTopology, m as runBrainLoop, t as supervise } from "./supervise-D7jtypE-.js";
|
|
7
7
|
import { T as zeroSpend, a as cloneSpend, c as errorMessage, d as isAbortError, f as isAsyncIterable, h as randomSuffix, i as chargedTokens, l as fnv1a32Hex, n as addSpend, p as mapWithConcurrency, u as hasCompleteCacheBreakdown, v as sleep, y as stringifySafe } from "./util-qsH5cC9S.js";
|
|
8
8
|
import { a as captureMaterializedWorkspace, b as sha256Bytes$1, m as canonicalCandidateDigest$1, v as immutableCandidateValue } from "./output-artifacts-AqkZ8lO2.js";
|
|
9
9
|
import { i as ConfigError, m as ValidationError, n as AnalystError, s as PlannerError } from "./errors-DG8yufqX.js";
|
|
10
|
-
import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession } from "./graph-
|
|
11
|
-
import { a as concreteProfileModel, c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, p as canonicalObservedModelParts, t as assertExecutableAgentProfile, y as harnessRunsAgent } from "./model-policy-
|
|
10
|
+
import { c as runIsolatedCheck, l as createIsolatedCheckCpuSession } from "./graph-CiApRth2.js";
|
|
11
|
+
import { a as concreteProfileModel, c as profileModelExecutionSettings, i as concreteModelId, l as profileProviderModel, o as enforceTokenLimits, p as canonicalObservedModelParts, t as assertExecutableAgentProfile, y as harnessRunsAgent } from "./model-policy-DTbTFyOG.js";
|
|
12
12
|
import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction-DilFZch5.js";
|
|
13
13
|
import { o as armDeadlineTimer } from "./deadline-CySmJ_0S.js";
|
|
14
|
-
import { D as runAgentic, E as refine, M as renderReport, N as profileChatClient, O as sample, j as observe, k as ObservationError, v as loadAuthoredStrategy, x as strategyAuthorContract, y as requestStrategySource } from "./structural-rollout-
|
|
15
|
-
import { _ as runAbortable, a as readCommittedJsonFile, c as withJsonlFileLock, l as appendCommittedJsonLine, o as readCommittedJsonLines, s as upsertCommittedJsonLine, t as isNoEntError } from "./jsonl-file-
|
|
14
|
+
import { D as runAgentic, E as refine, M as renderReport, N as profileChatClient, O as sample, j as observe, k as ObservationError, v as loadAuthoredStrategy, x as strategyAuthorContract, y as requestStrategySource } from "./structural-rollout-DOmjcEMD.js";
|
|
15
|
+
import { _ as runAbortable, a as readCommittedJsonFile, c as withJsonlFileLock, l as appendCommittedJsonLine, o as readCommittedJsonLines, s as upsertCommittedJsonLine, t as isNoEntError } from "./jsonl-file-vE9H9UXa.js";
|
|
16
16
|
import { n as detachedSnapshot, t as detachedFrozen } from "./snapshot-BKI_w3JD.js";
|
|
17
17
|
import { y as markPutStreamVerified } from "./workspace-streams-C7PGLAUd.js";
|
|
18
|
-
import "./provision-supervisor-
|
|
18
|
+
import "./provision-supervisor-DLOeyFHV.js";
|
|
19
19
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-CsW2pfFk.js";
|
|
20
|
-
import { a as reconcileInterruptedSearchCalls, c as searchExecutor, r as dedicatedLane, x as runtimeShipDecision } from "./search-executor-
|
|
21
|
-
import "./delegate-
|
|
22
|
-
import "./continuation-
|
|
23
|
-
import { S as graphRouteWhenSchema, _ as compileGraphParameters, a as graphRegistry, d as recordGraphRun, g as bindGraphParameters, h as assertGraphTriggerBindings, i as graphFromStored, j as assertJsonData, l as lookupGraph, m as taskShapeDigest, o as graphRunsFor, r as graphDigest, t as digestOfGraph, v as graphTriggerBindingsSchema, x as graphFileSchema, y as graphCheckNodeSchema } from "./graph-registry-
|
|
24
|
-
import { d as foldCoordinationRecords } from "./supervise-identity-
|
|
25
|
-
import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-
|
|
26
|
-
import {
|
|
27
|
-
import "./run-cancellation-
|
|
20
|
+
import { a as reconcileInterruptedSearchCalls, c as searchExecutor, r as dedicatedLane, x as runtimeShipDecision } from "./search-executor-Dn5YmHsg.js";
|
|
21
|
+
import "./delegate-BFP1uCNY.js";
|
|
22
|
+
import "./continuation-Bccak14N.js";
|
|
23
|
+
import { S as graphRouteWhenSchema, _ as compileGraphParameters, a as graphRegistry, d as recordGraphRun, g as bindGraphParameters, h as assertGraphTriggerBindings, i as graphFromStored, j as assertJsonData, l as lookupGraph, m as taskShapeDigest, o as graphRunsFor, r as graphDigest, t as digestOfGraph, v as graphTriggerBindingsSchema, x as graphFileSchema, y as graphCheckNodeSchema } from "./graph-registry-CRskE_Yp.js";
|
|
24
|
+
import { d as foldCoordinationRecords } from "./supervise-identity-QavM_M4r.js";
|
|
25
|
+
import { p as createInMemoryRunContext, s as downMessageRefusalReasons } from "./driver-control-acknowledgers-jdlf49OQ.js";
|
|
26
|
+
import { u as writeAtomicDurableFile } from "./durable-file-pao7FijS.js";
|
|
27
|
+
import "./run-cancellation-Bv7ooTJa.js";
|
|
28
28
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sameAgentRunControlRef, sha256Bytes, sha256DigestSchema, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
29
29
|
import { CODING_HARNESSES, DEFAULT_TRACE_ANALYST_KINDS, InMemoryTraceStore, OUTPUT_VALUE, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, createTraceAnalyst, expandProfileAxes, makeFinding as makeFinding$1, meanConfidenceInterval, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
30
30
|
import { createAgentRunOutcomeTracker } from "@tangle-network/sandbox/runtime";
|
|
@@ -1087,40 +1087,33 @@ function collectProviderModels(evidence, validate) {
|
|
|
1087
1087
|
continue;
|
|
1088
1088
|
}
|
|
1089
1089
|
if (attempt === null || typeof attempt !== "object" || !Array.isArray(attempt.observations) || attempt.observations.length === 0 || attempt.identityConflict === true) return { kind: "unknown" };
|
|
1090
|
-
let
|
|
1091
|
-
let attemptSnapshot;
|
|
1092
|
-
let attemptSnapshotKind;
|
|
1090
|
+
let attemptIdentity;
|
|
1093
1091
|
let representative;
|
|
1094
1092
|
for (const model of attempt.observations) {
|
|
1095
1093
|
if (typeof model !== "string" || !validate(model)) return { kind: "unknown" };
|
|
1096
1094
|
const identity = canonicalObservedModelParts(model);
|
|
1097
1095
|
if (identity === void 0) return { kind: "unknown" };
|
|
1098
|
-
|
|
1099
|
-
const snapshot = identity.snapshot;
|
|
1100
|
-
if (attemptBase !== void 0 && attemptBase !== base) return {
|
|
1096
|
+
if (attemptIdentity !== void 0 && attemptIdentity.base !== identity.base) return {
|
|
1101
1097
|
kind: "mixed",
|
|
1102
|
-
models: [
|
|
1098
|
+
models: [attemptIdentity.canonical, identity.canonical]
|
|
1103
1099
|
};
|
|
1104
|
-
if (
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1100
|
+
if (attemptIdentity?.snapshot !== void 0 && identity.snapshot !== void 0 && (attemptIdentity.snapshot !== identity.snapshot || attemptIdentity.snapshotKind !== identity.snapshotKind)) return {
|
|
1101
|
+
kind: "mixed",
|
|
1102
|
+
models: [attemptIdentity.canonical, identity.canonical]
|
|
1103
|
+
};
|
|
1104
|
+
attemptIdentity ??= identity;
|
|
1105
|
+
if (identity.snapshot !== void 0) {
|
|
1106
|
+
attemptIdentity = identity;
|
|
1107
|
+
representative = model;
|
|
1110
1108
|
}
|
|
1111
|
-
attemptBase = base;
|
|
1112
|
-
attemptSnapshot ??= snapshot;
|
|
1113
|
-
attemptSnapshotKind ??= identity.snapshotKind;
|
|
1114
|
-
if (snapshot !== void 0) representative = model;
|
|
1115
1109
|
observedRaw.add(model);
|
|
1116
1110
|
}
|
|
1117
|
-
if (
|
|
1118
|
-
const attemptIdentity = attemptIdentityText(attemptBase, attemptSnapshot, attemptSnapshotKind);
|
|
1111
|
+
if (attemptIdentity?.snapshot === void 0 || representative === void 0) return { kind: "unknown" };
|
|
1119
1112
|
observed.push({
|
|
1120
1113
|
raw: representative,
|
|
1121
|
-
canonical: attemptIdentity
|
|
1114
|
+
canonical: attemptIdentity.canonical
|
|
1122
1115
|
});
|
|
1123
|
-
canonical.add(attemptIdentity);
|
|
1116
|
+
canonical.add(attemptIdentity.canonical);
|
|
1124
1117
|
}
|
|
1125
1118
|
if (observed.length === 0) return { kind: "unknown" };
|
|
1126
1119
|
const declaredRaw = /* @__PURE__ */ new Set();
|
|
@@ -1137,9 +1130,6 @@ function collectProviderModels(evidence, validate) {
|
|
|
1137
1130
|
observed
|
|
1138
1131
|
};
|
|
1139
1132
|
}
|
|
1140
|
-
function attemptIdentityText(base, snapshot, kind) {
|
|
1141
|
-
return kind === "date" ? `${base}-${snapshot}` : `${base}@${snapshot}`;
|
|
1142
|
-
}
|
|
1143
1133
|
/** The Eval receipt surface has no pre-admitted per-model recursive-tree receipt bundle yet. */
|
|
1144
1134
|
var SupervisedTreeModelIdentityError = class extends Error {
|
|
1145
1135
|
constructor(identity) {
|
|
@@ -6997,7 +6987,13 @@ function graphDesignerExtraTools(env) {
|
|
|
6997
6987
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
6998
6988
|
const result = await env.runGraph(graph);
|
|
6999
6989
|
const winner = result.result.kind === "winner";
|
|
7000
|
-
const spent =
|
|
6990
|
+
const spent = result.result.spentTotal;
|
|
6991
|
+
const cost = {
|
|
6992
|
+
...spent.iterationsKnown === false ? {} : { iterations: spent.iterations },
|
|
6993
|
+
...spent.tokensKnown === false || spent.tokens.tokensKnown === false ? {} : { tokens: spent.tokens.input + spent.tokens.output },
|
|
6994
|
+
...spent.usdKnown === false ? {} : { usd: spent.usd },
|
|
6995
|
+
ms: spent.ms
|
|
6996
|
+
};
|
|
7001
6997
|
await recordGraphRun(registry, graph, {
|
|
7002
6998
|
graphDigest: digest,
|
|
7003
6999
|
taskDigest: taskShapeDigest(taskShape),
|
|
@@ -7007,11 +7003,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7007
7003
|
kind: "no-winner",
|
|
7008
7004
|
reason: `mode=${mode} result=${result.result.kind}`
|
|
7009
7005
|
},
|
|
7010
|
-
cost
|
|
7011
|
-
...spent?.iterations !== void 0 ? { iterations: spent.iterations } : {},
|
|
7012
|
-
...spent?.tokens && typeof spent.tokens === "object" && "input" in spent.tokens ? { tokens: (spent.tokens.input ?? 0) + (spent.tokens.output ?? 0) } : {},
|
|
7013
|
-
...spent?.usd !== void 0 ? { usd: spent.usd } : {}
|
|
7014
|
-
},
|
|
7006
|
+
cost,
|
|
7015
7007
|
traversals: result.ledger.length,
|
|
7016
7008
|
...result.exhaustedEdges.length > 0 ? { exhaustedEdges: result.exhaustedEdges } : {}
|
|
7017
7009
|
});
|
|
@@ -7020,8 +7012,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7020
7012
|
outcome: winner ? "delivered" : `no-winner (${result.result.kind})`,
|
|
7021
7013
|
graphDigest: digest,
|
|
7022
7014
|
traversals: result.ledger.length,
|
|
7023
|
-
...
|
|
7024
|
-
...spent?.tokens && typeof spent.tokens === "object" && "input" in spent.tokens ? { tokens: (spent.tokens.input ?? 0) + (spent.tokens.output ?? 0) } : {}
|
|
7015
|
+
...cost
|
|
7025
7016
|
};
|
|
7026
7017
|
};
|
|
7027
7018
|
const summarize = (row) => ({
|
|
@@ -7083,7 +7074,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7083
7074
|
})();
|
|
7084
7075
|
if (name === "designer_history") return (async () => {
|
|
7085
7076
|
const args = asRecord(raw ?? {}, "designer_history");
|
|
7086
|
-
const { listGraphRuns } = await import("./graph-registry-
|
|
7077
|
+
const { listGraphRuns } = await import("./graph-registry-CGKyYabE.js");
|
|
7087
7078
|
const all = await listGraphRuns(registry);
|
|
7088
7079
|
return { runs: (args.taskShape === void 0 ? all : all.filter((row) => row.taskDigest === taskShapeDigest(asRecord(args.taskShape, "designer_history.taskShape")))).map(summarize) };
|
|
7089
7080
|
})();
|
|
@@ -7094,7 +7085,7 @@ function graphDesignerExtraTools(env) {
|
|
|
7094
7085
|
if (mode === "replay") {
|
|
7095
7086
|
const digest = args.graphDigest;
|
|
7096
7087
|
if (typeof digest !== "string" || digest.length === 0) throw new ValidationError("designer_run_graph: replay mode requires graphDigest from lookup");
|
|
7097
|
-
const { loadGraph } = await import("./graph-registry-
|
|
7088
|
+
const { loadGraph } = await import("./graph-registry-CGKyYabE.js");
|
|
7098
7089
|
const stored = await loadGraph(registry, digest);
|
|
7099
7090
|
if (!stored) throw new ValidationError(`designer_run_graph: no stored graph ${digest.slice(0, 12)} — re-lookup`);
|
|
7100
7091
|
const graph = env.bindCheck(graphFromStored(stored, () => {
|
|
@@ -7396,7 +7387,7 @@ async function expandProfile(node, options) {
|
|
|
7396
7387
|
...selected.reasoningEffort === void 0 ? {} : { reasoningEffort: selected.reasoningEffort }
|
|
7397
7388
|
};
|
|
7398
7389
|
}
|
|
7399
|
-
if (node.needs) {
|
|
7390
|
+
if (node.needs && (connections.length > 0 || node.profile?.connections !== void 0)) {
|
|
7400
7391
|
const seen = /* @__PURE__ */ new Set();
|
|
7401
7392
|
profile.connections = [...node.profile?.connections ?? [], ...connections].filter((connection) => {
|
|
7402
7393
|
let key;
|
|
@@ -9984,4 +9975,4 @@ function tail(s) {
|
|
|
9984
9975
|
}
|
|
9985
9976
|
export { strategyTournament as $, completionAuthorizes as $t, searchPresets as A, readHarnessTranscriptSessions as At, graphFromSessionFacts as B, resolveMcpServerLaunch as Bt, withUntrackedArtifacts as C, createScopeAnalyst as Ct, SEARCH_SPEC_CORRELATION_KEY as D, inProcessSandboxClient as Dt, createFencedSqlRunContext as E, observationFromRegistry as Et, loadProfile as F, materializeLocalMcp as Ft, readGraphStrings as G, loopDispatch as Gt, graphWorkspace as H, secretEnvOfMcpServer as Ht, pickBestProfile as I, createMcpEnvironment as It, graphDesignerExtraTools as J, checkProgramDigest as Jt, setGraphProfile as K, superviseDispatch as Kt, profileRegistry as L, sanitizeMcpToolSchema as Lt, connectRemoteSupervisor as M, resolveSandboxClient as Mt, connectRemoteSupervisorControl as N, McpSpawnFault as Nt, assertSearchSpec as O, HarvestError as Ot, bestProfileFor as P, connectStdioMcp as Pt, runStrategyEvolution as Q, readDeclaredCheck as Qt, profileRunsForName as R, envKeyProvider as Rt, copyUntrackedIntoClone as S, buildSteerContext as St, validateStoredGraph as T, measurePairedCommands as Tt, loadGraphFile as U, inlineSandboxClient as Ut, GraphFileResolutionError as V, resolveSecretEnv as Vt, readGraphProfile as W, loopCampaignDispatch as Wt, chatWorkerSeam as X, declaredCheckDigest as Xt, chatTransportExecutor as Y, declaredCheckDeliverable as Yt, createChatSessionStore as Z, declaredCheckJudge as Zt, NOTE_MAX_CHARS as _, pipeline as _t, localShell as a, renderLeaderboardHtml as an, createPrivateCasArtifactPort as at, composeWorkerEvidence as b, widen as bt, createVerifierEnvironment as c, renderPairwiseMarkdown as cn, definePersona as ct, harvestSurfaceDiffs as d, InMemoryCorpus as dt, deterministicCompletion as en, SandboxRunAbortError as et, analystsFromRegistry as f, renderCorpusToInstructions as ft, EVIDENCE_MAX_CHARS as g, panel as gt, runCoderChecks as h, loopUntil as ht, jjWorkspace as i, pairwiseSignificance as in, runBenchmark as it, searchSpecDigest as j, defineLeaderboard as jt, compileSearchSpec as k, harvestCorpus as kt, boxSurfaceReader as l, SqlRunOwnershipError as ln, runPersonified as lt, worktreeFanout as m, flatWidenGate as mt, makeFinding$1 as n, stopSentinel as nn, createS3PrivateCasStore as nt, runInWorkspace as o, renderLeaderboardMarkdown as on, equalKOnCost as ot, failuresAnalyst as p, fanout as pt, setGraphStrings as q, assertDeclaredCheck as qt, gitWorkspace as r, leaderboard as rn, printBenchmarkReport as rt, createWaterfallCollector as s, renderLeaderboardSvg as sn, trajectoryReport as st, computeFindingId$1 as t, sentinelCompletion as tn, openSandboxRun as tt, fsSurfaceReader as u, openSqlRunStore as un, FileCorpus as ut, VERIFY_TAIL_CHARS as v, selectValidWinner as vt, analyzeTrace as w, registryScopeAnalyst as wt, settledWorkerOut as x, assertTraceDerivedFindings as xt, closingWorkerNote as y, verify as yt, recordProfileRun as z, mcpSecretEnvMetadataKey as zt };
|
|
9986
9977
|
|
|
9987
|
-
//# sourceMappingURL=runtime-
|
|
9978
|
+
//# sourceMappingURL=runtime-DCo0OP4n.js.map
|