ytdb-slate 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ Approved update notes for Slate releases appear here.
4
+
5
+ ## [0.19.0]
6
+
7
+ Slate now recommends Sol 6.2 for most worker tasks, Astra 6.2 for design reviews, and Fable 5.2 to diagnose repeated implementation failures. Use pi 1.5.2 or later. Check your model list before updating. Slate now sends worker output to OpenAI for summaries by default. You can keep Anthropic Sonnet 5.5 in `router.compressor.models`.
8
+
9
+ https://github.com/JetBrains/ytdb-slate/releases/tag/v0.19.0
package/README.md CHANGED
@@ -17,7 +17,7 @@ Slate comes from the [YouTrackDB](https://github.com/JetBrains/youtrackdb) team,
17
17
 
18
18
  ## Quick start
19
19
 
20
- Use pi 1.4.0 or later. Older pi can load Slate but is unsupported. Slate has no runtime version warning. Install and authenticate [pi](https://pi.dev/docs/latest/quickstart), then pin Slate in your project:
20
+ Use pi 1.5.2 or later. Older pi can load Slate but is unsupported. Slate has no runtime version warning. Install and authenticate [pi](https://pi.dev/docs/latest/quickstart), then pin Slate in your project:
21
21
 
22
22
  ```bash
23
23
  pi install -l npm:ytdb-slate@<version>
@@ -84,8 +84,8 @@ The project must be trusted before Slate reads this file. Start a new session af
84
84
  | `writing.findings` | boolean | `true` | Include the latest model-visible writing findings in the hidden reminder. An invalid value warns and falls back to `true`. Measurement continues when this value is `false`. The status line follows `writing.showStatus`. |
85
85
  | `doctrineExtraPath` | string | — | Markdown whose **content** is appended to the orchestrator doctrine (project-specific workflow additions). |
86
86
  | `reviewPerspectivesPath` | string | — | Review charters, each declaring its own finding-ID prefix. The doctrine references this **path**; the orchestrator reads the file alongside the shipped review rules. |
87
- | `router.models` | object | shipped six-model pool | Ordinary membership and definitions. `include` replaces the starting membership, including with an empty list. `add` accepts complete new definitions. `replace` changes selected fields. `exclude` applies last. Within each model definition, lists and provider maps replace shipped fields. The home and project configuration files merge first. |
88
- | `router.compressor.models` | array of `{ model, effort }` | `[{"model":"claude-sonnet-5.5","effort":"medium"}]` | Independent ordered compressor list. An explicit empty list blocks work. |
87
+ | `router.models` | object | shipped four-model default pool | Ordinary membership and definitions. `include` replaces the starting membership, including with an empty list. `add` accepts complete new definitions. `replace` changes selected fields. `exclude` applies last. Within each model definition, lists and provider maps replace shipped fields. The home and project configuration files merge first. |
88
+ | `router.compressor.models` | array of `{ model, effort }` | `[{"model":"sol-6.2","effort":"low"}]` | Independent ordered compressor list. An explicit empty list blocks work. |
89
89
 
90
90
  Notification settings define permissions and text policy. Slate validates these settings at session start. Slate registers terminal, bell, native and push delivery channels. A channel is one delivery route. Slate registers no notification tool. See [Notifications](#notifications) for automatic delivery and setup.
91
91
 
@@ -549,6 +549,34 @@ Repeat from an inactive tmux window with the documented passthrough permission.
549
549
  Record the host, client, versions, settings and observed result.
550
550
  Do not report unavailable checks as successful delivery.
551
551
 
552
+ ## Default routing and compression
553
+
554
+ The default ordinary pool is `luna-6`, `sol-6.2`, `astra-6.2`, and `fable-5-2`, in that order.
555
+ A dispatch naming `gemini-3.8-flash` or `claude-sonnet-5.5` is refused unless `router.models.include` names it.
556
+ A main session on a Sonnet or Gemini route has no logical model by default.
557
+ The same applies to older Sol, Astra, and Opus routes.
558
+ Main recovery stops and asks for a model choice. Handoff adoption pauses.
559
+
560
+ The default compressor is `sol-6.2` at `low`.
561
+ Ordinary Sol 6.2 keeps effort `high`.
562
+ Compression sends completed worker content to provider `openai` by default.
563
+ Without the `openai/gpt-6.2-sol` route or OpenAI credentials, every episode
564
+ keeps the bounded uncompressed result with the existing compression-failure notice.
565
+ Compression requests on OpenAI GPT-6-or-later routes use a context window of at least 1,050,000 tokens.
566
+ A larger registered window is kept. Only the compression request model changes.
567
+ Worker sessions, the main session, registry entries, prices, cost tiers and route identity stay unchanged.
568
+
569
+ Above 272,000 input tokens, the provider bills long-context rates for the full request.
570
+ The provider accepts at most 922,000 input tokens.
571
+ It rejects larger input, which produces the existing compression-failure notice.
572
+
573
+ The 300,000-character transcript limit and 4,096-token output limit still apply.
574
+ The task and diagnostics add input beyond the transcript limit.
575
+ Compression requests stay outside worker pacing.
576
+
577
+ `claude-sonnet-5.5` is unused by default.
578
+ It can be named in `router.models.include` or `router.compressor.models`.
579
+
552
580
  ## Extended example
553
581
 
554
582
  The `docs/agents/...` values below are placeholders. Point them at Markdown files that exist in your project.
@@ -7,28 +7,34 @@ This document is reference documentation, not workflow doctrine.
7
7
 
8
8
  ## Why absolute tokens, not a percentage
9
9
 
10
- pi's registry context windows differ per model: current Anthropic
11
- flagships are registered at 1,000,000 tokens; `claude-haiku-4-5`,
12
- `claude-opus-4-1`, and `claude-opus-4-5` (and their dated aliases)
13
- at 200,000; direct-OpenAI GPT-5.6 models default to 272,000 as a
14
- pricing-tier guard (the full 1.05M window is opt-in). One percentage
15
- cannot express a consistent orchestrator budget across those
16
- denominators — 40% of a flagship Claude is 400K tokens; 40% of a
17
- GPT-5.6 is 108.8K. An absolute budget says what it means on every
18
- model.
10
+ pi registers `anthropic/claude-sonnet-5-5` and `anthropic/claude-opus-5-5`
11
+ with 1,000,000-token context windows. It registers `openai/gpt-6.1-sol`,
12
+ `openai/gpt-6-luna` and `openai/gpt-6-astra` with 272,000-token windows.
13
+ It registers `google-vertex/gemini-3.8-flash` with 1,048,576 tokens.
14
+
15
+ One percentage cannot express a consistent budget across these windows.
16
+ For example, 40% of the `anthropic/claude-sonnet-5-5` window is 400,000 tokens.
17
+ For `openai/gpt-6.1-sol`, 40% is 108,800 tokens.
18
+ An absolute budget states the token count directly.
19
19
 
20
20
  ## The OpenAI pricing cliff
21
21
 
22
- OpenAI long-context pricing is request-wide: a request whose total
23
- input exceeds 272K tokens bills the ENTIRE request at long-context
24
- rates. The multipliers are the tier pattern — 2× input, 1.5×
25
- output, 2× cache read, 2× cache write; the dollar figures are
26
- `gpt-5.6-sol`'s registered rates (absolute rates vary per model):
27
- input $5→$10/M, output $30→$45/M, cache read $0.5→$1/M, cache
28
- write $6.25→$12.5/M. In an agent loop the whole conversation is
29
- resent every turn, so once the boundary is
30
- crossed, every subsequent turn stays at those rates. The budget's
31
- job is to stop the orchestrator before that happens.
22
+ For `openai/gpt-6.1-sol`, a request above 272,000 input tokens uses long-context
23
+ rates for the full request. The input and cache rates double.
24
+ The output rate rises by a factor of 1.5.
25
+ The registered rates in dollars per million tokens are:
26
+
27
+ | Token type | Up to 272,000 input tokens | Above 272,000 input tokens |
28
+ | --- | ---: | ---: |
29
+ | Input | 2 | 4 |
30
+ | Output | 10 | 15 |
31
+ | Cache read | 0.10 | 0.20 |
32
+ | Cache write | 2.50 | 5 |
33
+
34
+ An agent loop resends the conversation on each turn.
35
+ While the conversation stays above 272,000 input tokens, each request uses
36
+ the long-context rates. The purpose of the built-in default budget is to
37
+ pause the orchestrator before a request crosses this boundary.
32
38
 
33
39
  ## Defaults
34
40
 
@@ -56,7 +62,7 @@ or an object:
56
62
  "contextBudget": {
57
63
  "tokens": 256000,
58
64
  "overrides": [
59
- { "match": "openai/gpt-5\\.6-.*", "tokens": 240000 },
65
+ { "match": "openai/gpt-6\\.1-sol", "tokens": 240000 },
60
66
  { "match": "anthropic/.*", "tokens": 400000 }
61
67
  ]
62
68
  }
@@ -197,28 +203,28 @@ characters. Tool names use 64 characters. Descriptions use 140 characters.
197
203
 
198
204
  | fixture | paths | portable characters | lines |
199
205
  | --- | ---: | ---: | ---: |
200
- | shipped logical section | 0 | 3,596 | 11 |
201
- | trusted shipped-default doctrine | 5 | 8,404 | 74 |
206
+ | shipped logical section | 0 | 3,803 | 9 |
207
+ | trusted shipped-default doctrine | 5 | 8,611 | 72 |
202
208
  | untrusted doctrine without a home configuration file | 4 | 2,711 | 33 |
203
- | draft pull requests, shipped policy | 6 | 8,474 | 75 |
204
- | capped workers, shipped policy | 5 | 9,751 | 84 |
205
- | draft plus capped workers | 6 | 9,821 | 85 |
206
- | deferred issues plus capped workers | 5 | 9,825 | 85 |
207
- | routing recommendations plus capped workers | 5 | 9,804 | 85 |
208
- | draft plus deferred issues and capped workers | 6 | 9,895 | 86 |
209
- | draft plus routing recommendations and capped workers | 6 | 9,870 | 86 |
210
- | deferred issues plus routing recommendations and capped workers | 5 | 9,878 | 86 |
211
- | canonical maximal baseline with all workflow options | 6 | 9,944 | 87 |
212
- | maximal baseline with an open change | 6 | 10,142 | 88 |
213
- | maximal baseline with source and legacy root log | 6 | 10,372 | 90 |
214
- | dogfood `.pi/slate.json` and its two extension units | 6 | 9,069 | 86 |
215
- | runtime boundary plus draft and capped workers, source and legacy log | 6 | 26,053 | 88 |
216
- | runtime boundary plus draft and deferred issues, source and legacy log | 6 | 26,127 | 89 |
217
- | runtime boundary plus routing recommendations, source and legacy log | 5 | 26,036 | 88 |
218
- | runtime boundary plus deferred issues and routing recommendations, source and legacy log | 5 | 26,110 | 89 |
219
- | runtime boundary plus draft and routing recommendations, source and legacy log | 6 | 26,102 | 89 |
220
- | same boundary composition plus deferred issues | 6 | 26,176 | 90 |
221
- | valid shipped policy plus 88 capped worker tools, source and legacy log | 6 | 28,046 | 173 |
209
+ | draft pull requests, shipped policy | 6 | 8,681 | 73 |
210
+ | capped workers, shipped policy | 5 | 9,958 | 82 |
211
+ | draft plus capped workers | 6 | 10,028 | 83 |
212
+ | deferred issues plus capped workers | 5 | 10,032 | 83 |
213
+ | routing recommendations plus capped workers | 5 | 10,011 | 83 |
214
+ | draft plus deferred issues and capped workers | 6 | 10,102 | 84 |
215
+ | draft plus routing recommendations and capped workers | 6 | 10,077 | 84 |
216
+ | deferred issues plus routing recommendations and capped workers | 5 | 10,085 | 84 |
217
+ | canonical maximal baseline with all workflow options | 6 | 10,151 | 85 |
218
+ | maximal baseline with an open change | 6 | 10,349 | 86 |
219
+ | maximal baseline with source and legacy root log | 6 | 10,579 | 88 |
220
+ | dogfood `.pi/slate.json` and its two extension units | 6 | 9,276 | 84 |
221
+ | runtime boundary plus draft and capped workers, source and legacy log | 6 | 26,053 | 86 |
222
+ | runtime boundary plus draft and deferred issues, source and legacy log | 6 | 26,127 | 87 |
223
+ | runtime boundary plus routing recommendations, source and legacy log | 5 | 26,036 | 86 |
224
+ | runtime boundary plus deferred issues and routing recommendations, source and legacy log | 5 | 26,110 | 87 |
225
+ | runtime boundary plus draft and routing recommendations, source and legacy log | 6 | 26,102 | 87 |
226
+ | same boundary composition plus deferred issues | 6 | 26,176 | 88 |
227
+ | valid shipped policy plus 88 capped worker tools, source and legacy log | 6 | 28,253 | 171 |
222
228
 
223
229
  An untrusted session with an empty home `slate.json` receives the same doctrine
224
230
  as the trusted shipped-default fixture above. It includes routing and writing
@@ -226,10 +232,10 @@ rules. `test/config-loading.test.ts` renders both through the real entry hooks
226
232
  and checks that equality. Home preferences can change this size, just as trusted
227
233
  project preferences can.
228
234
 
229
- The canonical maximal baseline uses all six shipped logical definitions, all
235
+ The canonical maximal baseline uses all four default logical models, all
230
236
  three workflow options, and the fixed capped worker roster. Its largest variant
231
237
  has an open change, one direct source folder, and a legacy root log. Its
232
- five-percent requirement is `ceil(10,372 × 1.05) = 10,891`.
238
+ five-percent requirement is `ceil(10,579 × 1.05) = 11,108`.
233
239
  The 26,300 whole-doctrine ceiling exceeds it. The table pins all eight
234
240
  combinations of the three workflow options with the capped worker roster. The
235
241
  dogfood row reads the actual project configuration. A change to `.pi/slate.json` requires a fresh render.
@@ -246,18 +252,38 @@ the first value beyond the ceiling.
246
252
 
247
253
  The over-cap counterfactual uses a valid shipped logical policy and one supported
248
254
  worker-extension unit with 88 capped tools. It also includes an open change,
249
- its source, and the legacy root log. Its 28,046 portable characters exceed
250
- the whole-doctrine ceiling by 1,746. The check therefore detects whole-doctrine
255
+ its source, and the legacy root log. Its 28,253 portable characters exceed
256
+ the whole-doctrine ceiling by 1,953. The check therefore detects whole-doctrine
251
257
  growth without using a retired model-row shape or an assumed per-tool increment.
252
258
  Worker-extension doctrine has no runtime size cap, so the fixture reaches the
253
259
  whole-doctrine guard rather than failing logical-policy validation first.
254
260
 
255
261
  Exact literals fail on any fixture size change. Coarse ceilings stop cumulative
256
- growth. A changed fixture requires fresh production rendering and matching updates
257
- to this table, `verification/README.md`, resolver checks, and doctrine contract
258
- tests. The logical-section limits remain 19,400 characters and 105 lines. The
262
+ growth. A changed fixture requires a fresh production render.
263
+ Update matching copies in `docs/context-budget.md` (including the phase-row table),
264
+ `verification/README.md`, `verification/resolver-checks.mjs`,
265
+ `test/doctrine-contract.test.ts`, `test/config-loading.test.ts`,
266
+ `test/logical-model-policy.test.ts`, and `test/focused-decisions-contract.test.ts`.
267
+ Check the phase-row table with `test/workflow-context-budget.test.ts`.
268
+ The logical-section limits remain 19,400 characters and 105 lines. The
259
269
  all-tail limit remains 24,600 characters. The whole-doctrine ceiling is 26,300 characters.
260
270
 
271
+ The shipped model policy section has a separate limit of 3,994 portable
272
+ characters and 9 lines. The character limit is the measured 3,803 characters
273
+ plus five percent reserve, rounded up. The line limit has no reserve.
274
+ A fifth default model needs a new user approval. A higher limit requires a new user
275
+ approval.
276
+
277
+ For the comparison with the fixed earlier commit, both sides receive the same
278
+ candidate shipped policy input. The earlier code uses explicit default membership and adds candidate definitions
279
+ that it does not define. Trusted project configuration supplies these rows. A check requires equal resolved ordinary policy rows in the same order.
280
+ The check compares model names, both ratings, effort, preferred providers,
281
+ permitted provider routes, guidelines and cautions. It excludes source metadata.
282
+ This comparison does not measure growth of the shipped policy text.
283
+ It still rejects growth of all other doctrine text and growth caused by the
284
+ policy rendering code. Separate controls reject added text per caution row
285
+ and text added only with several rows.
286
+
261
287
  ### Worker writing preamble
262
288
 
263
289
  The doctrine table does not include the worker preamble. It belongs
@@ -435,53 +461,68 @@ The separate principle-table row contains 145 bytes without its final line feed.
435
461
  A blank separator before § 5 of design-principles.md adds one byte outside the 457-byte figure.
436
462
  The complete design-principles.md document adds 604 bytes for P14.
437
463
 
438
- ## Using GPT-5.6's full 1.05M window
464
+ ## Using GPT-6.1 Sol's full 1.05M window
439
465
 
440
- Two deliberate steps. First, raise the registry window in
441
- `~/.pi/agent/models.json` (pi's custom-models file — NOT
442
- `settings.json`, where this block is silently ignored):
466
+ OpenAI documents a 1,050,000-token context window for `gpt-6.1-sol`.
467
+ Pi registers `openai/gpt-6.1-sol` with a 272,000-token window and a maximum
468
+ output of 128,000 tokens.
469
+ The registered window equals the long-context pricing boundary.
470
+ To use the larger window, first set `modelOverrides` in pi's custom-models
471
+ file, `~/.pi/agent/models.json`. Pi ignores this block in `settings.json`
472
+ without a message.
443
473
 
444
474
  ```json
445
475
  {
446
476
  "providers": {
447
477
  "openai": {
448
478
  "modelOverrides": {
449
- "gpt-5.6-sol": { "contextWindow": 1050000 }
479
+ "gpt-6.1-sol": { "contextWindow": 1050000 }
450
480
  }
451
481
  }
452
482
  }
453
483
  }
454
484
  ```
455
485
 
456
- (repeat for `gpt-5.6-terra` / `gpt-5.6-luna`). Second, raise the
457
- Slate budget with an override in `.pi/slate.json` — the full nested
458
- form matters: a bare `{"match": …, "tokens": …}` pasted as the
459
- `contextBudget` value becomes a global scalar with `match` silently
460
- dropped:
486
+ Second, raise the Slate budget with an override in `.pi/slate.json`.
487
+ Keep the full nested form shown below.
488
+ A bare `{"match": …, "tokens": …}` used as the `contextBudget` value sets
489
+ a global token budget. Slate drops its `match`.
490
+ Slate reports a warning about the unknown key.
461
491
 
462
492
  ```json
463
493
  {
464
494
  "contextBudget": {
465
495
  "overrides": [
466
- { "match": "openai/gpt-5\\.6-.*", "tokens": 900000 }
496
+ { "match": "openai/gpt-6\\.1-sol", "tokens": 900000 }
467
497
  ]
468
498
  }
469
499
  }
470
500
  ```
471
501
 
472
- WARNING: beyond 272K total input every request bills at the
473
- long-context rates listed above.
502
+ With the default 16,384-token compaction reserve, the clamp allows
503
+ 1,000,848 tokens for this window. The configured 900,000-token budget binds.
504
+ That budget is about 85.7% of the 1,050,000-token window.
505
+
506
+ WARNING: every request above 272,000 input tokens uses the long-context
507
+ rates listed above for the full request.
474
508
 
475
509
  Logical-model routing does not change this context-window setting. Pi's registry
476
510
  remains the runtime source for context capacity. Slate validates permitted routes
477
511
  against that registry but does not compare it with a second profile window.
478
512
 
513
+ Compression requests are the one exception. On an OpenAI GPT-6-or-later route, a
514
+ compression request uses a context window of at least 1,050,000 tokens, as
515
+ [model-routing.md](model-routing.md) § Shipped definitions describes.
516
+
479
517
  ## Accepted limitations
480
518
 
481
- - On models with a 272K pricing tier and a larger registry window
482
- (`gpt-5.4-pro`, `gpt-5.5-pro`, GPT-5.6 after the opt-in above), a
483
- >16K single-turn overshoot near the 256K default can bill the
484
- final turns at long-context rates — override to 240,000 to widen
519
+ - When context is near the 256,000-token default, one turn that adds more
520
+ than 16,000 tokens can cross 272,000 input tokens and incur long-context rates.
521
+ This applies to `openai/gpt-6.1-sol` after the `modelOverrides` step in
522
+ § "Using GPT-6.1 Sol's full 1.05M window" if the default budget stays.
523
+ With the default compaction reserve, the clamp keeps that budget at 256,000.
524
+ With the registered 272,000-token window, the clamp instead gives 222,848,
525
+ so this limitation does not apply there. Override to 240,000 to increase
485
526
  the margin.
486
527
  - The 32K margin in the clamp covers typical turns, not extreme
487
528
  single-turn ingestion (several parallel large file reads) — hand
@@ -526,50 +567,56 @@ The excluded installed path cost is 5 times the prefix byte length with
526
567
  publishing off and 6 times that length with publishing on. Tests measure
527
568
  this cost separately. It depends on the installation path.
528
569
 
529
- The user approved these limits on 2026-10-16. Each initial byte limit
530
- is ceil(baseline bytes * 1.05). Tests enforce total <= stored literal limit.
570
+ The user approved the limits for the other 35 rows on 2026-10-16.
571
+ Each of those byte limits is ceil(baseline bytes * 1.05).
572
+ The user approved the two limits for Research, publishing off, ordinary plan
573
+ on 2026-11-12. These limits are 76,835 and 145,471 bytes.
574
+ They equal the limits approved on 2026-10-16 plus 979 bytes of approved
575
+ shipped model policy growth. They carry no five percent reserve.
576
+ A higher limit requires a new user approval.
577
+ Tests enforce total <= stored literal limit.
531
578
  The token limit is ceil(byte limit / 4). Reserve is checked at approval,
532
579
  not recalculated as text grows. A maximum includes all applicable optional
533
580
  reads. Any subset fits because removing ranges cannot increase union size.
534
581
 
535
582
  | Phase | Publishing | Plan | Required bytes | Estimated tokens | Byte limit | Token limit | Conditional maximum bytes | Estimated tokens | Byte limit | Token limit |
536
583
  | --- | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
537
- | 1. Research | off | ordinary | 75507 | 18877 | 75856 | 18964 | 144490 | 36123 | 144492 | 36123 |
538
- | 1. Research | off | nested | 90792 | 22698 | 129137 | 32285 | 159775 | 39944 | 197773 | 49444 |
539
- | 1. Research | on | ordinary | 87019 | 21755 | 92700 | 23175 | 156002 | 39001 | 161336 | 40334 |
540
- | 1. Research | on | nested | 102304 | 25576 | 145981 | 36496 | 171287 | 42822 | 214617 | 53655 |
541
- | 2. Risk assessment | off | ordinary | 111900 | 27975 | 114401 | 28601 | 180883 | 45221 | 183038 | 45760 |
542
- | 2. Risk assessment | off | nested | 127185 | 31797 | 167682 | 41921 | 196168 | 49042 | 236319 | 59080 |
543
- | 2. Risk assessment | on | ordinary | 123412 | 30853 | 131245 | 32812 | 192395 | 48099 | 199882 | 49971 |
544
- | 2. Risk assessment | on | nested | 138697 | 34675 | 184526 | 46132 | 207680 | 51920 | 253163 | 63291 |
545
- | 3. Design validation | off | ordinary | 111900 | 27975 | 114401 | 28601 | 180883 | 45221 | 183038 | 45760 |
546
- | 3. Design validation | off | nested | 127185 | 31797 | 167682 | 41921 | 196168 | 49042 | 236319 | 59080 |
547
- | 3. Design validation | on | ordinary | 123412 | 30853 | 131245 | 32812 | 192395 | 48099 | 199882 | 49971 |
548
- | 3. Design validation | on | nested | 138697 | 34675 | 184526 | 46132 | 207680 | 51920 | 253163 | 63291 |
549
- | 4. Focus reconfirmation | off | ordinary | 111900 | 27975 | 114401 | 28601 | 180883 | 45221 | 183038 | 45760 |
550
- | 4. Focus reconfirmation | off | nested | 127185 | 31797 | 167682 | 41921 | 196168 | 49042 | 236319 | 59080 |
551
- | 4. Focus reconfirmation | on | ordinary | 123412 | 30853 | 131245 | 32812 | 192395 | 48099 | 199882 | 49971 |
552
- | 4. Focus reconfirmation | on | nested | 138697 | 34675 | 184526 | 46132 | 207680 | 51920 | 253163 | 63291 |
553
- | 5. Adversarial design review | off | ordinary | 134815 | 33704 | 138753 | 34689 | 231582 | 57896 | 236562 | 59141 |
554
- | 5. Adversarial design review | off | nested | 150100 | 37525 | 192034 | 48009 | 246867 | 61717 | 289844 | 72461 |
555
- | 5. Adversarial design review | on | ordinary | 146327 | 36582 | 155597 | 38900 | 243094 | 60774 | 253406 | 63352 |
556
- | 5. Adversarial design review | on | nested | 161612 | 40403 | 208878 | 52220 | 258379 | 64595 | 306688 | 76672 |
557
- | 6. Final design approval | off | ordinary | 134815 | 33704 | 138753 | 34689 | 231582 | 57896 | 236562 | 59141 |
558
- | 6. Final design approval | off | nested | 150100 | 37525 | 192034 | 48009 | 246867 | 61717 | 289844 | 72461 |
559
- | 6. Final design approval | on | ordinary | 146327 | 36582 | 155597 | 38900 | 243094 | 60774 | 253406 | 63352 |
560
- | 6. Final design approval | on | nested | 161612 | 40403 | 208878 | 52220 | 258379 | 64595 | 306688 | 76672 |
561
- | 7. Track loop | off | ordinary | 158010 | 39503 | 163384 | 40846 | 259414 | 64854 | 302924 | 75731 |
562
- | 7. Track loop | off | nested | 173295 | 43324 | 216665 | 54167 | 259414 | 64854 | 302924 | 75731 |
563
- | 7. Track loop | on | ordinary | 169522 | 42381 | 180228 | 45057 | 270926 | 67732 | 319769 | 79943 |
564
- | 7. Track loop | on | nested | 184807 | 46202 | 233509 | 58378 | 270926 | 67732 | 319769 | 79943 |
565
- | 8. Final acceptance | off | ordinary | 158010 | 39503 | 163384 | 40846 | 259414 | 64854 | 302924 | 75731 |
566
- | 8. Final acceptance | off | nested | 173295 | 43324 | 216665 | 54167 | 259414 | 64854 | 302924 | 75731 |
567
- | 8. Final acceptance | on | ordinary | 169522 | 42381 | 180228 | 45057 | 270926 | 67732 | 319769 | 79943 |
568
- | 8. Final acceptance | on | nested | 184807 | 46202 | 233509 | 58378 | 270926 | 67732 | 319769 | 79943 |
569
- | 9. Delivery | off | ordinary | 158010 | 39503 | 163384 | 40846 | 259414 | 64854 | 302924 | 75731 |
570
- | 9. Delivery | off | nested | 173295 | 43324 | 216665 | 54167 | 259414 | 64854 | 302924 | 75731 |
571
- | 9. Delivery | on | ordinary | 169522 | 42381 | 180228 | 45057 | 270926 | 67732 | 319769 | 79943 |
572
- | 9. Delivery | on | nested | 184807 | 46202 | 233509 | 58378 | 270926 | 67732 | 319769 | 79943 |
584
+ | 1. Research | off | ordinary | 75714 | 18929 | 76835 | 19209 | 144697 | 36175 | 145471 | 36368 |
585
+ | 1. Research | off | nested | 90999 | 22750 | 129137 | 32285 | 159982 | 39996 | 197773 | 49444 |
586
+ | 1. Research | on | ordinary | 87226 | 21807 | 92700 | 23175 | 156209 | 39053 | 161336 | 40334 |
587
+ | 1. Research | on | nested | 102511 | 25628 | 145981 | 36496 | 171494 | 42874 | 214617 | 53655 |
588
+ | 2. Risk assessment | off | ordinary | 112107 | 28027 | 114401 | 28601 | 181090 | 45273 | 183038 | 45760 |
589
+ | 2. Risk assessment | off | nested | 127392 | 31848 | 167682 | 41921 | 196375 | 49094 | 236319 | 59080 |
590
+ | 2. Risk assessment | on | ordinary | 123619 | 30905 | 131245 | 32812 | 192602 | 48151 | 199882 | 49971 |
591
+ | 2. Risk assessment | on | nested | 138904 | 34726 | 184526 | 46132 | 207887 | 51972 | 253163 | 63291 |
592
+ | 3. Design validation | off | ordinary | 112107 | 28027 | 114401 | 28601 | 181090 | 45273 | 183038 | 45760 |
593
+ | 3. Design validation | off | nested | 127392 | 31848 | 167682 | 41921 | 196375 | 49094 | 236319 | 59080 |
594
+ | 3. Design validation | on | ordinary | 123619 | 30905 | 131245 | 32812 | 192602 | 48151 | 199882 | 49971 |
595
+ | 3. Design validation | on | nested | 138904 | 34726 | 184526 | 46132 | 207887 | 51972 | 253163 | 63291 |
596
+ | 4. Focus reconfirmation | off | ordinary | 112107 | 28027 | 114401 | 28601 | 181090 | 45273 | 183038 | 45760 |
597
+ | 4. Focus reconfirmation | off | nested | 127392 | 31848 | 167682 | 41921 | 196375 | 49094 | 236319 | 59080 |
598
+ | 4. Focus reconfirmation | on | ordinary | 123619 | 30905 | 131245 | 32812 | 192602 | 48151 | 199882 | 49971 |
599
+ | 4. Focus reconfirmation | on | nested | 138904 | 34726 | 184526 | 46132 | 207887 | 51972 | 253163 | 63291 |
600
+ | 5. Adversarial design review | off | ordinary | 135022 | 33756 | 138753 | 34689 | 231789 | 57948 | 236562 | 59141 |
601
+ | 5. Adversarial design review | off | nested | 150307 | 37577 | 192034 | 48009 | 247074 | 61769 | 289844 | 72461 |
602
+ | 5. Adversarial design review | on | ordinary | 146534 | 36634 | 155597 | 38900 | 243301 | 60826 | 253406 | 63352 |
603
+ | 5. Adversarial design review | on | nested | 161819 | 40455 | 208878 | 52220 | 258586 | 64647 | 306688 | 76672 |
604
+ | 6. Final design approval | off | ordinary | 135022 | 33756 | 138753 | 34689 | 231789 | 57948 | 236562 | 59141 |
605
+ | 6. Final design approval | off | nested | 150307 | 37577 | 192034 | 48009 | 247074 | 61769 | 289844 | 72461 |
606
+ | 6. Final design approval | on | ordinary | 146534 | 36634 | 155597 | 38900 | 243301 | 60826 | 253406 | 63352 |
607
+ | 6. Final design approval | on | nested | 161819 | 40455 | 208878 | 52220 | 258586 | 64647 | 306688 | 76672 |
608
+ | 7. Track loop | off | ordinary | 158217 | 39555 | 163384 | 40846 | 259621 | 64906 | 302924 | 75731 |
609
+ | 7. Track loop | off | nested | 173502 | 43376 | 216665 | 54167 | 259621 | 64906 | 302924 | 75731 |
610
+ | 7. Track loop | on | ordinary | 169729 | 42433 | 180228 | 45057 | 271133 | 67784 | 319769 | 79943 |
611
+ | 7. Track loop | on | nested | 185014 | 46254 | 233509 | 58378 | 271133 | 67784 | 319769 | 79943 |
612
+ | 8. Final acceptance | off | ordinary | 158217 | 39555 | 163384 | 40846 | 259621 | 64906 | 302924 | 75731 |
613
+ | 8. Final acceptance | off | nested | 173502 | 43376 | 216665 | 54167 | 259621 | 64906 | 302924 | 75731 |
614
+ | 8. Final acceptance | on | ordinary | 169729 | 42433 | 180228 | 45057 | 271133 | 67784 | 319769 | 79943 |
615
+ | 8. Final acceptance | on | nested | 185014 | 46254 | 233509 | 58378 | 271133 | 67784 | 319769 | 79943 |
616
+ | 9. Delivery | off | ordinary | 158217 | 39555 | 163384 | 40846 | 259621 | 64906 | 302924 | 75731 |
617
+ | 9. Delivery | off | nested | 173502 | 43376 | 216665 | 54167 | 259621 | 64906 | 302924 | 75731 |
618
+ | 9. Delivery | on | ordinary | 169729 | 42433 | 180228 | 45057 | 271133 | 67784 | 319769 | 79943 |
619
+ | 9. Delivery | on | nested | 185014 | 46254 | 233509 | 58378 | 271133 | 67784 | 319769 | 79943 |
573
620
 
574
621
  Conditional sets have the following whole-document costs. Early notes cost
575
622
  zero extra after required notes enter phase 7. Unusual prose costs zero extra
@@ -68,36 +68,88 @@ forecasts. Membership changes do not rescale them.
68
68
 
69
69
  | logical model | ordinary effort | capability | cost | preferred provider | exact initial permission | guidance | cautions |
70
70
  | --- | --- | ---: | ---: | --- | --- | --- | --- |
71
- | `luna-6` | `max` | 45 | 5 | `openai` | `openai/gpt-6-luna` | Auxiliary tasks only, such as file location, check-result collection, or routine text management such as modifying research logs. Never primary research, implementation, design, or review. Consumer-contract work only when auxiliary. | scope and complex-text cautions below |
72
- | `claude-sonnet-5.5` | `high` | 45 | 54 | `anthropic` | `anthropic/claude-sonnet-5-5` | none | scope caution below |
73
- | `sol-6.1` | `high` | 85 | 20 | `openai` | `openai/gpt-6.1-sol` | Default thread choice. | blocked-action caution below |
74
- | `gemini-3.8-flash` | `medium` | 55 | 30 | `google-vertex` | `google-vertex/gemini-3.8-flash` | Default thread choice. Generally prefer over Luna when available. A more specific active guideline overrides this general Flash preference. | reviewer and evidence caution below |
75
- | `claude-opus-5.5` | `high` | 90 | 65 | `anthropic` | `anthropic/claude-opus-5-5` | Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review. Do not select Opus 5.5 as the default implementer. If a lower-capability model repeatedly fails at implementation, first ask Opus 5.5 to investigate and provide detailed repair instructions. Let the implementer try those instructions. Use Opus 5.5 as the implementer only if that guided attempt also fails. Treat that use as an exception. Select another suitable model for later implementation work. Existing approval requirements and repair limits still apply. | scope caution below |
76
- | `gpt-6-astra` | `medium` | 86 | 60 | `openai` | `openai/gpt-6-astra` | Do not select Astra as the default implementer. Prefer Sol 6.1 over Astra. | none |
77
-
78
- Sonnet and Opus use this caution: `May exceed explicit scope or infer permission
79
- from earlier requests. Check changes against stated exclusions and approval
80
- requirements.` Sol uses this caution: `When blocked, may substitute unapproved
81
- resources or perform destructive cleanup. Require permission before either
82
- action.` Luna uses these cautions: `May treat supplied repair context as
83
- permission to implement despite explicit task limits. Restrict write access for
84
- record-only work and verify the changed files.` and `Do not use Luna to handle
85
- complex texts.` Flash uses this caution: `Do not
86
- use as a reviewer. It relies too much on passing tests and exact-size assertions.
87
- Verify source citations and distinguish proposed behavior from existing
88
- behavior.` Fable is not active because it has no complete
89
- approved definition.
90
-
91
- The independent shipped compressor list contains one entry. It is
92
- `claude-sonnet-5.5` at `medium`. Ordinary Sonnet remains at `high`.
93
-
94
- The Sol 6.1 and Sonnet 5.5 capability and cost ratings are project judgments
95
- set on 2026-09-30 without new benchmark evidence. Other ratings are project
96
- judgments informed by DeepSWE v1.1 by DataCurve and reviewed supporting evidence.
97
- The source for those other ratings is
98
- <https://deepswe.datacurve.ai/artifacts/v1.1/leaderboard-live.json>. The project
99
- retrieved it on 2026-09-11. Those ratings use that evidence without a later
100
- refresh. The live source has no confirmed licence bridge for every newer result. Slate publishes no raw task, trajectory, leaderboard row, copied
71
+ | `luna-6` | `max` | 35 | 2 | `openai` | `openai/gpt-6-luna` | Auxiliary tasks only, such as file location, check-result collection, or routine text management such as modifying research logs. Never primary research, implementation, design, or review. Consumer-contract work only when auxiliary. | Luna cautions below |
72
+ | `claude-sonnet-5.5` | `high` | 35 | 25 | `anthropic` | `anthropic/claude-sonnet-5-5` | none | scope caution below |
73
+ | `sol-6.2` | `high` | 73 | 9 | `openai` | `openai/gpt-6.2-sol` | Default thread choice. | Sol cautions below |
74
+ | `astra-6.2` | `high` | 80 | 19 | `openai` | `openai/gpt-6.2-astra` | Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review. Do not select Astra 6.2 as the default implementer. | none |
75
+ | `sol-6.1` | `high` | 66 | 9 | `openai` | `openai/gpt-6.1-sol` | Default thread choice. | Sol cautions below |
76
+ | `gemini-3.8-flash` | `medium` | 43 | 14 | `google-vertex` | `google-vertex/gemini-3.8-flash` | Default thread choice. Generally prefer over Luna when available. A more specific active guideline overrides this general Flash preference. | reviewer and evidence caution below |
77
+ | `claude-opus-5.5` | `high` | 70 | 30 | `anthropic` | `anthropic/claude-opus-5-5` | Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review. Do not select Opus 5.5 as the default implementer. | scope caution below |
78
+ | `gpt-6-astra` | `medium` | 67 | 28 | `openai` | `openai/gpt-6-astra` | Do not select Astra as the default implementer. Prefer Sol 6.1 over Astra. | none |
79
+ | `fable-5-2` | `high` | 84 | 75 | `anthropic` | `anthropic/claude-fable-5-2` | Do not select Fable 5.2 for routine work. If a lower-capability model repeatedly fails at implementation, first ask Fable 5.2 to investigate and provide detailed repair instructions. Let the implementer try those instructions. Use Fable 5.2 as the implementer only if that guided attempt also fails. Treat that use as an exception. Select another suitable model for later implementation work. Existing approval requirements and repair limits still apply. | none |
80
+
81
+ The nine definitions above include four default models. Their order is
82
+ `luna-6`, `sol-6.2`, `astra-6.2`, and `fable-5-2`.
83
+
84
+ With `include` omitted, `sol-6.1`, `gpt-6-astra`, `claude-opus-5.5`,
85
+ `gemini-3.8-flash`, and `claude-sonnet-5.5` are outside the pool.
86
+ Slate refuses a dispatch that names one unless `router.models.include` names it.
87
+ A main session on an older Sol, Astra, Opus, Sonnet, or Gemini route has no logical model
88
+ by default. Main-session recovery stops and asks for a model choice.
89
+ Handoff adoption pauses.
90
+
91
+ To use these models, set an explicit `include`
92
+ that lists every wanted model. The two new physical routes must exist in
93
+ the pi model registry for the installation.
94
+
95
+ Sonnet and Opus use this caution: `May exceed explicit scope or infer permission from earlier requests. Check changes against stated exclusions and approval requirements.`
96
+
97
+ Luna uses these cautions in order:
98
+
99
+ 1. `May treat supplied repair context as permission to implement despite explicit task limits. Restrict write access for record-only work and verify the changed files.`
100
+ 2. `Do not use Luna to handle complex texts.`
101
+ 3. `May shorten long file paths in tool calls. Give the full path and require a read-back of the edited lines.`
102
+ 4. `May undo its own checked writes before it ends. Check the final file state after every record task.`
103
+ 5. `For an append, anchor one single-block edit on the exact current last line, then read back the tail.`
104
+ 6. `May report state outside the task scope incorrectly. Verify such a claim before acting on it.`
105
+
106
+ Sol uses these cautions in order:
107
+
108
+ 1. `When blocked, may substitute unapproved resources or perform destructive cleanup. Require permission before either action. Do not run a dependency install that the project rules forbid. Ask first.`
109
+ 2. `Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.`
110
+ 3. `For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.`
111
+ 4. `When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut.`
112
+
113
+ Flash uses this caution: `Do not use as a reviewer. It relies too much on passing tests and exact-size assertions. Verify source citations and distinguish proposed behavior from existing behavior.`
114
+
115
+ The independent shipped compressor list contains one entry: `sol-6.2` at `low`.
116
+ Ordinary Sol 6.2 keeps effort `high`.
117
+ Compression sends completed worker content to provider `openai` by default.
118
+ Without the `openai/gpt-6.2-sol` route or OpenAI credentials, every episode
119
+ keeps the bounded uncompressed result with the existing compression-failure notice.
120
+
121
+ Compression requests on OpenAI GPT-6-or-later routes use a context window
122
+ of at least 1,050,000 tokens. A larger registered window is kept.
123
+ Only the request model changes. Worker sessions, the main session, registry
124
+ entries, route identity, prices and cost tiers stay unchanged.
125
+
126
+ Above 272,000 input tokens, the provider bills long-context rates for the full request.
127
+ The provider accepts at most 922,000 input tokens.
128
+ It rejects larger input, which produces the existing compression-failure notice.
129
+
130
+ The 300,000-character transcript limit and 4,096-token output limit still apply.
131
+ The task and diagnostics add input beyond the transcript limit.
132
+ Compression requests stay outside worker pacing.
133
+
134
+ `claude-sonnet-5.5` is unused by default.
135
+ It can be named in `router.models.include` or `router.compressor.models`.
136
+
137
+ Sol 6.2 and Astra 6.2 ratings are project judgments dated 2026-11-18.
138
+ They have no benchmark source.
139
+ The project scales Sol 6.2 capability from Sol 6.1.
140
+ It copies Sol 6.2 cost from Sol 6.1.
141
+
142
+ Astra 6.2 capability is a direct project decision.
143
+ The project scales its cost from `gpt-6-astra`.
144
+
145
+ The other shipped ratings use project judgments proportionally scaled on 2026-11-12.
146
+ Fable 5.2 ratings are project judgments with no
147
+ benchmark source. Custom `add` and `replace` ratings are ranked against this
148
+ shipped scale. Earlier Sol 6.1 and Sonnet 5.5 judgments had no new benchmark
149
+ evidence. DeepSWE v1.1 by DataCurve and reviewed supporting evidence informed
150
+ the other earlier judgments. The project retrieved that source on 2026-09-11:
151
+ <https://deepswe.datacurve.ai/artifacts/v1.1/leaderboard-live.json>.
152
+ The live source has no confirmed licence bridge for every newer result. Slate publishes no raw task, trajectory, leaderboard row, copied
101
153
  publisher prose, or copied table structure. This attribution is not a new
102
154
  licence grant.
103
155
 
@@ -134,7 +186,7 @@ new session.
134
186
  }
135
187
  ```
136
188
 
137
- Omitted `include` starts with all six shipped ordinary definitions. An explicit
189
+ Omitted `include` starts with the four default logical models. An explicit
138
190
  empty `include` starts with an empty ordinary pool. `exclude` applies last and
139
191
  wins.
140
192
 
@@ -191,6 +243,9 @@ Omitted fields keep their existing values. A replacement that changes `effort`
191
243
  must also supply both ratings. Repeating the existing effort does not require
192
244
  the ratings. Every supplied field follows the same rules as an `add` field.
193
245
 
246
+ A replacement changes only the definition. It does not change pool membership.
247
+ A replaced model outside the default pool stays outside until `include` names it.
248
+
194
249
  Complete `replace` example:
195
250
 
196
251
  ```json
@@ -199,12 +254,12 @@ Complete `replace` example:
199
254
  "models": {
200
255
  "replace": [
201
256
  {
202
- "model": "sol-6.1",
257
+ "model": "sol-6.2",
203
258
  "effort": "max",
204
- "capabilityRating": 85,
205
- "costRating": 20,
259
+ "capabilityRating": 73,
260
+ "costRating": 9,
206
261
  "preferredProvider": "gateway",
207
- "providers": { "gateway": "openai/gpt-6.1-sol" },
262
+ "providers": { "gateway": "openai/gpt-6.2-sol" },
208
263
  "guidelines": ["repository-wide implementation"],
209
264
  "cautions": []
210
265
  }
@@ -217,7 +272,7 @@ Complete `replace` example:
217
272
  A supplied provider map, guidance list, or caution list replaces the whole field.
218
273
  Slate does not merge those values. Replacing an unrelated field preserves source
219
274
  attribution for unchanged fields. Compressor membership is independent from
220
- ordinary membership. Omitting it inherits Sonnet at `medium`. An explicit empty
275
+ ordinary membership. Omitting it inherits Sol 6.2 at `low`. An explicit empty
221
276
  compressor list is a blocking error. No hidden compressor follows it.
222
277
 
223
278
  Unknown fields, duplicate names, incomplete definitions, invalid ratings, invalid
@@ -333,7 +388,7 @@ for an unknown or ambiguous route. Main recovery stays available during handoff
333
388
  pause. An unresolved stop keeps worker dispatch paused while brief writing waits
334
389
  for the user choice.
335
390
 
336
- Pi 1.4.0 model and effort switches are session-only unless the caller explicitly
391
+ Pi 1.5.2 model and effort switches are session-only unless the caller explicitly
337
392
  requests persistence. Slate retains shared saved-default ownership and its
338
393
  compatibility restoration guard. The guard covers explicit persistence and
339
394
  hosts that persist switches. A restoration failure is visible and can leave the
@@ -37,7 +37,7 @@ Main recovery sends hidden `slate-failover` instructions with a unique `details.
37
37
  Only the matching message start produces the continuation status, at most once.
38
38
  Aborted, cancelled, replaced, or paused attempts produce no such status.
39
39
  The acknowledgement does not itself prove recovery success or release recovery ownership.
40
- Pi 1.4.0's ordinary extension send returns no delivery promise.
40
+ Pi 1.5.2's ordinary extension send returns no delivery promise.
41
41
  A deferred preparation failure can escape extension observation.
42
42
  Remote procedure call (RPC) mode can suppress that late caller error.
43
43
  Slate does not claim all-mode detection of a continuation that never starts.
@@ -527,13 +527,17 @@ async function attemptCompression(
527
527
  const model = findModel(ctx, { provider: candidate.provider, id: candidate.model });
528
528
  if (!model) return { kind: "unknown" as const, reason: "The validated compressor route disappeared from Pi's registry." };
529
529
  if (!await resolveUsableAuth(ctx, model)) return { kind: "unknown" as const, reason: "The validated compressor credentials disappeared before execution." };
530
+ const major = /^gpt-(\d+)(?:\D|$)/.exec(model.id)?.[1];
531
+ const requestModel = model.provider === "openai" && major !== undefined && Number(major) >= 6
532
+ ? { ...model, contextWindow: Math.max(model.contextWindow, 1_050_000) }
533
+ : model;
530
534
  const evidence = new CompressorRetryEvidence();
531
535
  let final: unknown;
532
536
  let threw = false;
533
537
  try {
534
538
  final = await retryAssistantCall(
535
539
  async () => {
536
- const response = await ctx.modelRegistry.streamSimple(model, {
540
+ const response = await ctx.modelRegistry.streamSimple(requestModel, {
537
541
  messages: [{ role: "user", content: [{ type: "text", text: promptText }], timestamp: Date.now() }],
538
542
  }, {
539
543
  maxTokens: COMPRESSOR_MAX_TOKENS, ...(candidate.effort === "off" ? {} : { reasoning: candidate.effort }), signal,
@@ -590,7 +590,7 @@ export function registerSlateHandoff(
590
590
  let adopted = false;
591
591
  try {
592
592
  // Keep the whole adoption block inside the compatibility restore guard.
593
- // Pi 1.4.0 extension setters are session-only, so this is normally a
593
+ // Pi 1.5.2 extension setters are session-only, so this is normally a
594
594
  // zero-write no-op. The guard covers hosts that persist switches,
595
595
  // including a thinking-level-only write.
596
596
  await withGlobalModelDefaultRestored(
@@ -599,7 +599,7 @@ export function registerSlateHandoff(
599
599
  getConfig(),
600
600
  { provider, id },
601
601
  async () => {
602
- // True once a Pi setter has been called. Pi 1.4.0 does not persist
602
+ // True once a Pi setter has been called. Pi 1.5.2 does not persist
603
603
  // this call. The compatibility guard also covers hosts where the call
604
604
  // can write a default.
605
605
  let calledSetter = false;
@@ -14,7 +14,7 @@
14
14
  * Modules:
15
15
  * state.ts — thread/episode records, session-scoped persistence
16
16
  * worker.ts — in-process worker AgentSessions (recursion-guarded)
17
- * episodes.ts — episode compression (Sonnet-default, D5)
17
+ * episodes.ts — episode compression (Sol 6.2 default, D5)
18
18
  * threads.ts — ThreadManager: queueing, dispatch lifecycle
19
19
  * tools.ts — thread / threads / episode tools
20
20
  * handoff.ts — absolute-token context-budget auto-pause (with threshold-
@@ -8,8 +8,16 @@ export type LogicalFieldSource = {
8
8
  basis: "Project judgment informed by DeepSWE v1.1 and reviewed supporting evidence";
9
9
  } | {
10
10
  publisher: "Slate project";
11
- decided: "2026-09-30";
12
- basis: "Project judgment set on 2026-09-30 without new benchmark evidence";
11
+ decided: "2026-11-12";
12
+ basis: "Project judgment proportionally scaled on 2026-11-12 without a benchmark source for this rating"
13
+ | "Project judgment proportionally scaled on 2026-11-12 from earlier judgments informed by DeepSWE v1.1 and reviewed supporting evidence";
14
+ } | {
15
+ publisher: "Slate project";
16
+ decided: "2026-11-18";
17
+ basis: "Project judgment scaled from Sol 6.1 without a benchmark source"
18
+ | "Project judgment copied from Sol 6.1 without a benchmark source"
19
+ | "Project judgment scaled from gpt-6-astra without a benchmark source"
20
+ | "Direct project decision without a benchmark source";
13
21
  };
14
22
 
15
23
  export interface LogicalModelSource {
@@ -51,7 +59,7 @@ function deepFreeze<T>(value: T): T {
51
59
  }
52
60
 
53
61
  const SONNET_OPUS_CAUTION = "May exceed explicit scope or infer permission from earlier requests. Check changes against stated exclusions and approval requirements.";
54
- const SOL_CAUTION = "When blocked, may substitute unapproved resources or perform destructive cleanup. Require permission before either action.";
62
+ const SOL_CAUTION = "When blocked, may substitute unapproved resources or perform destructive cleanup. Require permission before either action. Do not run a dependency install that the project rules forbid. Ask first.";
55
63
  const LUNA_CAUTION = "May treat supplied repair context as permission to implement despite explicit task limits. Restrict write access for record-only work and verify the changed files.";
56
64
  const FLASH_CAUTION = "Do not use as a reviewer. It relies too much on passing tests and exact-size assertions. Verify source citations and distinguish proposed behavior from existing behavior.";
57
65
 
@@ -71,56 +79,79 @@ function fieldSource(): LogicalFieldSource {
71
79
  }
72
80
 
73
81
  function source(projectRatings = false): LogicalModelSource {
74
- const ratingSource: LogicalFieldSource = projectRatings
75
- ? { publisher: "Slate project", decided: "2026-09-30", basis: "Project judgment set on 2026-09-30 without new benchmark evidence" }
76
- : fieldSource();
82
+ const ratingSource: LogicalFieldSource = {
83
+ publisher: "Slate project", decided: "2026-11-12",
84
+ basis: projectRatings
85
+ ? "Project judgment proportionally scaled on 2026-11-12 without a benchmark source for this rating"
86
+ : "Project judgment proportionally scaled on 2026-11-12 from earlier judgments informed by DeepSWE v1.1 and reviewed supporting evidence",
87
+ };
77
88
  return { capabilityRating: ratingSource, costRating: ratingSource, guidelines: fieldSource() };
78
89
  }
79
90
 
80
91
  const SHIPPED_DEFINITIONS: LogicalModelDefinition[] = [
81
92
  {
82
- model: "luna-6", capabilityRating: 45, effort: "max", costRating: 5,
93
+ model: "luna-6", capabilityRating: 35, effort: "max", costRating: 2,
83
94
  preferredProvider: "openai", providers: providers("openai", "gpt-6-luna"),
84
95
  guidelines: ["auxiliary tasks only, such as file location, check-result collection, or routine text management such as modifying research logs", "never primary research, implementation, design, or review", "consumer-contract work only when auxiliary"],
85
- cautions: [LUNA_CAUTION, "Do not use Luna to handle complex texts."], source: source(),
96
+ cautions: [LUNA_CAUTION, "Do not use Luna to handle complex texts.", "May shorten long file paths in tool calls. Give the full path and require a read-back of the edited lines.", "May undo its own checked writes before it ends. Check the final file state after every record task.", "For an append, anchor one single-block edit on the exact current last line, then read back the tail.", "May report state outside the task scope incorrectly. Verify such a claim before acting on it."], source: source(),
86
97
  },
87
98
  {
88
- model: "claude-sonnet-5.5", capabilityRating: 45, effort: "high", costRating: 54,
99
+ model: "claude-sonnet-5.5", capabilityRating: 35, effort: "high", costRating: 25,
89
100
  preferredProvider: "anthropic", providers: providers("anthropic", "claude-sonnet-5-5"),
90
101
  guidelines: [], cautions: [SONNET_OPUS_CAUTION], source: source(true),
91
102
  },
92
103
  {
93
- model: "sol-6.1", capabilityRating: 85, effort: "high", costRating: 20,
104
+ model: "sol-6.1", capabilityRating: 66, effort: "high", costRating: 9,
94
105
  preferredProvider: "openai", providers: providers("openai", "gpt-6.1-sol"),
95
- guidelines: ["default thread choice"], cautions: [SOL_CAUTION], source: source(true),
106
+ guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut."], source: source(true),
96
107
  },
97
108
  {
98
- model: "gemini-3.8-flash", capabilityRating: 55, effort: "medium", costRating: 30,
109
+ model: "gemini-3.8-flash", capabilityRating: 43, effort: "medium", costRating: 14,
99
110
  preferredProvider: "google-vertex", providers: providers("google-vertex", "gemini-3.8-flash"),
100
111
  guidelines: ["default thread choice", "generally prefer over Luna when available", "a more specific active guideline overrides this general Flash preference"],
101
112
  cautions: [FLASH_CAUTION], source: source(),
102
113
  },
103
114
  {
104
- model: "claude-opus-5.5", capabilityRating: 90, effort: "high", costRating: 65,
115
+ model: "claude-opus-5.5", capabilityRating: 70, effort: "high", costRating: 30,
105
116
  preferredProvider: "anthropic", providers: providers("anthropic", "claude-opus-5-5"),
106
- guidelines: ["Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review.", "Do not select Opus 5.5 as the default implementer. If a lower-capability model repeatedly fails at implementation, first ask Opus 5.5 to investigate and provide detailed repair instructions. Let the implementer try those instructions. Use Opus 5.5 as the implementer only if that guided attempt also fails. Treat that use as an exception. Select another suitable model for later implementation work. Existing approval requirements and repair limits still apply."], cautions: [SONNET_OPUS_CAUTION], source: source(),
117
+ guidelines: ["Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review.", "Do not select Opus 5.5 as the default implementer."], cautions: [SONNET_OPUS_CAUTION], source: source(),
107
118
  },
108
119
  {
109
- model: "gpt-6-astra", capabilityRating: 86, effort: "medium", costRating: 60,
120
+ model: "gpt-6-astra", capabilityRating: 67, effort: "medium", costRating: 28,
110
121
  preferredProvider: "openai", providers: providers("openai", "gpt-6-astra"),
111
122
  guidelines: ["Do not select Astra as the default implementer.", "Prefer Sol 6.1 over Astra."],
112
123
  cautions: [], source: source(),
113
124
  },
125
+ {
126
+ model: "fable-5-2", capabilityRating: 84, effort: "high", costRating: 75,
127
+ preferredProvider: "anthropic", providers: providers("anthropic", "claude-fable-5-2"),
128
+ guidelines: ["Do not select Fable 5.2 for routine work.", "If a lower-capability model repeatedly fails at implementation, first ask Fable 5.2 to investigate and provide detailed repair instructions. Let the implementer try those instructions. Use Fable 5.2 as the implementer only if that guided attempt also fails. Treat that use as an exception. Select another suitable model for later implementation work. Existing approval requirements and repair limits still apply."], cautions: [], source: source(true),
129
+ },
130
+ {
131
+ model: "sol-6.2", capabilityRating: 73, effort: "high", costRating: 9,
132
+ preferredProvider: "openai", providers: providers("openai", "gpt-6.2-sol"),
133
+ guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut."], source: { capabilityRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment scaled from Sol 6.1 without a benchmark source" }, costRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment copied from Sol 6.1 without a benchmark source" }, guidelines: fieldSource() },
134
+ },
135
+ {
136
+ model: "astra-6.2", capabilityRating: 80, effort: "high", costRating: 19,
137
+ preferredProvider: "openai", providers: providers("openai", "gpt-6.2-astra"),
138
+ guidelines: ["Reviewer for each proved DESIGN-TRIGGERING focus area, in adversarial design review and in implementation area review.", "Do not select Astra 6.2 as the default implementer."], cautions: [],
139
+ source: { capabilityRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Direct project decision without a benchmark source" }, costRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment scaled from gpt-6-astra without a benchmark source" }, guidelines: { publisher: "Slate project", decided: "2026-11-18", basis: "Direct project decision without a benchmark source" } },
140
+ },
114
141
  ];
115
142
 
143
+ export const DEFAULT_LOGICAL_MODEL_NAMES: readonly string[] = deepFreeze([
144
+ "luna-6", "sol-6.2", "astra-6.2", "fable-5-2",
145
+ ]);
146
+
116
147
  export const SHIPPED_LOGICAL_MODELS: readonly LogicalModelDefinition[] = deepFreeze(SHIPPED_DEFINITIONS);
117
148
 
118
149
  export const SHIPPED_COMPRESSOR_MODELS: readonly LogicalCompressorEntry[] = deepFreeze([
119
- { model: "claude-sonnet-5.5", effort: "medium" },
150
+ { model: "sol-6.2", effort: "low" },
120
151
  ]);
121
152
 
122
153
  export const LOGICAL_MODEL_SOURCE_NOTES = deepFreeze({
123
- ratings: "Fixed project judgments. Sol 6.1 and Sonnet 5.5 ratings were set on 2026-09-30 without new benchmark evidence. Other ratings are informed by DeepSWE v1.1 by DataCurve and reviewed supporting evidence",
154
+ ratings: "The project set ratings for Sol 6.2 and Astra 6.2 on 2026-11-18 without benchmark sources. Sol 6.2 capability is scaled from Sol 6.1 and its cost is copied from Sol 6.1. Astra 6.2 capability is a direct project decision and its cost is scaled from gpt-6-astra. The other shipped ratings use project judgments proportionally scaled on 2026-11-12. Fable 5.2 ratings are project judgments with no benchmark source. Earlier Sol 6.1 and Sonnet 5.5 judgments had no new benchmark evidence. DeepSWE v1.1 by DataCurve and reviewed supporting evidence informed the other earlier judgments",
124
155
  guidance: "Project-authored advisory guidance informed by DeepSWE v1.1 focus analysis and approved project inference",
125
156
  source: "https://deepswe.datacurve.ai/artifacts/v1.1/leaderboard-live.json",
126
157
  retrieved: "2026-09-11",
@@ -1,4 +1,5 @@
1
1
  import {
2
+ DEFAULT_LOGICAL_MODEL_NAMES,
2
3
  LOGICAL_MODEL_EFFORTS,
3
4
  SHIPPED_COMPRESSOR_MODELS,
4
5
  SHIPPED_LOGICAL_MODELS,
@@ -218,7 +219,7 @@ export function resolveLogicalModelPolicy(input: ResolveLogicalPolicyInput): Rea
218
219
  }
219
220
  definitions.set(name, { ...parsed, ...(inherited && Object.keys(inherited).length > 0 ? { source: inherited } : {}) });
220
221
  }
221
- const initial = include ?? SHIPPED_LOGICAL_MODELS.map((item) => item.model);
222
+ const initial = include ?? DEFAULT_LOGICAL_MODEL_NAMES;
222
223
  for (const name of initial) if (!definitions.has(name)) errors.push(`router.models.include references unknown model ${JSON.stringify(name)}.`);
223
224
  const excluded = new Set(exclude ?? []);
224
225
  for (const name of excluded) if (!definitions.has(name)) errors.push(`router.models.exclude references unknown model ${JSON.stringify(name)}.`);
package/extension/mode.ts CHANGED
@@ -586,7 +586,7 @@ export function registerSlateMode(
586
586
  if (store.orchestratorMode && choice.enabled) displaySummary(ctx);
587
587
  };
588
588
 
589
- // In pinned pi 1.4.0, AgentSession.prompt() handles registered extension
589
+ // In pinned pi 1.5.2, AgentSession.prompt() handles registered extension
590
590
  // commands before the input event. It returns when a command claims the text.
591
591
  // /slate resume and /slate handoff therefore never reach this handler.
592
592
  // Command matching is exact and case-sensitive. sendUserMessage() skips
@@ -2,7 +2,7 @@
2
2
  * Global model-default restore: put the user's GLOBAL pi defaults back after a
3
3
  * slate-initiated model switch.
4
4
  *
5
- * Pi 1.4.0 keeps ordinary extension model and thinking-level switches inside
5
+ * Pi 1.5.2 keeps ordinary extension model and thinking-level switches inside
6
6
  * the current session. AgentSession changes global defaults only when a caller
7
7
  * explicitly requests persistence. Slate requests no persistence. This guard
8
8
  * covers explicit persistence fixtures and hosts that persist switches. If a
@@ -86,7 +86,7 @@ type ThinkingLevel = ReturnType<ExtensionAPI["getThinkingLevel"]>;
86
86
  * busy-waits SYNCHRONOUSLY, so an attempt's cost is set by contention, not by
87
87
  * slate — a count-based bound would leave the stall unbounded.
88
88
  *
89
- * WORST-CASE STALL, derived from this file as written (pi 1.4.0: a contended
89
+ * WORST-CASE STALL, derived from this file as written (pi 1.5.2: a contended
90
90
  * acquisition makes ten attempts with nine 20 ms waits, about 180 ms):
91
91
  * five lock acquisitions per attempt — post-switch read (construction IS a
92
92
  * read), write-manager construction, the pair write, the separate
@@ -517,7 +517,7 @@ function switchMayHavePersisted<T>(predicate: ((result: T) => boolean) | undefin
517
517
  * `performSwitch` must contain every setter call for that switch.
518
518
  * The post-switch read must follow the last write.
519
519
  * Explicit persistence or a host that persists switches can write the thinking
520
- * default alone during handoff adoption. Ordinary pi 1.4.0 switches write no
520
+ * default alone during handoff adoption. Ordinary pi 1.5.2 switches write no
521
521
  * global defaults.
522
522
  *
523
523
  * The restore runs even when `performSwitch` throws.
@@ -80,10 +80,11 @@ export function isJudgementThreadType(type: unknown): type is (typeof JUDGEMENT_
80
80
  return (JUDGEMENT_THREAD_TYPES as readonly unknown[]).includes(type);
81
81
  }
82
82
 
83
- // pi-ai 1.4.0 declares this value in
83
+ // pi-ai 1.5.2 declares this value in
84
84
  // @earendil-works/pi-ai/dist/api/openai-prompt-cache.js. pi's extension loader
85
- // aliases the package root to the compat.js FILE, so an extension cannot safely
86
- // import that deep subpath. The node test pins this copy to pi-ai's declaration.
85
+ // aliases the package root to dist/core/extensions/pi-ai-extension-view.js,
86
+ // which re-exports compat. This file alias prevents safe deep-subpath imports.
87
+ // The node test pins this copy to pi-ai's declaration.
87
88
  export const OPENAI_PROMPT_CACHE_KEY_MAX_LENGTH = 64;
88
89
 
89
90
  // Common writing guidance reaches every trusted worker configuration.
@@ -186,7 +187,7 @@ function installPromptCacheKey(session: WorkerSession, promptCacheKey?: string):
186
187
  }
187
188
 
188
189
  try {
189
- // pi-ai 1.4.0 api/openai-responses.js buildParams always creates
190
+ // pi-ai 1.5.2 api/openai-responses.js buildParams always creates
190
191
  // prompt_cache_key and assigns undefined when resolved cacheRetention is
191
192
  // "none". Own-property presence therefore distinguishes that deliberate
192
193
  // opt-out from a payload shape that never considered this field.
@@ -312,22 +313,27 @@ export function createWorkerRequestContract(): WorkerRequestContract {
312
313
  * (pi-ai types.d.ts), so a wait there could not be cancelled;
313
314
  * · pi's history compaction and branch summarization call
314
315
  * `this.agent.streamFunction` directly (pi-coding-agent
315
- * dist/core/agent-session.js lines 1453 and 2551) and their options are built
316
+ * dist/core/agent-session.js lines 2305 and 3443) and their options are built
316
317
  * WITHOUT `onPayload` (dist/core/compaction/compaction.js
317
- * createSummarizationOptions), so a throttle on `onPayload` would miss every
318
+ * createSummarizationOptions, lines 463–469), so a throttle on `onPayload` would miss every
318
319
  * worker history summary, which the approved design includes;
319
320
  * · the wait happens BEFORE the SDK converts the conversation into a provider
320
321
  * payload, so a waiting request holds no converted copy (PF5).
321
322
  *
322
- * The wrapper preserves the software development kit (SDK) authentication branch.
323
- * AgentSession._getSummarizationRequestAuth takes its strict branch only when
324
- * agent.streamFunction === streamSimple. In pinned pi 1.4.0, createAgentSession
325
- * installs its own stream function, so fresh worker sessions take the lenient
326
- * branch. test/request-throttle-worker.test.ts checks that identity.
323
+ * In pi 1.5.2, createAgentSession marks its installed stream function through
324
+ * markRuntimeStreamFunction (dist/core/sdk.js:290).
325
+ * AgentSession._getSummarizationRequestAuth skips credential pre-resolution
326
+ * only for a marked function (dist/core/agent-session.js:275–308).
327
+ * Slate replaces that function without carrying its mark. Worker summaries
328
+ * take the fallback branch and receive the resolved credential as an explicit
329
+ * apiKey. Issue #591 tracks the repair.
330
+ * The strict branch still tests agent.streamFunction === streamSimple.
331
+ * Fresh workers use a different function. test/request-throttle-worker.test.ts
332
+ * checks that identity, not preservation of runtime-owned authentication.
327
333
  *
328
334
  * A THROWN admission error is NOT swallowed. A cancelled wait rejects, pi turns
329
335
  * the rejection into the same aborted or errored assistant outcome it produces
330
- * for a provider failure (pi-agent-core dist/agent.js handleRunFailure), and no
336
+ * for a provider failure (pi-agent-core dist/agent.js:368 handleRunFailure), and no
331
337
  * request is sent.
332
338
  */
333
339
  export function installRequestThrottle(
@@ -481,7 +487,7 @@ export async function openWorkerSession(opts: {
481
487
  // user has NOT trusted. Carry the host session's actual trust decision into
482
488
  // both the resource loader and the session.
483
489
  //
484
- // READ-ONLY view (AF8/AF9): pi 1.4.0 keeps ordinary session.setModel and
490
+ // READ-ONLY view (AF8/AF9): pi 1.5.2 keeps ordinary session.setModel and
485
491
  // setThinkingLevel calls inside the session. Slate requests no persistence.
486
492
  // This storage protects global settings from calls with persist:true and
487
493
  // from hosts that persist switches. A file-backed manager would save those
@@ -658,7 +664,7 @@ export async function openWorkerSession(opts: {
658
664
  ? SessionManager.open(opts.sessionFile)
659
665
  : SessionManager.create(ctx.cwd, ensureRuntimeDirectory(ctx.cwd, opts.runtimeFolder ?? defaultArtifactFolder(), "threads"));
660
666
 
661
- // In pi 1.4.0, createAgentSession creates a ModelRuntime when none is passed.
667
+ // In pi 1.5.2, createAgentSession creates a ModelRuntime when none is passed.
662
668
  // It uses auth.json, models.json and models-store.json under agentDir.
663
669
  // SDK creation enables network catalog refresh only with allowModelNetwork.
664
670
  // This call supplies no runtime option, so creation uses no network catalog
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ytdb-slate",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Design-first feature development for the pi coding agent. Slate researches, designs, implements and reviews each change. You judge the design and keep control of the code without reading every line.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
  "extension",
16
16
  "docs",
17
17
  "README.md",
18
+ "CHANGELOG.md",
18
19
  "LICENSE"
19
20
  ],
20
21
  "pi": {
@@ -36,9 +37,9 @@
36
37
  "typebox": "*"
37
38
  },
38
39
  "devDependencies": {
39
- "@earendil-works/pi-ai": "1.4.0",
40
- "@earendil-works/pi-coding-agent": "1.4.0",
41
- "@earendil-works/pi-tui": "1.4.0",
40
+ "@earendil-works/pi-ai": "1.5.2",
41
+ "@earendil-works/pi-coding-agent": "1.5.2",
42
+ "@earendil-works/pi-tui": "1.5.2",
42
43
  "@types/node": "24.13.3",
43
44
  "typebox": "1.3.27",
44
45
  "typescript": "5.9.3"