rich-parallel-agents 0.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.
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: rpa
3
+ description: >-
4
+ Use the `rpa` verification gate on top of Orca orchestration. worker_done is a
5
+ claim, not acceptance. Use when coordinating parallel Orca workers whose
6
+ changes must pass task verify before merge, when the user says "rpa",
7
+ "rich parallel agents", "verification gate", "claim then verify", or
8
+ "don't trust worker_done". Prefer this over treating Orca worker_done as
9
+ done. Use the orchestration skill to create/dispatch workers; use rpa to
10
+ claim, verify, retry, integrate, resume, and clean.
11
+ ---
12
+
13
+ # RPA verification gate
14
+
15
+ Orca owns terminals, worktrees, tasks, and `worker_done`.
16
+ RPA owns the gate: claim → verify → accepted SHA only → integrate.
17
+
18
+ Do not treat `orca orchestration` `worker_done` as merge-ready.
19
+ Do not merge worker worktrees by hand. Do not skip verify.
20
+
21
+ If `rpa` is missing from PATH, stop and tell the human to run
22
+ `pnpm rpa skill --install` from the rich-parallel-agents checkout
23
+ (or `rpa skill --install` if the binary already exists).
24
+
25
+ Load this guide from the binary when possible so it cannot drift:
26
+
27
+ ```bash
28
+ rpa skill
29
+ ```
30
+
31
+ ## Coordinator loop
32
+
33
+ ```bash
34
+ # 1. Start a run in the repo that has rpa.yaml
35
+ rpa init --config rpa.yaml --repo <repo>
36
+ # or: rpa run --plan plan.json --plan-only
37
+
38
+ # 2. Dispatch workers with Orca (not rpa)
39
+ orca orchestration task-create --spec "<task>" --task-title "<id>" --json
40
+ orca orchestration worker-start --task <orca_task_id> --worktree <selector> --agent <agent> --json
41
+
42
+ # 3. On worker_done, record a claim — this is NOT accepted
43
+ rpa claim --task <id> --worktree <path> --orca-task <orca_task_id> --dispatch <dispatch_id> --agent <agent>
44
+ # outcome=failed → blocked, skip verify:
45
+ # rpa claim --task <id> --worktree <path> --outcome failed
46
+
47
+ # 4. Task verify. Pass → accepted. Fail → retrying/blocked.
48
+ rpa verify --task <id>
49
+ rpa retry --task <id> # optional: --orca to worker-start --retry-of
50
+
51
+ # 5. Merge accepted SHAs only, then integration verify
52
+ rpa integrate --into <integration_worktree>
53
+ rpa status
54
+ rpa report
55
+ ```
56
+
57
+ `--json` on every agent call.
58
+
59
+ ## Worker contract
60
+
61
+ Workers still finish through Orca (`worker_done` / escalation).
62
+ They must commit (clean HEAD) before claiming done.
63
+ They must not integrate, force-push onto the integration branch, or mark the RPA task accepted.
64
+
65
+ ## Status meanings
66
+
67
+ | status | meaning |
68
+ |---|---|
69
+ | claimed | worker asserted done |
70
+ | accepted | task verify passed |
71
+ | integrated | SHA merged into `--into` |
72
+ | retrying | verify failed, retries remain |
73
+ | blocked | failed claim, max retries, merge conflict, or no-retry error class |
74
+
75
+ `rpa retry --task` on a merge-blocked task returns it to `accepted` for another integrate.
76
+
77
+ ## Config
78
+
79
+ Repo-root `rpa.yaml` (see `rpa.example.yaml`):
80
+
81
+ ```yaml
82
+ verify:
83
+ task:
84
+ - name: test
85
+ command: pnpm test
86
+ required: true
87
+ integration:
88
+ - name: test
89
+ command: pnpm test
90
+ required: true
91
+ retry:
92
+ max: 1
93
+ ```
94
+
95
+ Unknown / credential / environment / permission failures are blocked without retry.
96
+
97
+ ## Cleanup
98
+
99
+ Only RPA-owned resources. Expired leases are investigate signals, not delete permission.
100
+ Worktrees stay unless `--worktrees --force`.
101
+
102
+ ```bash
103
+ rpa resume <run-id> # optional --orca to reconcile worker-list
104
+ rpa clean # dry for worktrees
105
+ rpa history --stats
106
+ ```