@telorun/kernel 0.85.0 → 0.87.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.
@@ -71,6 +71,24 @@ export declare class EvaluationContext implements IEvaluationContext {
71
71
  * they are reported with both the init error and the refusing inverse.
72
72
  */
73
73
  private readonly withheldResources;
74
+ /**
75
+ * Keys whose instance was REMOVED BY AN UNWIND — the fact a dispatch that
76
+ * misses actually needs, as opposed to the context-wide state that only
77
+ * approximates it.
78
+ *
79
+ * A miss because the resource went away is the runtime withdrawing, not a
80
+ * manifest defect, and the two want opposite follow-ups (see `invoke`). Both
81
+ * paths that withdraw one go through `unwindEach`, the single removal site, so
82
+ * recording it there covers a shutdown AND a reconciliation — where a check
83
+ * against `state` would have converted the first and missed the second, since
84
+ * `unwindResources` deliberately leaves the state untouched. The second is the
85
+ * one that fires on every watch-session save.
86
+ *
87
+ * Cleared when the key is registered again: after a reconcile the name means a
88
+ * live resource, and a stale entry would report a genuine missing-resource
89
+ * defect as a cancellation.
90
+ */
91
+ private readonly unwoundResources;
74
92
  /** Resources discarded after a failed `init()` and re-queued for creation.
75
93
  * Their re-creation is not progress — see the create sub-phase. */
76
94
  private readonly recreatedResources;
@@ -122,9 +140,27 @@ export declare class EvaluationContext implements IEvaluationContext {
122
140
  protected readonly declaredManifests: Map<string, ResourceManifest>;
123
141
  /** Per-resource dependency names, captured at create() time — BEFORE Phase-5
124
142
  * injection swaps refs for live instances, so the walk sees plain objects and
125
- * cannot wander into a controller's (possibly cyclic) object graph. Read only
126
- * when init fails, to attribute each failure to its cause. */
143
+ * cannot wander into a controller's (possibly cyclic) object graph.
144
+ *
145
+ * Read twice, and RETAINED for the context's lifetime because of the second
146
+ * reader: to attribute an init failure to its cause, and to order teardown
147
+ * (`teardownOrder`) so a consumer's inverses run while the resources it holds
148
+ * are still alive. */
127
149
  private readonly resourceDependencies;
150
+ /**
151
+ * Names resolved by NAME during initialization, rather than through a
152
+ * declared reference slot — so a resource somebody may be holding, with no
153
+ * edge recording who.
154
+ *
155
+ * The set is of TARGETS, not of pairs: the door that records
156
+ * (`ModuleContext.getInstance`) is reached as `ctx.moduleContext`, which every
157
+ * resource of the module shares, so there is no caller to attribute the read
158
+ * to. That is enough for the one decision that depends on it — see
159
+ * {@link impactedBy}.
160
+ */
161
+ protected readonly opaquelyRead: Set<string>;
162
+ /** Record a by-name resolution. Called by the recording door only. */
163
+ protected recordOpaqueRead(name: string): void;
128
164
  /**
129
165
  * Optional hook called between create() and init() for each resource.
130
166
  * Set by the kernel to inject live instances into reference fields.
@@ -231,6 +267,22 @@ export declare class EvaluationContext implements IEvaluationContext {
231
267
  */
232
268
  hasManifest(name: string): boolean;
233
269
  registerManifest(resource: ResourceManifest): void;
270
+ /**
271
+ * Forget a declaration entirely — the inverse of {@link registerManifest}.
272
+ *
273
+ * Reconciliation's other half: {@link unwindResources} disposes the INSTANCE,
274
+ * and this clears everything keyed by the name so the same name can be
275
+ * declared again. Without it `registerManifest` refuses with
276
+ * `ERR_DUPLICATE_RESOURCE`, which is the right answer for a manifest
277
+ * declaring one name twice and the wrong one for a second load of the same
278
+ * manifest.
279
+ *
280
+ * Every per-name record goes, not just the declaration: a resource left in
281
+ * `withheldResources` would be skipped by the init loop for the life of the
282
+ * kernel, and a stale `createdInstances` entry would have the loop initialize
283
+ * the object built from the PREVIOUS declaration.
284
+ */
285
+ deregisterManifest(name: string): void;
234
286
  /**
235
287
  * The manifest a name was DECLARED with, resolved scope-local first and then
236
288
  * up the enclosing chain — the order `getInstance` and the CEL `resources`
@@ -320,39 +372,138 @@ export declare class EvaluationContext implements IEvaluationContext {
320
372
  */
321
373
  createScopeHandle(manifests: ResourceManifest[]): ScopeHandle;
322
374
  /**
323
- * Cascade teardown depth-first through the tree:
324
- * 1. Tear down child contexts in reverse registration order.
325
- * 2. Tear down own resource instances in reverse registration order,
326
- * emitting a Teardown event for each via the injected emit callback.
375
+ * Cascade teardown through the tree:
376
+ * 1. Tear down own resource instances in {@link teardownOrder}, emitting a
377
+ * Teardown event for each via the injected emit callback.
378
+ * 2. Sweep any child context still standing, in {@link childTeardownOrder}.
379
+ *
380
+ * **Own resources go FIRST, and the child sweep is a backstop.** A child
381
+ * context that belongs to a resource is torn down by that resource's own
382
+ * inverse — an import's `init()` returns `child.teardownResources()`, and so
383
+ * does a template's — so it already unwinds at its owner's position in step 1,
384
+ * which is the position the edges put it at. Running a child cascade ahead of
385
+ * step 1 tore every imported library down before any resource of THIS context,
386
+ * so an app resource holding `!ref Alias.name` unwound after its provider was
387
+ * already gone, and the owner's inverse then found nothing left to do.
388
+ *
389
+ * Sweeping afterwards rather than not at all is what still reclaims a context
390
+ * no inverse claims: a `lifecycle: shared` library, which is spawned under the
391
+ * root and deliberately gives no importer a claim on it, and an import whose
392
+ * `init()` never ran to register one. `teardownResources` is idempotent, so a
393
+ * context already taken down in step 1 costs the sweep nothing.
327
394
  */
328
395
  teardownResources(): Promise<void>;
329
396
  /**
330
- * Child contexts in teardown order: ascending `teardownPriority` (default 0),
331
- * with the base reverse-registration order preserved within each tier.
397
+ * Unwind SOME of this context's resources and leave the rest running.
398
+ *
399
+ * The reconciliation half of teardown: a host that has decided which
400
+ * declarations moved unwinds exactly {@link impactedBy}'s answer, then
401
+ * re-registers and re-initializes. Ordering is {@link teardownOrder}
402
+ * restricted to the selection, so a consumer still unwinds before what it
403
+ * holds — and the selection being closed under holders is what makes that
404
+ * true of the resources left standing as well, since none of them holds
405
+ * anything in it.
406
+ *
407
+ * The context keeps its state: it is neither draining nor torn down, and no
408
+ * child context is swept, because a child belonging to an unwound import goes
409
+ * down with that import's own inverse exactly as it does at teardown.
410
+ *
411
+ * A name with no live instance is skipped rather than reported — a resource
412
+ * that failed to initialize has nothing to unwind, and a host asking for it is
413
+ * asking about a declaration, not about an instance.
414
+ */
415
+ unwindResources(names: ReadonlySet<string>): Promise<void>;
416
+ private raiseTeardownFailures;
417
+ /** Unwind the given entries in the order supplied, aggregating what refused.
418
+ * Failures are returned rather than thrown so one refusing inverse cannot
419
+ * strand the resources after it — the log sinks above all. */
420
+ private unwindEach;
421
+ /**
422
+ * Child contexts for the backstop sweep: ascending `teardownPriority`
423
+ * (default 0), reverse registration within a tier.
332
424
  *
333
- * The same rule `teardownOrder` applies to resource instances, and for the
334
- * same reason: reverse registration is reverse init order in the happy path,
335
- * but a node that must reliably outlive the rest has to say so rather than
336
- * depend on when it happened to be created. A `lifecycle: shared` library is
337
- * registered when the FIRST import reaches it which, for an import declared
338
- * inside another library, is after that library's own context so reverse
339
- * registration would tear the singleton down while a borrower still holds it.
425
+ * What reaches the sweep is a context no resource's inverse claimed, which in
426
+ * practice is the `lifecycle: shared` libraries. Those are spawned under the
427
+ * ROOT and give no importer a claim, so nothing but this orders them and
428
+ * reverse registration alone does not, since a singleton is registered when
429
+ * the FIRST import reaches it, which for an import declared inside another
430
+ * library is after that library's own context. `TEARDOWN_LAST` on the context
431
+ * is what keeps a singleton alive until the libraries borrowing it have gone.
432
+ *
433
+ * Its protection now stops at library-against-library. Every resource of the
434
+ * context that owns the sweep has already unwound by the time it runs, which
435
+ * is the ordering the sweep used to invert.
340
436
  */
341
437
  private childTeardownOrder;
342
438
  /**
343
- * Resource instances in teardown order: ascending `teardownPriority`, with the
344
- * base reverse-insertion order preserved within each priority tier.
439
+ * Resource instances in teardown order: ascending `teardownPriority` as a hard
440
+ * tier, and within a tier a consumer before every resource it holds
441
+ * ({@link reverseTopologicalOrder} over the create-time edges), with reverse
442
+ * insertion as the tiebreak.
345
443
  *
346
- * The base order is reverse *insertion*, which is reverse init order in the
347
- * happy path but the init loop is a multi-pass retry, so a resource that
348
- * failed its first pass lands later in the map than its topological rank
349
- * implies. That makes the dependency graph an unreliable way to say "last".
350
- * A resource that must reliably outlive the rest declares it directly via
351
- * `teardownPriority` (log sinks set `TEARDOWN_LAST`), so the generic teardown
352
- * path orders by a declared number rather than sniffing any one subsystem's
353
- * instance shape.
444
+ * `teardownPriority` is a TIER rather than another edge because it is the
445
+ * author's statement about an edge nothing captured: a log sink is reached
446
+ * through `ctx.log` rather than through a ref slot, so no walk of the manifest
447
+ * can find the resources that will log on the way down. Letting topology
448
+ * reorder across tiers would let one discovered edge override a declaration
449
+ * made precisely because the edges are not all discoverable.
354
450
  */
355
451
  private teardownOrder;
452
+ /**
453
+ * Every resource of this context that becomes invalid when `names` do — the
454
+ * named resources plus everything that transitively holds one
455
+ * ({@link impactClosure} over the same create-time edges teardown reads).
456
+ *
457
+ * What a reconciliation unwinds. A cross-module reference projects onto the
458
+ * local `Telo.Import` (`localDependencyNames`), so a change inside an
459
+ * imported library reaches this context as its import being impacted, and the
460
+ * library goes down with that import's own inverse — which is why this
461
+ * answers for one context rather than walking the tree.
462
+ *
463
+ * **`opaque` is what the answer cannot cover.** A name resolved by NAME during
464
+ * initialization ({@link opaquelyRead}) may be held by a resource no edge
465
+ * names, so a closure reaching one is not an answer at all. Those names are
466
+ * reported rather than absorbed: expanding the set to "every resource here"
467
+ * would sweep in the module document, which is not a resource a caller can
468
+ * unwind and re-register, and would present a whole-context rebuild as a
469
+ * narrowing. The caller escalates, and can say which resource forced it.
470
+ */
471
+ impactedBy(names: Iterable<string>): {
472
+ impacted: Set<string>;
473
+ opaque: string[];
474
+ };
475
+ /** Whether this resource's `run()` has been dispatched. A rebuilt resource
476
+ * that had been started is one nothing will start again — boot targets run
477
+ * once — so a caller reconciling has to escalate rather than leave it
478
+ * constructed and idle. */
479
+ wasStarted(name: string): boolean;
480
+ /** Drop a resource's published reading. A context with no `resources` scope of
481
+ * its own has nothing to drop; `ModuleContext` overrides. */
482
+ clearPublishedReading(name: string): void;
483
+ /** The declaration registered under `name` in THIS context, without the
484
+ * walk up the enclosing chain a name lookup does. */
485
+ declaredManifestFor(name: string): ResourceManifest | undefined;
486
+ /** Replace a declaration in place, without queueing the resource for
487
+ * creation. For a survivor of a reconciliation: its declaration is
488
+ * content-identical by construction, but the object carries fresh loader
489
+ * stamps (`metadata.sourceLine` above all), and a diagnostic anchored on the
490
+ * stale one points at a pre-edit line. */
491
+ refreshManifest(name: string, resource: ResourceManifest): void;
492
+ /** Re-open an initialized context for another initialization pass.
493
+ *
494
+ * The transition is the context's own, not a field a caller assigns: while it
495
+ * is open, a reference to a resource that has not been rebuilt yet must
496
+ * produce the deferral the init loop retries on rather than a hard
497
+ * not-found, and leaving it open after a failed pass turns every later
498
+ * lookup into that deferral with no pass coming. */
499
+ reopenForInitialization(): void;
500
+ /** Close a pass opened by {@link reopenForInitialization} that did not reach
501
+ * the end of `initializeResources`. */
502
+ closeInitialization(): void;
503
+ /** Names a resource resolved by NAME while this context was initializing, so
504
+ * no edge records who is holding them. Read by {@link impactedBy}; exposed so
505
+ * a host can report why a reconciliation could not be narrowed. */
506
+ opaqueReads(): ReadonlySet<string>;
356
507
  transientChild(context: Record<string, any>): EvaluationContext;
357
508
  /**
358
509
  * Invoke a resource by kind and name within this context's resourceInstances.
@@ -1 +1 @@
1
- {"version":3,"file":"evaluation-context.d.ts","sourceRoot":"","sources":["../src/evaluation-context.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,WAAW,EAEX,KAAK,iBAAiB,IAAI,kBAAkB,EAC5C,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,cAAc,CAAC;AAsBtB,OAAO,EAAE,WAAW,EAAE,CAAC;AAyGvB,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,gBAAgB,EAC1B,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6CzB;AAuED;iFACiF;AACjF,wBAAgB,yBAAyB,CACvC,QAAQ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