@juicesharp/rpiv-workflow 2.0.0 → 2.1.0

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.
@@ -5,22 +5,62 @@ A workflow chains Pi skills into a typed multi-stage graph with audited JSONL st
5
5
  ## Table of Contents
6
6
 
7
7
  - [Running workflows](#running-workflows)
8
+ - [When `/wf` refuses](#when-wf-refuses)
8
9
  - [File structure](#file-structure)
10
+ - [Where files resolve](#where-files-resolve)
9
11
  - [Layer merging](#layer-merging)
10
12
  - [Config files](#config-files)
11
13
  - [Pack files](#pack-files)
12
14
  - [Skill aliases](#skill-aliases)
15
+ - [Run state](#run-state)
16
+ - [Run caps](#run-caps)
17
+ - [Trusting overlay files](#trusting-overlay-files)
18
+ - [Legacy layouts](#legacy-layouts)
13
19
  - [Example](#example)
20
+ - [Glossary](#glossary)
14
21
 
15
22
  ## Running workflows
16
23
 
17
24
  ```bash
18
- /wf # Preview every loaded workflow
19
- /wf <name> # Preview one workflow's stage graph
20
- /wf <name> <input> # Run a workflow with <input> piped to the start stage
25
+ /wf # Preview every loaded workflow
26
+ /wf <name> # Preview one workflow's stage graph
27
+ /wf <name> <input> # Run a workflow with <input> piped to the start stage
28
+ /wf <input> # Run the default workflow with <input>
29
+ /wf <name> <input> --name <slug> # Run under a human-readable alias
30
+ /wf @<ref> # Resume a past run
21
31
  ```
22
32
 
23
- Running `/wf` without arguments shows a list of every loaded workflow and its stages. Running `/wf <name>` without input shows that workflow's stage graph in detail. The `<input>` string becomes the start stage's prompt.
33
+ Running `/wf` without arguments shows a list of every loaded workflow and its stages. Running `/wf <name>` without input shows that workflow's stage graph in detail. The `<input>` string becomes the start stage's prompt. When the first token is not a recognised workflow name, the whole argument is treated as input for the resolved default workflow.
34
+
35
+ `/wf` floats the run off the prompt and returns immediately — stages execute detached in their own child sessions.
36
+
37
+ ### `--name <slug>`
38
+
39
+ Assigns a human-readable alias to the run, stored in the JSONL header and the sidecar `names.json` index. It is honored **only** in the leading or trailing token position (leading wins if both are present) — a `--name` in the middle of your input stays as prompt text (`/wf fix the --name handling bug`) and `/wf` warns that the flag was ignored.
40
+
41
+ Slugs must match `/^[a-zA-Z_][a-zA-Z0-9_-]{0,63}$/`. A slug already in use is rejected, and the error names the run that holds it.
42
+
43
+ ### `@<ref>` — resume
44
+
45
+ ```bash
46
+ /wf @2026-07-21_14-03-22-9f2a
47
+ /wf @nightly-docs
48
+ /wf @.rpiv/workflows/runs/2026-07-21_14-03-22-9f2a.jsonl
49
+ ```
50
+
51
+ The `@` sigil on the first token resumes a past run. `<ref>` is a run-id, a run name assigned with `--name`, or a path to a `.jsonl` trail. A leading space after `@` is tolerated; trailing tokens are ignored. `--name` has no meaning on a resume — it is dropped with a warning.
52
+
53
+ Resume folds the JSONL trail back into run state and re-enters at the pending step. Completed fan-out units replay from their journaled output instead of re-running.
54
+
55
+ ## When `/wf` refuses
56
+
57
+ | Condition | What you see |
58
+ | --- | --- |
59
+ | Non-interactive session | `/wf requires interactive mode` |
60
+ | No workflows registered | A message telling you to install a sibling that bundles workflows or author one in `.rpiv/workflows/config.ts`. This is the standalone-install default state — the package ships zero workflows |
61
+ | Any load issue with `severity: "error"` | `/wf: N config errors — see warnings above (fix and re-run)`; execution is blocked until the config loads clean |
62
+ | A run recorded under an older state schema | Resume is refused with a version mismatch. `STATE_SCHEMA_VERSION` is `2`; there is no in-place migration |
63
+ | First `/wf` before the runtime pre-warms | One toast: `rpiv: loading workflow runtime (first /wf after load)…`. The runtime pre-warms 2000 ms after extension load |
24
64
 
25
65
  ## File structure
26
66
 
@@ -30,7 +70,10 @@ Running `/wf` without arguments shows a list of every loaded workflow and its st
30
70
  ├── packs/ # Pack files (installable bundles)
31
71
  │ ├── my-pipeline.ts
32
72
  │ └── ship.ts
33
- └── runs/ # Audited JSONL run state (<run-id>.jsonl)
73
+ └── runs/ # Audited JSONL run state
74
+ ├── <run-id>.jsonl
75
+ ├── names.json # --name → run-id index
76
+ └── <run-id>/sessions/ # Child session files for the run's stages
34
77
 
35
78
  ~/.config/rpiv-workflow/
36
79
  ├── config.ts # User-level config
@@ -43,6 +86,18 @@ Every workflow file is TypeScript, loaded via `jiti` (no build step required). I
43
86
  import { defineWorkflow, produces, acts, gate, gt, eq } from "@juicesharp/rpiv-workflow";
44
87
  ```
45
88
 
89
+ ## Where files resolve
90
+
91
+ | Layer | Path |
92
+ | --- | --- |
93
+ | User config | `$XDG_CONFIG_HOME/rpiv-workflow/config.ts`, defaulting to `~/.config/rpiv-workflow/config.ts` |
94
+ | User packs | `$XDG_CONFIG_HOME/rpiv-workflow/packs/*.ts`, defaulting to `~/.config/rpiv-workflow/packs/*.ts` |
95
+ | Project config | `<cwd>/.rpiv/workflows/config.ts` |
96
+ | Project packs | `<cwd>/.rpiv/workflows/packs/*.ts` |
97
+ | Run state | `<cwd>/.rpiv/workflows/runs/` |
98
+
99
+ `XDG_CONFIG_HOME` governs the **user** layer only. Unset, empty after trimming, whitespace-only, or **relative** values fall back to `~/.config`. `~` and `~/…` are tilde-expanded and then required to resolve absolute; `~user/…` is not expanded and routes to the default. Absolute values are used verbatim. Pi's own paths (`~/.pi/…`, `PI_CODING_AGENT_DIR`) are deliberately *not* unified with this. `XDG_CONFIG_HOME` is the only environment variable this package reads.
100
+
46
101
  ## Layer merging
47
102
 
48
103
  The loader merges workflows from five layers. Each later layer overrides earlier by workflow name:
@@ -55,7 +110,7 @@ built-in (registered by sibling packages like rpiv-pi)
55
110
  ← project config (<cwd>/.rpiv/workflows/config.ts)
56
111
  ```
57
112
 
58
- Within a layer, the config file wins by workflow name over pack files. Only the config file may set the `default` workflow (the one `/wf <input>` runs without specifying a name). Defaults cascade: `project config > user config > first registered workflow`.
113
+ Within a layer, the config file wins by workflow name over pack files. Only the config file may set the `default` workflow (the one `/wf <input>` runs without specifying a name). Defaults cascade: `project config > user config > first registered workflow`. With nothing registered anywhere, there is no default.
59
114
 
60
115
  ## Config files
61
116
 
@@ -81,12 +136,14 @@ export default {
81
136
  };
82
137
  ```
83
138
 
139
+ The envelope needs at least one of `workflows`, `default`, or `skillAliases`.
140
+
84
141
  ## Pack files
85
142
 
86
- Pack files (`packs/*.ts`) are installable bundles others can drop in. They accept only `Workflow | Workflow[]`. Packs **cannot** set `default` — that lives in the config file.
143
+ Pack files (`packs/*.ts`) are installable bundles others can drop in. They accept only `Workflow | Workflow[]` — the envelope form is rejected, and both `default` and `skillAliases` are hard-rejected.
87
144
 
88
145
  ```typescript
89
- // workflows/my-pipeline.ts
146
+ // .rpiv/workflows/packs/my-pipeline.ts
90
147
  import { defineWorkflow, produces, acts } from "@juicesharp/rpiv-workflow";
91
148
  export default defineWorkflow({
92
149
  name: "my-pipeline",
@@ -100,7 +157,7 @@ This is what makes installable workflow packs safe: a pack contributes new workf
100
157
 
101
158
  ## Skill aliases
102
159
 
103
- `skillAliases` remaps a skill name everywhere — across built-in, user, and project workflows — with one declarative config entry. It lives in the config-file envelope (packs can't set it) and is applied at load time, so `/wf` preview, the JSONL audit, and the runtime skill-registry preflight all see the final skill:
160
+ `skillAliases` remaps a skill name everywhere — across built-in, user, and project workflows — with one declarative config entry. It lives in the config-file envelope (packs can't set it) and is applied at load time **before validation**, so `/wf` preview, the JSONL audit, and the runtime skill-registry preflight all see the final skill:
104
161
 
105
162
  ```typescript
106
163
  // .rpiv/workflows/config.ts
@@ -118,6 +175,48 @@ export default {
118
175
 
119
176
  Every dispatching stage whose effective skill (`stage.skill ?? <stage key>`) matches an alias key is remapped to the target — note the key is the **skill** name, not the stage id. The mapping is one hop only (no transitive chains), skips `run`/`prompt` stages (they don't dispatch a `/skill:`), and merges **project over user** per key. An alias-only config (no `workflows`) is valid. `/wf` shows a `Skill aliases in effect: commit → attributed-commit` banner; an alias key that matches no dispatched skill in any workflow surfaces a load-time warning (a harmless no-op). A bad alias **target** (a skill that doesn't exist) is caught by the existing runtime "skill not found" preflight.
120
177
 
178
+ ## Run state
179
+
180
+ Each `/wf` invocation appends one row per step to `<cwd>/.rpiv/workflows/runs/<run-id>.jsonl` — the append-only system of record that makes runs resumable. Run ids are `YYYY-MM-DD_HH-MM-SS-<4 hex>`, e.g. `2026-07-21_14-03-22-9f2a`.
181
+
182
+ Alongside the trail:
183
+
184
+ - `runs/names.json` — the `--name` slug → run-id index.
185
+ - `runs/<run-id>/sessions/` — the child session files backing that run's stages.
186
+
187
+ Trails carry `STATE_SCHEMA_VERSION`, currently `2`. A run recorded under a different version cannot be resumed.
188
+
189
+ The package sets no explicit file modes; writes use the process umask. If a write fails, the error tells you to check filesystem permissions for `.rpiv/workflows/runs/`.
190
+
191
+ ## Run caps
192
+
193
+ Two backstops bound every run regardless of what a workflow declares:
194
+
195
+ | Cap | Default | Effect |
196
+ | --- | --- | --- |
197
+ | `maxIterations` | `32` | Run-wide ceiling on loop units of every kind. The effective loop cap is `min(loop.max, run.maxIterations)` |
198
+ | Backward-jump budget | `2` per destination stage | At most 3 executions of any one stage across decision-edge loop-backs |
199
+
200
+ ## Trusting overlay files
201
+
202
+ `config.ts` and `packs/*.ts` are TypeScript modules, loaded through `jiti`, which **synchronously evaluates each file's top-level code** on first load and again on every edit (invalidation is mtime-driven). The threat boundary is the same as `npm install` post-install scripts or `tsx script.ts`.
203
+
204
+ If you run Pi in a freshly-cloned repository you do not control, diff `.rpiv/workflows/config.ts` and `.rpiv/workflows/packs/*.ts` before running `/wf`.
205
+
206
+ ## Legacy layouts
207
+
208
+ Three stale layouts from before the unified `.rpiv/workflows/` tree are probed at load time. Each fires a **warning** only — nothing blocks the run — and the old locations are **not** read:
209
+
210
+ | Detected | Migration |
211
+ | --- | --- |
212
+ | `<cwd>/.rpiv-workflow/` | Move `workflows.config.ts` → `.rpiv/workflows/config.ts` and `workflows/*.ts` → `.rpiv/workflows/packs/`, then `rm -rf .rpiv-workflow`. The full shell command is in the warning text |
213
+ | Top-level `*.jsonl` directly under `<cwd>/.rpiv/workflows/` | `mkdir -p .rpiv/workflows/runs && mv .rpiv/workflows/*.jsonl .rpiv/workflows/runs/` |
214
+ | `<userConfigDir>/workflows.config.ts` | `mv <userConfigDir>/workflows.config.ts <userConfigDir>/config.ts` |
215
+
216
+ `.rpiv/workflows/` is commonly gitignored because it holds run state, so a moved `config.ts` may be silently uncommittable. Add `!.rpiv/workflows/config.ts` and `!.rpiv/workflows/packs/` to your `.gitignore` to version-control team workflow config.
217
+
218
+ These advisories sunset roughly three release cycles after 1.0.
219
+
121
220
  ## Example
122
221
 
123
222
  A minimal workflow that chains two skills:
@@ -141,4 +240,20 @@ export default defineWorkflow({
141
240
 
142
241
  Save this as `.rpiv/workflows/config.ts` in your project, then run `/wf review-and-ship implement auth feature`.
143
242
 
144
- For the full DSL reference (all stage factories, routing, outcomes, validators), see [workflow-authoring.md](./workflow-authoring.md).
243
+ ## Glossary
244
+
245
+ One canonical name per concept. Where two words exist for the same thing, the split is deliberate: one is the **authoring surface** (what you type in a workflow file), the other is the **data vocabulary** (what lands in rows, envelopes, and types).
246
+
247
+ | Term | Meaning |
248
+ |------|---------|
249
+ | **Workflow** | The typed graph: a name, a `start` stage, a `stages` record, an `edges` table. Built with `defineWorkflow`, loaded from config layers or registered programmatically. |
250
+ | **Stage** | One node of the graph — a unit of dispatch (skill session, prompt, or script). Two kinds: `"produces"` and `"side-effect"`. |
251
+ | **Kind vs. factory** | `kind` is the persisted data discriminator (`"produces"` \| `"side-effect"`); the factories are authoring verbs: `produces()` → `"produces"`, `acts()` → `"side-effect"`, `terminal()` → `"side-effect"` + `inheritsArtifacts: false`. `acts` is a verb because it reads naturally in a stage record (`commit: acts()`); `"side-effect"` is descriptive because it reads naturally in rows and output envelopes. `terminal` is **not** a third kind — it's `acts` plus an artifact-isolation flag. |
252
+ | **Run** | One execution of a workflow: a `runId`, an append-only JSONL run file (the system of record for resume), and the in-memory state the runner threads. |
253
+ | **Chain** | The path a run walks through the graph — stage activations following `edges` from `start` until `"stop"` or a halt. Loops add generations *within* one chain position. |
254
+ | **Output** | The envelope one stage activation hands downstream: `{ kind, data, meta, artifacts }` (`Output<K, D>`, `output.ts`). What predicates, routes, downstream prompts, and the audit log see. |
255
+ | **Outcome** | The producer-side declaration of *how* a stage's Output gets built from a session: `{ collector, parser? }` (`Outcome`, `output-spec.ts`). The collector enumerates artifacts; the parser interprets them into `data`. |
256
+ | **Verdict** | A judge's Output (`type Verdict = Output`). In `assess` / `verify` loops the judge emits a verdict that `done` reads; verdicts are recorded for resume but never become the stage result. |
257
+ | **Contract** | A skill contract — what a skill `consumes` / `produces`. Declared by the skill's owner or harvested from stage declarations; adjudicated at load time (`canCompose`, the validator) to check composition. |
258
+
259
+ For the full DSL reference (all stage factories, loops, routing, outcomes, validators), see [workflow-authoring.md](./workflow-authoring.md). To drive the runtime from code, see [embedding.md](./embedding.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-workflow",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Pi extension. Chain skills into typed multi-stage workflows with audited JSONL state, predicate routing, and per-stage output validation. Skill-agnostic — bring your own skills.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -88,6 +88,9 @@
88
88
  "validate/",
89
89
  "docs-protocol.ts",
90
90
  "docs/",
91
+ "!docs/*.png",
92
+ "!docs/*.jpg",
93
+ "!docs/*.svg",
91
94
  "README.md",
92
95
  "LICENSE",
93
96
  "!**/*.test.ts"
@@ -105,7 +108,7 @@
105
108
  ]
106
109
  },
107
110
  "dependencies": {
108
- "@juicesharp/rpiv-config": "^2.0.0",
111
+ "@juicesharp/rpiv-config": "^2.1.0",
109
112
  "jiti": "^2.7.0",
110
113
  "typebox": "^1.1.24"
111
114
  },
package/docs/cover.png DELETED
Binary file
package/docs/cover.svg DELETED
@@ -1,120 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 800" role="img" aria-label="rpiv-workflow — Chain Pi skills into typed multi-stage workflows" preserveAspectRatio="xMidYMid meet">
2
- <title>rpiv-workflow — Chain Pi skills into typed multi-stage workflows</title>
3
- <defs>
4
- <style>
5
- .mono { font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
6
- .serif { font-family: 'Iowan Old Style', 'Hoefler Text', Charter, 'Source Serif Pro', Georgia, serif; }
7
- .ink { fill: #ede6d3; }
8
- .text-quiet { fill: #a8a29e; }
9
- .text-distant { fill: #9c968d; }
10
- .ochre { fill: #a8896c; }
11
- .sage { fill: #8a9580; }
12
- .sage-deep { fill: #5e6b56; }
13
- </style>
14
- <radialGradient id="wash-ochre" cx="25%" cy="10%" r="65%">
15
- <stop offset="0%" stop-color="#a8896c" stop-opacity="0.10"/>
16
- <stop offset="100%" stop-color="#a8896c" stop-opacity="0"/>
17
- </radialGradient>
18
- <radialGradient id="wash-sage" cx="85%" cy="90%" r="55%">
19
- <stop offset="0%" stop-color="#8a9580" stop-opacity="0.07"/>
20
- <stop offset="100%" stop-color="#8a9580" stop-opacity="0"/>
21
- </radialGradient>
22
-
23
- </defs>
24
-
25
- <rect width="1280" height="800" fill="#1c1a17"/>
26
- <rect width="1280" height="800" fill="url(#wash-ochre)"/>
27
- <rect width="1280" height="800" fill="url(#wash-sage)"/>
28
-
29
- <g fill="none" stroke="#8a9580" stroke-linecap="round" opacity="0.45">
30
- <path d="M1120 60 q36 -52 88 -60 q40 -5 68 14" stroke-width="1.1"/>
31
- <path d="M1140 80 q28 -18 60 -14 q24 3 42 14" stroke-width="0.7" opacity="0.6"/>
32
- <circle cx="1210" cy="32" r="2" opacity="0.5"/>
33
- <circle cx="1160" cy="60" r="1.4" opacity="0.4"/>
34
- </g>
35
-
36
- <text class="mono text-distant" x="80" y="64" font-size="11" letter-spacing="0.18em">PI AGENT EXTENSION</text>
37
-
38
- <text class="serif ink" x="80" y="152" font-size="80" font-weight="700" letter-spacing="-2.5">rpiv<tspan class="ochre">-</tspan>workflow</text>
39
- <text class="mono text-quiet" x="80" y="196" font-size="19" letter-spacing="0.2">Chain Pi skills into typed multi-stage workflows.</text>
40
-
41
- <line x1="80" y1="228" x2="1200" y2="228" stroke="#2e2b27" stroke-width="1"/>
42
-
43
- <rect x="80" y="264" width="1120" height="440" rx="3" fill="#1c1a17" stroke="#3a3631" stroke-width="1"/>
44
-
45
- <!-- Main timeline (research → plan → review → gate → commit → stop) -->
46
- <line x1="200" y1="468" x2="800" y2="468" stroke="#a8896c" stroke-width="2"/>
47
- <line x1="836" y1="468" x2="1000" y2="468" stroke="#a8896c" stroke-width="2"/>
48
- <line x1="1000" y1="468" x2="1124" y2="468" stroke="#a8896c" stroke-width="2"/>
49
- <path d="M1114 459 L1128 468 L1114 477" fill="none" stroke="#a8896c" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"/>
50
-
51
- <!-- Loopback edge: gate → (down) → (left) → plan -->
52
- <path d="M800 484 Q800 580 720 580 L480 580 Q400 580 400 500 L400 484"
53
- fill="none" stroke="#5e6b56" stroke-width="1.6" stroke-dasharray="4 4" stroke-linecap="round"/>
54
- <path d="M392 494 L400 480 L408 494" fill="none" stroke="#5e6b56" stroke-width="1.6" stroke-linejoin="round" stroke-linecap="round"/>
55
-
56
- <!-- Loopback label -->
57
- <text class="mono sage" x="600" y="572" font-size="11" letter-spacing="0.18em" text-anchor="middle" font-weight="700">REVISE &#183; blockers &gt; 0</text>
58
-
59
- <!-- Branch label on straight path to commit -->
60
- <text class="mono text-distant" x="900" y="456" font-size="11" letter-spacing="0.16em" text-anchor="middle">blockers == 0</text>
61
-
62
- <!-- Node 01: Research (produces) -->
63
- <g transform="translate(200 468)">
64
- <circle r="14" fill="#1c1a17" stroke="#a8896c" stroke-width="2"/>
65
- <circle r="5" fill="#a8896c"/>
66
- <text class="mono text-distant" x="0" y="-36" font-size="11" letter-spacing="0.12em" text-anchor="middle">01 &#183; produces</text>
67
- <text class="mono ink" x="0" y="52" font-size="15" letter-spacing="0.12em" text-anchor="middle" font-weight="700">RESEARCH</text>
68
- </g>
69
-
70
- <!-- Node 02: Plan (produces) -->
71
- <g transform="translate(400 468)">
72
- <circle r="14" fill="#1c1a17" stroke="#a8896c" stroke-width="2"/>
73
- <circle r="5" fill="#a8896c"/>
74
- <text class="mono text-distant" x="0" y="-36" font-size="11" letter-spacing="0.12em" text-anchor="middle">02 &#183; produces</text>
75
- <text class="mono ink" x="0" y="52" font-size="15" letter-spacing="0.12em" text-anchor="middle" font-weight="700">PLAN</text>
76
- </g>
77
-
78
- <!-- Node 03: Review (produces, emits blockers count) -->
79
- <g transform="translate(600 468)">
80
- <circle r="14" fill="#1c1a17" stroke="#a8896c" stroke-width="2"/>
81
- <circle r="5" fill="#a8896c"/>
82
- <text class="mono text-distant" x="0" y="-36" font-size="11" letter-spacing="0.12em" text-anchor="middle">03 &#183; produces</text>
83
- <text class="mono ink" x="0" y="52" font-size="15" letter-spacing="0.12em" text-anchor="middle" font-weight="700">REVIEW</text>
84
- </g>
85
-
86
- <!-- Node 04: Gate (predicate routing — diamond) -->
87
- <g transform="translate(800 468)">
88
- <polygon points="0,-18 18,0 0,18 -18,0" fill="#1c1a17" stroke="#8a9580" stroke-width="2"/>
89
- <circle r="3.5" fill="#8a9580"/>
90
- <text class="mono text-distant" x="0" y="-40" font-size="11" letter-spacing="0.12em" text-anchor="middle">04 &#183; gate</text>
91
- <text class="mono sage" x="0" y="54" font-size="15" letter-spacing="0.12em" text-anchor="middle" font-weight="700">blockers_count</text>
92
- </g>
93
-
94
- <!-- Node 05: Commit (acts) -->
95
- <g transform="translate(1000 468)">
96
- <circle r="16" fill="#1c1a17" stroke="#8a9580" stroke-width="2"/>
97
- <circle r="6" fill="#8a9580"/>
98
- <text class="mono text-distant" x="0" y="-38" font-size="11" letter-spacing="0.12em" text-anchor="middle">05 &#183; acts</text>
99
- <text class="mono sage" x="0" y="54" font-size="15" letter-spacing="0.12em" text-anchor="middle" font-weight="700">COMMIT</text>
100
- </g>
101
-
102
- <!-- Stop terminator -->
103
- <g transform="translate(1140 468)">
104
- <rect x="-6" y="-9" width="12" height="18" fill="#5e6b56" stroke="#5e6b56" stroke-width="1"/>
105
- <text class="mono text-distant" x="0" y="34" font-size="11" letter-spacing="0.18em" text-anchor="middle">STOP</text>
106
- </g>
107
-
108
- <!-- Caption -->
109
- <text class="mono text-distant" x="640" y="660" font-size="12" letter-spacing="0.2em" text-anchor="middle">TYPED STAGES &#183; PREDICATE ROUTING &#183; TS SCRIPTING &#183; .rpiv/workflows/</text>
110
-
111
- <line x1="80" y1="740" x2="1200" y2="740" stroke="#2e2b27" stroke-width="1"/>
112
-
113
- <text class="mono text-distant" x="80" y="776" font-size="12" letter-spacing="0.12em">
114
- <tspan class="ochre" font-weight="700">&#9612; rpiv-workflow</tspan>
115
- <tspan dx="12">&#9474;</tspan>
116
- <tspan dx="12" class="sage">/wf &#183; defineWorkflow() &#183; gate()</tspan>
117
- <tspan dx="12">&#9474;</tspan>
118
- <tspan dx="12">npm:@juicesharp/rpiv-workflow</tspan>
119
- </text>
120
- </svg>