feat(agentctl): add guild mesh topic pool snapshot journey stub (Phase 961)

Headless runGuildMeshTopicPoolSnapshotJourney verifies topic pool snapshot
presence across mesh stability stats and replication diagnostics exports.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-05 02:50:27 -04:00
co-authored by Cursor
parent c030ec5fb2
commit 07e0f4c16a
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`. Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler as `apps/pearcord/index.js`.
**v0.8.928 (Phase 961):** Headless `runGuildMeshTopicPoolSnapshotJourney(guildId)` — topic pool snapshot stability/replication chain stub. Smoke: `npm run test:agentctl-guild-mesh-topic-pool-journey-stub`.
**v0.8.927 (Phase 960):** Headless `runGuildMeshReplicationDiagnosticsJourney(guildId)` — replication diagnostics export field registry stub. Smoke: `npm run test:agentctl-guild-mesh-replication-journey-stub`. **v0.8.927 (Phase 960):** Headless `runGuildMeshReplicationDiagnosticsJourney(guildId)` — replication diagnostics export field registry stub. Smoke: `npm run test:agentctl-guild-mesh-replication-journey-stub`.
**v0.8.926 (Phase 959):** Headless `runGuildMeshPeerQualityStatsJourney(guildId)` — meshPeerQuality snapshot + view chain stub. Smoke: `npm run test:agentctl-guild-mesh-peer-quality-journey-stub`. **v0.8.926 (Phase 959):** Headless `runGuildMeshPeerQualityStatsJourney(guildId)` — meshPeerQuality snapshot + view chain stub. Smoke: `npm run test:agentctl-guild-mesh-peer-quality-journey-stub`.
+11
View File
@@ -1752,6 +1752,17 @@ class HeadlessSession {
return { replication } return { replication }
} }
/** Journey stub: guild mesh topic pool snapshot (Phase 961). */
async runGuildMeshTopicPoolSnapshotJourney (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 stats = this.platform.getMeshStabilityStats(gid)
const replication = this.platform.exportMeshReplicationDiagnostics(gid)
await this.refreshView()
return { stats, replication }
}
/** Journey stub: guild mesh peer quality snapshot (Phase 959). */ /** Journey stub: guild mesh peer quality snapshot (Phase 959). */
async runGuildMeshPeerQualityStatsJourney (guildId) { async runGuildMeshPeerQualityStatsJourney (guildId) {
if (!this.platform) throw new Error('headless not started') if (!this.platform) throw new Error('headless not started')