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.
- package/dist/classify.d.ts +4 -0
- package/dist/classify.js +46 -0
- package/dist/clean.d.ts +25 -0
- package/dist/clean.js +64 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +449 -0
- package/dist/config.d.ts +6 -0
- package/dist/config.js +142 -0
- package/dist/errors.d.ts +4 -0
- package/dist/errors.js +8 -0
- package/dist/exec.d.ts +2 -0
- package/dist/exec.js +58 -0
- package/dist/format.d.ts +5 -0
- package/dist/format.js +71 -0
- package/dist/gate.d.ts +24 -0
- package/dist/gate.js +329 -0
- package/dist/git.d.ts +19 -0
- package/dist/git.js +64 -0
- package/dist/history.d.ts +27 -0
- package/dist/history.js +106 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +18 -0
- package/dist/integrate.d.ts +6 -0
- package/dist/integrate.js +185 -0
- package/dist/journal.d.ts +10 -0
- package/dist/journal.js +34 -0
- package/dist/orca.d.ts +16 -0
- package/dist/orca.js +168 -0
- package/dist/plan.d.ts +6 -0
- package/dist/plan.js +114 -0
- package/dist/repair.d.ts +13 -0
- package/dist/repair.js +110 -0
- package/dist/resources.d.ts +8 -0
- package/dist/resources.js +41 -0
- package/dist/resume.d.ts +12 -0
- package/dist/resume.js +129 -0
- package/dist/run.d.ts +18 -0
- package/dist/run.js +142 -0
- package/dist/skill.d.ts +18 -0
- package/dist/skill.js +70 -0
- package/dist/store.d.ts +30 -0
- package/dist/store.js +368 -0
- package/dist/types.d.ts +160 -0
- package/dist/types.js +1 -0
- package/dist/verify.d.ts +9 -0
- package/dist/verify.js +42 -0
- package/package.json +52 -0
- package/skills/rpa/SKILL.md +106 -0
|
@@ -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
|
+
```
|