@agimon-ai/po-workflow 0.0.0-alpha.200 → 0.0.0-alpha.202
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.
- package/README.md +28 -15
- package/dist/extensions/server.cjs +702 -139
- package/dist/extensions/server.cjs.map +1 -1
- package/dist/extensions/server.d.mts.map +1 -1
- package/dist/extensions/server.mjs +703 -140
- package/dist/extensions/server.mjs.map +1 -1
- package/dist/{index--C-zOl9A.d.mts → index-BY0aIkrE.d.mts} +75 -2
- package/dist/index-BY0aIkrE.d.mts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/dist/{workflowHost-d3yIgFif.cjs → workflowHost-B8ludUOG.cjs} +6 -1
- package/dist/workflowHost-B8ludUOG.cjs.map +1 -0
- package/dist/{workflowHost-B-B6BIeD.mjs → workflowHost-DB4GtWpM.mjs} +6 -1
- package/dist/workflowHost-DB4GtWpM.mjs.map +1 -0
- package/dist/workflowHost.d.mts +1 -1
- package/dist/workflowServices-CSHleLJo.mjs.map +1 -1
- package/dist/workflowServices-DYXhIDVE.cjs.map +1 -1
- package/llms.txt +1 -0
- package/package.json +11 -10
- package/src/prompts/codemode-how-to-workflow/SKILL.md +5 -5
- package/src/prompts/help-how-to-workflow-settings/SKILL.md +33 -0
- package/dist/index--C-zOl9A.d.mts.map +0 -1
- package/dist/workflowHost-B-B6BIeD.mjs.map +0 -1
- package/dist/workflowHost-d3yIgFif.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -181,26 +181,39 @@ adopts the eligible failure, validates the evidence, and transfers ownership to
|
|
|
181
181
|
Live controls remain scoped to the owning session. Recovery does not launch a second copy beside a
|
|
182
182
|
still-running job and does not guarantee that parent-session work survives shutdown.
|
|
183
183
|
|
|
184
|
+
A run's owner may start three recoveries on its own. The count is stored on the run record
|
|
185
|
+
(`recoveries`), carried to each recovered generation, and never lowered by a recovery; a dry run,
|
|
186
|
+
a restart resume, an approval wake and a coordinator's replay are not counted. From the fourth,
|
|
187
|
+
`workflow.recover` needs the person's approval, also in Help mode. A recovery the owner starts
|
|
188
|
+
picks up an edited workflow file once, at its start, when the run has no role assignments and was
|
|
189
|
+
launched from that checkout; any other run adopts an edit only in Help mode. A record repair that
|
|
190
|
+
lowers `recoveries` needs Help mode, like `fixLoopCycle`.
|
|
191
|
+
|
|
184
192
|
The package ships two skills: pinned, ungated `codemode-how-to-workflow` for workflow code-mode
|
|
185
193
|
namespaces and selected job tools, and unpinned, Help-gated `help-how-to-workflow` for authoring and
|
|
186
194
|
maintenance. A selected tools folder also supplies the managed session's pinned `workflow-job-tools` skill.
|
|
187
195
|
|
|
188
196
|
## Workflow sessions
|
|
189
197
|
|
|
190
|
-
In a server (web cockpit) session, a launch
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
In a server (web cockpit) session, a launch runs in the session that asked for it. That session
|
|
199
|
+
owns the run (`PO_SESSION_ID`), its step sessions sit directly under it in the rail, and its agent
|
|
200
|
+
is told when the run ends. On success the notice lists the run directory and the outputs the
|
|
201
|
+
definition declares, and the agent decides what follows from them and its playbook. On failure it
|
|
202
|
+
diagnoses and recovers the run itself, within the allowance above.
|
|
203
|
+
|
|
204
|
+
A child **workflow session** (provenance `workflow-session`) is created only when a person launches
|
|
205
|
+
from the UI with required inputs missing: it collects them, then launches and owns the run. Its
|
|
206
|
+
environment carries `PO_WORKFLOW_LAUNCHER_SESSION_ID`, naming the launching session, which lists
|
|
207
|
+
the run in its Activity group, is told when it ends, and may read its status. Runs owned by
|
|
208
|
+
workflow sessions from earlier versions keep working the same way.
|
|
209
|
+
|
|
210
|
+
- Pass `sessionName` to name that input-collection session. It defaults to the workflow's name,
|
|
211
|
+
then its filename. `name` still names the run context directory.
|
|
212
|
+
- A workflow session's rail row shows the run (`workflow · build › test · 4m`, or a failure or
|
|
201
213
|
pause marked like a pending question) through the host's per-session activity line.
|
|
202
|
-
- Success is posted without starting a turn. Failure wakes
|
|
203
|
-
the
|
|
214
|
+
- Success is posted to it without starting a turn. Failure wakes its owner agent to diagnose and
|
|
215
|
+
recover within the allowance, then report to the launcher. The owner gets a live brief on every
|
|
216
|
+
turn.
|
|
204
217
|
- After a success, a workflow session nobody interacted with asks its launcher to release it, and it
|
|
205
218
|
becomes `stopped · open to wake`. A session whose run failed or paused, or whose agent you
|
|
206
219
|
prompted, stays live until you remove it. Removing or restarting a live workflow session stops its
|
|
@@ -209,11 +222,11 @@ lists the run in its Activity group, is told when it ends, and may read its stat
|
|
|
209
222
|
|
|
210
223
|
## Native execution contract
|
|
211
224
|
|
|
212
|
-
Agent steps require an effective `runConfig.preset`;
|
|
225
|
+
Agent steps require an effective `runConfig.preset`; collecting missing inputs in a workflow session requires `sessionConfig.preset` or top-level `runConfig.preset`. Selection projects preset, modes, profile and domains unchanged. `subagentModel` and `subagentThinking` set Team preferences independently of the step model.
|
|
213
226
|
|
|
214
227
|
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.
|
|
215
228
|
|
|
216
|
-
A
|
|
229
|
+
A success wakes the run's owner to continue its applicable playbook; in a workflow session it is informational there and wakes the launcher instead. Errors wake the owner through durable custom-message admission; a launcher that does not own the run receives an error notification, not a competing recovery turn. The owner checks evidence and recovers within its allowance. A parked run waits for the person's approval decision. User-requested stops do not trigger diagnosis or automatic restart.
|
|
217
230
|
|
|
218
231
|
## Development
|
|
219
232
|
|