@warmdrift/kgauto-compiler 2.0.0-alpha.89 → 2.0.0-alpha.90

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.
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var LIBRARY_VERSION = "2.0.0-alpha.89";
2
+ var LIBRARY_VERSION = "2.0.0-alpha.90";
3
3
 
4
4
  // src/key-health.ts
5
5
  var JSON_HEADERS = { "Content-Type": "application/json" };
@@ -452,8 +452,8 @@ function chainProviderSpread(chain) {
452
452
  var STARTER_CHAINS_GROUNDED = {
453
453
  // Reasoning floor — never degrade. Walk UP on 429 to Opus → cross-provider.
454
454
  critique: [
455
- { id: "claude-opus-4-7", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing" },
456
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429" },
455
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing. alpha.90: retargeted from legacy claude-opus-4-7 (Opus 5 generation current since 2026-07-25; same drift class as the b3d919b judge default)" },
456
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
457
457
  // alpha.86: gemini-2.5-pro dropped — availability-restricted (tt-intel
458
458
  // measured 4/4 cohort refusal 2026-08-02; kgauto key free-tier-quota
459
459
  // 429 2026-08-08). No current Google model clears the critique floor
@@ -468,8 +468,8 @@ var STARTER_CHAINS_GROUNDED = {
468
468
  // verdict); tier 0 anchored on the CURRENT opus (4-8, s64 roster). Strict
469
469
  // JSON output, so every tier declares native structured output.
470
470
  judge: [
471
- { id: "claude-opus-4-8", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus (s64 roster)" },
472
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down on 429" },
471
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus. alpha.90: retargeted from legacy claude-opus-4-8, matching DEFAULT_JUDGE_MODEL (moved in b3d919b); verdict comparability preserved by judge_model on every run/case row" },
472
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
473
473
  // alpha.86: gemini-2.5-pro dropped (availability-restricted; see critique
474
474
  // note). gpt-5.5 remains the cross-provider frontier floor for verdicts.
475
475
  { id: "gpt-5.5", grounding: "judgment", reason: "Third-provider frontier-tier floor" },
@@ -477,15 +477,15 @@ var STARTER_CHAINS_GROUNDED = {
477
477
  ],
478
478
  // Reasoning matters — Sonnet primary; walk UP to Opus on 429.
479
479
  plan: [
480
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick" },
481
- { id: "claude-opus-4-7", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper")' },
480
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
481
+ { id: "claude-opus-5", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper"). alpha.90: retargeted from legacy claude-opus-4-7' },
482
482
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
483
483
  { id: "deepseek-v4-pro", grounding: "judgment", reason: "Tier 3 cost floor \u2014 no brain evidence yet" },
484
484
  { id: "gpt-5.4", grounding: "judgment", reason: "alpha.33: third-provider tail (archetypePerf=7) \u2014 closes openai-in-default-fallback-chains" }
485
485
  ],
486
486
  // Quality + cost match.
487
487
  generate: [
488
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick" },
488
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
489
489
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
490
490
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
491
491
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7) \u2014 closes mono-Anthropic gap" }
@@ -494,7 +494,7 @@ var STARTER_CHAINS_GROUNDED = {
494
494
  // tt-intel s78 prod data showed 27% empty rate. Labeled 'judgment' until
495
495
  // evidence either validates or refutes the placement.
496
496
  ask: [
497
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. NOTE: tt-intel s78 prod showed 27% empty rate; placement awaits measurement validation" },
497
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (whose tt-intel s78 27% empty rate was never validated; the empty-rate NOTE does not transfer to sonnet-5 \u2014 fresh model, fresh measurement)" },
498
498
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
499
499
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
500
500
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7)" }
@@ -502,14 +502,14 @@ var STARTER_CHAINS_GROUNDED = {
502
502
  // Structured-output archetype — Flash skipped (alpha.8 MAX_TOKENS cliff,
503
503
  // capability-fact); DeepSeek skipped (no brain evidence).
504
504
  extract: [
505
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick" },
505
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (which served the believe-card endpoint's first real call 2026-08-26 while daily-ops had been advising consumers OFF it for weeks)" },
506
506
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down with native structured output" },
507
507
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor with native structured output \u2014 replaces availability-restricted gemini-2.5-pro" },
508
508
  { id: "gpt-5.4", grounding: "capability-fact", reason: "alpha.16: third-provider floor \u2014 native structured-output capability (archetypePerf=8)" }
509
509
  ],
510
510
  // Forgiving archetype — Sonnet primary but Flash safely floors it.
511
511
  transform: [
512
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick" },
512
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
513
513
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
514
514
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
515
515
  { id: "gemini-2.5-flash", grounding: "judgment", reason: "Cost floor \u2014 forgiving archetype tolerates Flash" },
@@ -520,7 +520,7 @@ var STARTER_CHAINS_GROUNDED = {
520
520
  hunt: [
521
521
  { id: "gemini-2.5-flash", grounding: "capability-fact", reason: "L-040 parallel-tool throughput champion (15-75 calls/step)" },
522
522
  { id: "gemini-3.5-flash", grounding: "capability-fact", reason: "alpha.86: parallel-tool agentic tier (hunt archetypePerf 9, L-040 family) \u2014 replaces availability-restricted gemini-2.5-pro" },
523
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality safety net for blocked-Flash case" },
523
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality safety net for blocked-Flash case. alpha.90: retargeted from legacy claude-sonnet-4-6" },
524
524
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Reduced tool budget \u2014 cliff at 16 fires" },
525
525
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.33: third-provider tail \u2014 OpenAI parallel-tool capable archetype" }
526
526
  ],
@@ -562,9 +562,9 @@ var STARTER_CHAINS_BY_MODE_GROUNDED = {
562
562
  reason: "Cheapest viable; sibling-provider fallback"
563
563
  },
564
564
  {
565
- id: "claude-sonnet-4-6",
565
+ id: "claude-sonnet-5",
566
566
  grounding: "judgment",
567
- reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly"
567
+ reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly. alpha.90: retargeted from legacy claude-sonnet-4-6"
568
568
  },
569
569
  {
570
570
  id: "gemini-3.5-flash",
@@ -2099,8 +2099,8 @@ function buildCostOrderedChain(archetype) {
2099
2099
  var STARTER_CHAINS_GROUNDED = {
2100
2100
  // Reasoning floor — never degrade. Walk UP on 429 to Opus → cross-provider.
2101
2101
  critique: [
2102
- { id: "claude-opus-4-7", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing" },
2103
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429" },
2102
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing. alpha.90: retargeted from legacy claude-opus-4-7 (Opus 5 generation current since 2026-07-25; same drift class as the b3d919b judge default)" },
2103
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2104
2104
  // alpha.86: gemini-2.5-pro dropped — availability-restricted (tt-intel
2105
2105
  // measured 4/4 cohort refusal 2026-08-02; kgauto key free-tier-quota
2106
2106
  // 429 2026-08-08). No current Google model clears the critique floor
@@ -2115,8 +2115,8 @@ var STARTER_CHAINS_GROUNDED = {
2115
2115
  // verdict); tier 0 anchored on the CURRENT opus (4-8, s64 roster). Strict
2116
2116
  // JSON output, so every tier declares native structured output.
2117
2117
  judge: [
2118
- { id: "claude-opus-4-8", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus (s64 roster)" },
2119
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down on 429" },
2118
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus. alpha.90: retargeted from legacy claude-opus-4-8, matching DEFAULT_JUDGE_MODEL (moved in b3d919b); verdict comparability preserved by judge_model on every run/case row" },
2119
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2120
2120
  // alpha.86: gemini-2.5-pro dropped (availability-restricted; see critique
2121
2121
  // note). gpt-5.5 remains the cross-provider frontier floor for verdicts.
2122
2122
  { id: "gpt-5.5", grounding: "judgment", reason: "Third-provider frontier-tier floor" },
@@ -2124,15 +2124,15 @@ var STARTER_CHAINS_GROUNDED = {
2124
2124
  ],
2125
2125
  // Reasoning matters — Sonnet primary; walk UP to Opus on 429.
2126
2126
  plan: [
2127
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick" },
2128
- { id: "claude-opus-4-7", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper")' },
2127
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2128
+ { id: "claude-opus-5", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper"). alpha.90: retargeted from legacy claude-opus-4-7' },
2129
2129
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
2130
2130
  { id: "deepseek-v4-pro", grounding: "judgment", reason: "Tier 3 cost floor \u2014 no brain evidence yet" },
2131
2131
  { id: "gpt-5.4", grounding: "judgment", reason: "alpha.33: third-provider tail (archetypePerf=7) \u2014 closes openai-in-default-fallback-chains" }
2132
2132
  ],
2133
2133
  // Quality + cost match.
2134
2134
  generate: [
2135
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick" },
2135
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2136
2136
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2137
2137
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
2138
2138
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7) \u2014 closes mono-Anthropic gap" }
@@ -2141,7 +2141,7 @@ var STARTER_CHAINS_GROUNDED = {
2141
2141
  // tt-intel s78 prod data showed 27% empty rate. Labeled 'judgment' until
2142
2142
  // evidence either validates or refutes the placement.
2143
2143
  ask: [
2144
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. NOTE: tt-intel s78 prod showed 27% empty rate; placement awaits measurement validation" },
2144
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (whose tt-intel s78 27% empty rate was never validated; the empty-rate NOTE does not transfer to sonnet-5 \u2014 fresh model, fresh measurement)" },
2145
2145
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2146
2146
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
2147
2147
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7)" }
@@ -2149,14 +2149,14 @@ var STARTER_CHAINS_GROUNDED = {
2149
2149
  // Structured-output archetype — Flash skipped (alpha.8 MAX_TOKENS cliff,
2150
2150
  // capability-fact); DeepSeek skipped (no brain evidence).
2151
2151
  extract: [
2152
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick" },
2152
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (which served the believe-card endpoint's first real call 2026-08-26 while daily-ops had been advising consumers OFF it for weeks)" },
2153
2153
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down with native structured output" },
2154
2154
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor with native structured output \u2014 replaces availability-restricted gemini-2.5-pro" },
2155
2155
  { id: "gpt-5.4", grounding: "capability-fact", reason: "alpha.16: third-provider floor \u2014 native structured-output capability (archetypePerf=8)" }
2156
2156
  ],
2157
2157
  // Forgiving archetype — Sonnet primary but Flash safely floors it.
2158
2158
  transform: [
2159
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick" },
2159
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2160
2160
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2161
2161
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
2162
2162
  { id: "gemini-2.5-flash", grounding: "judgment", reason: "Cost floor \u2014 forgiving archetype tolerates Flash" },
@@ -2167,7 +2167,7 @@ var STARTER_CHAINS_GROUNDED = {
2167
2167
  hunt: [
2168
2168
  { id: "gemini-2.5-flash", grounding: "capability-fact", reason: "L-040 parallel-tool throughput champion (15-75 calls/step)" },
2169
2169
  { id: "gemini-3.5-flash", grounding: "capability-fact", reason: "alpha.86: parallel-tool agentic tier (hunt archetypePerf 9, L-040 family) \u2014 replaces availability-restricted gemini-2.5-pro" },
2170
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality safety net for blocked-Flash case" },
2170
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality safety net for blocked-Flash case. alpha.90: retargeted from legacy claude-sonnet-4-6" },
2171
2171
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Reduced tool budget \u2014 cliff at 16 fires" },
2172
2172
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.33: third-provider tail \u2014 OpenAI parallel-tool capable archetype" }
2173
2173
  ],
@@ -2209,9 +2209,9 @@ var STARTER_CHAINS_BY_MODE_GROUNDED = {
2209
2209
  reason: "Cheapest viable; sibling-provider fallback"
2210
2210
  },
2211
2211
  {
2212
- id: "claude-sonnet-4-6",
2212
+ id: "claude-sonnet-5",
2213
2213
  grounding: "judgment",
2214
- reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly"
2214
+ reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly. alpha.90: retargeted from legacy claude-sonnet-4-6"
2215
2215
  },
2216
2216
  {
2217
2217
  id: "gemini-3.5-flash",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ARCHETYPE_FLOOR_DEFAULT,
3
3
  getDefaultFallbackChain
4
- } from "../chunk-D7RX3UD3.mjs";
4
+ } from "../chunk-ENELVMJI.mjs";
5
5
  import {
6
6
  tryGetProfile
7
7
  } from "../chunk-OK2TMFRR.mjs";
package/dist/index.d.mts CHANGED
@@ -1270,7 +1270,7 @@ declare function runStrategyEvalWithAttribution(opts: Omit<GoldenEvalOptions, 'a
1270
1270
  * guard in `tests/version.test.ts` fails the suite (and therefore
1271
1271
  * `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
1272
1272
  */
1273
- declare const LIBRARY_VERSION = "2.0.0-alpha.89";
1273
+ declare const LIBRARY_VERSION = "2.0.0-alpha.90";
1274
1274
 
1275
1275
  /**
1276
1276
  * Oracle contract — how an app tells the brain whether a response was good.
@@ -2826,7 +2826,8 @@ declare function readBrainReadEnv(envSource?: Record<string, string | undefined>
2826
2826
  * previous." **That claim was false for all ten archetypes** (verified
2827
2827
  * 2026-07-29, alpha.80) and it was load-bearing — kgauto's own cost
2828
2828
  * advisories cited `posture: 'open'` as a cost remedy on the strength of it.
2829
- * For `ask`, open posture leads with `claude-sonnet-4-6` at ~8.6x the cost
2829
+ * At the time, `ask` open posture led with `claude-sonnet-4-6` (retargeted
2830
+ * to `claude-sonnet-5` in alpha.90) at ~8.6x the cost
2830
2831
  * of the model the cost advisories recommend. tt-intel came within one
2831
2832
  * un-run function call of tripling their hottest path's spend by following
2832
2833
  * kgauto's own documented advice. See
package/dist/index.d.ts CHANGED
@@ -1270,7 +1270,7 @@ declare function runStrategyEvalWithAttribution(opts: Omit<GoldenEvalOptions, 'a
1270
1270
  * guard in `tests/version.test.ts` fails the suite (and therefore
1271
1271
  * `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
1272
1272
  */
1273
- declare const LIBRARY_VERSION = "2.0.0-alpha.89";
1273
+ declare const LIBRARY_VERSION = "2.0.0-alpha.90";
1274
1274
 
1275
1275
  /**
1276
1276
  * Oracle contract — how an app tells the brain whether a response was good.
@@ -2826,7 +2826,8 @@ declare function readBrainReadEnv(envSource?: Record<string, string | undefined>
2826
2826
  * previous." **That claim was false for all ten archetypes** (verified
2827
2827
  * 2026-07-29, alpha.80) and it was load-bearing — kgauto's own cost
2828
2828
  * advisories cited `posture: 'open'` as a cost remedy on the strength of it.
2829
- * For `ask`, open posture leads with `claude-sonnet-4-6` at ~8.6x the cost
2829
+ * At the time, `ask` open posture led with `claude-sonnet-4-6` (retargeted
2830
+ * to `claude-sonnet-5` in alpha.90) at ~8.6x the cost
2830
2831
  * of the model the cost advisories recommend. tt-intel came within one
2831
2832
  * un-run function call of tripling their hottest path's spend by following
2832
2833
  * kgauto's own documented advice. See
package/dist/index.js CHANGED
@@ -4109,8 +4109,8 @@ function chainProviderSpread(chain) {
4109
4109
  var STARTER_CHAINS_GROUNDED = {
4110
4110
  // Reasoning floor — never degrade. Walk UP on 429 to Opus → cross-provider.
4111
4111
  critique: [
4112
- { id: "claude-opus-4-7", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing" },
4113
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429" },
4112
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing. alpha.90: retargeted from legacy claude-opus-4-7 (Opus 5 generation current since 2026-07-25; same drift class as the b3d919b judge default)" },
4113
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4114
4114
  // alpha.86: gemini-2.5-pro dropped — availability-restricted (tt-intel
4115
4115
  // measured 4/4 cohort refusal 2026-08-02; kgauto key free-tier-quota
4116
4116
  // 429 2026-08-08). No current Google model clears the critique floor
@@ -4125,8 +4125,8 @@ var STARTER_CHAINS_GROUNDED = {
4125
4125
  // verdict); tier 0 anchored on the CURRENT opus (4-8, s64 roster). Strict
4126
4126
  // JSON output, so every tier declares native structured output.
4127
4127
  judge: [
4128
- { id: "claude-opus-4-8", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus (s64 roster)" },
4129
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down on 429" },
4128
+ { id: "claude-opus-5", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus. alpha.90: retargeted from legacy claude-opus-4-8, matching DEFAULT_JUDGE_MODEL (moved in b3d919b); verdict comparability preserved by judge_model on every run/case row" },
4129
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Same-provider walk-down on 429. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4130
4130
  // alpha.86: gemini-2.5-pro dropped (availability-restricted; see critique
4131
4131
  // note). gpt-5.5 remains the cross-provider frontier floor for verdicts.
4132
4132
  { id: "gpt-5.5", grounding: "judgment", reason: "Third-provider frontier-tier floor" },
@@ -4134,15 +4134,15 @@ var STARTER_CHAINS_GROUNDED = {
4134
4134
  ],
4135
4135
  // Reasoning matters — Sonnet primary; walk UP to Opus on 429.
4136
4136
  plan: [
4137
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick" },
4138
- { id: "claude-opus-4-7", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper")' },
4137
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4138
+ { id: "claude-opus-5", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper"). alpha.90: retargeted from legacy claude-opus-4-7' },
4139
4139
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
4140
4140
  { id: "deepseek-v4-pro", grounding: "judgment", reason: "Tier 3 cost floor \u2014 no brain evidence yet" },
4141
4141
  { id: "gpt-5.4", grounding: "judgment", reason: "alpha.33: third-provider tail (archetypePerf=7) \u2014 closes openai-in-default-fallback-chains" }
4142
4142
  ],
4143
4143
  // Quality + cost match.
4144
4144
  generate: [
4145
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick" },
4145
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4146
4146
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
4147
4147
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
4148
4148
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7) \u2014 closes mono-Anthropic gap" }
@@ -4151,7 +4151,7 @@ var STARTER_CHAINS_GROUNDED = {
4151
4151
  // tt-intel s78 prod data showed 27% empty rate. Labeled 'judgment' until
4152
4152
  // evidence either validates or refutes the placement.
4153
4153
  ask: [
4154
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. NOTE: tt-intel s78 prod showed 27% empty rate; placement awaits measurement validation" },
4154
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (whose tt-intel s78 27% empty rate was never validated; the empty-rate NOTE does not transfer to sonnet-5 \u2014 fresh model, fresh measurement)" },
4155
4155
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
4156
4156
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
4157
4157
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7)" }
@@ -4159,14 +4159,14 @@ var STARTER_CHAINS_GROUNDED = {
4159
4159
  // Structured-output archetype — Flash skipped (alpha.8 MAX_TOKENS cliff,
4160
4160
  // capability-fact); DeepSeek skipped (no brain evidence).
4161
4161
  extract: [
4162
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick" },
4162
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6 (which served the believe-card endpoint's first real call 2026-08-26 while daily-ops had been advising consumers OFF it for weeks)" },
4163
4163
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down with native structured output" },
4164
4164
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor with native structured output \u2014 replaces availability-restricted gemini-2.5-pro" },
4165
4165
  { id: "gpt-5.4", grounding: "capability-fact", reason: "alpha.16: third-provider floor \u2014 native structured-output capability (archetypePerf=8)" }
4166
4166
  ],
4167
4167
  // Forgiving archetype — Sonnet primary but Flash safely floors it.
4168
4168
  transform: [
4169
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick" },
4169
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4170
4170
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
4171
4171
  { id: "gemini-3.5-flash", grounding: "judgment", reason: "alpha.86: cross-provider anchor \u2014 replaces availability-restricted gemini-2.5-pro (tt-intel 4/4 cohort refusal 2026-08-02; probed serving 200 on kgauto key 2026-08-08)" },
4172
4172
  { id: "gemini-2.5-flash", grounding: "judgment", reason: "Cost floor \u2014 forgiving archetype tolerates Flash" },
@@ -4177,7 +4177,7 @@ var STARTER_CHAINS_GROUNDED = {
4177
4177
  hunt: [
4178
4178
  { id: "gemini-2.5-flash", grounding: "capability-fact", reason: "L-040 parallel-tool throughput champion (15-75 calls/step)" },
4179
4179
  { id: "gemini-3.5-flash", grounding: "capability-fact", reason: "alpha.86: parallel-tool agentic tier (hunt archetypePerf 9, L-040 family) \u2014 replaces availability-restricted gemini-2.5-pro" },
4180
- { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality safety net for blocked-Flash case" },
4180
+ { id: "claude-sonnet-5", grounding: "judgment", reason: "Quality safety net for blocked-Flash case. alpha.90: retargeted from legacy claude-sonnet-4-6" },
4181
4181
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Reduced tool budget \u2014 cliff at 16 fires" },
4182
4182
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.33: third-provider tail \u2014 OpenAI parallel-tool capable archetype" }
4183
4183
  ],
@@ -4219,9 +4219,9 @@ var STARTER_CHAINS_BY_MODE_GROUNDED = {
4219
4219
  reason: "Cheapest viable; sibling-provider fallback"
4220
4220
  },
4221
4221
  {
4222
- id: "claude-sonnet-4-6",
4222
+ id: "claude-sonnet-5",
4223
4223
  grounding: "judgment",
4224
- reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly"
4224
+ reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly. alpha.90: retargeted from legacy claude-sonnet-4-6"
4225
4225
  },
4226
4226
  {
4227
4227
  id: "gemini-3.5-flash",
@@ -6290,7 +6290,7 @@ function validateFinalFit(ir, profile, tokens) {
6290
6290
  }
6291
6291
 
6292
6292
  // src/version.ts
6293
- var LIBRARY_VERSION = "2.0.0-alpha.89";
6293
+ var LIBRARY_VERSION = "2.0.0-alpha.90";
6294
6294
 
6295
6295
  // src/pricing-brain.ts
6296
6296
  function isPricingRow(x) {
package/dist/index.mjs CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  LIBRARY_VERSION,
20
20
  createKeyHealthRoute,
21
21
  keyFingerprint
22
- } from "./chunk-MKOOPD6S.mjs";
22
+ } from "./chunk-4LYNDEHJ.mjs";
23
23
  import {
24
24
  ABSOLUTE_FLOOR,
25
25
  ARCHETYPE_FLOOR_DEFAULT,
@@ -57,7 +57,7 @@ import {
57
57
  policySetHas,
58
58
  readBrainReadEnv,
59
59
  resolveProviderKey
60
- } from "./chunk-D7RX3UD3.mjs";
60
+ } from "./chunk-ENELVMJI.mjs";
61
61
  import {
62
62
  ALIASES,
63
63
  LATENCY_TIER_MS,
@@ -28,7 +28,7 @@ __export(key_health_exports, {
28
28
  module.exports = __toCommonJS(key_health_exports);
29
29
 
30
30
  // src/version.ts
31
- var LIBRARY_VERSION = "2.0.0-alpha.89";
31
+ var LIBRARY_VERSION = "2.0.0-alpha.90";
32
32
 
33
33
  // src/key-health.ts
34
34
  var JSON_HEADERS = { "Content-Type": "application/json" };
@@ -3,7 +3,7 @@ import {
3
3
  KEY_FINGERPRINT_LENGTH,
4
4
  createKeyHealthRoute,
5
5
  keyFingerprint
6
- } from "./chunk-MKOOPD6S.mjs";
6
+ } from "./chunk-4LYNDEHJ.mjs";
7
7
  export {
8
8
  KEY_FINGERPRINT_DOMAIN,
9
9
  KEY_FINGERPRINT_LENGTH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmdrift/kgauto-compiler",
3
- "version": "2.0.0-alpha.89",
3
+ "version": "2.0.0-alpha.90",
4
4
  "description": "Prompt compiler with executable provider knowledge for multi-model AI apps: normalized multi-provider transport with fallback chains, compile-time cliff guards, a curated model registry, and a telemetry flight recorder. Swap models without rewriting prompts.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",