instar 1.3.775 → 1.3.776
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 +128 -1
- package/dist/commands/server.js.map +1 -1
- package/dist/config/ConfigDefaults.d.ts.map +1 -1
- package/dist/config/ConfigDefaults.js +21 -0
- package/dist/config/ConfigDefaults.js.map +1 -1
- package/dist/core/OrchestratorActuator.d.ts +90 -0
- package/dist/core/OrchestratorActuator.d.ts.map +1 -0
- package/dist/core/OrchestratorActuator.js +88 -0
- package/dist/core/OrchestratorActuator.js.map +1 -0
- package/dist/core/OscillationBreaker.d.ts +46 -0
- package/dist/core/OscillationBreaker.d.ts.map +1 -0
- package/dist/core/OscillationBreaker.js +52 -0
- package/dist/core/OscillationBreaker.js.map +1 -0
- package/dist/core/SeamlessOrchestratorEngine.d.ts +167 -0
- package/dist/core/SeamlessOrchestratorEngine.d.ts.map +1 -0
- package/dist/core/SeamlessOrchestratorEngine.js +251 -0
- package/dist/core/SeamlessOrchestratorEngine.js.map +1 -0
- package/dist/core/WriteDomainRegistry.d.ts.map +1 -1
- package/dist/core/WriteDomainRegistry.js +20 -0
- package/dist/core/WriteDomainRegistry.js.map +1 -1
- package/dist/monitoring/OrchestratorPoller.d.ts +64 -0
- package/dist/monitoring/OrchestratorPoller.d.ts.map +1 -0
- package/dist/monitoring/OrchestratorPoller.js +132 -0
- package/dist/monitoring/OrchestratorPoller.js.map +1 -0
- package/dist/server/AgentServer.d.ts +1 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +1 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/routes.d.ts +5 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +51 -1
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +47 -47
- package/upgrades/1.3.776.md +44 -0
- package/upgrades/side-effects/ll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AI,EAKhG,mBAAmB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,EAQrD,oBAAoB,CAAC,EAAE,MAAM;IAC3B,YAAY,EAAE,OAAO,kBAAkB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,GACP,IAAI,CAonBN;AA2lBD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAirmBtE;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
|
@@ -13523,6 +13523,133 @@ export async function startServer(options) {
|
|
|
13523
13523
|
}
|
|
13524
13524
|
}
|
|
13525
13525
|
void cartographerSweepPoller;
|
|
13526
|
+
// ── Seamless LLM orchestrator (llm-seamlessness-orchestrator.md §Component3) ──
|
|
13527
|
+
// A lease-gated tier-1 LLM loop for ANTICIPATORY working-set preload — PROPOSE-ONLY /
|
|
13528
|
+
// SIGNAL-ONLY (it never moves a conversation; placement stays with the deterministic
|
|
13529
|
+
// RebalancePlanner/PlacementExecutor). Modeled on the Cartographer sweep wiring above.
|
|
13530
|
+
// Dev-gated DARK (resolveDevAgentGate) + dryRun-FIRST: on the fleet it is never
|
|
13531
|
+
// constructed; on a dev agent it runs but actuates NOTHING (logs would-actuate + audits)
|
|
13532
|
+
// until an operator flips seamlessOrchestrator.dryRun:false. Readers/deps are tick-time
|
|
13533
|
+
// closures over the function-scoped lets (the first tick is cadenceMs out — long after
|
|
13534
|
+
// boot assigns leaseCoordinatorRef / workingSet* — so the closures are safe).
|
|
13535
|
+
let orchestratorPoller = null;
|
|
13536
|
+
{
|
|
13537
|
+
const soCfg = (config.multiMachine?.seamlessOrchestrator) ?? {};
|
|
13538
|
+
const soEnabled = resolveDevAgentGate(soCfg.enabled, config);
|
|
13539
|
+
if (soEnabled) {
|
|
13540
|
+
try {
|
|
13541
|
+
const soNum = (v, d) => (typeof v === 'number' && Number.isFinite(v) ? v : d);
|
|
13542
|
+
const { SeamlessOrchestratorEngine } = await import('../core/SeamlessOrchestratorEngine.js');
|
|
13543
|
+
const { OrchestratorActuator } = await import('../core/OrchestratorActuator.js');
|
|
13544
|
+
const { OrchestratorPoller } = await import('../monitoring/OrchestratorPoller.js');
|
|
13545
|
+
const { OscillationBreaker } = await import('../core/OscillationBreaker.js');
|
|
13546
|
+
const { ParallelActivityIndex: SOActivityIndex } = await import('../core/ParallelActivityIndex.js');
|
|
13547
|
+
const soActivityIndex = new SOActivityIndex({ stateDir: config.stateDir });
|
|
13548
|
+
const soBreaker = new OscillationBreaker({
|
|
13549
|
+
oscillationWindowMs: soNum(soCfg.oscillationWindowMs, 3_600_000),
|
|
13550
|
+
blacklistTtlMs: soNum(soCfg.blacklistTtlMs, 86_400_000),
|
|
13551
|
+
});
|
|
13552
|
+
const soDryRun = soCfg.dryRun !== false; // default true (dryRun-first)
|
|
13553
|
+
const soAuditPath = path.join(config.stateDir, '..', 'logs', 'orchestrator-actions.jsonl');
|
|
13554
|
+
const soSignalsPath = path.join(config.stateDir, '..', 'logs', 'orchestrator-placement-signals.jsonl');
|
|
13555
|
+
const soWindowMs = soNum(soCfg.prefetchWindowMs, 3_600_000);
|
|
13556
|
+
const soWindowBudget = soNum(soCfg.prefetchWindowByteBudget, 33_554_432);
|
|
13557
|
+
let soWindowStart = Date.now();
|
|
13558
|
+
const soWindowSpent = 0;
|
|
13559
|
+
const soCooldowns = new Map();
|
|
13560
|
+
const engine = new SeamlessOrchestratorEngine({
|
|
13561
|
+
reads: {
|
|
13562
|
+
activeTopicsOnThisMachine: () => soActivityIndex.activities(Date.now()).map((a) => ({
|
|
13563
|
+
topic: a.topicId, focus: a.focus ?? '', lastActivityMs: a.updatedAt ?? 0, running: a.running,
|
|
13564
|
+
})),
|
|
13565
|
+
workingSetRecords: (topic) => (workingSetArtifactManager?.getReadyRows(topic) ?? []).map((r) => ({
|
|
13566
|
+
relPath: r.relPath, producerMachineId: r.producerMachineId, state: r.state,
|
|
13567
|
+
})),
|
|
13568
|
+
},
|
|
13569
|
+
llmQueue: sharedLlmQueue,
|
|
13570
|
+
holdsLease: () => (leaseCoordinatorRef ? leaseCoordinatorRef.holdsLease() : true),
|
|
13571
|
+
pressure: () => ({ tier: sharedPressureTier() }),
|
|
13572
|
+
lastActuatedAt: (topic) => soCooldowns.get(topic) ?? null,
|
|
13573
|
+
isBlacklisted: (topic) => soBreaker.isBlacklisted(topic), // F6 oscillation breaker
|
|
13574
|
+
config: {
|
|
13575
|
+
maxProposalsPerTick: soNum(soCfg.maxProposalsPerTick, 3),
|
|
13576
|
+
llmLiftThreshold: typeof soCfg.llmLiftThreshold === 'number' ? soCfg.llmLiftThreshold : 0.15,
|
|
13577
|
+
perTopicCooldownMs: soNum(soCfg.perTopicCooldownMs, 1_800_000),
|
|
13578
|
+
suspendPressureTiers: ['moderate', 'critical'],
|
|
13579
|
+
dryRun: soDryRun,
|
|
13580
|
+
},
|
|
13581
|
+
log: (m) => console.log(pc.gray(m)),
|
|
13582
|
+
});
|
|
13583
|
+
const actuator = new OrchestratorActuator({
|
|
13584
|
+
// Dark-first conservative placement reader: exercised ONLY for dryRun AUDIT rows
|
|
13585
|
+
// (actuate() never fetches/moves while dryRun). Precise pin/provenance/episode
|
|
13586
|
+
// sourcing (pool placement + stale-owner/lease-handback episode state) is the
|
|
13587
|
+
// TRACKED prerequisite before any operator flip to dryRun:false (spec P4). [C3d gap]
|
|
13588
|
+
revalidate: () => ({ pinned: false, recentlyUserMoved: false, inFailureEpisode: false }),
|
|
13589
|
+
budgetRemainingBytes: () => {
|
|
13590
|
+
const nowT = Date.now();
|
|
13591
|
+
if (nowT - soWindowStart >= soWindowMs) {
|
|
13592
|
+
soWindowStart = nowT;
|
|
13593
|
+
}
|
|
13594
|
+
return Math.max(0, soWindowBudget - soWindowSpent);
|
|
13595
|
+
},
|
|
13596
|
+
estimatedBytes: (p) => {
|
|
13597
|
+
try {
|
|
13598
|
+
return fs.statSync(path.join(config.stateDir, p.detail)).size;
|
|
13599
|
+
}
|
|
13600
|
+
catch {
|
|
13601
|
+
return 65_536; /* @silent-fallback-ok: an un-stat-able candidate uses a nominal estimate; the budget check is soak-only under dryRun. */
|
|
13602
|
+
}
|
|
13603
|
+
},
|
|
13604
|
+
fetchWorkingSet: async (topic) => {
|
|
13605
|
+
if (!workingSetPullCoordinator)
|
|
13606
|
+
return { ok: false, skipReason: 'coordinator-unwired' };
|
|
13607
|
+
const o = await workingSetPullCoordinator.fetchWorkingSet(topic);
|
|
13608
|
+
return { ok: o.scheduled === true, skipReason: o.skipReason };
|
|
13609
|
+
},
|
|
13610
|
+
recordPlacementSignal: (p) => {
|
|
13611
|
+
try {
|
|
13612
|
+
fs.mkdirSync(path.dirname(soSignalsPath), { recursive: true });
|
|
13613
|
+
fs.appendFileSync(soSignalsPath, JSON.stringify({ ts: new Date().toISOString(), topic: p.targetTopic, detail: p.detail }) + '\n');
|
|
13614
|
+
}
|
|
13615
|
+
catch { /* @silent-fallback-ok: best-effort placement-signal record; a write failure never blocks the loop (the planner re-reads on its own cadence). */ }
|
|
13616
|
+
},
|
|
13617
|
+
audit: (e) => {
|
|
13618
|
+
try {
|
|
13619
|
+
fs.mkdirSync(path.dirname(soAuditPath), { recursive: true });
|
|
13620
|
+
fs.appendFileSync(soAuditPath, JSON.stringify(e) + '\n');
|
|
13621
|
+
}
|
|
13622
|
+
catch { /* @silent-fallback-ok: best-effort audit append (read-only observability); a write failure never blocks actuation. */ }
|
|
13623
|
+
},
|
|
13624
|
+
now: () => new Date().toISOString(),
|
|
13625
|
+
log: (m) => console.log(pc.gray(m)),
|
|
13626
|
+
config: { dryRun: soDryRun },
|
|
13627
|
+
});
|
|
13628
|
+
orchestratorPoller = new OrchestratorPoller({
|
|
13629
|
+
engine,
|
|
13630
|
+
actuator,
|
|
13631
|
+
cadenceMs: soNum(soCfg.cadenceMs, 900_000),
|
|
13632
|
+
idleCadenceMs: soNum(soCfg.idleCadenceMs, 1_800_000),
|
|
13633
|
+
recordActuated: (topic, nowT) => {
|
|
13634
|
+
soCooldowns.set(topic, nowT);
|
|
13635
|
+
// F6 oscillation breaker: record the actuation; a one-shot `true` = the topic just
|
|
13636
|
+
// tripped the blacklist. In dryRun nothing actuates so this is inert; the deduped
|
|
13637
|
+
// attention-item raise + WS2 blacklist replication ride the same P4-live prerequisite
|
|
13638
|
+
// bundle as the revalidate-precision sourcing. [C4 tracked gap]
|
|
13639
|
+
if (soBreaker.recordActuation(topic, nowT)) {
|
|
13640
|
+
console.warn(` Seamless orchestrator: topic ${topic} tripped the oscillation blacklist (suppressed).`);
|
|
13641
|
+
}
|
|
13642
|
+
},
|
|
13643
|
+
log: (m) => console.log(pc.gray(m)),
|
|
13644
|
+
});
|
|
13645
|
+
orchestratorPoller.start();
|
|
13646
|
+
console.log(pc.green(` Seamless LLM orchestrator enabled (lease-gated, ${soDryRun ? 'dry-run' : 'LIVE'})`));
|
|
13647
|
+
}
|
|
13648
|
+
catch (err) {
|
|
13649
|
+
console.warn(' Seamless LLM orchestrator: construction failed —', err instanceof Error ? err.message : err);
|
|
13650
|
+
}
|
|
13651
|
+
}
|
|
13652
|
+
}
|
|
13526
13653
|
// Self-Knowledge Tree — tree-based agent self-knowledge with LLM triage
|
|
13527
13654
|
let selfKnowledgeTree;
|
|
13528
13655
|
let coverageAuditor;
|
|
@@ -21212,7 +21339,7 @@ export async function startServer(options) {
|
|
|
21212
21339
|
const server = new AgentServer({ config, sessionManager, state, scheduler, telegram, relationships, feedback, feedbackAnomalyDetector, dispatches, updateChecker, autoUpdater, autoDispatcher, quotaTracker, quotaManager, publisher, viewer, tunnel, evolution, watchdog, topicMemory, triageNurse, projectMapper, cartographer: cartographer ?? undefined, coherenceGate: scopeVerifier, contextHierarchy, canonicalState, operationGate, sentinel, adaptiveTrust, memoryMonitor, orphanReaper, coherenceMonitor, commitmentTracker, subscriptionPool, accountFollowMePeerViews: async () => { const nickById = new Map((_listPoolMachines?.() ?? []).map((m) => [m.machineId, m.nickname ?? m.machineId])); let peers = (_resolvePeerUrls?.() ?? []).map((p) => ({ machineId: p.machineId, nickname: nickById.get(p.machineId) ?? p.machineId, url: p.url })); if (peers.length === 0) {
|
|
21213
21340
|
peers = (_listPoolMachines?.() ?? []).filter((m) => m.machineId !== _meshSelfId && !!m.lastKnownUrl).map((m) => ({ machineId: m.machineId, nickname: m.nickname ?? m.machineId, url: m.lastKnownUrl }));
|
|
21214
21341
|
} if (peers.length === 0)
|
|
21215
|
-
return []; const { fetchPeerSubscriptionViews } = await import('../core/fetchPeerSubscriptionViews.js'); return fetchPeerSubscriptionViews({ peers: () => peers, fetchImpl: fetch, authToken: config.authToken ?? '' }); }, quotaPoller, quotaAwareScheduler: _quotaAwareScheduler ?? undefined, proactiveSwapMonitor: _proactiveSwapMonitor ?? undefined, inUseAccountResolver, enrollmentWizard, accountFollowMeRevocation, credentialRepointing, semanticMemory, activitySentinel, rateLimitSentinel, releaseReadinessSentinel: releaseReadinessSentinel ?? undefined, greenPrAutoMerger: greenPrAutoMerger ?? undefined, guardLatchStore: guardLatchStore ?? undefined, messageRouter, summarySentinel, spawnManager, systemReviewer, capabilityMapper, selfKnowledgeTree, coverageAuditor, topicResumeMap: _topicResumeMap ?? undefined, topicProfile: _topicProfileCtx ?? undefined, sessionRefresh: _sessionRefresh ?? undefined, autonomyManager, trustElevationTracker, autonomousEvolution, coordinator: coordinator.enabled ? coordinator : undefined, meshBindActive: coordinator.managers.identityManager.hasIdentity() && config.multiMachine?.meshTransport?.enabled !== false, localSigningKeyPem, leaseTransport, peerEndpointRecorder, getSelfMeshEndpoints, onLeasePullRequest: () => leaseCoordinatorRef?.currentLease() ?? null, liveTailReceiver, handoffWireTransport, onHandoffBegin, onHandoffInitiate: handoffInitiate, handoffInProgress: handoffSentinelInProgress, messageLedger, currentInboundByTopic, replyMarkerTransport, onReplyMarker: messageLedger ? (marker) => { const m = marker; messageLedger.applyRemoteReplyMarker(m.dedupeKey, { platform: m.platform, replyIdempotencyKey: m.replyIdempotencyKey, epoch: m.epoch, topic: m.topic ?? null }); } : undefined, whatsapp: whatsappAdapter, slack: slackAdapter, imessage: imessageAdapter, conversationRegistry, conversationBindAuth, conversationFollowThrough, whatsappBusinessBackend, messageBridge, hookEventReceiver, worktreeMonitor, subagentTracker, instructionsVerifier, handshakeManager: threadlineHandshake, threadlineRouter, conversationStore, threadLog, threadMessageRecorder, warrantsReplyGate, collaborationSurfacer, threadResumeMap, topicLinkageHandler: topicLinkageHandler ?? undefined, threadlineRelayClient, threadlineReplyWaiters, listenerManager: listenerManager ?? undefined, a2aDeliveryTracker: a2aDeliveryTracker ?? undefined, responseReviewGate, reviewCanaryBattery, messagingToneGate, outboundDedupGate, telemetryHeartbeat, pasteManager, featureRegistry, discoveryEvaluator, completionEvaluator, unifiedTrust, liveConfig, sharedStateLedger, ledgerSessionRegistry, worktreeManager, oidcEnrolledRepos: parallelDevConfig?.oidcEnrolledRepos, initiativeTracker, projectRoundRunner, projectDriftChecker, machineHeartbeat, machinePoolRegistry, ropeHealthMonitor, writeAdmission: writeAdmission ?? undefined, getInboundQueue: () => _inboundQueue, getMachineCoherence: () => _machineCoherenceSentinel, meshRpcDispatcher, workingSetPullCoordinator, workingSetArtifactManager, commitmentReplicaStore, preferenceReplicaStore, replicatedRecordEmitter, conflictStore, rollbackUnmerge, droppedOriginRegistry, preferencesUnionReader, forwardCommitmentMutate, sessionOwnershipRegistry, topicPinStore: _topicPinStore ?? undefined, topicPinSkewQuarantine: _topicPinSkewQuarantine ?? undefined, topicPinFoldView: _topicPinFoldView ?? undefined, ownershipReconciler: _ownershipReconciler ?? undefined, staleOwnerEngine: _staleOwnerEngine ?? undefined, leaseHandback: _leaseHandbackCtx ?? undefined, streamTicketStore: _streamTicketStore ?? undefined, poolStreamAllowRemoteInput: config.dashboard?.poolStream?.allowRemoteInput ?? false, poolStreamConnector: _poolStreamConnector ?? undefined, secretSync: _secretSyncHandle ?? undefined, meshSelfId: _meshSelfId ?? undefined, resolveRouterUrl: _resolveRouterUrl ?? undefined, resolvePeerUrls: _resolvePeerUrls ?? undefined, guardRegistry, listPoolMachines: _listPoolMachines ?? undefined, deliverMandateToMachine: _deliverMandateToMachine ?? undefined, poolLink: _poolLink ?? undefined, poolPollCache: _poolPollCache ?? undefined, sessionPoolE2EResultStore, proxyCoordinator, topicIntentStore, topicIntentArcCheck, usherSignalStore, intelligence: sharedIntelligence ?? undefined, telegramBridgeConfig, telegramBridge: telegramBridge ?? undefined, threadlineObservability, briefDeps, workingMemory, taskFlowRegistry, threadlineFlowBridge, sessionReaper, agentWorktreeReaper, externalHogSentinel, orphanedWorkSentinel, mcpProcessReaper, geminiLoopRunner, sleepController, agentActivityState, reapLog, resumeQueue, resumeDrainer, autonomousLivenessReconciler, enforcedTerminationStatus: () => enforcedTerminationWatchdog?.guardStatus() ?? null, prHandLease: prHandLease ?? undefined, operatorStopRecorder: recordOperatorStop, sleepWakeDetector, unjustifiedStopGate, stopGateDb, stopNotifier, liveTestGate, liveTestGateMode, liveTestRunnerCtx }); // Resolve the late-bound topic-operator getter (increment 2e): routing was
|
|
21342
|
+
return []; const { fetchPeerSubscriptionViews } = await import('../core/fetchPeerSubscriptionViews.js'); return fetchPeerSubscriptionViews({ peers: () => peers, fetchImpl: fetch, authToken: config.authToken ?? '' }); }, quotaPoller, quotaAwareScheduler: _quotaAwareScheduler ?? undefined, proactiveSwapMonitor: _proactiveSwapMonitor ?? undefined, inUseAccountResolver, enrollmentWizard, accountFollowMeRevocation, credentialRepointing, semanticMemory, activitySentinel, rateLimitSentinel, releaseReadinessSentinel: releaseReadinessSentinel ?? undefined, greenPrAutoMerger: greenPrAutoMerger ?? undefined, guardLatchStore: guardLatchStore ?? undefined, messageRouter, summarySentinel, spawnManager, systemReviewer, capabilityMapper, selfKnowledgeTree, coverageAuditor, topicResumeMap: _topicResumeMap ?? undefined, topicProfile: _topicProfileCtx ?? undefined, sessionRefresh: _sessionRefresh ?? undefined, autonomyManager, trustElevationTracker, autonomousEvolution, coordinator: coordinator.enabled ? coordinator : undefined, meshBindActive: coordinator.managers.identityManager.hasIdentity() && config.multiMachine?.meshTransport?.enabled !== false, localSigningKeyPem, leaseTransport, peerEndpointRecorder, getSelfMeshEndpoints, onLeasePullRequest: () => leaseCoordinatorRef?.currentLease() ?? null, liveTailReceiver, handoffWireTransport, onHandoffBegin, onHandoffInitiate: handoffInitiate, handoffInProgress: handoffSentinelInProgress, messageLedger, currentInboundByTopic, replyMarkerTransport, onReplyMarker: messageLedger ? (marker) => { const m = marker; messageLedger.applyRemoteReplyMarker(m.dedupeKey, { platform: m.platform, replyIdempotencyKey: m.replyIdempotencyKey, epoch: m.epoch, topic: m.topic ?? null }); } : undefined, whatsapp: whatsappAdapter, slack: slackAdapter, imessage: imessageAdapter, conversationRegistry, conversationBindAuth, conversationFollowThrough, whatsappBusinessBackend, messageBridge, hookEventReceiver, worktreeMonitor, subagentTracker, instructionsVerifier, handshakeManager: threadlineHandshake, threadlineRouter, conversationStore, threadLog, threadMessageRecorder, warrantsReplyGate, collaborationSurfacer, threadResumeMap, topicLinkageHandler: topicLinkageHandler ?? undefined, threadlineRelayClient, threadlineReplyWaiters, listenerManager: listenerManager ?? undefined, a2aDeliveryTracker: a2aDeliveryTracker ?? undefined, responseReviewGate, reviewCanaryBattery, messagingToneGate, outboundDedupGate, telemetryHeartbeat, pasteManager, featureRegistry, discoveryEvaluator, completionEvaluator, unifiedTrust, liveConfig, sharedStateLedger, ledgerSessionRegistry, worktreeManager, oidcEnrolledRepos: parallelDevConfig?.oidcEnrolledRepos, initiativeTracker, projectRoundRunner, projectDriftChecker, machineHeartbeat, machinePoolRegistry, ropeHealthMonitor, writeAdmission: writeAdmission ?? undefined, getInboundQueue: () => _inboundQueue, getMachineCoherence: () => _machineCoherenceSentinel, meshRpcDispatcher, workingSetPullCoordinator, workingSetArtifactManager, orchestratorPoller, commitmentReplicaStore, preferenceReplicaStore, replicatedRecordEmitter, conflictStore, rollbackUnmerge, droppedOriginRegistry, preferencesUnionReader, forwardCommitmentMutate, sessionOwnershipRegistry, topicPinStore: _topicPinStore ?? undefined, topicPinSkewQuarantine: _topicPinSkewQuarantine ?? undefined, topicPinFoldView: _topicPinFoldView ?? undefined, ownershipReconciler: _ownershipReconciler ?? undefined, staleOwnerEngine: _staleOwnerEngine ?? undefined, leaseHandback: _leaseHandbackCtx ?? undefined, streamTicketStore: _streamTicketStore ?? undefined, poolStreamAllowRemoteInput: config.dashboard?.poolStream?.allowRemoteInput ?? false, poolStreamConnector: _poolStreamConnector ?? undefined, secretSync: _secretSyncHandle ?? undefined, meshSelfId: _meshSelfId ?? undefined, resolveRouterUrl: _resolveRouterUrl ?? undefined, resolvePeerUrls: _resolvePeerUrls ?? undefined, guardRegistry, listPoolMachines: _listPoolMachines ?? undefined, deliverMandateToMachine: _deliverMandateToMachine ?? undefined, poolLink: _poolLink ?? undefined, poolPollCache: _poolPollCache ?? undefined, sessionPoolE2EResultStore, proxyCoordinator, topicIntentStore, topicIntentArcCheck, usherSignalStore, intelligence: sharedIntelligence ?? undefined, telegramBridgeConfig, telegramBridge: telegramBridge ?? undefined, threadlineObservability, briefDeps, workingMemory, taskFlowRegistry, threadlineFlowBridge, sessionReaper, agentWorktreeReaper, externalHogSentinel, orphanedWorkSentinel, mcpProcessReaper, geminiLoopRunner, sleepController, agentActivityState, reapLog, resumeQueue, resumeDrainer, autonomousLivenessReconciler, enforcedTerminationStatus: () => enforcedTerminationWatchdog?.guardStatus() ?? null, prHandLease: prHandLease ?? undefined, operatorStopRecorder: recordOperatorStop, sleepWakeDetector, unjustifiedStopGate, stopGateDb, stopNotifier, liveTestGate, liveTestGateMode, liveTestRunnerCtx }); // Resolve the late-bound topic-operator getter (increment 2e): routing was
|
|
21216
21343
|
// wired before the server existed; from here on inbound binds use the
|
|
21217
21344
|
// server's own store instance.
|
|
21218
21345
|
_agentServerRef = server;
|