Phase 852: sync-guild-mesh-quad-recovery-heal IPC

Wire composite recovery-heal IPC with partition heal, offline recovery,
sync burst, and guild-sync-ready quadRecoveryHeal flag.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-04 05:49:08 -04:00
co-authored by Cursor
parent 70b22b4b11
commit 4ee1294ab1
2 changed files with 54 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
Pearcord desktop UI IPC dispatch and automated flow scenarios for Bare smokes. Mirrors `apps/pearcord` pear-pipe message handling.
**Phase 852 (v0.8.819):** `sync-guild-mesh-quad-recovery-heal` composite recovery IPC. Bundle: `npm run test:ci-phase852`.
**Phase 851 (v0.8.818):** `sync-guild-mesh-quad-churn-heal` composite recovery IPC. Bundle: `npm run test:ci-phase851`.
**Phase 850 (v0.8.817):** `sync-guild-mesh-quad-partition-heal` recovery IPC. Bundle: `npm run test:ci-phase850`.
+52
View File
@@ -1450,6 +1450,58 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
})
return true
}
if (t === 'sync-guild-mesh-quad-recovery-heal') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id
const peerN = platform.guild?.peers?.size ?? 0
platform.emit('guild-mesh-topology', {
guildId: gid,
meshPeerCount: peerN,
manualRecovery: true,
quadMesh: true,
recoveryHeal: true
})
if (typeof platform.clearGuildSyncPushHalt === 'function') {
platform.clearGuildSyncPushHalt(gid)
}
void platform
.runPartitionHealSync({
force: true,
source: 'sync-guild-mesh-quad-recovery-heal'
})
.catch(() => null)
if (typeof platform.runOfflineRecoverySync === 'function') {
await platform.runOfflineRecoverySync().catch(() => null)
}
if (typeof platform.requestGuildSyncBurst === 'function') {
platform.requestGuildSyncBurst({ clearPushHalt: true })
} else if (typeof platform.requestGuildSyncFanout === 'function') {
platform.requestGuildSyncFanout()
}
platform.emit('presence')
platform.emit('guild-sync-health')
platform.emit('guild-mesh-reconnected', {
guildId: gid,
meshPeerCount: peerN,
peerId: null,
manualRecovery: true,
recoveryHeal: true
})
platform.emit('guild-sync-ready', {
guildId: gid,
quadRecoveryHeal: 1,
quadRecoveryBurst: 1,
partitionHeal: 1,
presence: 1
})
}
pushState({
structural: true,
light: false,
source: 'sync-guild-mesh-quad-recovery-heal'
})
return true
}
if (t === 'sync-guild-mesh-quad-churn-heal') {
if (platform.mode === 'guild' && platform.guild?.guild?.id) {
const gid = platform.guild.guild.id