From 48ff26f6dd4cad36b56286b258df2d13742f15f2 Mon Sep 17 00:00:00 2001 From: Lex Date: Sat, 15 Aug 2026 03:20:13 +0800 Subject: [PATCH] fix(dag): stamp the bootstrap-recovery fixture and license the location authority MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two CI-only failures from the DAG-LOC-01 merge (PR #266), both outside the PR's gate set: - license-scope (linux unit job) flagged packages/opencode/src/dag/location.ts as an AGPL source without SPDX headers — the file was created without the repository's copyright banner. Add the standard two-line header. - bootstrap-dag-wiring 'recovers a persisted workflow' seeds its WorkflowTable row via raw SQL without the new directory column, so the fail-closed NULL stamp policy (a NULL stamp matches no instance) leaves the workflow unadopted and the scheduler never starts. Stamp the seed with the instance's directory (same sibling-test idiom as dag-wake-integration). Root cause for both: the PR's verify gate ran test/dag test/goal test/tool but not test/project or the core license manifest; the follow-up gate list should include them. Gates: core license-scope 5/5, opencode bootstrap-dag-wiring 1/1, test/dag test/goal 607/0, lint 4849/4852, typecheck clean. --- packages/opencode/src/dag/location.ts | 3 +++ packages/opencode/test/project/bootstrap-dag-wiring.test.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/opencode/src/dag/location.ts b/packages/opencode/src/dag/location.ts index 29b6c3f56b..3526e53014 100644 --- a/packages/opencode/src/dag/location.ts +++ b/packages/opencode/src/dag/location.ts @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2026 LeXwDeX +// SPDX-License-Identifier: AGPL-3.0-or-later + export * as DagLocation from "./location" /** diff --git a/packages/opencode/test/project/bootstrap-dag-wiring.test.ts b/packages/opencode/test/project/bootstrap-dag-wiring.test.ts index 6af2ba2403..ef4b612abe 100644 --- a/packages/opencode/test/project/bootstrap-dag-wiring.test.ts +++ b/packages/opencode/test/project/bootstrap-dag-wiring.test.ts @@ -52,6 +52,7 @@ describe("instance bootstrap DAG wiring", () => { id: workflowID, project_id: context.project.id as never, session_id: parent.id as never, + directory: context.directory, title: "condition false", status: "running", config: JSON.stringify({