From 13c50bf9b4361299f1c189ed8c4901a5f87df097 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Wed, 3 Jun 2026 09:15:16 -0400 Subject: [PATCH] feat(phase725): add runBotRegistryExportJsonJourney for agentctl Headless journey verifies signed bot registry export JSON mesh push and view meta for Phase 725 regression alongside webhook execute journey. Co-authored-by: Cursor --- headless.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/headless.js b/headless.js index 38f0d6c..629886c 100644 --- a/headless.js +++ b/headless.js @@ -3608,6 +3608,23 @@ class HeadlessSession { } } + async runBotRegistryExportJsonJourney () { + if (!this.platform) throw new Error('headless not started') + await this.registerUser({ username: 'br725', displayName: 'Bot Reg 725' }) + await this.createGuild({ name: 'Bot Reg 725', publicListing: false }) + await this.wait({ mode: 'guild' }, 45000) + await this.createGuildBotInstallToken({ name: 'Phase725 Bot' }) + const pushed = await this.platform.pushBotRegistryJsonToMesh() + const v = await this.refreshView() + if (!pushed?.signature && !v.botRegistryJsonMeta?.signature) { + throw new Error('expected signed bot registry export JSON after mesh push') + } + return { + guildBotRegistryJsonCount: v.guildBotRegistryJsonCount || (v.botRegistryJsonRows || []).length, + hasMeta: v.botRegistryJsonMeta != null + } + } + async runWorkerReleaseExportJsonJourney () { if (!this.platform) throw new Error('headless not started') await this.registerUser({ username: 'wr724', displayName: 'Worker Rel 724' })