github-router 0.3.334 → 0.3.336

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.
Files changed (71) hide show
  1. package/README.md +8 -8
  2. package/dist/aic-ledger-D4fmThbS.js.map +1 -1
  3. package/dist/{attribution-settings-BwJ_HbhG.js → attribution-settings-XDkhQ2bk.js} +14 -14
  4. package/dist/attribution-settings-XDkhQ2bk.js.map +1 -0
  5. package/dist/{balanced-profile-contract-DkmALvc7.js → balanced-profile-contract-B_3kJNoA.js} +13 -13
  6. package/dist/balanced-profile-contract-B_3kJNoA.js.map +1 -0
  7. package/dist/browser-ext/manifest.json +1 -1
  8. package/dist/{claude-C1fHEK9k.js → claude-BOY6z6BX.js} +20 -20
  9. package/dist/claude-BOY6z6BX.js.map +1 -0
  10. package/dist/{codex-DPgcI7n4.js → codex-De2FoGs9.js} +5 -5
  11. package/dist/{codex-DPgcI7n4.js.map → codex-De2FoGs9.js.map} +1 -1
  12. package/dist/{copilot-discount-BcUa3f-k.js → copilot-discount-yDaMQob0.js} +4 -1
  13. package/dist/copilot-discount-yDaMQob0.js.map +1 -0
  14. package/dist/engine-PIHIf_NI.js +2 -0
  15. package/dist/{gate-discovery-BTgLdzhP.js → gate-discovery-aa7sEYNv.js} +3 -3
  16. package/dist/{gate-discovery-BTgLdzhP.js.map → gate-discovery-aa7sEYNv.js.map} +1 -1
  17. package/dist/{hook-mcp-client-DbFtxo6_.js → hook-mcp-client-BRL_y-bz.js} +3 -3
  18. package/dist/hook-mcp-client-BRL_y-bz.js.map +1 -0
  19. package/dist/hooks.mjs +29 -25
  20. package/dist/hooks.sha256 +1 -1
  21. package/dist/{internal-aic-status-Bma0r0ZS.js → internal-aic-status-DV2ATIRT.js} +2 -2
  22. package/dist/{internal-aic-status-Bma0r0ZS.js.map → internal-aic-status-DV2ATIRT.js.map} +1 -1
  23. package/dist/{internal-fast-dispatch-guard-VvR1xQnL.js → internal-fast-dispatch-guard-COveGbiT.js} +1 -1
  24. package/dist/{internal-fast-dispatch-guard-BykpMYog.js → internal-fast-dispatch-guard-Dtvd08n5.js} +2 -2
  25. package/dist/{internal-fast-dispatch-guard-BykpMYog.js.map → internal-fast-dispatch-guard-Dtvd08n5.js.map} +1 -1
  26. package/dist/{internal-max-dispatch-guard-6ZCEanI6.js → internal-max-dispatch-guard-BSRTtOit.js} +1 -1
  27. package/dist/{internal-max-dispatch-guard-CtIO7pm1.js → internal-max-dispatch-guard-CioyE9wn.js} +7 -6
  28. package/dist/internal-max-dispatch-guard-CioyE9wn.js.map +1 -0
  29. package/dist/{internal-plan-review-jIts3KYd.js → internal-plan-review-B4f0dpss.js} +3 -3
  30. package/dist/{internal-plan-review-jIts3KYd.js.map → internal-plan-review-B4f0dpss.js.map} +1 -1
  31. package/dist/{internal-prompt-submit-BfoWVyzs.js → internal-prompt-submit-BMJ0A7vR.js} +6 -6
  32. package/dist/internal-prompt-submit-BMJ0A7vR.js.map +1 -0
  33. package/dist/{internal-stop-hook-t_pg41SR.js → internal-stop-hook-D45G87LA.js} +5 -5
  34. package/dist/{internal-stop-hook-t_pg41SR.js.map → internal-stop-hook-D45G87LA.js.map} +1 -1
  35. package/dist/{internal-stop-review-BtGDVrv-.js → internal-stop-review-C7bOxX1q.js} +5 -5
  36. package/dist/internal-stop-review-C7bOxX1q.js.map +1 -0
  37. package/dist/main.js +11 -11
  38. package/dist/{max-profile-contract-MJJt0zm-.js → max-profile-contract-LTJstj1e.js} +7 -7
  39. package/dist/max-profile-contract-LTJstj1e.js.map +1 -0
  40. package/dist/{orchestration-Ccmfslh4.js → orchestration-BMISq91N.js} +2 -2
  41. package/dist/{orchestration-Ccmfslh4.js.map → orchestration-BMISq91N.js.map} +1 -1
  42. package/dist/{peer-mcp-personas-7esbf4L6.js → peer-mcp-personas-ChXkCxu9.js} +178 -139
  43. package/dist/peer-mcp-personas-ChXkCxu9.js.map +1 -0
  44. package/dist/{plan-review-hook-ciat1jgZ.js → plan-review-hook-BTvxvCCo.js} +2 -2
  45. package/dist/{plan-review-hook-ciat1jgZ.js.map → plan-review-hook-BTvxvCCo.js.map} +1 -1
  46. package/dist/{prompt-submit-hook-C8q_hDOv.js → prompt-submit-hook-BeLUDy_m.js} +3 -3
  47. package/dist/prompt-submit-hook-BeLUDy_m.js.map +1 -0
  48. package/dist/{provision-DFscSS0y.js → provision-ChzRLLTd.js} +3 -3
  49. package/dist/{provision-DFscSS0y.js.map → provision-ChzRLLTd.js.map} +1 -1
  50. package/dist/{serve-DHCliFCz.js → serve-BWVdTPFB.js} +8 -8
  51. package/dist/{serve-DHCliFCz.js.map → serve-BWVdTPFB.js.map} +1 -1
  52. package/dist/{server-setup-aZtjyebO.js → server-setup-azGmaBuy.js} +56 -53
  53. package/dist/server-setup-azGmaBuy.js.map +1 -0
  54. package/dist/{start-CWQ5jAwp.js → start-iGITduYA.js} +4 -4
  55. package/dist/{start-CWQ5jAwp.js.map → start-iGITduYA.js.map} +1 -1
  56. package/dist/{stop-gate-hook-DZVfKoSh.js → stop-gate-hook-DBcxPgkF.js} +2 -2
  57. package/dist/{stop-gate-hook-DZVfKoSh.js.map → stop-gate-hook-DBcxPgkF.js.map} +1 -1
  58. package/package.json +1 -1
  59. package/dist/attribution-settings-BwJ_HbhG.js.map +0 -1
  60. package/dist/balanced-profile-contract-DkmALvc7.js.map +0 -1
  61. package/dist/claude-C1fHEK9k.js.map +0 -1
  62. package/dist/copilot-discount-BcUa3f-k.js.map +0 -1
  63. package/dist/engine-Dt_WWJcW.js +0 -2
  64. package/dist/hook-mcp-client-DbFtxo6_.js.map +0 -1
  65. package/dist/internal-max-dispatch-guard-CtIO7pm1.js.map +0 -1
  66. package/dist/internal-prompt-submit-BfoWVyzs.js.map +0 -1
  67. package/dist/internal-stop-review-BtGDVrv-.js.map +0 -1
  68. package/dist/max-profile-contract-MJJt0zm-.js.map +0 -1
  69. package/dist/peer-mcp-personas-7esbf4L6.js.map +0 -1
  70. package/dist/prompt-submit-hook-C8q_hDOv.js.map +0 -1
  71. package/dist/server-setup-aZtjyebO.js.map +0 -1
@@ -6,16 +6,16 @@ import { t as state } from "./state-CVp30CBF.js";
6
6
  import { C as githubAgentGraphQLHeaders, S as copilotVersion, b as copilotBaseUrl, d as resolveModel, f as sleep$2, g as HTTPError, h as isAllowedCopilotHost, i as tryRefreshAndRetry, v as GITHUB_API_BASE_URL, w as githubAgentHeaders, x as copilotHeaders, y as GITHUB_GRAPHQL_URL } from "./token-DATA_OQK.js";
7
7
  import { a as withTransientRetry, i as sanitizeTransportText, n as classifyTransportError, r as fetchWithTransientRetry } from "./upstream-retry-i1k1Xai2.js";
8
8
  import { a as parseIntEnv, i as parseBoolEnv, l as runManagedExeCapture, o as resolveExecutable } from "./exec-MCU1H-KZ.js";
9
- import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-DkmALvc7.js";
10
- import { A as normalizeTrailingOneMSuffix, D as maxPeerInstructions, E as maxPeerDescription, O as fastEndpointForCatalogId, b as MAX_ADVISOR_SYSTEM_PROMPT, f as maxCodexReviewerModel, g as maxProReplacementModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, k as fastEndpointForModel, m as maxGrokModel, p as maxGeminiModel, r as MAX_PROFILE_LEAD_MODEL, v as maxSonnetModel } from "./max-profile-contract-MJJt0zm-.js";
9
+ import { S as FAST_PROFILE_ORACLE_MODEL, _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, c as BALANCED_PROFILE_ORACLE_MODEL, d as FAST_PROFILE_ADVISOR_EFFORT, f as FAST_PROFILE_ADVISOR_MODEL, m as FAST_PROFILE_ASTRA_MODEL, r as BALANCED_PROFILE_MODELS, x as FAST_PROFILE_ORACLE_EFFORT, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-B_3kJNoA.js";
10
+ import { A as normalizeTrailingOneMSuffix, D as maxPeerInstructions, E as maxPeerDescription, O as fastEndpointForCatalogId, b as MAX_ADVISOR_SYSTEM_PROMPT, f as maxCodexReviewerModel, g as maxProReplacementModel, h as maxOpusModel, i as MAX_PROFILE_MODELS, k as fastEndpointForModel, m as maxGrokModel, p as maxGeminiModel, r as MAX_PROFILE_LEAD_MODEL, v as maxSonnetModel } from "./max-profile-contract-LTJstj1e.js";
11
11
  import { i as registerExitHandlers$1, n as getInstanceUuid, r as recordWorkerRepo, t as WorktreeRegistry } from "./lifecycle-kpLzHUgD.js";
12
12
  import { t as MCP_WORKSPACE_HEADER } from "./mcp-workspace-header-B77WqVFw.js";
13
13
  import { n as ArtifactError, r as applyInsecureTls, t as ArtifactClient } from "./client-CQMfroGV.js";
14
14
  import { a as BluebirdError, c as ensureBluebirdClient } from "./bluebird-client-DpYl1YmJ.js";
15
15
  import { r as registerColbertExitHandlers } from "./lifecycle-BqWTXaeC.js";
16
16
  import { a as extractAndRecordPricedAic, i as extractAndRecordAic, l as recordAic, p as extractCopilotUsage } from "./aic-ledger-D4fmThbS.js";
17
- import { h as runGateChecks, m as sealedGateIds, p as resolveSealedGate } from "./stop-gate-hook-DZVfKoSh.js";
18
- import { t as liveExec } from "./orchestration-Ccmfslh4.js";
17
+ import { h as runGateChecks, m as sealedGateIds, p as resolveSealedGate } from "./stop-gate-hook-DBcxPgkF.js";
18
+ import { t as liveExec } from "./orchestration-BMISq91N.js";
19
19
  import { createRequire } from "node:module";
20
20
  import consola from "consola";
21
21
  import { chmodSync, closeSync, constants, cpSync, existsSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync, writeSync } from "node:fs";
@@ -62,11 +62,11 @@ import "diff";
62
62
  */
63
63
  const CHEAP_PROFILE_MODELS = Object.freeze({
64
64
  lead: "gemini-3.8-flash",
65
- explore: "gpt-5.6-luna",
66
- plan: "gpt-5.6-sol",
65
+ explore: "gpt-6-luna",
66
+ plan: "gpt-6-sol",
67
67
  "General-Purpose": "gemini-3.8-flash",
68
- reviewer: "gpt-5.6-luna",
69
- advisor: "gpt-5.6-sol",
68
+ reviewer: "gpt-6-luna",
69
+ advisor: "gpt-6-sol",
70
70
  oracle: "grok-4.6",
71
71
  astra: "gpt-6-astra"
72
72
  });
@@ -125,9 +125,9 @@ Object.freeze({
125
125
  /**
126
126
  * Fixed identities for the literal `github-router claude -m cheapest` profile.
127
127
  *
128
- * The cheapest all-200K tier: a `gpt-5.6-luna`/max LEAD at Claude Code's
128
+ * The cheapest all-200K tier: a `gpt-6-luna`/max LEAD at Claude Code's
129
129
  * DEFAULT (bare-slug) 200K window, every subagent at the same 200K default,
130
- * a `gpt-5.6-sol`/medium Advisor (bare slug), and a `gpt-5.6-sol`/high
130
+ * a `gpt-6-sol`/medium Advisor (bare slug), and a `gpt-6-sol`/high
131
131
  * primary Oracle. Oracle-only peer set (no `astra`), same exact four-agent
132
132
  * surface and authority structure as the cheap family.
133
133
  *
@@ -137,13 +137,13 @@ Object.freeze({
137
137
  * retune another.
138
138
  */
139
139
  const CHEAPEST_PROFILE_MODELS = Object.freeze({
140
- lead: "gpt-5.6-luna",
141
- explore: "gpt-5.6-luna",
142
- plan: "gpt-5.6-sol",
143
- "General-Purpose": "gpt-5.6-luna",
140
+ lead: "gpt-6-luna",
141
+ explore: "gpt-6-luna",
142
+ plan: "gpt-6-sol",
143
+ "General-Purpose": "gpt-6-luna",
144
144
  reviewer: "gemini-3.8-flash",
145
- advisor: "gpt-5.6-sol",
146
- oracle: "gpt-5.6-sol"
145
+ advisor: "gpt-6-sol",
146
+ oracle: "gpt-6-sol"
147
147
  });
148
148
  const CHEAPEST_PROFILE_NATIVE_AGENT_NAMES = [
149
149
  "Explore",
@@ -237,7 +237,7 @@ function oneMContextDisabled() {
237
237
  * non-Claude gateway models exactly as it does for Opus — verified against the
238
238
  * installed 2.1.222 build, where the window resolver returns `1e6` on a bracket
239
239
  * match and otherwise falls through to a 200K default. Without the bracket a
240
- * 1M-context model like `gpt-5.6-sol` (1,050,000) is budgeted at 200K and
240
+ * 1M-context model like `gpt-6-sol` (1,050,000) is budgeted at 200K and
241
241
  * auto-compacts at roughly a fifth of its real window.
242
242
  *
243
243
  * The bracket never reaches Copilot: `resolveModel` (`./utils`) strips it before
@@ -276,7 +276,7 @@ function withOneMSuffix(id) {
276
276
  * so the two paths cannot disagree about a family both can be asked about.
277
277
  *
278
278
  * Idempotent: a slug that already carries the bracket is returned unchanged, so
279
- * a user who pins `-m claude-opus-5[1m]` by hand does not get `[1m][1m]`. That
279
+ * a user who pins `-m claude-opus-5.5[1m]` by hand does not get `[1m][1m]`. That
280
280
  * early return deliberately does NOT re-validate the pin against the catalog.
281
281
  * `-m claude-haiku-4-5[1m]` therefore survives even though Haiku 4.5 is a 200K
282
282
  * model — the same as before this function existed, and `resolveModel` already
@@ -452,7 +452,7 @@ function isClaudeModel(modelId, model, originalModelId) {
452
452
  * raised. Closing that needs a change in `src/routes/messages/handler.ts`,
453
453
  * which this seam does not own. It is strictly narrower than the defect fixed
454
454
  * in `resolveEndpointForModelId`: no such model is reachable as a Claude Code
455
- * `/v1/messages` target today, whereas the plan worker's `claude-opus-5`
455
+ * `/v1/messages` target today, whereas the plan worker's `claude-opus-5.5`
456
456
  * default is.
457
457
  *
458
458
  * `originalModelId` is the optional pre-resolution request id; when supplied it
@@ -476,6 +476,7 @@ function classifyMessagesRoute(modelId, model, originalModelId, fastProfile = fa
476
476
  //#region src/lib/port.ts
477
477
  const DEFAULT_PORT = 8787;
478
478
  const DEFAULT_CLAUDE_MODEL_FALLBACKS = [
479
+ "claude-opus-5",
479
480
  "claude-opus-4-8",
480
481
  "claude-opus-4-7",
481
482
  "claude-opus-4-6"
@@ -499,7 +500,7 @@ const DEFAULT_CLAUDE_MODEL_FALLBACKS = [
499
500
  * the base `opus-${family}` slug advertises
500
501
  * `capabilities.limits.max_context_window_tokens >= 1_000_000`. This
501
502
  * is how 4.8 and 5 ship — there is no `-1m` sibling; the single
502
- * `claude-opus-4.8` / `claude-opus-5` id is itself the 1M variant.
503
+ * `claude-opus-4.8` / `claude-opus-5.5` id is itself the 1M variant.
503
504
  * Either signal flips on the `[1m]` decoration. Both signals together
504
505
  * also flip it on (no double-counting). The breadcrumb log names which
505
506
  * signal fired so users can spot catalog shape changes.
@@ -540,7 +541,7 @@ const DEFAULT_CLAUDE_MODEL_FALLBACKS = [
540
541
  * can't tell the difference between "no catalog yet" and "no 1M
541
542
  * variant" — defaulting safe-side preserves the pre-change behavior).
542
543
  */
543
- const DEFAULT_OPUS_FAMILY = "5";
544
+ const DEFAULT_OPUS_FAMILY = "5.5";
544
545
  /**
545
546
  * The lead `-m fast` selects. `gemini-3.8-flash` [1m] at high effort — a fast
546
547
  * Gemini-driven profile (see `./launch-profile`).
@@ -570,7 +571,7 @@ const BALANCED_LEAD_MODEL = BALANCED_PROFILE_MODELS.lead;
570
571
  * `SLUG` is the Anthropic-published DASHED form and is what goes into
571
572
  * `ANTHROPIC_SMALL_FAST_MODEL` / `ANTHROPIC_DEFAULT_HAIKU_MODEL`: Claude Code's
572
573
  * `/model` registry is keyed on Anthropic slugs, and seeding Copilot's dotted
573
- * id there reproduces the documented `claude-opus-5` failure where the picker
574
+ * id there reproduces the documented `claude-opus-5.5` failure where the picker
574
575
  * silently falls back to an older model. `CATALOG_ID` is Copilot's DOTTED id
575
576
  * and is what the presence probe must test, because that is the id the catalog
576
577
  * actually carries. `resolveModel` bridges the two at request time. */
@@ -605,7 +606,7 @@ const BUDGET_SMALL_FAST_CATALOG_ID = "claude-haiku-4.5";
605
606
  * `resolveLaunchProfile` (`./launch-profile`) is keyed off the SAME raw
606
607
  * argument this function receives, so the two can never disagree about
607
608
  * which launches are "fast". `isBudgetClaudeLead` (below) stays
608
- * Claude-family-only and is UNRELATED to the fast profile: `gpt-5.6-luna`
609
+ * Claude-family-only and is UNRELATED to the fast profile: `gpt-6-luna`
609
610
  * is not a Claude model, so `isBudgetClaudeLead(resolveLeadSlugArg("fast"))`
610
611
  * is false — the old Sonnet "budget lead" surfaces (advisor escalation,
611
612
  * delegation prose, small/fast Haiku tier) simply don't engage for `-m
@@ -681,14 +682,16 @@ function pickClaudeDefault(opusFamily = DEFAULT_OPUS_FAMILY) {
681
682
  return bareSlug;
682
683
  }
683
684
  /**
684
- * Default model for `github-router codex`. `gpt-5.6-sol` is the flagship
685
- * `/responses` model; the fallback chain (led by `gpt-5.5`) handles older
686
- * Copilot tiers or a rollout-lag window where sol hasn't appeared yet.
685
+ * Default model for `github-router codex`. `gpt-6-sol` is the flagship
686
+ * `/responses` model; the fallback chain (led by `gpt-6-sol` then `gpt-5.5`)
687
+ * handles older Copilot tiers or a rollout-lag window where sol hasn't
688
+ * appeared yet.
687
689
  * `resolveCodexModel` provides a final "best available `/responses` model"
688
690
  * safety net beyond this list.
689
691
  */
690
- const DEFAULT_CODEX_MODEL = "gpt-5.6-sol";
692
+ const DEFAULT_CODEX_MODEL = "gpt-6-sol";
691
693
  const DEFAULT_CODEX_MODEL_FALLBACKS = [
694
+ "gpt-5.6-sol",
692
695
  "gpt-5.5",
693
696
  "gpt-5.4",
694
697
  "gpt-5.3-codex",
@@ -5366,12 +5369,12 @@ const TIER_CHAINS = {
5366
5369
  T1: [
5367
5370
  "gpt-5.4-mini",
5368
5371
  "gpt-5-mini",
5369
- "gpt-5.6-sol",
5372
+ "gpt-6-sol",
5370
5373
  "gpt-5.5",
5371
5374
  "gemini-3.1-pro-preview"
5372
5375
  ],
5373
5376
  T2: [
5374
- "gpt-5.6-sol",
5377
+ "gpt-6-sol",
5375
5378
  "gpt-5.5",
5376
5379
  "claude-opus-4.8",
5377
5380
  "gemini-3.1-pro-preview"
@@ -6271,7 +6274,7 @@ async function observeUnit(unit) {
6271
6274
  * present — an explicitly-chosen model that Copilot can't serve THROWS rather
6272
6275
  * than being silently swapped for a fallback (a silent class-switch could send
6273
6276
  * the task to a weaker/wrong model the operator never asked for).
6274
- * - `chosen` unset: default to {@link DEFAULT_CODEX_MODEL} (gpt-5.6-sol), walking
6277
+ * - `chosen` unset: default to {@link DEFAULT_CODEX_MODEL} (gpt-6-sol), walking
6275
6278
  * {@link DEFAULT_CODEX_MODEL_FALLBACKS} only when a catalog says the preferred
6276
6279
  * default is absent (older Copilot tiers).
6277
6280
  *
@@ -9128,7 +9131,7 @@ function buildRoleAgent(role, maxProfileReviewModel) {
9128
9131
  "Verification commands and outcomes",
9129
9132
  "Risks and follow-ups"
9130
9133
  ],
9131
- model: "gpt-5.6-sol"
9134
+ model: "gpt-6-sol"
9132
9135
  },
9133
9136
  reviewer: {
9134
9137
  description: "Adversarial code reviewer for concrete diffs; reports real findings with severity and file:line.",
@@ -9208,7 +9211,7 @@ function buildRoleAgent(role, maxProfileReviewModel) {
9208
9211
  "Commands run and outcomes",
9209
9212
  "Failures that require implementation work"
9210
9213
  ],
9211
- model: "gpt-5.6-sol"
9214
+ model: "gpt-6-sol"
9212
9215
  },
9213
9216
  ceo: {
9214
9217
  description: "Operate the product strategy, growth, and launch loop; turn evidence into auditable bets and delegate execution.",
@@ -11212,7 +11215,7 @@ function createFirstMateTools(depsOverride = {}) {
11212
11215
  acceptance_criteria: stringProp("User-blessed acceptance criteria for the mission."),
11213
11216
  priority: numberProp("Optional numeric priority; higher values are handled by controller policy."),
11214
11217
  house_rules: stringProp("Optional repository or operator constraints."),
11215
- default_model: stringProp("Model the GitHub cloud coding agent uses for this mission's tasks; defaults to gpt-5.6-sol."),
11218
+ default_model: stringProp("Model the GitHub cloud coding agent uses for this mission's tasks; defaults to gpt-6-sol."),
11216
11219
  plan_gate: enumProp(["hard", "soft"], "Plan-review gate. hard (default) requires the flow's review before build and re-plans on a rejecting review; soft auto-advances a passing plan review to build without human approval but escalates a rejecting review to a human."),
11217
11220
  ci_required: boolProp("When true, refuse merge approval if the repository reports no CI for the PR head.")
11218
11221
  }, [
@@ -14852,8 +14855,10 @@ const MIN_CACHEABLE_PREFIX_BYTES = 4096;
14852
14855
  const CACHE_KEY_NAMESPACE = "ghr-cache-v1";
14853
14856
  const CACHE_DIAGNOSTIC_LIMIT = 128;
14854
14857
  const GPT56_EXPLICIT_CACHE_MODELS = /* @__PURE__ */ new Set([
14858
+ "gpt-6-sol",
14855
14859
  "gpt-5.6-sol",
14856
14860
  "gpt-5.6-terra",
14861
+ "gpt-6-luna",
14857
14862
  "gpt-5.6-luna"
14858
14863
  ]);
14859
14864
  const priorSignatures = /* @__PURE__ */ new Map();
@@ -14987,7 +14992,7 @@ function responsesCacheKey(payload, opts, stablePrefix) {
14987
14992
  * addition to it — turning it on for a request marks only the bytes an
14988
14993
  * explicit breakpoint names, and the REST of that request's prefix (here,
14989
14994
  * the entire un-marked growing message history) stops receiving automatic
14990
- * prefix-growth caching too. Measured on `gpt-5.6-sol` with explicit mode
14995
+ * prefix-growth caching too. Measured on `gpt-6-sol` with explicit mode
14991
14996
  * force-enabled for conversation workloads: turn 1 (cold)
14992
14997
  * `input_tokens=27038, cache_write=2031, cache_read=0`; turn 2
14993
14998
  * `input_tokens=27054, cache_read=2031`; turn 3 `input_tokens=27071,
@@ -15188,14 +15193,14 @@ function applyClaudeCachePolicy(rawBody, opts) {
15188
15193
  * on 2026-08-10 across all 23 vision-capable models:
15189
15194
  *
15190
15195
  * - gemini-3.x catalog 10 → upstream enforces exactly 10
15191
- * - gpt-5.6-sol catalog 1 → upstream enforces 50
15196
+ * - gpt-6-sol catalog 1 → upstream enforces 50
15192
15197
  * - gpt-5.5 catalog 1 → accepted 120, no ceiling found
15193
- * - claude-opus-5 catalog 1 → accepted 200, no ceiling found
15198
+ * - claude-opus-5.5 catalog 1 → accepted 200, no ceiling found
15194
15199
  * - claude-sonnet/haiku catalog 5 → accepted 32+
15195
15200
  *
15196
15201
  * So the field is accurate for one family and understates the truth by 50x to
15197
15202
  * 200x everywhere else. Note the real ceiling is not even uniform WITHIN a
15198
- * family: gpt-5.6-sol stops at 50 while gpt-5.5 took 120, which is the sharpest
15203
+ * family: gpt-6-sol stops at 50 while gpt-5.5 took 120, which is the sharpest
15199
15204
  * argument against substituting one hardcoded number for another. A local cardinality reject built on it rejected at 2
15200
15205
  * what upstream serves at 50, and — because the count was taken over the whole
15201
15206
  * assembled payload including replayed history — the caller could not act on
@@ -19554,6 +19559,10 @@ const TOKENS_PER_MILLION = 1e6;
19554
19559
  * there. Price can, so hardcoding is strictly a degraded fallback.
19555
19560
  */
19556
19561
  const FALLBACK_TOKEN_PRICES = Object.freeze({
19562
+ "gpt-6-luna": {
19563
+ in: 20,
19564
+ out: 120
19565
+ },
19557
19566
  "gpt-5.6-luna": {
19558
19567
  in: 20,
19559
19568
  out: 120
@@ -19578,10 +19587,18 @@ const FALLBACK_TOKEN_PRICES = Object.freeze({
19578
19587
  in: 100,
19579
19588
  out: 500
19580
19589
  },
19590
+ "claude-opus-5.5": {
19591
+ in: 500,
19592
+ out: 2500
19593
+ },
19581
19594
  "claude-opus-5": {
19582
19595
  in: 500,
19583
19596
  out: 2500
19584
19597
  },
19598
+ "gpt-6-sol": {
19599
+ in: 400,
19600
+ out: 2e3
19601
+ },
19585
19602
  "gpt-5.6-sol": {
19586
19603
  in: 400,
19587
19604
  out: 2e3
@@ -19650,7 +19667,7 @@ function catalogTokenPrices(modelId) {
19650
19667
  * through this proxy. Reproduce with `bun scripts/bench-model-speed.ts` — the
19651
19668
  * harness is committed precisely so these numbers can be re-derived and
19652
19669
  * challenged instead of being trusted. Rounded coarsely on purpose: run-to-run
19653
- * variance is large (`gpt-5.6-sol` measured 22 in an early n=1 pass and 74 at
19670
+ * variance is large (`gpt-6-sol` measured 22 in an early n=1 pass and 74 at
19654
19671
  * n=3), so any digit beyond the leading one or two would be false precision.
19655
19672
  *
19656
19673
  * Wall clock includes time-to-first-token, which is why an early n=1 pass put
@@ -19664,8 +19681,8 @@ function catalogTokenPrices(modelId) {
19664
19681
  *
19665
19682
  * NOT the whole picture for agent work. The benchmark also measures p50 latency
19666
19683
  * to a trivial tool call, which is the workload an agent model actually spends
19667
- * its turns on, and the ordering differs from raw generation: `gpt-5.6-sol`
19668
- * generates at 75 but takes ~4.3s to reach a tool call, while `gpt-5.6-luna`
19684
+ * its turns on, and the ordering differs from raw generation: `gpt-6-sol`
19685
+ * generates at 75 but takes ~4.3s to reach a tool call, while `gpt-6-luna`
19669
19686
  * takes ~0.9s. That figure is deliberately NOT surfaced to the model, because a
19670
19687
  * second speed axis invites optimising a routing choice that policy already
19671
19688
  * settles (see the decorrelation note below).
@@ -19682,13 +19699,16 @@ function catalogTokenPrices(modelId) {
19682
19699
  * the same method.
19683
19700
  */
19684
19701
  const INDICATIVE_TOKENS_PER_SECOND = Object.freeze({
19702
+ "gpt-6-luna": 120,
19685
19703
  "gpt-5.6-luna": 120,
19686
19704
  "gpt-5.6-terra": 100,
19687
19705
  "gpt-5.4-mini": 100,
19688
19706
  "claude-sonnet-5": 100,
19689
19707
  "gpt-5.3-codex": 85,
19690
19708
  "claude-haiku-4.5": 85,
19709
+ "claude-opus-5.5": 80,
19691
19710
  "claude-opus-5": 80,
19711
+ "gpt-6-sol": 75,
19692
19712
  "gpt-5.6-sol": 75,
19693
19713
  "grok-4.5": 70,
19694
19714
  "gpt-5.5": 65,
@@ -22584,7 +22604,7 @@ const getTokenCount = async (payload, model) => {
22584
22604
  * We intentionally omit copilot-vision-request. VS Code only sends it when
22585
22605
  * images are present, and the native /v1/messages endpoint handles vision
22586
22606
  * without it — VERIFIED live (2026-08-03) rather than assumed: the same
22587
- * base64 image sent to claude-opus-5 with the header omitted and with it set
22607
+ * base64 image sent to claude-opus-5.5 with the header omitted and with it set
22588
22608
  * both returned 200 AND the model named the image's colour in each case, so
22589
22609
  * the pixels genuinely reach it either way. Probe `passthrough_image_claude`
22590
22610
  * in scripts/probe-copilot-compat.sh keeps that verified; if Copilot ever
@@ -22799,7 +22819,11 @@ async function countTokens(body, extraHeaders, callerSignal, retryTransient = fa
22799
22819
  * does not silently inherit the xhigh effort default.
22800
22820
  */
22801
22821
  /** Preference-ordered OpenAI frontier reasoning models (SELECTION list). */
22802
- const OPENAI_FRONTIER_MODELS = ["gpt-5.6-sol", "gpt-5.5"];
22822
+ const OPENAI_FRONTIER_MODELS = [
22823
+ "gpt-6-sol",
22824
+ "gpt-5.6-sol",
22825
+ "gpt-5.5"
22826
+ ];
22803
22827
  /** Models whose shim reasoning effort becomes xhigh when the operator opts in
22804
22828
  * with `GH_ROUTER_FRONTIER_XHIGH_DEFAULT=1` (effort POLICY set).
22805
22829
  *
@@ -22808,7 +22832,11 @@ const OPENAI_FRONTIER_MODELS = ["gpt-5.6-sol", "gpt-5.5"];
22808
22832
  * `thinking` block at all; forcing xhigh here would silently override the level
22809
22833
  * the user chose. The set is retained so the opt-in restores the previous
22810
22834
  * behavior exactly, targeting the same models it used to. */
22811
- const XHIGH_DEFAULT_SHIM_MODELS = ["gpt-5.6-sol", "gpt-5.5"];
22835
+ const XHIGH_DEFAULT_SHIM_MODELS = [
22836
+ "gpt-6-sol",
22837
+ "gpt-5.6-sol",
22838
+ "gpt-5.5"
22839
+ ];
22812
22840
  /** Normalize a model id for policy comparison: strip a leading `vendor/`
22813
22841
  * prefix and any trailing `[...]` decoration(s) (e.g. `[1m]`, `[1m][beta]`)
22814
22842
  * plus trailing whitespace. */
@@ -22843,9 +22871,9 @@ const REVIEW_FAST_DEFAULT_MODEL = "gemini-3.8-flash";
22843
22871
  *
22844
22872
  * Returns true iff Copilot's live catalog (`state.models?.data`) contains
22845
22873
  * ALL THREE peer models the consensus protocol needs:
22846
- * - an OpenAI frontier model (`gpt-5.6-sol`, else `gpt-5.5` — see
22874
+ * - an OpenAI frontier model (`gpt-6-sol`, else `gpt-6-sol`, else `gpt-5.5` — see
22847
22875
  * `resolveOpenAiFrontier`)
22848
- * - `claude-opus-5` (stand_in's Anthropic slot)
22876
+ * - `claude-opus-5.5` (stand_in's Anthropic slot)
22849
22877
  * - standard/BYO: the preferred Gemini reviewer model
22850
22878
  * (`gemini-3.1-pro-preview`, falling back to `gemini-3.8-flash`)
22851
22879
  * - max: Grok 4.6/high when usable, otherwise Gemini 3.8 Flash 1M/high
@@ -22854,7 +22882,7 @@ const REVIEW_FAST_DEFAULT_MODEL = "gemini-3.8-flash";
22854
22882
  * fails `tools/call` with -32601 (mirroring the `worker` capability's
22855
22883
  * defense-in-depth pattern — the gated tool is functionally invisible).
22856
22884
  *
22857
- * `claude-opus-5` is a single-segment slug (dotted == dashed), so the
22885
+ * `claude-opus-5.5` is the dotted Copilot id (dashed `claude-opus-5-5` resolves via `resolveModel`), so the
22858
22886
  * catalog probe matches Copilot's actual id shape directly.
22859
22887
  */
22860
22888
  /**
@@ -22932,7 +22960,7 @@ function firstPresentInCatalog(chain, opts) {
22932
22960
  }
22933
22961
  /**
22934
22962
  * First available OpenAI frontier model in the live catalog (prefer
22935
- * `gpt-5.6-sol`, fall back to `gpt-5.5`). Returns undefined when neither is
22963
+ * `gpt-6-sol`, fall back to `gpt-6-sol`, then `gpt-5.5`). Returns undefined when neither is
22936
22964
  * present. With `requireToolCalls`, only returns a model whose catalog entry
22937
22965
  * advertises `tool_calls`.
22938
22966
  */
@@ -22943,16 +22971,16 @@ function standInToolEnabled(opts = {}) {
22943
22971
  const models = state.models?.data;
22944
22972
  if (!models) return false;
22945
22973
  const hasOpenAi = resolveOpenAiFrontier() != null;
22946
- const hasOpus = models.some((m) => m.id === "claude-opus-5");
22974
+ const hasOpus = models.some((m) => m.id === "claude-opus-5.5" || m.id === "claude-opus-5");
22947
22975
  const hasThirdLab = opts.maxProfile ? maxProReplacementModel() != null : geminiAvailable();
22948
22976
  return hasOpenAi && hasOpus && hasThirdLab;
22949
22977
  }
22950
22978
  /** Model for the native subagent that wants the OpenAI frontier coder
22951
- * (`implementer`) iff it is live with tool calls. Prefers `gpt-5.6-sol`, falls
22979
+ * (`implementer`) iff it is live with tool calls. Prefers `gpt-6-sol`, falls
22952
22980
  * back to `gpt-5.5`. Absent → the agent omits its `model:` line and inherits
22953
22981
  * the lead's model.
22954
22982
  *
22955
- * Public web benchmarks put `gpt-5.6-sol` ahead of both `gpt-5.6-terra` and
22983
+ * Public web benchmarks put `gpt-6-sol` (and previously `gpt-6-sol`) ahead of both `gpt-5.6-terra` and
22956
22984
  * `gpt-5.3-codex` on coding (Terminal-Bench 2.1 88.8 vs 87.1; SWE-bench
22957
22985
  * Verified 96.2 vs ~80 for 5.3-codex, which also trails gpt-5.5 on SWE-bench
22958
22986
  * Pro). Terra is the cheaper tier at ~98% of the capability, so it is the right
@@ -23007,7 +23035,7 @@ function scribeModel() {
23007
23035
  * (same behavior as before `scout` existed) rather than to an expensive
23008
23036
  * impostor wearing the cheap agent's name.
23009
23037
  *
23010
- * `gpt-5.6-luna` leads because it is the cheapest 1M-context model in the
23038
+ * `gpt-6-luna` leads because it is the cheapest 1M-context model in the
23011
23039
  * catalog; `gemini-3.8-flash` remains the cross-vendor fallback so an OpenAI-side
23012
23040
  * outage does not remove the scout. Both entries must continue advertising at
23013
23041
  * least 1M context so Claude Code's `[1m]` accounting remains honest if an
@@ -23025,7 +23053,11 @@ function scribeModel() {
23025
23053
  * 400K last resort. On a catalog carrying neither chain member, `scout` is
23026
23054
  * dropped rather than inheriting the lead or presenting a narrower-context agent.
23027
23055
  */
23028
- const SCOUT_MODEL_CHAIN = Object.freeze(["gpt-5.6-luna", "gemini-3.8-flash"]);
23056
+ const SCOUT_MODEL_CHAIN = Object.freeze([
23057
+ "gpt-6-luna",
23058
+ "gpt-5.6-luna",
23059
+ "gemini-3.8-flash"
23060
+ ]);
23029
23061
  function scoutModel() {
23030
23062
  return firstPresentInCatalog(SCOUT_MODEL_CHAIN, {
23031
23063
  requireToolCalls: true,
@@ -23035,7 +23067,7 @@ function scoutModel() {
23035
23067
  /** Model for `implementer-fast` — the cheaper implementation tier. Absent →
23036
23068
  * the agent is dropped.
23037
23069
  *
23038
- * `gpt-5.6-sol` is deliberately NOT in this chain: changes needing frontier
23070
+ * `gpt-6-sol` is deliberately NOT in this chain: changes needing frontier
23039
23071
  * judgment already belong to `implementer`, while this agent handles
23040
23072
  * well-specified, mechanical changes at a lower tier. Both entries are 1M+;
23041
23073
  * their different speed and effort properties stay out of shared claims. */
@@ -23058,13 +23090,13 @@ function reviewerFastModel() {
23058
23090
  /** Model for `general-purpose-fast` — the fast, cheapest catch-all. Absent →
23059
23091
  * dropped.
23060
23092
  *
23061
- * Single-entry by design. `gpt-5.6-luna` is the cheapest model in the live
23093
+ * Single-entry by design. `gpt-6-luna` is the cheapest model in the live
23062
23094
  * catalog and measured fastest among the catch-all candidates, while carrying
23063
23095
  * 1.05M context and the full `none..max` effort ladder. No
23064
23096
  * `-mini`/`-lite`/`-haiku` model in the catalog serves 1M, which is why this
23065
- * catch-all uses a `gpt-5.6-*` slug rather than a mini one. */
23097
+ * catch-all uses a `gpt-6-*` slug rather than a mini one. */
23066
23098
  function generalPurposeFastModel() {
23067
- return firstPresentInCatalog(["gpt-5.6-luna"], {
23099
+ return firstPresentInCatalog(["gpt-6-luna", "gpt-5.6-luna"], {
23068
23100
  requireToolCalls: true,
23069
23101
  minContextTokens: ONE_M_TOKENS
23070
23102
  });
@@ -23135,7 +23167,7 @@ function fastReviewerModel() {
23135
23167
  if (fastEndpointForModel(found) !== "messages") return void 0;
23136
23168
  return FAST_REVIEWER_MODEL;
23137
23169
  }
23138
- /** Dedicated GPT-5.6 Sol Advisor check. */
23170
+ /** Dedicated GPT-6 Sol Advisor check. */
23139
23171
  function fastAdvisorModel() {
23140
23172
  const found = state.models?.data.find((m) => m.id === FAST_ADVISOR_MODEL);
23141
23173
  if (!found) return void 0;
@@ -23283,7 +23315,7 @@ function balancedReviewerModel() {
23283
23315
  *
23284
23316
  * Returns true iff BOTH:
23285
23317
  * 1. Copilot's live catalog (`state.models?.data`) contains any model in the
23286
- * ordered worker gate chain (`gpt-5.6-luna` → `gpt-5.4-mini`) and that
23318
+ * ordered worker gate chain (`gpt-6-luna` → `gpt-6-luna` → `gpt-5.4-mini`) and that
23287
23319
  * entry advertises `capabilities.supports.tool_calls === true`. Luna leads
23288
23320
  * on qualifying tiers; mini preserves the worker surface on individual
23289
23321
  * trial and education catalogs. The catalog is the entitlement signal.
@@ -23410,7 +23442,7 @@ function artifactToolsEnabled() {
23410
23442
  * browser is on disk. The browse agent drives the SAME Chrome/Edge
23411
23443
  * bridge as the raw `browser_*` tools, so it can't be useful without
23412
23444
  * that surface enabled.
23413
- * 2. The browse default model (`BROWSE_DEFAULT_MODEL`, `gpt-5.6-luna`)
23445
+ * 2. The browse default model (`BROWSE_DEFAULT_MODEL`, `gpt-6-luna`)
23414
23446
  * is in Copilot's live catalog AND `pickEndpoint()` resolves a
23415
23447
  * reachable endpoint for it. Unlike `workerToolsEnabled()` (which
23416
23448
  * checks `tool_calls` on the shared gate sentinel), the browse default is
@@ -23575,9 +23607,9 @@ function checkAuth(c) {
23575
23607
  /**
23576
23608
  * opus_critic's effective model, resolved against the live catalog.
23577
23609
  *
23578
- * Prefers `claude-opus-5` — a single-segment slug that is natively 1M
23610
+ * Prefers `claude-opus-5.5` — the dotted catalog id that is natively 1M
23579
23611
  * (no `-1m` sibling), so it takes large artifacts in one shot (the whole
23580
- * point of pairing it with gpt-5.6-sol as the big-window peers). When opus-5
23612
+ * point of pairing it with gpt-6-sol as the big-window peers). When opus-5.5
23581
23613
  * isn't in the catalog (e.g. a lesser tier), falls back to the older
23582
23614
  * 1M-context Opus 4.6 variant (`claude-opus-4.6-1m`, `max_prompt_tokens`
23583
23615
  * 936K), then to the 200K `claude-opus-4-6`. The 4.6 regex is
@@ -23589,7 +23621,8 @@ function checkAuth(c) {
23589
23621
  const OPUS_1M_RE = /opus-4[.-]6-1m(?:$|-)/i;
23590
23622
  function resolveOpusCriticModel() {
23591
23623
  const models = state.models?.data;
23592
- if (models?.some((m) => m.id === "claude-opus-5")) return "claude-opus-5";
23624
+ if (models?.some((m) => m.id === "claude-opus-5.5")) return "claude-opus-5.5";
23625
+ if (models?.some((m) => m.id === "claude-opus-5.5")) return "claude-opus-5.5";
23593
23626
  const oneM = models?.find((m) => OPUS_1M_RE.test(m.id));
23594
23627
  return oneM ? oneM.id : "claude-opus-4-6";
23595
23628
  }
@@ -23606,7 +23639,7 @@ function activePersonas(launch) {
23606
23639
  if (p.requiresGeminiCatalog) return resolveGeminiPersona(p, resolveGeminiReviewModel());
23607
23640
  if (p.toolNameHttp !== "opus_critic") return p;
23608
23641
  const model = resolveOpusCriticModel();
23609
- const allowedEfforts = model === "claude-opus-5" ? [
23642
+ const allowedEfforts = model === "claude-opus-5.5" || model === "claude-opus-5.5" ? [
23610
23643
  "low",
23611
23644
  "medium",
23612
23645
  "high",
@@ -23622,7 +23655,7 @@ function activePersonas(launch) {
23622
23655
  function oracleToolEntry(isCheap = false, astraAvailable = true, oracleDescriptor) {
23623
23656
  return {
23624
23657
  name: "oracle",
23625
- description: `Expert consultant backed by ${oracleDescriptor ?? (isCheap ? "Grok 4.6 (200K context, medium effort)" : "exact Opus 5 (1M context, high effort)")} for complex conceptual, algorithmic, spec/protocol, or architectural trade-offs. Stateless and cold-start: evaluates a self-contained brief.\n\nWhen to invoke: use for difficult conceptual, algorithmic, spec/protocol, or architectural tradeoffs before implementation when repository evidence alone cannot settle them. Preferred over advisor for self-contained technical briefs.\n\nWhen NOT to invoke: not for transcript-aware framing (consult Advisor), ${astraAvailable ? "terminal dead ends (consult Astra), " : "terminal dead ends (no escalation peer on this profile; report the dead end with evidence to the lead), "}routine code lookup, or mechanical facts verifiable by tests.\n\nPass complete context, constraints, minimal code excerpts with path:line, and one precise unresolved question.`,
23658
+ description: `Expert consultant backed by ${oracleDescriptor ?? (isCheap ? "Grok 4.6 (200K context, medium effort)" : "exact Opus 5.5 (1M context, high effort)")} for complex conceptual, algorithmic, spec/protocol, or architectural trade-offs. Stateless and cold-start: evaluates a self-contained brief.\n\nWhen to invoke: use for difficult conceptual, algorithmic, spec/protocol, or architectural tradeoffs before implementation when repository evidence alone cannot settle them. Preferred over advisor for self-contained technical briefs.\n\nWhen NOT to invoke: not for transcript-aware framing (consult Advisor), ${astraAvailable ? "terminal dead ends (consult Astra), " : "terminal dead ends (no escalation peer on this profile; report the dead end with evidence to the lead), "}routine code lookup, or mechanical facts verifiable by tests.\n\nPass complete context, constraints, minimal code excerpts with path:line, and one precise unresolved question.`,
23626
23659
  inputSchema: {
23627
23660
  type: "object",
23628
23661
  required: ["query", "context"],
@@ -23800,7 +23833,7 @@ function toolEntries(scope, launch, audience = "shared") {
23800
23833
  const astraWired = launch.profileId === "fast" || launch.profileId === "cheap1m";
23801
23834
  const astraAvailable = astraWired && (isCheap && !isCheapest ? cheapAstraModel() : isCheapest ? void 0 : fastAstraModel()) != null;
23802
23835
  const oracleGate = isCheapest ? cheapestOracleModel() : isBalanced ? balancedOracleModel() : isCheap ? cheapOracleModel() : fastOracleModel();
23803
- const oracleDescriptor = isCheapest ? "GPT-5.6 Sol (200K context, high effort)" : void 0;
23836
+ const oracleDescriptor = isCheapest ? "GPT-6 Sol (200K context, high effort)" : void 0;
23804
23837
  const entries = [];
23805
23838
  if ((scope === "all" || scope === "peers") && launch.allowedGroups?.has("peers") && launch.allowedPersonas?.has("oracle") && oracleGate) entries.push(oracleToolEntry(isCheap, astraAvailable, oracleDescriptor));
23806
23839
  if ((scope === "all" || scope === "peers") && launch.allowedGroups?.has("peers") && launch.allowedPersonas?.has("astra") && audience === "lead-peers" && astraWired && (isCheap ? cheapAstraModel() : fastAstraModel())) entries.push(astraToolEntry(isCheap));
@@ -24009,9 +24042,9 @@ async function predictedWindowOverflow(persona, prompt, context, opts) {
24009
24042
  if (tokens <= budget) return void 0;
24010
24043
  if (opts?.advice) return `pre-flight rejected: this ${persona.toolNameHttp} brief is ≈${tokens} tokens, over the ${budget}-token budget for ${persona.model} (its ${maxPromptTokens}-token prompt window minus a ${PEER_PROMPT_TOKEN_RESERVE}-token framing reserve). ${opts.advice}`;
24011
24044
  const criticModel = resolveOpusCriticModel();
24012
- const criticIs1M = criticModel === "claude-opus-5" || OPUS_1M_RE.test(criticModel);
24013
- const opusHint = id === "claude-opus-5" || OPUS_1M_RE.test(id) || !criticIs1M ? "" : " / `opus_critic` (Opus 5, 1M context ≈ 1M tokens)";
24014
- return `pre-flight rejected: this ${persona.toolNameHttp} brief is ≈${tokens} tokens, over the ${budget}-token budget for ${persona.model} (its ${maxPromptTokens}-token prompt window minus a ${PEER_PROMPT_TOKEN_RESERVE}-token framing reserve). Do NOT summarize or truncate the artifact to fit. Route the full artifact to a larger-window peer — \`codex_critic\` (gpt-5.6-sol ≈ 1M tokens)${opusHint} — or split it into focused sub-calls BY CONCERN and call them in parallel, then aggregate.`;
24045
+ const criticIs1M = criticModel === "claude-opus-5.5" || criticModel === "claude-opus-5.5" || OPUS_1M_RE.test(criticModel);
24046
+ const opusHint = id === "claude-opus-5.5" || id === "claude-opus-5.5" || OPUS_1M_RE.test(id) || !criticIs1M ? "" : " / `opus_critic` (Opus 5, 1M context ≈ 1M tokens)";
24047
+ return `pre-flight rejected: this ${persona.toolNameHttp} brief is ≈${tokens} tokens, over the ${budget}-token budget for ${persona.model} (its ${maxPromptTokens}-token prompt window minus a ${PEER_PROMPT_TOKEN_RESERVE}-token framing reserve). Do NOT summarize or truncate the artifact to fit. Route the full artifact to a larger-window peer — \`codex_critic\` (gpt-6-sol ≈ 1M tokens)${opusHint} — or split it into focused sub-calls BY CONCERN and call them in parallel, then aggregate.`;
24015
24048
  }
24016
24049
  /**
24017
24050
  * JSON-path pre-flight predictedTooLong gate. Returns a JSON-RPC result
@@ -24330,7 +24363,7 @@ async function handleToolsCall(body, scope, launch, audience = "shared", session
24330
24363
  const isCheapestOracle = launch.profileId === "cheapest";
24331
24364
  const isBalancedOracle = launch.profileId === "balanced";
24332
24365
  const isCheapOracle = launch.profileId === "cheap" || launch.profileId === "cheap1m" || isCheapestOracle || isBalancedOracle;
24333
- const oracleModel = isCheapestOracle ? CHEAPEST_PROFILE_ORACLE_MODEL : isCheapOracle ? CHEAP_PROFILE_ORACLE_MODEL : "claude-opus-5";
24366
+ const oracleModel = isCheapestOracle ? CHEAPEST_PROFILE_ORACLE_MODEL : isCheapOracle ? CHEAP_PROFILE_ORACLE_MODEL : "claude-opus-5.5";
24334
24367
  const oracleEndpoint = isCheapOracle ? "/v1/responses" : "/v1/messages";
24335
24368
  const oracleEffort = isCheapestOracle ? CHEAPEST_PROFILE_ORACLE_EFFORT : isCheapOracle ? CHEAP_PROFILE_ORACLE_EFFORT : "high";
24336
24369
  if (scope !== "all" && scope !== "peers" || !launch.allowedGroups?.has("peers") || !launch.allowedPersonas?.has("oracle") || !(isCheapestOracle ? cheapestOracleModel() : isBalancedOracle ? balancedOracleModel() : isCheapOracle ? cheapOracleModel() : fastOracleModel())) return rpcError(body.id, RPC_METHOD_NOT_FOUND, `tools/call: unknown tool "${name}"`);
@@ -24347,7 +24380,7 @@ async function handleToolsCall(body, scope, launch, audience = "shared", session
24347
24380
  model: oracleModel,
24348
24381
  endpoint: oracleEndpoint,
24349
24382
  description: "Fast/cheap-profile Oracle",
24350
- baseInstructions: isCheapestOracle ? "You are Oracle, an expert architectural and technical consultant running on GPT-5.6 Sol. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action." : isCheapOracle ? "You are Oracle, an expert architectural and technical consultant running on Grok 4.6. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action." : "You are Oracle, an expert architectural and technical consultant running on Opus 5. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action.",
24383
+ baseInstructions: isCheapestOracle ? "You are Oracle, an expert architectural and technical consultant running on GPT-6 Sol. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action." : isCheapOracle ? "You are Oracle, an expert architectural and technical consultant running on Grok 4.6. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action." : "You are Oracle, an expert architectural and technical consultant running on Opus 5. You have no tools or repository access. Answer from the supplied context and state assumptions explicitly, noting which facts would change the recommendation. Never claim to execute, verify, approve, merge, or authorize an action.",
24351
24384
  agentPrompt: "",
24352
24385
  writeCapable: false,
24353
24386
  requiresHttp: true,
@@ -24823,8 +24856,8 @@ function handleMcpDelete(c) {
24823
24856
  * `high` — the maximum. Listing it makes the clamp resolve to `low` instead,
24824
24857
  * which is what "nearest supported tier" should always have meant.
24825
24858
  *
24826
- * `max` is advertised by `gpt-5.6-sol`, `gpt-5.6-terra`, `gpt-5.6-luna`,
24827
- * `claude-opus-5` and the 4.7/4.8 Opus lines, and Claude Code's effort picker
24859
+ * `max` is advertised by `gpt-6-sol`, `gpt-5.6-terra`, `gpt-6-luna`,
24860
+ * `claude-opus-5.5` and the 4.7/4.8 Opus lines, and Claude Code's effort picker
24828
24861
  * offers it for any model whose entry allows it. Listing it lets an explicit
24829
24862
  * selection pass through, and lets `clampEffort` land on it for a model that
24830
24863
  * advertises nothing lower.
@@ -25383,7 +25416,7 @@ function rememberThinkingHistoryRepair(fingerprint) {
25383
25416
  * SSE connection (no new message_start; the original one is
25384
25417
  * still open). Loop up to ADVISOR_MAX_TURNS times.
25385
25418
  * 4. Lead-aware model choice: route the advisor call to a different model
25386
- * family than the main loop (gpt-5.6-sol) so the user gets a true "second
25419
+ * family than the main loop (gpt-6-sol) so the user gets a true "second
25387
25420
  * set of eyes" instead of Opus reviewing Opus (gemini-critic finding). When
25388
25421
  * the LEAD is a lighter Claude tier the choice inverts and the advisor
25389
25422
  * escalates to `ADVISOR_ESCALATION_MODEL` instead — see that constant for
@@ -25406,7 +25439,7 @@ const ADVISOR_INTERNAL_TOOL_NAME = "__anthropic_advisor";
25406
25439
  * this exact name to render the advisor spinner. */
25407
25440
  const ADVISOR_CLIENT_TOOL_NAME = "advisor";
25408
25441
  /** Default advisor model + reasoning effort. Per gemini-critic + user
25409
- * direction: hardcode to a cross-lab model (gpt-5.6-sol — Copilot's
25442
+ * direction: hardcode to a cross-lab model (gpt-6-sol — Copilot's
25410
25443
  * /responses-only flagship). The cross-lab choice gives a true "second set
25411
25444
  * of eyes" instead of the main model reviewing itself.
25412
25445
  *
@@ -25416,7 +25449,7 @@ const ADVISOR_CLIENT_TOOL_NAME = "advisor";
25416
25449
  * expresses no preference — a deliberate, user-approved cost/depth trade
25417
25450
  * applied uniformly across every advisor target (Sol, the Opus escalation,
25418
25451
  * and the fast-profile Gemini advisor below all read this same constant). */
25419
- const ADVISOR_DEFAULT_MODEL = "gpt-5.6-sol";
25452
+ const ADVISOR_DEFAULT_MODEL = "gpt-6-sol";
25420
25453
  const ADVISOR_DEFAULT_EFFORT = "xhigh";
25421
25454
  const ADVISOR_MIN_EFFORT = "high";
25422
25455
  /** The Anthropic frontier model the advisor escalates to when the LEAD is a
@@ -25434,8 +25467,8 @@ const ADVISOR_MIN_EFFORT = "high";
25434
25467
  * (`codex_critic`, `gemini_critic`, `codex_reviewer`, `gemini_reviewer`) are
25435
25468
  * the decorrelation instrument and are untouched. `GH_ROUTER_ADVISOR_MODEL`
25436
25469
  * keeps a cross-lab advisor one env var away for anyone who wants it back. */
25437
- const ADVISOR_ESCALATION_MODEL = "claude-opus-5";
25438
- /** The Advisor model for an authenticated fast primary lead. GPT-5.6 Sol
25470
+ const ADVISOR_ESCALATION_MODEL = "claude-opus-5.5";
25471
+ /** The Advisor model for an authenticated fast primary lead. GPT-6 Sol
25439
25472
  * is cross-lab from the Google-backed Gemini lead and is selected only when
25440
25473
  * its live catalog entry advertises the required Responses endpoint. Kept distinct
25441
25474
  * from `ADVISOR_DEFAULT_MODEL` so standard launches remain unchanged. */
@@ -25447,7 +25480,7 @@ function fastProfileAdvisorAvailable() {
25447
25480
  return fastEndpointForCatalogId(ADVISOR_FAST_PROFILE_MODEL, state.models?.data) === "responses";
25448
25481
  }
25449
25482
  /** The Advisor model for an authenticated cheapest primary lead:
25450
- * `gpt-5.6-sol` at medium effort over its Responses endpoint, transcript
25483
+ * `gpt-6-sol` at medium effort over its Responses endpoint, transcript
25451
25484
  * capped at `CHEAPEST_PROFILE_ADVISOR_CONTEXT_TOKENS` (200K). */
25452
25485
  const ADVISOR_CHEAPEST_PROFILE_MODEL = CHEAPEST_PROFILE_ADVISOR_MODEL;
25453
25486
  /** True only when the live Sol entry satisfies the fixed cheapest
@@ -25480,12 +25513,12 @@ const ADVISOR_RESPONSES_ENDPOINTS = /* @__PURE__ */ new Set(["/responses", "/v1/
25480
25513
  * Catalog-first, name-regex second, and BOTH tests run against the bare id as
25481
25514
  * well as the given one. `pickEndpoint` is deliberately not reused: it answers
25482
25515
  * "chat or responses" for the two tool-calling clients and would send
25483
- * `claude-opus-5` — which advertises `/v1/messages` AND `/chat/completions` — to
25516
+ * `claude-opus-5.5` — which advertises `/v1/messages` AND `/chat/completions` — to
25484
25517
  * chat. The advisor's question is narrower: does this model serve `/responses`?
25485
25518
  *
25486
25519
  * The bare-id fallback is what makes `GH_ROUTER_ADVISOR_MODEL` safe. That pin is
25487
25520
  * accepted verbatim, so an operator can write a vendor-namespaced value like
25488
- * `openai/gpt-5.6-sol`. Such an id is in no catalog and fails the start-anchored
25521
+ * `openai/gpt-6-sol`. Such an id is in no catalog and fails the start-anchored
25489
25522
  * name regex, so a catalog-only fix still posted it to `/v1/messages` and 400'd
25490
25523
  * — exported and directly tested for that exact input, because an earlier
25491
25524
  * version of this function claimed to handle it and did not.
@@ -25500,7 +25533,7 @@ function advisorUsesResponses(resolvedAdvisorModel) {
25500
25533
  * Decide `advisorTransport` for a resolved advisor model id.
25501
25534
  *
25502
25535
  * Order matters: Claude identity is checked FIRST and wins even though
25503
- * `claude-opus-5` also advertises `/chat/completions` in the live catalog —
25536
+ * `claude-opus-5.5` also advertises `/chat/completions` in the live catalog —
25504
25537
  * the historical branch never sent Claude to chat, and this preserves that
25505
25538
  * byte-for-byte (reuses the SAME classifier `classifyMessagesRoute` uses for
25506
25539
  * the main `/v1/messages` shim fork, so the two surfaces cannot disagree
@@ -25541,15 +25574,15 @@ function advertisedEffortLadder(resolvedAdvisorModel) {
25541
25574
  * but the check is explicit rather than assumed.
25542
25575
  *
25543
25576
  * The probe compares the BARE constant rather than `resolveModel`-ing it first,
25544
- * which is deliberate and not an oversight: `claude-opus-5` is a single-segment
25545
- * slug whose dashed and dotted spellings are identical, so resolution is a
25546
- * no-op, and `resolveModel` WARNS on an id it cannot find — routing this probe
25577
+ * which is deliberate and not an oversight: `claude-opus-5.5` is the dotted
25578
+ * Copilot id (dashed `claude-opus-5-5` normalizes to it), so resolution is a
25579
+ * no-op when the catalog carries it, and `resolveModel` WARNS on an id it cannot find — routing this probe
25547
25580
  * through it would emit that warning on every advisor request for anyone whose
25548
25581
  * catalog lacks opus-5, which is exactly the tier this returns false for.
25549
25582
  * `standInToolEnabled` compares the same id the same way. */
25550
25583
  function shouldEscalateAdvisor(leadModel) {
25551
25584
  if (!isBudgetClaudeLead(leadModel)) return false;
25552
- return state.models?.data?.some((m) => m.id === "claude-opus-5") ?? false;
25585
+ return state.models?.data?.some((m) => m.id === "claude-opus-5.5") ?? false;
25553
25586
  }
25554
25587
  /**
25555
25588
  * Pick the Advisor model for one request. Standard selection follows the
@@ -25570,8 +25603,8 @@ function shouldEscalateAdvisor(leadModel) {
25570
25603
  * Map an operator pin onto the id the catalog actually carries.
25571
25604
  *
25572
25605
  * `GH_ROUTER_ADVISOR_MODEL` is free-form, and the natural thing to write is a
25573
- * vendor-namespaced id like `openai/gpt-5.6-sol`. Copilot's catalog carries the
25574
- * bare `gpt-5.6-sol`, so forwarding the namespaced form verbatim gets a 400
25606
+ * vendor-namespaced id like `openai/gpt-6-sol`. Copilot's catalog carries the
25607
+ * bare `gpt-6-sol`, so forwarding the namespaced form verbatim gets a 400
25575
25608
  * `model_not_supported` and the advisor silently degrades to its
25576
25609
  * "[Advisor unavailable: ...]" fallback — measured, not theorised: choosing the
25577
25610
  * transport correctly was NOT sufficient, because the id itself was still
@@ -25782,7 +25815,7 @@ const ADVISOR_FALLBACK_MAX_TOKENS = 24e4;
25782
25815
  * budget is `max_prompt_tokens - reserve`. Generous on purpose: a 400
25783
25816
  * `model_max_prompt_tokens_exceeded` degrades to a silent advisor
25784
25817
  * fallback, and the window given up is marginal against either advisor
25785
- * model's real prompt window (`claude-opus-5` 936k, `gpt-5.6-sol` ~1M off
25818
+ * model's real prompt window (`claude-opus-5.5` 936k, `gpt-6-sol` ~1M off
25786
25819
  * the live catalog). Sized as a fraction of the smaller of the two, not as
25787
25820
  * "irrelevant next to ~1M" — that framing assumed the advisor was always
25788
25821
  * the cheap side of the pair, which stopped being true once a budget lead
@@ -25805,7 +25838,7 @@ function resolveAdvisorMaxTokens(advisorModel) {
25805
25838
  /**
25806
25839
  * Render an Anthropic-shape conversation (messages array with
25807
25840
  * role/content blocks) as a single human-readable text blob. Used
25808
- * as the input to the advisor model (gpt-5.6-sol via /v1/responses
25841
+ * as the input to the advisor model (gpt-6-sol via /v1/responses
25809
25842
  * doesn't have a 1:1 mapping for Anthropic's tool_use/tool_result
25810
25843
  * blocks; serializing to text preserves the semantics — the advisor
25811
25844
  * just needs to READ the conversation, not produce more of it).
@@ -25919,7 +25952,7 @@ function truncateTailToUnits(text, maxUnits, measure) {
25919
25952
  * Routes by model family:
25920
25953
  * - gpt-5.x / codex / o-series (have `/responses` in supported_endpoints):
25921
25954
  * use createResponses with `reasoning.effort` set. This is the
25922
- * default path — gpt-5.6-sol at xhigh effort.
25955
+ * default path — gpt-6-sol at xhigh effort.
25923
25956
  * - claude-* (no `/responses`): fall back to createMessages.
25924
25957
  *
25925
25958
  * The conversation is serialized to text via renderConversationAsText
@@ -26141,7 +26174,7 @@ async function defaultContinueTurn(body, signal, requestHeaders) {
26141
26174
  * to ADVISOR_DEFAULT_MODEL (cross-lab).
26142
26175
  */
26143
26176
  function buildAdvisorStream(opts) {
26144
- const advisorModel = opts.advisorModel ?? "gpt-5.6-sol";
26177
+ const advisorModel = opts.advisorModel ?? "gpt-6-sol";
26145
26178
  const advisorEffort = opts.advisorEffort ?? "xhigh";
26146
26179
  const advisorEscalated = opts.advisorEscalated ?? false;
26147
26180
  const advisorFastProfile = opts.advisorFastProfile ?? false;
@@ -26185,7 +26218,9 @@ function buildAdvisorStream(opts) {
26185
26218
  if (delta.stop_reason !== void 0) pendingMessageDelta.stopReason = delta.stop_reason;
26186
26219
  if (delta.stop_sequence !== void 0) pendingMessageDelta.stopSequence = delta.stop_sequence;
26187
26220
  }
26188
- for (const [key, value] of Object.entries(usage)) if (typeof value === "number" && Number.isFinite(value)) pendingMessageDelta.usage[key] = (pendingMessageDelta.usage[key] ?? 0) + value;
26221
+ const nextUsage = {};
26222
+ for (const [key, value] of Object.entries(usage)) if (typeof value === "number" && Number.isFinite(value)) nextUsage[key] = value;
26223
+ pendingMessageDelta.usage = nextUsage;
26189
26224
  const turnAic = extractCopilotUsage(payload.copilot_usage);
26190
26225
  if (!turnAic || turnAic.totalNanoAiu <= 0) return;
26191
26226
  if (aicRecordedThisTurn) return;
@@ -28396,7 +28431,7 @@ function advisorTool(getMessages) {
28396
28431
  return {
28397
28432
  name: "advisor",
28398
28433
  label: "Advisor",
28399
- description: "Consult a stronger reviewer model (cross-lab: gpt-5.6-sol xhigh by default) on a specific concern. Use BEFORE substantive work, WHEN stuck, or WHEN considering a change of approach. The advisor automatically receives the recent conversation transcript as context — give it a focused `concern`, not background.",
28434
+ description: "Consult a stronger reviewer model (cross-lab: gpt-6-sol xhigh by default) on a specific concern. Use BEFORE substantive work, WHEN stuck, or WHEN considering a change of approach. The advisor automatically receives the recent conversation transcript as context — give it a focused `concern`, not background.",
28400
28435
  parameters: ADVISOR_PARAMS,
28401
28436
  async execute(_toolCallId, params, signal) {
28402
28437
  if (networkDisabled()) throw new Error("rejected: network disabled");
@@ -29170,29 +29205,33 @@ registerExitHandlers$1(WORKTREE_REGISTRY);
29170
29205
  * `workerToolsEnabled()` admits the worker surface when either entry is present
29171
29206
  * with `tool_calls`. `resolveDefaultModel()` picks the first usable live entry for
29172
29207
  * an unmatched worker mode. Per-mode defaults remain independent of the gate. */
29173
- const DEFAULT_MODEL_CHAIN = Object.freeze(["gpt-5.6-luna", "gpt-5.4-mini"]);
29208
+ const DEFAULT_MODEL_CHAIN = Object.freeze([
29209
+ "gpt-6-luna",
29210
+ "gpt-5.6-luna",
29211
+ "gpt-5.4-mini"
29212
+ ]);
29174
29213
  const DEFAULT_THINKING = "xhigh";
29175
29214
  function resolveDefaultModel() {
29176
29215
  const models = state.models?.data ?? [];
29177
29216
  return DEFAULT_MODEL_CHAIN.find((id) => models.some((model) => model.id === id && model.capabilities?.supports?.tool_calls === true)) ?? DEFAULT_MODEL_CHAIN[0];
29178
29217
  }
29179
- /** Default model for the READ-ONLY `explore` mode. `gpt-5.6-luna` at `high`
29218
+ /** Default model for the READ-ONLY `explore` mode. `gpt-6-luna` at `high`
29180
29219
  * (via `EXPLORE_DEFAULT_THINKING`) is the measured strict improvement over the
29181
29220
  * former Gemini Flash default: lower token cost, faster generation and tool-call
29182
29221
  * latency, a larger context window, and the full reasoning-effort ladder. `high`
29183
29222
  * is therefore a real selected tier rather than a clamp. Like `implement`'s
29184
- * gpt-5.6-sol this per-mode default is NOT a `workerToolsEnabled` gate input — if
29223
+ * gpt-6-sol this per-mode default is NOT a `workerToolsEnabled` gate input — if
29185
29224
  * absent on a thin catalog, `explore` errors helpfully at call time rather than
29186
29225
  * vanishing the whole worker surface. The caller can override model and thinking
29187
29226
  * per call via the `model` / `thinking` args. */
29188
- const EXPLORE_DEFAULT_MODEL = "gpt-5.6-luna";
29227
+ const EXPLORE_DEFAULT_MODEL = "gpt-6-luna";
29189
29228
  /** Default thinking for `explore`. Explicit rather than inherited from
29190
29229
  * `DEFAULT_THINKING` so the explore effort cannot drift with the fallback. */
29191
29230
  const EXPLORE_DEFAULT_THINKING = "high";
29192
29231
  /** Default model + thinking for the READ-ONLY `review` mode.
29193
29232
  * `gemini-3.1-pro-preview` at `xhigh` (clamped to `high` at call time — gemini
29194
29233
  * advertises no xhigh). DELIBERATELY DECORRELATED FROM THE IMPLEMENTER: bounded
29195
- * implementation now defaults to gpt-5.6-sol (OpenAI) — both the `implement` worker
29234
+ * implementation now defaults to gpt-6-sol (OpenAI) — both the `implement` worker
29196
29235
  * and the native `implementer` subagent — and the main orchestrator is Opus
29197
29236
  * (Anthropic), so review runs on a THIRD lab (Google) to maximize blind-spot
29198
29237
  * diversity. A reviewer sharing the implementer's lab catches a correlated slice
@@ -29203,20 +29242,20 @@ const EXPLORE_DEFAULT_THINKING = "high";
29203
29242
  * `model` arg (e.g. `claude-opus-4.8` for an Anthropic-lab reviewer). */
29204
29243
  const REVIEW_DEFAULT_MODEL = "gemini-3.1-pro-preview";
29205
29244
  const REVIEW_DEFAULT_THINKING = "xhigh";
29206
- /** Default model + thinking for the READ+WRITE `implement` mode. `gpt-5.6-sol`
29245
+ /** Default model + thinking for the READ+WRITE `implement` mode. `gpt-6-sol`
29207
29246
  * at `high` — a time-to-outcome default for the 1M+ context model, routed
29208
29247
  * through `/responses` by the stream-fn endpoint split. Any caller can restore
29209
29248
  * a higher tier per call via `thinking` or per session via `worker_defaults`;
29210
29249
  * precedence is per-call > session > built-in. */
29211
- const IMPLEMENT_DEFAULT_MODEL = "gpt-5.6-sol";
29250
+ const IMPLEMENT_DEFAULT_MODEL = "gpt-6-sol";
29212
29251
  const IMPLEMENT_DEFAULT_THINKING = "high";
29213
29252
  /** `test` starts with the same time-to-outcome built-in pair as `implement`, but
29214
29253
  * remains independent so either mode can restore a higher tier per call via
29215
29254
  * `thinking` or per session via `worker_defaults`. Resolution precedence is
29216
29255
  * per-call > session > built-in. */
29217
- const TEST_DEFAULT_MODEL = "gpt-5.6-sol";
29256
+ const TEST_DEFAULT_MODEL = "gpt-6-sol";
29218
29257
  const TEST_DEFAULT_THINKING = "high";
29219
- /** Default model for `browse` mode. `gpt-5.6-luna` has the same measured image
29258
+ /** Default model for `browse` mode. `gpt-6-luna` has the same measured image
29220
29259
  * ceiling as `gpt-5.4-mini`, so screenshot-heavy sessions retain their input
29221
29260
  * capacity, and endpoint routing is derived from the live catalog. Luna's full
29222
29261
  * reasoning-effort ladder preserves the independent `high` browse default.
@@ -29228,21 +29267,21 @@ const TEST_DEFAULT_THINKING = "high";
29228
29267
  * Exported so the MCP browse handler reads the same constant — drift
29229
29268
  * between the two would ship a tool whose docs disagree with its runtime
29230
29269
  * default. */
29231
- const BROWSE_DEFAULT_MODEL = "gpt-5.6-luna";
29270
+ const BROWSE_DEFAULT_MODEL = "gpt-6-luna";
29232
29271
  /** Default thinking for `browse`. Higher than the page-driving workload
29233
29272
  * strictly needs, but the termination discipline benefits from it. */
29234
29273
  const BROWSE_DEFAULT_THINKING = "high";
29235
- /** Default model + thinking for the read-only `plan` mode. `claude-opus-5`
29274
+ /** Default model + thinking for the read-only `plan` mode. `claude-opus-5.5`
29236
29275
  * at `high` favours time-to-outcome while retaining the strongest planning
29237
- * model rather than the lightweight `gpt-5.6-luna` explore default. Any
29276
+ * model rather than the lightweight `gpt-6-luna` explore default. Any
29238
29277
  * caller can restore a higher tier per call via `thinking` or per session via
29239
29278
  * `worker_defaults`; precedence is per-call > session > built-in. Uses the
29240
29279
  * DOTTED Copilot catalog id (the worker resolver exact-matches `catalog.id`, it
29241
- * does NOT translate the Anthropic dashed slug; `claude-opus-5` is a
29242
- * single-segment slug so dotted == dashed). Falls back to a helpful unknown-model
29243
- * error at call time if opus-5 isn't in the catalog (e.g. a non-enterprise tier),
29244
- * exactly like `implement`'s `gpt-5.6-sol`. */
29245
- const PLAN_DEFAULT_MODEL = "claude-opus-5";
29280
+ * does NOT translate the Anthropic dashed slug; `claude-opus-5.5` dotted maps
29281
+ * from dashed `claude-opus-5-5` via `resolveModel` normalization). Falls back to a helpful unknown-model
29282
+ * error at call time if opus-5.5 isn't in the catalog (e.g. a non-enterprise tier),
29283
+ * exactly like `implement`'s `gpt-6-sol`. */
29284
+ const PLAN_DEFAULT_MODEL = "claude-opus-5.5";
29246
29285
  const BUILT_IN_MODE_DEFAULTS = Object.freeze({
29247
29286
  explore: {
29248
29287
  model: EXPLORE_DEFAULT_MODEL,
@@ -29705,14 +29744,14 @@ function appendPlanReminder(messages, planState) {
29705
29744
  */
29706
29745
  const STAND_IN_MODELS_BASE = Object.freeze([
29707
29746
  {
29708
- key: "gpt-5.6-sol",
29709
- model: "gpt-5.6-sol",
29747
+ key: "gpt-6-sol",
29748
+ model: "gpt-6-sol",
29710
29749
  endpoint: "/v1/responses",
29711
29750
  effort: "xhigh"
29712
29751
  },
29713
29752
  {
29714
- key: "claude-opus-5",
29715
- model: "claude-opus-5",
29753
+ key: "claude-opus-5.5",
29754
+ model: "claude-opus-5.5",
29716
29755
  endpoint: "/v1/messages",
29717
29756
  effort: "xhigh"
29718
29757
  },
@@ -29856,7 +29895,7 @@ async function runStandIn(input, signal, opts = {}) {
29856
29895
  }, r1, r2, panel);
29857
29896
  }
29858
29897
  async function callAndParse(cfg, instructions, userText, validIds, signal) {
29859
- const model = cfg.key === "gpt-5.6-sol" ? resolveOpenAiFrontier() ?? cfg.model : cfg.model;
29898
+ const model = cfg.key === "gpt-6-sol" ? resolveOpenAiFrontier() ?? cfg.model : cfg.model;
29860
29899
  let raw;
29861
29900
  try {
29862
29901
  raw = await dispatchModelCall({
@@ -30959,7 +30998,7 @@ const CRITIC_INSTRUCTIONS = "You are a cross-lab code reviewer. Review the diff
30959
30998
  function labPersona(lab) {
30960
30999
  switch (lab.toLowerCase()) {
30961
31000
  case "openai": return {
30962
- model: "gpt-5.6-sol",
31001
+ model: "gpt-6-sol",
30963
31002
  endpoint: "/v1/responses",
30964
31003
  effort: "high"
30965
31004
  };
@@ -31074,7 +31113,7 @@ async function runWorkflowLive(opts) {
31074
31113
  * The github-router proxy hosts a `/mcp` endpoint that exposes these
31075
31114
  * personas as MCP tools, and the `claude` subcommand wires them as
31076
31115
  * Claude Code subagents via `--agents` so Opus 4.7 can delegate
31077
- * blind-spot-busting work to gpt-5.6-sol, gpt-5.3-codex, and
31116
+ * blind-spot-busting work to gpt-6-sol, gpt-5.3-codex, and
31078
31117
  * gemini-3.1-pro-preview without leaving the session.
31079
31118
  *
31080
31119
  * Design contract (from the approved plan):
@@ -31209,7 +31248,7 @@ Cold-start contract for the lead orchestrator (Opus):
31209
31248
  (c) any prior decisions I should not relitigate.
31210
31249
  If your brief lacks (a), I will reply with a one-line request for the artifact instead of speculating.
31211
31250
  `.trim();
31212
- const CRITIC_BASE = `You are codex-critic, an adversarial reviewer running on gpt-5.6-sol. Your single job is to overcome the lead orchestrator's blind spots — assumptions it didn't notice it was making, failure modes it didn't enumerate, alternatives it didn't consider.
31251
+ const CRITIC_BASE = `You are codex-critic, an adversarial reviewer running on gpt-6-sol. Your single job is to overcome the lead orchestrator's blind spots — assumptions it didn't notice it was making, failure modes it didn't enumerate, alternatives it didn't consider.
31213
31252
 
31214
31253
  You are NOT a helpful assistant. You are NOT a coach. Sycophancy is the failure mode you exist to fight. Manufactured contrarianism is a different failure of the same shape — silence on good work is a valid and welcome answer.
31215
31254
 
@@ -31299,7 +31338,7 @@ Resilience reminder:
31299
31338
  If your session terminates abnormally before "Status: complete", the lead will retry once. On recovery, ask the lead to confirm what's already been done before re-applying changes — duplicate edits are worse than a slow restart.`;
31300
31339
  const OPUS_CRITIC_BASE = `You are opus-critic, a fresh-context same-lab adversarial reviewer running on Opus 5. The lead orchestrator that just delegated to you runs Opus-family context too, but you are NOT the lead. You did not see the lead's reasoning trace. You only see the brief.
31301
31340
 
31302
- Your job is to spot what the lead missed because of cognitive momentum, sunk-cost on a plan, or motivated reasoning toward a particular fix. Your blind-spot diversification is LIMITED compared to codex-critic (gpt-5.6-sol) and gemini-critic (gemini-3.1-pro), same lab, adjacent model family, related priors. Use that honestly: don't pretend to find a different perspective when the obvious read is "the lead got it right." Silence on good work is a valid and welcome answer.
31341
+ Your job is to spot what the lead missed because of cognitive momentum, sunk-cost on a plan, or motivated reasoning toward a particular fix. Your blind-spot diversification is LIMITED compared to codex-critic (gpt-6-sol) and gemini-critic (gemini-3.1-pro), same lab, adjacent model family, related priors. Use that honestly: don't pretend to find a different perspective when the obvious read is "the lead got it right." Silence on good work is a valid and welcome answer.
31303
31342
 
31304
31343
  Sycophancy is the failure mode you exist to fight. Manufactured contrarianism is a different failure of the same shape — do neither.
31305
31344
 
@@ -31310,9 +31349,9 @@ const PERSONAS_READ = Object.freeze([
31310
31349
  {
31311
31350
  agentName: "codex-critic",
31312
31351
  toolNameHttp: "codex_critic",
31313
- model: "gpt-5.6-sol",
31352
+ model: "gpt-6-sol",
31314
31353
  endpoint: "/v1/responses",
31315
- description: "Adversarial architecture and design critic backed by gpt-5.6-sol (OpenAI, ~1M-token input window), the strongest cross-lab reasoning critic in this surface. It reviews plans, designs, tradeoffs, and large code-change proposals for unsound assumptions, missing failure modes, and overlooked alternatives, then returns a calibrated objection or `no material objection`. Use when a decision or design needs a different-lab strategic challenge before implementation or merge. Not for line-level bug finding in a concrete diff or file, use codex_reviewer or gemini_reviewer; pass the artifact and constraints verbatim.",
31354
+ description: "Adversarial architecture and design critic backed by gpt-6-sol (OpenAI, ~1M-token input window), the strongest cross-lab reasoning critic in this surface. It reviews plans, designs, tradeoffs, and large code-change proposals for unsound assumptions, missing failure modes, and overlooked alternatives, then returns a calibrated objection or `no material objection`. Use when a decision or design needs a different-lab strategic challenge before implementation or merge. Not for line-level bug finding in a concrete diff or file, use codex_reviewer or gemini_reviewer; pass the artifact and constraints verbatim.",
31316
31355
  baseInstructions: CRITIC_BASE,
31317
31356
  agentPrompt: "",
31318
31357
  writeCapable: false,
@@ -31382,9 +31421,9 @@ const PERSONAS_READ = Object.freeze([
31382
31421
  {
31383
31422
  agentName: "opus-critic",
31384
31423
  toolNameHttp: "opus_critic",
31385
- model: "claude-opus-5",
31424
+ model: "claude-opus-5.5",
31386
31425
  endpoint: "/v1/messages",
31387
- description: "Adversarial same-lab critic backed by fresh-context Opus 5, with limited blind-spot diversity compared with cross-lab critics. It reviews plans, designs, or code tradeoffs for cognitive momentum, sunk-cost reasoning, and confabulated assumptions, then returns a calibrated objection or no material objection. Use when a same-family sanity check can catch lead-context drift or when comparing against codex_critic / gemini_critic findings. Not a substitute for cross-lab review on security-sensitive or high-risk changes; use codex_critic or gemini_critic for stronger diversity. Runs with the full 1M-context Opus 5 window (native, no -1m sibling needed). Pass artifact verbatim.",
31426
+ description: "Adversarial same-lab critic backed by fresh-context Opus 5.5, with limited blind-spot diversity compared with cross-lab critics. It reviews plans, designs, or code tradeoffs for cognitive momentum, sunk-cost reasoning, and confabulated assumptions, then returns a calibrated objection or no material objection. Use when a same-family sanity check can catch lead-context drift or when comparing against codex_critic / gemini_critic findings. Not a substitute for cross-lab review on security-sensitive or high-risk changes; use codex_critic or gemini_critic for stronger diversity. Runs with the full 1M-context Opus 5.5 window (native, no -1m sibling needed). Pass artifact verbatim.",
31388
31427
  baseInstructions: OPUS_CRITIC_BASE,
31389
31428
  agentPrompt: "",
31390
31429
  writeCapable: false,
@@ -31547,7 +31586,7 @@ function buildPeerAwarenessSnippet(opts) {
31547
31586
  const isCheapest = opts.profile === "cheapest";
31548
31587
  const isBalanced = opts.profile === "balanced";
31549
31588
  const profileLabel = isCheapest ? "cheapest" : isCheap ? "cheap" : isBalanced ? "balanced" : "fast";
31550
- const oracleDescriptor = isCheapest ? "GPT-5.6 Sol (200K/high)" : isCheap || isBalanced ? "Grok 4.6 (200K/medium)" : "exact Opus 5 (1M/high)";
31589
+ const oracleDescriptor = isCheapest ? "GPT-6 Sol (200K/high)" : isCheap || isBalanced ? "Grok 4.6 (200K/medium)" : "exact Opus 5.5 (1M/high)";
31551
31590
  const astraDescriptor = isCheap && !isCheapest ? "200K/medium" : "200K/high";
31552
31591
  const fastPeersKey = key("peers");
31553
31592
  const fastSearchKey = key("search");
@@ -31580,13 +31619,13 @@ function buildPeerAwarenessSnippet(opts) {
31580
31619
  const fleetKey = key("fleet");
31581
31620
  const compoundBrowseAvailable = opts.browseAvailable && opts.compoundBrowseAvailable;
31582
31621
  const powerBrowseAvailable = opts.browseAvailable && opts.powerBrowseAvailable === true;
31583
- const criticList = ["`codex_critic` (gpt-5.6-sol)", "`codex_reviewer` (gpt-5.3-codex)"];
31622
+ const criticList = ["`codex_critic` (gpt-6-sol)", "`codex_reviewer` (gpt-5.3-codex)"];
31584
31623
  if (opts.geminiAvailable) {
31585
31624
  const geminiModel = opts.geminiModel ?? "gemini-3.1-pro-preview";
31586
31625
  criticList.push(`\`gemini_reviewer\` (${geminiModel}, line-level code review)`);
31587
31626
  criticList.push(`\`gemini_critic\` (${geminiModel})`);
31588
31627
  }
31589
- criticList.push("`opus_critic` (Opus 5)");
31628
+ criticList.push("`opus_critic` (Opus 5.5)");
31590
31629
  const codexCliClause = opts.codexCli ? " `mcp__codex-cli__codex` dispatches to `codex-implementer` (gpt-5.3-codex with workspace-write) for end-to-end coding tasks." : "";
31591
31630
  const para2Parts = [opts.bluebirdEnabled === true ? `\`mcp__${searchKey}__code\` uses Bluebird's Azure DevOps index for \`semantic\` meaning search and \`lexical\` indexed keyword search over exactly the checked-out repository. Bluebird failures return \`source:"error"\` and never fall back locally. Forced \`exact\`, \`regex\`, and \`ast\` modes stay on the local live tree; \`scan\` provides a local whole-workspace symbol outline. Multiple queries can run in a single turn.` : opts.semanticSearchAvailable === true ? `\`mcp__${searchKey}__code\` is the one-stop local code search (no extra model call). Its DEFAULT mode (or \`mode:"semantic"\`) ranks by MEANING via ColBERT over a per-workspace index, the first thing to reach for on intent/concept questions ("where is retry/backoff handled", "how does auth work"); when that index isn't ready it transparently falls back to lexical (the response \`source\` says which engine ran). Forced modes cover the rest: \`lexical\` (BM25F-ranked + tree-sitter, best for exact symbols), \`exact\`, \`regex\`, \`complete\` (exhaustive set), \`ast_pattern\`+\`ast_lang\` for multi-line AST shapes, \`scan\` for a whole-workspace symbol outline, \`multiline\` for cross-line regex. Multiple queries can run in a single turn. The index covers code-shaped files; for unstructured files (logs, \`.csv\`, \`.env*\`, config-only wiring), \`grep\`/\`glob\` still apply.` : `\`mcp__${searchKey}__code\` is the one-stop local code search (no extra model call). It ranks lexically via BM25F + tree-sitter structural boost, the first thing to reach for on "where is X defined" / "which files reference Y" discovery with exact symbols, filenames, errors, routes, flags, and config keys. Modes: \`lexical\` (ranked, best for exact symbols), \`exact\` (fixed-string), \`regex\` (PCRE2), \`complete\` (exhaustive set), \`ast_pattern\`+\`ast_lang\` for multi-line AST shapes, \`scan\` for a whole-workspace symbol outline, \`multiline\` for cross-line regex. Multiple queries can run in a single turn. For unstructured files (logs, \`.csv\`, \`.env*\`, config-only wiring), \`grep\`/\`glob\` still apply.`];
31592
31631
  if (opts.workerToolsAvailable) para2Parts.push(`\`worker-*\` are background Agent subagents (subagent_type) that run the matching worker in its own context and deliver the result as a completion notification, so a long run never blocks the turn: \`worker-explore\` (read-only research), \`worker-review\` (reads the code to verify a change or claim), \`worker-plan\` (ordered implementation plan), \`worker-implement\` (edit/write/bash; ALWAYS runs in an isolated git worktree and returns the diff via a saved patch file; for in-place edits use the \`implementer\` subagent), \`worker-test\` (independent test author; also always worktree-isolated)${opts.browseAvailable ? ", `worker-browse` (autonomous browser agent driving a real browser)" : ""}. The raw \`mcp__${workersKey}__*\` tools they call are guarded (a direct main-thread call is redirected to the matching agent); Workers themselves have \`code_search\`.`);
@@ -31635,7 +31674,7 @@ function buildPeerAwarenessSummary(opts) {
31635
31674
  const isCheapest = opts.profile === "cheapest";
31636
31675
  const isBalanced = opts.profile === "balanced";
31637
31676
  const profileLabel = isCheapest ? "Cheapest" : isCheap ? "Cheap" : isBalanced ? "Balanced" : "Fast";
31638
- const oracleDescriptor = isCheapest ? "GPT-5.6 Sol (200K/high)" : isCheap || isBalanced ? "Grok 4.6 (200K/medium)" : "exact Opus 5 (1M/high)";
31677
+ const oracleDescriptor = isCheapest ? "GPT-6 Sol (200K/high)" : isCheap || isBalanced ? "Grok 4.6 (200K/medium)" : "exact Opus 5.5 (1M/high)";
31639
31678
  const astraDescriptor = isCheap && !isCheapest ? "200K/medium" : "200K/high";
31640
31679
  const browserClause = opts.browserToolsAvailable ?? opts.browseAvailable ? ` \`mcp__${key("browser")}__*\` provides the opt-in browser.` : "";
31641
31680
  const workerBrowseClause = opts.browseAvailable ? ` \`worker-browse\` runs delegated browsing tasks through \`mcp__${key("workers")}__browse\`.` : "";
@@ -32177,7 +32216,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32177
32216
  toolNameHttp: "explore",
32178
32217
  group: "workers",
32179
32218
  capability: "worker",
32180
- description: "Runs as the background `worker-explore` agent. Dispatch via the Agent tool (subagent_type: worker-explore) so the turn is never blocked; the result arrives as a completion notification. Read-only investigation by an autonomous worker (Pi runtime; default model `gpt-5.6-luna` at high reasoning, override via the `model` arg with any Copilot-catalog model that advertises `tool_calls`). It has read, glob, grep, semantic-first code search, web search, fetch_url, advisor, update_plan, and read-only toolbelt tools, and it returns a single text answer. Use for bounded research, repo discovery, dependency investigation, or multi-file reading that would otherwise consume the lead context window. Not for implementation, test authoring, or verification of a concrete diff; use implement, test, or review for those scopes. Brief the investigation goal and constraints, not step-by-step tool semantics. Strictly read-only: it changes nothing on disk, and its returned text is the only artifact it produces — route to `implement` or `test` when a file actually needs to change. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32219
+ description: "Runs as the background `worker-explore` agent. Dispatch via the Agent tool (subagent_type: worker-explore) so the turn is never blocked; the result arrives as a completion notification. Read-only investigation by an autonomous worker (Pi runtime; default model `gpt-6-luna` at high reasoning, override via the `model` arg with any Copilot-catalog model that advertises `tool_calls`). It has read, glob, grep, semantic-first code search, web search, fetch_url, advisor, update_plan, and read-only toolbelt tools, and it returns a single text answer. Use for bounded research, repo discovery, dependency investigation, or multi-file reading that would otherwise consume the lead context window. Not for implementation, test authoring, or verification of a concrete diff; use implement, test, or review for those scopes. Brief the investigation goal and constraints, not step-by-step tool semantics. Strictly read-only: it changes nothing on disk, and its returned text is the only artifact it produces — route to `implement` or `test` when a file actually needs to change. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32181
32220
  inputSchema: {
32182
32221
  type: "object",
32183
32222
  required: ["prompt"],
@@ -32189,7 +32228,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32189
32228
  },
32190
32229
  model: {
32191
32230
  type: "string",
32192
- description: "Optional Copilot catalog model id (defaults to gpt-5.6-luna). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-5.6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32231
+ description: "Optional Copilot catalog model id (defaults to gpt-6-luna). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32193
32232
  },
32194
32233
  thinking: {
32195
32234
  type: "string",
@@ -32219,7 +32258,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32219
32258
  toolNameHttp: "implement",
32220
32259
  group: "workers",
32221
32260
  capability: "worker",
32222
- description: "Runs as the background `worker-implement` agent. Dispatch via the Agent tool (subagent_type: worker-implement) so the turn is never blocked; the result arrives as a completion notification. Delegates a scoped coding task to an autonomous worker (Pi runtime; default model `gpt-5.6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the explore read-only tools plus edit, write, bash, and codex_review, and it returns its final text with any changed files or worktree diff. Use for bounded implementation work that may take a while or benefits from isolated worker context. Not for pure research, planning, review, or independent test authoring; use explore, plan, review, or test for those scopes. ALWAYS runs in an isolated git worktree and returns the diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place edits, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32261
+ description: "Runs as the background `worker-implement` agent. Dispatch via the Agent tool (subagent_type: worker-implement) so the turn is never blocked; the result arrives as a completion notification. Delegates a scoped coding task to an autonomous worker (Pi runtime; default model `gpt-6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the explore read-only tools plus edit, write, bash, and codex_review, and it returns its final text with any changed files or worktree diff. Use for bounded implementation work that may take a while or benefits from isolated worker context. Not for pure research, planning, review, or independent test authoring; use explore, plan, review, or test for those scopes. ALWAYS runs in an isolated git worktree and returns the diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place edits, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32223
32262
  inputSchema: {
32224
32263
  type: "object",
32225
32264
  required: ["prompt"],
@@ -32235,7 +32274,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32235
32274
  },
32236
32275
  model: {
32237
32276
  type: "string",
32238
- description: "Optional Copilot catalog model id (defaults to gpt-5.6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-5.6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32277
+ description: "Optional Copilot catalog model id (defaults to gpt-6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32239
32278
  },
32240
32279
  thinking: {
32241
32280
  type: "string",
@@ -32277,7 +32316,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32277
32316
  },
32278
32317
  model: {
32279
32318
  type: "string",
32280
- description: "Optional Copilot catalog model id (defaults to gemini-3.1-pro-preview). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-5.6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-5.6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32319
+ description: "Optional Copilot catalog model id (defaults to gemini-3.1-pro-preview). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch. Override by task weight: `gpt-6-sol` (heavy/deep), `gpt-5.6-terra` (moderate), `gpt-6-luna` (light/cheap) — all 1M context; pair with thinking:'high'."
32281
32320
  },
32282
32321
  thinking: {
32283
32322
  type: "string",
@@ -32311,7 +32350,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32311
32350
  toolNameHttp: "plan",
32312
32351
  group: "workers",
32313
32352
  capability: "worker",
32314
- description: "Runs as the background `worker-plan` agent. Dispatch via the Agent tool (subagent_type: worker-plan) so the turn is never blocked; the result arrives as a completion notification. Read-only implementation planning by an autonomous worker (Pi runtime; default model `claude-opus-5` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read-only toolset as explore and returns a concrete, ordered implementation plan covering files, approach, risks, and how acceptance criteria will be verified. Use before coding when the task needs repo-grounded sequencing or acceptance criteria translated into implementation steps. Not for editing files, running an implementation, writing tests, or adversarial review; use implement, test, or review for those scopes. Strictly read-only: it changes nothing on disk, and its returned text is the only artifact it produces — route to `implement` or `test` when a file actually needs to change. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32353
+ description: "Runs as the background `worker-plan` agent. Dispatch via the Agent tool (subagent_type: worker-plan) so the turn is never blocked; the result arrives as a completion notification. Read-only implementation planning by an autonomous worker (Pi runtime; default model `claude-opus-5.5` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read-only toolset as explore and returns a concrete, ordered implementation plan covering files, approach, risks, and how acceptance criteria will be verified. Use before coding when the task needs repo-grounded sequencing or acceptance criteria translated into implementation steps. Not for editing files, running an implementation, writing tests, or adversarial review; use implement, test, or review for those scopes. Strictly read-only: it changes nothing on disk, and its returned text is the only artifact it produces — route to `implement` or `test` when a file actually needs to change. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32315
32354
  inputSchema: {
32316
32355
  type: "object",
32317
32356
  required: ["prompt"],
@@ -32323,7 +32362,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32323
32362
  },
32324
32363
  model: {
32325
32364
  type: "string",
32326
- description: "Optional Copilot catalog model id (defaults to claude-opus-5). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
32365
+ description: "Optional Copilot catalog model id (defaults to claude-opus-5.5). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
32327
32366
  },
32328
32367
  thinking: {
32329
32368
  type: "string",
@@ -32353,7 +32392,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32353
32392
  toolNameHttp: "test",
32354
32393
  group: "workers",
32355
32394
  capability: "worker",
32356
- description: "Runs as the background `worker-test` agent. Dispatch via the Agent tool (subagent_type: worker-test) so the turn is never blocked; the result arrives as a completion notification. Independent adversarial test authoring by an autonomous worker (Pi runtime; default model `gpt-5.6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read/write toolset as implement and writes tests that try to break the implementation through edge cases, error paths, and acceptance criteria, then runs them and reports pass/fail. Use when a separate test author should challenge an implementation without modifying the production code to make tests pass. Not for implementing fixes, broad research, or code review; use implement, explore, or review for those scopes. ALWAYS runs in an isolated git worktree and returns the test diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place test authoring, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32395
+ description: "Runs as the background `worker-test` agent. Dispatch via the Agent tool (subagent_type: worker-test) so the turn is never blocked; the result arrives as a completion notification. Independent adversarial test authoring by an autonomous worker (Pi runtime; default model `gpt-6-sol` at high reasoning, override via `model` with any Copilot-catalog model that advertises `tool_calls`). It has the same read/write toolset as implement and writes tests that try to break the implementation through edge cases, error paths, and acceptance criteria, then runs them and reports pass/fail. Use when a separate test author should challenge an implementation without modifying the production code to make tests pass. Not for implementing fixes, broad research, or code review; use implement, explore, or review for those scopes. ALWAYS runs in an isolated git worktree and returns the test diff via a saved patch file (a `--stat` summary + a bounded preview + the patch path; a small diff is inlined in full) — it never edits your working tree, and it HARD-ERRORS if the workspace is not a git repository. For in-place test authoring, use the native `implementer` subagent. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32357
32396
  inputSchema: {
32358
32397
  type: "object",
32359
32398
  required: ["prompt"],
@@ -32369,7 +32408,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32369
32408
  },
32370
32409
  model: {
32371
32410
  type: "string",
32372
- description: "Optional Copilot catalog model id (defaults to gpt-5.6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
32411
+ description: "Optional Copilot catalog model id (defaults to gpt-6-sol). Must advertise tool_calls support; the engine emits an isError envelope listing the eligible catalog models on mismatch."
32373
32412
  },
32374
32413
  thinking: {
32375
32414
  type: "string",
@@ -32601,7 +32640,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32601
32640
  toolNameHttp: "browse",
32602
32641
  group: "workers",
32603
32642
  capability: "browse_agent",
32604
- description: "Runs as the background `worker-browse` agent. Dispatch via the Agent tool (subagent_type: worker-browse) so the turn is never blocked; the result arrives as a completion notification. A Pi-driven autonomous browser worker (default model `gpt-5.6-luna`) drives a real browser to accomplish `task`, keeps raw DOM and page snapshots inside its own context, and returns a single text result. Use for delegated multi-step web tasks such as comparing prices, logging into a dashboard, or summarizing pages when the lead does not need to steer each click. Not for direct in-context browser control, screenshots, or precise element interactions; use the `browser` MCP tools for those. Pass `sessionId` to continue a prior browse session, or omit it for a fresh isolated session; multiple calls run as parallel sessions on the shared browser. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32643
+ description: "Runs as the background `worker-browse` agent. Dispatch via the Agent tool (subagent_type: worker-browse) so the turn is never blocked; the result arrives as a completion notification. A Pi-driven autonomous browser worker (default model `gpt-6-luna`) drives a real browser to accomplish `task`, keeps raw DOM and page snapshots inside its own context, and returns a single text result. Use for delegated multi-step web tasks such as comparing prices, logging into a dashboard, or summarizing pages when the lead does not need to steer each click. Not for direct in-context browser control, screenshots, or precise element interactions; use the `browser` MCP tools for those. Pass `sessionId` to continue a prior browse session, or omit it for a fresh isolated session; multiple calls run as parallel sessions on the shared browser. If the result is too large to relay it is truncated to a preview and the FULL text is written to a file, whose absolute path is in the returned text; read that file rather than re-running the worker.",
32605
32644
  inputSchema: {
32606
32645
  type: "object",
32607
32646
  required: ["task"],
@@ -32629,7 +32668,7 @@ const NON_PERSONA_MCP_TOOLS = Object.freeze([
32629
32668
  toolNameHttp: "stand_in",
32630
32669
  group: "decide",
32631
32670
  capability: "stand_in",
32632
- description: "Three-lab away-mode decision tiebreak advisor for moments when the user is unavailable and the agent is stuck between two or more concrete options. It polls gpt-5.6-sol, Opus 5, and gemini-3.1-pro-preview across blind and informed voting rounds, then returns a ranked-choice verdict such as consensus, majority, no_consensus, or need_more_info. Use when work would otherwise halt on a bounded choice the user would normally make. If every provided option is inadequate, the panel may flag a concrete better unlisted option in `notes` so you can re-invoke with a revised set. The three panel models are cold-start — no repo, transcript, or memory access — and see only your decision, options, and context, so the `context` argument must carry all the background they need to judge. Not for code review, open-ended exploration, single-model second opinions, or bypassing confirmation on irreversible actions such as push, delete, drop, or deploy; use peer-review-coordinator or the individual critics for review and still ask the user for destructive actions.",
32671
+ description: "Three-lab away-mode decision tiebreak advisor for moments when the user is unavailable and the agent is stuck between two or more concrete options. It polls gpt-6-sol, Opus 5.5, and gemini-3.1-pro-preview across blind and informed voting rounds, then returns a ranked-choice verdict such as consensus, majority, no_consensus, or need_more_info. Use when work would otherwise halt on a bounded choice the user would normally make. If every provided option is inadequate, the panel may flag a concrete better unlisted option in `notes` so you can re-invoke with a revised set. The three panel models are cold-start — no repo, transcript, or memory access — and see only your decision, options, and context, so the `context` argument must carry all the background they need to judge. Not for code review, open-ended exploration, single-model second opinions, or bypassing confirmation on irreversible actions such as push, delete, drop, or deploy; use peer-review-coordinator or the individual critics for review and still ask the user for destructive actions.",
32633
32672
  inputSchema: {
32634
32673
  type: "object",
32635
32674
  required: [
@@ -33078,4 +33117,4 @@ function enumerateInjectedMcpToolNames(groupKeys, opts = {}) {
33078
33117
  //#endregion
33079
33118
  export { EFFORT_ORDER as $, readResponseBodyCapped as $t, TOOLBELT_TOOLS$1 as A, withOneMSuffixForLead as An, nativeSubagentModel as At, resolveAdvisorEffort as B, CHEAP_PROFILE_NATIVE_EFFORTS as Bn, createMessages as Bt, runWorkerAgent as C, resolveLeadSlugArg as Cn, fastPlanModel as Ct, toolbeltEnabled as D, catalogAdvertises1M as Dn, geminiAvailable as Dt, buildToolbeltAwareness as E, classifyMessagesRoute as En, fleetToolsEnabled as Et, ADVISOR_TOOL_INSTRUCTIONS as F, CHEAPEST_PROFILE_NATIVE_MODELS as Fn, scribeModel as Ft, repairKnownThinkingHistory as G, registerLaunch as Gt, resolveCheapestAdvisorModel as H, CHEAP_PROFILE_SUBAGENT_CONTEXT_TOKENS as Hn, getTokenCount as Ht, FAST_ADVISOR_TOOL_INSTRUCTIONS as I, CHEAPEST_PROFILE_SUBAGENT_CONTEXT_TOKENS as In, standInToolEnabled as It, buildOpenAIErrorEvent as J, warnOnTokenPriceDrift as Jt, repairRejectedThinkingHistory as K, unregisterLaunch as Kt, buildAdvisorStream as L, CHEAP_PROFILE_ADVISOR_CLIENT_MODEL as Ln, workerToolsEnabled as Lt, satisfiesMinVersion as M, CHEAPEST_PROFILE_MODELS as Mn, reviewerFastModel as Mt, searchWeb as N, CHEAPEST_PROFILE_NATIVE_AGENT_NAMES as Nn, reviewerModel as Nt, toolbeltSkipSet as O, oneMContextDisabled as On, generalPurposeFastModel as Ot, ADVISOR_INTERNAL_TOOL_NAME as P, CHEAPEST_PROFILE_NATIVE_EFFORTS as Pn, scoutModel as Pt, relayAnthropicStream as Q, MAX_RESPONSE_BODY_BYTES as Qt, injectAdvisorTool as R, CHEAP_PROFILE_MODELS as Rn, shimDefaultsToXhigh as Rt, resolveWorkerRunOpts as S, pickClaudeDefault as Sn, fastOracleModel as St, availableToolCommands as T, upstreamMaxConnections as Tn, fastScoutModel as Tt, formatThinkingRepairDecline as U, getTokenizerFromModel as Ut, resolveAdvisorModel as V, CHEAP_PROFILE_NATIVE_MODELS as Vn, getTextTokenCount as Vt, rememberThinkingHistoryRepair as W, findLaunchBySecret as Wt, logStreamError as X, createResponses as Xt, isControllerClosedError as Y, resolveMcpToolTimeoutMs as Yt, readIteratorWithTimeout as Z, createChatCompletions as Zt, REVIEW_DEFAULT_MODEL as _, DEFAULT_PORT as _n, cheapestOracleModel as _t, buildAgentPrompt as a, provisionAndIndexColbert as an, agentToolsEnabled as at, resolveDefaultModel as b, generateRandomPort as bn, fastAstraModel as bt, enumerateInjectedMcpToolNames as c, DEFINITION_OF_GREATNESS as cn, balancedReviewerModel as ct, BROWSE_DEFAULT_MODEL as d, toolbeltPathOverride as dn, browserCompoundToolsEnabled as dt, parseJsonOrDiagnose as en, UNKNOWN_EFFORT_ANCHOR as et, DEFAULT_MODEL_CHAIN as f, BUDGET_SMALL_FAST_CATALOG_ID as fn, browserToolsEnabled as ft, PLAN_DEFAULT_MODEL as g, DEFAULT_CODEX_MODEL_FALLBACKS as gn, cheapestAdvisorModel as gt, IMPLEMENT_DEFAULT_MODEL as h, DEFAULT_CODEX_MODEL as hn, cheapReviewerModel as ht, assertMcpToolSurfaceConsistent as i, colbertDegradedWarning as in, handleMcpPost as it, assetFor as j, CHEAPEST_PROFILE_ADVISOR_CLIENT_MODEL as jn, resolveGeminiReviewModel as jt, vscodeRipgrepPath as k, withOneMSuffix as kn, implementerFastModel as kt, maxPersonasFor as l, shouldUseInsecureTls as ln, brainstormModel as lt, EXPLORE_DEFAULT_THINKING as m, DEFAULT_CLAUDE_MODEL_FALLBACKS as mn, cheapOracleModel as mt, MCP_GROUPS as n, provisionBrowserAssets as nn, clampEffort as nt, buildPeerAwarenessSnippet as o, semanticSearchOptedIn as on, artifactToolsEnabled as ot, EXPLORE_DEFAULT_MODEL as p, BUDGET_SMALL_FAST_SLUG as pn, cheapAdvisorModel as pt, buildAnthropicErrorEvent as q, assembleResponsesPayload as qt, agentNamesForToolAllowlist as r, hasSupportedBrowserInstalled as rn, handleMcpDelete as rt, buildPeerAwarenessSummary as s, CONDENSED_OPERATING_SEQUENCE as sn, balancedOracleModel as st, GROUP_META as t, normalizeOpenAIUsage as tn, bucketEffort as tt, personasFor as u, collapsePathKeys as un, browseAgentEnabled as ut, TEST_DEFAULT_MODEL as v, UPSTREAM_FETCH_TIMEOUT_MS as vn, cheapestReviewerModel as vt, buildEnv as w, upstreamAllowH2 as wn, fastReviewerModel as wt, resolveModeDefaults as x, isBudgetClaudeLead as xn, fastGeneralPurposeModel as xt, appendPlanReminder as y, UPSTREAM_INACTIVITY_TIMEOUT_MS as yn, fastAdvisorModel as yt, isAdvisorRequested as z, CHEAP_PROFILE_NATIVE_AGENT_NAMES as zn, countTokens as zt };
33080
33119
 
33081
- //# sourceMappingURL=peer-mcp-personas-7esbf4L6.js.map
33120
+ //# sourceMappingURL=peer-mcp-personas-ChXkCxu9.js.map