@agimon-ai/po-workflow 0.0.0-alpha.18 → 0.0.0-alpha.180

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +149 -29
  2. package/README.md +134 -47
  3. package/dist/apiContracts.cjs +199 -36
  4. package/dist/apiContracts.cjs.map +1 -1
  5. package/dist/apiContracts.d.mts +2 -2
  6. package/dist/apiContracts.d.mts.map +1 -1
  7. package/dist/apiContracts.mjs +199 -36
  8. package/dist/apiContracts.mjs.map +1 -1
  9. package/dist/contract-BpzJeyjh.mjs +33 -0
  10. package/dist/contract-BpzJeyjh.mjs.map +1 -0
  11. package/dist/contract-D80yV2d-.cjs +68 -0
  12. package/dist/contract-D80yV2d-.cjs.map +1 -0
  13. package/dist/extensions/native.mjs +4129 -815
  14. package/dist/extensions/native.mjs.map +1 -1
  15. package/dist/extensions/server.cjs +20527 -3420
  16. package/dist/extensions/server.cjs.map +1 -1
  17. package/dist/extensions/server.d.mts.map +1 -1
  18. package/dist/extensions/server.mjs +20526 -3395
  19. package/dist/extensions/server.mjs.map +1 -1
  20. package/dist/extensions/web.mjs +4961 -3036
  21. package/dist/extensions/web.mjs.map +1 -1
  22. package/dist/index-BFCOJNHk.d.mts +5085 -0
  23. package/dist/index-BFCOJNHk.d.mts.map +1 -0
  24. package/dist/index.cjs +41 -3
  25. package/dist/index.cjs.map +1 -0
  26. package/dist/index.d.mts +104 -4
  27. package/dist/index.d.mts.map +1 -1
  28. package/dist/index.mjs +38 -1
  29. package/dist/index.mjs.map +1 -0
  30. package/dist/po-runtime-identity.json +1 -0
  31. package/dist/workflowHost-BZETMrK7.cjs +4178 -0
  32. package/dist/workflowHost-BZETMrK7.cjs.map +1 -0
  33. package/dist/workflowHost-Btb8JrvA.mjs +3962 -0
  34. package/dist/workflowHost-Btb8JrvA.mjs.map +1 -0
  35. package/dist/workflowHost.cjs +7 -0
  36. package/dist/workflowHost.d.mts +29 -0
  37. package/dist/workflowHost.d.mts.map +1 -0
  38. package/dist/workflowHost.mjs +3 -0
  39. package/dist/workflowServices-CSHleLJo.mjs +273 -0
  40. package/dist/workflowServices-CSHleLJo.mjs.map +1 -0
  41. package/dist/workflowServices-DYXhIDVE.cjs +350 -0
  42. package/dist/workflowServices-DYXhIDVE.cjs.map +1 -0
  43. package/llms.txt +8 -7
  44. package/package.json +127 -25
  45. package/src/prompts/codemode-how-to-workflow/SKILL.md +220 -0
  46. package/src/prompts/help-how-to-workflow/SKILL.md +191 -0
  47. package/src/types/webWorkflowTerminal.ts +21 -0
  48. package/src/types/webWorkflows.ts +52 -2
  49. package/LICENSE.web +0 -29
  50. package/dist/workflowLaunchCommand-C69Nn3k5.cjs +0 -139
  51. package/dist/workflowLaunchCommand-C69Nn3k5.cjs.map +0 -1
  52. package/dist/workflowLaunchCommand-GGqimmTC.mjs +0 -122
  53. package/dist/workflowLaunchCommand-GGqimmTC.mjs.map +0 -1
  54. package/skills/workflow-recovery/SKILL.md +0 -85
  55. package/src/prompts/po-author-workflow/SKILL.md +0 -64
  56. package/src/prompts/po-use-workflow/SKILL.md +0 -21
package/LICENSE CHANGED
@@ -1,29 +1,149 @@
1
- Portions of this software are licensed as follows:
2
-
3
- * The browser half of this package, meaning every ".web" routed file under
4
- "src/extensions" and the "_components" and "_lib" modules colocated with
5
- one, is licensed under the Po Web License defined in "LICENSE.web":
6
- free to use, not to redistribute.
7
- * All other content is licensed under the MIT license below.
8
-
9
- MIT License
10
-
11
- Copyright (c) 2026 Vuong Ngo
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining a copy
14
- of this software and associated documentation files (the "Software"), to deal
15
- in the Software without restriction, including without limitation the rights
16
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- copies of the Software, and to permit persons to whom the Software is
18
- furnished to do so, subject to the following conditions:
19
-
20
- The above copyright notice and this permission notice shall be included in all
21
- copies or substantial portions of the Software.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
- SOFTWARE.
1
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
3
+
4
+ Parameters
5
+
6
+ Licensor: Agimon Pty Ltd
7
+ Licensed Work: Po, the software in the Po source repository and the
8
+ packages released from it, in each version released by
9
+ the Licensor.
10
+ The Licensed Work is (c) 2026 Agimon Pty Ltd.
11
+ Material identified as third-party in the "Third-party
12
+ components" section at the end of this file or in a
13
+ NOTICE file, and any package or directory whose own
14
+ license file grants a different license, is not part of
15
+ the Licensed Work and remains under its own license.
16
+ Additional Use Grant: You may make production use of the Licensed Work if
17
+ your use is Eligible Use. "Eligible Use" is production use that falls
18
+ within at least one of the following:
19
+
20
+ (a) Personal Use. Use by an individual for their own personal purposes,
21
+ and not on behalf of, or for the benefit of, an employer, client, or
22
+ other Organization. Use by an individual in the course of employment
23
+ or engagement by an Organization is use by that Organization.
24
+
25
+ (b) Small Organization Use. Use by or on behalf of an Organization whose
26
+ Annual Revenue is less than USD 1,000,000.
27
+
28
+ (c) Non-profit, Education and Research Use. Use, regardless of Annual
29
+ Revenue, by (i) an Organization registered or recognized as a
30
+ non-profit or charitable organization under the laws of its
31
+ jurisdiction, for its non-profit purposes; (ii) an accredited school,
32
+ college, or university, for teaching, learning, or academic research;
33
+ or (iii) a publicly funded research institution, for its research.
34
+
35
+ (d) Service Provider Use. Use by a consultant, contractor, agency, or other
36
+ service provider, regardless of its own Annual Revenue, solely to
37
+ build, deploy, host, operate, or support the Licensed Work for a client
38
+ whose own use would be Eligible Use under (a), (b), or (c). A service
39
+ provider's use for its own purposes is Eligible Use only if the service
40
+ provider itself qualifies under (b) or (c).
41
+
42
+
43
+ Hosted services. Offering the Licensed Work to third parties as a hosted
44
+ or managed service whose primary value is the Licensed Work is Eligible
45
+ Use only if each such third party's own use would be Eligible Use.
46
+
47
+ Definitions. "Organization" means any company, partnership, sole
48
+ proprietorship, trust, association, government body, or other entity, and
49
+ includes an individual acting in a business or professional capacity.
50
+ "Affiliate" means any entity that directly or indirectly controls, is
51
+ controlled by, or is under common control with an Organization, where
52
+ "control" means ownership of more than 50% of the voting interests of an
53
+ entity or the power to direct its management and policies by contract or
54
+ otherwise. "Annual Revenue" means the total gross revenue of an
55
+ Organization and all of its Affiliates combined, from all sources and
56
+ whether or not related to the Licensed Work, for its most recently
57
+ completed fiscal year, or, if it has not completed a fiscal year, for the
58
+ twelve months before the use (or since its formation, if shorter),
59
+ converted into US dollars at the average exchange rate for that period.
60
+ Proceeds of equity or debt financing are not revenue.
61
+
62
+ Threshold. If an Organization stops qualifying under (b), its existing
63
+ production use remains Eligible Use for 90 days after it stops
64
+ qualifying, after which it must obtain a commercial license or stop
65
+ production use. Use that was Eligible Use when it occurred never requires
66
+ a commercial license after the fact.
67
+ Change Date: Four years from the date a version of the Licensed Work
68
+ is first publicly released by the Licensor.
69
+ Change License: Apache License, Version 2.0
70
+
71
+ For information about alternative licensing arrangements for the Licensed
72
+ Work, please visit: https://agimon.ai/licensing
73
+
74
+ Notice
75
+
76
+ The Business Source License (this document, or the "License") is not an Open
77
+ Source license. However, the Licensed Work will eventually be made available
78
+ under an Open Source License, as stated in this License.
79
+
80
+ -----------------------------------------------------------------------------
81
+
82
+ Business Source License 1.1
83
+
84
+ Terms
85
+
86
+ The Licensor hereby grants you the right to copy, modify, create derivative
87
+ works, redistribute, and make non-production use of the Licensed Work. The
88
+ Licensor may make an Additional Use Grant, above, permitting limited
89
+ production use.
90
+
91
+ Effective on the Change Date, or the fourth anniversary of the first publicly
92
+ available distribution of a specific version of the Licensed Work under this
93
+ License, whichever comes first, the Licensor hereby grants you rights under
94
+ the terms of the Change License, and the rights granted in the paragraph
95
+ above terminate.
96
+
97
+ If your use of the Licensed Work does not comply with the requirements
98
+ currently in effect as described in this License, you must purchase a
99
+ commercial license from the Licensor, its affiliated entities, or authorized
100
+ resellers, or you must refrain from using the Licensed Work.
101
+
102
+ All copies of the original and modified Licensed Work, and derivative works
103
+ of the Licensed Work, are subject to this License. This License applies
104
+ separately for each version of the Licensed Work and the Change Date may vary
105
+ for each version of the Licensed Work released by Licensor.
106
+
107
+ You must conspicuously display this License on each original or modified copy
108
+ of the Licensed Work. If you receive the Licensed Work in original or
109
+ modified form from a third party, the terms and conditions set forth in this
110
+ License apply to your use of that work.
111
+
112
+ Any use of the Licensed Work in violation of this License will automatically
113
+ terminate your rights under this License for the current and all other
114
+ versions of the Licensed Work.
115
+
116
+ This License does not grant you any right in any trademark or logo of
117
+ Licensor or its affiliates (provided that you may use a trademark or logo of
118
+ Licensor as expressly required by this License).
119
+
120
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
121
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
122
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
123
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
124
+ TITLE.
125
+
126
+ MariaDB hereby grants you permission to use this License’s text to license
127
+ your works, and to refer to it using the trademark “Business Source License”,
128
+ as long as you comply with the Covenants of Licensor below.
129
+
130
+ Covenants of Licensor
131
+
132
+ In consideration of the right to use this License’s text and the “Business
133
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
134
+ other recipients of the licensed work to be provided by Licensor:
135
+
136
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
137
+ or a license that is compatible with GPL Version 2.0 or a later version,
138
+ where “compatible” means that software provided under the Change License can
139
+ be included in a program with software provided under GPL Version 2.0 or a
140
+ later version. Licensor may specify additional Change Licenses without
141
+ limitation.
142
+
143
+ 2. To either: (a) specify an additional grant of rights to use that does not
144
+ impose any additional restriction on the right granted in this License, as
145
+ the Additional Use Grant; or (b) insert the text “None”.
146
+
147
+ 3. To specify a Change Date.
148
+
149
+ 4. Not to modify this License in any other way.
package/README.md CHANGED
@@ -4,8 +4,8 @@ Discover, launch, monitor, control, and recover asynchronous Po workflows.
4
4
 
5
5
  Part of the [Po distribution](https://www.npmjs.com/package/@agimon-ai/po).
6
6
 
7
- The integration embeds `@agimon-ai/workflow-mcp`. Workflow files describe job dependencies and
8
- host-executed steps, while Po provides session-scoped tools.
7
+ This package owns the workflow engine. Runs execute inside the Po host; there is no standalone CLI.
8
+ Workflow files describe job dependencies and host-executed steps, while Po provides session-scoped tools.
9
9
 
10
10
  > **Alpha:** workflow and recovery contracts may change between releases.
11
11
 
@@ -15,8 +15,8 @@ host-executed steps, while Po provides session-scoped tools.
15
15
 
16
16
  ## Install
17
17
 
18
- The seeded `modes.yaml` selects Workflow in `default.packages`. Keep it there or select it through
19
- a layer; its tools remain inactive until Workflow mode is enabled.
18
+ The seeded `presets.yaml` selects the `workflow` layer in `minimal`, `copilot` and `examples`.
19
+ Remove it from a preset to omit Workflow there. No mode activation is required.
20
20
 
21
21
  ## Define a workflow
22
22
 
@@ -31,23 +31,110 @@ jobs:
31
31
  - name: Run tests
32
32
  run: pnpm test
33
33
 
34
- summarize:
34
+ lint:
35
35
  needs: test
36
36
  steps:
37
- - name: Record result
38
- run: node scripts/write-verification-summary.mjs
37
+ - name: Lint
38
+ run: pnpm lint
39
39
  ```
40
40
 
41
41
  `run` commands execute on the host with the workflow process's environment and privileges. There is
42
42
  no VM, container, or sandbox. Review workflow files as executable code. Runner-specific
43
43
  `interactiveRun` mappings are available for commands that require a TTY.
44
44
 
45
- A step can also declare `runConfig` (major mode, minor modes, profile, domains, model, thinking)
45
+ A step can also declare `runConfig` (preset, modes, profile, domains, model, thinking)
46
46
  and `customRun` (a prompt). Launched from the Po server, a `customRun` step runs as a child
47
47
  session of the launching session with those settings, until the agent has recorded what the step
48
48
  needs, and `run` and `interactiveRun` steps each get their own RMUX pane. Each run keeps its engine
49
- log in `engine.log` in its run directory. See `docs/automation.md` for the full contract and the
50
- CLI fallback.
49
+ log in `engine.log` in its run directory. See [automation](https://github.com/AgiFlow/po/blob/main/docs/getting-started.md#automation) for the user workflow and the [maintenance guide](src/prompts/help-how-to-workflow/SKILL.md) for authoring details.
50
+
51
+ ## Job-specific tools
52
+
53
+ Managed Po agent steps can receive a workflow-owned `jobTools` code-mode namespace and a pinned
54
+ `workflow-job-tools` skill. Select a folder at workflow level as a default, or override it per job:
55
+
56
+ ```yaml
57
+ name: summarize
58
+ runConfig:
59
+ preset: copilot
60
+ tools: ./tools/shared
61
+ jobs:
62
+ report:
63
+ tools: ./tools/report
64
+ steps:
65
+ - name: Summarize
66
+ customRun: Read workflow-job-tools, discover jobTools, then summarize this job.
67
+ ```
68
+
69
+ The folder must contain JavaScript `index.mjs` and a non-empty `SKILL.md`. Paths are resolved relative
70
+ to the YAML that declares them, before imports and job-template inheritance. Empty paths, control
71
+ characters and URL specifiers are rejected. Parsing, listing and inspection never execute the module.
72
+ A job's main steps, `preJob` and `postJob` use its selection or the workflow default. `repair.tools`
73
+ overrides the default for repair triage. Global phases use the workflow default.
74
+
75
+ Only trusted, managed Po `customRun` and in-process `interactiveRun` agent sessions receive these
76
+ tools, not shell steps, ordinary sessions, or external Claude/Codex CLI runners. Each session uses its
77
+ captured workflow config. Global `pre` can run before the worktree YAML is reparsed, so its tools are
78
+ not necessarily selected from that worktree. Step `cwd`, `WORKTREE_PATH` and environment variables do
79
+ not select or resolve the tools folder.
80
+
81
+ `index.mjs` default-exports a factory, called once per managed session with:
82
+
83
+ - `sessionId` and the admitted working directory `cwd`.
84
+ - `workflow`: the trusted `PoWorkflowContextService`, including the captured config, job/step identity,
85
+ admitted `jobEnvironment` and `stepEnvironment`, and workflow state reader.
86
+ - Injected `fs` and `shell` capabilities. Their methods take a call context as the last argument.
87
+ - `signal`: the session tools lifetime, aborted on session disposal or mounting failure.
88
+ - `context`: a call context for `fs` and `shell`, aborted with `signal`. Inside `bind(run)`, pass
89
+ `run.context` instead, which also aborts when that exec ends.
90
+
91
+ Return the existing `PoCodemodeNamespace` contract: name `jobTools`, a non-empty one-line `summary`
92
+ (maximum 600 characters), TypeScript `declarations` for discovery, and `bind(run)`. Bind returns flat
93
+ named async methods with JSON arguments and results. Each exec gets a fresh binding; keep per-session
94
+ state inside the factory, not at module scope. Validate method inputs and honour `run.signal` in long
95
+ operations. Use `run.onDispose` for exec-owned cleanup. The host refuses foreign sessions and calls
96
+ after cancellation/disposal, and detaches JSON values in both directions. Return `null`, not
97
+ `undefined`, for no output.
98
+
99
+ Agents read the selected folder's pinned skill, discover `jobTools`, then call its typed methods through `exec`. Keep usage judgment in `SKILL.md` and signatures in `declarations`; the maintenance guide covers authoring. Optional `approval` policies must name returned methods and use the existing approval path, never bypass it.
100
+
101
+ Tools are trusted workflow code running with the host's privileges, not sandboxed code. Review the
102
+ folder before launching. Native import caches modules by file URL; editing `index.mjs` at the same
103
+ path requires a host restart. There is no direct TypeScript loading, hot reload, or external CLI
104
+ bridge. A missing file or invalid factory fails the managed step session rather than silently
105
+ omitting its selected tools. The namespace and skill mount and dispose together; disposing them does
106
+ not stop the owning workflow or change its recovery rules.
107
+
108
+ ## Step instructions
109
+
110
+ A workflow can give its managed Po agent steps their own instructions file:
111
+
112
+ ```yaml
113
+ instructions: ./AGENTS.md
114
+ ```
115
+
116
+ The file replaces the AGENTS.md files the step session would discover from its working directory; it
117
+ does not add to them. The path resolves relative to the declaring YAML and is inherited through
118
+ `imports` as a default, like `tools`. A missing or unreadable file fails the step session rather than
119
+ running it without instructions. Shell steps and external Claude/Codex CLI runners ignore it.
120
+
121
+ ## Explicit role allocation
122
+
123
+ For a workflow declaring `identity.roles`, first call `workflow.requirements({ workflowPath })`, then
124
+ launch with an exact `assignments` map from every required role to a stable profile reference. Roles
125
+ used together by one job, reachable child or repair triage must select the same reference. Saved teams,
126
+ a launch profile, environment variables and workflow inputs never fill missing assignments.
127
+
128
+ The slash equivalent is `/workflow-launch <workflow> assign.writer=<stable-ref>`. Public tools and
129
+ code mode accept assignments only, never provider bindings or an allocation snapshot. The launch
130
+ freezes the effective definition and provider evidence; retries, child execution, reload, resume and
131
+ recovery revalidate that evidence without reallocating. Legacy role-bound runs without a snapshot
132
+ must be launched fresh or repaired through the existing approved revision-checked repair path.
133
+
134
+ Allocated agent steps require managed in-process execution and a compatible `po-profile` admission
135
+ capability. Help and external agent execution are refused. Roleless phases in an allocated graph run
136
+ with no profile. Allocations never grant product authority; the provider derives scope from trusted
137
+ host configuration.
51
138
 
52
139
  ## Launch and monitor
53
140
 
@@ -61,17 +148,27 @@ Core tools are:
61
148
  Launch returns after the run is registered, not after all jobs complete. Use status for progress
62
149
  and wait for a completion notification.
63
150
 
151
+ ## Dynamic workflows
152
+
153
+ The package also supplies the `dynamicWorkflow` code-mode namespace: tracked Mastra
154
+ workflows composed with `then`, `parallel`, `branch` and bounded `foreach`, with live
155
+ `team.run` transcripts. It is available when the `workflow` layer is selected, with no
156
+ mode gate. Inside a YAML run, a `customRun` step's agent can use it
157
+ for fan-out whose shape is only known at run time, and the run view shows those runs under
158
+ that step. See the [code-mode guide](src/prompts/codemode-how-to-workflow/SKILL.md).
159
+ Tracker state is in memory per session; it is not persisted with the run record.
160
+
161
+ Existing default-package entries still work and deduplicate with the layer. No configuration migration runs, and persisted `modes: [workflow]` has no effect.
162
+
64
163
  ## Storage, concurrency, and lifecycle
65
164
 
66
165
  Registry data defaults to `$HOME/.workflow-mcp`; set `WORKFLOW_MCP_HOME` to relocate it. Persisted
67
166
  records contain workflow and run identity, job and step state, ownership, output locations, and
68
167
  recovery evidence. The default concurrency ceiling is five runs.
69
168
 
70
- Runs launched through a terminal
71
- host such as tmux or cmux can have a different lifetime and remain manageable from the CLI. When
72
- Team is loaded, Workflow contributes active session runs through Team's `po/background-work`
169
+ When Team is loaded, Workflow contributes active session runs through Team's `po/background-work`
73
170
  service. That contribution reconnects after Team is replaced and is removed when Workflow unloads.
74
- Reconciliation distinguishes stale registry records from live processes; do not assume every run
171
+ Reconciliation distinguishes stale registry records from live runs; do not assume every run
75
172
  outlives its parent session.
76
173
 
77
174
  Each workflow or repair step can launch commands and model-backed agents, consuming provider quota
@@ -84,19 +181,22 @@ adopts the eligible failure, validates the evidence, and transfers ownership to
84
181
  Live controls remain scoped to the owning session. Recovery does not launch a second copy beside a
85
182
  still-running job and does not guarantee that parent-session work survives shutdown.
86
183
 
87
- The package publishes `workflow-recovery`, `po-author-workflow` for writing workflow
88
- definitions, and `po-use-workflow` for launching, monitoring, and recovering runs while Workflow
89
- mode is active. Deactivating Workflow mode hides them; cached files may remain.
184
+ The package ships two skills: pinned, ungated `codemode-how-to-workflow` for workflow code-mode
185
+ namespaces and selected job tools, and unpinned, Help-gated `help-how-to-workflow` for authoring and
186
+ maintenance. A selected tools folder also supplies the managed session's pinned `workflow-job-tools` skill.
90
187
 
91
188
  ## Workflow sessions
92
189
 
93
190
  In a server (web cockpit) session, a launch does not run in the session that asked for it. The
94
191
  session creates a child **workflow session** (provenance `workflow-session`), nested under it in the
95
- rail, and hands it the launch. The workflow session owns the run (`PI_SESSION_ID`), runs its step
96
- sessions, and has Workflow mode on, so its agent can troubleshoot and recover the run. The run's
192
+ rail, and hands it the launch. The workflow session owns the run (`PO_SESSION_ID`), runs its step
193
+ sessions, so its agent can troubleshoot and recover the run without a workflow mode. The run's
97
194
  environment also carries `PO_WORKFLOW_LAUNCHER_SESSION_ID`, naming the launching session, which
98
195
  lists the run in its Activity group, is told when it ends, and may read its status.
99
196
 
197
+ - Pass `sessionName` to `launch_workflow`, `workflow.launch`, or the `po/workflow-launch` service's
198
+ overrides to name the new workflow session. It defaults to the workflow's name, then its filename.
199
+ `name` still names the run context directory; existing owner sessions are not renamed.
100
200
  - The workflow session's rail row shows the run (`workflow · build › test · 4m`, or a failure or
101
201
  pause marked like a pending question) through the host's per-session activity line.
102
202
  - Success is posted without starting a turn. Failure wakes the workflow owner for local diagnosis;
@@ -107,40 +207,27 @@ lists the run in its Activity group, is told when it ends, and may read its stat
107
207
  run.
108
208
  - Recovery is refused from any session other than the owner while the owner is live.
109
209
 
110
- ## Development
111
-
112
- ```bash
113
- pnpm build
114
- pnpm typecheck
115
- pnpm test
116
- pnpm lint
117
- ```
210
+ ## Native execution contract
118
211
 
119
- Maintained by [Agimon](https://agimon.ai/about).
212
+ Agent steps require an effective `runConfig.preset`; delegated workflows require top-level `runConfig.preset` before their owner child is created. Selection projects preset, modes, profile and domains unchanged. `subagentModel` and `subagentThinking` set Team preferences independently of the step model.
120
213
 
121
- ## Web cockpit plugin
214
+ The native host requires execution-state inspection before creating agent steps. After settlement it waits for idle, no pending messages and a known background snapshot without core holds or holding-provider errors before checking decisions. Unknown ownership waits closed without consuming reminders; stops interrupt reads and retry delays. Running commands stop holding an inline step after five idle minutes, but its decision gate still runs before session release.
122
215
 
123
- The `.web` routed files under `src/extensions/workspaces/sessions/(frontend)` are this package's
124
- Po web cockpit plugin: the `workflow` dock face beside Activity and Context (the owned run's
125
- jobs, active steps and artifacts, each opening its own tab), the workflow catalog and launch
126
- dialog in the overlay slot, the Activity group's run rows (a handed-off run opens its workflow
127
- session), their stores, and the `workflow_runs` session channel, compiled into the cockpit bundle
128
- by `po-web`'s build. Each surface keeps its components in a colocated `_components` folder and
129
- its stores and helpers in `_lib`.
130
- The hub-side data source ships behind the `./web-hub` subpath and reads the workflow registry
131
- (run.json plus progress.ndjson) exactly as the engine writes it. Both halves are declared by the
132
- `poWeb` block in package.json.
216
+ Delegated successes are informational. Errors wake the workflow owner through durable custom-message admission; the launcher gets an error notification, not an agent-waking failure completion. Diagnosis stays local. Recovery, pause, resume and stop are request-driven. User-requested stops do not trigger diagnosis or automatic restart.
133
217
 
134
- ## License
218
+ ## Development
135
219
 
136
- MIT, except this package's browser half (the `.web` routed files under `src/extensions` and the
137
- `_components` and `_lib` modules colocated with one), which is source available under the Po
138
- Web License (see `LICENSE.web`): free to use, including commercially, but not to redistribute.
220
+ ```bash
221
+ pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-workflow
222
+ ```
139
223
 
140
- ## Native execution contract
224
+ ## Upgrading from the CLI releases
141
225
 
142
- Agent steps require an effective `runConfig.majorMode`; delegated workflows require top-level `runConfig.majorMode` before their owner child is created. Selection projects major mode, minor modes, profile and domains, adding the workflow minor mode once. `subagentModel` and `subagentThinking` set Team preferences independently of the step model.
226
+ The `workflow-mcp` and `po-workflow-mcp` commands, `launch-command` and run-local launchers were
227
+ removed. A workflow that still declares `launch-command` or `launcher` is rejected; delete the key.
228
+ Storage paths and registry records are unchanged. Let runs started by a CLI release finish on that
229
+ release before upgrading, and remove any `.po/hooks.yaml` entry that points at the old CLI path.
143
230
 
144
- The native host requires execution-state inspection before creating agent steps. After settlement it waits for idle, no pending messages and a known background snapshot without core holds or holding-provider errors before checking decisions. Unknown ownership waits closed without consuming reminders; stops interrupt reads and retry delays.
231
+ ## License
145
232
 
146
- Delegated successes are informational. Errors wake the workflow owner through durable custom-message admission; the launcher gets an error notification, not an agent-waking failure completion. Diagnosis stays local. Recovery, pause, resume and stop are request-driven. User-requested stops do not trigger diagnosis or automatic restart.
233
+ Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See [LICENSE](LICENSE) and https://agimon.ai/licensing.