feat(agentctl): add guild mesh bandwidth stats journey stub (Phase 958)

Headless runGuildMeshBandwidthStatsJourney validates bandwidth window stats
and exportGuildSyncDiagnostics cap keys without behavior changes.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-05 02:22:34 -04:00
co-authored by Cursor
parent 7785869971
commit ecca1ca8c9
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.925 (Phase 958):** Headless `runGuildMeshBandwidthStatsJourney(guildId)` — bandwidth window stats + guild sync diagnostics slice stub. Smoke: `npm run test:agentctl-guild-mesh-bandwidth-journey-stub`.
**v0.8.924 (Phase 957):** Headless `runGuildMeshGossipOutboxStatsJourney(guildId)` — replication diagnostics gossip slice stub. Smoke: `npm run test:agentctl-guild-mesh-gossip-outbox-journey-stub`.
**v0.8.923 (Phase 956):** Headless `runGuildMeshStabilityStatsJourney(guildId)``getMeshStabilityStats` journey stub. Smoke: `npm run test:agentctl-guild-mesh-stability-journey-stub`.
+11
View File
@@ -1742,6 +1742,17 @@ class HeadlessSession {
return { health, diagnostics }
}
/** Journey stub: guild mesh bandwidth window stats (Phase 958). */
async runGuildMeshBandwidthStatsJourney (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 diagnostics = this.platform.exportGuildSyncDiagnostics(gid)
await this.refreshView()
return { stats, diagnostics }
}
/** Journey stub: guild mesh gossip outbox stats (Phase 957). */
async runGuildMeshGossipOutboxStatsJourney (guildId) {
if (!this.platform) throw new Error('headless not started')