modelrig 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +140 -0
- package/README.md +66 -14
- package/dist/adapters/deepseek.d.ts.map +1 -1
- package/dist/adapters/deepseek.js +8 -1
- package/dist/adapters/gemini.d.ts +6 -0
- package/dist/adapters/gemini.d.ts.map +1 -1
- package/dist/adapters/gemini.js +14 -4
- package/dist/adapters/grok.d.ts +7 -0
- package/dist/adapters/grok.d.ts.map +1 -1
- package/dist/adapters/grok.js +23 -1
- package/dist/adapters/openai-compat.d.ts +7 -0
- package/dist/adapters/openai-compat.d.ts.map +1 -1
- package/dist/adapters/openai-compat.js +24 -1
- package/dist/adapters/openai.d.ts +7 -0
- package/dist/adapters/openai.d.ts.map +1 -1
- package/dist/adapters/openai.js +23 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -4
- package/dist/config.d.ts +7 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -25
- package/dist/init/init-cli.d.ts.map +1 -1
- package/dist/init/init-cli.js +2 -1
- package/dist/init/observe-cli.d.ts.map +1 -1
- package/dist/init/observe-cli.js +2 -1
- package/dist/routes/sampling-config.d.ts.map +1 -1
- package/dist/routes/sampling-config.js +11 -0
- package/dist/run/dispatch.d.ts +14 -2
- package/dist/run/dispatch.d.ts.map +1 -1
- package/dist/run/dispatch.js +31 -2
- package/dist/run/ladder-key.d.ts +40 -0
- package/dist/run/ladder-key.d.ts.map +1 -0
- package/dist/run/ladder-key.js +39 -0
- package/dist/run/raw-support.d.ts +123 -0
- package/dist/run/raw-support.d.ts.map +1 -0
- package/dist/run/raw-support.js +150 -0
- package/dist/run/raw.d.ts +41 -11
- package/dist/run/raw.d.ts.map +1 -1
- package/dist/run/raw.js +67 -23
- package/dist/run/rawonly.d.ts +60 -0
- package/dist/run/rawonly.d.ts.map +1 -0
- package/dist/run/rawonly.js +120 -0
- package/dist/run/record-attempt.d.ts +14 -1
- package/dist/run/record-attempt.d.ts.map +1 -1
- package/dist/run/record-attempt.js +43 -2
- package/dist/run/resolve.d.ts +4 -0
- package/dist/run/resolve.d.ts.map +1 -1
- package/dist/run/resolve.js +9 -2
- package/dist/run/routing-docs.d.ts +73 -0
- package/dist/run/routing-docs.d.ts.map +1 -0
- package/dist/run/routing-docs.js +222 -0
- package/dist/run/run.d.ts.map +1 -1
- package/dist/run/run.js +24 -22
- package/dist/telemetry/exporter.d.ts.map +1 -1
- package/dist/telemetry/exporter.js +6 -0
- package/dist/telemetry/ingest-protocol.d.ts +7 -0
- package/dist/telemetry/ingest-protocol.d.ts.map +1 -1
- package/dist/telemetry/load-error-report.d.ts.map +1 -1
- package/dist/telemetry/load-error-report.js +4 -1
- package/dist/telemetry/otel-map.d.ts.map +1 -1
- package/dist/telemetry/otel-map.js +8 -0
- package/dist/telemetry/store-migrations.d.ts +15 -0
- package/dist/telemetry/store-migrations.d.ts.map +1 -0
- package/dist/telemetry/store-migrations.js +119 -0
- package/dist/telemetry/store.d.ts.map +1 -1
- package/dist/telemetry/store.js +26 -93
- package/dist/types/failures-teaching.js +1 -1
- package/dist/types/provider.d.ts +13 -0
- package/dist/types/provider.d.ts.map +1 -1
- package/dist/types/route.d.ts +6 -1
- package/dist/types/route.d.ts.map +1 -1
- package/dist/types/telemetry.d.ts +31 -0
- package/dist/types/telemetry.d.ts.map +1 -1
- package/dist/validate-cli.d.ts.map +1 -1
- package/dist/validate-cli.js +17 -4
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { CapabilityFlag, ProviderId } from "./types/provider";
|
|
7
7
|
export interface RigConfig {
|
|
8
|
-
|
|
8
|
+
/** Directory of route bundles, OR `null` for a first-class runRaw-only rig
|
|
9
|
+
* (CE-8, `ce8-runraw-only-rig-spec-plan.md` R1). With `null`, createRig skips
|
|
10
|
+
* route loading, the `rig.yaml` manifest, and the serveability gate; the raw
|
|
11
|
+
* lane works unchanged and every route-dependent surface throws a teaching
|
|
12
|
+
* `invariant_violation`. `loadConfigFromEnv` stays string-only (R2) — opt out
|
|
13
|
+
* in code: `createRig({ ...loadConfigFromEnv(), routesDir: null })`. */
|
|
14
|
+
readonly routesDir: string | null;
|
|
9
15
|
/** OPTIONAL directory of deployment-bundled INTERNAL infra routes, merged
|
|
10
16
|
* INTO `routesDir`'s routes (union, not replacement) by createRig. The server
|
|
11
17
|
* passes its gateway-internal-routes/ here so run-judge@v1 /
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,WAAW,SAAS;IACxB;;;;;4EAKwE;IACxE,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;qFAIiF;IACjF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,SAAS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/dist/index.d.ts
CHANGED
|
@@ -132,8 +132,9 @@ export { bundleFromResolved } from "./routes/resolved-bundle";
|
|
|
132
132
|
export type { ResolvedRouteBundle } from "./routes/resolved-bundle";
|
|
133
133
|
export { runRaw, runRawStream } from "./run/raw";
|
|
134
134
|
export type { RawRunInput, RawRunDeps } from "./run/raw";
|
|
135
|
+
export { requireRoutesDir, rawOnlyRouteFailure, RAW_ONLY_FIX_HINT } from "./run/rawonly";
|
|
135
136
|
export type { ToolDefinition, ToolChoice, ToolCall, AdapterStreamEvent } from "./types/provider";
|
|
136
|
-
export { PROVIDER_IDS } from "./types/provider";
|
|
137
|
+
export { PROVIDER_IDS, ALL_CAPABILITY_FLAGS } from "./types/provider";
|
|
137
138
|
export { classifyLane, CHAT_COMPLETIONS_PATH, MODELS_PATH, GATEWAY_PROTOCOL_VERSION, MODELRIG_HEADERS, MODELRIG_REQUEST_HEADERS, SSE_DONE, } from "./gateway/http-protocol";
|
|
138
139
|
export type { Lane, LaneResolution, ChatMessage, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionChoice, ChatCompletionUsage, ChatCompletionChunk, ChatCompletionChunkChoice, TerminalValidationEvent, } from "./gateway/http-protocol";
|
|
139
140
|
export { openCaptureStore } from "./telemetry/capture";
|
|
@@ -172,7 +173,8 @@ export type { RouteDraft, RouteDraftSpec, DraftCandidate, DraftFile, WriteDraftR
|
|
|
172
173
|
export { checkServeability, serveabilityWarnings } from "./routes/serveability";
|
|
173
174
|
export type { ServeabilityWarning } from "./routes/serveability";
|
|
174
175
|
export { PROVIDER_KEY_ENV } from "./config";
|
|
175
|
-
export { createGeminiAdapter } from "./adapters/gemini";
|
|
176
|
+
export { createGeminiAdapter, GEMINI_THINKING_CAPABLE_MODELS } from "./adapters/gemini";
|
|
177
|
+
export * from "./run/raw-support";
|
|
176
178
|
export { createOpenAIAdapter } from "./adapters/openai";
|
|
177
179
|
export { createDeepSeekAdapter } from "./adapters/deepseek";
|
|
178
180
|
export { createAnthropicAdapter } from "./adapters/anthropic";
|
|
@@ -189,7 +191,7 @@ export { getCachePolicy, seededCachePolicyProviders } from "./registry/cache-pol
|
|
|
189
191
|
export type { CachePolicy } from "./registry/cache-policy";
|
|
190
192
|
export { synthesizeFromFlat, tierRates, describePricingV2, SNAPSHOT_BASIS } from "./registry/pricing-shape";
|
|
191
193
|
export type { ModelPricingV2, ServingTierName, PricingV2Display, } from "./registry/pricing-shape";
|
|
192
|
-
export type { CandidateRef, CapabilityFlag, ProviderId, ServiceTier, ReasoningParams, ReasoningLevel, AdapterUsage } from "./types/provider";
|
|
194
|
+
export type { CandidateRef, CapabilityFlag, ProviderId, ServiceTier, ReasoningParams, ReasoningLevel, AdapterUsage, ProviderAdapter, AdapterRequest, AdapterResult } from "./types/provider";
|
|
193
195
|
export { loadManifest } from "./routes/manifest";
|
|
194
196
|
export type { RigManifest, DimensionSpec } from "./routes/manifest";
|
|
195
197
|
export { fingerprintSchema } from "./registry/fingerprint";
|
|
@@ -204,10 +206,8 @@ export type { ModelFacts, ScopedFact, CredentialOwnership, CredentialScopedFact,
|
|
|
204
206
|
export { computeParity } from "./registry/parity";
|
|
205
207
|
export type { ParityListEntry, ParityReport, ParityGap } from "./registry/parity";
|
|
206
208
|
export type { RegistryFacts } from "./registry/facts";
|
|
207
|
-
export { ALL_CAPABILITY_FLAGS } from "./types/provider";
|
|
208
209
|
export type { SchemaFingerprint, TaskCategory } from "./registry/fingerprint";
|
|
209
|
-
export type {
|
|
210
|
-
export type { TelemetryStore, TelemetryRow, FeedbackRow } from "./types/telemetry";
|
|
210
|
+
export type { TelemetryStore, TelemetryRow, FeedbackRow, TelemetryRung } from "./types/telemetry";
|
|
211
211
|
export { buildFeedbackRow } from "./feedback/feedback";
|
|
212
212
|
export type { FeedbackTarget, FeedbackOpts } from "./feedback/feedback";
|
|
213
213
|
export { computeCoverage, RUNG1_MIN_FEEDBACK } from "./feedback/coverage";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,GACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -24,13 +24,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.computeOdometer = exports.createSwapsClient = exports.executeSwap = exports.buildRestoreYaml = exports.buildSwapChange = exports.runTelemetryQuery = exports.QueryGrammarError = exports.compileQuery = exports.writePriorsCells = exports.aggregatePairwiseFromTelemetry = exports.aggregatePriors = exports.DEFAULT_WATCH_MONTHLY_USD = exports.watchEnvelopeKey = exports.reserveWatchBudget = exports.WATCH_STATE_KEY = exports.createFileWatchStateStore = exports.createControlPlaneWatchStateStore = exports.createWatchStateStore = exports.saveWatchState = exports.loadWatchState = exports.computeWatchEvents = exports.buildPriceUniverse = void 0;
|
|
27
|
+
exports.MODELRIG_REQUEST_HEADERS = exports.MODELRIG_HEADERS = exports.GATEWAY_PROTOCOL_VERSION = exports.MODELS_PATH = exports.CHAT_COMPLETIONS_PATH = exports.classifyLane = exports.ALL_CAPABILITY_FLAGS = exports.PROVIDER_IDS = exports.RAW_ONLY_FIX_HINT = exports.rawOnlyRouteFailure = exports.requireRoutesDir = exports.runRawStream = exports.runRaw = exports.bundleFromResolved = exports.runStream = exports.KEY_SHAPED_PREFIXES = exports.containsKeyShapedString = exports.scrubSecrets = exports.hasScope = exports.parseScopes = exports.redactApiKey = exports.looksLikeApiKey = exports.hashApiKeySecret = exports.API_KEY_SECRET_BYTES = exports.API_KEY_SCOPES = exports.API_KEY_PREFIX = exports.resolveArtifactsConfig = exports.resolveOtlpConfig = exports.parseOtlpHeaders = exports.decodeOtlpProtobufTraces = exports.looksLikeLogsPayload = exports.normalizeOtlpTraces = exports.startOtlpEmitterIfConfigured = exports.createOtlpEmitter = exports.TRACEPARENT_TAG = exports.parseTraceparent = exports.buildExportTraceRequest = exports.inferenceToSpan = exports.SEMCONV_VERSION = exports.SinkSendError = exports.createDirectSink = exports.createApiSink = exports.createTelemetryExporter = exports.DEFAULT_INGEST_URL = exports.INGEST_PROTOCOL_VERSION_V1 = exports.INGEST_PROTOCOL_VERSION = exports.INGEST_PATH = exports.foreignOrgFeedback = exports.stampBatch = exports.loadConfigFromEnv = void 0;
|
|
28
|
+
exports.GEMINI_THINKING_CAPABLE_MODELS = exports.createGeminiAdapter = exports.PROVIDER_KEY_ENV = exports.serveabilityWarnings = exports.checkServeability = exports.writeRouteDraft = exports.buildRouteDraft = exports.splitModelKey = exports.seedCandidates = exports.loadRegistryRows = exports.signatureFor = exports.PROVIDER_SIGNATURES = exports.readObjectLiteral = exports.findCallSitesInText = exports.scanRepoForCallSites = exports.capabilitiesFor = exports.routeNameFor = exports.buildMigrationMarkdown = exports.runInit = exports.renderConfigErrorForTerminal = exports.describeConfigFailure = exports.teachConfigError = exports.classifyConfigProblem = exports.CONFIG_TEACHING = exports.mergeLoadedRoutes = exports.loadRoutesWithExtra = exports.loadRoutes = exports.RouteConfigError = exports.renderFailureForTerminal = exports.teach = exports.FAILURE_TEACHING = exports.isRigFailure = exports.RigFailureError = exports.extractCitations = exports.createTavilySearchProvider = exports.wilson95 = exports.aggregateVariantMetrics = exports.OUTPUT_MAX_BYTES = exports.retentionExpiry = exports.truncateOutput = exports.selectArmsToKeep = exports.buildBakeoffSamples = exports.createBakeoffSamplesClient = exports.computeProposal = exports.mirrorBakeoff = exports.runBakeoff = exports.replayVariant = exports.openTelemetryStore = exports.openCaptureStore = exports.SSE_DONE = void 0;
|
|
29
|
+
exports.evaluateConformDegradation = exports.runMonitorCycle = exports.assertTransition = exports.createProposalsClient = exports.explainCacheContext = exports.PROPOSAL_TTL_DAYS = exports.triggerHash = exports.evaluateEvents = exports.RUNG1_MIN_FEEDBACK = exports.computeCoverage = exports.buildFeedbackRow = exports.computeParity = exports.factsUnderCredential = exports.factsFor = exports.PROBE_FRESHNESS_SLO_DAYS = exports.stalenessSentence = exports.probeFreshness = exports.callNotesFor = exports.PREDICATE_GLOSS = exports.ALL_CAPABILITY_PREDICATES = exports.explainEmptySelection = exports.hasCapability = exports.selectModels = exports.parseCapabilityQuery = exports.capabilityFactsFromEntry = exports.loadRegistryFacts = exports.fingerprintSchema = exports.loadManifest = exports.SNAPSHOT_BASIS = exports.describePricingV2 = exports.tierRates = exports.synthesizeFromFlat = exports.seededCachePolicyProviders = exports.getCachePolicy = exports.DEFAULT_CACHE_HYSTERESIS = exports.classifyCacheVerdict = exports.effectiveInputRate = exports.estimateCostUsd = exports.getPricingV2 = exports.getPricing = exports.resolveCandidates = exports.OPENAI_COMPAT_HOSTS = exports.shapeFireworksModelId = exports.classifyCompatFailure = exports.buildOpenAICompatParams = exports.createOpenAICompatAdapter = exports.createGrokAdapter = exports.createAnthropicAdapter = exports.createDeepSeekAdapter = exports.createOpenAIAdapter = void 0;
|
|
30
|
+
exports.computeOdometer = exports.createSwapsClient = exports.executeSwap = exports.buildRestoreYaml = exports.buildSwapChange = exports.runTelemetryQuery = exports.QueryGrammarError = exports.compileQuery = exports.writePriorsCells = exports.aggregatePairwiseFromTelemetry = exports.aggregatePriors = exports.DEFAULT_WATCH_MONTHLY_USD = exports.watchEnvelopeKey = exports.reserveWatchBudget = exports.WATCH_STATE_KEY = exports.createFileWatchStateStore = exports.createControlPlaneWatchStateStore = exports.createWatchStateStore = exports.saveWatchState = exports.loadWatchState = exports.computeWatchEvents = exports.buildPriceUniverse = exports.runWatchCycle = exports.DEFAULT_MONITOR_CONFIG = exports.createMonitorReads = exports.rollupConformRate = void 0;
|
|
31
31
|
exports.createRig = createRig;
|
|
32
32
|
const build_adapters_1 = require("./adapters/build-adapters");
|
|
33
|
-
const
|
|
33
|
+
const rawonly_1 = require("./run/rawonly");
|
|
34
34
|
const resolved_bundle_1 = require("./routes/resolved-bundle");
|
|
35
35
|
const serveability_1 = require("./routes/serveability");
|
|
36
36
|
const manifest_1 = require("./routes/manifest");
|
|
@@ -46,7 +46,6 @@ const artifact_store_1 = require("./telemetry/artifact-store");
|
|
|
46
46
|
const artifacts_1 = require("./artifacts");
|
|
47
47
|
const exporter_1 = require("./telemetry/exporter");
|
|
48
48
|
const exporter_setup_1 = require("./telemetry/exporter-setup");
|
|
49
|
-
const load_error_report_1 = require("./telemetry/load-error-report");
|
|
50
49
|
const api_fetcher_1 = require("./settings/api-fetcher");
|
|
51
50
|
const status_1 = require("./status");
|
|
52
51
|
const deprecations_1 = require("./deprecations");
|
|
@@ -62,20 +61,12 @@ const provider_1 = require("./types/provider");
|
|
|
62
61
|
/** Per-variant replay spend ceiling when the caller doesn't set one. */
|
|
63
62
|
const DEFAULT_REPLAY_ENVELOPE_USD = 10;
|
|
64
63
|
function createRig(config) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
catch (err) {
|
|
70
|
-
// A malformed bundle is teachable, not just fatal: mirror the diagnosis to
|
|
71
|
-
// the console before re-throwing (the rig still cannot serve).
|
|
72
|
-
if (err instanceof loader_1.RouteConfigError)
|
|
73
|
-
(0, load_error_report_1.reportLoadError)(config, err);
|
|
74
|
-
throw err;
|
|
75
|
-
}
|
|
64
|
+
// CE-8 (R1): `routesDir: null` is a first-class runRaw-only rig — skip route
|
|
65
|
+
// loading, the manifest, and the serveability gate; route methods throw below.
|
|
66
|
+
const routes = config.routesDir === null ? (0, rawonly_1.emptyRouteStore)() : (0, rawonly_1.loadRoutesOrReport)(config, config.routesDir);
|
|
76
67
|
// rig.yaml lives at the rig dir root, one level above routes/
|
|
77
68
|
// (modelrig/rig.yaml next to modelrig/routes/ — cost-dimensions-design §2a).
|
|
78
|
-
const manifest = (0, manifest_1.loadManifest)((0, node_path_1.dirname)(config.routesDir));
|
|
69
|
+
const manifest = config.routesDir === null ? null : (0, manifest_1.loadManifest)((0, node_path_1.dirname)(config.routesDir));
|
|
79
70
|
// Registry facts load BEFORE adapters: the A1 compat hosts take their
|
|
80
71
|
// capability profile from the registry, never from the dialect.
|
|
81
72
|
const registryFacts = (0, facts_1.loadRegistryFacts)(config.registryPath);
|
|
@@ -281,6 +272,10 @@ function createRig(config) {
|
|
|
281
272
|
closeStores();
|
|
282
273
|
return Promise.resolve();
|
|
283
274
|
},
|
|
275
|
+
// CE-8 (R1): a runRaw-only rig (routesDir: null) has no routes — override
|
|
276
|
+
// every route-dependent surface to throw a teaching invariant_violation.
|
|
277
|
+
// Spread LAST so it wins over the real methods above; empty for a routed rig.
|
|
278
|
+
...(config.routesDir === null ? (0, rawonly_1.rawOnlyRouteMethods)() : {}),
|
|
284
279
|
};
|
|
285
280
|
}
|
|
286
281
|
var config_1 = require("./config");
|
|
@@ -362,8 +357,15 @@ Object.defineProperty(exports, "bundleFromResolved", { enumerable: true, get: fu
|
|
|
362
357
|
var raw_2 = require("./run/raw");
|
|
363
358
|
Object.defineProperty(exports, "runRaw", { enumerable: true, get: function () { return raw_2.runRaw; } });
|
|
364
359
|
Object.defineProperty(exports, "runRawStream", { enumerable: true, get: function () { return raw_2.runRawStream; } });
|
|
360
|
+
// CE-8 runRaw-only (routesDir: null): the string-narrowing guard route-required
|
|
361
|
+
// consumers (server, oracle) use, plus the teaching failure it throws.
|
|
362
|
+
var rawonly_2 = require("./run/rawonly");
|
|
363
|
+
Object.defineProperty(exports, "requireRoutesDir", { enumerable: true, get: function () { return rawonly_2.requireRoutesDir; } });
|
|
364
|
+
Object.defineProperty(exports, "rawOnlyRouteFailure", { enumerable: true, get: function () { return rawonly_2.rawOnlyRouteFailure; } });
|
|
365
|
+
Object.defineProperty(exports, "RAW_ONLY_FIX_HINT", { enumerable: true, get: function () { return rawonly_2.RAW_ONLY_FIX_HINT; } });
|
|
365
366
|
var provider_2 = require("./types/provider");
|
|
366
367
|
Object.defineProperty(exports, "PROVIDER_IDS", { enumerable: true, get: function () { return provider_2.PROVIDER_IDS; } });
|
|
368
|
+
Object.defineProperty(exports, "ALL_CAPABILITY_FLAGS", { enumerable: true, get: function () { return provider_2.ALL_CAPABILITY_FLAGS; } });
|
|
367
369
|
// The HTTP gateway wire contract (G-1/G-5) — shared with modelrig-server, like
|
|
368
370
|
// ingest-protocol.ts. Types + the lane-disambiguation rule + header names.
|
|
369
371
|
var http_protocol_1 = require("./gateway/http-protocol");
|
|
@@ -407,11 +409,11 @@ var failures_teaching_1 = require("./types/failures-teaching");
|
|
|
407
409
|
Object.defineProperty(exports, "FAILURE_TEACHING", { enumerable: true, get: function () { return failures_teaching_1.FAILURE_TEACHING; } });
|
|
408
410
|
Object.defineProperty(exports, "teach", { enumerable: true, get: function () { return failures_teaching_1.teach; } });
|
|
409
411
|
Object.defineProperty(exports, "renderFailureForTerminal", { enumerable: true, get: function () { return failures_teaching_1.renderFailureForTerminal; } });
|
|
410
|
-
var
|
|
411
|
-
Object.defineProperty(exports, "RouteConfigError", { enumerable: true, get: function () { return
|
|
412
|
-
Object.defineProperty(exports, "loadRoutes", { enumerable: true, get: function () { return
|
|
413
|
-
Object.defineProperty(exports, "loadRoutesWithExtra", { enumerable: true, get: function () { return
|
|
414
|
-
Object.defineProperty(exports, "mergeLoadedRoutes", { enumerable: true, get: function () { return
|
|
412
|
+
var loader_1 = require("./routes/loader");
|
|
413
|
+
Object.defineProperty(exports, "RouteConfigError", { enumerable: true, get: function () { return loader_1.RouteConfigError; } });
|
|
414
|
+
Object.defineProperty(exports, "loadRoutes", { enumerable: true, get: function () { return loader_1.loadRoutes; } });
|
|
415
|
+
Object.defineProperty(exports, "loadRoutesWithExtra", { enumerable: true, get: function () { return loader_1.loadRoutesWithExtra; } });
|
|
416
|
+
Object.defineProperty(exports, "mergeLoadedRoutes", { enumerable: true, get: function () { return loader_1.mergeLoadedRoutes; } });
|
|
415
417
|
// Errors that teach, for LOAD-TIME config problems (onboarding-redesign §7 G2)
|
|
416
418
|
// — the RouteConfigError shapes a first-time author hits before any call runs.
|
|
417
419
|
var config_teaching_1 = require("./types/config-teaching");
|
|
@@ -452,6 +454,9 @@ Object.defineProperty(exports, "PROVIDER_KEY_ENV", { enumerable: true, get: func
|
|
|
452
454
|
// against their own single-candidate probe routes).
|
|
453
455
|
var gemini_1 = require("./adapters/gemini");
|
|
454
456
|
Object.defineProperty(exports, "createGeminiAdapter", { enumerable: true, get: function () { return gemini_1.createGeminiAdapter; } });
|
|
457
|
+
Object.defineProperty(exports, "GEMINI_THINKING_CAPABLE_MODELS", { enumerable: true, get: function () { return gemini_1.GEMINI_THINKING_CAPABLE_MODELS; } });
|
|
458
|
+
// CE-9 R5/R6 — the raw-lane provider × knob support matrix (single source of truth for the guard AND the docs) + `rawKnobSupport(p)` so customers don't duplicate our provider lists.
|
|
459
|
+
__exportStar(require("./run/raw-support"), exports);
|
|
455
460
|
var openai_1 = require("./adapters/openai");
|
|
456
461
|
Object.defineProperty(exports, "createOpenAIAdapter", { enumerable: true, get: function () { return openai_1.createOpenAIAdapter; } });
|
|
457
462
|
var deepseek_1 = require("./adapters/deepseek");
|
|
@@ -513,8 +518,6 @@ Object.defineProperty(exports, "factsFor", { enumerable: true, get: function ()
|
|
|
513
518
|
Object.defineProperty(exports, "factsUnderCredential", { enumerable: true, get: function () { return claims_1.factsUnderCredential; } });
|
|
514
519
|
var parity_1 = require("./registry/parity");
|
|
515
520
|
Object.defineProperty(exports, "computeParity", { enumerable: true, get: function () { return parity_1.computeParity; } });
|
|
516
|
-
var provider_3 = require("./types/provider");
|
|
517
|
-
Object.defineProperty(exports, "ALL_CAPABILITY_FLAGS", { enumerable: true, get: function () { return provider_3.ALL_CAPABILITY_FLAGS; } });
|
|
518
521
|
var feedback_2 = require("./feedback/feedback");
|
|
519
522
|
Object.defineProperty(exports, "buildFeedbackRow", { enumerable: true, get: function () { return feedback_2.buildFeedbackRow; } });
|
|
520
523
|
var coverage_1 = require("./feedback/coverage");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-cli.d.ts","sourceRoot":"","sources":["../../src/init/init-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"init-cli.d.ts","sourceRoot":"","sources":["../../src/init/init-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAwFnD"}
|
package/dist/init/init-cli.js
CHANGED
|
@@ -11,6 +11,7 @@ exports.cmdInit = cmdInit;
|
|
|
11
11
|
const node_fs_1 = require("node:fs");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
13
|
const config_1 = require("../config");
|
|
14
|
+
const rawonly_1 = require("../run/rawonly");
|
|
14
15
|
const rows_1 = require("../registry/rows");
|
|
15
16
|
const observe_cli_1 = require("./observe-cli");
|
|
16
17
|
const run_1 = require("./run");
|
|
@@ -20,7 +21,7 @@ function cmdInit(flags) {
|
|
|
20
21
|
return (0, observe_cli_1.cmdObserve)(flags);
|
|
21
22
|
const root = (0, node_path_1.resolve)(flags.positional[0] ?? ".");
|
|
22
23
|
const config = (0, config_1.loadConfigFromEnv)();
|
|
23
|
-
const draftsDir = flags.named.get("out") ?? (0, node_path_1.join)(config
|
|
24
|
+
const draftsDir = flags.named.get("out") ?? (0, node_path_1.join)((0, rawonly_1.requireRoutesDir)(config, "modelrig init"), "drafts");
|
|
24
25
|
const scope = (0, observe_cli_1.scopeFrom)(flags);
|
|
25
26
|
// Registry rows seed the challenger candidates. A missing/unbuilt registry
|
|
26
27
|
// is not fatal — drafts then carry the incumbent alone, and say so.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe-cli.d.ts","sourceRoot":"","sources":["../../src/init/observe-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"observe-cli.d.ts","sourceRoot":"","sources":["../../src/init/observe-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH;8EAC8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACpC;AAED;8EAC8E;AAC9E,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAK5E;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAgEtD"}
|
package/dist/init/observe-cli.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.cmdObserve = cmdObserve;
|
|
|
12
12
|
const node_fs_1 = require("node:fs");
|
|
13
13
|
const node_path_1 = require("node:path");
|
|
14
14
|
const config_1 = require("../config");
|
|
15
|
+
const rawonly_1 = require("../run/rawonly");
|
|
15
16
|
const observe_1 = require("./observe");
|
|
16
17
|
/** `--scope a,b` → the finder's scope narrowing (F-4). Comma-separated globs
|
|
17
18
|
* or path prefixes; absent = scan everything. Shared with `modelrig init`. */
|
|
@@ -26,7 +27,7 @@ function cmdObserve(flags) {
|
|
|
26
27
|
const root = (0, node_path_1.resolve)(flags.positional[0] ?? ".");
|
|
27
28
|
const config = (0, config_1.loadConfigFromEnv)();
|
|
28
29
|
// Sibling of the routes dir: <repo>/modelrig/observe by default.
|
|
29
|
-
const outDir = flags.named.get("out") ?? (0, node_path_1.join)((0, node_path_1.dirname)(
|
|
30
|
+
const outDir = flags.named.get("out") ?? (0, node_path_1.join)((0, node_path_1.dirname)((0, rawonly_1.requireRoutesDir)(config, "modelrig observe")), "observe");
|
|
30
31
|
const scope = scopeFrom(flags);
|
|
31
32
|
const result = (0, observe_1.runObserve)({
|
|
32
33
|
root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampling-config.d.ts","sourceRoot":"","sources":["../../src/routes/sampling-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMjE;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAAE,GACjB,cAAc,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"sampling-config.d.ts","sourceRoot":"","sources":["../../src/routes/sampling-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAMjE;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAAE,GACjB,cAAc,GAAG,SAAS,CAgD5B;AAED;yEACyE;AACzE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,SAAS,aAAa,EAAE,GACnC,MAAM,GAAG,IAAI,CAaf"}
|
|
@@ -27,6 +27,17 @@ function parseSampling(raw, field, problems) {
|
|
|
27
27
|
problems.push(`${field} must be an object {temperature?, top_p?, max_output_tokens?}`);
|
|
28
28
|
return undefined;
|
|
29
29
|
}
|
|
30
|
+
// Reject unknown keys — the sampling block is a closed 3-key set, and its whole
|
|
31
|
+
// reason to exist is that sampling params must never vanish SILENTLY. A typo
|
|
32
|
+
// (`temperatur`, `maxOutputTokens` camelCase, `top-p`) would otherwise leave the
|
|
33
|
+
// block empty and run at the adapter default — the exact silent-drop CE-6 kills.
|
|
34
|
+
// So here (unlike the lenient rest of `policy`) an unknown key is a config error.
|
|
35
|
+
const KNOWN = new Set(["temperature", "top_p", "max_output_tokens"]);
|
|
36
|
+
for (const key of Object.keys(raw)) {
|
|
37
|
+
if (!KNOWN.has(key)) {
|
|
38
|
+
problems.push(`${field} has unknown key "${key}" — allowed: temperature, top_p, max_output_tokens (snake_case)`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
30
41
|
const out = {};
|
|
31
42
|
const t = raw.temperature;
|
|
32
43
|
if (t !== undefined) {
|
package/dist/run/dispatch.d.ts
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
import type { AdapterRequest, AdapterResult, CandidateRef, ProviderAdapter } from "../types/provider";
|
|
12
12
|
import type { RigFailure } from "../types/failures";
|
|
13
13
|
import type { RouteBundle, RunMeta, RunOptions, RunResult, RunTags } from "../types/route";
|
|
14
|
-
import type { TelemetryStore } from "../types/telemetry";
|
|
14
|
+
import type { TelemetryRung, TelemetryStore } from "../types/telemetry";
|
|
15
|
+
import type { LadderKeyMinter } from "./ladder-key";
|
|
15
16
|
/** One telemetry attempt row's inputs — shared with run.ts's recordAttempt so
|
|
16
17
|
* the tool-call helper here can record through the same closure. */
|
|
17
18
|
export interface AttemptTelemetry {
|
|
@@ -34,6 +35,10 @@ export interface AttemptTelemetry {
|
|
|
34
35
|
readonly repairedBy?: string;
|
|
35
36
|
/** Addendum A1: model had no pricing entry (cost recorded as honest 0). */
|
|
36
37
|
readonly pricingMissing?: boolean;
|
|
38
|
+
/** Explicit ladder-rung hint (R1 review, F1). Only the tool-call path sets it
|
|
39
|
+
* (`tool_call`); every other rung is derived in the recorder from the
|
|
40
|
+
* repaired_by / pre-dispatch / primary-vs-retry signals. */
|
|
41
|
+
readonly rung?: TelemetryRung;
|
|
37
42
|
}
|
|
38
43
|
/** run.ts's recordAttempt, threaded in so the tool-call path records through
|
|
39
44
|
* the same ledger/tenancy closure the rest of the loop uses. */
|
|
@@ -41,7 +46,11 @@ export type RecordAttempt = (attempt: AttemptTelemetry) => string;
|
|
|
41
46
|
/** Record the grounding-inject search's own telemetry row (WS3): a $-only line
|
|
42
47
|
* under the synthetic "search" provider. Extracted from run.ts to keep it under
|
|
43
48
|
* the LOC cap; behaviour is byte-identical to the prior inline recorder. */
|
|
44
|
-
export declare function recordSearchCostRow(telemetry: TelemetryStore, route: RouteBundle, effectiveTags: RunTags, servedVariant: string | null, searchProviderId: string, costUsd: number): void;
|
|
49
|
+
export declare function recordSearchCostRow(telemetry: TelemetryStore, route: RouteBundle, effectiveTags: RunTags, servedVariant: string | null, searchProviderId: string, costUsd: number, ladder: LadderKeyMinter): void;
|
|
50
|
+
/** Schema coaching for the json_mode rung — ported from the production DeepSeek
|
|
51
|
+
* provider's schema-in-prompt guidance (minLength-is-a-FLOOR etc.). Lives here
|
|
52
|
+
* with the other request-shaping helpers to keep run.ts under the LOC cap. */
|
|
53
|
+
export declare function jsonModeCoaching(schema: object): string;
|
|
45
54
|
/** Side-channel for streaming: the run loop hands raw text deltas here as the
|
|
46
55
|
* serving adapter streams. Absent => buffered dispatch via `adapter.call()`
|
|
47
56
|
* (identical to pre-Phase-A behavior). */
|
|
@@ -86,6 +95,9 @@ export interface ToolCallResultParts {
|
|
|
86
95
|
readonly attemptsByClass: RunMeta["attemptsByClass"];
|
|
87
96
|
readonly servedVariant: string | null;
|
|
88
97
|
readonly pricingMissing: boolean;
|
|
98
|
+
/** The call's ladder-key id (spec §2.1 R0) — surfaced on the tool-call meta so
|
|
99
|
+
* it matches the recorded row's `call_id`. */
|
|
100
|
+
readonly callId: string;
|
|
89
101
|
}
|
|
90
102
|
/**
|
|
91
103
|
* Record a tool-call turn and build its RunResult (spec §4.4). A tool call is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/run/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/run/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAA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C;IACjC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,EAAE;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACrD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;kDAC8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,mBAAmB,GAAG,SAAS,CAgD/F"}
|
package/dist/run/dispatch.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.recordSearchCostRow = recordSearchCostRow;
|
|
14
|
+
exports.jsonModeCoaching = jsonModeCoaching;
|
|
14
15
|
exports.buildAdapterRequest = buildAdapterRequest;
|
|
15
16
|
exports.buildRepairAdapterRequest = buildRepairAdapterRequest;
|
|
16
17
|
exports.dispatchCandidate = dispatchCandidate;
|
|
@@ -21,7 +22,11 @@ const cache_handle_1 = require("./cache-handle");
|
|
|
21
22
|
/** Record the grounding-inject search's own telemetry row (WS3): a $-only line
|
|
22
23
|
* under the synthetic "search" provider. Extracted from run.ts to keep it under
|
|
23
24
|
* the LOC cap; behaviour is byte-identical to the prior inline recorder. */
|
|
24
|
-
function recordSearchCostRow(telemetry, route, effectiveTags, servedVariant, searchProviderId, costUsd) {
|
|
25
|
+
function recordSearchCostRow(telemetry, route, effectiveTags, servedVariant, searchProviderId, costUsd, ladder) {
|
|
26
|
+
// Ladder key (spec §2.1 R0): the search-cost row belongs to the same call and
|
|
27
|
+
// rides the same monotonic seq; candidate_index is the candidate this search
|
|
28
|
+
// grounds for (the current one — the run loop set it before the search).
|
|
29
|
+
const ladderKey = ladder.stamp();
|
|
25
30
|
telemetry.record({
|
|
26
31
|
id: (0, node_crypto_1.randomUUID)(),
|
|
27
32
|
ts: new Date().toISOString(),
|
|
@@ -41,15 +46,33 @@ function recordSearchCostRow(telemetry, route, effectiveTags, servedVariant, sea
|
|
|
41
46
|
ttfbMs: null,
|
|
42
47
|
failureClass: null,
|
|
43
48
|
attemptsJson: "{}",
|
|
44
|
-
|
|
49
|
+
// Rung tag (R1 review, F1): the grounding-inject search-cost row.
|
|
50
|
+
tagsJson: JSON.stringify({ ...effectiveTags, rung: "search" }),
|
|
45
51
|
fingerprintCell: route.fingerprintCell,
|
|
46
52
|
servedVariant,
|
|
47
53
|
repairedBy: null,
|
|
48
54
|
pricingMissing: false,
|
|
49
55
|
cacheKey: null,
|
|
50
56
|
prefixFingerprint: null,
|
|
57
|
+
callId: ladderKey.callId,
|
|
58
|
+
attemptSeq: ladderKey.attemptSeq,
|
|
59
|
+
candidateIndex: ladderKey.candidateIndex,
|
|
51
60
|
});
|
|
52
61
|
}
|
|
62
|
+
/** Schema coaching for the json_mode rung — ported from the production DeepSeek
|
|
63
|
+
* provider's schema-in-prompt guidance (minLength-is-a-FLOOR etc.). Lives here
|
|
64
|
+
* with the other request-shaping helpers to keep run.ts under the LOC cap. */
|
|
65
|
+
function jsonModeCoaching(schema) {
|
|
66
|
+
return ("\n\n---\nOUTPUT FORMAT (STRICT): Respond with a SINGLE valid JSON object and nothing else — " +
|
|
67
|
+
'no markdown fences, no introductory text, no sign-off. Your response MUST start with "{" and ' +
|
|
68
|
+
'end with "}". Sanitize every nested string so embedded quotes/brackets do not break the root ' +
|
|
69
|
+
"JSON escaping. The object MUST conform to this JSON Schema — match key names and types " +
|
|
70
|
+
"EXACTLY, include ALL required fields, and do not add commentary fields. CRITICAL: where the " +
|
|
71
|
+
"schema sets a minLength on a narrative/prose field, that is a FLOOR, not a target — write " +
|
|
72
|
+
"thorough, non-repetitive analysis that comfortably EXCEEDS the minimum (do not pad with " +
|
|
73
|
+
"repetition; add real substance). When unsure how long to make a prose field, write more, " +
|
|
74
|
+
`not less:\n\n${JSON.stringify(schema)}`);
|
|
75
|
+
}
|
|
53
76
|
/** Build the primary-attempt AdapterRequest — adds the grounding hint and the
|
|
54
77
|
* unified tools/toolChoice passthrough (spec §4.4). */
|
|
55
78
|
function buildAdapterRequest(parts) {
|
|
@@ -165,6 +188,11 @@ function emitToolCallResult(record, parts) {
|
|
|
165
188
|
...(result.usage.ttfbMs !== undefined ? { ttfbMs: result.usage.ttfbMs } : {}),
|
|
166
189
|
failure: null,
|
|
167
190
|
pricingMissing: parts.pricingMissing,
|
|
191
|
+
// Rung tag (R1 review, F1): a tool-call turn is a real model call but NOT a
|
|
192
|
+
// schema-validated serve — the recorder cannot tell it from a primary, so it
|
|
193
|
+
// is stamped explicitly. The rollup counts it as a tool-call turn, never a
|
|
194
|
+
// dispatch or a serve (its cost still counts).
|
|
195
|
+
rung: "tool_call",
|
|
168
196
|
});
|
|
169
197
|
return {
|
|
170
198
|
output: null,
|
|
@@ -185,6 +213,7 @@ function emitToolCallResult(record, parts) {
|
|
|
185
213
|
attemptsByClass,
|
|
186
214
|
servedVariant,
|
|
187
215
|
repairedBy: null,
|
|
216
|
+
callId: parts.callId,
|
|
188
217
|
toolCalls: result.toolCalls,
|
|
189
218
|
},
|
|
190
219
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The per-call telemetry ladder key — routing-console spec §2.1 / §4.1 (R0).
|
|
3
|
+
*
|
|
4
|
+
* One `callId` is minted per `rig.run` / `runStream` / `runBundle` / `runRaw`
|
|
5
|
+
* invocation and shared by EVERY telemetry row that call writes (primary, retry,
|
|
6
|
+
* repair, grounding-search, tool-call). `attemptSeq` is a 1-based counter that
|
|
7
|
+
* is monotonic across all of those rows, and `candidateIndex` is the position of
|
|
8
|
+
* the candidate the row is about within the call's effective declared list.
|
|
9
|
+
*
|
|
10
|
+
* The minter owns the seq counter and the current candidate index so the run
|
|
11
|
+
* loop does not have to thread them through every `recordAttempt` call site
|
|
12
|
+
* (run.ts sits at its LOC cap). The loop calls `setCandidateIndex` as the
|
|
13
|
+
* candidate iterator advances; the recorder (and the search-cost recorder) call
|
|
14
|
+
* `stamp()` once per row. A repair row is stamped DURING the current candidate's
|
|
15
|
+
* turn — before the iterator advances — so it inherits that candidate's index,
|
|
16
|
+
* which IS "the candidate being repaired" per spec §2.1.
|
|
17
|
+
*/
|
|
18
|
+
/** One stamped ladder key — the three fields persisted onto a telemetry row. */
|
|
19
|
+
export interface LadderKey {
|
|
20
|
+
readonly callId: string;
|
|
21
|
+
readonly attemptSeq: number;
|
|
22
|
+
readonly candidateIndex: number | null;
|
|
23
|
+
}
|
|
24
|
+
/** Hands out ladder keys for a single call. Created once per invocation. */
|
|
25
|
+
export interface LadderKeyMinter {
|
|
26
|
+
/** The `call_id` shared by every row of this invocation. */
|
|
27
|
+
readonly callId: string;
|
|
28
|
+
/** Record the candidate the run loop is currently attempting. Every later
|
|
29
|
+
* `stamp()` reads this value; a null clears it (no active candidate). */
|
|
30
|
+
setCandidateIndex(index: number | null): void;
|
|
31
|
+
/** Stamp the next row: bump `attempt_seq` (1-based, monotonic) and read the
|
|
32
|
+
* current `candidate_index`. */
|
|
33
|
+
stamp(): LadderKey;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Build a ladder-key minter. `callId` defaults to a fresh uuid; the raw lane and
|
|
37
|
+
* tests may pass one in. Pure but for the uuid — no I/O, no shared state.
|
|
38
|
+
*/
|
|
39
|
+
export declare function createLadderKeyMinter(callId?: string): LadderKeyMinter;
|
|
40
|
+
//# sourceMappingURL=ladder-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ladder-key.d.ts","sourceRoot":"","sources":["../../src/run/ladder-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,gFAAgF;AAChF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,4EAA4E;AAC5E,MAAM,WAAW,eAAe;IAC9B,4DAA4D;IAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;6EACyE;IACzE,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC9C;oCACgC;IAChC,KAAK,IAAI,SAAS,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,MAAqB,GAAG,eAAe,CAapF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The per-call telemetry ladder key — routing-console spec §2.1 / §4.1 (R0).
|
|
4
|
+
*
|
|
5
|
+
* One `callId` is minted per `rig.run` / `runStream` / `runBundle` / `runRaw`
|
|
6
|
+
* invocation and shared by EVERY telemetry row that call writes (primary, retry,
|
|
7
|
+
* repair, grounding-search, tool-call). `attemptSeq` is a 1-based counter that
|
|
8
|
+
* is monotonic across all of those rows, and `candidateIndex` is the position of
|
|
9
|
+
* the candidate the row is about within the call's effective declared list.
|
|
10
|
+
*
|
|
11
|
+
* The minter owns the seq counter and the current candidate index so the run
|
|
12
|
+
* loop does not have to thread them through every `recordAttempt` call site
|
|
13
|
+
* (run.ts sits at its LOC cap). The loop calls `setCandidateIndex` as the
|
|
14
|
+
* candidate iterator advances; the recorder (and the search-cost recorder) call
|
|
15
|
+
* `stamp()` once per row. A repair row is stamped DURING the current candidate's
|
|
16
|
+
* turn — before the iterator advances — so it inherits that candidate's index,
|
|
17
|
+
* which IS "the candidate being repaired" per spec §2.1.
|
|
18
|
+
*/
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.createLadderKeyMinter = createLadderKeyMinter;
|
|
21
|
+
const node_crypto_1 = require("node:crypto");
|
|
22
|
+
/**
|
|
23
|
+
* Build a ladder-key minter. `callId` defaults to a fresh uuid; the raw lane and
|
|
24
|
+
* tests may pass one in. Pure but for the uuid — no I/O, no shared state.
|
|
25
|
+
*/
|
|
26
|
+
function createLadderKeyMinter(callId = (0, node_crypto_1.randomUUID)()) {
|
|
27
|
+
let attemptSeq = 0;
|
|
28
|
+
let candidateIndex = null;
|
|
29
|
+
return {
|
|
30
|
+
callId,
|
|
31
|
+
setCandidateIndex(index) {
|
|
32
|
+
candidateIndex = index;
|
|
33
|
+
},
|
|
34
|
+
stamp() {
|
|
35
|
+
attemptSeq += 1;
|
|
36
|
+
return { callId, attemptSeq, candidateIndex };
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|