From 66d5c7eea4b090011f4fc0ccde82b3b294c47ba3 Mon Sep 17 00:00:00 2001 From: Surma Date: Sat, 7 Nov 2026 14:42:09 +0000 Subject: [PATCH] Use canonical host chains for automation scripts --- extensions/automations/chain.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 extensions/automations/chain.ts diff --git a/extensions/automations/chain.ts b/extensions/automations/chain.ts deleted file mode 100644 index 1bf76a7..0000000 --- a/extensions/automations/chain.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** Script credentials follow the creator's ownership, fork, and branch ancestry, in T44 order. */ -import { defineDoc } from '@earendil-works/pi-durable' -import { BACKGROUND_CONTEXT as context } from '@earendil-works/chord/context' -const Started = defineDoc<{by?:number}>({kind:'board.started',version:1,scope:'conversation',history:'latest',fork:'initial',checkpointWhen:()=>false,initial:()=>({})}) -export async function executionChain(host: any, creator?: number): Promise { - if (creator === undefined) return [] - const record = await host.harness().commit((tx: any) => tx.conversation(creator), context) - const up = record?.owner?.conversationId ?? record?.parent?.conversationId ?? - (await host.harness().snapshot(Started, creator, context))?.by - return [String(creator), ...await executionChain(host, up)] -}