opengstack 0.13.10 → 0.14.2
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/AGENTS.md +4 -4
- package/CLAUDE.md +127 -110
- package/README.md +10 -5
- package/SKILL.md +500 -70
- package/bin/opengstack.js +69 -69
- package/{skills/land-and-deploy/SKILL.md → commands/autoplan.md} +7 -25
- package/{skills/benchmark/SKILL.md → commands/benchmark.md} +84 -108
- package/{skills/browse/SKILL.md → commands/browse.md} +60 -81
- package/{skills/ship/SKILL.md → commands/canary.md} +7 -27
- package/{skills/careful/SKILL.md → commands/careful.md} +2 -22
- package/{skills/canary/SKILL.md → commands/codex.md} +7 -26
- package/{skills/connect-chrome/SKILL.md → commands/connect-chrome.md} +7 -24
- package/commands/cso.md +70 -0
- package/commands/design-consultation.md +70 -0
- package/commands/design-review.md +70 -0
- package/commands/design-shotgun.md +70 -0
- package/commands/document-release.md +70 -0
- package/{skills/freeze/SKILL.md → commands/freeze.md} +3 -29
- package/{skills/guard/SKILL.md → commands/guard.md} +4 -35
- package/commands/investigate.md +70 -0
- package/commands/land-and-deploy.md +70 -0
- package/commands/office-hours.md +70 -0
- package/{skills/gstack-upgrade/SKILL.md → commands/opengstack-upgrade.md} +64 -79
- package/commands/plan-ceo-review.md +70 -0
- package/commands/plan-design-review.md +70 -0
- package/commands/plan-eng-review.md +70 -0
- package/commands/qa-only.md +70 -0
- package/commands/qa.md +70 -0
- package/commands/retro.md +70 -0
- package/commands/review.md +70 -0
- package/{skills/setup-browser-cookies/SKILL.md → commands/setup-browser-cookies.md} +22 -40
- package/commands/setup-deploy.md +70 -0
- package/commands/ship.md +70 -0
- package/commands/unfreeze.md +25 -0
- package/docs/designs/CHROME_VS_CHROMIUM_EXPLORATION.md +9 -9
- package/docs/designs/CONDUCTOR_CHROME_SIDEBAR_INTEGRATION.md +2 -2
- package/docs/designs/CONDUCTOR_SESSION_API.md +16 -16
- package/docs/designs/DESIGN_SHOTGUN.md +74 -74
- package/docs/designs/DESIGN_TOOLS_V1.md +111 -111
- package/docs/skills.md +483 -202
- package/package.json +42 -43
- package/scripts/analytics.ts +188 -0
- package/scripts/dev-skill.ts +83 -0
- package/scripts/discover-skills.ts +39 -0
- package/scripts/eval-compare.ts +97 -0
- package/scripts/eval-list.ts +117 -0
- package/scripts/eval-select.ts +86 -0
- package/scripts/eval-summary.ts +188 -0
- package/scripts/eval-watch.ts +172 -0
- package/scripts/gen-skill-docs.ts +473 -0
- package/scripts/resolvers/browse.ts +129 -0
- package/scripts/resolvers/codex-helpers.ts +133 -0
- package/scripts/resolvers/composition.ts +48 -0
- package/scripts/resolvers/confidence.ts +37 -0
- package/scripts/resolvers/constants.ts +50 -0
- package/scripts/resolvers/design.ts +950 -0
- package/scripts/resolvers/index.ts +59 -0
- package/scripts/resolvers/learnings.ts +96 -0
- package/scripts/resolvers/preamble.ts +505 -0
- package/scripts/resolvers/review.ts +884 -0
- package/scripts/resolvers/testing.ts +573 -0
- package/scripts/resolvers/types.ts +45 -0
- package/scripts/resolvers/utility.ts +421 -0
- package/scripts/skill-check.ts +190 -0
- package/scripts/cleanup.py +0 -100
- package/scripts/filter-skills.sh +0 -114
- package/scripts/filter_skills.py +0 -164
- package/scripts/install-skills.js +0 -60
- package/skills/autoplan/SKILL.md +0 -96
- package/skills/autoplan/SKILL.md.tmpl +0 -694
- package/skills/benchmark/SKILL.md.tmpl +0 -222
- package/skills/browse/SKILL.md.tmpl +0 -131
- package/skills/browse/bin/find-browse +0 -21
- package/skills/browse/bin/remote-slug +0 -14
- package/skills/browse/scripts/build-node-server.sh +0 -48
- package/skills/browse/src/activity.ts +0 -208
- package/skills/browse/src/browser-manager.ts +0 -959
- package/skills/browse/src/buffers.ts +0 -137
- package/skills/browse/src/bun-polyfill.cjs +0 -109
- package/skills/browse/src/cli.ts +0 -678
- package/skills/browse/src/commands.ts +0 -128
- package/skills/browse/src/config.ts +0 -150
- package/skills/browse/src/cookie-import-browser.ts +0 -625
- package/skills/browse/src/cookie-picker-routes.ts +0 -230
- package/skills/browse/src/cookie-picker-ui.ts +0 -688
- package/skills/browse/src/find-browse.ts +0 -61
- package/skills/browse/src/meta-commands.ts +0 -550
- package/skills/browse/src/platform.ts +0 -17
- package/skills/browse/src/read-commands.ts +0 -358
- package/skills/browse/src/server.ts +0 -1192
- package/skills/browse/src/sidebar-agent.ts +0 -280
- package/skills/browse/src/sidebar-utils.ts +0 -21
- package/skills/browse/src/snapshot.ts +0 -407
- package/skills/browse/src/url-validation.ts +0 -95
- package/skills/browse/src/write-commands.ts +0 -364
- package/skills/browse/test/activity.test.ts +0 -120
- package/skills/browse/test/adversarial-security.test.ts +0 -32
- package/skills/browse/test/browser-manager-unit.test.ts +0 -17
- package/skills/browse/test/bun-polyfill.test.ts +0 -72
- package/skills/browse/test/commands.test.ts +0 -2075
- package/skills/browse/test/compare-board.test.ts +0 -342
- package/skills/browse/test/config.test.ts +0 -316
- package/skills/browse/test/cookie-import-browser.test.ts +0 -519
- package/skills/browse/test/cookie-picker-routes.test.ts +0 -260
- package/skills/browse/test/file-drop.test.ts +0 -271
- package/skills/browse/test/find-browse.test.ts +0 -50
- package/skills/browse/test/findport.test.ts +0 -191
- package/skills/browse/test/fixtures/basic.html +0 -33
- package/skills/browse/test/fixtures/cursor-interactive.html +0 -22
- package/skills/browse/test/fixtures/dialog.html +0 -15
- package/skills/browse/test/fixtures/empty.html +0 -2
- package/skills/browse/test/fixtures/forms.html +0 -55
- package/skills/browse/test/fixtures/iframe.html +0 -30
- package/skills/browse/test/fixtures/network-idle.html +0 -30
- package/skills/browse/test/fixtures/qa-eval-checkout.html +0 -108
- package/skills/browse/test/fixtures/qa-eval-spa.html +0 -98
- package/skills/browse/test/fixtures/qa-eval.html +0 -51
- package/skills/browse/test/fixtures/responsive.html +0 -49
- package/skills/browse/test/fixtures/snapshot.html +0 -55
- package/skills/browse/test/fixtures/spa.html +0 -24
- package/skills/browse/test/fixtures/states.html +0 -17
- package/skills/browse/test/fixtures/upload.html +0 -25
- package/skills/browse/test/gstack-config.test.ts +0 -138
- package/skills/browse/test/gstack-update-check.test.ts +0 -514
- package/skills/browse/test/handoff.test.ts +0 -235
- package/skills/browse/test/path-validation.test.ts +0 -91
- package/skills/browse/test/platform.test.ts +0 -37
- package/skills/browse/test/server-auth.test.ts +0 -65
- package/skills/browse/test/sidebar-agent-roundtrip.test.ts +0 -226
- package/skills/browse/test/sidebar-agent.test.ts +0 -199
- package/skills/browse/test/sidebar-integration.test.ts +0 -320
- package/skills/browse/test/sidebar-unit.test.ts +0 -96
- package/skills/browse/test/snapshot.test.ts +0 -467
- package/skills/browse/test/state-ttl.test.ts +0 -35
- package/skills/browse/test/test-server.ts +0 -57
- package/skills/browse/test/url-validation.test.ts +0 -72
- package/skills/browse/test/watch.test.ts +0 -129
- package/skills/canary/SKILL.md.tmpl +0 -212
- package/skills/careful/SKILL.md.tmpl +0 -56
- package/skills/careful/bin/check-careful.sh +0 -112
- package/skills/codex/SKILL.md +0 -90
- package/skills/codex/SKILL.md.tmpl +0 -417
- package/skills/connect-chrome/SKILL.md.tmpl +0 -195
- package/skills/cso/ACKNOWLEDGEMENTS.md +0 -14
- package/skills/cso/SKILL.md +0 -93
- package/skills/cso/SKILL.md.tmpl +0 -606
- package/skills/design-consultation/SKILL.md +0 -94
- package/skills/design-consultation/SKILL.md.tmpl +0 -415
- package/skills/design-review/SKILL.md +0 -94
- package/skills/design-review/SKILL.md.tmpl +0 -290
- package/skills/design-shotgun/SKILL.md +0 -91
- package/skills/design-shotgun/SKILL.md.tmpl +0 -285
- package/skills/document-release/SKILL.md +0 -91
- package/skills/document-release/SKILL.md.tmpl +0 -359
- package/skills/freeze/SKILL.md.tmpl +0 -77
- package/skills/freeze/bin/check-freeze.sh +0 -79
- package/skills/gstack-upgrade/SKILL.md.tmpl +0 -222
- package/skills/guard/SKILL.md.tmpl +0 -77
- package/skills/investigate/SKILL.md +0 -105
- package/skills/investigate/SKILL.md.tmpl +0 -194
- package/skills/land-and-deploy/SKILL.md.tmpl +0 -881
- package/skills/office-hours/SKILL.md +0 -96
- package/skills/office-hours/SKILL.md.tmpl +0 -645
- package/skills/plan-ceo-review/SKILL.md +0 -94
- package/skills/plan-ceo-review/SKILL.md.tmpl +0 -811
- package/skills/plan-design-review/SKILL.md +0 -92
- package/skills/plan-design-review/SKILL.md.tmpl +0 -446
- package/skills/plan-eng-review/SKILL.md +0 -93
- package/skills/plan-eng-review/SKILL.md.tmpl +0 -303
- package/skills/qa/SKILL.md +0 -95
- package/skills/qa/SKILL.md.tmpl +0 -316
- package/skills/qa/references/issue-taxonomy.md +0 -85
- package/skills/qa/templates/qa-report-template.md +0 -126
- package/skills/qa-only/SKILL.md +0 -89
- package/skills/qa-only/SKILL.md.tmpl +0 -101
- package/skills/retro/SKILL.md +0 -89
- package/skills/retro/SKILL.md.tmpl +0 -820
- package/skills/review/SKILL.md +0 -92
- package/skills/review/SKILL.md.tmpl +0 -281
- package/skills/review/TODOS-format.md +0 -62
- package/skills/review/checklist.md +0 -220
- package/skills/review/design-checklist.md +0 -132
- package/skills/review/greptile-triage.md +0 -220
- package/skills/setup-browser-cookies/SKILL.md.tmpl +0 -81
- package/skills/setup-deploy/SKILL.md +0 -92
- package/skills/setup-deploy/SKILL.md.tmpl +0 -215
- package/skills/ship/SKILL.md.tmpl +0 -636
- package/skills/unfreeze/SKILL.md +0 -37
- package/skills/unfreeze/SKILL.md.tmpl +0 -36
|
@@ -1,694 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autoplan
|
|
3
|
-
preamble-tier: 3
|
|
4
|
-
version: 1.0.0
|
|
5
|
-
description: |
|
|
6
|
-
Auto-review pipeline — reads the full CEO, design, and eng review skills from disk
|
|
7
|
-
and runs them sequentially with auto-decisions using 6 decision principles. Surfaces
|
|
8
|
-
taste decisions (close approaches, borderline scope, codex disagreements) at a final
|
|
9
|
-
approval gate. One command, fully reviewed plan out.
|
|
10
|
-
Use when asked to "auto review", "autoplan", "run all reviews", "review this plan
|
|
11
|
-
automatically", or "make the decisions for me".
|
|
12
|
-
Proactively suggest when the user has a plan file and wants to run the full review
|
|
13
|
-
gauntlet without answering 15-30 intermediate questions.
|
|
14
|
-
benefits-from: [office-hours]
|
|
15
|
-
allowed-tools:
|
|
16
|
-
- Bash
|
|
17
|
-
- Read
|
|
18
|
-
- Write
|
|
19
|
-
- Edit
|
|
20
|
-
- Glob
|
|
21
|
-
- Grep
|
|
22
|
-
- WebSearch
|
|
23
|
-
- AskUserQuestion
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
{{PREAMBLE}}
|
|
27
|
-
|
|
28
|
-
{{BASE_BRANCH_DETECT}}
|
|
29
|
-
|
|
30
|
-
{{BENEFITS_FROM}}
|
|
31
|
-
|
|
32
|
-
# /autoplan — Auto-Review Pipeline
|
|
33
|
-
|
|
34
|
-
One command. Rough plan in, fully reviewed plan out.
|
|
35
|
-
|
|
36
|
-
/autoplan reads the full CEO, design, and eng review skill files from disk and follows
|
|
37
|
-
them at full depth — same rigor, same sections, same methodology as running each skill
|
|
38
|
-
manually. The only difference: intermediate AskUserQuestion calls are auto-decided using
|
|
39
|
-
the 6 principles below. Taste decisions (where reasonable people could disagree) are
|
|
40
|
-
surfaced at a final approval gate.
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## The 6 Decision Principles
|
|
45
|
-
|
|
46
|
-
These rules auto-answer every intermediate question:
|
|
47
|
-
|
|
48
|
-
1. **Choose completeness** — Ship the whole thing. Pick the approach that covers more edge cases.
|
|
49
|
-
2. **Boil lakes** — Fix everything in the blast radius (files modified by this plan + direct importers). Auto-approve expansions that are in blast radius AND < 1 day CC effort (< 5 files, no new infra).
|
|
50
|
-
3. **Pragmatic** — If two options fix the same thing, pick the cleaner one. 5 seconds choosing, not 5 minutes.
|
|
51
|
-
4. **DRY** — Duplicates existing functionality? Reject. Reuse what exists.
|
|
52
|
-
5. **Explicit over clever** — 10-line obvious fix > 200-line abstraction. Pick what a new contributor reads in 30 seconds.
|
|
53
|
-
6. **Bias toward action** — Merge > review cycles > stale deliberation. Flag concerns but don't block.
|
|
54
|
-
|
|
55
|
-
**Conflict resolution (context-dependent tiebreakers):**
|
|
56
|
-
- **CEO phase:** P1 (completeness) + P2 (boil lakes) dominate.
|
|
57
|
-
- **Eng phase:** P5 (explicit) + P3 (pragmatic) dominate.
|
|
58
|
-
- **Design phase:** P5 (explicit) + P1 (completeness) dominate.
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## Decision Classification
|
|
63
|
-
|
|
64
|
-
Every auto-decision is classified:
|
|
65
|
-
|
|
66
|
-
**Mechanical** — one clearly right answer. Auto-decide silently.
|
|
67
|
-
Examples: run codex (always yes), run evals (always yes), reduce scope on a complete plan (always no).
|
|
68
|
-
|
|
69
|
-
**Taste** — reasonable people could disagree. Auto-decide with recommendation, but surface at the final gate. Three natural sources:
|
|
70
|
-
1. **Close approaches** — top two are both viable with different tradeoffs.
|
|
71
|
-
2. **Borderline scope** — in blast radius but 3-5 files, or ambiguous radius.
|
|
72
|
-
3. **Codex disagreements** — codex recommends differently and has a valid point.
|
|
73
|
-
|
|
74
|
-
**User Challenge** — both models agree the user's stated direction should change.
|
|
75
|
-
This is qualitatively different from taste decisions. When Claude and Codex both
|
|
76
|
-
recommend merging, splitting, adding, or removing features/skills/workflows that
|
|
77
|
-
the user specified, this is a User Challenge. It is NEVER auto-decided.
|
|
78
|
-
|
|
79
|
-
User Challenges go to the final approval gate with richer context than taste
|
|
80
|
-
decisions:
|
|
81
|
-
- **What the user said:** (their original direction)
|
|
82
|
-
- **What both models recommend:** (the change)
|
|
83
|
-
- **Why:** (the models' reasoning)
|
|
84
|
-
- **What context we might be missing:** (explicit acknowledgment of blind spots)
|
|
85
|
-
- **If we're wrong, the cost is:** (what happens if the user's original direction
|
|
86
|
-
was right and we changed it)
|
|
87
|
-
|
|
88
|
-
The user's original direction is the default. The models must make the case for
|
|
89
|
-
change, not the other way around.
|
|
90
|
-
|
|
91
|
-
**Exception:** If both models flag the change as a security vulnerability or
|
|
92
|
-
feasibility blocker (not a preference), the AskUserQuestion framing explicitly
|
|
93
|
-
warns: "Both models believe this is a security/feasibility risk, not just a
|
|
94
|
-
preference." The user still decides, but the framing is appropriately urgent.
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## Sequential Execution — MANDATORY
|
|
99
|
-
|
|
100
|
-
Phases MUST execute in strict order: CEO → Design → Eng.
|
|
101
|
-
Each phase MUST complete fully before the next begins.
|
|
102
|
-
NEVER run phases in parallel — each builds on the previous.
|
|
103
|
-
|
|
104
|
-
Between each phase, emit a phase-transition summary and verify that all required
|
|
105
|
-
outputs from the prior phase are written before starting the next.
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## What "Auto-Decide" Means
|
|
110
|
-
|
|
111
|
-
Auto-decide replaces the USER'S judgment with the 6 principles. It does NOT replace
|
|
112
|
-
the ANALYSIS. Every section in the loaded skill files must still be executed at the
|
|
113
|
-
same depth as the interactive version. The only thing that changes is who answers the
|
|
114
|
-
AskUserQuestion: you do, using the 6 principles, instead of the user.
|
|
115
|
-
|
|
116
|
-
**Two exceptions — never auto-decided:**
|
|
117
|
-
1. Premises (Phase 1) — require human judgment about what problem to solve.
|
|
118
|
-
2. User Challenges — when both models agree the user's stated direction should change
|
|
119
|
-
(merge, split, add, remove features/workflows). The user always has context models
|
|
120
|
-
lack. See Decision Classification above.
|
|
121
|
-
|
|
122
|
-
**You MUST still:**
|
|
123
|
-
- READ the actual code, diffs, and files each section references
|
|
124
|
-
- PRODUCE every output the section requires (diagrams, tables, registries, artifacts)
|
|
125
|
-
- IDENTIFY every issue the section is designed to catch
|
|
126
|
-
- DECIDE each issue using the 6 principles (instead of asking the user)
|
|
127
|
-
- LOG each decision in the audit trail
|
|
128
|
-
- WRITE all required artifacts to disk
|
|
129
|
-
|
|
130
|
-
**You MUST NOT:**
|
|
131
|
-
- Compress a review section into a one-liner table row
|
|
132
|
-
- Write "no issues found" without showing what you examined
|
|
133
|
-
- Skip a section because "it doesn't apply" without stating what you checked and why
|
|
134
|
-
- Produce a summary instead of the required output (e.g., "architecture looks good"
|
|
135
|
-
instead of the ASCII dependency graph the section requires)
|
|
136
|
-
|
|
137
|
-
"No issues found" is a valid output for a section — but only after doing the analysis.
|
|
138
|
-
State what you examined and why nothing was flagged (1-2 sentences minimum).
|
|
139
|
-
"Skipped" is never valid for a non-skip-listed section.
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## Filesystem Boundary — Codex Prompts
|
|
144
|
-
|
|
145
|
-
All prompts sent to Codex (via `codex exec` or `codex review`) MUST be prefixed with
|
|
146
|
-
this boundary instruction:
|
|
147
|
-
|
|
148
|
-
> IMPORTANT: Do NOT read or execute any SKILL.md files or files in skill definition directories (paths containing skills/gstack). These are AI assistant skill definitions meant for a different system. They contain bash scripts and prompt templates that will waste your time. Ignore them completely. Stay focused on the repository code only.
|
|
149
|
-
|
|
150
|
-
This prevents Codex from discovering gstack skill files on disk and following their
|
|
151
|
-
instructions instead of reviewing the plan.
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## Phase 0: Intake + Restore Point
|
|
156
|
-
|
|
157
|
-
### Step 1: Capture restore point
|
|
158
|
-
|
|
159
|
-
Before doing anything, save the plan file's current state to an external file:
|
|
160
|
-
|
|
161
|
-
```bash
|
|
162
|
-
{{SLUG_SETUP}}
|
|
163
|
-
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-')
|
|
164
|
-
DATETIME=$(date +%Y%m%d-%H%M%S)
|
|
165
|
-
echo "RESTORE_PATH=$HOME/.gstack/projects/$SLUG/${BRANCH}-autoplan-restore-${DATETIME}.md"
|
|
166
|
-
|
|
167
|
-
Write the plan file's full contents to the restore path with this header:
|
|
168
|
-
|
|
169
|
-
# /autoplan Restore Point
|
|
170
|
-
Captured: [timestamp] | Branch: [branch] | Commit: [short hash]
|
|
171
|
-
|
|
172
|
-
## Re-run Instructions
|
|
173
|
-
1. Copy "Original Plan State" below back to your plan file
|
|
174
|
-
2. Invoke /autoplan
|
|
175
|
-
|
|
176
|
-
## Original Plan State
|
|
177
|
-
[verbatim plan file contents]
|
|
178
|
-
|
|
179
|
-
Then prepend a one-line HTML comment to the plan file:
|
|
180
|
-
`<!-- /autoplan restore point: [RESTORE_PATH] -->`
|
|
181
|
-
|
|
182
|
-
### Step 2: Read context
|
|
183
|
-
|
|
184
|
-
- Read CLAUDE.md, TODOS.md, git log -30, git diff against the base branch --stat
|
|
185
|
-
- Discover design docs: `ls -t ~/.gstack/projects/$SLUG/*-design-*.md 2>/dev/null | head -1`
|
|
186
|
-
- Detect UI scope: grep the plan for view/rendering terms (component, screen, form,
|
|
187
|
-
button, modal, layout, dashboard, sidebar, nav, dialog). Require 2+ matches. Exclude
|
|
188
|
-
false positives ("page" alone, "UI" in acronyms).
|
|
189
|
-
|
|
190
|
-
### Step 3: Load skill files from disk
|
|
191
|
-
|
|
192
|
-
Read each file using the Read tool:
|
|
193
|
-
- `~/.claude/skills/opengstack/plan-ceo-review/SKILL.md`
|
|
194
|
-
- `~/.claude/skills/opengstack/plan-design-review/SKILL.md` (only if UI scope detected)
|
|
195
|
-
- `~/.claude/skills/opengstack/plan-eng-review/SKILL.md`
|
|
196
|
-
|
|
197
|
-
**Section skip list — when following a loaded skill file, SKIP these sections
|
|
198
|
-
(they are already handled by /autoplan):**
|
|
199
|
-
- Preamble (run first)
|
|
200
|
-
- AskUserQuestion Format
|
|
201
|
-
- Completeness Principle —
|
|
202
|
-
- Search Before Building
|
|
203
|
-
- Contributor Mode
|
|
204
|
-
- Completion Status Protocol
|
|
205
|
-
- Telemetry (run last)
|
|
206
|
-
- Step 0: Detect base branch
|
|
207
|
-
- Review Readiness Dashboard
|
|
208
|
-
- Plan File Review Report
|
|
209
|
-
- Prerequisite Skill Offer (BENEFITS_FROM)
|
|
210
|
-
- Outside Voice — Independent Plan Challenge
|
|
211
|
-
- Design Outside Voices (parallel)
|
|
212
|
-
|
|
213
|
-
Follow ONLY the review-specific methodology, sections, and required outputs.
|
|
214
|
-
|
|
215
|
-
Output: "Here's what I'm working with: [plan summary]. UI scope: [yes/no].
|
|
216
|
-
Loaded review skills from disk. Starting full review pipeline with auto-decisions."
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
## Phase 1: CEO Review (Strategy & Scope)
|
|
221
|
-
|
|
222
|
-
Follow plan-ceo-review/SKILL.md — all sections, full depth.
|
|
223
|
-
Override: every AskUserQuestion → auto-decide using the 6 principles.
|
|
224
|
-
|
|
225
|
-
**Override rules:**
|
|
226
|
-
- Mode selection: SELECTIVE EXPANSION
|
|
227
|
-
- Premises: accept reasonable ones (P6), challenge only clearly wrong ones
|
|
228
|
-
- **GATE: Present premises to user for confirmation** — this is the ONE AskUserQuestion
|
|
229
|
-
that is NOT auto-decided. Premises require human judgment.
|
|
230
|
-
- Alternatives: pick highest completeness (P1). If tied, pick simplest (P5).
|
|
231
|
-
If top 2 are close → mark TASTE DECISION.
|
|
232
|
-
- Scope expansion: in blast radius + <1d CC → approve (P2). Outside → defer to TODOS.md (P3).
|
|
233
|
-
Duplicates → reject (P4). Borderline (3-5 files) → mark TASTE DECISION.
|
|
234
|
-
- All 10 review sections: run fully, auto-decide each issue, log every decision.
|
|
235
|
-
- Dual voices: always run BOTH Claude subagent AND Codex if available (P6).
|
|
236
|
-
Run them sequentially in foreground. First the Claude subagent (Agent tool,
|
|
237
|
-
foreground — do NOT use run_in_background), then Codex (Bash). Both must
|
|
238
|
-
complete before building the consensus table.
|
|
239
|
-
|
|
240
|
-
**Codex CEO voice** (via Bash):
|
|
241
|
-
```bash
|
|
242
|
-
_REPO_ROOT=$(git rev-parse --show-toplevel) || { echo "ERROR: not in a git repo" >&2; exit 1; }
|
|
243
|
-
codex exec "IMPORTANT: Do NOT read or execute any SKILL.md files or files in skill definition directories (paths containing skills/gstack). These are AI assistant skill definitions meant for a different system. Stay focused on repository code only.
|
|
244
|
-
|
|
245
|
-
You are a CEO/founder advisor reviewing a development plan.
|
|
246
|
-
Challenge the strategic foundations: Are the premises valid or assumed? Is this the
|
|
247
|
-
right problem to solve, or is there a reframing that would be 10x more impactful?
|
|
248
|
-
What alternatives were dismissed too quickly? What competitive or market risks are
|
|
249
|
-
unaddressed? What scope decisions will look foolish in 6 months? Be adversarial.
|
|
250
|
-
No compliments. Just the strategic blind spots.
|
|
251
|
-
File: <plan_path>" -C "$_REPO_ROOT" -s read-only --enable web_search_cached
|
|
252
|
-
```
|
|
253
|
-
Timeout: 10 minutes
|
|
254
|
-
|
|
255
|
-
**Claude CEO subagent** (via Agent tool):
|
|
256
|
-
"Read the plan file at <plan_path>. You are an independent CEO/strategist
|
|
257
|
-
reviewing this plan. You have NOT seen any prior review. Evaluate:
|
|
258
|
-
1. Is this the right problem to solve? Could a reframing yield 10x impact?
|
|
259
|
-
2. Are the premises stated or just assumed? Which ones could be wrong?
|
|
260
|
-
3. What's the 6-month regret scenario — what will look foolish?
|
|
261
|
-
4. What alternatives were dismissed without sufficient analysis?
|
|
262
|
-
5. What's the competitive risk — could someone else solve this first/better?
|
|
263
|
-
For each finding: what's wrong, severity (critical/high/medium), and the fix."
|
|
264
|
-
|
|
265
|
-
**Error handling:** Both calls block in foreground. Codex auth/timeout/empty → proceed with
|
|
266
|
-
Claude subagent only, tagged `[single-model]`. If Claude subagent also fails →
|
|
267
|
-
"Outside voices unavailable — continuing with primary review."
|
|
268
|
-
|
|
269
|
-
**Degradation matrix:** Both fail → "single-reviewer mode". Codex only →
|
|
270
|
-
tag `[codex-only]`. Subagent only → tag `[subagent-only]`.
|
|
271
|
-
|
|
272
|
-
- Strategy choices: if codex disagrees with a premise or scope decision with valid
|
|
273
|
-
strategic reason → TASTE DECISION. If both models agree the user's stated structure
|
|
274
|
-
should change (merge, split, add, remove) → USER CHALLENGE (never auto-decided).
|
|
275
|
-
|
|
276
|
-
**Required execution checklist (CEO):**
|
|
277
|
-
|
|
278
|
-
Step 0 (0A-0F) — run each sub-step and produce:
|
|
279
|
-
- 0A: Premise challenge with specific premises named and evaluated
|
|
280
|
-
- 0B: Existing code leverage map (sub-problems → existing code)
|
|
281
|
-
- 0C: Dream state diagram (CURRENT → THIS PLAN → 12-MONTH IDEAL)
|
|
282
|
-
- 0C-bis: Implementation alternatives table (2-3 approaches with effort/risk/pros/cons)
|
|
283
|
-
- 0D: Mode-specific analysis with scope decisions logged
|
|
284
|
-
- 0E: Temporal interrogation (HOUR 1 → HOUR 6+)
|
|
285
|
-
- 0F: Mode selection confirmation
|
|
286
|
-
|
|
287
|
-
Step 0.5 (Dual Voices): Run Claude subagent (foreground Agent tool) first, then
|
|
288
|
-
Codex (Bash). Present Codex output under CODEX SAYS (CEO — strategy challenge)
|
|
289
|
-
header. Present subagent output under CLAUDE SUBAGENT (CEO — strategic independence)
|
|
290
|
-
header. Produce CEO consensus table:
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
CEO DUAL VOICES — CONSENSUS TABLE:
|
|
294
|
-
═══════════════════════════════════════════════════════════════
|
|
295
|
-
Dimension Claude Codex Consensus
|
|
296
|
-
──────────────────────────────────── ─────── ─────── ─────────
|
|
297
|
-
1. Premises valid? — — —
|
|
298
|
-
2. Right problem to solve? — — —
|
|
299
|
-
3. Scope calibration correct? — — —
|
|
300
|
-
4. Alternatives sufficiently explored?— — —
|
|
301
|
-
5. Competitive/market risks covered? — — —
|
|
302
|
-
6. 6-month trajectory sound? — — —
|
|
303
|
-
═══════════════════════════════════════════════════════════════
|
|
304
|
-
CONFIRMED = both agree. DISAGREE = models differ (→ taste decision).
|
|
305
|
-
Missing voice = N/A (not CONFIRMED). Single critical finding from one voice = flagged regardless.
|
|
306
|
-
|
|
307
|
-
Sections 1-10 — for EACH section, run the evaluation criteria from the loaded skill file:
|
|
308
|
-
- Sections WITH findings: full analysis, auto-decide each issue, log to audit trail
|
|
309
|
-
- Sections with NO findings: 1-2 sentences stating what was examined and why nothing
|
|
310
|
-
was flagged. NEVER compress a section to just its name in a table row.
|
|
311
|
-
- Section 11 (Design): run only if UI scope was detected in Phase 0
|
|
312
|
-
|
|
313
|
-
**Mandatory outputs from Phase 1:**
|
|
314
|
-
- "NOT in scope" section with deferred items and rationale
|
|
315
|
-
- "What already exists" section mapping sub-problems to existing code
|
|
316
|
-
- Error & Rescue Registry table (from Section 2)
|
|
317
|
-
- Failure Modes Registry table (from review sections)
|
|
318
|
-
- Dream state delta (where this plan leaves us vs 12-month ideal)
|
|
319
|
-
- Completion Summary (the full summary table from the CEO skill)
|
|
320
|
-
|
|
321
|
-
**PHASE 1 COMPLETE.** Emit phase-transition summary:
|
|
322
|
-
> **Phase 1 complete.** Codex: [N concerns]. Claude subagent: [N issues].
|
|
323
|
-
> Consensus: [X/6 confirmed, Y disagreements → surfaced at gate].
|
|
324
|
-
> Passing to Phase 2.
|
|
325
|
-
|
|
326
|
-
Do NOT begin Phase 2 until all Phase 1 outputs are written to the plan file
|
|
327
|
-
and the premise gate has been passed.
|
|
328
|
-
|
|
329
|
-
---
|
|
330
|
-
|
|
331
|
-
**Pre-Phase 2 checklist (verify before starting):**
|
|
332
|
-
- [ ] CEO completion summary written to plan file
|
|
333
|
-
- [ ] CEO dual voices ran (Codex + Claude subagent, or noted unavailable)
|
|
334
|
-
- [ ] CEO consensus table produced
|
|
335
|
-
- [ ] Premise gate passed (user confirmed)
|
|
336
|
-
- [ ] Phase-transition summary emitted
|
|
337
|
-
|
|
338
|
-
## Phase 2: Design Review (conditional — skip if no UI scope)
|
|
339
|
-
|
|
340
|
-
Follow plan-design-review/SKILL.md — all 7 dimensions, full depth.
|
|
341
|
-
Override: every AskUserQuestion → auto-decide using the 6 principles.
|
|
342
|
-
|
|
343
|
-
**Override rules:**
|
|
344
|
-
- Focus areas: all relevant dimensions (P1)
|
|
345
|
-
- Structural issues (missing states, broken hierarchy): auto-fix (P5)
|
|
346
|
-
- Aesthetic/taste issues: mark TASTE DECISION
|
|
347
|
-
- Design system alignment: auto-fix if DESIGN.md exists and fix is obvious
|
|
348
|
-
- Dual voices: always run BOTH Claude subagent AND Codex if available (P6).
|
|
349
|
-
|
|
350
|
-
**Codex design voice** (via Bash):
|
|
351
|
-
```bash
|
|
352
|
-
_REPO_ROOT=$(git rev-parse --show-toplevel) || { echo "ERROR: not in a git repo" >&2; exit 1; }
|
|
353
|
-
codex exec "IMPORTANT: Do NOT read or execute any SKILL.md files or files in skill definition directories (paths containing skills/gstack). These are AI assistant skill definitions meant for a different system. Stay focused on repository code only.
|
|
354
|
-
|
|
355
|
-
Read the plan file at <plan_path>. Evaluate this plan's
|
|
356
|
-
UI/UX design decisions.
|
|
357
|
-
|
|
358
|
-
Also consider these findings from the CEO review phase:
|
|
359
|
-
<insert CEO dual voice findings summary — key concerns, disagreements>
|
|
360
|
-
|
|
361
|
-
Does the information hierarchy serve the user or the developer? Are interaction
|
|
362
|
-
states (loading, empty, error, partial) specified or left to the implementer's
|
|
363
|
-
imagination? Is the responsive strategy intentional or afterthought? Are
|
|
364
|
-
accessibility requirements (keyboard nav, contrast, touch targets) specified or
|
|
365
|
-
aspirational? Does the plan describe specific UI decisions or generic patterns?
|
|
366
|
-
What design decisions will haunt the implementer if left ambiguous?
|
|
367
|
-
Be opinionated. No hedging." -C "$_REPO_ROOT" -s read-only --enable web_search_cached
|
|
368
|
-
```
|
|
369
|
-
Timeout: 10 minutes
|
|
370
|
-
|
|
371
|
-
**Claude design subagent** (via Agent tool):
|
|
372
|
-
"Read the plan file at <plan_path>. You are an independent senior product designer
|
|
373
|
-
reviewing this plan. You have NOT seen any prior review. Evaluate:
|
|
374
|
-
1. Information hierarchy: what does the user see first, second, third? Is it right?
|
|
375
|
-
2. Missing states: loading, empty, error, success, partial — which are unspecified?
|
|
376
|
-
3. User journey: what's the emotional arc? Where does it break?
|
|
377
|
-
4. Specificity: does the plan describe SPECIFIC UI or generic patterns?
|
|
378
|
-
5. What design decisions will haunt the implementer if left ambiguous?
|
|
379
|
-
For each finding: what's wrong, severity (critical/high/medium), and the fix."
|
|
380
|
-
NO prior-phase context — subagent must be truly independent.
|
|
381
|
-
|
|
382
|
-
Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).
|
|
383
|
-
|
|
384
|
-
- Design choices: if codex disagrees with a design decision with valid UX reasoning
|
|
385
|
-
→ TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.
|
|
386
|
-
|
|
387
|
-
**Required execution checklist (Design):**
|
|
388
|
-
|
|
389
|
-
1. Step 0 (Design Scope): Rate completeness 0-10. Check DESIGN.md. Map existing patterns.
|
|
390
|
-
|
|
391
|
-
2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. Present under
|
|
392
|
-
CODEX SAYS (design — UX challenge) and CLAUDE SUBAGENT (design — independent review)
|
|
393
|
-
headers. Produce design litmus scorecard (consensus table). Use the litmus scorecard
|
|
394
|
-
format from plan-design-review. Include CEO phase findings in Codex prompt ONLY
|
|
395
|
-
(not Claude subagent — stays independent).
|
|
396
|
-
|
|
397
|
-
3. Passes 1-7: Run each from loaded skill. Rate 0-10. Auto-decide each issue.
|
|
398
|
-
DISAGREE items from scorecard → raised in the relevant pass with both perspectives.
|
|
399
|
-
|
|
400
|
-
**PHASE 2 COMPLETE.** Emit phase-transition summary:
|
|
401
|
-
> **Phase 2 complete.** Codex: [N concerns]. Claude subagent: [N issues].
|
|
402
|
-
> Consensus: [X/Y confirmed, Z disagreements → surfaced at gate].
|
|
403
|
-
> Passing to Phase 3.
|
|
404
|
-
|
|
405
|
-
Do NOT begin Phase 3 until all Phase 2 outputs (if run) are written to the plan file.
|
|
406
|
-
|
|
407
|
-
---
|
|
408
|
-
|
|
409
|
-
**Pre-Phase 3 checklist (verify before starting):**
|
|
410
|
-
- [ ] All Phase 1 items above confirmed
|
|
411
|
-
- [ ] Design completion summary written (or "skipped, no UI scope")
|
|
412
|
-
- [ ] Design dual voices ran (if Phase 2 ran)
|
|
413
|
-
- [ ] Design consensus table produced (if Phase 2 ran)
|
|
414
|
-
- [ ] Phase-transition summary emitted
|
|
415
|
-
|
|
416
|
-
## Phase 3: Eng Review + Dual Voices
|
|
417
|
-
|
|
418
|
-
Follow plan-eng-review/SKILL.md — all sections, full depth.
|
|
419
|
-
Override: every AskUserQuestion → auto-decide using the 6 principles.
|
|
420
|
-
|
|
421
|
-
**Override rules:**
|
|
422
|
-
- Scope challenge: never reduce (P2)
|
|
423
|
-
- Dual voices: always run BOTH Claude subagent AND Codex if available (P6).
|
|
424
|
-
|
|
425
|
-
**Codex eng voice** (via Bash):
|
|
426
|
-
```bash
|
|
427
|
-
_REPO_ROOT=$(git rev-parse --show-toplevel) || { echo "ERROR: not in a git repo" >&2; exit 1; }
|
|
428
|
-
codex exec "IMPORTANT: Do NOT read or execute any SKILL.md files or files in skill definition directories (paths containing skills/gstack). These are AI assistant skill definitions meant for a different system. Stay focused on repository code only.
|
|
429
|
-
|
|
430
|
-
Review this plan for architectural issues, missing edge cases,
|
|
431
|
-
and hidden complexity. Be adversarial.
|
|
432
|
-
|
|
433
|
-
Also consider these findings from prior review phases:
|
|
434
|
-
CEO: <insert CEO consensus table summary — key concerns, DISAGREEs>
|
|
435
|
-
Design: <insert Design consensus table summary, or 'skipped, no UI scope'>
|
|
436
|
-
|
|
437
|
-
File: <plan_path>" -C "$_REPO_ROOT" -s read-only --enable web_search_cached
|
|
438
|
-
```
|
|
439
|
-
Timeout: 10 minutes
|
|
440
|
-
|
|
441
|
-
**Claude eng subagent** (via Agent tool):
|
|
442
|
-
"Read the plan file at <plan_path>. You are an independent senior engineer
|
|
443
|
-
reviewing this plan. You have NOT seen any prior review. Evaluate:
|
|
444
|
-
1. Architecture: Is the component structure sound? Coupling concerns?
|
|
445
|
-
2. Edge cases: What breaks under 10x load? What's the nil/empty/error path?
|
|
446
|
-
3. Tests: What's missing from the test plan? What would break at 2am Friday?
|
|
447
|
-
4. Security: New attack surface? Auth boundaries? Input validation?
|
|
448
|
-
5. Hidden complexity: What looks simple but isn't?
|
|
449
|
-
For each finding: what's wrong, severity, and the fix."
|
|
450
|
-
NO prior-phase context — subagent must be truly independent.
|
|
451
|
-
|
|
452
|
-
Error handling: same as Phase 1 (both foreground/blocking, degradation matrix applies).
|
|
453
|
-
|
|
454
|
-
- Architecture choices: explicit over clever (P5). If codex disagrees with valid reason → TASTE DECISION. Scope changes both models agree on → USER CHALLENGE.
|
|
455
|
-
- Evals: always include all relevant suites (P1)
|
|
456
|
-
- Test plan: generate artifact at `~/.gstack/projects/$SLUG/{user}-{branch}-test-plan-{datetime}.md`
|
|
457
|
-
- TODOS.md: collect all deferred scope expansions from Phase 1, auto-write
|
|
458
|
-
|
|
459
|
-
**Required execution checklist (Eng):**
|
|
460
|
-
|
|
461
|
-
1. Step 0 (Scope Challenge): Read actual code referenced by the plan. Map each
|
|
462
|
-
sub-problem to existing code. Run the complexity check. Produce concrete findings.
|
|
463
|
-
|
|
464
|
-
2. Step 0.5 (Dual Voices): Run Claude subagent (foreground) first, then Codex. Present
|
|
465
|
-
Codex output under CODEX SAYS (eng — architecture challenge) header. Present subagent
|
|
466
|
-
output under CLAUDE SUBAGENT (eng — independent review) header. Produce eng consensus
|
|
467
|
-
table:
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
ENG DUAL VOICES — CONSENSUS TABLE:
|
|
471
|
-
═══════════════════════════════════════════════════════════════
|
|
472
|
-
Dimension Claude Codex Consensus
|
|
473
|
-
──────────────────────────────────── ─────── ─────── ─────────
|
|
474
|
-
1. Architecture sound? — — —
|
|
475
|
-
2. Test coverage sufficient? — — —
|
|
476
|
-
3. Performance risks addressed? — — —
|
|
477
|
-
4. Security threats covered? — — —
|
|
478
|
-
5. Error paths handled? — — —
|
|
479
|
-
6. Deployment risk manageable? — — —
|
|
480
|
-
═══════════════════════════════════════════════════════════════
|
|
481
|
-
CONFIRMED = both agree. DISAGREE = models differ (→ taste decision).
|
|
482
|
-
Missing voice = N/A (not CONFIRMED). Single critical finding from one voice = flagged regardless.
|
|
483
|
-
|
|
484
|
-
3. Section 1 (Architecture): Produce ASCII dependency graph showing new components
|
|
485
|
-
and their relationships to existing ones. Evaluate coupling, scaling, security.
|
|
486
|
-
|
|
487
|
-
4. Section 2 (Code Quality): Identify DRY violations, naming issues, complexity.
|
|
488
|
-
Reference specific files and patterns. Auto-decide each finding.
|
|
489
|
-
|
|
490
|
-
5. **Section 3 (Test Review) — NEVER SKIP OR COMPRESS.**
|
|
491
|
-
This section requires reading actual code, not summarizing from memory.
|
|
492
|
-
- Read the diff or the plan's affected files
|
|
493
|
-
- Build the test diagram: list every NEW UX flow, data flow, codepath, and branch
|
|
494
|
-
- For EACH item in the diagram: what type of test covers it? Does one exist? Gaps?
|
|
495
|
-
- For LLM/prompt changes: which eval suites must run?
|
|
496
|
-
- Auto-deciding test gaps means: identify the gap → decide whether to add a test
|
|
497
|
-
or defer (with rationale and principle) → log the decision. It does NOT mean
|
|
498
|
-
skipping the analysis.
|
|
499
|
-
- Write the test plan artifact to disk
|
|
500
|
-
|
|
501
|
-
6. Section 4 (Performance): Evaluate N+1 queries, memory, caching, slow paths.
|
|
502
|
-
|
|
503
|
-
**Mandatory outputs from Phase 3:**
|
|
504
|
-
- "NOT in scope" section
|
|
505
|
-
- "What already exists" section
|
|
506
|
-
- Architecture ASCII diagram (Section 1)
|
|
507
|
-
- Test diagram mapping codepaths to coverage (Section 3)
|
|
508
|
-
- Test plan artifact written to disk (Section 3)
|
|
509
|
-
- Failure modes registry with critical gap flags
|
|
510
|
-
- Completion Summary (the full summary from the Eng skill)
|
|
511
|
-
- TODOS.md updates (collected from all phases)
|
|
512
|
-
|
|
513
|
-
---
|
|
514
|
-
|
|
515
|
-
## Decision Audit Trail
|
|
516
|
-
|
|
517
|
-
After each auto-decision, append a row to the plan file using Edit:
|
|
518
|
-
|
|
519
|
-
```markdown
|
|
520
|
-
<!-- AUTONOMOUS DECISION LOG -->
|
|
521
|
-
## Decision Audit Trail
|
|
522
|
-
|
|
523
|
-
| # | Phase | Decision | Classification | Principle | Rationale | Rejected |
|
|
524
|
-
|---|-------|----------|-----------|-----------|----------|
|
|
525
|
-
|
|
526
|
-
Write one row per decision incrementally (via Edit). This keeps the audit on disk,
|
|
527
|
-
not accumulated in conversation context.
|
|
528
|
-
|
|
529
|
-
---
|
|
530
|
-
|
|
531
|
-
## Pre-Gate Verification
|
|
532
|
-
|
|
533
|
-
Before presenting the Final Approval Gate, verify that required outputs were actually
|
|
534
|
-
produced. Check the plan file and conversation for each item.
|
|
535
|
-
|
|
536
|
-
**Phase 1 (CEO) outputs:**
|
|
537
|
-
- [ ] Premise challenge with specific premises named (not just "premises accepted")
|
|
538
|
-
- [ ] All applicable review sections have findings OR explicit "examined X, nothing flagged"
|
|
539
|
-
- [ ] Error & Rescue Registry table produced (or noted N/A with reason)
|
|
540
|
-
- [ ] Failure Modes Registry table produced (or noted N/A with reason)
|
|
541
|
-
- [ ] "NOT in scope" section written
|
|
542
|
-
- [ ] "What already exists" section written
|
|
543
|
-
- [ ] Dream state delta written
|
|
544
|
-
- [ ] Completion Summary produced
|
|
545
|
-
- [ ] Dual voices ran (Codex + Claude subagent, or noted unavailable)
|
|
546
|
-
- [ ] CEO consensus table produced
|
|
547
|
-
|
|
548
|
-
**Phase 2 (Design) outputs — only if UI scope detected:**
|
|
549
|
-
- [ ] All 7 dimensions evaluated with scores
|
|
550
|
-
- [ ] Issues identified and auto-decided
|
|
551
|
-
- [ ] Dual voices ran (or noted unavailable/skipped with phase)
|
|
552
|
-
- [ ] Design litmus scorecard produced
|
|
553
|
-
|
|
554
|
-
**Phase 3 (Eng) outputs:**
|
|
555
|
-
- [ ] Scope challenge with actual code analysis (not just "scope is fine")
|
|
556
|
-
- [ ] Architecture ASCII diagram produced
|
|
557
|
-
- [ ] Test diagram mapping codepaths to test coverage
|
|
558
|
-
- [ ] Test plan artifact written to disk at ~/.gstack/projects/$SLUG/
|
|
559
|
-
- [ ] "NOT in scope" section written
|
|
560
|
-
- [ ] "What already exists" section written
|
|
561
|
-
- [ ] Failure modes registry with critical gap assessment
|
|
562
|
-
- [ ] Completion Summary produced
|
|
563
|
-
- [ ] Dual voices ran (Codex + Claude subagent, or noted unavailable)
|
|
564
|
-
- [ ] Eng consensus table produced
|
|
565
|
-
|
|
566
|
-
**Cross-phase:**
|
|
567
|
-
- [ ] Cross-phase themes section written
|
|
568
|
-
|
|
569
|
-
**Audit trail:**
|
|
570
|
-
- [ ] Decision Audit Trail has at least one row per auto-decision (not empty)
|
|
571
|
-
|
|
572
|
-
If ANY checkbox above is missing, go back and produce the missing output. Max 2
|
|
573
|
-
attempts — if still missing after retrying twice, proceed to the gate with a warning
|
|
574
|
-
noting which items are incomplete. Do not loop indefinitely.
|
|
575
|
-
|
|
576
|
-
---
|
|
577
|
-
|
|
578
|
-
## Phase 4: Final Approval Gate
|
|
579
|
-
|
|
580
|
-
**STOP here and present the final state to the user.**
|
|
581
|
-
|
|
582
|
-
Present as a message, then use AskUserQuestion:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
## /autoplan Review Complete
|
|
586
|
-
|
|
587
|
-
### Plan Summary
|
|
588
|
-
[1-3 sentence summary]
|
|
589
|
-
|
|
590
|
-
### Decisions Made: [N] total ([M] auto-decided, [K] taste choices, [J] user challenges)
|
|
591
|
-
|
|
592
|
-
### User Challenges (both models disagree with your stated direction)
|
|
593
|
-
[For each user challenge:]
|
|
594
|
-
**Challenge [N]: [title]** (from [phase])
|
|
595
|
-
You said: [user's original direction]
|
|
596
|
-
Both models recommend: [the change]
|
|
597
|
-
Why: [reasoning]
|
|
598
|
-
What we might be missing: [blind spots]
|
|
599
|
-
If we're wrong, the cost is: [downside of changing]
|
|
600
|
-
[If security/feasibility: "⚠️ Both models flag this as a security/feasibility risk,
|
|
601
|
-
not just a preference."]
|
|
602
|
-
|
|
603
|
-
Your call — your original direction stands unless you explicitly change it.
|
|
604
|
-
|
|
605
|
-
### Your Choices (taste decisions)
|
|
606
|
-
[For each taste decision:]
|
|
607
|
-
**Choice [N]: [title]** (from [phase])
|
|
608
|
-
I recommend [X] — [principle]. But [Y] is also viable:
|
|
609
|
-
[1-sentence downstream impact if you pick Y]
|
|
610
|
-
|
|
611
|
-
### Auto-Decided: [M] decisions [see Decision Audit Trail in plan file]
|
|
612
|
-
|
|
613
|
-
### Review Scores
|
|
614
|
-
- CEO: [summary]
|
|
615
|
-
- CEO Voices: Codex [summary], Claude subagent [summary], Consensus [X/6 confirmed]
|
|
616
|
-
- Design: [summary or "skipped, no UI scope"]
|
|
617
|
-
- Design Voices: Codex [summary], Claude subagent [summary], Consensus [X/7 confirmed] (or "skipped")
|
|
618
|
-
- Eng: [summary]
|
|
619
|
-
- Eng Voices: Codex [summary], Claude subagent [summary], Consensus [X/6 confirmed]
|
|
620
|
-
|
|
621
|
-
### Cross-Phase Themes
|
|
622
|
-
[For any concern that appeared in 2+ phases' dual voices independently:]
|
|
623
|
-
**Theme: [topic]** — flagged in [Phase 1, Phase 3]. High-confidence signal.
|
|
624
|
-
[If no themes span phases:] "No cross-phase themes — each phase's concerns were distinct."
|
|
625
|
-
|
|
626
|
-
### Deferred to TODOS.md
|
|
627
|
-
[Items auto-deferred with reasons]
|
|
628
|
-
|
|
629
|
-
**Cognitive load management:**
|
|
630
|
-
- 0 user challenges: skip "User Challenges" section
|
|
631
|
-
- 0 taste decisions: skip "Your Choices" section
|
|
632
|
-
- 1-7 taste decisions: flat list
|
|
633
|
-
- 8+: group by phase. Add warning: "This plan had unusually high ambiguity ([N] taste decisions). Review carefully."
|
|
634
|
-
|
|
635
|
-
AskUserQuestion options:
|
|
636
|
-
- A) Approve as-is (accept all recommendations)
|
|
637
|
-
- B) Approve with overrides (specify which taste decisions to change)
|
|
638
|
-
- B2) Approve with user challenge responses (accept or reject each challenge)
|
|
639
|
-
- C) Interrogate (ask about any specific decision)
|
|
640
|
-
- D) Revise (the plan itself needs changes)
|
|
641
|
-
- E) Reject (start over)
|
|
642
|
-
|
|
643
|
-
**Option handling:**
|
|
644
|
-
- A: mark APPROVED, write review logs, suggest /ship
|
|
645
|
-
- B: ask which overrides, apply, re-present gate
|
|
646
|
-
- C: answer freeform, re-present gate
|
|
647
|
-
- D: make changes, re-run affected phases (scope→1B, design→2, test plan→3, arch→3). Max 3 cycles.
|
|
648
|
-
- E: start over
|
|
649
|
-
|
|
650
|
-
---
|
|
651
|
-
|
|
652
|
-
## Completion: Write Review Logs
|
|
653
|
-
|
|
654
|
-
On approval, write 3 separate review log entries so /ship's dashboard recognizes them.
|
|
655
|
-
Replace TIMESTAMP, STATUS, and N with actual values from each review phase.
|
|
656
|
-
STATUS is "clean" if no unresolved issues, "issues_open" otherwise.
|
|
657
|
-
|
|
658
|
-
```bash
|
|
659
|
-
COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
|
|
660
|
-
TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
661
|
-
|
|
662
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"plan-ceo-review","timestamp":"'"$TIMESTAMP"'","status":"STATUS","unresolved":N,"critical_gaps":N,"mode":"SELECTIVE_EXPANSION","via":"autoplan","commit":"'"$COMMIT"'"}'
|
|
663
|
-
|
|
664
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"plan-eng-review","timestamp":"'"$TIMESTAMP"'","status":"STATUS","unresolved":N,"critical_gaps":N,"issues_found":N,"mode":"FULL_REVIEW","via":"autoplan","commit":"'"$COMMIT"'"}'
|
|
665
|
-
|
|
666
|
-
If Phase 2 ran (UI scope):
|
|
667
|
-
```bash
|
|
668
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"plan-design-review","timestamp":"'"$TIMESTAMP"'","status":"STATUS","unresolved":N,"via":"autoplan","commit":"'"$COMMIT"'"}'
|
|
669
|
-
|
|
670
|
-
Dual voice logs (one per phase that ran):
|
|
671
|
-
```bash
|
|
672
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"autoplan-voices","timestamp":"'"$TIMESTAMP"'","status":"STATUS","source":"SOURCE","phase":"ceo","via":"autoplan","consensus_confirmed":N,"consensus_disagree":N,"commit":"'"$COMMIT"'"}'
|
|
673
|
-
|
|
674
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"autoplan-voices","timestamp":"'"$TIMESTAMP"'","status":"STATUS","source":"SOURCE","phase":"eng","via":"autoplan","consensus_confirmed":N,"consensus_disagree":N,"commit":"'"$COMMIT"'"}'
|
|
675
|
-
|
|
676
|
-
If Phase 2 ran (UI scope), also log:
|
|
677
|
-
```bash
|
|
678
|
-
~/.claude/skills/opengstack/bin/gstack-review-log '{"skill":"autoplan-voices","timestamp":"'"$TIMESTAMP"'","status":"STATUS","source":"SOURCE","phase":"design","via":"autoplan","consensus_confirmed":N,"consensus_disagree":N,"commit":"'"$COMMIT"'"}'
|
|
679
|
-
|
|
680
|
-
SOURCE = "codex+subagent", "codex-only", "subagent-only", or "unavailable".
|
|
681
|
-
Replace N values with actual consensus counts from the tables.
|
|
682
|
-
|
|
683
|
-
Suggest next step: `/ship` when ready to create the PR.
|
|
684
|
-
|
|
685
|
-
---
|
|
686
|
-
|
|
687
|
-
## Important Rules
|
|
688
|
-
|
|
689
|
-
- **Never abort.** The user chose /autoplan. Respect that choice. Surface all taste decisions, never redirect to interactive review.
|
|
690
|
-
- **Two gates.** The non-auto-decided AskUserQuestions are: (1) premise confirmation in Phase 1, and (2) User Challenges — when both models agree the user's stated direction should change. Everything else is auto-decided using the 6 principles.
|
|
691
|
-
- **Log every decision.** No silent auto-decisions. Every choice gets a row in the audit trail.
|
|
692
|
-
- **Full depth means full depth.** Do not compress or skip sections from the loaded skill files (except the skip list in Phase 0). "Full depth" means: read the code the section asks you to read, produce the outputs the section requires, identify every issue, and decide each one. A one-sentence summary of a section is not "full depth" — it is a skip. If you catch yourself writing fewer than 3 sentences for any review section, you are likely compressing.
|
|
693
|
-
- **Artifacts are deliverables.** Test plan artifact, failure modes registry, error/rescue table, ASCII diagrams — these must exist on disk or in the plan file when the review completes. If they don't exist, the review is incomplete.
|
|
694
|
-
- **Sequential order.** CEO → Design → Eng. Each phase builds on the last.
|