Phase 917: export mesh entry name lookup map + pull config scope list (v0.8.884)
Non-breaking refactor — buildExportMeshFetchRegistryEntryNameLookupMap() centralizes entry name lookup map; lookup-bind uses map builder; lookup facade spreads lookup-name + lookup-bind; listExportMeshPullConfigKeysFromScope() derives pull keys from scope; registry delegates pull key list to scope helper. Default gossip v1 unchanged; fleet v2 cutover still deferred. Verification: test:ci-phase917, boot gate, pearcord.log scan.
This commit is contained in:
@@ -92,6 +92,8 @@ Application facade: one `PearcordPlatform` class that wires identity, database,
|
||||
|
||||
**Phase 822 (v0.8.789):** Triple-peer topology via `guild-mesh-topology` + `getMeshStabilityStats`. Bundle: `npm run test:ci-phase822`.
|
||||
|
||||
**Phase 917 (v0.8.884):** Export mesh entry name lookup map + pull config scope list. Bundle: `npm run test:ci-phase917`.
|
||||
|
||||
**Phase 916 (v0.8.883):** Export mesh entry scope clone + entry lookup map builder + registry config scope. Bundle: `npm run test:ci-phase916`.
|
||||
|
||||
**Phase 915 (v0.8.882):** Export mesh entry lookup bind extract + validate scope adoption. Bundle: `npm run test:ci-phase915`.
|
||||
|
||||
@@ -2,21 +2,11 @@
|
||||
|
||||
const { lookupExportMeshFetchRegistryEntryFromScope } = require('./gossip-rpc-export-mesh-registry-entry')
|
||||
const { buildExportMeshFetchRegistryEntryLookups } = require('./gossip-rpc-export-mesh-registry-lookup-entry')
|
||||
const {
|
||||
lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryNameByWaitersKey,
|
||||
lookupExportMeshFetchRegistryNameByNamedMixinExport
|
||||
} = require('./gossip-rpc-export-mesh-registry-lookup-name')
|
||||
const { buildExportMeshFetchRegistryEntryNameLookupMap } = require('./gossip-rpc-export-mesh-registry-lookup-map')
|
||||
|
||||
const entryLookups = buildExportMeshFetchRegistryEntryLookups(
|
||||
lookupExportMeshFetchRegistryEntryFromScope,
|
||||
{
|
||||
lookupExportMeshFetchRegistryEntryByPullConfig: lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryEntryByMixinMethod: lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryEntryByWaitersKey: lookupExportMeshFetchRegistryNameByWaitersKey,
|
||||
lookupExportMeshFetchRegistryEntryByNamedMixinExport: lookupExportMeshFetchRegistryNameByNamedMixinExport
|
||||
}
|
||||
buildExportMeshFetchRegistryEntryNameLookupMap()
|
||||
)
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
'use strict'
|
||||
|
||||
const {
|
||||
lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryNameByWaitersKey,
|
||||
lookupExportMeshFetchRegistryNameByNamedMixinExport
|
||||
} = require('./gossip-rpc-export-mesh-registry-lookup-name')
|
||||
|
||||
/** Map entry lookup export names to name resolver functions (Phase 917). */
|
||||
function buildExportMeshFetchRegistryEntryNameLookupMap () {
|
||||
return {
|
||||
lookupExportMeshFetchRegistryEntryByPullConfig: lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryEntryByMixinMethod: lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryEntryByWaitersKey: lookupExportMeshFetchRegistryNameByWaitersKey,
|
||||
lookupExportMeshFetchRegistryEntryByNamedMixinExport: lookupExportMeshFetchRegistryNameByNamedMixinExport
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { buildExportMeshFetchRegistryEntryNameLookupMap }
|
||||
@@ -1,37 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
const { listExportMeshFetchRegistryKeys } = require('./gossip-rpc-export-mesh-registry-lists')
|
||||
const {
|
||||
lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryNameByWaitersKey
|
||||
} = require('./gossip-rpc-export-mesh-registry-lookup-name')
|
||||
const {
|
||||
listExportMeshFetchMixinMethodsFromScope,
|
||||
listExportMeshFetchWaitersKeysFromScope,
|
||||
buildExportMeshFetchRegistrySnapshotFromScope
|
||||
} = require('./gossip-rpc-export-mesh-registry-scope-lists')
|
||||
const lookupName = require('./gossip-rpc-export-mesh-registry-lookup-name')
|
||||
const scopeLists = require('./gossip-rpc-export-mesh-registry-scope-lists')
|
||||
const lookupBind = require('./gossip-rpc-export-mesh-registry-lookup-bind')
|
||||
const { buildExportMeshFetchRegistryDiagnosticsSnapshot } = require('./gossip-rpc-export-mesh-registry-diagnostics')
|
||||
const {
|
||||
lookupExportMeshFetchRegistryEntry,
|
||||
lookupExportMeshFetchRegistryEntryByPullConfig,
|
||||
lookupExportMeshFetchRegistryEntryByMixinMethod,
|
||||
lookupExportMeshFetchRegistryEntryByWaitersKey,
|
||||
lookupExportMeshFetchRegistryEntryByNamedMixinExport
|
||||
} = require('./gossip-rpc-export-mesh-registry-lookup-bind')
|
||||
|
||||
module.exports = {
|
||||
listExportMeshFetchRegistryKeys,
|
||||
listExportMeshFetchMixinMethods: listExportMeshFetchMixinMethodsFromScope,
|
||||
listExportMeshFetchWaitersKeys: listExportMeshFetchWaitersKeysFromScope,
|
||||
lookupExportMeshFetchRegistryEntry,
|
||||
lookupExportMeshFetchRegistryNameByPullConfig,
|
||||
lookupExportMeshFetchRegistryNameByMixinMethod,
|
||||
lookupExportMeshFetchRegistryNameByWaitersKey,
|
||||
lookupExportMeshFetchRegistryEntryByPullConfig,
|
||||
lookupExportMeshFetchRegistryEntryByMixinMethod,
|
||||
lookupExportMeshFetchRegistryEntryByWaitersKey,
|
||||
lookupExportMeshFetchRegistryEntryByNamedMixinExport,
|
||||
buildExportMeshFetchRegistrySnapshot: buildExportMeshFetchRegistrySnapshotFromScope,
|
||||
buildExportMeshFetchRegistryDiagnosticsSnapshot
|
||||
listExportMeshFetchMixinMethods: scopeLists.listExportMeshFetchMixinMethodsFromScope,
|
||||
listExportMeshFetchWaitersKeys: scopeLists.listExportMeshFetchWaitersKeysFromScope,
|
||||
buildExportMeshFetchRegistrySnapshot: scopeLists.buildExportMeshFetchRegistrySnapshotFromScope,
|
||||
buildExportMeshFetchRegistryDiagnosticsSnapshot,
|
||||
...lookupName,
|
||||
...lookupBind
|
||||
}
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
const { getExportMeshFetchRegistryScope } = require('./gossip-rpc-export-mesh-registry-scope')
|
||||
const {
|
||||
listExportMeshFetchRegistryEntryField,
|
||||
listExportMeshFetchMixinMethodsFromRegistry
|
||||
listExportMeshFetchMixinMethodsFromRegistry,
|
||||
listExportMeshPullConfigKeysFromRegistry
|
||||
} = require('./gossip-rpc-export-mesh-registry-lists')
|
||||
const { buildExportMeshFetchRegistrySnapshotFromKeys } = require('./gossip-rpc-export-mesh-registry-snapshot')
|
||||
|
||||
@@ -25,8 +26,15 @@ function buildExportMeshFetchRegistrySnapshotFromScope () {
|
||||
return buildExportMeshFetchRegistrySnapshotFromKeys(registry, keys)
|
||||
}
|
||||
|
||||
/** List export mesh pull config keys from registry scope (Phase 917). */
|
||||
function listExportMeshPullConfigKeysFromScope () {
|
||||
const { registry, keys } = getExportMeshFetchRegistryScope()
|
||||
return listExportMeshPullConfigKeysFromRegistry(registry, keys)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
listExportMeshFetchMixinMethodsFromScope,
|
||||
listExportMeshFetchWaitersKeysFromScope,
|
||||
buildExportMeshFetchRegistrySnapshotFromScope
|
||||
buildExportMeshFetchRegistrySnapshotFromScope,
|
||||
listExportMeshPullConfigKeysFromScope
|
||||
}
|
||||
|
||||
@@ -19,7 +19,8 @@ const exportMeshPullConfigKeys = Object.keys(exportMeshFetchRegistry).map(
|
||||
)
|
||||
|
||||
function listExportMeshPullConfigKeys () {
|
||||
return [...exportMeshPullConfigKeys]
|
||||
const { listExportMeshPullConfigKeysFromScope } = require('./gossip-rpc-export-mesh-registry-scope-lists')
|
||||
return listExportMeshPullConfigKeysFromScope()
|
||||
}
|
||||
|
||||
function exportMeshFetchConfig (name) {
|
||||
|
||||
@@ -14,6 +14,7 @@ const meshRegistry = require('./gossip-rpc-export-mesh-registry')
|
||||
const meshRegistryLookup = require('./gossip-rpc-export-mesh-registry-lookup')
|
||||
const meshRegistryLookupEntry = require('./gossip-rpc-export-mesh-registry-lookup-entry')
|
||||
const meshRegistryLookupBind = require('./gossip-rpc-export-mesh-registry-lookup-bind')
|
||||
const meshRegistryLookupMap = require('./gossip-rpc-export-mesh-registry-lookup-map')
|
||||
const meshRegistryLookupName = require('./gossip-rpc-export-mesh-registry-lookup-name')
|
||||
const meshRegistryScope = require('./gossip-rpc-export-mesh-registry-scope')
|
||||
const meshRegistryScopeLists = require('./gossip-rpc-export-mesh-registry-scope-lists')
|
||||
@@ -44,6 +45,7 @@ module.exports = {
|
||||
...meshRegistryLookup,
|
||||
...meshRegistryLookupEntry,
|
||||
...meshRegistryLookupBind,
|
||||
...meshRegistryLookupMap,
|
||||
...meshRegistryLookupName,
|
||||
...meshRegistryScope,
|
||||
...meshRegistryScopeLists,
|
||||
|
||||
Reference in New Issue
Block a user