@ftrdotdev/pi-delegates 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/LICENSE +21 -0
- package/OPERATIONS.md +57 -0
- package/README.md +448 -2
- package/ROADMAP.md +158 -0
- package/TESTING.md +1061 -0
- package/agents.ts +8 -0
- package/examples/README.md +114 -0
- package/examples/gated.ts +28 -0
- package/index.ts +9 -0
- package/package.json +93 -4
- package/skills/pi-delegates/SKILL.md +147 -0
- package/skills/pi-delegates/references/control.md +159 -0
- package/skills/pi-delegates/references/definitions.md +163 -0
- package/skills/pi-delegates/references/gates.md +175 -0
- package/skills/pi-delegates/references/launch.md +156 -0
- package/src/domain/definitions.test.ts +41 -0
- package/src/domain/definitions.ts +161 -0
- package/src/domain/ids.ts +13 -0
- package/src/domain/names.ts +35 -0
- package/src/domain/orchestration/admission.ts +78 -0
- package/src/domain/orchestration/control.test.ts +1298 -0
- package/src/domain/orchestration/control.ts +436 -0
- package/src/domain/orchestration/fanout.test.ts +419 -0
- package/src/domain/orchestration/fanout.ts +334 -0
- package/src/domain/orchestration/gates.test.ts +686 -0
- package/src/domain/orchestration/gates.ts +360 -0
- package/src/domain/orchestration/launch.test.ts +173 -0
- package/src/domain/orchestration/launch.ts +581 -0
- package/src/domain/orchestration/requests.test.ts +700 -0
- package/src/domain/orchestration/requests.ts +769 -0
- package/src/domain/orchestration/review.test.ts +214 -0
- package/src/domain/orchestration/review.ts +168 -0
- package/src/domain/orchestration/run-wait.test.ts +262 -0
- package/src/domain/orchestration/run-wait.ts +256 -0
- package/src/domain/orchestration/workflow-section.test.ts +62 -0
- package/src/domain/orchestration/workflow-section.ts +99 -0
- package/src/domain/orchestration/workflow.test.ts +1425 -0
- package/src/domain/orchestration/workflow.ts +705 -0
- package/src/domain/run-records.test.ts +27 -0
- package/src/domain/run-records.ts +527 -0
- package/src/domain/shapes.test.ts +165 -0
- package/src/domain/skills.test.ts +466 -0
- package/src/domain/skills.ts +97 -0
- package/src/domain/tool-schema.test.ts +46 -0
- package/src/domain/tool-schema.ts +20 -0
- package/src/domain/toolkit.test.ts +201 -0
- package/src/domain/toolkit.ts +379 -0
- package/src/domain/view.test.ts +739 -0
- package/src/domain/view.ts +459 -0
- package/src/example.test.ts +15 -0
- package/src/extension/commands.test.ts +481 -0
- package/src/extension/commands.ts +227 -0
- package/src/extension/entry.test.ts +1118 -0
- package/src/extension/entry.ts +342 -0
- package/src/extension/gate-alerts.test.ts +235 -0
- package/src/extension/gate-alerts.ts +143 -0
- package/src/extension/guard.test.ts +48 -0
- package/src/extension/guard.ts +31 -0
- package/src/extension/host-signals.test.ts +20 -0
- package/src/extension/host-signals.ts +13 -0
- package/src/extension/inspector-command.test.ts +1191 -0
- package/src/extension/inspector-command.ts +638 -0
- package/src/extension/prompt.test.ts +110 -0
- package/src/extension/prompt.ts +50 -0
- package/src/extension/request-alerts.test.ts +183 -0
- package/src/extension/request-alerts.ts +181 -0
- package/src/extension/revocation.test.ts +81 -0
- package/src/extension/revocation.ts +84 -0
- package/src/extension/shortcut.test.ts +64 -0
- package/src/extension/shortcut.ts +105 -0
- package/src/extension/tools.test.ts +993 -0
- package/src/extension/tools.ts +505 -0
- package/src/extension/version.test.ts +123 -0
- package/src/extension/version.ts +97 -0
- package/src/harness-policy.test.ts +74 -0
- package/src/package-manifest.test.ts +157 -0
- package/src/presentation/actions.test.ts +221 -0
- package/src/presentation/actions.ts +85 -0
- package/src/presentation/activity.test.ts +387 -0
- package/src/presentation/activity.ts +66 -0
- package/src/presentation/close.test.ts +361 -0
- package/src/presentation/inspector.test.ts +679 -0
- package/src/presentation/inspector.ts +440 -0
- package/src/presentation/overlay.test.ts +555 -0
- package/src/presentation/overlay.ts +229 -0
- package/src/presentation/repaint.test.ts +329 -0
- package/src/presentation/shortcut.ts +2 -0
- package/src/presentation/snapshot.test.ts +530 -0
- package/src/presentation/snapshot.ts +306 -0
- package/src/presentation/strip.test.ts +196 -0
- package/src/presentation/strip.ts +74 -0
- package/src/presentation/wording.test.ts +238 -0
- package/src/presentation/wording.ts +222 -0
- package/src/runtime/bridge.test.ts +131 -0
- package/src/runtime/bridge.ts +134 -0
- package/src/runtime/config.test.ts +44 -0
- package/src/runtime/config.ts +87 -0
- package/src/runtime/context.test.ts +19 -0
- package/src/runtime/context.ts +9 -0
- package/src/runtime/execution-env.test.ts +35 -0
- package/src/runtime/execution-env.ts +15 -0
- package/src/runtime/extensions.test.ts +86 -0
- package/src/runtime/extensions.ts +140 -0
- package/src/runtime/log.test.ts +128 -0
- package/src/runtime/log.ts +68 -0
- package/src/runtime/mcp.test.ts +1453 -0
- package/src/runtime/mcp.ts +938 -0
- package/src/runtime/models.test.ts +145 -0
- package/src/runtime/models.ts +259 -0
- package/src/runtime/observe.test.ts +50 -0
- package/src/runtime/observe.ts +150 -0
- package/src/runtime/session.test.ts +359 -0
- package/src/runtime/session.ts +425 -0
- package/src/runtime/timers.test.ts +31 -0
- package/src/runtime/timers.ts +10 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { defineTask, type Task, type TaskOutcome } from "@earendil-works/pi-durable";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import type { AgentDefinition } from "../definitions.ts";
|
|
4
|
+
import { AgentDefinition as AgentDefinitionSchema } from "../definitions.ts";
|
|
5
|
+
import { available, liveCounts, type AdmissionHost } from "./admission.ts";
|
|
6
|
+
import {
|
|
7
|
+
RunDoc,
|
|
8
|
+
HostDefaultsSchema,
|
|
9
|
+
runResultOf,
|
|
10
|
+
type RunInput,
|
|
11
|
+
type RunResult,
|
|
12
|
+
type RunState,
|
|
13
|
+
} from "../run-records.ts";
|
|
14
|
+
import { taskId as toTaskId } from "../ids.ts";
|
|
15
|
+
import { ReviewDoc, reviewRecord, reviewRow } from "./review.ts";
|
|
16
|
+
|
|
17
|
+
export type FanoutPolicy = "failFast" | "allSettled";
|
|
18
|
+
|
|
19
|
+
export const FanoutRequest = Schema.Struct({
|
|
20
|
+
kind: Schema.Literal("fanout"),
|
|
21
|
+
lane: Schema.String,
|
|
22
|
+
agents: Schema.Array(Schema.Struct({ agent: Schema.String, task: Schema.String })),
|
|
23
|
+
/** Absent: `allSettled`. */
|
|
24
|
+
policy: Schema.optional(Schema.Literals(["failFast", "allSettled"])),
|
|
25
|
+
});
|
|
26
|
+
export type FanoutRequest = typeof FanoutRequest.Type;
|
|
27
|
+
|
|
28
|
+
export interface FanoutChild {
|
|
29
|
+
readonly agent: string;
|
|
30
|
+
readonly task: string;
|
|
31
|
+
readonly definition: AgentDefinition;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const FanoutInputSchema = Schema.Struct({
|
|
35
|
+
runId: Schema.String,
|
|
36
|
+
lane: Schema.String,
|
|
37
|
+
children: Schema.Array(
|
|
38
|
+
Schema.Struct({
|
|
39
|
+
agent: Schema.String,
|
|
40
|
+
task: Schema.String,
|
|
41
|
+
definition: AgentDefinitionSchema,
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
host: HostDefaultsSchema,
|
|
45
|
+
maxTurns: Schema.Finite,
|
|
46
|
+
policy: Schema.Literals(["failFast", "allSettled"]),
|
|
47
|
+
/** A review parses each child's answer into one disposition row. */
|
|
48
|
+
review: Schema.Boolean,
|
|
49
|
+
/**
|
|
50
|
+
* The workflow run that nests this group: each child records it as `parentRunId`,
|
|
51
|
+
* parks its approval gates under it, and is appended to its `childRunIds`.
|
|
52
|
+
* Absent for a session-level group.
|
|
53
|
+
*/
|
|
54
|
+
parentRunId: Schema.optional(Schema.String),
|
|
55
|
+
/** The workflow definition name; seeds the parent document only if it is missing. */
|
|
56
|
+
parentDefinition: Schema.optional(Schema.String),
|
|
57
|
+
/** A resumed fanout uses fresh child submission keys while keeping the conversations. */
|
|
58
|
+
submissionKeyPrefix: Schema.optional(Schema.String),
|
|
59
|
+
/** A resumed fanout keeps these children's committed answers instead of replaying them. */
|
|
60
|
+
answeredChildren: Schema.Array(
|
|
61
|
+
Schema.Struct({ child: Schema.Finite, taskId: Schema.Finite }),
|
|
62
|
+
).pipe(Schema.optional),
|
|
63
|
+
});
|
|
64
|
+
export type FanoutInput = typeof FanoutInputSchema.Type;
|
|
65
|
+
export type FanoutState =
|
|
66
|
+
| {
|
|
67
|
+
readonly phase: "admit";
|
|
68
|
+
readonly input: FanoutInput;
|
|
69
|
+
/** The next child index to create a task for. */
|
|
70
|
+
readonly admitted: number;
|
|
71
|
+
/** One entry per child index; null until its task exists. */
|
|
72
|
+
readonly childTaskIds: readonly (number | null)[];
|
|
73
|
+
/** One entry per child index; empty until its task exists. */
|
|
74
|
+
readonly childRunIds: readonly string[];
|
|
75
|
+
}
|
|
76
|
+
| {
|
|
77
|
+
readonly phase: "settle";
|
|
78
|
+
readonly input: FanoutInput;
|
|
79
|
+
/** The next child index to create a task for. */
|
|
80
|
+
readonly admitted: number;
|
|
81
|
+
/** One entry per child index; null until its task exists. */
|
|
82
|
+
readonly childTaskIds: readonly (number | null)[];
|
|
83
|
+
/** One entry per child index; empty until its task exists. */
|
|
84
|
+
readonly childRunIds: readonly string[];
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type FanoutHooks = Record<never, never>;
|
|
88
|
+
|
|
89
|
+
const resultOf = (outcome: TaskOutcome<unknown>): RunResult | undefined => {
|
|
90
|
+
if (outcome.status === "completed" || outcome.status === "aborted") {
|
|
91
|
+
return runResultOf(outcome.result);
|
|
92
|
+
}
|
|
93
|
+
if (outcome.status === "failed") {
|
|
94
|
+
return (
|
|
95
|
+
runResultOf(outcome.result) ?? {
|
|
96
|
+
status: "failed",
|
|
97
|
+
diagnostic: outcome.error.message,
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
return undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const aggregate = (input: FanoutInput, outcomes: readonly TaskOutcome<unknown>[]): RunResult => {
|
|
105
|
+
const results = outcomes.map(resultOf);
|
|
106
|
+
const answered = results.filter((result) => result?.status === "answered").length;
|
|
107
|
+
const failedAt = results.findIndex(
|
|
108
|
+
(result) => result === undefined || result.status === "failed",
|
|
109
|
+
);
|
|
110
|
+
if (failedAt >= 0) {
|
|
111
|
+
const result = results[failedAt];
|
|
112
|
+
return {
|
|
113
|
+
status: "failed",
|
|
114
|
+
diagnostic:
|
|
115
|
+
`child ${failedAt} (${input.children[failedAt]?.agent ?? "unknown"}) failed` +
|
|
116
|
+
(result?.status === "failed" ? `: ${result.diagnostic}` : "."),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
if (results.some((result) => result?.status === "denied")) return { status: "denied" };
|
|
120
|
+
if (results.some((result) => result?.status === "stopped")) return { status: "stopped" };
|
|
121
|
+
return { status: "answered", answer: `${answered} children answered` };
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export const createFanoutTask = (
|
|
125
|
+
host: AdmissionHost,
|
|
126
|
+
runTask: Task<RunInput, RunState, RunResult, FanoutHooks>,
|
|
127
|
+
) =>
|
|
128
|
+
defineTask<FanoutInput, FanoutState, RunResult, FanoutHooks>({
|
|
129
|
+
name: "delegates.fanout",
|
|
130
|
+
version: 1,
|
|
131
|
+
initial: (input) => {
|
|
132
|
+
const childTaskIds: (number | null)[] = input.children.map(() => null);
|
|
133
|
+
const childRunIds: string[] = input.children.map(() => "");
|
|
134
|
+
for (const entry of input.answeredChildren ?? []) {
|
|
135
|
+
childTaskIds[entry.child] = entry.taskId;
|
|
136
|
+
childRunIds[entry.child] = `${input.runId}:child:${entry.child}`;
|
|
137
|
+
}
|
|
138
|
+
return { phase: "admit", input, admitted: 0, childTaskIds, childRunIds };
|
|
139
|
+
},
|
|
140
|
+
phases: {
|
|
141
|
+
admit: async (task, runtime, context) => {
|
|
142
|
+
const state = task.state.checkpoint;
|
|
143
|
+
const input = task.input;
|
|
144
|
+
|
|
145
|
+
if (input.policy === "failFast" && state.childTaskIds.some((id) => id !== null)) {
|
|
146
|
+
let failedAt: number | undefined;
|
|
147
|
+
for (const [index, childId] of state.childTaskIds.entries()) {
|
|
148
|
+
if (childId === null) continue;
|
|
149
|
+
const child = await runtime.getTask(toTaskId(childId), context);
|
|
150
|
+
if (child?.state.status !== "terminal") continue;
|
|
151
|
+
const result = resultOf(child.state.outcome);
|
|
152
|
+
if (result !== undefined && result.status !== "answered") {
|
|
153
|
+
failedAt = index;
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (failedAt !== undefined) {
|
|
158
|
+
await Promise.all(
|
|
159
|
+
state.childTaskIds.map((childId, index) =>
|
|
160
|
+
index === failedAt || childId === null
|
|
161
|
+
? Promise.resolve()
|
|
162
|
+
: runtime.abortOwned(toTaskId(childId), context),
|
|
163
|
+
),
|
|
164
|
+
);
|
|
165
|
+
const childTaskIds = state.childTaskIds.filter((id): id is number => id !== null);
|
|
166
|
+
const settled = await runtime.outcomes(childTaskIds.map(toTaskId), context);
|
|
167
|
+
const result = aggregate(input, settled);
|
|
168
|
+
await runtime.commit(
|
|
169
|
+
() => ({
|
|
170
|
+
status: "terminal",
|
|
171
|
+
outcome: { status: "completed", result },
|
|
172
|
+
}),
|
|
173
|
+
context,
|
|
174
|
+
);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const inspection = await host.inspect();
|
|
180
|
+
const ownedTasks = await runtime.ownedTasks(context);
|
|
181
|
+
const counts = liveCounts(inspection, input.lane, { ownedTasks });
|
|
182
|
+
const caps = host.caps();
|
|
183
|
+
const room = available(
|
|
184
|
+
caps.laneCap,
|
|
185
|
+
counts.laneLive,
|
|
186
|
+
caps.sessionCeiling,
|
|
187
|
+
counts.sessionLive,
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
const toCreate: number[] = [];
|
|
191
|
+
let next = state.admitted;
|
|
192
|
+
for (; next < input.children.length && toCreate.length < room; next += 1) {
|
|
193
|
+
if (state.childTaskIds[next] !== null) continue;
|
|
194
|
+
toCreate.push(next);
|
|
195
|
+
}
|
|
196
|
+
while (next < input.children.length && state.childTaskIds[next] !== null) next += 1;
|
|
197
|
+
|
|
198
|
+
if (toCreate.length === 0) {
|
|
199
|
+
if (next >= input.children.length) {
|
|
200
|
+
await runtime.commit(
|
|
201
|
+
() => ({
|
|
202
|
+
status: "running",
|
|
203
|
+
checkpoint: { ...state, admitted: next, phase: "settle" },
|
|
204
|
+
}),
|
|
205
|
+
context,
|
|
206
|
+
);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const wait = {
|
|
210
|
+
status: "sleeping" as const,
|
|
211
|
+
until: runtime.now() + host.pollMs,
|
|
212
|
+
checkpoint: { ...state, admitted: next },
|
|
213
|
+
};
|
|
214
|
+
await runtime.commit(() => wait, context);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
await runtime.commit(async (tx) => {
|
|
219
|
+
const childTaskIds = [...state.childTaskIds];
|
|
220
|
+
const childRunIds = [...state.childRunIds];
|
|
221
|
+
const parentDoc =
|
|
222
|
+
input.parentRunId === undefined
|
|
223
|
+
? undefined
|
|
224
|
+
: await tx.doc(RunDoc, input.parentRunId, {
|
|
225
|
+
definition: input.parentDefinition ?? "workflow",
|
|
226
|
+
lane: input.lane,
|
|
227
|
+
});
|
|
228
|
+
for (const index of toCreate) {
|
|
229
|
+
const child = input.children[index];
|
|
230
|
+
if (child === undefined) continue;
|
|
231
|
+
const runId = `${input.runId}:child:${index}`;
|
|
232
|
+
const childInput: RunInput = {
|
|
233
|
+
runId,
|
|
234
|
+
gateRunId: input.parentRunId ?? input.runId,
|
|
235
|
+
requestId: runId,
|
|
236
|
+
attempt: 1,
|
|
237
|
+
definition: child.definition,
|
|
238
|
+
task: child.task,
|
|
239
|
+
host: input.host,
|
|
240
|
+
lane: input.lane,
|
|
241
|
+
maxTurns: input.maxTurns,
|
|
242
|
+
submissionKey: `${input.submissionKeyPrefix ?? input.runId}:child:${index}:task`,
|
|
243
|
+
};
|
|
244
|
+
const taskId = await tx.createTask(runTask, childInput, {
|
|
245
|
+
ownership: { kind: "task", taskId: runtime.taskId },
|
|
246
|
+
conversationId: runtime.conversationId,
|
|
247
|
+
});
|
|
248
|
+
const doc = await tx.doc(RunDoc, runId, {
|
|
249
|
+
definition: child.definition.name,
|
|
250
|
+
lane: input.lane,
|
|
251
|
+
...(input.parentRunId === undefined ? {} : { parentRunId: input.parentRunId }),
|
|
252
|
+
});
|
|
253
|
+
doc.requestedAgent = child.agent;
|
|
254
|
+
doc.task = child.task;
|
|
255
|
+
doc.requestId = runId;
|
|
256
|
+
doc.attempt = 1;
|
|
257
|
+
doc.taskId = taskId;
|
|
258
|
+
doc.gateRunId = input.parentRunId ?? input.runId;
|
|
259
|
+
if (parentDoc !== undefined && !parentDoc.childRunIds.includes(runId)) {
|
|
260
|
+
parentDoc.childRunIds.push(runId);
|
|
261
|
+
}
|
|
262
|
+
childTaskIds[index] = taskId;
|
|
263
|
+
childRunIds[index] = runId;
|
|
264
|
+
}
|
|
265
|
+
const doc = await tx.doc(RunDoc, input.runId, {
|
|
266
|
+
definition: input.children[0]?.definition.name ?? "fanout",
|
|
267
|
+
lane: input.lane,
|
|
268
|
+
});
|
|
269
|
+
doc.gateRunId = input.parentRunId ?? input.runId;
|
|
270
|
+
doc.childRunIds = childRunIds.filter((runId) => runId.length > 0);
|
|
271
|
+
return {
|
|
272
|
+
status: "waiting",
|
|
273
|
+
on: toCreate.flatMap((index) => {
|
|
274
|
+
const created = childTaskIds[index];
|
|
275
|
+
return created === null || created === undefined ? [] : [toTaskId(created)];
|
|
276
|
+
}),
|
|
277
|
+
policy: input.policy,
|
|
278
|
+
checkpoint: {
|
|
279
|
+
...state,
|
|
280
|
+
admitted: next,
|
|
281
|
+
childTaskIds,
|
|
282
|
+
childRunIds,
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
}, context);
|
|
286
|
+
},
|
|
287
|
+
settle: async (task, runtime, context) => {
|
|
288
|
+
const state = task.state.checkpoint;
|
|
289
|
+
const childTaskIds = state.childTaskIds.filter((id): id is number => id !== null);
|
|
290
|
+
const outcomes = await runtime.outcomes(childTaskIds.map(toTaskId), context);
|
|
291
|
+
if (task.input.review) {
|
|
292
|
+
const rows = outcomes.map((outcome, child) => {
|
|
293
|
+
const result = resultOf(outcome);
|
|
294
|
+
return reviewRow({
|
|
295
|
+
child,
|
|
296
|
+
runId: state.childRunIds[child] ?? `child-${child}`,
|
|
297
|
+
answer: result?.status === "answered" ? result.answer : null,
|
|
298
|
+
...(result?.status === "failed" ? { failure: result.diagnostic } : {}),
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
const record = reviewRecord(task.input.runId, rows);
|
|
302
|
+
await runtime.commit(async (tx) => {
|
|
303
|
+
const doc = await tx.doc(ReviewDoc, task.input.runId, { runId: task.input.runId });
|
|
304
|
+
doc.reviewers = [...record.reviewers];
|
|
305
|
+
doc.aggregate = record.aggregate;
|
|
306
|
+
return {
|
|
307
|
+
status: "terminal" as const,
|
|
308
|
+
outcome: {
|
|
309
|
+
status: "completed" as const,
|
|
310
|
+
result: { status: "answered", answer: record.aggregate },
|
|
311
|
+
},
|
|
312
|
+
};
|
|
313
|
+
}, context);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const result = aggregate(task.input, outcomes);
|
|
317
|
+
await runtime.commit(
|
|
318
|
+
() => ({ status: "terminal", outcome: { status: "completed", result } }),
|
|
319
|
+
context,
|
|
320
|
+
);
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
abort: async (_task, runtime, context) =>
|
|
324
|
+
runtime.commit(
|
|
325
|
+
() => ({
|
|
326
|
+
status: "terminal",
|
|
327
|
+
outcome: { status: "aborted", reason: "stopped", result: { status: "stopped" } },
|
|
328
|
+
}),
|
|
329
|
+
context,
|
|
330
|
+
),
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
/** A fanout document's seed; used where only a definition name is known. */
|
|
334
|
+
export const fanoutDocSeed = (definition: string, lane: string) => ({ definition, lane });
|