Repository navigation
feat(workflows): add graph workflow editor, validator, and DAG runner (MVP) - #48
Merged
Merged
Conversation
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zereight/robot's node-graph Workflows feature natively into OpenMyBot.server/workflows/,server/routes/workflows.ts):text,decision, andapprovalnodes with{{input}}/{{trigger}}interpolation and shared responsible document (systemprompt).checkWorkflowGraph) blocking cycles/deadlocks, self-loops, invalid option IDs/counts, and invalid connection ports.<dataDir>/workflows/runs/<workflowId>/<runId>.json) with startup recovery (recoverInterruptedRunsfails interruptedrunning/queuedruns while preservingwaitingruns for stateless resume).wf-slot-0..2thread pool (sessionReset: true), globalbusisolation (shouldIgnoreProviderEvent),request.openedauto-handling,decider.choose("botDecide", ...)integration with 16KB state truncation and manual fallback, approval gates with user comments, and mid-flight cancellation./api/workflowsand/api/workflow-runs(+3 lines inserver/index.ts, respectingindex-route-ratchetandfile-size-ratchet).src/components/workflows/,src/lib/workflows-api.ts):Workflowsentry inSidebarFooterNav(activeView: "workflows"insrc/state/store.tsxwith 0 net line growth) and 16 locale catalogs (sidebar.nav.workflows).WorkflowCanvas), node inspector (WorkflowNodeInspector, using<Select>), responsible document editor, and live run history with inline Approval/Decision response cards (WorkflowRunsPanel).Verification (Before / After)
/api/workflowsroutes or visual multi-step DAG workflow view.pnpm typecheck,pnpm lint(oxlint --deny-warnings .),pnpm build, andpnpm i18n:check: all passed.file-size-ratchet.test.ts,index-route-ratchet.test.ts,Select.guard.test.ts,SidebarFooterNav.test.ts,everyday-words.test.ts,words.test.ts): 6/6 files, 41/41 tests passed./tmp/verify-workflows.ts): verified cycle deadlock detection,Text -> Decision (auto-routed 95%) -> Approval (waiting)withrequest.openedauto-allow, simulated server restart (recoverInterruptedRunspreservingwaiting), and stateless resume deliveringComment from the user:downstream while skipping unchosen branches.OMB_PORT=18841): verifiedGET/POST /api/workflows,400on self-loop/deadlockPATCH,POST /runs→waiting,409onPATCHwhile waiting, andPOST /respond→donewith comment appended.