instar 1.3.530 → 1.3.532
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/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +59 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/config/ConfigDefaults.d.ts.map +1 -1
- package/dist/config/ConfigDefaults.js +14 -0
- package/dist/config/ConfigDefaults.js.map +1 -1
- package/dist/core/CoherenceJournal.d.ts +1 -1
- package/dist/core/CoherenceJournal.d.ts.map +1 -1
- package/dist/core/CoherenceJournal.js +15 -2
- package/dist/core/CoherenceJournal.js.map +1 -1
- package/dist/core/EvolutionActionsReplicatedStore.d.ts +317 -0
- package/dist/core/EvolutionActionsReplicatedStore.d.ts.map +1 -0
- package/dist/core/EvolutionActionsReplicatedStore.js +625 -0
- package/dist/core/EvolutionActionsReplicatedStore.js.map +1 -0
- package/dist/core/EvolutionManager.d.ts +42 -0
- package/dist/core/EvolutionManager.d.ts.map +1 -1
- package/dist/core/EvolutionManager.js +52 -0
- package/dist/core/EvolutionManager.js.map +1 -1
- package/dist/core/PostUpdateMigrator.d.ts.map +1 -1
- package/dist/core/PostUpdateMigrator.js +41 -1
- package/dist/core/PostUpdateMigrator.js.map +1 -1
- package/dist/core/devGatedFeatures.d.ts.map +1 -1
- package/dist/core/devGatedFeatures.js +5 -0
- package/dist/core/devGatedFeatures.js.map +1 -1
- package/dist/scaffold/templates.d.ts.map +1 -1
- package/dist/scaffold/templates.js +3 -1
- package/dist/scaffold/templates.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +71 -1
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +64 -64
- package/src/scaffold/templates.ts +3 -1
- package/upgrades/1.3.531.md +33 -0
- package/upgrades/1.3.532.md +30 -0
- package/upgrades/side-effects/ws25-evolution.md +84 -0
- package/upgrades/side-effects/ws51-subscription-pool-scope.md +92 -0
|
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sB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoxatE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -3340,6 +3340,19 @@ export async function startServer(options) {
|
|
|
3340
3340
|
// the file body), keyed on a content fingerprint (KnowledgeReplicatedStore.deriveKnowledgeRecordKey).
|
|
3341
3341
|
const { KNOWLEDGE_KIND_REGISTRATION } = await import('../core/KnowledgeReplicatedStore.js');
|
|
3342
3342
|
replicatedKindRegistry.register(KNOWLEDGE_KIND_REGISTRATION);
|
|
3343
|
+
// WS2.5 (multi-machine-replicated-store-foundation) — register the FIFTH concrete
|
|
3344
|
+
// replicated kind, `evolution-action-record`, onto the registry: the FOURTH memory-family
|
|
3345
|
+
// kind (after WS2.4 knowledge + WS2.2 learnings + WS2.3 relationships). Dual-registry's
|
|
3346
|
+
// dynamic half (the static half is CoherenceJournal.JOURNAL_KINDS, which now lists
|
|
3347
|
+
// 'evolution-action-record'). Registration is INERT — emission/serve/pull stay gated
|
|
3348
|
+
// behind `multiMachine.stateSync.evolutionActions.enabled` (default false ⇒ strict no-op).
|
|
3349
|
+
// With it registered, selfStateSyncReceive self-reports `evolutionActions:true` IFF the
|
|
3350
|
+
// store is enabled, and the rollback-unmerge resolves its contributing kind via getByStore.
|
|
3351
|
+
// The local ACT-NNN id is NEVER replicated — keyed on a content fingerprint
|
|
3352
|
+
// (EvolutionActionsReplicatedStore.deriveEvolutionActionRecordKey). The load-bearing field
|
|
3353
|
+
// is `status`: a peer must SEE an action was already completed/in_progress elsewhere.
|
|
3354
|
+
const { EVOLUTION_ACTION_KIND_REGISTRATION } = await import('../core/EvolutionActionsReplicatedStore.js');
|
|
3355
|
+
replicatedKindRegistry.register(EVOLUTION_ACTION_KIND_REGISTRATION);
|
|
3343
3356
|
// Snapshot-then-tail engine (Component 4 / build-order step 3,
|
|
3344
3357
|
// multi-machine-replicated-store-foundation §6). The cache (FIXED ceiling,
|
|
3345
3358
|
// §8.2 — NOT pool-scaled), the per-peer rebuild breaker (§6.3), and the engine
|
|
@@ -7652,6 +7665,52 @@ export async function startServer(options) {
|
|
|
7652
7665
|
});
|
|
7653
7666
|
void knowledgeUnionReader; // consumed by the knowledge peer-read surface + the journal-apply rollout stage (WS2.4+)
|
|
7654
7667
|
void knowledgeManager.setKnowledgeReplicationEmitter; // the emit seam exists (unit-tested + dark by default); the journal-backed emitter is attached in a later rollout stage, mirroring the WS2.2 learnings sibling
|
|
7668
|
+
// WS2.5 — the bypass-proof union reader for the `evolutionActions` store. The single
|
|
7669
|
+
// funnel every replicated action read routes through, so no caller reads a raw replica
|
|
7670
|
+
// around the no-clobber rule. `loadOriginRecords` materializes the OWN action queue (the
|
|
7671
|
+
// same EvolutionManager that owns learnings) as the single origin today (via
|
|
7672
|
+
// evolutionActionToOriginRecord, keyed on the content-fingerprint identity surface — the
|
|
7673
|
+
// local ACT-NNN id is NEVER replicated); when the journal apply path lands peer
|
|
7674
|
+
// `evolution-action-record` replicas (a later rollout stage), the seam extends to read
|
|
7675
|
+
// those peer namespaces too. With only the own origin the union is a strict no-op. tierOf
|
|
7676
|
+
// returns HIGH (append-both-and-flag never silently clobbers two divergent action states —
|
|
7677
|
+
// e.g. one machine's completed vs another's in_progress; the READ layer is advisory,
|
|
7678
|
+
// injecting both variants as hints rather than blocking — fork #3). The emit seam is
|
|
7679
|
+
// attached ONLY when stateSync.evolutionActions.enabled is true (default false ⇒ NOT
|
|
7680
|
+
// injected ⇒ strict no-op, byte-identical single-machine behavior; the ACT id never crosses
|
|
7681
|
+
// the wire — fork #1).
|
|
7682
|
+
const { evolutionActionTierOf, evolutionActionToOriginRecord, deriveEvolutionActionRecordKey, EVOLUTION_ACTION_STORE_KEY, } = await import('../core/EvolutionActionsReplicatedStore.js');
|
|
7683
|
+
const evolutionActionsUnionReader = new ReplicatedStoreReader({
|
|
7684
|
+
registry: replicatedKindRegistry,
|
|
7685
|
+
stores: config.multiMachine?.stateSync,
|
|
7686
|
+
tierOf: evolutionActionTierOf,
|
|
7687
|
+
loadOriginRecords: (store, recordKey) => {
|
|
7688
|
+
if (store !== EVOLUTION_ACTION_STORE_KEY || _meshSelfId === null)
|
|
7689
|
+
return [];
|
|
7690
|
+
for (const a of evolution.listActions()) {
|
|
7691
|
+
if (deriveEvolutionActionRecordKey(a.title, a.commitTo, a.createdAt) === recordKey) {
|
|
7692
|
+
const o = evolutionActionToOriginRecord(a, _meshSelfId);
|
|
7693
|
+
return o ? [o] : [];
|
|
7694
|
+
}
|
|
7695
|
+
}
|
|
7696
|
+
return [];
|
|
7697
|
+
},
|
|
7698
|
+
listRecordKeys: (store) => {
|
|
7699
|
+
if (store !== EVOLUTION_ACTION_STORE_KEY)
|
|
7700
|
+
return [];
|
|
7701
|
+
const keys = [];
|
|
7702
|
+
for (const a of evolution.listActions()) {
|
|
7703
|
+
const k = deriveEvolutionActionRecordKey(a.title, a.commitTo, a.createdAt);
|
|
7704
|
+
if (k !== null)
|
|
7705
|
+
keys.push(k);
|
|
7706
|
+
}
|
|
7707
|
+
return keys;
|
|
7708
|
+
},
|
|
7709
|
+
droppedOrigins: droppedOriginRegistry,
|
|
7710
|
+
conflictStore,
|
|
7711
|
+
});
|
|
7712
|
+
void evolutionActionsUnionReader; // consumed by the evolution-actions peer-read surface + the journal-apply rollout stage (WS2.5+)
|
|
7713
|
+
void evolution.setEvolutionActionReplicationEmitter; // the emit seam exists (unit-tested + dark by default); the journal-backed emitter is attached in a later rollout stage, mirroring the WS2.2 learnings sibling
|
|
7655
7714
|
// Start MemoryPressureMonitor (platform-aware memory tracking)
|
|
7656
7715
|
const { MemoryPressureMonitor } = await import('../monitoring/MemoryPressureMonitor.js');
|
|
7657
7716
|
const memoryMonitor = new MemoryPressureMonitor({ stateDir: config.stateDir });
|