@aragon-agent/cli 0.6.21 → 0.6.22

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.
@@ -113,15 +113,30 @@ export declare class TeamRuntime {
113
113
  */
114
114
  private readonly pendingBackoffs;
115
115
  /**
116
- * The dispatch supervisor, LIVE for the current dispatch only (team-overseer).
117
- * Null when the provider is absent/disabled/off, and reset to null at every
118
- * dispatch end so nothing supervision-shaped leaks across dispatches.
116
+ * The dispatch supervisor, LIVE for the current dispatch only
117
+ * (team-overseer / subagent-overseer-v2). Null when the provider is not
118
+ * wired or the policy is off, and reset to null at every dispatch end so
119
+ * nothing supervision-shaped leaks across dispatches.
120
+ *
121
+ * THE GATE IS "PROVIDER PRESENT AND POLICY ON" (R-P0-2), deliberately NOT
122
+ * the provider's live `active()`: a dispatch that STARTS without a fast
123
+ * tier must still get a MonitorLoop, because the promise this feature
124
+ * makes is "timeout is never a death sentence" - an unavailable tier
125
+ * degrades the tick to an announced unassisted wait rather than falling
126
+ * back to the legacy hard abort. `active()` is re-read every tick.
119
127
  */
120
128
  private overseer;
121
- /** The soft timers, same lifetime as `overseer`. */
129
+ /** The per-child silence windows, same lifetime as `overseer`. */
122
130
  private supervision;
131
+ /** The cadence ladder (subagent-overseer-v2 D-2), same lifetime. */
132
+ private monitor;
123
133
  /** Applied interventions for the in-flight dispatch's outcome. */
124
134
  private interventions;
135
+ /** Labels already told the supervisor went quiet on them (D-5, once). */
136
+ private readonly quietNotified;
137
+ /** Edge-latched "a tick ran unassisted" (D-10), per dispatch. */
138
+ private overseerDegraded;
139
+ private overseerDegradedTicks;
125
140
  constructor(deps: TeamRuntimeDeps);
126
141
  subscribe(listener: TeamEventListener): () => void;
127
142
  /**
@@ -175,17 +190,44 @@ export declare class TeamRuntime {
175
190
  */
176
191
  private isBlocked;
177
192
  /**
178
- * One trigger handled: look, then apply. Fired from a supervision timer and
179
- * therefore async-and-forgotten; nothing here may throw.
193
+ * One SILENCE trigger handled: look, then apply. Fired from a supervision
194
+ * timer and therefore async-and-forgotten; nothing here may throw.
180
195
  *
181
- * QUIET (`decision === null` — provider gone, budget spent) CLEARS the
182
- * child's timers: supervision that has nothing left to say should stop
183
- * waking up, and the child's own hard ceilings take over.
196
+ * A NULL DECISION HAS THREE DISTINCT QUIETS: the look budget is spent ->
197
+ * say so ONCE and stop supervising this child (D-5); an inspection of this
198
+ * child is already in flight -> re-arm and let it settle (R-P1-4); the
199
+ * tier is gone -> clear quietly, because the cadence tick - not the
200
+ * silence path - owns the degraded announcements (D-4).
184
201
  */
185
202
  private inspectAndApply;
186
203
  private applyDecision;
187
204
  /** Record one applied decision on the outcome, the run and the event stream. */
188
205
  private recordIntervention;
206
+ /** R-P1-5: a label ticks only once STARTED and not yet settled. */
207
+ private isMonitorLive;
208
+ /**
209
+ * One ASSISTED cadence tick: build the batch over the due labels, apply
210
+ * every returned decision through the same `applyDecision` the silence
211
+ * path uses (D-3's single application path), and hand the map back so the
212
+ * loop can move the ladders. Labels the batch skipped (single-flight,
213
+ * R-P1-4) are absent from the map.
214
+ */
215
+ private monitorInspectBatch;
216
+ /**
217
+ * One DEGRADED cadence tick (D-4 / D-10): the fast tier is missing right
218
+ * now. The children wait unassisted - announced per child through the same
219
+ * event shape, never killed - and the fact is edge-latched here, NOT in
220
+ * the interventions ledger.
221
+ */
222
+ private noteDegradedTick;
223
+ /** The supervisor goes quiet on one child, ONCE (D-5 / D-10). */
224
+ private noteQuiet;
225
+ /**
226
+ * The dispatch-wide fool-proof total is spent (R-P1-6): stop the whole
227
+ * loop and emit ONE aggregate notice under a pseudo-label that is never a
228
+ * child slug.
229
+ */
230
+ private noteDispatchExhausted;
189
231
  /**
190
232
  * The final phase of an attempt, in a FIXED ORDER: aborted, then timed out,
191
233
  * then error, then no-summary, then done.