Land Imagination planning lane
This commit is contained in:
parent
218f885e0b
commit
5f2ecf6d80
21 changed files with 812 additions and 69 deletions
|
|
@ -86,6 +86,14 @@
|
|||
"status": "blocked",
|
||||
"title": "Implementation"
|
||||
},
|
||||
{
|
||||
"id": "imagination",
|
||||
"note": "Planning material ready: 2 captures, 1 backlog items, 1 roadmap streams, 1 objective drafts.",
|
||||
"ownerRole": "epiphany-imagination",
|
||||
"recommendedAction": "roleLaunch",
|
||||
"status": "ready",
|
||||
"title": "Imagination / Planning"
|
||||
},
|
||||
{
|
||||
"id": "modeling",
|
||||
"note": "Checkpoint missing: Re-gather source context before editing.",
|
||||
|
|
@ -237,6 +245,12 @@
|
|||
}
|
||||
},
|
||||
"roleResults": {
|
||||
"imagination": {
|
||||
"bindingId": "planning-synthesis-worker",
|
||||
"note": "No authoritative Epiphany state exists for this thread.",
|
||||
"roleId": "imagination",
|
||||
"status": "missingState"
|
||||
},
|
||||
"modeling": {
|
||||
"bindingId": "modeling-checkpoint-worker",
|
||||
"note": "No authoritative Epiphany state exists for this thread.",
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@ async function smokeViewport(browser, viewport, screenshotPath) {
|
|||
await page.getByText("Artifact Bundles").waitFor();
|
||||
await page.getByRole("button", { name: "Prepare Checkpoint" }).waitFor();
|
||||
await page.getByRole("button", { name: "Adopt Draft" }).waitFor();
|
||||
await page.getByRole("button", { name: "Launch Imagination" }).waitFor();
|
||||
await page.getByRole("button", { name: "Read Imagination" }).waitFor();
|
||||
await page.getByRole("button", { name: "Launch Modeling" }).waitFor();
|
||||
await page.getByRole("button", { name: "Read Modeling" }).waitFor();
|
||||
await page.getByRole("button", { name: "Launch Verification" }).waitFor();
|
||||
|
|
@ -73,6 +75,8 @@ async function smokeViewport(browser, viewport, screenshotPath) {
|
|||
await page.getByText("coordinatorPlan sample completed.").waitFor();
|
||||
await page.getByRole("button", { name: "Prepare Checkpoint" }).click();
|
||||
await page.getByText("prepareCheckpoint sample completed.").waitFor();
|
||||
await page.getByRole("button", { name: "Read Imagination" }).click();
|
||||
await page.getByText("readImaginationResult sample completed.").waitFor();
|
||||
await page.getByRole("button", { name: "Read Modeling" }).click();
|
||||
await page.getByText("readModelingResult sample completed.").waitFor();
|
||||
await page.getByRole("button", { name: "Read Reorient" }).click();
|
||||
|
|
|
|||
|
|
@ -111,7 +111,10 @@ fn run_operator_action(
|
|||
"statusSnapshot" => run_status_snapshot(&repo_root, request),
|
||||
"coordinatorPlan" => run_coordinator_plan(&repo_root, request),
|
||||
"inspectUnity" => run_unity_inspection(&repo_root, request),
|
||||
"launchModeling"
|
||||
"launchImagination"
|
||||
| "readImaginationResult"
|
||||
| "acceptImagination"
|
||||
| "launchModeling"
|
||||
| "readModelingResult"
|
||||
| "acceptModeling"
|
||||
| "launchVerification"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { useEffect, useMemo, useState } from "react";
|
|||
import { loadOperatorSnapshot, runOperatorAction } from "./operatorApi";
|
||||
import type { ArtifactBundle, OperatorAction, OperatorActionResult, OperatorSnapshot, StatusRequest } from "./types";
|
||||
|
||||
const roleOrder = ["implementation", "modeling", "verification", "reorientation"];
|
||||
const roleOrder = ["implementation", "imagination", "modeling", "verification", "reorientation"];
|
||||
const actionButtons: Array<{
|
||||
action: OperatorAction;
|
||||
label: string;
|
||||
|
|
@ -23,6 +23,7 @@ const actionButtons: Array<{
|
|||
title: string;
|
||||
requiresThread?: boolean;
|
||||
requiresReadyState?: boolean;
|
||||
requiresImaginationPatch?: boolean;
|
||||
requiresModelingPatch?: boolean;
|
||||
requiresVerificationResult?: boolean;
|
||||
requiresReorientResult?: boolean;
|
||||
|
|
@ -78,6 +79,33 @@ const actionButtons: Array<{
|
|||
requiresContinueImplementation: true,
|
||||
icon: "play",
|
||||
},
|
||||
{
|
||||
action: "launchImagination",
|
||||
label: "Launch Imagination",
|
||||
runningLabel: "Launching",
|
||||
title: "Launch the fixed imagination/planning worker for this thread",
|
||||
requiresThread: true,
|
||||
requiresReadyState: true,
|
||||
icon: "play",
|
||||
},
|
||||
{
|
||||
action: "readImaginationResult",
|
||||
label: "Read Imagination",
|
||||
runningLabel: "Reading",
|
||||
title: "Read the latest imagination/planning finding",
|
||||
requiresThread: true,
|
||||
icon: "eye",
|
||||
},
|
||||
{
|
||||
action: "acceptImagination",
|
||||
label: "Accept Imagination",
|
||||
runningLabel: "Accepting",
|
||||
title: "Accept a reviewed planning-only patch into Epiphany state",
|
||||
requiresThread: true,
|
||||
requiresReadyState: true,
|
||||
requiresImaginationPatch: true,
|
||||
icon: "accept",
|
||||
},
|
||||
{
|
||||
action: "launchModeling",
|
||||
label: "Launch Modeling",
|
||||
|
|
@ -290,6 +318,10 @@ export function App() {
|
|||
Boolean(latestArtifact?.implementationAudit) && latestArtifact?.implementationAudit?.workspaceChanged === false;
|
||||
const readyState = scene.stateStatus === "ready";
|
||||
const currentThreadId = request.threadId;
|
||||
const imaginationFinding = roleResults?.imagination?.finding;
|
||||
const canAcceptImagination =
|
||||
text(roleResults?.imagination?.status).toLowerCase() === "completed" &&
|
||||
Boolean(imaginationFinding?.statePatch?.planning);
|
||||
const modelingFinding = roleResults?.modeling?.finding;
|
||||
const canAcceptModeling =
|
||||
text(roleResults?.modeling?.status).toLowerCase() === "completed" && Boolean(modelingFinding?.statePatch);
|
||||
|
|
@ -356,6 +388,7 @@ export function App() {
|
|||
{actionButtons.map((button) => {
|
||||
const needsThread = button.requiresThread && !currentThreadId;
|
||||
const needsState = button.requiresReadyState && !readyState;
|
||||
const needsImagination = button.requiresImaginationPatch && !canAcceptImagination;
|
||||
const needsModeling = button.requiresModelingPatch && !canAcceptModeling;
|
||||
const needsVerification = button.requiresVerificationResult && !canAcceptVerification;
|
||||
const needsReorient = button.requiresReorientResult && !canAcceptReorient;
|
||||
|
|
@ -366,6 +399,7 @@ export function App() {
|
|||
runningAction !== null ||
|
||||
needsThread ||
|
||||
needsState ||
|
||||
needsImagination ||
|
||||
needsModeling ||
|
||||
needsVerification ||
|
||||
needsReorient ||
|
||||
|
|
@ -373,9 +407,11 @@ export function App() {
|
|||
needsImplementation ||
|
||||
needsNoDiffReview;
|
||||
const title = needsThread
|
||||
? "Prepare a checkpoint or enter a persisted thread id first"
|
||||
? "Prepare a checkpoint or enter a persisted thread id first"
|
||||
: needsState
|
||||
? "Prepare Epiphany state before launching this lane"
|
||||
: needsImagination
|
||||
? "Read a completed imagination result with a planning patch before accepting it"
|
||||
: needsModeling
|
||||
? "Read a completed modeling result with a state patch before accepting it"
|
||||
: needsVerification
|
||||
|
|
@ -657,6 +693,7 @@ export function App() {
|
|||
<div>
|
||||
<SectionHeader title="Findings" icon={<FileText size={18} />} />
|
||||
<div className="stack">
|
||||
<Finding title="Imagination / Planning" result={roleResults.imagination} />
|
||||
<Finding title="Modeling / Checkpoint" result={roleResults.modeling} />
|
||||
<Finding title="Verification / Review" result={roleResults.verification} />
|
||||
<Finding title="Reorientation" result={reorientResult} findingKey="finding" />
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ export type OperatorAction =
|
|||
| "inspectUnity"
|
||||
| "prepareCheckpoint"
|
||||
| "continueImplementation"
|
||||
| "launchImagination"
|
||||
| "readImaginationResult"
|
||||
| "acceptImagination"
|
||||
| "launchModeling"
|
||||
| "readModelingResult"
|
||||
| "acceptModeling"
|
||||
|
|
|
|||
Reference in a new issue