Make the workflow supervisor host seam real
Move Execution, InternalTask, and the status predicates into job-state.ts; the supervisor now creates, schedules, and settles shared rows only through its host. Concentrate cancellation and shutdown settlement in one supervisor policy, make restored rows honest (no fabricated AgentConfig), and thread load-time cap limits through WorkflowRunSpec so release enforcement and the review card share one value. Agent discovery is memoized per cwd within a prepare call.
This commit is contained in:
1 parent
23c9f84650
commit
621f6e2579
21 files changed
+610
-409
No files matched your search
@@ -4,7 +4,7 @@ import * as os from "node:os";
|
||||
import * as path from "node:path";
|
||||
import test, { after } from "node:test";
|
||||
import fc from "fast-check";
|
||||
import { buildWorkflowJournal, workflowItemInputHash, workflowStepInputHash, type WorkflowJournal, type WorkflowJournalItem, type WorkflowJournalStep } from "../src/journal.ts";
|
||||
import { buildWorkflowJournal, workflowItemInputHash, workflowStepInputHash } from "../src/journal.ts";
|
||||
import { SubagentManager } from "../src/manager.ts";
|
||||
import { MAX_TASK_OUTPUT_BYTES, truncateUtf8Head } from "../src/output.ts";
|
||||
import {
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
} from "../src/persistence.ts";
|
||||
import { prepareWorkflowInvocation, type PrepareContext } from "../src/prepare.ts";
|
||||
import { parseWorkflow, type WorkflowPlan } from "../src/workflow-plan.ts";
|
||||
import { emptyUsage, type JobSnapshot, type TaskSnapshot, type TaskStatus } from "../src/types.ts";
|
||||
import { emptyUsage, type JobSnapshot, type TaskSnapshot, type TaskStatus, type WorkflowJournal, type WorkflowJournalItem, type WorkflowJournalStep } from "../src/types.ts";
|
||||
import { FakeRunner } from "./helpers.ts";
|
||||
|
||||
const tempRoots: string[] = [];
|
||||
|
||||
Reference in new issue
Block a user