Add headless offline recovery stats journey stub for Phase 966.

Introduces runGuildMeshOfflineRecoveryStatsJourney coverage and updates module docs.
This commit is contained in:
Raven Scott
2026-06-05 03:23:40 -04:00
parent 1a7f4b2e27
commit 857be8b62d
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -275,6 +275,8 @@ Enable autonomous agents (and developers) to drive Pearcord like a real user wit
Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler as `apps/pearcord/index.js`.
**v0.8.933 (Phase 966):** Headless `runGuildMeshOfflineRecoveryStatsJourney(guildId)` — offline recovery stats + mesh auto-heal chain stub. Smoke: `npm run test:agentctl-guild-mesh-offline-recovery-stats-journey-stub`.
**v0.8.932 (Phase 965):** Headless `runGuildMeshSyncHealthStatsJourney(guildId)` — sync health rail stats + diagnostics slice stub. Smoke: `npm run test:agentctl-guild-mesh-sync-health-stats-journey-stub`.
**v0.8.931 (Phase 964):** Headless `runGuildMeshPartitionHealStatsJourney(guildId)` — partition heal stats + diagnostics embed keys stub. Smoke: `npm run test:agentctl-guild-mesh-partition-heal-stats-journey-stub`.
+11
View File
@@ -1797,6 +1797,17 @@ class HeadlessSession {
return { stats, health, diagnostics }
}
/** Journey stub: guild mesh offline recovery stats (Phase 966). */
async runGuildMeshOfflineRecoveryStatsJourney (guildId) {
if (!this.platform) throw new Error('headless not started')
const gid = guildId || this.platform.guild?.guild?.id
if (!gid) throw new Error('no guild')
const replication = this.platform.exportMeshReplicationDiagnostics(gid)
const recovery = await this.platform.runOfflineRecoverySync()
await this.refreshView()
return { replication, recovery }
}
/** Journey stub: guild mesh topic pool snapshot (Phase 961). */
async runGuildMeshTopicPoolSnapshotJourney (guildId) {
if (!this.platform) throw new Error('headless not started')