ytdb-slate 0.17.0 → 0.18.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/README.md CHANGED
@@ -1,73 +1,95 @@
1
- # ytdb-slate: multi-agent orchestration for the pi coding agent
1
+ # ytdb-slate: design-first feature development for the pi coding agent
2
2
 
3
3
  [![CI status](https://github.com/JetBrains/ytdb-slate/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/JetBrains/ytdb-slate/actions/workflows/ci.yml)
4
4
 
5
- Slate is a multi-agent orchestration extension for the [pi coding agent](https://pi.dev). You work in one interactive pi session, the main session. A bounded action is a focused task with a clear limit. A worker thread is an isolated pi session that researches, implements, or reviews changes. Slate sends bounded actions to separate worker threads. Each worker thread returns a short structured summary called an episode. A review workflow adds reviewers for risks the orchestrator proves or for work above a size threshold.
5
+ Slate is an extension for the [pi coding agent](https://pi.dev) for features that need deep domain knowledge, such as database or system code. You describe what a change must do. Slate researches the code and published approaches, proposes a design, implements the change, and reviews the result. You judge designs and results. You keep control without reading every line. Judging each design helps deepen your expertise.
6
6
 
7
- The developers of the [YouTrackDB](https://github.com/JetBrains/youtrackdb) database use Slate in production development.
7
+ Slate comes from the [YouTrackDB](https://github.com/JetBrains/youtrackdb) team, which develops all YouTrackDB features with Slate. Slate helps new contributors with strong reasoning skills build database features quickly and at high quality, without deep database experience. Developers outside YouTrackDB also use Slate.
8
8
 
9
- ## What Slate does
9
+ ## Who does what
10
10
 
11
- - Gives each worker thread context for one action, not the full main-session history.
12
- - Summarizes work at the action boundary. Summaries can omit details.
13
- - Lets Slate adapt its plan after each result.
14
- - Saves episodes for later worker threads to use by reference.
15
- - Runs independent actions in parallel.
11
+ | You | Slate |
12
+ | --- | --- |
13
+ | State the intent and limits of a change. | Researches the code and published approaches. |
14
+ | Judge the design, logic and risks. | Proposes designs and names proved risks. |
15
+ | Answer product and permission questions. | Implements the change in focused steps. |
16
+ | Accept the final result. | Adds reviewers for risky or large changes and reports their findings. |
16
17
 
17
18
  ## Quick start
18
19
 
19
- Slate requires pi 1.4.0 or later. Older pi can still load the package, but it is not supported. Slate provides no runtime version warning.
20
-
21
- You need an installed and authenticated [pi coding agent](https://pi.dev/docs/latest/quickstart). From your project directory, install a pinned Slate version:
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:
22
21
 
23
22
  ```bash
24
23
  pi install -l npm:ytdb-slate@<version>
25
24
  ```
26
25
 
27
- The `-l` option records the package in `.pi/settings.json`. Pi may ask you to trust the project before loading its settings and extensions. Pi skips pins during `pi update --extensions` and `pi update --all`. Review the shipped workflow documents before moving the pin.
26
+ The `-l` option records the package in `.pi/settings.json`. Pi may ask you to trust the project. Pi skips pins during `pi update --extensions` and `pi update --all`. Review the shipped workflow documents before moving the pin.
28
27
 
29
- Slate has not reached version 1.0. Releases that change only the last number, for example 0.11.0 and 0.11.3, are compatible. A release that changes the second number, for example 0.12.0, can break compatibility. Review the release notes before you update.
28
+ Before 1.0, releases changing only the last number are compatible, such as 0.11.0 and 0.11.3. Changing the second number can break compatibility. Review release notes before updating.
30
29
 
31
- Start a new interactive pi session and let Slate delegate actions:
30
+ Start a new interactive pi session:
32
31
 
33
32
  ```text
34
33
  /slate on
35
34
  ```
36
35
 
37
- Try a request with a clear outcome:
36
+ Try a request:
38
37
 
39
38
  ```text
40
39
  Add input validation to the account settings endpoint. First research the relevant code and tests. Show me the proposed plan and risks before implementation.
41
40
  ```
42
41
 
43
- Slate asks for required decisions before editing code. It delegates work after workflow gates allow it. The workflow summary is off by default. Run `/slate summary on` to save an opt-in. The panel appears at the next interactive startup or mode activation, not when you save the choice. The summary disappears when you send your first prompt to the model. A handoff successor keeps the current panel visibility instead of using the saved choice.
42
+ ## How a change works
44
43
 
45
- Run `/slate off` to stop Slate's delegation and remove the summary. `/slate summary off` also removes it. Toggling orchestrator mode off with `/slate` removes it too. Other slash commands leave it visible unless they reload or replace the session. `/reload`, `/new`, `/resume`, and `/fork` clear the panel when they reload or replace the session. Slate then shows it only when orchestrator mode is on and the saved choice allows automatic display. Run `/slate summary` to show it at any time. See [Commands](#commands).
44
+ Slate researches, assesses risks, and asks for required decisions before editing code. You judge designs and review results. You accept the whole change before merging.
46
45
 
47
- ## How Slate works
46
+ See [workflow](docs/track-workflow.md), [nested planning](docs/recursive-workflow.md), and [publishing guidance](docs/pr-publishing.md) for rules.
48
47
 
49
- - **Main session and orchestrator:** the interactive pi session where you set goals and review results. In **orchestrator mode**, it delegates actions.
50
- - **Bounded action:** focused work with a clear limit and expected result.
51
- - **Worker thread:** an isolated pi session for one action. Follow-up work starts a new thread.
52
- - **Episode:** a durable, structured summary of an action. It retains intent, actions, findings, artifacts, open issues, and handoff notes.
48
+ ## How Slate differs from spec-driven development
53
49
 
54
- Through `context`, later worker threads can receive earlier episodes without full transcripts. A model summarizes completed work and failed partial work. A worker thread that fails without a response receives a fixed episode instead. Summaries can lose details. [Design principles](docs/design-principles.md) and [model routing](docs/model-routing.md) explain the limits.
50
+ Spec-driven development (SDD) puts a written specification at the center of the work. Some developers worry that this becomes a waterfall process, where all design ends before anyone writes code. Slate also uses written designs, but it works in small, checked steps:
55
51
 
56
- Slate independently implements the thread-weaving architecture from the Random Labs technical report for `@randomlabs/slate`.
52
+ - **Research first.** Slate studies existing code and published approaches before proposing a design. You judge the proposal.
53
+ - **Design and code advance together.** A track is a reviewable part of a change. About 400 changed lines per track is a guideline, not a limit. In a change with several tracks, you accept each track when it is complete. You also accept the whole change at the end.
54
+ - **Design can change.** When implementation must change a guarantee or an assumption of the approved design, Slate shows you the change and asks for your approval.
55
+ - **Review depth follows risk.** Slate adds reviewers for proved risks, such as data loss or concurrency defects. Small changes without proved risks get fewer steps. See [review rules](docs/review-rules.md).
57
56
 
58
- A track is a bounded part of approved work. A code track implements that work. A design track plans a nested change with child tracks. A level contains sibling tracks from one split. Levels group planning only. The whole change uses one branch and is the merge unit. Slate supplies this development workflow in orchestrator mode. Project configuration can extend the workflow rules but cannot replace them. Eleven focus areas name specific risks. They cover
57
+ Eleven focus areas name specific risks. They cover
59
58
  concurrency defects, data loss, security weaknesses, performance degradation,
60
59
  test-quality defects, unreadable user-facing prose, licensing exposure,
61
60
  non-local logic defects, consumer contract breaks, governing-rule defects, and
62
61
  unreported failures.
63
62
 
64
- The orchestrator records risks for the change and each track. The orchestrator judges each named proof and selects design gates and reviewers. You can inspect the assessment and direct changes. A track with a proved risk gets one general reviewer and its required specialists. An implementer's approximate track size above 100 added plus removed lines also adds the general reviewer unless the track changes only documents that neither ship as code nor run. Lockfiles, migration files, and generated output do not count. A track that the orchestrator estimates above 100 such lines needs a high-level design before implementation, including when it changes only documents. A track with neither review trigger gets no routine implementation reviewer. See [workflow](docs/track-workflow.md) and [focus areas](docs/blast-radius.md) for the rules. One optional draft pull request covers the whole change. Each design track needs your explicit acceptance of its whole subtree, which contains that track and its descendants. Final acceptance of the whole change remains a separate decision. Only you merge the pull request after final acceptance. Merge commits or rebase merges keep separate implementation commits. A squash merge combines them. Rebase merges can drop empty marker commits that record accepted track boundaries. These losses are accepted. See [publishing guidance](docs/pr-publishing.md) for merge advice and verification. See [recursive workflow](docs/recursive-workflow.md) for nested planning, repair children, and acceptance.
63
+ See [focus areas](docs/blast-radius.md).
64
+
65
+ ## What users say
66
+
67
+ > ytdb-slate pi extension which rises my development expertise to the whole new level. I am not bad developer, but I don't have a lot of experience with db development and system programming. With slate I was able to be as productive as expert in this area. Slate takes all the complexity and deep knowledge needed and only leaves the good reasoning and logic to me. So, basically, every human with a good reasoning skills and some background understanding of computers and networks could become a pro system developer. I truly believe slate is a new revolution in the software development.
68
+
69
+ — YouTrackDB developer
70
+
71
+ ## When plain pi is enough
72
+
73
+ Use plain pi for small, well-understood edits. Slate uses more model calls than plain pi, so it costs more. Designs and reviews do not guarantee correct code. You still judge the evidence.
65
74
 
66
75
  ## Product principles
67
76
 
68
- - **Control without reading every line.** Many coding agents produce code that the developer accepts without reading it. Slate keeps you in control in a different way. It gives you higher-level views of the work: proved risks, designs, and review results. You direct and check each change through these views, so you do not need to read all of the generated code.
69
- - **Quality before cost, within limits.** We expect the cost of model use to fall over time. Slate therefore spends more model work on code quality, up to a reasonable limit. For example, Slate adds reviewers for proved risks and for large tracks that change code.
70
- - **Cost in proportion to the change.** The cost of a change should grow in proportion to its complexity. A small track with no proved risk gets no design gate and no routine implementation reviewer. A larger or riskier track can add design steps, review steps, or both.
77
+ - **Control without reading every line.** Judge designs, proved risks and review results instead of relying only on code inspection.
78
+ - **Quality before cost, within limits.** Slate spends more model work on quality, up to a reasonable limit.
79
+ - **Cost in proportion to the change.** Small changes without proved risks need fewer steps than large or risky changes.
80
+
81
+ ## How Slate works
82
+
83
+ Slate uses multi-agent orchestration:
84
+
85
+ - **Main session:** your interactive pi session. In orchestrator mode, it delegates work.
86
+ - **Bounded action:** focused work with a clear limit and expected result.
87
+ - **Worker thread:** an isolated pi session for one action.
88
+ - **Episode:** a durable, structured summary of an action.
89
+
90
+ Slate sends bounded actions to worker threads. The orchestrator manages worker threads, keeps steps focused, adapts after results, and runs independent actions in parallel. Later worker threads receive episodes by reference through `context`, without full transcripts. Summaries can lose details.
91
+
92
+ Slate independently implements the thread-weaving architecture from the Random Labs technical report for `@randomlabs/slate`. See [design principles](docs/design-principles.md) and [model routing](docs/model-routing.md).
71
93
 
72
94
  ## Commands
73
95
 
@@ -95,13 +117,19 @@ Slate limits which extensions worker threads can load and which project settings
95
117
 
96
118
  ## Roadmap
97
119
 
98
- The main goal is that you can guide a change through its design without reading the code. Planned work:
120
+ The planned vision has two levels between requirements and code. A high-level design states what must be true and why. A low-level design shows how the code works through:
121
+
122
+ - **Baseline map:** explains how the current code works before a change.
123
+ - **Implementation map:** explains what the delivered code does.
124
+ - **Neutral pseudocode:** describes logic without a specific programming language.
125
+
126
+ Maps are under development. Other plans:
99
127
 
100
- 1. Design documents that state exact guarantees and show why the design keeps them. Reviewers check the code against the approved design ([#402](https://github.com/JetBrains/ytdb-slate/issues/402), [#403](https://github.com/JetBrains/ytdb-slate/issues/403), [#404](https://github.com/JetBrains/ytdb-slate/issues/404)).
101
- 2. Better developer experience: asynchronous threads, a detailed cost breakdown, and a read-only view of thread execution.
102
- 3. Remote development: planned support will allow you to set up your own infrastructure to steer agents from a laptop, a desktop or a phone through one browser application, with notifications when an agent needs attention.
128
+ 1. Exact design guarantees, reasoning, and review against the approved design ([#402](https://github.com/JetBrains/ytdb-slate/issues/402), [#403](https://github.com/JetBrains/ytdb-slate/issues/403), [#404](https://github.com/JetBrains/ytdb-slate/issues/404)).
129
+ 2. Asynchronous threads, a detailed cost breakdown, and a read-only view of thread execution.
130
+ 3. Remote development on your infrastructure through one browser application, from a laptop, desktop or phone, with notifications when an agent needs attention.
103
131
 
104
- See [`docs/roadmap.md`](docs/roadmap.md) for details.
132
+ See [roadmap](docs/roadmap.md) for details.
105
133
 
106
134
  ## Shipped docs
107
135
 
@@ -51,8 +51,8 @@ The project must be trusted before Slate reads this file. Start a new session af
51
51
  | `notifications.push.enabled` | boolean | `false` | Home permission for phone push. A trusted project can disable it but cannot enable it. Configuration validation does not contact a server. |
52
52
  | `notifications.detail` | `generic` \| `project` \| `message` | `generic` | Text permission for terminal and native channels. `generic` permits event text. `project` also permits the folder name. `message` also permits the agent message. A trusted project can only lower the home permission. |
53
53
  | `notifications.pushDetail` | `generic` \| `project` \| `message` | `generic` | Independent text permission for push, with the same levels. Only home can raise it. A trusted project can lower it. General detail does not raise push detail. |
54
- | `notifications.minimumDelayMs` | number | `30000` | Minimum interval since input, in milliseconds. Accept a nonnegative safe integer. A trusted project value wins. |
55
- | `notifications.cooldownMs` | number | `60000` | Minimum interval between events of the same type, in milliseconds. Accept a nonnegative safe integer. A trusted project value wins. |
54
+ | `notifications.minimumDelayMs` | number | `120000` | Minimum interval since input, in milliseconds. Accept a nonnegative safe integer. A trusted project value wins. |
55
+ | `notifications.cooldownMs` | number | ignored | This removed setting has no effect. Slate reports it at session start for each source that contains it. Remove it from `slate.json`. |
56
56
  | `notifications.sequences` | `auto` \| string[] | `auto` | An explicit list must contain distinct values from `osc9`, `osc777`, and `osc99`. The list must not be empty. List order is preserved. A trusted project value wins. |
57
57
  | `notifications.push.server` | string | — | Accept HTTPS (Hypertext Transfer Protocol Secure) addresses from home configuration for encrypted web traffic. Accept HTTP (Hypertext Transfer Protocol) only for loopback addresses, which refer to this computer. Allow `localhost`, IPv4 (Internet Protocol version 4) addresses starting with `127.`, or `::1`. HTTP connections also require a resolved loopback address. Reject embedded credentials, query strings, and fragments. The request path ends with `/`. An invalid address disables push with a generic warning. Slate ignores project destination and credential fields with one generic warning. |
58
58
  | `notifications.push.topic` | string | — | Home-only topic name of 1 to 64 characters. Accept ASCII (American Standard Code for Information Interchange) letters `A-Z` and `a-z`, digits `0-9`, `_`, or `-`. Enabled push requires both server and topic. An invalid or missing destination disables push. |
@@ -89,7 +89,7 @@ The project must be trusted before Slate reads this file. Start a new session af
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
 
92
- Invalid values produce generic warnings that name the setting and its home or project source without showing supplied values. Invalid channel values use the channel defaults, combined with home permission for project values. Invalid detail falls back to `generic`. Invalid intervals use their defaults. Invalid sequence selection uses `auto`. Invalid or incomplete push destinations disable push.
92
+ Invalid values produce generic warnings that name the setting and its home or project source without showing supplied values. Invalid channel values use the channel defaults, combined with home permission for project values. Invalid detail falls back to `generic`. An invalid minimum delay uses its default. Invalid sequence selection uses `auto`. Invalid or incomplete push destinations disable push.
93
93
 
94
94
  ## Action concurrency and script workers
95
95
 
@@ -154,13 +154,13 @@ Closing the dialog cancels its pending wait.
154
154
  These events can also describe nonblocking overlays.
155
155
  An event proves an outstanding interaction, not that the agent has stopped.
156
156
 
157
- The default minimum delay is 30,000 milliseconds, or 30 seconds.
157
+ The default minimum delay is 120,000 milliseconds, or two minutes.
158
+ The same delay applies to run waits and dialog waits.
158
159
  The delay starts at settlement or dialog opening, whichever wait applies.
159
160
  Observed activity restarts the delay for a pending wait.
160
161
 
161
- The default cooldown is 60,000 milliseconds, or 60 seconds, between attempts of the same event type.
162
- Input-needed and error events have separate cooldowns.
163
- A wait that fails the cooldown check sends nothing.
162
+ Each wait can notify after its delay if the other delivery checks pass.
163
+ No cooldown limits delivery between waits.
164
164
  Slate does not repeatedly notify about the same wait.
165
165
 
166
166
  Before delivery, Slate checks that the wait still belongs to the current session.
@@ -169,13 +169,12 @@ A dialog wait requires an open observed dialog.
169
169
  Each channel permits at most one attempt at a time.
170
170
  A busy channel does not block the other channels.
171
171
 
172
- Change the delay and cooldown in home or trusted project configuration:
172
+ Change the delay in home or trusted project configuration:
173
173
 
174
174
  ```json
175
175
  {
176
176
  "notifications": {
177
- "minimumDelayMs": 30000,
178
- "cooldownMs": 60000
177
+ "minimumDelayMs": 120000
179
178
  }
180
179
  }
181
180
  ```
@@ -436,7 +435,7 @@ Follow [Check delivery by hand](#check-delivery-by-hand) to isolate push and che
436
435
  The effective settings are the values Slate uses after resolving home and trusted project configuration.
437
436
  Send a short prompt.
438
437
  After the response settles, leave the session untouched for the effective `notifications.minimumDelayMs`, then allow time for delivery.
439
- The default delay is 30 seconds.
438
+ The default delay is two minutes.
440
439
  Check actual phone receipt, not just a successful subscription.
441
440
 
442
441
  A public topic is not private storage.
@@ -521,24 +520,24 @@ Slate resolves these values from home and trusted project configuration.
521
520
  Use `notifications.terminal`, `notifications.native`, `notifications.bell` and `notifications.push.enabled` to select channels.
522
521
  For push, also supply the home destination described in [Phone push through ntfy](#phone-push-through-ntfy).
523
522
  2. Check trusted project configuration for settings that disable the selected channel.
524
- Check `notifications.minimumDelayMs` and `notifications.cooldownMs` for timing overrides.
523
+ Check `notifications.minimumDelayMs` for a timing override.
524
+ Remove `notifications.cooldownMs` if present.
525
+ Slate ignores that key and warns at session start for each source that contains it.
525
526
  3. On Linux, check that `notify-send --help` lists `--app-name` before a native check.
526
527
  A helper without that option cannot deliver Slate's native notification.
527
528
  4. Start a new interactive session in a terminal with the required permissions.
528
529
  Send a short prompt, such as `Reply with OK`.
529
530
  5. After the response settles, leave the session untouched for the effective `notifications.minimumDelayMs`, then allow time for delivery.
530
- The default delay is 30 seconds.
531
+ The default delay is two minutes.
531
532
  Check the intended desktop or phone for **Input needed**.
532
533
  For a bell-only check, check the terminal's audible or visual bell instead.
533
- 6. Before checking a blocking extension dialog, wait for the effective `notifications.cooldownMs` to end after the previous input-needed attempt.
534
- The default cooldown is 60 seconds.
535
- If the attempt time is unknown, wait the full cooldown after step 5.
536
- Open the dialog if one is available.
534
+ 6. Open a blocking extension dialog if one is available.
535
+ No cooldown requires a pause after the previous notification.
537
536
  Leave it untouched for the effective `notifications.minimumDelayMs`, then allow time for delivery.
538
537
  Check the selected channel, then answer the dialog.
539
538
 
540
- A dialog wait that expires during the cooldown sends nothing.
541
- Slate does not deliver that expired wait after the cooldown ends.
539
+ Repeat the run check without an extra pause between waits.
540
+ Each wait can notify after its minimum delay if the other delivery checks pass.
542
541
  Timing or channel settings can cause silence even when delivery works.
543
542
 
544
543
  Check operating system and terminal notification permissions if nothing appears.
@@ -7,7 +7,6 @@ export interface NotificationSettings {
7
7
  readonly detail: NotificationDetail;
8
8
  readonly pushDetail: NotificationDetail;
9
9
  readonly minimumDelayMs: number;
10
- readonly cooldownMs: number;
11
10
  readonly sequences: "auto" | readonly NotificationProtocol[];
12
11
  readonly push: Readonly<{ enabled: boolean; server?: string; topic?: string; token?: string; username?: string; password?: string }>;
13
12
  }
@@ -16,7 +15,7 @@ const protocols: readonly NotificationProtocol[] = ["osc9", "osc777", "osc99"];
16
15
  const policies = new WeakMap<object, NotificationSettings>();
17
16
  export const NOTIFICATION_DEFAULTS: NotificationSettings = Object.freeze({
18
17
  terminal: true, native: true, bell: true, detail: "generic", pushDetail: "generic",
19
- minimumDelayMs: 30000, cooldownMs: 60000, sequences: "auto", push: Object.freeze({ enabled: false }),
18
+ minimumDelayMs: 120000, sequences: "auto", push: Object.freeze({ enabled: false }),
20
19
  });
21
20
  function object(value: unknown): Record<string, unknown> {
22
21
  return value !== null && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value)) : {};
@@ -31,6 +30,11 @@ export function resolveNotificationSettings(home: unknown, project: unknown, war
31
30
  return object(value);
32
31
  };
33
32
  const h = group(home, "", "home"), p = group(project, "", "project");
33
+ for (const [source, settings] of [["home", h], ["project", p]] as const) {
34
+ if (Object.hasOwn(settings, "cooldownMs")) {
35
+ warn(`slate: notifications.cooldownMs in ${source} configuration is a removed setting and has no effect. Remove it from slate.json.`);
36
+ }
37
+ }
34
38
  const bool = (value: unknown, fallback: boolean, key: string, source: "home" | "project"): boolean => {
35
39
  if (value === undefined) return fallback;
36
40
  if (typeof value === "boolean") return value;
@@ -52,7 +56,7 @@ export function resolveNotificationSettings(home: unknown, project: unknown, war
52
56
  const permitted = detail(h[key], key, "home");
53
57
  return p[key] === undefined ? permitted : details[Math.min(details.indexOf(permitted), details.indexOf(detail(p[key], key, "project")))]!;
54
58
  };
55
- const interval = (key: "minimumDelayMs" | "cooldownMs") => {
59
+ const interval = (key: "minimumDelayMs") => {
56
60
  const value = Object.hasOwn(p, key) ? p[key] : h[key];
57
61
  if (value === undefined) return NOTIFICATION_DEFAULTS[key];
58
62
  if (Number.isSafeInteger(value) && (value as number) >= 0) return value as number;
@@ -100,7 +104,7 @@ export function resolveNotificationSettings(home: unknown, project: unknown, war
100
104
  native: lowerChannel(h.native, p.native, true, "native"),
101
105
  bell: lowerChannel(h.bell, p.bell, true, "bell"),
102
106
  detail: lowerDetail("detail"), pushDetail: lowerDetail("pushDetail"),
103
- minimumDelayMs: interval("minimumDelayMs"), cooldownMs: interval("cooldownMs"), sequences,
107
+ minimumDelayMs: interval("minimumDelayMs"), sequences,
104
108
  push: Object.freeze(destination),
105
109
  });
106
110
  }
@@ -52,7 +52,7 @@ function messageTail(message: NotificationMessage | undefined, error: boolean):
52
52
  return text || (error ? message?.errorMessage?.slice(-400) ?? "" : "");
53
53
  }
54
54
 
55
- /** One dispatcher owns waits, cooldowns, message references and channel attempts for one session. */
55
+ /** One dispatcher owns waits, message references and channel attempts for one session. */
56
56
  export class NotificationDispatcher {
57
57
  readonly #options: NotificationDispatcherOptions;
58
58
  readonly #now: () => number;
@@ -69,7 +69,6 @@ export class NotificationDispatcher {
69
69
  #runMessage?: NotificationMessage;
70
70
  #lastMessage?: NotificationMessage;
71
71
  readonly #signals = new Set<AbortSignal>();
72
- readonly #cooldowns = new Map<NotificationEvent, number>();
73
72
  readonly #preparing = new Map<NotificationEvent, Wait>();
74
73
  readonly #attempts = new Map<NotificationChannel["name"], Attempt>();
75
74
 
@@ -179,7 +178,6 @@ export class NotificationDispatcher {
179
178
  try {
180
179
  return (wait.kind === "run" ? this.#run : this.#dialog) === wait && this.#current() &&
181
180
  now - Math.max(wait.since, this.#activity) >= options.settings.minimumDelayMs &&
182
- now - (this.#cooldowns.get(wait.event) ?? -Infinity) >= options.settings.cooldownMs &&
183
181
  (wait.kind === "run" ? options.idle() && !options.queued() && !this.#recovering() : this.#starts > this.#ends);
184
182
  } catch { return false; }
185
183
  }
@@ -231,7 +229,7 @@ export class NotificationDispatcher {
231
229
  } catch { return undefined; }
232
230
  finally { ready = true; if (signal.aborted) this.#release(channel.name, attempt); }
233
231
  }));
234
- // No await separates the final common checks, cooldown and channel starts.
232
+ // No await separates the final common checks and channel starts.
235
233
  if (!this.#eligible(wait)) {
236
234
  if ((wait.kind === "run" ? this.#run : this.#dialog) === wait) this.#cancel(wait.kind);
237
235
  cancel();
@@ -240,7 +238,6 @@ export class NotificationDispatcher {
240
238
  return;
241
239
  }
242
240
  if (wait.kind === "run") this.#run = undefined; else this.#dialog = undefined;
243
- this.#cooldowns.set(wait.event, this.#now());
244
241
  for (const [index, { channel, attempt }] of reserved.entries()) {
245
242
  attempt.accepted = true;
246
243
  void (async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ytdb-slate",
3
- "version": "0.17.0",
4
- "description": "Multi-agent orchestration extension for the pi coding agent: bounded worker sessions, structured episode summaries, and a risk-based review workflow.",
3
+ "version": "0.18.0",
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": {
7
7
  "type": "git",