@warmdrift/kgauto-compiler 2.0.0-alpha.85 → 2.0.0-alpha.87

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.
@@ -265,7 +265,7 @@ var PROFILES_RAW = [
265
265
  },
266
266
  {
267
267
  id: "claude-opus-4-7",
268
- verifiedAgainstDocs: "2026-05-08",
268
+ verifiedAgainstDocs: "2026-08-14",
269
269
  provider: "anthropic",
270
270
  status: "legacy",
271
271
  // s76 2026-07-25: docs list as LEGACY (Opus 5 is current). Bundle said current while the brain already said legacy — the two disagreed.
@@ -315,7 +315,7 @@ var PROFILES_RAW = [
315
315
  },
316
316
  {
317
317
  id: "claude-opus-4-6",
318
- verifiedAgainstDocs: "2026-05-08",
318
+ verifiedAgainstDocs: "2026-08-14",
319
319
  provider: "anthropic",
320
320
  status: "legacy",
321
321
  maxContextTokens: 1e6,
@@ -360,7 +360,7 @@ var PROFILES_RAW = [
360
360
  },
361
361
  {
362
362
  id: "claude-sonnet-4-6",
363
- verifiedAgainstDocs: "2026-05-08",
363
+ verifiedAgainstDocs: "2026-08-14",
364
364
  provider: "anthropic",
365
365
  status: "legacy",
366
366
  // s76 2026-07-25: docs list as LEGACY (Sonnet 5 is current).
@@ -401,7 +401,7 @@ var PROFILES_RAW = [
401
401
  },
402
402
  {
403
403
  id: "claude-haiku-4-5",
404
- verifiedAgainstDocs: "2026-05-08",
404
+ verifiedAgainstDocs: "2026-08-14",
405
405
  provider: "anthropic",
406
406
  status: "current",
407
407
  maxContextTokens: 2e5,
@@ -464,7 +464,7 @@ var PROFILES_RAW = [
464
464
  // ── Google ──
465
465
  {
466
466
  id: "gemini-2.5-flash",
467
- verifiedAgainstDocs: "2026-05-08",
467
+ verifiedAgainstDocs: "2026-08-14",
468
468
  provider: "google",
469
469
  status: "current",
470
470
  maxContextTokens: 1048576,
@@ -570,7 +570,7 @@ var PROFILES_RAW = [
570
570
  // thresholds. The brain will validate/relax these as evidence accumulates
571
571
  // per (archetype, model) tuple. Currently ZERO brain rows for this model.
572
572
  id: "gemini-2.5-flash-lite",
573
- verifiedAgainstDocs: "2026-05-13",
573
+ verifiedAgainstDocs: "2026-08-14",
574
574
  provider: "google",
575
575
  status: "current",
576
576
  maxContextTokens: 1048576,
@@ -665,9 +665,21 @@ var PROFILES_RAW = [
665
665
  },
666
666
  {
667
667
  id: "gemini-2.5-pro",
668
- verifiedAgainstDocs: "2026-05-08",
668
+ verifiedAgainstDocs: "2026-08-08",
669
669
  provider: "google",
670
- status: "current",
670
+ // alpha.86 — AVAILABILITY demotion, not a provider-lifecycle mirror.
671
+ // Google's docs still list 2.5-pro as Stable, but the serving layer
672
+ // disagrees per account cohort: tt-intel measured 4/4 refusals
673
+ // ("no longer available to new users", 2026-08-02, their bench), and
674
+ // kgauto's own key 429s on a FreeTier per-day quota (probed
675
+ // 2026-08-08). A chain anchor that hard-fails for whole account
676
+ // cohorts is not an anchor; `legacy` removes it from cost-ordered
677
+ // chains and new selection while keeping the profile resolvable for
678
+ // consumers who pass it explicitly. Re-promotion is one status flip
679
+ // if Google restores availability. The registry cannot yet express
680
+ // account-cohort availability as data — see interfaces/kgauto.md
681
+ // ## Requested 2026-08-02.
682
+ status: "legacy",
671
683
  maxContextTokens: 1048576,
672
684
  maxOutputTokens: 65535,
673
685
  maxTools: 128,
@@ -697,7 +709,7 @@ var PROFILES_RAW = [
697
709
  }
698
710
  ],
699
711
  strengths: ["reasoning", "1m_context", "structured_output", "tool_use"],
700
- weaknesses: ["pricing_above_200k"],
712
+ weaknesses: ["pricing_above_200k", "availability_restricted_by_account_cohort"],
701
713
  // Master plan §3.3 anchor: tier-2 cross-provider in almost every chain.
702
714
  // Sits on the frontier at perf-9 — close to Sonnet but cheaper input.
703
715
  archetypePerf: {
@@ -715,7 +727,7 @@ var PROFILES_RAW = [
715
727
  },
716
728
  {
717
729
  id: "gemini-3.1-pro-preview",
718
- verifiedAgainstDocs: "2026-05-08",
730
+ verifiedAgainstDocs: "2026-08-14",
719
731
  provider: "google",
720
732
  status: "preview",
721
733
  maxContextTokens: 1048576,
@@ -775,7 +787,7 @@ var PROFILES_RAW = [
775
787
  // deepseek-reasoner registered as aliases (see ALIASES below).
776
788
  {
777
789
  id: "deepseek-v4-flash",
778
- verifiedAgainstDocs: "2026-05-08",
790
+ verifiedAgainstDocs: "2026-08-14",
779
791
  provider: "deepseek",
780
792
  status: "current",
781
793
  maxContextTokens: 1e6,
@@ -813,7 +825,7 @@ var PROFILES_RAW = [
813
825
  // baseQuality (it carries 'reasoning') with no latency counterweight,
814
826
  // leapfrogged gemini-2.5-flash as PB's summarize leader once reachable.
815
827
  latencyTier: "slow",
816
- notes: "Cheap workhorse. 1M context, 384k max output. Cache-hit input $0.0028/M (1/50\xD7 of miss). Aliased as `deepseek-chat` (non-thinking) and `deepseek-reasoner` (thinking) \u2014 see ALIASES.",
828
+ notes: "Cheap workhorse. 1M context, 384k max output. Cache-hit input $0.0028/M (1/50\xD7 of miss). Aliased as `deepseek-chat` (non-thinking) and `deepseek-reasoner` (thinking) \u2014 see ALIASES. PRICING MODEL CHANGE effective 2026-08-16: DeepSeek moves to peak/off-peak billing, off-peak at HALF the peak rate (docs, fetched 2026-08-14). Encoded prices are peak; cost math for off-peak traffic will overstate by up to 2x until time-of-day pricing is modeled.",
817
829
  // Master plan §6.2 anchor. Brain-validated tier 1 cross-provider for
818
830
  // classify (169 rows, 0% empty). Tier 0 for summarize-with-no-tools.
819
831
  // Falls off on hunt (sequential tools — L-040) and reasoning depth.
@@ -848,7 +860,7 @@ var PROFILES_RAW = [
848
860
  },
849
861
  {
850
862
  id: "deepseek-v4-pro",
851
- verifiedAgainstDocs: "2026-06-22",
863
+ verifiedAgainstDocs: "2026-08-14",
852
864
  provider: "deepseek",
853
865
  status: "current",
854
866
  maxContextTokens: 1e6,
@@ -889,7 +901,7 @@ var PROFILES_RAW = [
889
901
  // of the served set. Tag derivation would say 'medium'; the measurement says
890
902
  // otherwise.
891
903
  latencyTier: "slow",
892
- notes: "Pro tier. 1M context, 384k max output. $0.435/$0.87 per 1M (cache-hit in $0.003625) \u2014 verified live 2026-06-22; the launch promo became the standing price (no revert). Default mode = thinking.",
904
+ notes: "Pro tier. 1M context, 384k max output. $0.435/$0.87 per 1M (cache-hit in $0.003625) \u2014 verified live 2026-06-22; the launch promo became the standing price (no revert). Default mode = thinking. PRICING MODEL CHANGE effective 2026-08-16: DeepSeek moves to peak/off-peak billing, off-peak at HALF the peak rate (docs, fetched 2026-08-14). Encoded prices are peak; cost math for off-peak traffic will overstate by up to 2x until time-of-day pricing is modeled.",
893
905
  // Master plan §3.3: tier 3 cross-provider for plan chain. Reasoning
894
906
  // bumped one notch over V4-Flash; same parallel-tool ceiling.
895
907
  archetypePerf: {
@@ -1497,13 +1509,109 @@ var PROFILES_RAW = [
1497
1509
  // +1 vs 2.5-flash — but still below Sonnet/Opus reasoning floor
1498
1510
  }
1499
1511
  },
1512
+ // ─────────────────────────────────────────────────────────────────────────
1513
+ // gemini-3.6-flash — hand-onboarded s86 (2026-08-14), step-zero against
1514
+ // Google docs (models/gemini-3.6-flash page + pricing via catalog-sync's
1515
+ // two-agreeing-extraction the same day). Docs list it as Stable and call
1516
+ // it "previous-generation Flash" (3.5-flash is now "legacy" in Google's
1517
+ // wording) — but kgauto status is 'preview' per the standing entry rule:
1518
+ // a new model enters on capability data verified only at the docs level,
1519
+ // preview is unreachable by starter chains, and promotion to routing
1520
+ // happens through brain evidence, not through Google's marketing tier.
1521
+ // This also means NO family-primary retarget rides this release.
1522
+ // ─────────────────────────────────────────────────────────────────────────
1523
+ {
1524
+ id: "gemini-3.6-flash",
1525
+ verifiedAgainstDocs: "2026-08-14",
1526
+ versionAdded: "2.0.0-alpha.87",
1527
+ provider: "google",
1528
+ status: "preview",
1529
+ maxContextTokens: 1048576,
1530
+ maxOutputTokens: 65536,
1531
+ maxTools: 128,
1532
+ parallelToolCalls: true,
1533
+ structuredOutput: "native",
1534
+ systemPromptMode: "separate",
1535
+ streaming: true,
1536
+ cliffs: [
1537
+ {
1538
+ metric: "input_tokens",
1539
+ threshold: 8e3,
1540
+ action: "downgrade_quality_warning",
1541
+ reason: "Inherited Flash-family guard (2.5\u21923.5 lineage); no 3.6 brain evidence yet"
1542
+ },
1543
+ {
1544
+ metric: "tool_count",
1545
+ threshold: 20,
1546
+ action: "drop_to_top_relevant",
1547
+ reason: "Inherited from Flash family: tool reliability drops above ~20 (despite 128 hard limit). Validate per (archetype, model) after n\u226520."
1548
+ },
1549
+ {
1550
+ metric: "thinking_with_short_output",
1551
+ threshold: 1,
1552
+ action: "force_thinking_budget_zero",
1553
+ reason: "Thinking supported per Google docs; same drain risk as 2.5/3.5-flash \u2014 thinking tokens consume maxOutputTokens"
1554
+ },
1555
+ {
1556
+ metric: "tool_count",
1557
+ threshold: 1,
1558
+ whenIntent: "summarize",
1559
+ action: "strip_tools",
1560
+ reason: "Inherited from 2.5-flash s11 cliff: summarize+tools \u2192 empty response. Preemptive family guard until brain evidence on 3.6-flash specifically."
1561
+ }
1562
+ ],
1563
+ costInputPer1m: 1.5,
1564
+ costOutputPer1m: 7.5,
1565
+ lowering: {
1566
+ ...GOOGLE_LOWERING_BASE,
1567
+ cache: { ...GOOGLE_LOWERING_BASE.cache, discount: 0.1 },
1568
+ thinking: { field: "generationConfig.thinkingConfig.thinkingBudget", default: "auto" }
1569
+ },
1570
+ recovery: [
1571
+ {
1572
+ signal: "empty_response_after_tool",
1573
+ action: "retry_with_params",
1574
+ retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
1575
+ maxRetries: 1,
1576
+ reason: "Inherited Flash-family pattern: empty after tool result \u2014 retry with thinking off"
1577
+ },
1578
+ {
1579
+ signal: "empty_response",
1580
+ action: "retry_with_params",
1581
+ retryParams: { "generationConfig.thinkingConfig.thinkingBudget": 0 },
1582
+ maxRetries: 1,
1583
+ reason: "Empty response \u2014 try with thinking off"
1584
+ },
1585
+ {
1586
+ signal: "malformed_function_call",
1587
+ action: "escalate",
1588
+ reason: "MALFORMED_FUNCTION_CALL maps to stop \u2014 escalate to next target"
1589
+ }
1590
+ ],
1591
+ strengths: ["agentic_loops", "coding", "1m_context", "parallel_tools", "thinking_mode"],
1592
+ weaknesses: ["no_brain_evidence_yet"],
1593
+ notes: "Hand-onboarded s86 (2026-08-14), step-zero verified: 1,048,576 ctx / 65,536 out (Google model page), $1.50/$7.50 per 1M (catalog-sync two-agreeing-extraction same day \u2014 CHEAPER output than 3.5-flash at $9.00). Docs status Stable; enters kgauto as preview per standing rule (availability != lifecycle, promotion via brain evidence). Function calling + structured outputs + thinking per docs; parallel tools assumed per Flash family (docs silent). First flagged by the release watcher s73; sat in the onboarding queue 18 days \u2014 drained by the s86 catalog-sync run.",
1594
+ archetypePerf: {
1595
+ hunt: 9,
1596
+ // Flash-family parallel-tool tier (L-040); inherited from 3.5-flash
1597
+ classify: 7,
1598
+ summarize: 7,
1599
+ transform: 7,
1600
+ ask: 8,
1601
+ generate: 8,
1602
+ plan: 7,
1603
+ extract: 7,
1604
+ critique: 5
1605
+ }
1606
+ },
1500
1607
  {
1501
1608
  // Auto-onboarded 2026-07-01 from `claude-sonnet-4-6`; VERIFIED 2026-07-02
1502
1609
  // against the claude-api reference (cc-portfolio ratification pass). The
1503
- // clone got context right (1M) and pricing right at sticker ($3/$15
1504
- // NOTE an introductory $2/$10 per MTok runs through 2026-08-31; sticker
1505
- // encoded here per the time-bounded-pricing convention, intro belongs in
1506
- // brain kgauto_pricing if worth capturing). The clone got max output WRONG:
1610
+ // clone got context right (1M). PRICING RE-BASED 2026-08-14 (s86): the
1611
+ // introductory $2/$10 was made PERMANENT Anthropic's pricing page now
1612
+ // states the scheduled Sept-1 increase to $3/$15 "will not occur", so
1613
+ // $2/$10 IS the sticker. (The $3/$15 encoded 07-02 was correct under the
1614
+ // time-bounded-pricing convention at the time; the bound was cancelled.) The clone got max output WRONG:
1507
1615
  // Sonnet 5 is 128k, not 4-6's 64k — corrected. New tokenizer (~30% more
1508
1616
  // tokens for the same text vs 4-6): byte-budget consumers should re-baseline.
1509
1617
  // API quirks (claude-api ref): (a) NON-DEFAULT temperature/top_p/top_k
@@ -1516,7 +1624,7 @@ var PROFILES_RAW = [
1516
1624
  // 'preview' per the Fable precedent — no brain evidence yet; promotion to
1517
1625
  // 'current' is an explicit call. (L-049/L-081.)
1518
1626
  id: "claude-sonnet-5",
1519
- verifiedAgainstDocs: "2026-07-02",
1627
+ verifiedAgainstDocs: "2026-08-14",
1520
1628
  provider: "anthropic",
1521
1629
  status: "current",
1522
1630
  // s76 2026-07-25: GA per docs; was preview.
@@ -1528,8 +1636,9 @@ var PROFILES_RAW = [
1528
1636
  systemPromptMode: "inline",
1529
1637
  streaming: true,
1530
1638
  cliffs: [],
1531
- costInputPer1m: 3,
1532
- costOutputPer1m: 15,
1639
+ costInputPer1m: 2,
1640
+ // 2026-08-14: intro price made PERMANENT (docs: "the previously scheduled increase to $3/$15 on September 1, 2026 will not occur")
1641
+ costOutputPer1m: 10,
1533
1642
  lowering: ANTHROPIC_LOWERING_BASE,
1534
1643
  recovery: [
1535
1644
  { signal: "rate_limit", action: "escalate", reason: "429 \u2014 escalate" },
@@ -1717,6 +1826,7 @@ var brainHook = {};
1717
1826
  function canonicalId(id) {
1718
1827
  return brainHook.resolveAlias?.(id) ?? ALIASES[id] ?? id;
1719
1828
  }
1829
+ var CONSUMER_INDEX = /* @__PURE__ */ new Map();
1720
1830
  function resolveModelAlias(id) {
1721
1831
  return canonicalId(id);
1722
1832
  }
@@ -1725,7 +1835,7 @@ var PROFILE_INDEX = new Map(
1725
1835
  );
1726
1836
  function tryGetProfile(id) {
1727
1837
  const canonical = canonicalId(id);
1728
- return brainHook.getProfile?.(canonical) ?? PROFILE_INDEX.get(canonical);
1838
+ return CONSUMER_INDEX.get(canonical) ?? brainHook.getProfile?.(canonical) ?? PROFILE_INDEX.get(canonical);
1729
1839
  }
1730
1840
  function allProfiles() {
1731
1841
  return PROFILES_RAW;
@@ -1989,8 +2099,14 @@ var STARTER_CHAINS_GROUNDED = {
1989
2099
  critique: [
1990
2100
  { id: "claude-opus-4-7", grounding: "judgment", reason: "Highest reasoning bar, no degradation tier \u2014 engineer pick, awaiting measured backing" },
1991
2101
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down from Opus on 429" },
1992
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor in similar quality bracket" },
1993
- { id: "gpt-5.5", grounding: "judgment", reason: "alpha.16: third-provider frontier-tier floor (archetypePerf=9)" }
2102
+ // alpha.86: gemini-2.5-pro dropped availability-restricted (tt-intel
2103
+ // measured 4/4 cohort refusal 2026-08-02; kgauto key free-tier-quota
2104
+ // 429 2026-08-08). No current Google model clears the critique floor
2105
+ // (3.5-flash critique=5; 3.1-pro-preview scores 10 but is preview —
2106
+ // default chains carry promoted models only). deepseek-v4-pro takes the
2107
+ // third-provider tail instead.
2108
+ { id: "gpt-5.5", grounding: "judgment", reason: "alpha.16: third-provider frontier-tier floor (archetypePerf=9)" },
2109
+ { id: "deepseek-v4-pro", grounding: "judgment", reason: "alpha.86: third-provider tail replacing availability-restricted gemini-2.5-pro \u2014 critique=6 clears the floor exactly; last-resort when Anthropic AND OpenAI are down, not a quality peer of the tiers above" }
1994
2110
  ],
1995
2111
  // alpha.62 (eval spine) — pairwise output comparison. Same reasoning-floor
1996
2112
  // posture as critique (a verdict from a weak judge is worse than no
@@ -1999,14 +2115,16 @@ var STARTER_CHAINS_GROUNDED = {
1999
2115
  judge: [
2000
2116
  { id: "claude-opus-4-8", grounding: "judgment", reason: "Highest reasoning bar for pairwise verdicts \u2014 current opus (s64 roster)" },
2001
2117
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Same-provider walk-down on 429" },
2002
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor in similar quality bracket" },
2003
- { id: "gpt-5.5", grounding: "judgment", reason: "Third-provider frontier-tier floor" }
2118
+ // alpha.86: gemini-2.5-pro dropped (availability-restricted; see critique
2119
+ // note). gpt-5.5 remains the cross-provider frontier floor for verdicts.
2120
+ { id: "gpt-5.5", grounding: "judgment", reason: "Third-provider frontier-tier floor" },
2121
+ { id: "deepseek-v4-pro", grounding: "judgment", reason: "alpha.86: third-provider tail replacing availability-restricted gemini-2.5-pro \u2014 native structured output per the judge contract; last-resort tier" }
2004
2122
  ],
2005
2123
  // Reasoning matters — Sonnet primary; walk UP to Opus on 429.
2006
2124
  plan: [
2007
2125
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reasoning + cost balance \u2014 engineer pick" },
2008
2126
  { id: "claude-opus-4-7", grounding: "judgment", reason: 'Same-provider walk-UP on 429 (rare exception to "always cheaper")' },
2009
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor" },
2127
+ { 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)" },
2010
2128
  { id: "deepseek-v4-pro", grounding: "judgment", reason: "Tier 3 cost floor \u2014 no brain evidence yet" },
2011
2129
  { id: "gpt-5.4", grounding: "judgment", reason: "alpha.33: third-provider tail (archetypePerf=7) \u2014 closes openai-in-default-fallback-chains" }
2012
2130
  ],
@@ -2014,7 +2132,7 @@ var STARTER_CHAINS_GROUNDED = {
2014
2132
  generate: [
2015
2133
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality + cost match \u2014 engineer pick" },
2016
2134
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2017
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor" },
2135
+ { 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)" },
2018
2136
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7) \u2014 closes mono-Anthropic gap" }
2019
2137
  ],
2020
2138
  // ask::sonnet — STARTER_CHAINS calls this "Quality + cost match" but
@@ -2023,7 +2141,7 @@ var STARTER_CHAINS_GROUNDED = {
2023
2141
  ask: [
2024
2142
  { 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" },
2025
2143
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2026
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor" },
2144
+ { 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)" },
2027
2145
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.16: third-provider tail (archetypePerf=7)" }
2028
2146
  ],
2029
2147
  // Structured-output archetype — Flash skipped (alpha.8 MAX_TOKENS cliff,
@@ -2031,14 +2149,14 @@ var STARTER_CHAINS_GROUNDED = {
2031
2149
  extract: [
2032
2150
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Reliable structured-output anchor \u2014 engineer pick" },
2033
2151
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down with native structured output" },
2034
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor with structured-output support" },
2152
+ { 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" },
2035
2153
  { id: "gpt-5.4", grounding: "capability-fact", reason: "alpha.16: third-provider floor \u2014 native structured-output capability (archetypePerf=8)" }
2036
2154
  ],
2037
2155
  // Forgiving archetype — Sonnet primary but Flash safely floors it.
2038
2156
  transform: [
2039
2157
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality anchor \u2014 engineer pick" },
2040
2158
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Same-provider step-down" },
2041
- { id: "gemini-2.5-pro", grounding: "judgment", reason: "Cross-provider anchor" },
2159
+ { 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)" },
2042
2160
  { id: "gemini-2.5-flash", grounding: "judgment", reason: "Cost floor \u2014 forgiving archetype tolerates Flash" },
2043
2161
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.33: third-provider tail (archetypePerf=7) \u2014 closes openai-in-default-fallback-chains" }
2044
2162
  ],
@@ -2046,7 +2164,7 @@ var STARTER_CHAINS_GROUNDED = {
2046
2164
  // (capability-fact: Flash 15-75 parallel calls/step vs DeepSeek 7-8).
2047
2165
  hunt: [
2048
2166
  { id: "gemini-2.5-flash", grounding: "capability-fact", reason: "L-040 parallel-tool throughput champion (15-75 calls/step)" },
2049
- { id: "gemini-2.5-pro", grounding: "capability-fact", reason: "Cross-provider tier 1 with strong parallel-tool support" },
2167
+ { 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" },
2050
2168
  { id: "claude-sonnet-4-6", grounding: "judgment", reason: "Quality safety net for blocked-Flash case" },
2051
2169
  { id: "claude-haiku-4-5", grounding: "judgment", reason: "Reduced tool budget \u2014 cliff at 16 fires" },
2052
2170
  { id: "gpt-5.4-mini", grounding: "judgment", reason: "alpha.33: third-provider tail \u2014 OpenAI parallel-tool capable archetype" }
@@ -2094,9 +2212,9 @@ var STARTER_CHAINS_BY_MODE_GROUNDED = {
2094
2212
  reason: "Cross-provider safety net \u2014 Sonnet handles sequential agentic loops cleanly"
2095
2213
  },
2096
2214
  {
2097
- id: "gemini-2.5-pro",
2215
+ id: "gemini-3.5-flash",
2098
2216
  grounding: "judgment",
2099
- reason: "Third-provider tail when no DeepSeek key reachable"
2217
+ reason: "alpha.86: third-provider tail when no DeepSeek key reachable \u2014 replaces availability-restricted gemini-2.5-pro"
2100
2218
  }
2101
2219
  ]
2102
2220
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  ARCHETYPE_FLOOR_DEFAULT,
3
3
  getDefaultFallbackChain
4
- } from "../chunk-LO2JXTGG.mjs";
4
+ } from "../chunk-G3MKT7IR.mjs";
5
5
  import {
6
6
  tryGetProfile
7
- } from "../chunk-FD3NFXDC.mjs";
7
+ } from "../chunk-YVKTTTTB.mjs";
8
8
  import {
9
9
  subscribe,
10
10
  subscribeApp
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as TraceDetail } from '../../types-BGH_KAHu.mjs';
3
- import '../../ir-JUoybVM-.mjs';
2
+ import { a as TraceDetail } from '../../types-CK0zUlVE.mjs';
3
+ import '../../ir-P3NEU8z4.mjs';
4
4
  import '../../dialect.mjs';
5
5
 
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as TraceDetail } from '../../types-DLDJbCha.js';
3
- import '../../ir-DfrM71pA.js';
2
+ import { a as TraceDetail } from '../../types-BgfuVIVI.js';
3
+ import '../../ir-ZgN2KkuF.js';
4
4
  import '../../dialect.js';
5
5
 
6
6
  /**
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OracleScore, i as Adapter, j as PerAxisMetrics, k as Provider, l as ChainEntry, G as Grounding } from './ir-JUoybVM-.mjs';
2
- export { m as CallAttempt, n as CallError, o as ChainModelEntry, p as ChainWithGrounding, q as Constraints, E as EffortLevel, r as GoldenCaptureOptions, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, s as MutationApplied, t as NormalizedTokens, u as OutcomeKind, v as PerAxisMetricsByModel, w as PromptSection, x as SectionKind, y as ShadowProbeConfig, T as ToolCall, z as ToolDefinition, D as captureGoldenIr, J as hasMutation, K as mutationId, L as parseGoldenCaptureRate, Q as resolveGoldenCaptureRate, U as shouldCaptureGolden } from './ir-JUoybVM-.mjs';
1
+ import { C as CompilePolicy, N as NormalizedResponse, A as ApiKeys, P as ProviderOverrides, a as CompiledRequest, b as PromptIR, c as CallOptions, d as CallResult, S as SystemModelMessage, e as CompileResult, B as BestPracticeAdvisory, F as FallbackReason, f as SectionRewrite, R as RecordInput, g as RecordOutcomeInput, O as OutcomeResult, h as OutcomeSource, i as OracleScore, j as Adapter, k as PerAxisMetrics, l as Provider, m as ChainEntry, G as Grounding } from './ir-P3NEU8z4.mjs';
2
+ export { n as CallAttempt, o as CallError, p as ChainModelEntry, q as ChainWithGrounding, r as Constraints, E as EffortLevel, s as GoldenCaptureOptions, H as HistoryCachePolicy, I as IntentDeclaration, M as Message, t as MutationApplied, u as NormalizedTokens, v as OutcomeKind, w as PerAxisMetricsByModel, x as PromptSection, y as SectionKind, z as ShadowProbeConfig, T as ToolCall, D as ToolDefinition, J as captureGoldenIr, K as hasMutation, L as mutationId, Q as parseGoldenCaptureRate, U as resolveGoldenCaptureRate, V as shouldCaptureGolden } from './ir-P3NEU8z4.mjs';
3
3
  import { ModelProfile, ArchetypeConvention } from './profiles.mjs';
4
- export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, allProfiles, getProfile, latencyTierOf, profilesByProvider, resolveModelAlias, tryGetProfile } from './profiles.mjs';
4
+ export { ALIASES, CacheStrategy, CliffRule, LATENCY_TIER_MS, LatencyTier, LoweringSpec, RecoveryRule, StructuredOutputCapability, SystemPromptMode, _testClearConsumerProfiles, allProfiles, bestEffortProfile, getProfile, inferProviderFromId, latencyTierOf, profilesByProvider, registerProfiles, resolveModelAlias, tryGetProfile } from './profiles.mjs';
5
5
  export { BrainForwardConfig, BrainForwardRoutes, createBrainForwardRoutes } from './brain-proxy.mjs';
6
6
  export { KEY_FINGERPRINT_DOMAIN, KEY_FINGERPRINT_LENGTH, KeyHealthConfig, KeyHealthProvider, KeyHealthResponseBody, KeyHealthResult, KeyHealthRoute, createKeyHealthRoute, keyFingerprint } from './key-health.mjs';
7
7
  import { IntentArchetypeName, OutputMode } from './dialect.mjs';
@@ -622,6 +622,24 @@ declare function flushBrainDeadLetter(): Promise<{
622
622
  delivered: number;
623
623
  remaining: number;
624
624
  }>;
625
+ /**
626
+ * alpha.87 — `KGAUTO_SOURCE` env default for the synthetic self-mark
627
+ * (migration 056). An explicit `source` on the input always wins; when
628
+ * absent, the env var marks every outcome row this PROCESS writes — the
629
+ * zero-code path for replay harnesses and smoke environments that share
630
+ * `call()`/`record()` with real traffic (PB s89's ask: their harness sets
631
+ * `KGAUTO_SOURCE=smoke` in the harness env and touches no call sites).
632
+ *
633
+ * An unrecognized value maps to `'synthetic'` with a one-time warning
634
+ * rather than passing through: migration 056's CHECK constraint would
635
+ * reject the row server-side and the fire-and-forget write would swallow
636
+ * the rejection — silent data loss — while dropping the value entirely
637
+ * would mark declared-synthetic traffic as organic and poison liveness
638
+ * stats. `'synthetic'` keeps both the row and the discriminator honest.
639
+ */
640
+ declare function resolveOutcomeSource(explicit?: string): OutcomeSource | undefined;
641
+ /** @internal — test hook: re-arm the one-time invalid-KGAUTO_SOURCE warning. */
642
+ declare function _testResetOutcomeSourceWarning(): void;
625
643
  declare function record(input: RecordInput): Promise<void>;
626
644
  /**
627
645
  * Wire shape POSTed by `record()` to the brain proxy's `/outcomes` endpoint.
@@ -655,6 +673,12 @@ interface OutcomePayload {
655
673
  latency_ms: number;
656
674
  success: boolean;
657
675
  empty_response: boolean;
676
+ /**
677
+ * alpha.86 (migration 056) — synthetic-writer self-mark. Key OMITTED for
678
+ * organic traffic (and against pre-056 brains). NULL in the table means
679
+ * organic; liveness rules compute over `source IS NULL` rows.
680
+ */
681
+ source?: string;
658
682
  error_type?: string;
659
683
  tools_called?: string[];
660
684
  oracle_score?: number;
@@ -1226,7 +1250,7 @@ declare function runStrategyEvalWithAttribution(opts: Omit<GoldenEvalOptions, 'a
1226
1250
  * guard in `tests/version.test.ts` fails the suite (and therefore
1227
1251
  * `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
1228
1252
  */
1229
- declare const LIBRARY_VERSION = "2.0.0-alpha.85";
1253
+ declare const LIBRARY_VERSION = "2.0.0-alpha.87";
1230
1254
 
1231
1255
  /**
1232
1256
  * Oracle contract — how an app tells the brain whether a response was good.
@@ -3630,6 +3654,37 @@ declare function getRecentRollback(opts: {
3630
3654
  windowDays?: number;
3631
3655
  nowMs?: number;
3632
3656
  }): PromotionRow | undefined;
3657
+ /**
3658
+ * alpha.86 — cold-start prefetch, the promotions twin of alpha.73's
3659
+ * `prefetchMeasuredFailure`.
3660
+ *
3661
+ * alpha.73 fixed cold-isolate blindness for the measured-failure gate and
3662
+ * did not cover this sibling subsystem: `compile()` is synchronous, so on a
3663
+ * cold isolate `getApplicablePromotion` reads an empty snapshot and an
3664
+ * ACTIVE promotion silently does not apply — hitting low-traffic consumers
3665
+ * (whose isolates are cold most of the time) hardest, directly under
3666
+ * trust-artifact #3. Found s81 via the smoke's own cold-cache bug; grep
3667
+ * confirmed zero prefetch call sites existed.
3668
+ *
3669
+ * Also the fix for the s81 smoke incident's root shape: this starts the SWR
3670
+ * refresh directly, so it cannot be defeated by `getApplicablePromotion`'s
3671
+ * argument validation early-returns.
3672
+ *
3673
+ * Returns the in-flight promise (or undefined when not configured / already
3674
+ * fresh) so a caller can await it. NEVER throws.
3675
+ */
3676
+ declare function prefetchPromotions(appId: string): Promise<void> | undefined;
3677
+ /**
3678
+ * alpha.86 — bounded await on the promotions warm-up, for async callers
3679
+ * only (`call()`); `compile()` stays synchronous. Same contract as
3680
+ * `awaitMeasuredFailureReady`: bounded, silent on timeout, protective
3681
+ * never required — a slow or down brain delays a call by at most
3682
+ * `timeoutMs` and can never fail one. A zero budget still kicks the
3683
+ * prefetch (the opt-out is "do not make me wait", not "do not warm up").
3684
+ *
3685
+ * NEVER throws.
3686
+ */
3687
+ declare function awaitPromotionsReady(appId: string, timeoutMs: number): Promise<void>;
3633
3688
  /** Reset module state. Tests must call between cases. */
3634
3689
  declare function _testResetPromotions(): void;
3635
3690
  /** Wait for any in-flight refresh to settle. */
@@ -4015,4 +4070,4 @@ declare function planDecomposition(args: PlanDecompositionArgs): DecompositionPl
4015
4070
  */
4016
4071
  declare function compile(ir: PromptIR, opts?: CompileOptions): CompileResult;
4017
4072
 
4018
- export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };
4073
+ export { ABSOLUTE_FLOOR, type AISDKConvertedMessage, ALT_BLIND_TOKEN_BUDGET_BREACH, ALT_STRATEGY_IDS, ARCHETYPE_FAMILY_FITS, ARCHETYPE_FLOOR_DEFAULT, type ActionableAdvisory, Adapter, type AdvisoryEvidenceWindow, type AdvisoryResolutionSource, type AdvisorySeverity, type AdvisoryStatus, type AdvisorySuggestedFix, ApiKeys, type AppOracle, type ApplySectionRewritesArgs, type ApplySectionRewritesResult, ArchetypeConvention, type ArchetypeFamilyFit, type ArchetypePerfMap, type ArchetypePerfNMap, type ArchetypePerfScoreResult, type AttachCacheControlResult, BLOCKED_MODEL_FAMILY_SIBLING_SERVED_CODE, BLOCKED_MODEL_NOT_IN_ROSTER_CODE, BRAIN_READ_ENV_NAMES, BURST_SPAN_MS, BestPracticeAdvisory, type BrainConfig, type BrainDeadLetterEntry, type BrainHealthSnapshot, type BrainQueryConfig, type BrainReadEnv, COACH_CFG, COST_RANKING_REFERENCE_SHAPE, CallOptions, CallResult, ChainEntry, type CompatibilityIntent, type CompileForAISDKv6Result, type CompileOptions, CompilePolicy, CompileResult, CompiledRequest, type CreateDelegateOpts, DECOMPOSITION_TEMPLATES, DECOMPOSITION_TEMPLATES_VERSION, DEFAULT_FINDINGS_ENDPOINT, DEFAULT_MEASURED_FAILURE_ENDPOINT, DEFAULT_PROMOTIONS_ENDPOINT, DELEGATE_TOOL_DEFINITION, DISCIPLINE_GATES_V1_ALT_BLIND_HEADER, DISCIPLINE_GATES_V1_ALT_HEADER, type DecompositionPlan, type DecompositionStep, type DecompositionTemplate, type DelegateHandle, type DelegateRefusalReason, type DelegateResult, type DelegateToolArgs, type ExclusionFindingRow, type ExclusionResolutionSource, type ExecuteErr, type ExecuteOk, type ExecuteOptions, type ExecuteResult, type ExecutorCandidate, type FallbackPosture, FallbackReason, FamilyResolutionError, type GetActionableAdvisoriesOptions, type GetApplicablePromotionOpts, type GetDefaultFallbackChainOpts, type GetMeasuredFailureOpts, type GetPerAxisMetricsOpts, type GetRecommendedPrimaryOptions, type GoldenEvalAxis, type GoldenEvalCase, type GoldenEvalOptions, type GoldenEvalRunResult, type GoldenEvalStrategyId, type GoldenIrRecordInput, Grounding, IntentArchetypeName, JUDGE_RUBRICS, LIBRARY_VERSION, type LLMJudgeOptions, MEASURED_FAILURE_CFG, MEASURED_GROUNDING_MIN_N, type MarkAdvisoryResolvedOptions, type MarkExclusionFindingHandledOptions, type MarkPromoteReadyHandledOptions, type MeasuredFailureRuntime, type MeasuredFailureVerdict, type ModelBrainRow, type ModelCompatibility, ModelProfile, NormalizedResponse, type OracleContext, OracleScore, type OutcomePayload, OutcomeResult, OutputMode, PRODUCER_OWNED_RULE_CODES, PROVIDER_ENV_KEYS, PerAxisMetrics, type PlannedStep, type PricingRow, type ProbeShadowOptions, type ProbeShadowServed, type ProfileToRowOptions, type PromoteReadyFindingRow, type PromoteReadyResolution, type PromotionRow, type PromotionsRuntime, PromptIR, Provider, ProviderOverrides, type ProviderReachability, ROLLBACK_SUPPRESSION_WINDOW_DAYS, RULE_DISCIPLINE_GATES_V1, RULE_DISCIPLINE_GATES_V1_STRUCTURED, RULE_SEQUENTIAL_TOOL_CLIFF, type ReachabilityOpts, RecordInput, RecordOutcomeInput, type RunAdvisorPhase2Context, STRATEGY_AUTHORSHIP_INDEPENDENT, STRATEGY_AUTHORSHIP_LIMITATION, SectionRewrite, type ShadowProbeRecordInput, type StrategyAttribution, type StrategyAttributionResult, type StrategyOutcome, type SupportedProvider, type SurfaceFailureRow, type SurfaceStats, SystemModelMessage, TRANSLATOR_FLOOR, _testResetMeasuredFailure, _testResetOutcomeSourceWarning, _testResetPromotions, _testWaitForMeasuredFailureRefresh, _testWaitForPromotionsRefresh, altBlindGatesBlockFor, altGatesBlockFor, applyArchetypeConvention, applySectionRewrites, attachCacheControlToStreamTextInput, awaitMeasuredFailureReady, awaitPromotionsReady, brainHealth, buildGoldenIrRow, buildLLMJudge, buildPairwiseJudgePrompt, buildShadowProbeRow, burstCaveat, call, chainProviderSpread, classifyEvidenceWindow, classifyStrategyOutcome, clearBrain, combineOrderSwappedVerdicts, compile, compileForAISDKv6, configureBrain, configureMeasuredFailureBrain, configurePromotionsBrain, countTokens, createDelegate, deriveFamilyFromModelId, deriveOwnership, estimateChainCostUsd, estimateModelCostUsd, execute, findBetterFit, flushBrainDeadLetter, formatEvidenceSpan, getActionableAdvisories, getAllStarterChains, getAllStarterChainsWithGrounding, getApplicablePromotion, getArchetypePerfScore, getDefaultFallbackChain, getDefaultFallbackChainWithGrounding, getMeasuredFailureVerdict, getModelCompatibility, getPerAxisMetrics, getReachabilityDiagnostic, getRecentRollback, getRecommendedPrimary, getSequentialStarterChain, getSequentialStarterChainWithGrounding, getStaleExclusionFindings, getStarterChain, getStarterChainWithGrounding, isAltStrategy, isAutoPromoteEnabledFromEnv, isBrainQueryActiveFor, isBrainSync, isDelegateEnabledFromEnv, isExclusionFindingsBrainActive, isMeasuredFailureBrainActive, isMeasuredFailureGateEnabledFromEnv, isModelReachable, isPromotionsBrainActive, isProviderReachable, judgeMeasuredFailure, loadAliasesFromBrain, loadArchetypePerfFromBrain, loadArchetypePerfNFromBrain, loadChainsFromBrain, loadModelsFromBrain, loadPricingFromBrain, mapMeasuredFailureRows, markAdvisoryResolved, markExclusionFindingHandled, markPromoteReadyHandled, parseJudgeVerdict, peekBrainDeadLetter, planDecomposition, prefetchMeasuredFailure, prefetchPromotions, probeShadow, profileToRow, readBrainReadEnv, record, recordGoldenIr, recordOutcome, recordShadowProbe, renderIrForJudge, resetTokenizer, resolveConventionsForProfile, resolveOutcomeSource, resolvePricingAt, resolveProviderKey, rowToAdvisory, rubricFor, runAdvisor, runGoldenEval, runStrategyEvalWithAttribution, setTokenizer, wilsonLowerBound, withAltBlindDisciplineContract, withAltDisciplineContract, withDisciplineContract };