feat(phase981): mesh stability UI rail hash journey stub

Add runMeshStabilityUiRailHashJourney loading UI hash module and
building view snapshot envelope. Non-breaking agentctl harness only.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-05 04:23:47 -04:00
co-authored by Cursor
parent abf0db37e8
commit 070dea9c87
+17
View File
@@ -1817,6 +1817,23 @@ class HeadlessSession {
return { multi, federation }
}
/** Journey stub: mesh stability UI rail hash keys + view snapshot (Phase 981). */
async runMeshStabilityUiRailHashJourney (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 path = require('bare-path')
const uiPath = path.join(__dirname, '..', '..', 'apps', 'pearcord', 'ui', 'mesh-stability-ui-rail-hash.js')
const {
listMeshStabilityUiHashKindKeys,
buildMeshStabilityUiHashSnapshot
} = await import(uiPath)
const view = await this.refreshView()
const kinds = listMeshStabilityUiHashKindKeys()
const snapshot = buildMeshStabilityUiHashSnapshot(view)
return { guildId: gid, kinds, snapshot, view }
}
/** Journey stub: guild mesh production track closure + rotation prep (Phase 980). */
async runGuildMeshProductionTrackClosureJourney (guildId) {
if (!this.platform) throw new Error('headless not started')