fix: connect authoring to workflow lifecycle

This commit is contained in:
lda
2026-07-13 02:25:13 +07:00 Verified
parent 6e91534968
commit 0027d496fb
2 changed files with 5 additions and 5 deletions
@@ -355,7 +355,7 @@ describe("SceneBody", () => {
expect(loop).not.toHaveAttribute("data-readable-surface", "dark"); expect(loop).not.toHaveAttribute("data-readable-surface", "dark");
expect(screen.getByText("Discover capability")).toBeInTheDocument(); expect(screen.getByText("Discover capability")).toBeInTheDocument();
expect(screen.getByText("Author draft")).toBeInTheDocument(); expect(screen.getByText("Author draft")).toBeInTheDocument();
expect(screen.getByText(/turns an agent proposal into a valid workflow/i)).toBeInTheDocument(); expect(screen.getByText(/operates on the mutable Draft.*external agent proposal.*Artifact, Deployment, and Run/i)).toBeInTheDocument();
expect(screen.getByText("Validate and diagnose").closest("[data-authoring-active]")).toHaveAttribute("data-authoring-active", "true"); expect(screen.getByText("Validate and diagnose").closest("[data-authoring-active]")).toHaveAttribute("data-authoring-active", "true");
expect(screen.getByText("Validate and diagnose").closest(".scene-body__authoring-node")) expect(screen.getByText("Validate and diagnose").closest(".scene-body__authoring-node"))
.not.toHaveAttribute("data-readable-surface", "dark"); .not.toHaveAttribute("data-readable-surface", "dark");
@@ -145,10 +145,10 @@ export const mainScenes = defineScenes([
evidencePointer: "CLI documentation; draft authoring API; challenge UX findings", evidencePointer: "CLI documentation; draft authoring API; challenge UX findings",
view: "authoring", view: "authoring",
beats: [ beats: [
sceneBeat("discover", "Discover", "This authoring loop turns an agent proposal into a valid workflow: discover, author, diagnose, repair. An external agent can use each step."), sceneBeat("discover", "Discover", "This authoring loop operates on the mutable Draft: an external agent proposal becomes a valid workflow through discover, author, diagnose, and repair. Artifact, Deployment, and Run follow after validation."),
sceneBeat("author", "Author", "This authoring loop turns an agent proposal into a valid workflow: discover, author, diagnose, repair. An external agent can use each step."), sceneBeat("author", "Author", "This authoring loop operates on the mutable Draft: an external agent proposal becomes a valid workflow through discover, author, diagnose, and repair. Artifact, Deployment, and Run follow after validation."),
sceneBeat("diagnose", "Diagnose", "This authoring loop turns an agent proposal into a valid workflow: discover, author, diagnose, repair. An external agent can use each step.", { evidencePresentation: "receipt" }), sceneBeat("diagnose", "Diagnose", "This authoring loop operates on the mutable Draft: an external agent proposal becomes a valid workflow through discover, author, diagnose, and repair. Artifact, Deployment, and Run follow after validation.", { evidencePresentation: "receipt" }),
sceneBeat("repair", "Repair", "This authoring loop turns an agent proposal into a valid workflow: discover, author, diagnose, repair. An external agent can use each step."), sceneBeat("repair", "Repair", "This authoring loop operates on the mutable Draft: an external agent proposal becomes a valid workflow through discover, author, diagnose, and repair. Artifact, Deployment, and Run follow after validation."),
], ],
}, },
{ {