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:
Raven Scott
2026-06-04 20:38:08 -04:00
parent 5613888f83
commit 08a6f7846c
7 changed files with 47 additions and 44 deletions
+2
View File
@@ -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 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 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`. **Phase 915 (v0.8.882):** Export mesh entry lookup bind extract + validate scope adoption. Bundle: `npm run test:ci-phase915`.
+2 -12
View File
@@ -2,21 +2,11 @@
const { lookupExportMeshFetchRegistryEntryFromScope } = require('./gossip-rpc-export-mesh-registry-entry') const { lookupExportMeshFetchRegistryEntryFromScope } = require('./gossip-rpc-export-mesh-registry-entry')
const { buildExportMeshFetchRegistryEntryLookups } = require('./gossip-rpc-export-mesh-registry-lookup-entry') const { buildExportMeshFetchRegistryEntryLookups } = require('./gossip-rpc-export-mesh-registry-lookup-entry')
const { const { buildExportMeshFetchRegistryEntryNameLookupMap } = require('./gossip-rpc-export-mesh-registry-lookup-map')
lookupExportMeshFetchRegistryNameByPullConfig,
lookupExportMeshFetchRegistryNameByMixinMethod,
lookupExportMeshFetchRegistryNameByWaitersKey,
lookupExportMeshFetchRegistryNameByNamedMixinExport
} = require('./gossip-rpc-export-mesh-registry-lookup-name')
const entryLookups = buildExportMeshFetchRegistryEntryLookups( const entryLookups = buildExportMeshFetchRegistryEntryLookups(
lookupExportMeshFetchRegistryEntryFromScope, lookupExportMeshFetchRegistryEntryFromScope,
{ buildExportMeshFetchRegistryEntryNameLookupMap()
lookupExportMeshFetchRegistryEntryByPullConfig: lookupExportMeshFetchRegistryNameByPullConfig,
lookupExportMeshFetchRegistryEntryByMixinMethod: lookupExportMeshFetchRegistryNameByMixinMethod,
lookupExportMeshFetchRegistryEntryByWaitersKey: lookupExportMeshFetchRegistryNameByWaitersKey,
lookupExportMeshFetchRegistryEntryByNamedMixinExport: lookupExportMeshFetchRegistryNameByNamedMixinExport
}
) )
module.exports = { 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 }
+9 -29
View File
@@ -1,37 +1,17 @@
'use strict' 'use strict'
const { listExportMeshFetchRegistryKeys } = require('./gossip-rpc-export-mesh-registry-lists') const { listExportMeshFetchRegistryKeys } = require('./gossip-rpc-export-mesh-registry-lists')
const { const lookupName = require('./gossip-rpc-export-mesh-registry-lookup-name')
lookupExportMeshFetchRegistryNameByPullConfig, const scopeLists = require('./gossip-rpc-export-mesh-registry-scope-lists')
lookupExportMeshFetchRegistryNameByMixinMethod, const lookupBind = require('./gossip-rpc-export-mesh-registry-lookup-bind')
lookupExportMeshFetchRegistryNameByWaitersKey
} = require('./gossip-rpc-export-mesh-registry-lookup-name')
const {
listExportMeshFetchMixinMethodsFromScope,
listExportMeshFetchWaitersKeysFromScope,
buildExportMeshFetchRegistrySnapshotFromScope
} = require('./gossip-rpc-export-mesh-registry-scope-lists')
const { buildExportMeshFetchRegistryDiagnosticsSnapshot } = require('./gossip-rpc-export-mesh-registry-diagnostics') 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 = { module.exports = {
listExportMeshFetchRegistryKeys, listExportMeshFetchRegistryKeys,
listExportMeshFetchMixinMethods: listExportMeshFetchMixinMethodsFromScope, listExportMeshFetchMixinMethods: scopeLists.listExportMeshFetchMixinMethodsFromScope,
listExportMeshFetchWaitersKeys: listExportMeshFetchWaitersKeysFromScope, listExportMeshFetchWaitersKeys: scopeLists.listExportMeshFetchWaitersKeysFromScope,
lookupExportMeshFetchRegistryEntry, buildExportMeshFetchRegistrySnapshot: scopeLists.buildExportMeshFetchRegistrySnapshotFromScope,
lookupExportMeshFetchRegistryNameByPullConfig, buildExportMeshFetchRegistryDiagnosticsSnapshot,
lookupExportMeshFetchRegistryNameByMixinMethod, ...lookupName,
lookupExportMeshFetchRegistryNameByWaitersKey, ...lookupBind
lookupExportMeshFetchRegistryEntryByPullConfig,
lookupExportMeshFetchRegistryEntryByMixinMethod,
lookupExportMeshFetchRegistryEntryByWaitersKey,
lookupExportMeshFetchRegistryEntryByNamedMixinExport,
buildExportMeshFetchRegistrySnapshot: buildExportMeshFetchRegistrySnapshotFromScope,
buildExportMeshFetchRegistryDiagnosticsSnapshot
} }
+10 -2
View File
@@ -3,7 +3,8 @@
const { getExportMeshFetchRegistryScope } = require('./gossip-rpc-export-mesh-registry-scope') const { getExportMeshFetchRegistryScope } = require('./gossip-rpc-export-mesh-registry-scope')
const { const {
listExportMeshFetchRegistryEntryField, listExportMeshFetchRegistryEntryField,
listExportMeshFetchMixinMethodsFromRegistry listExportMeshFetchMixinMethodsFromRegistry,
listExportMeshPullConfigKeysFromRegistry
} = require('./gossip-rpc-export-mesh-registry-lists') } = require('./gossip-rpc-export-mesh-registry-lists')
const { buildExportMeshFetchRegistrySnapshotFromKeys } = require('./gossip-rpc-export-mesh-registry-snapshot') const { buildExportMeshFetchRegistrySnapshotFromKeys } = require('./gossip-rpc-export-mesh-registry-snapshot')
@@ -25,8 +26,15 @@ function buildExportMeshFetchRegistrySnapshotFromScope () {
return buildExportMeshFetchRegistrySnapshotFromKeys(registry, keys) 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 = { module.exports = {
listExportMeshFetchMixinMethodsFromScope, listExportMeshFetchMixinMethodsFromScope,
listExportMeshFetchWaitersKeysFromScope, listExportMeshFetchWaitersKeysFromScope,
buildExportMeshFetchRegistrySnapshotFromScope buildExportMeshFetchRegistrySnapshotFromScope,
listExportMeshPullConfigKeysFromScope
} }
+2 -1
View File
@@ -19,7 +19,8 @@ const exportMeshPullConfigKeys = Object.keys(exportMeshFetchRegistry).map(
) )
function listExportMeshPullConfigKeys () { function listExportMeshPullConfigKeys () {
return [...exportMeshPullConfigKeys] const { listExportMeshPullConfigKeysFromScope } = require('./gossip-rpc-export-mesh-registry-scope-lists')
return listExportMeshPullConfigKeysFromScope()
} }
function exportMeshFetchConfig (name) { function exportMeshFetchConfig (name) {
+2
View File
@@ -14,6 +14,7 @@ const meshRegistry = require('./gossip-rpc-export-mesh-registry')
const meshRegistryLookup = require('./gossip-rpc-export-mesh-registry-lookup') const meshRegistryLookup = require('./gossip-rpc-export-mesh-registry-lookup')
const meshRegistryLookupEntry = require('./gossip-rpc-export-mesh-registry-lookup-entry') const meshRegistryLookupEntry = require('./gossip-rpc-export-mesh-registry-lookup-entry')
const meshRegistryLookupBind = require('./gossip-rpc-export-mesh-registry-lookup-bind') 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 meshRegistryLookupName = require('./gossip-rpc-export-mesh-registry-lookup-name')
const meshRegistryScope = require('./gossip-rpc-export-mesh-registry-scope') const meshRegistryScope = require('./gossip-rpc-export-mesh-registry-scope')
const meshRegistryScopeLists = require('./gossip-rpc-export-mesh-registry-scope-lists') const meshRegistryScopeLists = require('./gossip-rpc-export-mesh-registry-scope-lists')
@@ -44,6 +45,7 @@ module.exports = {
...meshRegistryLookup, ...meshRegistryLookup,
...meshRegistryLookupEntry, ...meshRegistryLookupEntry,
...meshRegistryLookupBind, ...meshRegistryLookupBind,
...meshRegistryLookupMap,
...meshRegistryLookupName, ...meshRegistryLookupName,
...meshRegistryScope, ...meshRegistryScope,
...meshRegistryScopeLists, ...meshRegistryScopeLists,