Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
abf3afe
feat(workflows): Kiro Workflows dashboard routes and chat-turn wiring
Oct 28, 2026
1056124
fix(workflows): meet main's test gates after the restack
Nov 11, 2026
c3f9a4e
test(workflows): fit the dashboard route tests to the rebased engine
romdr Nov 20, 2026
aa9584e
fix(workflows): fit the dashboard routes to the ledger-free router
romdr Nov 22, 2026
6cd9e72
fix(workflows): keep a step's yolo auto-approval within yolo_reaches
romdr Nov 20, 2026
8ed77c0
fix(workflows): redact run names in a refused rewind
romdr Nov 20, 2026
5605969
feat(workflows): push the router's revision over the dashboard socket
romdr Nov 20, 2026
ec62ce2
feat(workflows): re-decide held step approvals on a chat's mode change
romdr Nov 20, 2026
1e4a043
feat(workflows): reconnect runs when their Kiro Agent process exits
romdr Nov 20, 2026
9429b95
fix(workflows): bind the reattach gate on the chat runner
romdr Nov 20, 2026
3c442ea
fix(workflows): keep a chat's process while its run works or waits
romdr Nov 20, 2026
f301068
fix(workflows): reconnect a run only after its process crashed
romdr Nov 21, 2026
6d4d147
fix(workflows): load a chat's window off the loop before reconnecting
romdr Nov 23, 2026
f6bd91d
docs(workflows): say the chat runs route asks Kiro Agent
romdr Nov 23, 2026
dc21500
fix(workflows): check a cold chat is busy after its window is read
romdr Nov 24, 2026
2dcaa2a
feat(workflows): add the route that changes a step's model
romdr Nov 25, 2026
1e6b347
chore: merge the workflow engine into the dashboard routes
romdr Dec 2, 2026
4a613f8
fix(workflows): meet main's CI gates on the dashboard routes
romdr Dec 2, 2026
6981c21
chore: merge the workflow engine's send_message tool into the routes
romdr Dec 2, 2026
a75883e
test(workflows): expect send_message among the chat's workflow tools
romdr Dec 2, 2026
4fe8134
chore: merge the workflow engine into the dashboard routes
romdr Dec 4, 2026
5cbfc40
test(workflows): request _floor_monkeypatch in the boot recovery fixture
romdr Dec 4, 2026
b3b505c
chore(workflows): merge the engine layer's fixes into dashboard routes
romdr Dec 4, 2026
2359152
chore(workflows): merge main into dashboard routes via the engine layer
romdr Dec 5, 2026
8560b29
fix(workflows): label the workflow engine routes in the route table
romdr Dec 5, 2026
4f0b2f9
fix: check a launch option and a recipe name with fullmatch
romdr Dec 5, 2026
6b36944
test: reset the workflow dashboard's boot and crash state per test
romdr Dec 5, 2026
f244cc2
fix: keep the workflow routes' file reads off the event loop
romdr Dec 5, 2026
04c32b5
chore(workflows): merge the engine layer's round 3 fixes into dashboa…
romdr Dec 5, 2026
7c9c68e
chore(workflows): merge the ratchet fixes into dashboard routes
romdr Dec 5, 2026
55cc10c
chore(workflows): merge the route access labels into dashboard routes
romdr Dec 5, 2026
703dc56
chore(workflows): merge the per-test resets into dashboard routes
romdr Dec 5, 2026
afd7cea
chore(workflows): merge the model review fixes into dashboard routes
romdr Dec 5, 2026
aefe678
chore(workflows): merge the engine's merge of main and size cut into …
romdr Dec 5, 2026
281e135
chore(workflows): bring the workflow capture script to dashboard routes
romdr Dec 5, 2026
732a3e1
test: bound the wait in the boot recovery concurrency test
romdr Dec 5, 2026
9b94d7a
docs: say what the agent.kas_workflows switch turns on
romdr Dec 5, 2026
37be11a
fix: drain a queued workflow launch alone when queued messages merge
romdr Dec 5, 2026
028d6a2
test: cover the workflow routes' controls, replies and boot recovery
romdr Dec 5, 2026
3c5da62
test: make the workflow tests' directory links with make_dir_link
romdr Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ in the **same commit** when you change what it documents.
| the pipeline conductor agent or its skill | [pipeline-conductor](docs/system-specs/modules/pipeline-conductor.md) |
| task runner | [task](docs/system-specs/modules/task.md) + [taskrunner](docs/system-specs/modules/taskrunner.md) |
| `workflows/` (the dynamic-workflow engine) | [workflows](docs/system-specs/modules/workflows.md) |
| `kas_workflows/`, `acp/workflow_sink.py` (Kiro Agent's own workflow engine) | [kas-workflows](docs/system-specs/modules/kas-workflows.md) |
| `kas_workflows/`, `acp/workflow_sink.py`, `dashboard/handlers/kas_workflows.py` (Kiro Agent's own workflow engine) | [kas-workflows](docs/system-specs/modules/kas-workflows.md) |
| themes | [themes](docs/system-specs/modules/themes.md) + [theming-contract](website/docs/theming-contract.md) |
| anything under `website/` | [`website/AGENTS.md`](website/AGENTS.md) |
| user-facing strings, dates, numbers, sort order | [i18n-catalog](website/docs/i18n-catalog.md) (authoring) + [i18n-gates](docs/ci/i18n-gates.md) (CI) |
Expand Down
2 changes: 1 addition & 1 deletion config-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@
"sensitive": false,
"tags": [],
"label": "Kiro Workflows on Kiro Agent",
"help": "Developer opt-in to Kiro Agent's (KAS) own workflow engine, off by default. This build has no surface that reads it yet, so setting it changes nothing. No effect unless the backend is Kiro Agent.",
"help": "Developer opt-in to Kiro Agent's (KAS) own workflow engine, off by default. When on, a dashboard chat's model can start Kiro Agent workflow runs, the dashboard can start, follow and answer them, and the gateway reconnects a chat's interrupted runs when it starts. No effect unless the backend is Kiro Agent.",
"hasChildren": false,
"enumValues": null,
"defaultValue": false
Expand Down
1 change: 1 addition & 0 deletions docs/feature-map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ and the Apps group's unpinned set, to a fresh browser profile.
| Steering | Always-injected steering documents | `?tab=steering` | `pages/overview/SteeringTab.tsx` | `handlers/steering.py` | `GET,POST /api/steering`, `PUT,DELETE /api/steering/{key}` |
| Hooks | Event-triggered agent runs | `?tab=hooks` | `pages/HooksPage.tsx`, `pages/hookEventWireValues.ts` (internal split of HooksPage — the event names the picker offers and the rows show, no new user-facing destination), `pages/HookLaneMatcherHelp.tsx` (internal split of HooksPage — the `SessionLaneChanged` matcher grammar and its Insert a lane menu, no new user-facing destination) | `handlers/hooks.py` | `GET,POST /api/hooks`, `PUT,DELETE /api/hooks/{hook_id}`, `GET /api/kiro-hooks`, `POST /api/kiro-hooks/rescan`, `GET /api/chat/tags` |
| Workflows | Saved dynamic-workflow definitions and their runs. **Remove** takes a saved workflow out of the library after a confirmation; it is a tombstone, so past runs and workflows adapted from it keep their lineage. A run's detail reads in two modes: the phase **Tree** (what happened, newest work last) and a **Graph** that draws the run's PLANNED phase graph (read off the run's own captured script source) and colours each node from the live run state (planned / running / ran ok / ran failed), marks a phase the plan could not promise runs at all, marks work that ran without being predicted, and says when the plan is partial because the preview hit its ceiling. The plan rides the run-detail snapshot and is requested only while Graph mode is open. In the Tree, a script step's row opens that step's transcript read-only beneath it (reasoning, tool calls with their status, the reply), kept in the gateway's memory only | `?tab=workflows` | `pages/overview/WorkflowLibraryTab.tsx`, `components/workflows/WorkflowsRuns.tsx` (Tree / Graph switch), `components/workflows/WorkflowStepTranscript.tsx` (a step's read-only transcript), `components/workflows/WorkflowRunGraph.tsx` (the drawing), `components/workflows/planModel.ts` (pure model: pair the plan with what ran), `pages/chat/workflowRunsPoll.ts` (internal helper: the chat side panel's runs-list poll cadence; no new user-facing feature) | `handlers/workflows.py`, `workflows/preview.py` (read the planned graph off a script's source), `workflows/step_transcripts.py` (a step's in-memory transcript), `workflows/update_from_run.py` (append a finished run as a saved workflow's next revision) | `POST /api/workflows/run`, `GET,POST /api/workflows/definitions`, `DELETE /api/workflows/definitions/{ref}`, `POST /api/workflows/author`, `GET /api/workflows/runs/{id}` (carries `plan` when `plan=1`), `GET /api/workflows/runs/{id}/agents/{agent_id}/transcript` (one step's kept transcript), `GET,POST /api/workflows/runs/{id}/update-definition` (append a finished run to a saved workflow; no dashboard control yet) |
| Kiro Workflows (Kiro Agent) | Kiro Agent's own workflow engine, behind the developer opt-in `agent.kas_workflows`: recipes, runs mirrored from Kiro Agent's notifications, step approvals and questions held for a person, run controls, and reconnect on boot and when a run's Kiro Agent process crashes. Run changes reach the dashboard as `kas_workflow_revision` frames on `/api/ws`. Off, or on another backend, every route refuses | API only in this change; the dashboard surfaces arrive with the frontend | — | `handlers/kas_workflows.py` | `GET /api/workflows/kas/state`, `GET,POST,DELETE /api/workflows/kas/recipes`, `GET /api/workflows/kas/recipes/detail`, `GET,POST /api/workflows/kas/runs`, `GET /api/workflows/kas/runs/{workflow_id}`, `POST /api/workflows/kas/runs/{workflow_id}/{action}`, `GET /api/workflows/kas/runs/{workflow_id}/steps/{node_id}/transcript`, `POST /api/workflows/kas/approvals/{key}`, `POST /api/workflows/kas/questions/{key}`, `GET /api/workflows/kas/slots/{slot}/runs` |
| Bot abilities | A Bot that owns its file shows **Comes with** (read-only: what the worker base provides) and **Added to** (what its own file adds, each stored row with **Remove**); **Add abilities** unions another agent's connections, skills, resources and auto-approvals into the file, skipping anything already present. The exception is **behavior directions**: the agent's prompt, minus any opening text the worker base already carries, replaces the file's single directions slot; an agent without directions leaves it alone, and **Remove** clears it. The worker appends the slot after its built-in instructions, and the slot records no source agent. Picking an agent previews at once (bound to the file and the agent as previewed, so an apply after either changed shows a fresh preview), listing the auto-approvals it writes | `/capabilities?tab=crews` → Bot → **Abilities** (also from the Bots page's editor; General's **View abilities**) | `components/crew/WorkerKitPane.tsx`, `components/crew/CrewEditorNextDialog.tsx` | `handlers/member_worker_kit.py` (`kiro_crew/mate_worker_kit.py`) | `GET,PUT /api/agents/{name}/worker-kit`, `POST /api/agents/{name}/worker-kit/preview` (each also as `/api/agents/b64/{name_b64}/...` for a name that needs encoding) |
| Bot abilities load error | When a Bot's abilities read fails, the Abilities section shows a notice instead of the bands: a read past the 20 s gateway limit (`reason: timed_out`) or the 30 s dashboard limit names the likely causes (many added abilities, a slow or unreachable drive) and points at the gateway log, which names the Bot and how long the read took; a Bot file that no longer parses says to fix or restore that file. **Try again** reads again; **Ask the agent** hands the error to a chat through the editor's leave guard, so unsaved edits ask first. The `get_member_capabilities` guide tool reads the same view under the same limit and answers a sentence the agent can relay | `/capabilities?tab=crews` → Bot → **Abilities** when the read fails | `components/crew/CrewEditorNextDialog.tsx`, `components/crew/workerKitErrors.ts` | `handlers/_bounded_read.py` (used by `handlers/agent_capabilities.py`, `handlers/member_worker_kit.py`, `handlers/change_cards.py`) | `GET /api/agents/{name}/capabilities`, `GET /api/agents/{name}/worker-kit`, `GET /api/cards/agent/capabilities` |

Expand Down
2 changes: 1 addition & 1 deletion docs/system-specs/modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ agent loads only the one it needs.
| [task.md](task.md) | Task models and state. |
| [taskrunner.md](taskrunner.md) | The execution engine that runs a task spec to completion. |
| [workflows.md](workflows.md) | The dynamic-workflow engine: the frozen `ctx` contract, the event stream, budgets, and the named conformance gates with the test pinning each. |
| [kas-workflows.md](kas-workflows.md) | Kiro Workflows on Kiro Agent's own engine: the `agent.kas_workflows` gate, the run mirror, the runtime sink, which chats get the surface, the router's launch, observe and reconnect turns, step approvals and questions, which chat a run belongs to and boot recovery from Kiro Agent's run lists. |
| [kas-workflows.md](kas-workflows.md) | Kiro Workflows on Kiro Agent's own engine: the `agent.kas_workflows` gate, the run mirror, the runtime sink, which chats get the surface, the router's launch, observe and reconnect turns, step approvals and questions, which chat a run belongs to, boot recovery from Kiro Agent's run lists and the dashboard's `/api/workflows/kas/*` routes. |
| [decisions.md](decisions.md) | The Jev decision seam: `decisions.enabled` as the only opt-in, session-key sampling through `decisions.bucket`, the scrub-before-send refusal, `skills.select` as the one integration that consumes an answer (with the word-overlap result as its fallback), and the basic call-metadata log. |
| [crew-mode.md](crew-mode.md) | Crews: the config record, `select_crew` roster and binding, model and workspace resolution, the Crews UI, and the record of the retired `"crew"` slot mode (the old Crew Mode). |
| [pipeline-conductor.md](pipeline-conductor.md) | The `kirocrew-pipeline-conductor` agent and its skill: the generated spec's permission narrowing, the three deterministic scripts, the patrol cycle, and what the RFC leaves unbuilt. |
Expand Down
1 change: 1 addition & 0 deletions docs/system-specs/modules/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -4666,6 +4666,7 @@ scope or `yolo_max_seconds` bounds it, and it is refused when an `approval_modes
policy denies `yolo`. The grant is the dashboard's only (`SafetyOverride.is_cli_launch`):
Slack's `is_yolo_mode` ignores it, and so does a dashboard turn a channel message
started or steered, or one in a channel-linked slot (`DashboardState.yolo_reaches`),
and so does a Kiro Workflows step of such a chat (`chat_turn/kas_step_mode._kas_step_mode_reader`),
and so do dashboard channel agents.
Those keep asking exactly as without the flag. Other channels already auto-approve
under the flag itself. That policy, and picking another mode in the dashboard,
Expand Down
Loading
Loading