@tangle-network/agent-eval 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-CcOq7bOO.d.ts → agent-profile-CRdalpZv.d.ts} +4 -4
- package/dist/{agent-profile-CcOq7bOO.d.ts.map → agent-profile-CRdalpZv.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +11 -12
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +13 -9
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-Ke0WbAf6.d.ts → analyze-runs-xjKBBqIB.d.ts} +2 -2
- package/dist/{analyze-runs-Ke0WbAf6.d.ts.map → analyze-runs-xjKBBqIB.d.ts.map} +1 -1
- package/dist/app-grade/index.d.ts +3 -3
- package/dist/{benchmark-command-MfXRocwZ.js → benchmark-command-DkBMUDwy.js} +10 -6
- package/dist/benchmark-command-DkBMUDwy.js.map +1 -0
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/campaign/index.d.ts +6 -6
- package/dist/{campaign-evidence-BmMs8YJt.d.ts → campaign-evidence-BojANgU7.d.ts} +3 -3
- package/dist/{campaign-evidence-BmMs8YJt.d.ts.map → campaign-evidence-BojANgU7.d.ts.map} +1 -1
- package/dist/cli.js +3 -3
- package/dist/contract/index.d.ts +10 -10
- package/dist/contract/index.js +1 -1
- package/dist/{default-registry-IkE3byrA.js → default-registry-BWFPtmuI.js} +26 -14
- package/dist/default-registry-BWFPtmuI.js.map +1 -0
- package/dist/{default-registry-CUuorCWZ.d.ts → default-registry-xoX0PMCb.d.ts} +6 -7
- package/dist/default-registry-xoX0PMCb.d.ts.map +1 -0
- package/dist/{define-agent-eval-D17XsdAt.d.ts → define-agent-eval-Cjc0wWnO.d.ts} +7 -7
- package/dist/{define-agent-eval-D17XsdAt.d.ts.map → define-agent-eval-Cjc0wWnO.d.ts.map} +1 -1
- package/dist/diagnosis/index.d.ts +3 -3
- package/dist/{dspy-rlm-engine-DE11iBcC.js → dspy-rlm-engine-r7YpKLhS.js} +7 -3
- package/dist/{dspy-rlm-engine-DE11iBcC.js.map → dspy-rlm-engine-r7YpKLhS.js.map} +1 -1
- package/dist/{evaluation-DfyLPVL1.d.ts → evaluation-X5E22NQK.d.ts} +4 -4
- package/dist/{evaluation-DfyLPVL1.d.ts.map → evaluation-X5E22NQK.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-CiCXYhNK.d.ts → exact-types-DjuabhUV.d.ts} +2 -2
- package/dist/{exact-types-CiCXYhNK.d.ts.map → exact-types-DjuabhUV.d.ts.map} +1 -1
- package/dist/{execution-insight-wUNXxo5Y.d.ts → execution-insight-CE20Bxq0.d.ts} +2 -2
- package/dist/{execution-insight-wUNXxo5Y.d.ts.map → execution-insight-CE20Bxq0.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/{feedback-trajectory-HJticMDz.d.ts → feedback-trajectory-BMkJezPc.d.ts} +3 -3
- package/dist/{feedback-trajectory-HJticMDz.d.ts.map → feedback-trajectory-BMkJezPc.d.ts.map} +1 -1
- package/dist/{findings-store-BxpV-hfH.js → findings-store-DV8WA5nD.js} +26 -19
- package/dist/findings-store-DV8WA5nD.js.map +1 -0
- package/dist/{harness-session-lines-CSxKR6no.js → harness-session-lines-CTh1-uOb.js} +21 -19
- package/dist/harness-session-lines-CTh1-uOb.js.map +1 -0
- package/dist/{index-oX0TuJFv.d.ts → index-BqAPIToS.d.ts} +3 -3
- package/dist/{index-oX0TuJFv.d.ts.map → index-BqAPIToS.d.ts.map} +1 -1
- package/dist/{index-CR-guIiZ.d.ts → index-DAFZRMlF.d.ts} +8 -8
- package/dist/{index-CR-guIiZ.d.ts.map → index-DAFZRMlF.d.ts.map} +1 -1
- package/dist/{index-Ucp54Pcl.d.ts → index-DKpMyD_Z.d.ts} +5 -6
- package/dist/index-DKpMyD_Z.d.ts.map +1 -0
- package/dist/{index-B_k8aY9k.d.ts → index-xEM_SoCl.d.ts} +17 -18
- package/dist/index-xEM_SoCl.d.ts.map +1 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +7 -7
- package/dist/{kind-factory-BDd4rhML.js → kind-factory-B-xCxG7p.js} +33 -5
- package/dist/kind-factory-B-xCxG7p.js.map +1 -0
- package/dist/{matrix-DlSrRl_v.d.ts → matrix-CqZSpwgN.d.ts} +2 -2
- package/dist/{matrix-DlSrRl_v.d.ts.map → matrix-CqZSpwgN.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{prime-protocol-iEaSEGZB.d.ts → prime-protocol-Cv6_47rh.d.ts} +2 -2
- package/dist/{prime-protocol-iEaSEGZB.d.ts.map → prime-protocol-Cv6_47rh.d.ts.map} +1 -1
- package/dist/{registry-V8o2kZtn.d.ts → registry-CIjC6SdV.d.ts} +3 -3
- package/dist/{registry-V8o2kZtn.d.ts.map → registry-CIjC6SdV.d.ts.map} +1 -1
- package/dist/rl.d.ts +3 -3
- package/dist/rollout/index.d.ts +2 -2
- package/dist/rollout/index.js +2 -2
- package/dist/{rollout-DVwpCHBC.js → rollout-B_lrpd9a.js} +2 -2
- package/dist/{rollout-DVwpCHBC.js.map → rollout-B_lrpd9a.js.map} +1 -1
- package/dist/{run-improvement-loop-CtLyPb5-.d.ts → run-improvement-loop-BfwOUudy.d.ts} +6 -6
- package/dist/{run-improvement-loop-CtLyPb5-.d.ts.map → run-improvement-loop-BfwOUudy.d.ts.map} +1 -1
- package/dist/{runtime-rollouts-DdUijr_t.js → runtime-rollouts-drQynu3t.js} +2 -2
- package/dist/{runtime-rollouts-DdUijr_t.js.map → runtime-rollouts-drQynu3t.js.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/{search-kernel-DXA1EhnN.d.ts → search-kernel-DJq9bUDU.d.ts} +2 -2
- package/dist/{search-kernel-DXA1EhnN.d.ts.map → search-kernel-DJq9bUDU.d.ts.map} +1 -1
- package/dist/{store-otlp-CR9fWum6.js → store-otlp-CdeW7NWq.js} +2 -2
- package/dist/{store-otlp-CR9fWum6.js.map → store-otlp-CdeW7NWq.js.map} +1 -1
- package/dist/{store-tool-spans-tkdUJWup.js → store-tool-spans-CVX-jfkk.js} +3 -3
- package/dist/{store-tool-spans-tkdUJWup.js.map → store-tool-spans-CVX-jfkk.js.map} +1 -1
- package/dist/{store-tool-spans-C47hUUVM.d.ts → store-tool-spans-DniaFwjM.d.ts} +3 -4
- package/dist/store-tool-spans-DniaFwjM.d.ts.map +1 -0
- package/dist/supervisor-run/index.js +1 -1
- package/dist/{systemone-MXhFSYdy.d.ts → systemone-DzY-2Zri.d.ts} +6 -6
- package/dist/{systemone-MXhFSYdy.d.ts.map → systemone-DzY-2Zri.d.ts.map} +1 -1
- package/dist/{systemone-review-C9kbs3zD.d.ts → systemone-review-CXecR_m-.d.ts} +2 -2
- package/dist/{systemone-review-C9kbs3zD.d.ts.map → systemone-review-CXecR_m-.d.ts.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/{tool-groups-BSd08M7B.d.ts → tool-groups-DF6OqhoG.d.ts} +2 -3
- package/dist/tool-groups-DF6OqhoG.d.ts.map +1 -0
- package/dist/{trace-questions-CJANeK9P.d.ts → trace-questions-DO8y3J-E.d.ts} +2 -3
- package/dist/trace-questions-DO8y3J-E.d.ts.map +1 -0
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +2 -3
- package/dist/traces.d.ts.map +1 -1
- package/dist/traces.js +3 -3
- package/dist/{types-DD1eUTLn.d.ts → types-BMSDkS8l.d.ts} +2 -2
- package/dist/{types-DD1eUTLn.d.ts.map → types-BMSDkS8l.d.ts.map} +1 -1
- package/dist/{types-CE9JMZhk.d.ts → types-D_PfKC59.d.ts} +2 -2
- package/dist/{types-CE9JMZhk.d.ts.map → types-D_PfKC59.d.ts.map} +1 -1
- package/dist/types-_tlhWGUq.js.map +1 -1
- package/dist/{types-AGUuvnae.d.ts → types-fuOwNq1C.d.ts} +156 -2
- package/dist/types-fuOwNq1C.d.ts.map +1 -0
- package/dist/wire/index.d.ts +1 -1
- package/docs/trace-analysis.md +1 -0
- package/package.json +2 -2
- package/dist/benchmark-command-MfXRocwZ.js.map +0 -1
- package/dist/default-registry-CUuorCWZ.d.ts.map +0 -1
- package/dist/default-registry-IkE3byrA.js.map +0 -1
- package/dist/engine-BZVXOc6n.d.ts +0 -152
- package/dist/engine-BZVXOc6n.d.ts.map +0 -1
- package/dist/findings-store-BxpV-hfH.js.map +0 -1
- package/dist/harness-session-lines-CSxKR6no.js.map +0 -1
- package/dist/index-B_k8aY9k.d.ts.map +0 -1
- package/dist/index-Ucp54Pcl.d.ts.map +0 -1
- package/dist/kind-factory-BDd4rhML.js.map +0 -1
- package/dist/store-tool-spans-C47hUUVM.d.ts.map +0 -1
- package/dist/tool-groups-BSd08M7B.d.ts.map +0 -1
- package/dist/trace-questions-CJANeK9P.d.ts.map +0 -1
- package/dist/types-AGUuvnae.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findings-store-DV8WA5nD.js","names":["messageOf"],"sources":["../src/analyst/chat-trace-engine.ts","../src/locked-jsonl-appender.ts","../src/analyst/findings-store.ts"],"sourcesContent":["/**\n * A `TraceAnalysisEngine` that runs entirely inside Node against a\n * caller-owned `ChatClient`.\n *\n * The other engine in this package, `createDspyRlmTraceEngine`, reaches the\n * DSPy RLM through a Python subprocess. That made every model-backed analyst\n * unreachable for a consumer that already owns a model seam and no Python:\n * `createTraceAnalyst` requires an engine, the only exported constructor\n * required a Python runner, so `buildDefaultAnalystRegistry()` registered the\n * deterministic analyst alone and `analystsFromRegistry` refused the result.\n *\n * This engine closes that path. It drives the same investigation contract —\n * bounded trace tools, a prose answer, a strict findings array — with native\n * function calls over the transport the caller already bound with\n * `createChatClient`. A caller holding a bare\n * `(request: LlmCallRequest) => Promise<LlmCallResult>` adapts it in one line:\n *\n * createChatClient({ transport: 'custom', chat: call, defaultModel, maximumAttempts })\n *\n * agent-eval still executes no paid model and holds no provider credential.\n * Every call goes through `paidChat`, so the shared cost ledger reserves the\n * priced maximum before the call and settles the receipt after it.\n *\n * Shape of one investigation:\n * 1. Investigation turns. The model reads the trace store through the tools\n * its analyst kind was given. A turn that requests no tool ends the\n * phase; an exhausted iteration or tool budget also ends it.\n * 2. One report turn. The model returns `{ answer, findings }` as JSON,\n * decoded by the same `decodeRawFindingArray` the Python bridge uses, so\n * a row this engine accepts is a row that engine could report.\n */\n\nimport { z } from 'zod'\nimport { paidChat } from '../chat-json-call'\nimport type { CustomTokenPricing } from '../cost-ledger'\nimport { errorMessage as messageOf } from '../errors'\nimport {\n extractJsonPayload,\n type LlmCallRequest,\n type LlmMessage,\n type LlmThinkingMode,\n type LlmToolCall,\n type LlmToolDefinition,\n} from '../llm-client'\nimport type { TraceAnalysisToolDescriptor } from '../trace-analyst/tools'\nimport type { ChatClient } from './chat-client'\nimport {\n DEFAULT_TRACE_ANALYST_OUTPUT_TOKENS,\n type TraceAnalysisActivity,\n type TraceAnalysisEngine,\n type TraceAnalysisEngineRequest,\n type TraceAnalysisEngineResult,\n} from './engine'\nimport { decodeRawFindingArray } from './finding-codec'\nimport { RawAnalystFindingSchema } from './finding-signature'\n\n/** Bumped whenever this engine's execution behavior changes. */\nconst CHAT_TRACE_ENGINE_VERSION = '1.0.1'\nconst ENGINE_ID = 'chat-trace'\n\n/** Marker appended to a tool result cut down to the retained-output budget. */\nconst TRUNCATION_MARKER = '\\n…[truncated to the analyst maxOutputChars budget]'\n\nexport interface ChatTraceEngineOptions {\n /**\n * Caller-owned transport. Build it with `createChatClient`; agent-eval never\n * receives the provider credential.\n */\n chat: ChatClient\n /** Model for every call. Defaults to the client's `defaultModel`. */\n model?: string\n /** Endpoint rates used when the transport reports no billed amount. */\n pricing?: CustomTokenPricing\n /** Completion cap per turn. Default: {@link DEFAULT_TRACE_ANALYST_OUTPUT_TOKENS}. */\n maxOutputTokens?: number\n /** Sampling temperature. Omitted from the request when absent. */\n temperature?: number\n /** Provider reasoning mode. Omitted when the provider default should apply. */\n thinking?: LlmThinkingMode\n /** Per-call deadline handed to the transport. */\n requestTimeoutMs?: number\n /**\n * How the report turn asks for structured output.\n *\n * `json-object` sends JSON mode, which every OpenAI-compatible endpoint\n * accepts, and relies on the finding grammar the analyst kind already puts\n * in its instructions. `json-schema` sends the generated response schema as\n * well, which stricter endpoints honour and older ones reject. Default:\n * `json-object`.\n */\n reportFormat?: 'json-object' | 'json-schema'\n}\n\n/**\n * The report envelope. Its `findings` rows are generated from\n * `RawAnalystFindingSchema`, so the schema offered to a provider and the\n * decoder that accepts the answer cannot drift apart.\n */\nfunction buildReportJsonSchema(): { name: string; schema: Record<string, unknown> } {\n const row = z.toJSONSchema(RawAnalystFindingSchema, { target: 'draft-7' }) as Record<\n string,\n unknown\n >\n delete row.$schema\n return {\n name: 'trace_analysis_report',\n schema: {\n type: 'object',\n additionalProperties: false,\n required: ['answer', 'findings'],\n properties: {\n answer: { type: 'string', description: 'Direct prose answer to the question.' },\n findings: { type: 'array', items: row },\n },\n },\n }\n}\n\nconst REPORT_JSON_SCHEMA = buildReportJsonSchema()\n\n/**\n * Run bounded recursive trace analysis in-process over a caller-owned chat\n * transport. No Python, no subprocess, no loopback proxy.\n */\nexport function createChatTraceEngine(options: ChatTraceEngineOptions): TraceAnalysisEngine {\n const model = resolveModel(options)\n const maxOutputTokens = options.maxOutputTokens ?? DEFAULT_TRACE_ANALYST_OUTPUT_TOKENS\n if (!Number.isSafeInteger(maxOutputTokens) || maxOutputTokens <= 0) {\n throw new TypeError('chat trace engine maxOutputTokens must be a positive safe integer')\n }\n if (\n options.temperature !== undefined &&\n (!Number.isFinite(options.temperature) || options.temperature < 0)\n ) {\n throw new TypeError('chat trace engine temperature must be a non-negative finite number')\n }\n if (\n options.requestTimeoutMs !== undefined &&\n (!Number.isSafeInteger(options.requestTimeoutMs) || options.requestTimeoutMs <= 0)\n ) {\n throw new TypeError('chat trace engine requestTimeoutMs must be a positive safe integer')\n }\n const reportFormat = options.reportFormat ?? 'json-object'\n if (reportFormat !== 'json-object' && reportFormat !== 'json-schema') {\n throw new TypeError(`chat trace engine reportFormat must be json-object or json-schema`)\n }\n\n return {\n id: ENGINE_ID,\n description:\n 'In-process recursive trace analysis over a caller-owned ChatClient with native tool calls.',\n model,\n version: CHAT_TRACE_ENGINE_VERSION,\n executionConfig: {\n kind: ENGINE_ID,\n model,\n transport: options.chat.transport,\n maximum_attempts: options.chat.maximumAttempts ?? null,\n pricing: options.pricing ? { ...options.pricing } : null,\n max_output_tokens: maxOutputTokens,\n temperature: options.temperature ?? null,\n thinking: options.thinking ?? null,\n request_timeout_ms: options.requestTimeoutMs ?? null,\n report_format: reportFormat,\n report_schema_name: REPORT_JSON_SCHEMA.name,\n },\n async analyze(request) {\n const activity = { modelCalls: 0, toolCalls: 0 }\n try {\n return await analyze(\n request,\n { ...options, model, maxOutputTokens, reportFormat },\n activity,\n )\n } finally {\n request.recordActivity?.(activity)\n }\n },\n }\n}\n\ninterface ResolvedOptions extends ChatTraceEngineOptions {\n model: string\n maxOutputTokens: number\n reportFormat: 'json-object' | 'json-schema'\n}\n\nasync function analyze(\n request: TraceAnalysisEngineRequest,\n options: ResolvedOptions,\n activity: TraceAnalysisActivity,\n): Promise<TraceAnalysisEngineResult> {\n // One model call is spent on the report, so a budget of one call would buy\n // an answer with no investigation behind it. Refuse instead of pretending.\n if (request.limits.maxLlmCalls < 2) {\n throw new Error(\n `chat trace engine reserves one model call for the report, so maxLlmCalls must be at least 2 (analyst '${request.analystId}' declared ${request.limits.maxLlmCalls})`,\n )\n }\n const toolsByName = new Map(request.tools.map((tool) => [tool.name, tool]))\n if (toolsByName.size !== request.tools.length) {\n throw new Error(`chat trace engine received duplicate tool names for '${request.analystId}'`)\n }\n const toolDefinitions: LlmToolDefinition[] = request.tools.map((tool) => ({\n type: 'function',\n function: { name: tool.name, description: tool.description, parameters: tool.parameters },\n }))\n const investigationTurns = Math.max(\n 1,\n Math.min(request.limits.maxIterations, request.limits.maxLlmCalls - 1),\n )\n\n const messages: LlmMessage[] = [\n { role: 'system', content: systemPrompt(request, investigationTurns) },\n ]\n if (request.taskInputs) {\n messages.push({ role: 'user', content: renderTaskInputs(request.taskInputs) })\n }\n messages.push({ role: 'user', content: request.question })\n\n request.log?.('trace analyst engine started', {\n engine: ENGINE_ID,\n model: options.model,\n transport: options.chat.transport,\n tools: request.tools.map((tool) => tool.name),\n limits: request.limits,\n })\n\n const trajectory: unknown[] = []\n const servedModels = new Set<string>()\n let truncatedToolResults = 0\n let toolBudgetExhausted = false\n let turnsUsed = 0\n let stoppedOnAnswer = false\n\n for (let turn = 0; turn < investigationTurns; turn++) {\n turnsUsed = turn + 1\n const response = await callModel(request, options, {\n messages,\n tools: toolDefinitions,\n toolChoice: 'auto',\n purpose: 'investigation',\n })\n activity.modelCalls += 1\n servedModels.add(response.servedModel ?? 'unreported')\n const requested = response.toolCalls ?? []\n messages.push({\n role: 'assistant',\n content: response.content,\n ...(requested.length > 0 ? { toolCalls: requested } : {}),\n })\n trajectory.push({\n turn: turnsUsed,\n phase: 'investigation',\n content: response.content,\n tool_calls: requested.map((call) => ({ id: call.id, name: call.name })),\n finish_reason: response.finishReason ?? null,\n })\n if (requested.length === 0) {\n stoppedOnAnswer = true\n break\n }\n for (const call of requested) {\n if (activity.toolCalls >= request.limits.maxToolCalls) {\n toolBudgetExhausted = true\n // Every requested id still needs an answer: a provider rejects the\n // next turn when one tool call is left unanswered.\n messages.push(toolMessage(call, exhaustedToolBudget(request.limits.maxToolCalls)))\n continue\n }\n activity.toolCalls += 1\n const executed = await executeTool(call, toolsByName, request)\n if (executed.truncated) truncatedToolResults += 1\n messages.push(toolMessage(call, executed.payload))\n trajectory.push({\n turn: turnsUsed,\n phase: 'tool',\n name: call.name,\n ok: executed.ok,\n truncated: executed.truncated,\n result_chars: executed.payload.length,\n })\n }\n if (toolBudgetExhausted) break\n }\n\n messages.push({ role: 'user', content: reportPrompt(options.reportFormat) })\n const report = await callModel(request, options, {\n messages,\n purpose: 'report',\n json: options.reportFormat,\n })\n activity.modelCalls += 1\n servedModels.add(report.servedModel ?? 'unreported')\n trajectory.push({\n turn: turnsUsed + 1,\n phase: 'report',\n content: report.content,\n finish_reason: report.finishReason ?? null,\n })\n\n const parsed = parseReport(report.content, request.analystId, (index, reason) => {\n request.log?.('finding rejected: report row failed schema validation', {\n engine: ENGINE_ID,\n index,\n reason,\n })\n })\n\n const result: TraceAnalysisEngineResult = {\n answer: parsed.answer,\n findings: parsed.findings,\n trajectory,\n ...activity,\n runtime: {\n engine: ENGINE_ID,\n model: options.model,\n transport: options.chat.transport,\n report_format: options.reportFormat,\n investigation_turns: turnsUsed,\n investigation_stopped_on_answer: stoppedOnAnswer,\n tool_budget_exhausted: toolBudgetExhausted,\n truncated_tool_results: truncatedToolResults,\n rejected_findings: parsed.rejectedFindings,\n // A gateway can answer `model: X` from another model on HTTP 200, so the\n // ids the provider echoed travel with the result as evidence.\n served_models: [...servedModels].sort(),\n task_inputs: request.taskInputs ? 'prompt-delivered' : 'none',\n },\n }\n request.log?.('trace analyst engine completed', {\n engine: ENGINE_ID,\n model_calls: result.modelCalls,\n tool_calls: result.toolCalls,\n findings: result.findings.length,\n })\n return result\n}\n\ninterface ModelTurn {\n content: string\n toolCalls?: LlmToolCall[]\n servedModel?: string | null\n finishReason?: string | null\n}\n\nasync function callModel(\n request: TraceAnalysisEngineRequest,\n options: ResolvedOptions,\n turn: {\n messages: LlmMessage[]\n tools?: LlmToolDefinition[]\n toolChoice?: LlmCallRequest['toolChoice']\n purpose: 'investigation' | 'report'\n json?: 'json-object' | 'json-schema'\n },\n): Promise<ModelTurn> {\n const chatRequest: LlmCallRequest = {\n model: options.model,\n // The transport may mutate what it is handed; the conversation is ours.\n messages: turn.messages.map((message) => ({ ...message })),\n maxTokens: options.maxOutputTokens,\n ...(turn.tools && turn.tools.length > 0\n ? { tools: turn.tools, ...(turn.toolChoice ? { toolChoice: turn.toolChoice } : {}) }\n : {}),\n ...(turn.json ? { jsonMode: true } : {}),\n ...(turn.json === 'json-schema' ? { jsonSchema: REPORT_JSON_SCHEMA } : {}),\n ...(options.temperature === undefined ? {} : { temperature: options.temperature }),\n ...(options.thinking === undefined ? {} : { thinking: options.thinking }),\n ...(options.requestTimeoutMs === undefined ? {} : { timeoutMs: options.requestTimeoutMs }),\n }\n const paid = await paidChat({\n chat: options.chat,\n request: chatRequest,\n ledger: request.costLedger,\n channel: 'analyst',\n phase: request.costPhase,\n actor: request.analystId,\n ...(request.costTags ? { tags: request.costTags } : {}),\n ...(options.pricing ? { pricing: options.pricing } : {}),\n ...(request.signal ? { signal: request.signal } : {}),\n })\n if (!paid.succeeded) {\n // The transport already spent its own attempts. A failure here ends the\n // investigation: continuing would report an answer the model never gave.\n throw new Error(\n `chat trace engine ${turn.purpose} call failed for '${request.analystId}': ${paid.error.message}`,\n { cause: paid.error },\n )\n }\n return {\n content: paid.response.content,\n ...(paid.response.toolCalls ? { toolCalls: paid.response.toolCalls } : {}),\n ...(paid.response.servedModel === undefined ? {} : { servedModel: paid.response.servedModel }),\n ...(paid.response.finishReason === undefined\n ? {}\n : { finishReason: paid.response.finishReason }),\n }\n}\n\ninterface ExecutedTool {\n ok: boolean\n truncated: boolean\n payload: string\n}\n\nasync function executeTool(\n call: LlmToolCall,\n toolsByName: ReadonlyMap<string, TraceAnalysisToolDescriptor>,\n request: TraceAnalysisEngineRequest,\n): Promise<ExecutedTool> {\n const descriptor = toolsByName.get(call.name)\n if (!descriptor) {\n return {\n ok: false,\n truncated: false,\n payload: toolError(\n `unknown tool '${call.name}'; available tools are ${[...toolsByName.keys()].sort().join(', ')}`,\n ),\n }\n }\n let args: unknown\n try {\n args = call.argumentsJson.trim() === '' ? {} : JSON.parse(call.argumentsJson)\n } catch (error) {\n return {\n ok: false,\n truncated: false,\n payload: toolError(\n `arguments for '${call.name}' were not JSON: ${messageOf(error)}. Send valid JSON arguments.`,\n ),\n }\n }\n try {\n const value = await descriptor.handler(\n args,\n request.signal ? { signal: request.signal } : undefined,\n )\n return truncateToolPayload(JSON.stringify(value ?? null), request.limits.maxOutputChars)\n } catch (error) {\n // A bounded store refuses an oversized or malformed read by design. That\n // refusal is the model's next instruction, not the run's failure.\n if (request.signal?.aborted) throw error\n request.log?.('trace tool failed', {\n engine: ENGINE_ID,\n analyst_id: request.analystId,\n tool: call.name,\n reason: messageOf(error),\n })\n return { ok: false, truncated: false, payload: toolError(messageOf(error)) }\n }\n}\n\nfunction truncateToolPayload(payload: string, maxOutputChars: number): ExecutedTool {\n if (payload.length <= maxOutputChars) return { ok: true, truncated: false, payload }\n const keep = Math.max(0, maxOutputChars - TRUNCATION_MARKER.length)\n return { ok: true, truncated: true, payload: `${payload.slice(0, keep)}${TRUNCATION_MARKER}` }\n}\n\nfunction toolMessage(call: LlmToolCall, content: string): LlmMessage {\n return { role: 'tool', toolCallId: call.id, content }\n}\n\nfunction toolError(reason: string): string {\n return JSON.stringify({ error: reason })\n}\n\nfunction exhaustedToolBudget(maxToolCalls: number): string {\n return toolError(\n `the trace-tool budget of ${maxToolCalls} calls is spent; answer from the evidence already read`,\n )\n}\n\nfunction systemPrompt(request: TraceAnalysisEngineRequest, investigationTurns: number): string {\n return [\n request.instructions.trim(),\n [\n 'HOW THIS INVESTIGATION RUNS:',\n `- You have ${investigationTurns} investigation turns and at most ${request.limits.maxToolCalls} trace-tool calls.`,\n '- Call the trace tools to read the store. Never state a trace fact you did not read.',\n `- A tool result longer than ${request.limits.maxOutputChars} characters is truncated; narrow the query instead of asking again.`,\n '- A tool result carrying an \"error\" field is feedback: fix the call or take another route.',\n '- Answer with no tool call once you have the evidence. You are then asked for the final report.',\n ].join('\\n'),\n ].join('\\n\\n')\n}\n\nfunction reportPrompt(reportFormat: 'json-object' | 'json-schema'): string {\n return [\n 'Report now. Do not call any more tools.',\n 'Return one JSON object with exactly two fields:',\n ' \"answer\": a direct prose answer to the question.',\n ' \"findings\": an array of findings in the schema above. Emit [] when there is nothing to report.',\n reportFormat === 'json-object'\n ? 'Return the object alone, with no surrounding prose and no code fence.'\n : 'Return the object in the response schema you were given.',\n ].join('\\n')\n}\n\nfunction renderTaskInputs(taskInputs: Readonly<Record<string, unknown>>): string {\n // The engine contract forbids dropping structured inputs. This engine has no\n // code environment to bind them as variables, so they are delivered whole as\n // conversation material and the runtime record says which way they arrived.\n return [\n 'TASK INPUTS — structured material delivered with the question, not fetched through tools:',\n JSON.stringify(taskInputs, null, 2),\n ].join('\\n')\n}\n\ninterface ParsedReport {\n answer: string\n findings: TraceAnalysisEngineResult['findings']\n rejectedFindings: number\n}\n\nfunction parseReport(\n content: string,\n analystId: string,\n onRejectedFinding: (index: number, reason: string) => void,\n): ParsedReport {\n const envelope = coerceReportEnvelope(content, analystId)\n if (typeof envelope.answer !== 'string' || !envelope.answer.trim()) {\n throw new Error(`chat trace engine report for '${analystId}' carried no answer`)\n }\n // Findings are model output: one malformed row is model noise, not an engine\n // fault, and the rest of the paid investigation must survive it.\n const decoded = decodeRawFindingArray(envelope.findings)\n if (decoded.topLevelError !== undefined) {\n throw new Error(\n `chat trace engine report for '${analystId}' had a malformed findings array: ${decoded.topLevelError}`,\n )\n }\n for (const rejection of decoded.rejected) {\n onRejectedFinding(\n rejection.index,\n `${rejection.code}${rejection.path ? ` at ${rejection.path}` : ''}: ${rejection.message}`,\n )\n }\n return {\n answer: envelope.answer,\n findings: decoded.accepted,\n rejectedFindings: decoded.rejected.length,\n }\n}\n\nfunction coerceReportEnvelope(content: string, analystId: string): Record<string, unknown> {\n let value: unknown\n try {\n value = JSON.parse(extractJsonPayload(content))\n } catch (error) {\n throw new Error(`chat trace engine report for '${analystId}' was not JSON: ${messageOf(error)}`)\n }\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new Error(`chat trace engine report for '${analystId}' was not a JSON object`)\n }\n return value as Record<string, unknown>\n}\n\nfunction resolveModel(options: ChatTraceEngineOptions): string {\n const model = options.model ?? options.chat.defaultModel\n if (typeof model !== 'string' || !model.trim() || model !== model.trim()) {\n throw new TypeError(\n 'chat trace engine needs a model: pass ChatTraceEngineOptions.model or bind defaultModel on the ChatClient',\n )\n }\n return model\n}\n","/**\n * LockedJsonlAppender — mutex-serialized JSONL append helper for arbitrary\n * payloads. The reference-replay store does the same thing for typed\n * `ReferenceReplayRun` rows; this is the generic version used by\n * `MutationTelemetry`, `TrialTelemetry`, and any other consumer that wants\n * append-only durable telemetry without rolling its own lock.\n *\n * Locks are per absolute file path (process-local). Cross-process\n * concurrency is NOT addressed — that's an fcntl/flock problem.\n */\n\nimport { appendFileSync, existsSync, mkdirSync } from 'node:fs'\nimport { dirname } from 'node:path'\nimport { Mutex } from './concurrency'\n\nconst mutexes = new Map<string, Mutex>()\n\nfunction getMutex(path: string): Mutex {\n let m = mutexes.get(path)\n if (!m) {\n m = new Mutex()\n mutexes.set(path, m)\n }\n return m\n}\n\nexport class LockedJsonlAppender {\n private readonly mutex: Mutex\n constructor(public readonly path: string) {\n this.mutex = getMutex(path)\n if (!existsSync(dirname(path))) {\n mkdirSync(dirname(path), { recursive: true })\n }\n }\n\n async append(entry: unknown): Promise<void> {\n const line = `${JSON.stringify(entry)}\\n`\n await this.mutex.runExclusive(() => {\n appendFileSync(this.path, line)\n })\n }\n}\n\n/** Reset all internal mutex state — tests only. */\nexport function resetLockedAppendersForTesting(): void {\n mutexes.clear()\n}\n","/**\n * FindingsStore — durable persistence for AnalystFinding rows + a diff\n * helper so we can answer \"what changed since the last run?\" without\n * recomputing analysts.\n *\n * On-disk shape is JSONL: one finding per line, append-only, locked via\n * LockedJsonlAppender. Operators get crash-safety (no partial JSON),\n * cheap reads (sequential parse), and trivial backup (rsync the file).\n *\n * Reads are non-locking: a reader sees a consistent snapshot of all\n * fully-written lines and skips an incomplete trailing line if the\n * writer is mid-append. Cross-process locking is intentionally out of\n * scope (see locked-jsonl-appender.ts).\n *\n * The store is run-scoped: callers pass `runId` on append and on load,\n * which keeps multi-run files cleanly partitioned. The `diffFindings`\n * helper compares two run-id sets using stable `finding_id` semantics —\n * the diff is the cross-run signal the regression dashboard renders.\n */\n\nimport { existsSync, readFileSync } from 'node:fs'\n\nimport { LockedJsonlAppender } from '../locked-jsonl-appender'\nimport type { AnalystFinding } from './types'\n\n/**\n * One persisted row. We attach `run_id` on disk so a single file can\n * hold multiple runs and the diff helper can query without re-walking\n * separate files.\n */\nexport interface PersistedFinding extends AnalystFinding {\n run_id: string\n}\n\nexport class FindingsStore {\n private readonly appender: LockedJsonlAppender\n\n constructor(public readonly path: string) {\n this.appender = new LockedJsonlAppender(path)\n }\n\n async append(runId: string, findings: AnalystFinding[]): Promise<void> {\n for (const f of findings) {\n const row: PersistedFinding = { ...f, run_id: runId }\n await this.appender.append(row)\n }\n }\n\n /** Load every persisted finding. Discards malformed trailing lines silently. */\n loadAll(): PersistedFinding[] {\n if (!existsSync(this.path)) return []\n const raw = readFileSync(this.path, 'utf8')\n if (!raw) return []\n const out: PersistedFinding[] = []\n for (const line of raw.split('\\n')) {\n if (!line) continue\n try {\n out.push(JSON.parse(line) as PersistedFinding)\n } catch {\n // Skip torn trailing line — the lock guarantees no torn lines\n // mid-file, only at EOF when a writer is in-flight.\n }\n }\n return out\n }\n\n /** Filter to a single run. */\n loadRun(runId: string): PersistedFinding[] {\n return this.loadAll().filter((r) => r.run_id === runId)\n }\n}\n\n// ── Cross-run diff ──────────────────────────────────────────────────\n\nexport interface FindingsDiff {\n /** New finding ids in `current` that weren't in `previous`. */\n appeared: PersistedFinding[]\n /** Finding ids in `previous` that aren't in `current`. */\n disappeared: PersistedFinding[]\n /** Same finding id present in both runs and unchanged per the materiality test. */\n persisted: PersistedFinding[]\n /**\n * Same finding id in both runs but at least one non-identity field\n * shifted per `DiffPolicy.isMaterial`. Reported as [previous, current].\n */\n changed: Array<{ previous: PersistedFinding; current: PersistedFinding }>\n}\n\nexport interface DiffPolicy {\n /**\n * Predicate that decides whether two findings (same finding_id) count\n * as a material change. Defaults to {@link defaultIsMaterial}: severity\n * shift, confidence Δ > 0.05, or evidence count change. Compliance /\n * perf consumers MAY supply a stricter predicate (e.g. rationale text\n * diff, metric Δ thresholds).\n */\n isMaterial?: (previous: AnalystFinding, current: AnalystFinding) => boolean\n}\n\n/**\n * Default materiality test. Deliberately narrow so LLM-reword churn\n * doesn't flood the diff. Stricter tests are opt-in via DiffPolicy.\n */\nfunction defaultIsMaterial(a: AnalystFinding, b: AnalystFinding): boolean {\n if (a.severity !== b.severity) return true\n if (Math.abs((a.confidence ?? 0) - (b.confidence ?? 0)) > 0.05) return true\n if (a.evidence_refs.length !== b.evidence_refs.length) return true\n return false\n}\n\n/**\n * Diff two findings sets by stable finding_id. Callers typically load\n * the two run-id slices from the same store and pass them in.\n */\nexport function diffFindings(\n previous: PersistedFinding[],\n current: PersistedFinding[],\n policy: DiffPolicy = {},\n): FindingsDiff {\n const isMaterial = policy.isMaterial ?? defaultIsMaterial\n const prevById = new Map(previous.map((f) => [f.finding_id, f]))\n const curById = new Map(current.map((f) => [f.finding_id, f]))\n\n const appeared: PersistedFinding[] = []\n const disappeared: PersistedFinding[] = []\n const persisted: PersistedFinding[] = []\n const changed: FindingsDiff['changed'] = []\n\n for (const [id, cur] of curById) {\n const prev = prevById.get(id)\n if (!prev) {\n appeared.push(cur)\n continue\n }\n if (isMaterial(prev, cur)) {\n changed.push({ previous: prev, current: cur })\n } else {\n persisted.push(cur)\n }\n }\n for (const [id, prev] of prevById) {\n if (!curById.has(id)) disappeared.push(prev)\n }\n return { appeared, disappeared, persisted, changed }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,MAAM,4BAA4B;AAClC,MAAM,YAAY;;AAGlB,MAAM,oBAAoB;;;;;;AAqC1B,SAAS,wBAA2E;CAClF,MAAM,MAAM,EAAE,aAAa,yB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,QAAQ,IAAI,EAAE,GAAG,YAAY,KAAK,IAAI;CAE7C,OAAO;EAAE;EAAU;EAAa;EAAW;CAAQ;AACrD"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as hashCanonical, o as jsonDocument } from "./canonical-DKgL_Wby.js";
|
|
2
2
|
import { r as ROLLOUT_SCHEMA, w as licenseClassOf } from "./schema-Bh9CfSZT.js";
|
|
3
3
|
import { stat } from "node:fs/promises";
|
|
4
|
-
import {
|
|
4
|
+
import { isNativeStoreDatabase, listReaders, nativeStoreSessions, readerFor, toChatMessages } from "@tangle-network/harness-sessions";
|
|
5
5
|
// src/rollout/readers/harness-session-lines.ts
|
|
6
6
|
/**
|
|
7
|
-
* Native harness sessions
|
|
7
|
+
* Native harness sessions as
|
|
8
8
|
* `tangle.rollout.v1` rows, through @tangle-network/harness-sessions — the one
|
|
9
9
|
* reader of those stores. A session carries no task verdict, so its reward is
|
|
10
10
|
* null and `provenance.gap` says so; a later labeler supplies the reward.
|
|
@@ -12,13 +12,7 @@ import { claudeCodeRefForFile, codexRefForFile, kimiRefForFile, listReaders, ope
|
|
|
12
12
|
* The producer comes from the models that answered (`servedModels`), never from
|
|
13
13
|
* the request, and the license class from that model and the harness.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
"claude-code": (path) => claudeCodeRefForFile(path, null),
|
|
17
|
-
codex: codexRefForFile,
|
|
18
|
-
"kimi-code": kimiRefForFile,
|
|
19
|
-
pi: piRefForFile
|
|
20
|
-
};
|
|
21
|
-
/** Session refs under a HOME or store directory, or in one session file / OpenCode store. */
|
|
15
|
+
/** Session refs under a HOME or store directory, or in one native file or SQLite store. */
|
|
22
16
|
async function harnessSessionRefs(target, options = {}) {
|
|
23
17
|
const entry = await stat(target);
|
|
24
18
|
let refs;
|
|
@@ -27,11 +21,18 @@ async function harnessSessionRefs(target, options = {}) {
|
|
|
27
21
|
refs = [];
|
|
28
22
|
const locate = options.sinceMs === void 0 ? {} : { sinceMs: options.sinceMs };
|
|
29
23
|
for (const reader of readers) refs.push(...await reader.locate(target, locate));
|
|
30
|
-
} else if (
|
|
24
|
+
} else if (await isNativeStoreDatabase(target)) refs = await nativeStoreSessions(target, options.harness ? { harness: options.harness } : {});
|
|
31
25
|
else {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
if (!options.harness) {
|
|
27
|
+
const names = listReaders().filter((reader) => reader.refForFile).map((reader) => reader.harness);
|
|
28
|
+
throw new Error(`${target}: pass --harness (${names.join("|")}) for a file`);
|
|
29
|
+
}
|
|
30
|
+
const reader = readerFor(options.harness);
|
|
31
|
+
if (!reader.refForFile) throw new Error(`${reader.harness} requires its native store`);
|
|
32
|
+
refs = [{
|
|
33
|
+
...reader.refForFile(target),
|
|
34
|
+
mtimeMs: entry.mtimeMs
|
|
35
|
+
}];
|
|
35
36
|
}
|
|
36
37
|
return options.sinceMs === void 0 ? refs : refs.filter((ref) => ref.mtimeMs >= options.sinceMs);
|
|
37
38
|
}
|
|
@@ -42,7 +43,7 @@ function producer(session) {
|
|
|
42
43
|
provider: null,
|
|
43
44
|
model: null
|
|
44
45
|
};
|
|
45
|
-
const call = session.modelCalls.find((c) => c.servedModel !== null && top[0].endsWith(c.servedModel));
|
|
46
|
+
const call = session.modelCalls.find((c) => !c.inherited && c.servedModel !== null && top[0].endsWith(c.servedModel));
|
|
46
47
|
return {
|
|
47
48
|
provider: call?.provider ?? null,
|
|
48
49
|
model: call?.servedModel ?? top[0]
|
|
@@ -110,6 +111,7 @@ function harnessSessionToolInventory(sessions) {
|
|
|
110
111
|
/** One normalized session as a rollout row. */
|
|
111
112
|
function harnessSessionRolloutLine(session, ref, capturedAt = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
112
113
|
const { provider, model } = producer(session);
|
|
114
|
+
const modelCalls = session.modelCalls.filter((call) => !call.inherited);
|
|
113
115
|
const id = `${session.harness}:${session.nativeSessionId}`;
|
|
114
116
|
const inventory = harnessSessionToolInventory([session]);
|
|
115
117
|
const captureGaps = [...session.integrity.gaps];
|
|
@@ -150,8 +152,8 @@ function harnessSessionRolloutLine(session, ref, capturedAt = (/* @__PURE__ */ n
|
|
|
150
152
|
verdict: null,
|
|
151
153
|
metrics: {
|
|
152
154
|
ending: session.ending.status,
|
|
153
|
-
model_calls:
|
|
154
|
-
tool_calls: session.toolCalls.length,
|
|
155
|
+
model_calls: modelCalls.length,
|
|
156
|
+
tool_calls: session.toolCalls.filter((call) => !call.inherited).length,
|
|
155
157
|
served_models: session.servedModels
|
|
156
158
|
},
|
|
157
159
|
is_completed: session.ending.status === "completed",
|
|
@@ -160,14 +162,14 @@ function harnessSessionRolloutLine(session, ref, capturedAt = (/* @__PURE__ */ n
|
|
|
160
162
|
realness_gated: false
|
|
161
163
|
},
|
|
162
164
|
cost: {
|
|
163
|
-
usd: sum(
|
|
165
|
+
usd: sum(modelCalls.map((c) => c.costUsd)),
|
|
164
166
|
tokens_in: session.usage?.input ?? null,
|
|
165
167
|
tokens_out: session.usage?.output ?? null,
|
|
166
168
|
tokens_reasoning: session.usage?.reasoning ?? null,
|
|
167
169
|
cache_read: session.usage?.cacheRead ?? null,
|
|
168
170
|
cache_write: session.usage?.cacheWrite ?? null,
|
|
169
171
|
wall_s: startedMs !== null && endedMs !== null && endedMs >= startedMs ? (endedMs - startedMs) / 1e3 : null,
|
|
170
|
-
llm_call_count:
|
|
172
|
+
llm_call_count: modelCalls.length
|
|
171
173
|
},
|
|
172
174
|
artifacts: {
|
|
173
175
|
patch_path: null,
|
|
@@ -202,4 +204,4 @@ async function* harnessSessionRolloutLines(refs, capturedAt) {
|
|
|
202
204
|
}
|
|
203
205
|
export { harnessSessionToolInventory as a, harnessSessionRolloutLines as i, harnessSessionRefs as n, harnessSessionRolloutLine as r, harnessSessionBindings as t };
|
|
204
206
|
|
|
205
|
-
//# sourceMappingURL=harness-session-lines-
|
|
207
|
+
//# sourceMappingURL=harness-session-lines-CTh1-uOb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness-session-lines-CTh1-uOb.js","names":[],"sources":["../src/rollout/readers/harness-session-lines.ts"],"sourcesContent":["/**\n * Native harness sessions as\n * `tangle.rollout.v1` rows, through @tangle-network/harness-sessions — the one\n * reader of those stores. A session carries no task verdict, so its reward is\n * null and `provenance.gap` says so; a later labeler supplies the reward.\n *\n * The producer comes from the models that answered (`servedModels`), never from\n * the request, and the license class from that model and the harness.\n */\n\nimport { stat } from 'node:fs/promises'\nimport {\n type HarnessSession,\n isNativeStoreDatabase,\n listReaders,\n nativeStoreSessions,\n readerFor,\n type SessionRef,\n toChatMessages,\n} from '@tangle-network/harness-sessions'\nimport { hashCanonical, jsonDocument } from '../../ledger-core/canonical'\nimport { licenseClassOf } from '../license'\nimport { ROLLOUT_SCHEMA, type RolloutLine, type ToolDef } from '../schema'\n\nexport interface HarnessSessionImportOptions {\n /** Read only this harness (`opencode`, `kimi-code`, `claude-code`, `codex`, …). */\n harness?: string\n /** Only sessions whose store file changed at or after this time (epoch ms). */\n sinceMs?: number\n capturedAt?: string\n}\n\n/** Session refs under a HOME or store directory, or in one native file or SQLite store. */\nexport async function harnessSessionRefs(\n target: string,\n options: HarnessSessionImportOptions = {},\n): Promise<SessionRef[]> {\n const entry = await stat(target)\n let refs: SessionRef[]\n if (entry.isDirectory()) {\n const readers = options.harness ? [readerFor(options.harness)] : listReaders()\n refs = []\n const locate = options.sinceMs === undefined ? {} : { sinceMs: options.sinceMs }\n for (const reader of readers) refs.push(...(await reader.locate(target, locate)))\n } else if (await isNativeStoreDatabase(target)) {\n refs = await nativeStoreSessions(target, options.harness ? { harness: options.harness } : {})\n } else {\n if (!options.harness) {\n const names = listReaders()\n .filter((reader) => reader.refForFile)\n .map((reader) => reader.harness)\n throw new Error(`${target}: pass --harness (${names.join('|')}) for a file`)\n }\n const reader = readerFor(options.harness)\n if (!reader.refForFile) throw new Error(`${reader.harness} requires its native store`)\n refs = [{ ...reader.refForFile(target), mtimeMs: entry.mtimeMs }]\n }\n return options.sinceMs === undefined\n ? refs\n : refs.filter((ref) => ref.mtimeMs >= (options.sinceMs as number))\n}\n\n/** The model that answered most calls, split into provider and model. */\nfunction producer(session: HarnessSession): { provider: string | null; model: string | null } {\n const [top] = Object.entries(session.servedModels).sort((a, b) => b[1] - a[1])\n if (top === undefined) return { provider: null, model: null }\n const call = session.modelCalls.find(\n (c) => !c.inherited && c.servedModel !== null && top[0].endsWith(c.servedModel),\n )\n const provider = call?.provider ?? null\n const model = call?.servedModel ?? top[0]\n return { provider, model }\n}\n\nconst sum = (values: Array<number | null>): number | null =>\n values.some((v) => v !== null) ? values.reduce<number>((a, v) => a + (v ?? 0), 0) : null\n\n/** Model-call and tool-snapshot lookups; null when either identity repeats. */\nexport function harnessSessionBindings(session: HarnessSession) {\n const calls = new Map(session.modelCalls.map((call) => [call.id, call]))\n const snapshots = new Map((session.toolDefinitionSnapshots ?? []).map((item) => [item.id, item]))\n const unique =\n calls.size === session.modelCalls.length &&\n snapshots.size === (session.toolDefinitionSnapshots?.length ?? 0)\n return unique ? { calls, snapshots } : null\n}\n\n/** A static trainer inventory must be the complete inventory seen by every response. */\nexport function harnessSessionToolInventory(sessions: readonly HarnessSession[]): {\n tools: ToolDef[]\n gap?: string\n} {\n let tools: ToolDef[] | undefined\n let digest: string | undefined\n for (const session of sessions) {\n const bindings = harnessSessionBindings(session)\n if (bindings === null)\n return { tools: [], gap: 'native response or tool inventory identity is ambiguous' }\n const { calls, snapshots } = bindings\n const inventories = new Map<string, { tools: ToolDef[]; digest: string }>()\n const responses = session.messages.filter((message) => message.role === 'assistant')\n for (const response of responses) {\n const call = response.modelCallId === null ? undefined : calls.get(response.modelCallId)\n const snapshot =\n call?.toolDefinitionSnapshotId === undefined\n ? undefined\n : snapshots.get(call.toolDefinitionSnapshotId)\n if (!snapshot?.complete)\n return { tools: [], gap: 'native response has no complete recorded tool inventory' }\n let inventory = inventories.get(snapshot.id)\n if (inventory === undefined) {\n const current: ToolDef[] = snapshot.definitions.map((definition) => ({\n type: 'function',\n function: {\n name: definition.name,\n ...(definition.description === undefined\n ? {}\n : { description: definition.description }),\n parameters: definition.inputSchema,\n },\n }))\n inventory = { tools: current, digest: hashCanonical(jsonDocument(current)) }\n inventories.set(snapshot.id, inventory)\n }\n if (digest !== undefined && inventory.digest !== digest)\n return { tools: [], gap: 'native tool inventory changes within the conversation' }\n tools = inventory.tools\n digest = inventory.digest\n }\n }\n return tools === undefined\n ? { tools: [], gap: 'native tool inventory has no observed response' }\n : { tools }\n}\n\n/** One normalized session as a rollout row. */\nexport function harnessSessionRolloutLine(\n session: HarnessSession,\n ref: SessionRef,\n capturedAt: string = new Date().toISOString(),\n): RolloutLine {\n const { provider, model } = producer(session)\n const modelCalls = session.modelCalls.filter((call) => !call.inherited)\n const id = `${session.harness}:${session.nativeSessionId}`\n const inventory = harnessSessionToolInventory([session])\n const captureGaps = [...session.integrity.gaps]\n if (session.integrity.truncated) captureGaps.push('native transcript is truncated')\n if (session.integrity.unparsedRecords > 0) captureGaps.push('native records could not be parsed')\n const startedMs = session.startedAt === null ? null : Date.parse(session.startedAt)\n const endedMs = session.endedAt === null ? null : Date.parse(session.endedAt)\n const line: RolloutLine = {\n schema: ROLLOUT_SCHEMA,\n rollout_id: id,\n parent_rollout_id:\n session.parentNativeSessionId === null\n ? null\n : `${session.harness}:${session.parentNativeSessionId}`,\n run_id: id,\n experiment_id: null,\n candidate_id: null,\n generation: null,\n candidate_index: null,\n role: 'agent',\n task: {\n suite: `harness/${session.harness}`,\n instance_id: session.nativeSessionId,\n split: 'search',\n seed: null,\n rep: 0,\n },\n policy: {\n harness: session.harness,\n harness_version: null,\n model,\n provider,\n profile_commit: null,\n sampling: null,\n },\n messages: toChatMessages(session),\n tool_defs: inventory.tools,\n outcome: {\n reward: null,\n reward_source: null,\n verdict: null,\n metrics: {\n ending: session.ending.status,\n model_calls: modelCalls.length,\n tool_calls: session.toolCalls.filter((call) => !call.inherited).length,\n served_models: session.servedModels,\n },\n is_completed: session.ending.status === 'completed',\n is_truncated: ref.truncated === true || session.integrity.truncated,\n error: session.ending.error?.message ?? null,\n realness_gated: false,\n },\n cost: {\n usd: sum(modelCalls.map((c) => c.costUsd)),\n tokens_in: session.usage?.input ?? null,\n tokens_out: session.usage?.output ?? null,\n tokens_reasoning: session.usage?.reasoning ?? null,\n cache_read: session.usage?.cacheRead ?? null,\n cache_write: session.usage?.cacheWrite ?? null,\n wall_s:\n startedMs !== null && endedMs !== null && endedMs >= startedMs\n ? (endedMs - startedMs) / 1000\n : null,\n llm_call_count: modelCalls.length,\n },\n artifacts: { patch_path: null, run_dir: session.cwd, transcript_ref: ref.path },\n provenance: {\n captured_at: capturedAt,\n capture: 'backfill',\n gap: ['imported harness session: no task verdict', ...captureGaps].join('; '),\n ...(captureGaps.length === 0 ? {} : { lossy_projection: true }),\n ...(inventory.gap === undefined ? {} : { tool_definitions_gap: inventory.gap }),\n },\n }\n const license = licenseClassOf(line)\n if (license !== null) line.policy.license_class = license\n return line\n}\n\n/** Read each ref in turn; a session its reader refuses is reported, never guessed. */\nexport async function* harnessSessionRolloutLines(\n refs: readonly SessionRef[],\n capturedAt?: string,\n): AsyncGenerator<{ ref: SessionRef; line?: RolloutLine; error?: string }> {\n for (const ref of refs) {\n try {\n const session = await readerFor(ref.harness).read(ref)\n yield { ref, line: harnessSessionRolloutLine(session, ref, capturedAt) }\n } catch (error) {\n yield { ref, error: error instanceof Error ? error.message : String(error) }\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,eAAsB,mBACpB,QACA,UAAuC,CAAC,GACjB;CACvB,MAAM,QAAQ,MAAM,KAAK,MAAM;CAC/B,IAAI;CACJ,IAAI,MAAM,YAAY,GAAG;EACvB,MAAM,UAAU,QAAQ,UAAU,CAAC,UAAU,QAAQ,OAAO,CAAC,IAAI,YAAY;EAC7E,OAAO,CAAC;EACR,MAAM,SAAS,QAAQ,YAAY,KAAA,IAAY,CAAC,IAAI,EAAE,SAAS,QAAQ,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M,0BAA0B,MADvB,UAAU,IAAI,OAAO,CAAC,CAAC,KAAK,GAAG,GACC,KAAK,UAAU;EAAE;CACzE,SAAS,OAAO;EACd,MAAM;GAAE;GAAK,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;EAAE;CAC7E;AAEJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as RunRecord } from "./run-record-kuOr3BCF.js";
|
|
2
2
|
import { r as LedgerHash } from "./canonical-CGXS21f_.js";
|
|
3
|
-
import { l as CodeSurface } from "./types-
|
|
3
|
+
import { l as CodeSurface } from "./types-BMSDkS8l.js";
|
|
4
4
|
import { a as MintedRolloutLine, b as RolloutSplit, g as RolloutOutcome, h as RolloutLine, i as GatedEvidence, t as ChatMessage, w as ToolDef, x as RolloutStep } from "./schema-BfSoJjD-.js";
|
|
5
5
|
import { n as CompletionVerdict } from "./completion-verifier-Cy38EpGE.js";
|
|
6
6
|
import { r as TrainingExportOptions } from "./training-admission-DGZCyntI.js";
|
|
@@ -681,7 +681,7 @@ interface HarnessSessionImportOptions {
|
|
|
681
681
|
sinceMs?: number;
|
|
682
682
|
capturedAt?: string;
|
|
683
683
|
}
|
|
684
|
-
/** Session refs under a HOME or store directory, or in one
|
|
684
|
+
/** Session refs under a HOME or store directory, or in one native file or SQLite store. */
|
|
685
685
|
declare function harnessSessionRefs(target: string, options?: HarnessSessionImportOptions): Promise<SessionRef[]>;
|
|
686
686
|
/** One normalized session as a rollout row. */
|
|
687
687
|
declare function harnessSessionRolloutLine(session: HarnessSession, ref: SessionRef, capturedAt?: string): RolloutLine;
|
|
@@ -953,4 +953,4 @@ interface TinkerExportOptions extends Pick<TrainingExportOptions, 'allowHeldOutT
|
|
|
953
953
|
*/
|
|
954
954
|
declare function toTinkerDatumRows(lines: readonly MintedRolloutLine[], options: TinkerExportOptions): TinkerDatumRow[];
|
|
955
955
|
export { HarborContentPart as $, harnessSessionRolloutLine as A, RealnessLabels as At, ReadClaudeTranscriptOptions as B, toSftRows as Bt, GateReport as C, GateCheckDisposition as Ct, readOpencodeSessionMessages as D, GatePolicy as Dt, DEFAULT_OPENCODE_DB as E, GateEntryPoint as Et, readCodexRollout as F, VerifiersRolloutOutput as Ft, RolloutBatchReceipt as G, observedSplitScore as Gt, parseClaudeTranscript as H, ScoreOrigin as Ht, ClaudeTranscript as I, VerifiersTokenUsage as It, readRolloutJournal as J, admitRolloutBatch as K, trainingReward as Kt, ClaudeTranscriptRef as L, toJsonl as Lt, gateReceiptRolloutLines as M, RftItem as Mt, CodexRollout as N, SftExportOptions as Nt, HarnessSessionImportOptions as O, gateErrors as Ot, parseCodexRollout as P, SftRow as Pt, HarborAgent as Q, ClaudeUsageTotals as R, toRewardRows as Rt, GateDisposition as S, GateCheck as St, assertGateReport as T, GateCheckedOutcome as Tt, readClaudeTranscript as U, ScorePreference as Ut, findClaudeTranscripts as V, toVerifiersRolloutOutputs as Vt, RolloutBatchIdentity as W, isRealnessGated as Wt, writeRolloutLedger as X, readRolloutLedger as Y, FromHarborOptions as Z, privacyHit as _, WriteHarborTaskOptions as _t, BuildOptions as a, HarborStep as at, EmittedEvidence as b, GATE_CHECK_IDS as bt, ScrubReport as c, HarborToolCall as ct, ReleaseFormat as d, relabelImportedSplit as dt, HarborFinalMetrics as et, buildDatasetCard as f, toHarborTrajectories as ft, defaultRolloutScrubber as g, HarborTaskVerification as gt, ScrubRule as h, HarborTaskFile as ht, toTinkerDatumRows as i, HarborObservationResult as it, harnessSessionRolloutLines as j, RewardRow as jt, harnessSessionRefs as k, gatedEvidenceOf as kt, buildHfDataset as l, HarborTrajectory as lt, ScrubCounts as m, HARBOR_TASK_CHECKS as mt, TinkerDatumRow as n, HarborMetrics as nt, BuildSummary as o, HarborStepSource as ot, PRIVACY_RULE_NAMES as p, toHarborTrajectory as pt, appendRolloutLines as q, trainingScore as qt, TinkerExportOptions as r, HarborObservation as rt, RolloutReleaseCliArgs as s, HarborSubagentTrajectoryRef as st, TinkerDatum as t, HarborImageSource as tt, DatasetCardInputs as u, fromHarborTrajectory as ut, scrubLines as v, writeHarborTask as vt, ReleaseRowRef as w, GateCheckId as wt, FormatGateCounts as x, GATE_POLICIES as xt, scrubText as y, GATE_CHECKS as yt, DEFAULT_CLAUDE_PROJECTS_DIR as z, toRftItems as zt };
|
|
956
|
-
//# sourceMappingURL=index-
|
|
956
|
+
//# sourceMappingURL=index-BqAPIToS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BqAPIToS.d.ts","names":[],"sources":["../src/rollout/reward.ts","../src/rollout/exporters.ts","../src/rollout/gate-checks.ts","../src/rollout/harbor-task.ts","../src/rollout/interchange/harbor.ts","../src/rollout/ledger.ts","../src/rollout/readers/claude-jsonl.ts","../src/rollout/readers/codex-rollout.ts","../src/rollout/readers/gate-receipts.ts","../src/rollout/readers/harness-session-lines.ts","../src/rollout/readers/opencode-sqlite.ts","../src/rollout/release/gate-report.ts","../src/rollout/release/scrub.ts","../src/rollout/release/card.ts","../src/rollout/release/hf-dataset.ts","../src/rollout/tinker.ts"],"mappings":";;;;;;;;;;;;KA2BY;;KAGP,SAAS,KAAK;;iBAGH,gBAAgB,QAAQ;;;;;;;;;;;;;;iBAiBxB,mBAAmB,QAAQ,QAAQ,OAAO;;KA4B9C;;;;;;;;;iBAuBI,cACd,QAAQ,QACR,SAAQ;;;;;;;;;;;;iBAiBM,eAAe,QAAQ;EAAW;EAAuB;;;;;;;;;;;;;;;;;;UClExD;;EAEf;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;;KAqCG;UAEK,kCAAkC;;EAE1C,aAAa;;KAGH,mBAAmB;UAKd;;EAEf,UAAU,MAAM;IAAgB;;;EAEhC,mBAAmB;EACnB,OAAO;EACP;IACE;IACA;IACA;IACA;IACA;MACE;;;;;;;;;;;;;;;;;iBAkBU,UAAU,OAAO,qBAAqB,UAAS,mBAAwB;UAkCtE;;EAEf;EACA,OAAO;EACP;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B,QAAQ;UCnHxB;EACf;EACA,SAAS;EACT;;EAEA;;UAGe;;EAEf,OAAO,eAAe;EACtB,QAAQ;EACR;IAAY;IAAmB;IAAkB;;;EAEjD,SAAS;;UAGM;EACf;EACA;EACA;EACA,OAAO;EACP,cAAc,QAAQ,OAAO;;EAE7B,MAAM;EACN;;iBAGoB,eACpB,kBACA,SAAS,eACR,QAAQ;UAoIM,8BAA8B;EAC7C;EACA;EACA;;;UC3Me;EACf;IAAe,QAAQ;MAAQ;MAAsB;;;EACrD;IACE;MAAiB;MAAgB;MAAgB;;IACjD;MAAY;MAAgB;MAAkB;;IAC9C;MAAc;MAAgB;MAAkB;;;;UAInC;;EAEf,OAAO;EACP;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe,4BACP,KACN;;EAIF;;EAEA,eAAe;;EAEf,cAAc,MAAM,mBAAmB;;;;;;;;iBAsFzB,kBACd,gBAAgB,qBAChB,SAAS,sBACR"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { o as CostLedgerHandle } from "./cost-ledger-CSP-OfFe.js";
|
|
2
2
|
import { a as RunRecord, c as RunSplitTag, n as RunCostProvenance } from "./run-record-kuOr3BCF.js";
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./run-improvement-loop-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./campaign-evidence-
|
|
3
|
+
import "./types-fuOwNq1C.js";
|
|
4
|
+
import "./run-improvement-loop-BfwOUudy.js";
|
|
5
|
+
import "./types-BMSDkS8l.js";
|
|
6
|
+
import "./campaign-evidence-BojANgU7.js";
|
|
7
7
|
import { f as TraceSpanEvent } from "./client-DUMIaMob.js";
|
|
8
|
-
import { c as InsightReport, t as AnalyzeRunsOptions } from "./analyze-runs-
|
|
9
|
-
import "./define-agent-eval-
|
|
10
|
-
import "./default-registry-
|
|
8
|
+
import { c as InsightReport, t as AnalyzeRunsOptions } from "./analyze-runs-xjKBBqIB.js";
|
|
9
|
+
import "./define-agent-eval-Cjc0wWnO.js";
|
|
10
|
+
import "./default-registry-xoX0PMCb.js";
|
|
11
11
|
import { AgentCandidateBenchmarkCellRef, AgentCandidateBenchmarkSuiteInputs, AgentCandidateBenchmarkTask, AgentCandidateBenchmarkTaskMaterial, AgentCandidateBundle, AgentCandidateEvaluationPolicy, AgentCandidateExperiment, AgentCandidateExperimentMaterial, AgentCandidateExperimentMeasurement, AgentImprovementCost, AgentImprovementMeasuredComparison, AgentProfileImprovementExperiment, AgentProfileImprovementExperimentMaterial, AgentProfileImprovementMeasuredComparison, AgentProfileImprovementMeasurement, AgentProfileImprovementRecordedMeasurement, AgentProfileImprovementRecordedRunReceipt, AgentProfileImprovementRunCell, AgentProfileImprovementRunReceipt, AgentProfileImprovementSuiteInputs, AgentProfileImprovementTask, AgentProfileImprovementTaskMaterial, CandidateExecutionEvidence, Sha256Digest } from "@tangle-network/agent-interface";
|
|
12
12
|
interface SealCandidateBenchmarkSuiteOptions {
|
|
13
13
|
tasks: [AgentCandidateBenchmarkTask, ...AgentCandidateBenchmarkTask[]];
|
|
@@ -670,4 +670,4 @@ interface FromOtelSpansOptions {
|
|
|
670
670
|
}
|
|
671
671
|
declare function fromOtelSpans(opts: FromOtelSpansOptions): RunRecord[];
|
|
672
672
|
export { AgentProfileImprovementExperimentExecutionInput as $, CodeAgentSessionActionSurface as A, AgentTraceIndex as B, CodeAgentSessionIntakeOptions as C, EvaluatePairedMeasurementsOptions as Ct, CodeAgentSessionAction as D, RunCandidateExperimentOptions as Dt, ParsedCodeAgentJsonl as E, PairedMeasurementEvaluation as Et, observeCodeAgentSession as F, parseAgentTrace as G, AgentTraceRecord as H, AgentTraceContributor as I, EvalReportingSuiteOptions as J, partitionRunsByAuthoringModel as K, AgentTraceContributorType as L, CodeAgentSessionObservation as M, CodeAgentSessionSource as N, CodeAgentSessionActionKind as O, SealCandidateBenchmarkSuiteOptions as Ot, CodeAgentSessionTerminalStatus as P, RunRecordRejection as Q, AgentTraceConversation as R, CodeAgentSessionDiagnostic as S, CompareCandidateExperimentOptions as St, CodeAgentSessionMetrics as T, PairedMeasurementAdapter as Tt, AuthoringProvenance as U, AgentTraceRange as V, PartitionByAuthoringModelResult as W, FromRunRecordDirOptions as X, EvalReportingSuiteResult as Y, FromRunRecordDirResult as Z, fromPiSession as _, sealCandidateExperiment as _t, FromFeedbackTableOptions as a, SealAgentProfileImprovementSuiteOptions as at, streamCodeAgentJsonlFile as b, CandidateExperimentExecutionInput as bt, CodeAgentStoreObservation as c, sealAgentProfileImprovementExperiment as ct, CodeAgentStoreScope as d, verifyAgentProfileImprovementExperimentComparison as dt, AgentProfileImprovementExperimentRun as et, CodeAgentStoreSession as f, evaluatePairedMeasurements as ft, fromOpenCodeSession as g, sealCandidateBenchmarkTask as gt, fromKimiCodeSession as h, sealCandidateBenchmarkSuite as ht, FeedbackTableRow as i, RunAgentProfileImprovementExperimentOptions as it, CodeAgentSessionExecutionReceipt as j, CodeAgentSessionActionStatus as k, CodeAgentStoreRejection as l, sealAgentProfileImprovementSuite as lt, fromCodexSession as m, runCandidateExperiment as mt, fromOtelSpans as n, CompareAgentProfileImprovementExperimentOptions as nt, FromFeedbackTableResult as o, measuredComparisonFromAgentProfileImprovementExperiment as ot, fromClaudeCodeSession as p, measuredComparisonFromCandidateExperiment as pt, EvalReportingSuiteInput as q, FeedbackTableMeta as r, RecordAgentProfileImprovementExperimentOptions as rt, fromFeedbackTable as s, runAgentProfileImprovementExperiment as st, FromOtelSpansOptions as t, AgentProfileImprovementIncompleteExperimentRun as tt, CodeAgentStoreRejections as u, sealAgentProfileImprovementTask as ut, parseCodeAgentJsonl as v, verifyCandidateExperiment as vt, CodeAgentSessionIntakeResult as w, PairedMeasurement as wt, CodeAgentJsonlLine as x, CandidateExperimentRun as xt, parseCodeAgentJsonlFile as y, verifyCandidateExperimentComparison as yt, AgentTraceFile as z };
|
|
673
|
-
//# sourceMappingURL=index-
|
|
673
|
+
//# sourceMappingURL=index-DAFZRMlF.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DAFZRMlF.d.ts","names":[],"sources":["../src/contract/measured-comparison-types.ts","../src/contract/candidate-experiment.ts","../src/contract/paired-measurement-evaluation.ts","../src/contract/profile-measured-comparison.ts","../src/contract/intake/run-record-dir.ts","../src/contract/eval-reporting-suite.ts","../src/contract/intake/agent-trace.ts","../src/contract/intake/code-agent-observation.ts","../src/contract/intake/code-agent-session-types.ts","../src/contract/intake/code-agent-jsonl.ts","../src/contract/intake/code-agent-session.ts","../src/contract/intake/code-agent-store.ts","../src/contract/intake/feedback-table.ts","../src/contract/intake/otel-spans.ts"],"mappings":";;;;;;;;;;;UAeiB;EACf,QAAQ,gCAAgC;EACxC;EACA;;UAGe;EACf,YAAY;EACZ;EACA,QAAQ;EACR,MAAM;EACN,eAAe;EACf;EACA,SAAS;;UAGM;EACf,YAAY;EACZ,QAAQ,OAAO,oCAAoC,QAAQ;;EAE3D;;EAEA,aAAa;EACb,SAAS;;UAGM;EACf,cAAc;EACd;IACE;IACA,MAAM;;;UAIO;EACf,YAAY;EACZ,cAAc;EACd;IACE;IACA,MAAM;;EAER,aAAa;EACb;EACA,YAAY;EACZ;EACA,WAAW;;;UAII,kBAAkB;EACjC;EACA,UAAU;EACV,WAAW;;;UAII,yBAAyB;EACxC,MAAM,KAAK;EACX,WAAW,KAAK;IAAkB;IAAc;;EAChD,QAAQ,KAAK;EACb,eAAe,KAAK,OAAO;EAC3B,UAAU,KAAK;EACf,UAAU,KAAK;EACf,OAAO,KAAK;;UAGG,kCAAkC;EACjD,uBAAuB,kBAAkB;EACzC,QAAQ;EACR,SAAS,yBAAyB;;EAElC;;EAEA,kBAAkB;;EAElB,kBAAkB;;;KAIR,8BAA8B,KACxC;EAGA,iBAAiB;EACjB,WAAW;EACX;;;iBC9Dc,2BACd,UAAU,sCACT;;iBAQa,4BACd,SAAS,qCACR;;iBAiBa,wBACd,UAAU,mCACT;iBAQa,0BAA0B,iBAAiB;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UAGA;EACf;EACA;EACA;EACA;IAAQ;IAAc;;EACtB;IAAS;IAAe;;EACxB,OAAO;;;;UAOQ;EACf;;EAEA;;EAEA;EACA;EACA;;EAEA;;EAEA;;KAGU,kBAAkB,YAAY;;;;;;iBAW1B,gBAAgB,SAAS,qBAAqB;UAmE7C;;;;EAIf,SAAS,YAAY;;;EAGrB,cAAc;;;;;;;;iBASA,8BACd,MAAM,aACN,OAAO,kBACN;;;;;;KCtKS;KAQA;KAEA;KAEA;KASA;UAEK;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN,SAAS;EACT;EACA,QAAQ;EACR;EACA;EACA,UAAU;;UAGK;EACf,QAAQ;EACR;EACA;EACA;IACE,QAAQ;IACR;;EAEF,SAAS;;UAGD;EACR,QAAQ;EACR;EACA;EACA,YAAY;;;;;;;iBAeE,wBACd,SAAS,iCACR;UC7Ec;EACf;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;;UAGe;EACf,MAAM;EACN,aAAa;EACb,SAAS;EACT,cAAc;;UAGC;EACf;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA;EACA;;;EAGA,iBAAiB;;;EAGjB,YAAY;;;;KAKF;EACN;EAAe;EAAoB;;EACnC;EAAmB;;iBCvFT,oBAAoB,gBAAgB;;;;;;;;;;iBAuB7B,yBAAyB,eAAe,eAAe;;;;;iBA6BxD,wBAAwB,eAAe,QAAQ;iBCDrD,iBACd,SAAS,gCACR;iBAIa,sBACd,SAAS,gCACR;iBAIa,oBACd,SAAS,gCACR;iBAIa,oBACd,SAAS,gCACR;;iBAKa,cACd,SAAS,gCACR;;UCrDc;;;;;WAKN;;WAEA,QAAQ;;;;;WAKR;;;;;WAKA;aACE;;aAEA;;;;KAKD;;UAUK;WACN;WACA;WACA;WACA;WACA,aAAa;;;UAIP;WACN;WACA,UAAU,SAAS,QAAQ,OAAO;;WAElC,QAAQ;aACN;aACA,QAAQ;;;;;;;;;KAUT;WAEG;WACA,OAAO;WACP;WACA,mBAAmB;;WAEnB;;WAEA;;WAEA;WACA,WAAW,SAAS,QAAQ,OAAO;WACnC,YAAY;;WAGZ;WACA,OAAO;WACP;;WAEA;WACA,YAAY;;UCvGV;;;EAGf;;EAEA;;;EAGA;;;EAGA,WAAW;;UAGI;EACf;;;EAGA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;EAGA,WAAW;;;EAGX,SAAS;;UAGM;;EAEf,SAAS;;;EAGT,OAAO;;;;EAIP;IAAU;IAAa;;;;;EAIvB;;UAGe;EACf,MAAM;;;EAGN,aAAa;IAAQ;IAAe;IAAe;;;iBAGrC,kBAAkB,MAAM,2BAA2B;UC3BlD;EACf,OAAO;;EAEP,eAAe;;EAEf;;;;;;EAMA,eAAe,eAAe,gBAAgB;;iBAGhC,cAAc,MAAM,uBAAuB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { m as CustomTokenPricing, o as CostLedgerHandle } from "./cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import { i as AnalystFinding, n as AnalystContext } from "./types-
|
|
2
|
+
import { W as TraceAnalysisEngine, i as AnalystFinding, n as AnalystContext } from "./types-fuOwNq1C.js";
|
|
3
3
|
import { G as LlmThinkingMode, O as ChatClient } from "./cluster-Bj90LK-1.js";
|
|
4
|
-
import { S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, p as ExternalOptimizerCallbackLimits, y as ExternalOptimizerModelCall } from "./agent-profile-
|
|
4
|
+
import { S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, p as ExternalOptimizerCallbackLimits, y as ExternalOptimizerModelCall } from "./agent-profile-CRdalpZv.js";
|
|
5
5
|
import { o as Severity } from "./multi-layer-verifier-lM4aVN78.js";
|
|
6
|
-
import { i as TraceAnalystDefinition } from "./default-registry-
|
|
7
|
-
import { l as ExactCapableAnalyst } from "./exact-types-
|
|
8
|
-
import { t as TraceAnalysisEngine } from "./engine-BZVXOc6n.js";
|
|
6
|
+
import { i as TraceAnalystDefinition } from "./default-registry-xoX0PMCb.js";
|
|
7
|
+
import { l as ExactCapableAnalyst } from "./exact-types-DjuabhUV.js";
|
|
9
8
|
import { b as SupervisorRunSources, x as SupervisorRunTree } from "./types-BLv2Ngla.js";
|
|
10
9
|
/**
|
|
11
10
|
* Implementation complexity class for weighted scoring.
|
|
@@ -398,4 +397,4 @@ declare const KNOWLEDGE_POISONING_KIND_SPEC: TraceAnalystDefinition;
|
|
|
398
397
|
*/
|
|
399
398
|
declare const DEFAULT_TRACE_ANALYST_KINDS: readonly TraceAnalystDefinition[];
|
|
400
399
|
export { SEMANTIC_CONCEPT_JUDGE_VERSION as C, runSemanticConceptJudge as D, SemanticConceptJudgeResult as E, ConceptSpec as S, SemanticConceptJudgeOptions as T, DspyRlmTraceEngineOptions as _, FAILURE_MODE_KIND_SPEC as a, createChatTraceEngine as b, emitControlIntegrityFindings as c, FindingSubject as d, FindingSubjectKind as f, renderFindingSubject as g, parseFindingSubject as h, IMPROVEMENT_KIND_SPEC as i, FINDING_SUBJECT_KINDS as l, findingSubjectGrammarPromptFor as m, KNOWLEDGE_POISONING_KIND_SPEC as n, CONTROL_INTEGRITY_ANALYST as o, KIND_EXPECTED_SUBJECTS as p, KNOWLEDGE_GAP_KIND_SPEC as r, ControlIntegrityAnalyst as s, DEFAULT_TRACE_ANALYST_KINDS as t, FINDING_SUBJECT_SYNTAX as u, createDspyRlmTraceEngine as v, SemanticConceptJudgeInput as w, ConceptFinding as x, ChatTraceEngineOptions as y };
|
|
401
|
-
//# sourceMappingURL=index-
|
|
400
|
+
//# sourceMappingURL=index-DKpMyD_Z.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DKpMyD_Z.d.ts","names":[],"sources":["../src/semantic-concept-judge.ts","../src/analyst/chat-trace-engine.ts","../src/analyst/trace-tool-callback.ts","../src/analyst/dspy-rlm-engine.ts","../src/analyst/finding-subject.ts","../src/analyst/kinds/control-integrity.ts","../src/analyst/kinds/failure-mode.ts","../src/analyst/kinds/improvement.ts","../src/analyst/kinds/knowledge-gap.ts","../src/analyst/kinds/knowledge-poisoning.ts","../src/analyst/kinds/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuDY;UAEK;EACf;;EAEA;;EAEA;;EAEA,aAAa;;UAGE;EACf;EACA;;EAEA;EACA;EACA,UAAU;;UAGK;;EAEf;;EAEA;;EAEA,aAAa;IAAQ;IAAc;;;EAEnC,kBAAkB;;EAElB;EACA;;UAGe;EACf;EACA;;EAEA;EACA;EACA;EACA,UAAU;EACV;EACA;EACA;;EAEA;EACA;;;;;;;;KASU;UAQK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;EAEN,UAAU;EACV,aAAa;EACb;EACA,WAAW;EACX,SAAS;;;;;;EAMT,iBAAiB;;EAEjB,oBAAoB,QAAQ,OAAO;;cAKxB;;;;;;iBAiGS,wBACpB,OAAO,2BACP,SAAS,8BACR,QAAQ;UC9LM;;;;;EAKf,MAAM;;EAEN;;EAEA,UAAU;;EAEV;;EAEA;;EAEA,WAAW;;EAEX;;;;;;;;;;EAUA;;;;;;iBAkCc,sBAAsB,SAAS,yBAAyB;KCtG5D,0BAA0B;UCYrB;;EAEf,MAAM;;EAEN;;EAEA,kBAAkB,aAAa;EAC/B;;EAEA,UAAU;;EAEV;;EAEA;;;;;;EAMA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,kBAAkB,QAAQ;;EAE1B;;;;;;;;;;EAUA;;EAEA,SAAS;;EAET;;;iBAIc,yBAAyB,SAAS,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCvClE;EAEN;EAAwB;EAAc;;EACtC;EAAyB;;EACzB;EAAuB;;EACvB;EAAyB;;EAGzB;EAAuB;;EACvB;EAAe;;EACf;EAAkB;EAAc;;EAChC;EAAkB;;EAClB;EAAa;EAAgB;;EAC7B;EAAc;;EACd;EAAkB;;EAClB;EAAkB;;EAClB;EAAwB;;EACxB;EAAuB;;EACvB;EAAc;;EACd;EAAa;EAAgB;;EAC7B;EAAgB;;EAChB;EAAqB;;EACrB;EAAuB;;EAEvB;EAA4B;;EAC5B;EAA2B;;EAE3B;EAAiB;;KAEX,qBAAqB;cAEpB,uBAAuB,cAAc;;;;;;;;;;;;;;;;;iBAwFlC,oBAAoB,iCAAiC;;;;;;;iBAoHrD,qBAAqB,GAAG;;;;;;;;;;cA8D3B,wBAAwB,SAAS,OAAO;;;;;;;;;cAoExC,wBAAwB,eAAe,cAAc;;iBAqElD,+BAA+B;;iBCrc/B,6BACd,OAAO,uBAAuB,mBAC9B,qBACC;;cA4BU,mCACA,oBAAoB,uBAAuB;WAE7C;WACA;WAEA;WACA;;;;WACA;WACA;;;;EAKH,QACJ,OAAO,uBAAuB,mBAC9B,KAAK,iBACJ,QAAQ;;cAUA,2BAAyB;cCHzB,wBAAwB;cC3BxB,uBAAuB;cCGvB,yBAAyB;cCPzB,+BAA+B;;;;;;;;;;cCP/B,sCAAsC"}
|
|
@@ -3,32 +3,31 @@ import { c as ValidationError, t as AgentEvalError } from "./errors-E9I2hldP.js"
|
|
|
3
3
|
import { c as AgentProfileJson, n as AgentProfileCell } from "./agent-profile-cell-BTsrta0H.js";
|
|
4
4
|
import { h as RunStatus, o as FailureClass, r as BudgetSpec } from "./schema-CkIvnmLU.js";
|
|
5
5
|
import { a as RunRecord, c as RunSplitTag } from "./run-record-kuOr3BCF.js";
|
|
6
|
-
import { i as AnalystFinding, m as EvidenceRef } from "./types-
|
|
6
|
+
import { i as AnalystFinding, m as EvidenceRef } from "./types-fuOwNq1C.js";
|
|
7
7
|
import { B as LlmCallRequest, H as LlmChargeBounds, O as ChatClient, V as LlmCallResult, X as LlmUsage, h as JudgeFn, ut as ServedModelCheck, y as ProductClientConfig } from "./cluster-Bj90LK-1.js";
|
|
8
8
|
import { E as PairedBootstrapResult, T as PairedBootstrapOptions } from "./index-CKjqN9_U.js";
|
|
9
9
|
import { t as DefaultVerdict } from "./verdict-D_qiBQ6_.js";
|
|
10
|
-
import "./run-improvement-loop-
|
|
11
|
-
import { S as JudgeConfig, w as JudgeScore } from "./types-
|
|
10
|
+
import "./run-improvement-loop-BfwOUudy.js";
|
|
11
|
+
import { S as JudgeConfig, w as JudgeScore } from "./types-BMSDkS8l.js";
|
|
12
12
|
import { s as TraceStore } from "./store-CMs5wGXP.js";
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./campaign-evidence-
|
|
13
|
+
import "./index-BqAPIToS.js";
|
|
14
|
+
import "./campaign-evidence-BojANgU7.js";
|
|
15
15
|
import { o as TraceEmitter } from "./emitter-Cw8ijO3v.js";
|
|
16
16
|
import { t as HarnessAssertion } from "./sandbox-harness-K3LuyORm.js";
|
|
17
|
-
import { t as AgentProfile } from "./agent-profile-
|
|
17
|
+
import { t as AgentProfile } from "./agent-profile-CRdalpZv.js";
|
|
18
18
|
import { r as DatasetScenario, t as Dataset } from "./dataset-DThC1S6G.js";
|
|
19
19
|
import { n as Layer } from "./multi-layer-verifier-lM4aVN78.js";
|
|
20
|
-
import "./analyze-runs-
|
|
21
|
-
import "./define-agent-eval-
|
|
22
|
-
import "./default-registry-
|
|
23
|
-
import "./exact-types-
|
|
24
|
-
import "./systemone-
|
|
25
|
-
import "./
|
|
26
|
-
import "./
|
|
27
|
-
import "./index-Ucp54Pcl.js";
|
|
20
|
+
import "./analyze-runs-xjKBBqIB.js";
|
|
21
|
+
import "./define-agent-eval-Cjc0wWnO.js";
|
|
22
|
+
import "./default-registry-xoX0PMCb.js";
|
|
23
|
+
import "./exact-types-DjuabhUV.js";
|
|
24
|
+
import "./systemone-DzY-2Zri.js";
|
|
25
|
+
import "./registry-CIjC6SdV.js";
|
|
26
|
+
import "./index-DKpMyD_Z.js";
|
|
28
27
|
import { d as Trajectory, m as TrajectoryStepRef, p as TrajectoryStep } from "./tool-waste-CIhtU1ad.js";
|
|
29
|
-
import "./types-
|
|
30
|
-
import { B as ControlRuntimeConfig, H as ControlSeverity, R as ControlEvalResult, a as FeedbackLabel, v as ProposedSideEffect, z as ControlRunResult } from "./feedback-trajectory-
|
|
31
|
-
import "./store-tool-spans-
|
|
28
|
+
import "./types-D_PfKC59.js";
|
|
29
|
+
import { B as ControlRuntimeConfig, H as ControlSeverity, R as ControlEvalResult, a as FeedbackLabel, v as ProposedSideEffect, z as ControlRunResult } from "./feedback-trajectory-BMkJezPc.js";
|
|
30
|
+
import "./store-tool-spans-DniaFwjM.js";
|
|
32
31
|
import { SpanKind } from "@tangle-network/agent-trace-contract";
|
|
33
32
|
declare class CostCeilingReachedError extends ValidationError {
|
|
34
33
|
constructor(ceilingUsd: number, committedUsd: number, requestedUsd: number, phase: string, actor: string);
|
|
@@ -3399,4 +3398,4 @@ declare function assertNotContains(name: string, actual: string, forbidden: stri
|
|
|
3399
3398
|
declare function assertEventCount(name: string, count: number, min: number, max?: number): HarnessAssertion;
|
|
3400
3399
|
declare function assertHasField(name: string, obj: Record<string, unknown>, field: string): HarnessAssertion;
|
|
3401
3400
|
export { EnsembleAggregate as $, makePolicyEditCandidateRecord as $i, ReviewInput as $n, pairedDeltaTest as $r, TraceContract as $t, contentHash as A, AssertCapabilityHeadroomOptions as Ai, PromptRegistry as An, RuntimeTrajectoryHookEvent as Ar, checkCanaries as At, evaluateOracles as B, PolicyEditAdmissionOptions as Bi, ReflectionContext as Bn, ProductBenchmarkExportResult as Br, evaluateTraceContract as Bt, runAgentControlLoop as C, errorStreakDetector as Ci, aggregateRunScore as Cn, runBoundedProcess as Cr, DeployRunner as Ct, index_d_exports as D, CostSummary as Di, ReferenceReplayRun as Dn, ProjectRuntimeTrajectoryEvidenceOptions as Dr, viteDeployRunner as Dt, BudgetGuard as E, CostEntry as Ei, ReferenceReplayCaseRun as En, proposeSynthesisTargets as Er, deployGateLayer as Et, gateTreatmentApplied as F, assertCapabilityHeadroom as Fi, ModelEndpointCheck as Fn, ProductBenchmarkSplit as Fr, TraceContractSpec as Ft, KeywordCoverageResult as G, PolicyEditGainDirection as Gi, LlmReviewerConfig as Gn, HeldOutPartition as Gr, ContractRuleExecution as Gt, KeywordConceptSpec as H, PolicyEditCandidateRecord as Hi, TrialTrace as Hn, exportProductBenchmark as Hr, ArgumentCheck as Ht, Oracle as I, capabilityHeadroom as Ii, ModelEndpointRequest as In, ProductBenchmarkValidationReport as Ir, compileTraceContractSpec as It, EnsembleJudgeOptions as J, PolicyEditRisk as Ji, ProposeOutput as Jn, TrainSelectionTestPartition as Jr, ContractStatus as Jt, runKeywordCoverageJudge as K, PolicyEditGainUnit as Ki, ProposeFn as Kn, PartitionHeldOutOptions as Kr, ContractRun as Kt, OracleObservation as L, FindingToPolicyEditOptions as Li, preflightModels as Ln, assertProductBenchmarkRun as Lr, lintTraceContractSpec as Lt, TreatmentGate as M, CapabilityHeadroomResult as Mi, ModelSeats as Mn, RuntimeTrajectoryRunRecord as Mr, ActionPolicyDecision as Mt, TreatmentGateInput as N, HeadroomInput as Ni, resolveSeat as Nn, projectRuntimeTrajectoryEvidence as Nr, evaluateActionPolicy as Nt, VerdictCacheStore as O, CostTracker as Oi, ReferenceReplaySplit as On, RuntimeTrajectoryEvidenceProjection as Or, wranglerDeployRunner as Ot, TreatmentGateOptions as P, TaskHeadroom as Pi, seatPresets as Pn, ProductBenchmarkManifest as Pr, ContractLintFinding as Pt, withJudgeRetry as Q, PolicyEditTargetSurface as Qi, ReviewFn as Qn, minimumPairsForPairedDeltaTest as Qr, SpanPredicate as Qt, OracleReport as R, PolicyEdit as Ri, RunRecordBackend as Rn, readProductBenchmarkManifest as Rr, explainTraceContract as Rt, subjectiveEval as S, StreamingDetector as Si, RunScoreWeights as Sn, DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS as Sr, DeployRunResult as St, BudgetBreachError as T, repeatedActionDetector as Ti, SteeringBundle as Tn, SynthesisTarget as Tr, WranglerDeployRunnerInput as Tt, KeywordCoverageFinding as U, PolicyEditChange as Ui, buildReflectionPrompt as Un, exportProductBenchmarkRuns as Ur, ContractCheckResult as Ut, jsonShape as V, PolicyEditAxis as Vi, ReflectionProposal as Vn, ProductBenchmarkSingleRunExportOptions as Vr, traceContract as Vt, KeywordCoverageOptions as W, PolicyEditExpectedGain as Wi, parseReflectionResponse as Wn, productBenchmarkRepoIdentity as Wr, ContractRule as Wt, JudgeRetryOutcome as X, PolicyEditSource as Xi, ProposeReviewReport as Xn, PairedDeltaTestOptions as Xr, OrderMode as Xt, ensembleJudge as Y, PolicyEditSchemaVersion as Yi, ProposeReviewConfig as Yn, partitionHeldOut as Yr, ContractVerdict as Yt, JudgeRetryPolicy as Z, PolicyEditTarget as Zi, Review as Zn, PairedDeltaTestResult as Zr, RetryWrite as Zt, blockingKnowledgeEval as _, extractErrorCount as _i, CounterfactualRunner as _n, RunCommandInput as _r, NoLeakOptions as _t, assertHttpOk as a, costReceiptFromLlmError as aa, KnowledgeBundle as ai, ScorecardCellDiff as an, inMemoryReviewStore as ar, runIntentMatchJudge as at, userQuestionsForKnowledgeGaps as b, ErrorStreakOptions as bi, SteeringOptimizationRow as bn, BoundedProcessInput as br, blendHeldout as bt, assertStatus as c, costForTokenPricing as ca, KnowledgeReadinessReport as ci, ScorecardLogLine as cn, ExperimentRep as cr, SingleBackendDivergence as ct, MODEL_PRICING as d, CostCeilingReachedError as da, KnowledgeSensitivity as di, loadScorecard as dn, ImprovementVerdictResult as dr, BlendWeights as dt, isTransientLlmError as ea, LeaderboardOptions as ei, CellVerdict as en, ReviewMemoryEntry as er, JudgeVerdict as et, estimateCost as f, UserQuestion as fi, recordRuns as fn, DiscoverPersonasOptions as fr, FieldDestination as ft, acquisitionPlansForKnowledgeGaps as g, ExtractResult as gi, CounterfactualResult as gn, DirEntry as gr, JudgeScoreInput as gt, resolveModelPricing as h, ExtractOptions as hi, CounterfactualMutation as hn, CommandRunner as hr, HiddenLeak as ht, assertHasField as i, costReceiptFromLlm as ia, KnowledgeAcquisitionMode as ii, ScorecardCell as in, createLlmReviewer as ir, IntentMatchResult as it, fileVerdictCache as j, CapabilityHeadroomOptions as ji, hashContent as jn, RuntimeTrajectoryRecord as jr, ActionExecutionPolicy as jt, canonicalJson as k, ScenarioCost as ki, PromptHandle as kn, RuntimeTrajectoryEvidenceSummary as kr, CanaryLeak as kt, analyzeAntiSlop as l, costForUsage as la, KnowledgeRequirement as li, diffScorecard as ln, ExperimentStats as lr, SingleBackendReport as lt, isModelPriced as m, ErrorCountPattern as mi, CounterfactualContext as mn, discoverPersonas as mr, HiddenGradeResult as mt, assertEventCount as n, LlmCallError as na, leaderboard as ni, RecordRunsOptions as nn, Verification as nr, IntentMatchInput as nt, assertLatencyUnder as o, maximumChargeForLlmRequest as oa, KnowledgeFreshness as oi, ScorecardDiff as on, jsonlReviewStore as or, AssertSingleBackendOptions as ot, estimateTokens as p, ERROR_COUNT_PATTERNS as pi, recordRunsToScorecard as pn, DiscoveredPersona as pr, HiddenCriteriaGrader as pt, runKeywordCoverageJudgeUrl as q, PolicyEditInit as qi, ProposeInput as qn, TrainSelectionTestOptions as qr, ContractSpan as qt, assertExists as r, LlmResponseError as ra, DataAcquisitionPlan as ri, Scorecard as rn, VerifyFn as rr, IntentMatchOptions as rt, assertNotContains as s, CostResult as sa, KnowledgeImportance as si, ScorecardEntry as sn, runProposeReview as sr, BackendDescriptor as st, assertContains as t, stripFencedJson as ta, LeaderboardRow as ti, DiffScorecardOptions as tn, ReviewMemoryStore as tr, aggregateJudgeVerdicts as tt, createAntiSlopJudge as u, CostAccountingIncompleteError as ua, KnowledgeRequirementCategory as ui, formatScorecardDiff as un, ImprovementThresholds as ur, assertSingleBackend as ut, knowledgeReadinessTracePayload as v, DetectorEvent as vi, PairwiseSteeringOptimizer as vn, RunCommandResult as vr, RoutedField as vt, ProductClient as w, observeAll as wi, clamp01 as wn, ActiveLearningOptions as wr, ViteDeployRunnerInput as wt, objectiveEval as x, RepeatedActionOptions as xi, RunScore as xn, BoundedProcessResult as xr, DeployGateLayerInput as xt, scoreKnowledgeReadiness as y, DetectorSignal as yi, SteeringOptimizationResult as yn, localCommandRunner as yr, assertNoHiddenLeak as yt, OracleResult as z, PolicyEditAdmission as zi, jsonlRunRecordBackend as zn, ProductBenchmarkExportOptions as zr, checkTraceContracts as zt };
|
|
3402
|
-
//# sourceMappingURL=index-
|
|
3401
|
+
//# sourceMappingURL=index-xEM_SoCl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-xEM_SoCl.d.ts","names":[],"sources":["../src/cost-ledger/errors.ts","../src/cost-ledger/pricing.ts","../src/llm-client/accounting.ts","../src/llm-client/errors.ts","../src/llm-client/json.ts","../src/llm-client/resilience.ts","../src/analyst/policy-edit.ts","../src/capability-headroom.ts","../src/cost-tracker.ts","../src/detectors/index.ts","../src/error-count-extractor.ts","../src/knowledge/types.ts","../src/leaderboard.ts","../src/paired-delta-test.ts","../src/partition-held-out.ts","../src/product-benchmark/export.ts","../src/product-benchmark/index.ts","../src/runtime-trajectory.ts","../src/active-learning.ts","../src/bounded-process.ts","../src/command-runner.ts","../src/discover-personas.ts","../src/improvement-verdict.ts","../src/propose-review.ts","../src/reflective-mutation.ts","../src/eval-trace-store.ts","../src/integrity/preflight.ts","../src/model-seats.ts","../src/prompt-registry.ts","../src/reference-replay.ts","../src/steering.ts","../src/run-score.ts","../src/steering-optimizer.ts","../src/counterfactual.ts","../src/scorecard.ts","../src/trace-contracts/types.ts","../src/trace-contracts/builder.ts","../src/trace-contracts/evaluate.ts","../src/trace-contracts/explain.ts","../src/trace-contracts/spec.ts","../src/action-policy.ts","../src/contamination-guard.ts","../src/deploy-gate-layer.ts","../src/hidden-criteria-grading.ts","../src/integrity/single-backend.ts","../src/intent-match-judge.ts","../src/judge-ensemble.ts","../src/judge-retry.ts","../src/judge-panel.ts","../src/keyword-coverage-judge.ts","../src/oracle.ts","../src/treatment-gate.ts","../src/verdict-cache.ts","../src/profile/baselines.ts","../src/profile/index.ts","../src/budget-guard.ts","../src/client.ts","../src/control-runtime.ts","../src/control-runtime/policy.ts","../src/knowledge/readiness.ts","../src/metrics.ts","../src/anti-slop.ts","../src/sandbox-assertions.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMa,gCAAgC;EAEzC,YAAA,oBACA,sBACA,sBACA,eACA;;cAQS,sCAAsC;UCflC;EACf;EACA;;iBAGc,aAAa,eAAe,OAAO,YAAY;;iBAc/C,oBACd,SAAS,oBACT,OAAO,KAAK;iBCpBE,2BACd,SAAS,KACP,0GAGF,UAAS,kBACR;;;;;;iBAoCa,mBACd,QAAQ,eACR,qBAAqB,qBACpB;;iBA6Ba,wBACd,OAAO,OACP,qBAAqB,qBACpB;cChFU,qBAAqB;WAGd;WACA;WACA;EAHhB,YAAA,iBACgB,gBACA,cACA;;;;;cASP,yBAAyB;WAGlB,QAAQ;EADxB,YAAA,iBACgB,QAAQ,eACxB;IAAY;;;;;;;;iBCXA,gBAAgB;;;;;;;;;;;;iBCgFhB,oBAAoB;KCnFxB;cAEN;KAaM,yBAAyB;cAE/B;KAUM,kCAAkC;KAClC;KACA;KACA;UAEK;EACf,SAAS;;;EAGT;;;EAGA,mBAAmB;;EAEnB;;KAGU;EAEN;EACA;EACA;;EAEA;;EAGA;EACA;EACA;EACA,QAAQ;;UAGG;;EAEf;EACA,WAAW;;EAEX;EACA,OAAO;EACP;;UAGe;EACf;EACA;EACA,cAAc;;EAEd;;UAGe;EACf,eAAe;EACf;EACA,MAAM;EACN,QAAQ;EACR,QAAQ;EACR;EACA,cAAc;EACd;E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