@agimon-ai/po-workflow 0.0.0-alpha.200 → 0.0.0-alpha.201

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 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 does not run in the session that asked for it. The
191
- session creates a child **workflow session** (provenance `workflow-session`), nested under it in the
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
194
- environment also carries `PO_WORKFLOW_LAUNCHER_SESSION_ID`, naming the launching session, which
195
- lists the run in its Activity group, is told when it ends, and may read its status.
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.
200
- - The workflow session's rail row shows the run (`workflow · build › test · 4m`, or a failure or
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 the workflow owner for local diagnosis;
203
- the launcher receives a notification only. The owner gets a live brief on every turn.
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`; 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.
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 delegated success is informational in the workflow owner and wakes the launcher to continue its applicable playbook. Errors wake the owner through durable custom-message admission; the launcher receives an error notification, not a competing recovery turn. The owner checks evidence and repairs within its authority. A parked run waits for the person's approval decision. User-requested stops do not trigger diagnosis or automatic restart.
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