@juicesharp/rpiv-pi 2.7.0 → 2.8.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/README.md +2 -2
- package/docs/architecture.md +3 -3
- package/docs/skills.md +9 -7
- package/docs/workflows.md +3 -3
- package/extensions/rpiv-core/built-in-workflows.ts +273 -94
- package/extensions/rpiv-core/built-ins/gates.ts +38 -15
- package/extensions/rpiv-core/built-ins/goal-baseline.ts +43 -1
- package/extensions/rpiv-core/built-ins/grade-panel.ts +98 -29
- package/extensions/rpiv-core/built-ins/index.ts +2 -0
- package/extensions/rpiv-core/built-ins/priors.ts +208 -38
- package/extensions/rpiv-core/built-ins/remediation.ts +96 -0
- package/extensions/rpiv-core/built-ins/slices.ts +5 -1
- package/extensions/rpiv-core/lane-relay-ui.ts +25 -1
- package/extensions/rpiv-core/outcome-derivation.ts +1 -0
- package/extensions/rpiv-core/pipeline-pointer.ts +1 -1
- package/package.json +3 -3
- package/skills/acceptance/SKILL.md +123 -0
- package/skills/grade/SKILL.md +5 -4
- package/skills/quick-plan/SKILL.md +19 -2
- package/skills/remediate/SKILL.md +17 -15
- package/skills/research/SKILL.md +27 -0
- package/skills/slice/SKILL.md +2 -2
- package/skills/validate/SKILL.md +11 -4
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
Turn "build this feature" into a run of named stages — discover → research → design →
|
|
13
13
|
plan → implement → validate → code-review → commit — each one writing a reviewable
|
|
14
|
-
Markdown artifact under `.rpiv/artifacts/` that the next stage consumes. rpiv-pi adds
|
|
14
|
+
Markdown artifact under `.rpiv/artifacts/` that the next stage consumes. rpiv-pi adds 30
|
|
15
15
|
skills, 15 specialist subagents, and four ready-made `/wf` pipelines to
|
|
16
16
|
[Pi Agent](https://github.com/badlogic/pi-mono), and runs every stage in a detached child
|
|
17
17
|
session you watch from a lane dock below your editor. It is for developers who want
|
|
@@ -100,7 +100,7 @@ no overrides.
|
|
|
100
100
|
|
|
101
101
|
## Reference
|
|
102
102
|
|
|
103
|
-
- [docs/skills.md](./docs/skills.md) — all
|
|
103
|
+
- [docs/skills.md](./docs/skills.md) — all 30 skills: what each consumes, what it writes,
|
|
104
104
|
and which ones the model may pick on its own.
|
|
105
105
|
- [docs/workflows.md](./docs/workflows.md) — the four `/wf` pipelines stage by stage,
|
|
106
106
|
plus hand-driven recipes for when you don't want a whole pipeline.
|
package/docs/architecture.md
CHANGED
|
@@ -9,7 +9,7 @@ extending the package.
|
|
|
9
9
|
```
|
|
10
10
|
rpiv-pi/
|
|
11
11
|
├── extensions/rpiv-core/ the one extension: hooks, commands, lanes, guidance, model config
|
|
12
|
-
├── skills/
|
|
12
|
+
├── skills/ 30 contract-carrying skills, one directory each
|
|
13
13
|
├── agents/ 15 subagent profiles, copied to ~/.pi/agent/agents/ at runtime
|
|
14
14
|
└── scripts/ deterministic helpers skills shell out to (Node built-ins only)
|
|
15
15
|
```
|
|
@@ -39,7 +39,7 @@ the siblings contribute capability.
|
|
|
39
39
|
| `/rpiv-models` | always | Interactive only |
|
|
40
40
|
| `/lanes` | always | No-ops with a notice when nothing is running |
|
|
41
41
|
| `ctrl+q` | conditionally | Skipped entirely when `RPIV_LANES_HOTKEY` disables it |
|
|
42
|
-
| `/skill:<name>` ×
|
|
42
|
+
| `/skill:<name>` × 30 | Pi, from the manifest | |
|
|
43
43
|
| `--rpiv-debug` flag | always | Reveals the hidden injected messages below |
|
|
44
44
|
|
|
45
45
|
Session events subscribed: `session_start`, `session_compact`, `session_shutdown`,
|
|
@@ -88,7 +88,7 @@ changes. When `git config user.name` is empty, `$USER` is used, then `unknown`.
|
|
|
88
88
|
|
|
89
89
|
## Pipeline pointer
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
21 of the 30 skills set `disable-model-invocation: true`, which hides them from the
|
|
92
92
|
model's skill list so it cannot wander into a design pass mid-conversation. To keep them
|
|
93
93
|
discoverable, a roughly 120-token stage index is injected at `session_start` and folded
|
|
94
94
|
into the first real user turn after compaction — hidden by default, visible under
|
package/docs/skills.md
CHANGED
|
@@ -8,7 +8,7 @@ whether the model may reach for it on its own.
|
|
|
8
8
|
- **Invoke** — `/skill:<name>` from inside a Pi session, or as a stage of a `/wf`
|
|
9
9
|
workflow (see [workflows.md](./workflows.md)).
|
|
10
10
|
- **Auto** — ✓ means the model may select the skill by itself from your prompt.
|
|
11
|
-
|
|
11
|
+
21 of the 30 skills set `disable-model-invocation: true` and are marked —;
|
|
12
12
|
those run *only* on an explicit `/skill:<name>` or a workflow dispatch. A short
|
|
13
13
|
stage index is injected at session start so the model still knows they exist and
|
|
14
14
|
can suggest one.
|
|
@@ -42,7 +42,8 @@ whether the model may reach for it on its own.
|
|
|
42
42
|
| --- | :---: | --- | --- | --- |
|
|
43
43
|
| `plan` | — | a `design` artifact | `plans/` | Converts a design into parallelized atomic phases with explicit success criteria. Prefer it when a straightforward phased breakdown is enough. |
|
|
44
44
|
| `blueprint` | — | `research` or `solutions` (optional) | `plans/` | Fuses design + plan in one pass: vertical-slice decomposition with developer micro-checkpoints between phases, emitting an implement-ready plan. Lighter subagent fan-out than `design` — it trusts the research artifact's integration and precedent sections. |
|
|
45
|
-
| `
|
|
45
|
+
| `acceptance` | — | the verbatim `goal` brief (+ a `research` artifact for evidence grounding) | `acceptance/` | Derives the executable acceptance inventory from the goal — ID'd observable outcomes, each with a runnable evidence command where one can be derived — frozen BEFORE planning so the standard of completion cannot inherit the plan's scope. The completeness grade anchors on it; validate executes it. Dispatched by `ship` and `build` between research and planning. |
|
|
46
|
+
| `quick-plan` | — | a `research` artifact (+ the verbatim `goal` brief and `acceptance` inventory under `ship`) | `plans/` | One lightweight plan for a small, well-understood task: at most a single targeted `codebase-pattern-finder` dispatch, then a single `status: ready` phased plan — no slice decomposition, no risk flags, no questions; goal asks it doesn't cover are explicitly deferred under `## Out of Scope`. The `ship` pipeline's plan stage. |
|
|
46
47
|
| `elaborate` | — | a `plan` artifact | `elaborations/` | Writes implement-ready code into ONE phase of a synthesized plan. A fanout unit; the results are stitched back into the plan. |
|
|
47
48
|
| `revise` | — | a `plan` (+ optional `reviews`) | `plans/` | Surgically updates an existing plan after review feedback, a mid-implement blocker, or a scope change — preserving structure instead of rewriting. |
|
|
48
49
|
| `amend` | — | one artifact + its `grade` verdicts | same artifact | Fixes only the failing dimensions a grade panel flagged and re-emits the artifact in place. Single-pass, no subagents; a gate's revise stage. |
|
|
@@ -53,7 +54,7 @@ whether the model may reach for it on its own.
|
|
|
53
54
|
| --- | :---: | --- | --- | --- |
|
|
54
55
|
| `implement` | — | a `plan` artifact | code changes | Executes a plan phase by phase, verifying each phase against its success criteria before moving on. |
|
|
55
56
|
| `validate` | — | a `plan` + the working tree | `validation/` | Runs each phase's success criteria against the working tree and reports a `pass` / `fail` verdict. |
|
|
56
|
-
| `remediate` | — | a `plan` + its failing `validation` | side-effect | The `validate` repair arm's body: re-runs each failed `verify-at-implement` risk ruling's own prescribed procedure, applies the minimal fix grounded in the failing report, and confirms
|
|
57
|
+
| `remediate` | — | a `plan` + its failing `validation` | side-effect | The `validate` repair arm's body: re-runs each failed `verify-at-implement` risk ruling's own prescribed procedure and each structured `blockers:` entry's failing command, applies the minimal fix grounded in the failing report, and confirms it passes. Workflow-dispatched only — `build`'s `validate-fix` stage. |
|
|
57
58
|
| `code-review` | ✓ | the working tree, a branch, or a PR | `reviews/` | Parallel specialist agents audit the diff, compare against peer code, and verify claims. Emits `blockers_count` plus severity-tagged findings. Scope argument accepts `staged`, `working`, a hash, `A..B`, or a branch; empty scope defaults to feature-branch vs default-branch. |
|
|
58
59
|
| `architecture-review` | — | a file, directory, or module path | `architecture-reviews/` | Top-down, layer-by-layer audit with a uniform 10-dimension checklist per layer, triaged through a developer checkpoint. Emits a phased polish plan `blueprint` can consume per phase. Language-agnostic. |
|
|
59
60
|
| `grade` | — | one artifact + one dimension name | `verdicts/` | Judges ONE artifact along ONE named quality dimension and writes a verdict JSON. It only judges — no fixes. A panel member, not standalone. |
|
|
@@ -79,10 +80,11 @@ Everything lands under `.rpiv/artifacts/` in the project you are working in:
|
|
|
79
80
|
```
|
|
80
81
|
.rpiv/artifacts/
|
|
81
82
|
├── goal/ discover/ research/
|
|
82
|
-
├── solutions/
|
|
83
|
-
├── elaborations/
|
|
84
|
-
├── verdicts/
|
|
85
|
-
|
|
83
|
+
├── acceptance/ solutions/ slices/
|
|
84
|
+
├── designs/ elaborations/ plans/
|
|
85
|
+
├── subplans/ verdicts/ reviews/
|
|
86
|
+
├── validation/ architecture-reviews/
|
|
87
|
+
└── triage/ handoffs/
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
The directory is created lazily by the first skill that writes into it.
|
package/docs/workflows.md
CHANGED
|
@@ -37,7 +37,7 @@ each phase's plan must build on the ones before it.
|
|
|
37
37
|
|
|
38
38
|
### `build`
|
|
39
39
|
|
|
40
|
-
`goal → research → slice → slice gate (+ fix loop) → design-slice (parallel fanout) → design-review → synthesize → plan gate → elaborate (parallel fanout) → re-grade → implement → validate → commit`
|
|
40
|
+
`goal → research → acceptance → slice → slice gate (+ fix loop) → design-slice (parallel fanout) → design-review → synthesize → plan gate → elaborate (parallel fanout) → re-grade → implement → validate → commit`
|
|
41
41
|
|
|
42
42
|
Your brief, sliced. It captures your brief verbatim as a goal artifact — the north star the
|
|
43
43
|
quality gates and `validate` anchor against — then decomposes the work into vertical
|
|
@@ -47,9 +47,9 @@ code is elaborated into it. Three automated gates plus one human checkpoint.
|
|
|
47
47
|
|
|
48
48
|
### `ship`
|
|
49
49
|
|
|
50
|
-
`goal → research → plan → plan-cite-check → grade → implement → implement-scope-check → reconcile → validate → commit`
|
|
50
|
+
`goal → research → acceptance → plan → plan-cite-check → grade → implement → implement-scope-check → reconcile → validate → (validate-fix, once) | commit`
|
|
51
51
|
|
|
52
|
-
Ship a small, well-understood task in one lightweight forward pass. The verbatim brief is the goal artifact; a trimmed research stage (
|
|
52
|
+
Ship a small, well-understood task in one lightweight forward pass. The verbatim brief is the goal artifact; a trimmed research stage sized to the brief's pre-chewedness (none or one verify-only `codebase-analyzer` dispatch when the brief names the root cause, files, or fix; at most two targeted dispatches otherwise — never a full `/skill:research` pass) grounds it; an `acceptance` stage then derives the executable standard of completion from the goal — ID'd observable outcomes with runnable evidence commands, frozen BEFORE planning so the standard cannot inherit the plan's scope (research grounds only the evidence, never the item set). A single unsliced plan from `quick-plan` receives the verbatim goal and the inventory alongside the research doc, records a per-item disposition (`implemented` naming the phase, or `deferred` with a reason), and must explicitly defer any goal ask it narrows out; a deterministic citation floor and one tier-independent three-dimension grade (correctness, completeness, architecture-fit — architecture-fit cannot be dropped from a light roster) gate the plan before `implement`. The citation floor stops the run only on a phase body edit missing from its `files:` declaration (an undeclared write corrupts implement's dependency derivation); every citation-resolution finding — unresolved path, ambiguity, line drift — is advisory (recorded on the verdict, severity `low`) and rides to the grade panel, whose correctness unit receives the floor's verdict as `--cite-check` and adjudicates each finding by symbol instead of the run dying over a resolver limitation. Every gate is stop-on-fail — no confirm panels, snapshots, or code-elaboration lane — and a red gate surfaces as `stopped at <gate>: <reason>` in the end-of-run toast and lane recap (never a ✓); hand-repair, then resume with `/wf @<run-id>` to re-run the halted gate against the repaired tree, reusing every upstream artifact. A goal-anchored `validate` judges the landing before `commit` — and EXECUTES the acceptance inventory's evidence commands against the finished tree (a failing item forces `verdict: fail` and lands as a structured, remediable blocker) — with the preset's one sanctioned repair arm: a validate `fail` carrying structured remediable handles (a `pass: false` risk ruling or a `blockers:` entry) buys ONE bounded `remediate` hop — re-verified end-to-end through the scope floor and reconcile — before any remaining fail halts; a prose-only fail halts immediately. Best for tasks small enough to plan in one pass; prefer `build` for anything needing decomposition.
|
|
53
53
|
|
|
54
54
|
## Review loops
|
|
55
55
|
|