Files
kandev/apps/backend/config/workflows/office-default.yml
T
Carlos Florêncio 2d73a3d1db fix: keep completed office comments editable (#1548)
* fix: keep completed office comments editable

Keep the office task detail composer editable after completed sessions load,

including projectless office tasks.

Update verification tests for SHA-pinned GitHub actions. Extract the

dockview main area to satisfy the existing max-lines lint rule.

* fix: preserve upload artifact version guard

* fix: clarify upload artifact pin check

* fix: wake completed office sessions on comments

* fix: queue completed office comment runs

* fix: preserve dispatcher session lookup errors

* fix: resolve office comment wake review issues

* fix: stabilize comment wake idempotency

* fix: salt custom comment wake keys

* fix: address comment wake review cleanup

* fix: avoid comment payload allocation overflow pattern

* fix: salt comment wake action variants

* fix: resolve cross-task primary by target step

* fix: resolve cross-task participant roles

* fix: surface cross-task comment run status

* fix: use target steps for cross-task queue runs

* fix: avoid comment run lookup scan regression

* fix: cover cross-task queue run edge cases

* fix: index comment payload run lookup

* fix: support postgres comment run index

* fix: tighten queue run target test coverage

* fix: route source comment run updates

* fix: preserve cross-task comment wakes

* fix: tighten comment wake identity

* fix: align comment wake routing

* fix: remove stale primary resolver

* fix: dedupe comment run status

* fix: tighten legacy comment wake dedupe

* fix: remove unreachable comment wake guard

* fix: skip duplicate comment reactivity wakes

* fix: route comment wakes synchronously

* fix: share comment engine dispatch contracts

* fix: preserve comment wake fallbacks

* fix: preserve done comment runner

* fix: guard empty task runner fallback

* fix: handle empty task runner fallback

* fix: stabilize completed comment wakes

* fix: index comment runner fallback

---------

Co-authored-by: root <root@kandev.ts.net>
2026-06-30 13:10:40 +01:00

132 lines
3.4 KiB
YAML

# Internal workflow TEMPLATE definition — NOT the portable import/export format.
# Steps here reference each other by string `step_id`; the importable YAML uses a
# `version`/`type`/`workflows` envelope and `step_position`. Don't paste this file
# (or its `step_id` transitions) into the workflow import endpoint.
# Format reference: docs/workflow-import-export.md
id: office-default
name: Office Default
description: >-
Five-step office workflow with a primary agent doing the work, multi-agent
reviewers, and multi-agent approvers. Tasks flow Backlog -> Work -> Review
-> Approval -> Done with quorum-gated transitions.
steps:
- id: backlog
name: Backlog
position: 0
color: bg-neutral-400
stage_type: custom
allow_manual_move: true
show_in_command_panel: true
- id: work
name: Work
position: 1
color: bg-blue-500
stage_type: work
is_start_step: true
show_in_command_panel: true
allow_manual_move: true
events:
on_enter:
- type: auto_start_agent
on_comment:
- type: queue_run
config:
target: primary
task_id: this
reason: task_comment
on_blocker_resolved:
- type: queue_run
config:
target: primary
task_id: this
reason: blockers_resolved
on_children_completed:
- type: queue_run
config:
target: primary
task_id: this
reason: children_completed
on_agent_error:
- type: queue_run
config:
target: workspace.ceo_agent
task_id: this
reason: agent_error
on_turn_complete:
- type: move_to_step
config:
step_id: review
- id: review
name: Review
position: 2
color: bg-yellow-500
stage_type: review
show_in_command_panel: true
allow_manual_move: true
events:
on_enter:
- type: clear_decisions
- type: queue_run_for_each_participant
config:
role: reviewer
reason: review_started
on_turn_complete:
- type: move_to_step
config:
step_id: approval
wait_for_quorum:
role: reviewer
threshold: all_approve
- type: move_to_step
config:
step_id: work
wait_for_quorum:
role: reviewer
threshold: any_reject
- id: approval
name: Approval
position: 3
color: bg-violet-500
stage_type: approval
show_in_command_panel: true
allow_manual_move: true
events:
on_enter:
- type: clear_decisions
- type: queue_run_for_each_participant
config:
role: approver
reason: approval_started
on_turn_complete:
- type: move_to_step
config:
step_id: done
wait_for_quorum:
role: approver
threshold: all_approve
- type: move_to_step
config:
step_id: work
wait_for_quorum:
role: approver
threshold: any_reject
- id: done
name: Done
position: 4
color: bg-green-500
stage_type: custom
allow_manual_move: true
show_in_command_panel: true
events:
on_comment:
- type: queue_run
config:
target: primary
task_id: this
reason: task_comment