@webpresso/plugin-opencode 0.0.6 → 0.0.7

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.
@@ -15,15 +15,27 @@
15
15
 
16
16
  ## Core Principle
17
17
 
18
- > **"A plan is only as strong as its weakest unchecked assumption — and only as fast as its coarsest task granularity."**
18
+ > **"A plan is only as strong as its weakest unchecked claimonly as elegant as what it refuses to add — and only as fast as its coarsest task granularity."**
19
19
 
20
- Every technology claim, file path, API assumption, and architecture decision in a blueprint must be verified against reality before implementation begins. Unverified plans create cascading failures during execution. Poorly structured plans serialize work that could run in parallel — wasting 10x the wall-clock time.
20
+ Every technology claim, file path, API, version, and architecture decision must be verified against reality before implementation. **Zero assumptions:** model memory is not evidence. Unverified plans cascade into execution failure. Coarse tasks serialize work that should run in parallel.
21
21
 
22
- Refinement has two equally important goals:
22
+ ### Non-negotiable bar (always)
23
23
 
24
- 1. **Correctness** Every claim is fact-checked, every edge case documented
25
- 2. **Parallelizability** Tasks are structured in Blueprint format with maximum independence for parallel execution (`/goal` autopilot, `ultragoal`)
26
- 3. **Simplicity and safety** DRY, SOLID, YAGNI, KISS, and public package leak-prevention gates are applied before abstractions or release surfaces are approved
24
+ | Target | Definition | Fail condition |
25
+ | ------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
26
+ | **100% confidence** | Every material claim has a code pinpoint and/or official-doc citation at a stated version | Any “probably / should work / AI recall” left standing |
27
+ | **Elegance** | Smallest coherent design; delete/reuse over add | Heavier option kept without recorded rejection of lighter ones |
28
+ | **Durability** | Survives upgrades and adjacent change; ownership boundaries clear | Rewrite-prone seams or version-blind third-party usage |
29
+ | **Efficiency** | Minimal critical path; true parallel waves; no speculative work | False dependencies, CP > 0, busywork tasks |
30
+
31
+ Refinement goals (all required):
32
+
33
+ 1. **Correctness** — Every claim fact-checked; every edge case documented
34
+ 2. **Zero assumptions** — Unproven statements removed or proven
35
+ 3. **Code pinpoints** — Paths, symbols, and signatures anchored in the repo
36
+ 4. **Official latest docs** — Third-party behavior from primary sources at latest/pinned version
37
+ 5. **Parallelizability** — Maximum independent tasks for `/goal` / `ultragoal`
38
+ 6. **Elegance, durability, efficiency** — Not merely correct; DRY/SOLID/YAGNI/KISS + public-package safety
27
39
 
28
40
  ## When to Use
29
41
 
@@ -45,65 +57,37 @@ Refinement has two equally important goals:
45
57
 
46
58
  ## The Refinement Pipeline
47
59
 
60
+ Phases 1–3 (and independent review lenses) run **in parallel**. Only cross-plan alignment, blueprint enforcement, and apply need their inputs.
61
+
48
62
  ```
49
63
  Blueprint (Draft/In-Progress)
50
64
 
51
-
52
- ┌─────────────────────────────────┐
53
- │ PHASE 1: Technology Fact-Check │ ← Web research + docs
54
- - Library compatibility
55
- - API correctness
56
- - Version constraints
57
- - Runtime compatibility
58
- └──────────────┬──────────────────┘
59
-
60
-
61
- ┌─────────────────────────────────┐
62
- │ PHASE 2: Codebase Verification │ ← Grep/Read existing code
63
- │ - File paths exist │
64
- │ - APIs match signatures │
65
- │ - Patterns match conventions │
66
- │ - Dependencies available │
67
- └──────────────┬──────────────────┘
68
-
69
-
70
- ┌─────────────────────────────────┐
71
- │ PHASE 3: Architecture Review │ ← Adversarial critique
72
- │ - Race conditions │
73
- │ - Echo loops │
74
- │ - Error cascades │
75
- │ - Concurrent access │
76
- │ - Auth/session edge cases │
77
- └──────────────┬──────────────────┘
78
-
79
-
65
+ ├──────────────────┬──────────────────┐
66
+ ▼ ▼ ▼
67
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
68
+ PHASE 1 (//) │ PHASE 2 (//) │ │ PHASE 3 (//) │
69
+ Official latest │ │ Code pinpoints Architecture +
70
+ 3rd-party docs │ path + symbol │ │ elegance/ │
71
+ version-pinned 0 assumptions │ durability │
72
+ └────────┬────────┘ └────────┬────────┘ └────────┬────────┘
73
+ └──────────────────┬──────────────────┘
74
+
80
75
  ┌─────────────────────────────────┐
81
- │ PHASE 4: Cross-Plan Alignment │ ← Read dependent blueprints
82
- │ - Upstream deps still valid
83
- │ - Downstream plans updated │
84
- │ - No contradictions │
76
+ │ PHASE 4: Cross-Plan Alignment │
77
+ │ - Upstream/downstream contracts
85
78
  │ - Shared decisions consistent │
86
79
  └──────────────┬──────────────────┘
87
-
88
80
 
89
81
  ┌─────────────────────────────────┐
90
- │ PHASE 5: Blueprint Enforcement ← Structure for parallelism
91
- │ - Task granularity audit
92
- │ - Dependency graph validation
93
- │ - File conflict detection │
94
- │ - Wave optimization │
95
- │ - TDD steps in every task │
82
+ │ PHASE 5: Max-parallel Blueprint│
83
+ │ - Split/merge for RW/CPR/CP=0
84
+ │ - Depends + Files + TDD
96
85
  └──────────────┬──────────────────┘
97
-
98
86
 
99
87
  ┌─────────────────────────────────┐
100
- │ PHASE 6: Apply & Consolidate │ ← Edit blueprint
101
- │ - Apply all fixes (Fx tags)
102
- │ - Update Edge Cases table
103
- │ - Update Risks table │
104
- │ - Update Technology Choices │
105
- │ - Update cross-plan references │
106
- │ - Rewrite tasks in Blueprint fmt│
88
+ │ PHASE 6: Apply & Consolidate │
89
+ │ - Fx tags, tables, waves
90
+ │ - Ready only at 100% confidence
107
91
  └─────────────────────────────────┘
108
92
  ```
109
93
 
@@ -134,20 +118,29 @@ surface before execution.
134
118
 
135
119
  ---
136
120
 
137
- ## Phase 1: Technology Fact-Check
121
+ ## Phase 1: Technology Fact-Check (official, latest, version-pinned)
122
+
123
+ **Goal:** Verify every external technology claim against **official/upstream primary sources** at the **latest stable or plan-pinned version**. Secondary sources (blogs, forums, model memory) never stand alone.
124
+
125
+ ### Source order (strict)
126
+
127
+ 1. Vendor/official docs for that version (docs site, OpenAPI, man pages)
128
+ 2. Upstream release notes / changelog for that version
129
+ 3. Package registry metadata (resolved version, peer deps, engines)
130
+ 4. Maintainer GH issues/discussions **only** as supplemental after (1–3)
138
131
 
139
- **Goal:** Verify every technology claim against official documentation and known issues.
132
+ Route through `best-practice-research` when reusable; escalate to `deep-research` for multi-source depth. Prefer Context7/WebFetch of the **official** URL over search snippets.
140
133
 
141
134
  ### What to Check
142
135
 
143
- | Category | Check | How |
144
- | ------------------------------ | ------------------------------------------- | ----------------------------------------------------- |
145
- | **Library compatibility** | Does library X work with runtime Y? | Web search `"library-name" + "runtime-name" + issues` |
146
- | **API correctness** | Does the API exist as described? | Read official docs via Context7 or WebFetch |
147
- | **Version constraints** | Is the version available? Breaking changes? | npm registry, changelogs |
148
- | **Native addon compatibility** | Does it compile for all targets? | Check Bun/Node/Deno compatibility |
149
- | **Protocol correctness** | Is the wire protocol right? | Official docs (e.g., WebSocket subprotocols) |
150
- | **Platform limits** | Are there timeout/memory/size limits? | Platform docs (e.g., Workers limits) |
136
+ | Category | Check | How |
137
+ | ------------------------------ | -------------------------------------------- | ---------------------------------------------------------- |
138
+ | **Library compatibility** | Does library X work with runtime Y at ver Z? | Official compat matrix + engines field + release notes |
139
+ | **API correctness** | Does the API exist as described at that ver? | Official docs page for **that version**, not “latest blog” |
140
+ | **Version constraints** | Pinned/latest available? Breaking changes? | Registry + changelog between plan version and current |
141
+ | **Native addon compatibility** | Compiles for all targets? | Official platform support + CI matrix docs |
142
+ | **Protocol correctness** | Wire protocol right? | Official protocol/spec docs |
143
+ | **Platform limits** | Timeout/memory/size limits? | Platform official limits docs (e.g. Workers) |
151
144
 
152
145
  ### Output Format
153
146
 
@@ -156,34 +149,44 @@ For each finding, assign:
156
149
  - **ID**: F1, F2, F3...
157
150
  - **Severity**: CRITICAL (blocks implementation), HIGH (causes bugs), MEDIUM (suboptimal), LOW (cosmetic)
158
151
  - **Claim**: What the blueprint says
159
- - **Reality**: What documentation/research shows
152
+ - **Reality**: What official docs show (quote or paraphrase + **URL + version/date**)
160
153
  - **Fix**: Concrete change to the blueprint
161
154
 
162
155
  ### Anti-Patterns
163
156
 
164
- | Anti-Pattern | Why It's Wrong | Do This Instead |
165
- | ------------------------------------- | --------------------------------- | ----------------------------------------- |
166
- | "Library X should work" | Untested assumption | Verify with official docs + GitHub issues |
167
- | Trusting AI knowledge of library APIs | Models hallucinate API signatures | Read actual docs via Context7/WebFetch |
168
- | Assuming latest version compatibility | Breaking changes happen | Check specific version compatibility |
169
- | Ignoring native addon constraints | Build failures in CI/CD | Test against all target runtimes |
157
+ | Anti-Pattern | Why It's Wrong | Do This Instead |
158
+ | ------------------------------------- | --------------------------------- | ------------------------------------------------- |
159
+ | "Library X should work" | Untested assumption | Official docs + version-pinned evidence |
160
+ | Trusting AI knowledge of library APIs | Models hallucinate API signatures | Fetch official docs for the exact version |
161
+ | "Latest" without stating which latest | Drift between refine and execute | Record version identity (semver / date / channel) |
162
+ | Blog/SO as sole source | Often wrong or version-skewed | Primary docs first; blogs only as supplemental |
163
+ | Ignoring native addon constraints | Build failures in CI/CD | Official target matrix + engines |
170
164
 
171
- ## Phase 2: Codebase Verification
165
+ ## Phase 2: Codebase Verification (pinpoint to code)
172
166
 
173
- **Goal:** Verify every file path, import, API reference, and pattern assumption against the actual codebase.
167
+ **Goal:** Prove every local claim against the live tree with **exact anchors** — path + symbol (+ line range when it reduces ambiguity). No “roughly around” or “probably in utils”.
174
168
 
175
- Use the lightest reliable inspection tool first: prefer `rg -n` for search, `sed -n` for exact line ranges, and only escalate to ad hoc scripts when the extraction genuinely needs structure across many files.
169
+ Use the lightest reliable inspection tool first: prefer `rg -n` for search, read exact ranges for definitions, and only escalate to ad hoc scripts when structure across many files is required.
176
170
 
177
171
  ### What to Check
178
172
 
179
- | Category | Check | How |
180
- | ---------------------- | ------------------------------------------ | --------------------------------------- |
181
- | **File paths** | Do referenced files exist at stated paths? | `Glob` for patterns, `Read` for content |
182
- | **API signatures** | Do functions have the expected parameters? | `Grep` for function definitions |
183
- | **Import paths** | Are package exports available? | Read `package.json` exports field |
184
- | **Existing patterns** | Does the codebase use the assumed pattern? | `Grep` for similar code |
185
- | **Naming conventions** | Do new files follow existing naming? | `ls` existing directories |
186
- | **Configuration** | Are config values/env vars available? | Read config files, `.env.example` |
173
+ | Category | Check | How — evidence shape |
174
+ | ---------------------- | ------------------------------------------ | -------------------------------------------- |
175
+ | **File paths** | Do referenced files exist at stated paths? | Path exists; cite path in the fix |
176
+ | **API signatures** | Parameters/returns match the plan? | `path` + symbol + signature snippet |
177
+ | **Import paths** | Package exports available? | `package.json` `exports` field + importer |
178
+ | **Existing patterns** | Assumed pattern actually used? | 1–3 real call sites (path + symbol) |
179
+ | **Naming conventions** | New files match neighbors? | Sibling directory listing + one exemplar |
180
+ | **Configuration** | Config/env keys real? | Config file / `.env.example` path + key name |
181
+
182
+ ### Evidence rule
183
+
184
+ Every material correction must include a **code pinpoint** of the form:
185
+
186
+ - `packages/foo/src/bar.ts` — `export function baz(...)` (or equivalent symbol)
187
+ - or `packages/foo/package.json` — `exports["./bar"]`
188
+
189
+ If you cannot produce a pinpoint, the claim is an **assumption** → drop it or block.
187
190
 
188
191
  ### Codebase Red Flags
189
192
 
@@ -192,10 +195,11 @@ Use the lightest reliable inspection tool first: prefer `rg -n` for search, `sed
192
195
  - Blueprint extends a class that doesn't exist yet (timing dependency)
193
196
  - Blueprint assumes a function returns X but it actually returns Y
194
197
  - Blueprint references env var that isn't in any config
198
+ - Blueprint cites a helper without a path/symbol (un-pinpointed)
195
199
 
196
200
  ## Phase 3: Architecture Review
197
201
 
198
- **Goal:** Adversarial critique of the architecture — find every way it can break.
202
+ **Goal:** Adversarial critique of the architecture — find every way it can break — then select the most **elegant, durable, and efficient** design the constraints allow (not merely a correct one). Record why lighter alternatives were rejected when a heavier option is kept.
199
203
 
200
204
  ### The Adversarial Checklist
201
205
 
@@ -609,18 +613,23 @@ Stop and escalate to the user if:
609
613
  - The number of CRITICAL + HIGH findings exceeds 10 (plan may need fundamental rethinking)
610
614
  - A technology assumption affects more than 3 tasks (cascading rewrite needed)
611
615
  - Parallelization score is **D** (1 task in Wave 0) — plan needs fundamental restructure
616
+ - Any material claim still lacks a **code pinpoint** or **official-doc + version** after a full pass (confidence ≠ 100%)
617
+ - The “ready” design is only correct, not the most **elegant / durable / efficient** option under constraints
612
618
 
613
619
  ## Parallel Agent Strategy
614
620
 
615
- The refinement pipeline itself is designed for parallel execution:
621
+ The refinement pipeline itself **must** maximize concurrency:
622
+
623
+ | Lane | Phase | Tools | Focus |
624
+ | ---- | ------------------------ | --------------------------------------- | ------------------------------------------------------- |
625
+ | A | Technology fact-check | WebSearch, WebFetch, Context7, registry | Official latest docs, version-pinned APIs |
626
+ | B | Codebase verification | Grep, Glob, Read | Path + symbol pinpoints, 0 assumptions |
627
+ | C | Architecture review | Blueprint + evidence from A/B | Races, elegance, durability, efficiency |
628
+ | D | Review lenses (optional) | plan-*-review skills | CEO / design / eng / DevEx in parallel when independent |
616
629
 
617
- | Agent | Phase | Tools | Focus |
618
- | ------- | --------------------- | ----------------------------- | ---------------------------------- |
619
- | Agent 1 | Technology Fact-Check | WebSearch, WebFetch, Context7 | Library docs, compatibility, APIs |
620
- | Agent 2 | Codebase Verification | Grep, Glob, Read | File paths, existing code patterns |
621
- | Agent 3 | Architecture Review | Read (blueprint only) | Adversarial critique, edge cases |
630
+ **Lanes A–C(/D) run in parallel.** Phases 4–6 (cross-plan, blueprint enforcement, apply) run after their inputs land — not after an artificial full serial wait when a subset already unblocks the next edit.
622
631
 
623
- Agents 1-3 run in parallel. Phases 4-6 (Cross-Plan, Blueprint Enforcement, Apply) run sequentially after all agents complete.
632
+ **Do not** refine serially “for simplicity” when claims partition cleanly (external vs local vs architecture).
624
633
 
625
634
  ## Related Skills
626
635
 
@@ -5,46 +5,173 @@ title: Ralplan Consensus Planning
5
5
  status: active
6
6
  scope: repo
7
7
  applies_to: [agents]
8
- related: [plan-refine, plan-eng-review, plan-ceo-review, plan-design-review, plan-devex-review]
8
+ related:
9
+ [
10
+ deep-interview,
11
+ best-practice-research,
12
+ deep-research,
13
+ plan-refine,
14
+ plan-eng-review,
15
+ plan-ceo-review,
16
+ plan-design-review,
17
+ plan-devex-review,
18
+ ultragoal,
19
+ autopilot,
20
+ team,
21
+ ]
9
22
  created: "2026-07-13"
10
- last_reviewed: "2026-07-13"
23
+ last_reviewed: "2026-08-03"
11
24
  name: ralplan
12
- description: "Consensus planning gate for plan-refine"
25
+ description: "Grounded consensus plan gate: code, research, blueprint, plan-*, refine. No impl."
13
26
  ---
14
27
 
15
28
  # Ralplan Consensus Planning
16
29
 
30
+ ## Use when (freeform)
31
+
32
+ - "ralplan", "consensus plan", "plan gate", "approve the plan first"
33
+ - "research then plan", "ground the plan before coding"
34
+ - user wants a durable blueprint ready for execution without implementing yet
35
+
17
36
  Use when the user invokes `$ralplan`, asks for RALPLAN, or wants consensus planning before execution.
18
37
 
19
- `ralplan` is an agent-kit planning gate, not an implementation lane. It applies consensus review to a durable plan before execution starts.
20
-
21
- ## Workflow
22
-
23
- 1. Create or identify the durable blueprint or plan artifact that will own the work.
24
- 2. Run the `plan-refine` methodology against that artifact: verify local code facts, verify external claims when relevant, sharpen acceptance criteria, split independent work, and lock verification gates.
25
- 3. Apply the relevant review lenses before execution:
26
- - `plan-eng-review` for architecture, sequencing, tests, and rollout risk.
27
- - `plan-ceo-review` when scope, customer value, or sequencing tradeoffs matter.
28
- - `plan-design-review` when UI/UX is material.
29
- - `plan-devex-review` when docs, CLI/API ergonomics, onboarding, or migration risk is material.
30
- 4. Consolidate the reviews into one decision record with:
31
- - decision and drivers
32
- - alternatives considered
33
- - material corrections
34
- - implementation tasks and dependencies
35
- - verification gates
36
- - residual risks or blockers record each as a closed decision row (Material Decisions) or a tech-debt record with an owner and follow-up; the Trust Dossier's Residual Unknowns section must still read exactly `None.` at promotion
37
- 5. Stop at an approved plan or an explicit blocker. Do not edit implementation code from this skill unless the user explicitly changes the task from planning to execution.
38
+ `ralplan` is an **orchestrated planning gate**, not an implementation lane. It produces one durable **blueprint**, reviews it, hardens it with `/plan-refine`, then stops.
39
+
40
+ ## Iron laws
41
+
42
+ 1. **Blueprint is the plan.** Freeform notes are not durable consensus. Create or bind a blueprint before reviews.
43
+ 2. **Ground before drafting.** Code dive (+ bounded external research when needed) happens **before** the blueprint draft is treated as serious.
44
+ 3. **Reviews before refine.** Run risk-matched `plan-*` skills on the blueprint, apply findings, **then** `/plan-refine`.
45
+ 4. **No implementation.** Do not edit product source, commit implementation, or start `ultragoal`/`team`/`autopilot` unless the user explicitly switches out of planning.
46
+ 5. **No review stampede.** Do not fan out multi-host outside-voice swarms. Prefer in-host skill loads; at most one outside voice only if the user asks or the change is auth / data-loss / public-API sensitive.
47
+ 6. **Efficiency by scope.** Skip optional phases that cannot change the plan (see Complexity tiers).
48
+
49
+ ## Complexity tiers (pick one early)
50
+
51
+ | Tier | Signals | Required path |
52
+ | -------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
53
+ | **XS** | Single file/symbol, clear bugfix, no new deps/API | Code dive → blueprint → `plan-refine` (add `plan-eng-review` only when architecture/tests/rollout are non-obvious) |
54
+ | **S/M** | Multi-file feature, local patterns known, maybe one known lib | Full path; best-practice-research (BPR) only if third-party/API correctness matters |
55
+ | **L/XL** | New subsystem, auth/data/migration/public API, multi-package | Full path + CEO (+ design/devex when material); prefer deliberate depth on risks |
56
+
57
+ If ambiguity is high (no clear goal, conflicting constraints), run `deep-interview` first, then resume ralplan.
58
+
59
+ ## Workflow (strict order)
60
+
61
+ ### 0. Intake
62
+
63
+ - Capture problem, constraints, non-goals, and success signal from the user message and available context.
64
+ - State the chosen complexity tier and which optional phases will run or skip (one short line).
65
+ - If an existing blueprint already owns this work, bind it; do not create a duplicate.
66
+
67
+ ### 1. Code dive (always)
68
+
69
+ - Inspect the live tree for owners, call sites, patterns, configs, and constraints.
70
+ - Pin **our** dependency versions from `package.json` / lockfile / workspace manifests for anything the plan may touch.
71
+ - Record code pinpoints (`path` + symbol) for every local claim that will enter the plan.
72
+ - Prefer repo search/read tools; do not ask the user for facts the tree already answers.
73
+
74
+ ### 2. External research (conditional, bounded)
75
+
76
+ Run when third-party behavior, SOTA practice, migrations, or framework APIs affect correctness. Skip when the answer is fully repo-local.
77
+
78
+ - **Invoke** skill `best-practice-research` (BPR).
79
+ - Prefer **official/upstream docs for the exact versions we use** (or the plan-pinned version). Match doc version to our version — do not invent "latest" that is not ours.
80
+ - Credible GitHub (maintainer samples, well-starred reference implementations) is **secondary**, never ahead of official docs.
81
+ - Stop when the recommendation is grounded enough to draft. No rabbit holes, no multi-hour literature digests.
82
+ - Escalate to `deep-research` only when BPR is insufficient for a material multi-source decision.
83
+ - Adoption/upgrade/replacement choices: surface evidence; leave the decision in the blueprint ADR, do not silently expand scope.
84
+
85
+ ### 3. Create the plan as a blueprint (always)
86
+
87
+ - Create or identify the durable blueprint that owns the work:
88
+
89
+ ```bash
90
+ wp blueprint new "<concise goal>" --complexity <XS|S|M|L|XL>
91
+ ```
92
+
93
+ Prefer MCP blueprint tools when available. Use `wp blueprint start <slug>` only when work will continue on a managed worktree branch.
94
+
95
+ - Write an initial draft into that blueprint: goal, non-goals, approach options (≥2 when non-trivial, or explicit rejection of alternatives), tasks, acceptance criteria, verification, risks.
96
+ - Include a compact decision summary: **principles** (3–5 when non-trivial), **drivers** (top 3), **options** with pros/cons.
97
+ - This draft is expected to be imperfect — reviews and refine will harden it.
98
+
99
+ ### 4. Plan reviews (invoke skills; after draft exists)
100
+
101
+ Load and run the skill bodies — do not "roleplay a one-line eng vibe" without the skill checklist. Prefer the host Skill tool; if unavailable, **Read** the skill file under the projected skills surface and execute its checklist in full (never monologue a one-line substitute).
102
+
103
+ | Skill | When |
104
+ | -------------------- | ---------------------------------------------------------------------------------------- |
105
+ | `plan-eng-review` | **Always** for S/M and L/XL; for XS only when architecture/tests/rollout are non-obvious |
106
+ | `plan-ceo-review` | Scope, wedge, customer value, or sequencing bets are material (default on for L/XL) |
107
+ | `plan-design-review` | UI/UX, visual hierarchy, or interaction design is material |
108
+ | `plan-devex-review` | CLI/API/SDK, docs, onboarding, or migration ergonomics are material |
109
+
110
+ Rules:
111
+
112
+ - Apply findings **into the blueprint** after each review (or once after the set if independent).
113
+ - Independent reviews may run in parallel **only when** they do not depend on each other's edits; if eng findings reshape scope, re-run only the affected optional reviews.
114
+ - Optional high-risk challenge: one sequential outside-voice pass (`codex` / `claude` / `opencode-go`) **after** eng review if the user asks or the change is auth / data-loss / public-API sensitive. Never parallel multi-host review.
115
+
116
+ ### 5. `/plan-refine` last (always)
117
+
118
+ After plan-* findings are merged into the blueprint (or after draft when XS skipped eng), run **`plan-refine` on that same blueprint**.
119
+
120
+ - Purpose: 100% confidence pinpoints, official-doc claim re-check, elegance/durability/efficiency, max-parallel task graph, Trust Dossier / residual-unknowns discipline.
121
+ - **Mechanical handoff:** invoke `plan-refine` with the explicit note
122
+ `plan-* reviews complete for this pass; skip lens re-run unless scope changes`.
123
+ If refine itself **materially changes scope**, re-run only the affected `plan-*` lens, then continue refine apply — do not restart the full ralplan loop.
124
+ - Early code dive + BPR shaped the draft; refine **re-verifies** material claims (intentional second pin, not optional).
125
+ - Still **no implementation code**.
126
+
127
+ ### 6. Consolidate and stop
128
+
129
+ Emit one decision record on the blueprint:
130
+
131
+ - decision and drivers
132
+ - alternatives considered
133
+ - material corrections from reviews + refine
134
+ - implementation tasks and dependencies (execution-ready waves when non-trivial)
135
+ - verification gates
136
+ - residual risks as closed Material Decisions or tech-debt with owner — Trust Dossier Residual Unknowns must read exactly `None.` at promotion
137
+
138
+ **Stop.** Do not implement. Recommend an execution lane only: usually `ultragoal` / `goal` for durable work, `team` when parallel lanes are justified, `autopilot` when the user wants the full autonomous pipeline **after** an approved plan.
139
+
140
+ ## Anti-patterns
141
+
142
+ | Anti-pattern | Do instead |
143
+ | ------------------------------------------------- | --------------------------------------------------------- |
144
+ | Jumping to code after a chat "plan" | Blueprint + reviews + refine first |
145
+ | Research rabbit holes / unversioned "latest" docs | BPR, version-matched official sources, early stop |
146
+ | Treating plan-* as vibes without loading skills | Invoke Skill tool or Read the skill file checklist |
147
+ | plan-refine before plan-* on S/M or L/XL work | Reviews first, refine last (XS may skip eng when obvious) |
148
+ | Re-running all plan-* inside refine by default | Skip unless scope changed |
149
+ | Multi-host review stampede | Zero or one outside voice, sequential |
150
+ | Implementing "just a small start" inside ralplan | Stop; hand off execution lane |
38
151
 
39
152
  ## Output
40
153
 
41
- Return a concise consensus plan with:
154
+ Return a concise consensus result:
42
155
 
43
- - verdict: ready / ready with edits / blocked
156
+ - **verdict:** ready / ready with edits / blocked
157
+ - **blueprint** slug/path
158
+ - **phases run / skipped** (tier + rationale)
44
159
  - decision and rationale
45
- - accepted review findings
46
- - task breakdown
160
+ - accepted review findings (eng + any optional)
161
+ - refine summary (confidence, material corrections)
162
+ - task breakdown pointer (in blueprint)
47
163
  - required verification
48
- - recommended execution lane, usually `goal` for durable sequential work or `autopilot` for the full autonomous pipeline
164
+ - recommended execution lane (not started)
165
+
166
+ ## Relationship to sibling skills
167
+
168
+ | Skill | Role relative to ralplan |
169
+ | ---------------------------------- | --------------------------------------------------------------------- |
170
+ | `deep-interview` | Pre-gate when requirements are too ambiguous to plan |
171
+ | `best-practice-research` | Phase 2 external evidence wrapper |
172
+ | `deep-research` | Escalation when BPR is not enough for multi-source depth |
173
+ | `plan-*` | Phase 4 product/eng review skills (Webpresso-curated plan review set) |
174
+ | `plan-refine` | Phase 5 final harden; detailed checklist SSOT for surgery |
175
+ | `ultragoal` / `team` / `autopilot` | Post-approval execution only |
49
176
 
50
- Use `plan-refine` as the detailed checklist source of truth when deeper plan surgery is needed.
177
+ `ralplan` is a Webpresso-owned consensus gate, not a multi-agent role-runtime product. Consensus here means: grounded evidence → durable blueprint → independent review skills → refine → stop.
@@ -5,7 +5,7 @@ title: Team
5
5
  status: active
6
6
  scope: repo
7
7
  applies_to: [agents]
8
- related: [autopilot, goal, plan-refine, verify]
8
+ related: [autopilot, goal, plan-refine, verify, handoff]
9
9
  created: "2026-07-13"
10
10
  last_reviewed: "2026-07-21"
11
11
  name: team
@@ -9,11 +9,16 @@ related: []
9
9
  created: "2026-05-07"
10
10
  last_reviewed: "2026-05-07"
11
11
  name: tech-debt
12
- description: "Tech-debt lifecycle skill for wp tech-debt creation, review, schema validation, and audits."
12
+ description: "Tech-debt lifecycle via wp tech-debt. Use for capture debt, overflow from fix_budget."
13
13
  ---
14
14
 
15
15
  # tech-debt
16
16
 
17
+ ## Use when (freeform)
18
+
19
+ - "tech debt", "capture debt", "park for later"
20
+ - opportunistic `fix` / harness findings that exceed `fix_budget`
21
+
17
22
  Manage the tech-debt lifecycle using `wp tech-debt` commands.
18
23
 
19
24
  ## Usage
@@ -63,7 +68,7 @@ accepted → needs-remediation → monitoring → resolved
63
68
 
64
69
  ## Categories
65
70
 
66
- `complexity`, `testing`, `mutation`, `duplication`, `dependency`, `security`, `documentation`
71
+ `complexity`, `testing`, `mutation`, `duplication`, `dependency`, `security`, `documentation`, `tooling`
67
72
 
68
73
  ## Frontmatter schema (required fields)
69
74