godpowers 2.0.0 → 2.1.1

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.
Files changed (53) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +141 -0
  3. package/README.md +45 -5
  4. package/RELEASE.md +30 -48
  5. package/SKILL.md +9 -1
  6. package/agents/god-design-reviewer.md +6 -6
  7. package/agents/god-designer.md +1 -1
  8. package/agents/god-executor.md +23 -0
  9. package/agents/god-quality-reviewer.md +12 -1
  10. package/agents/god-spec-reviewer.md +10 -0
  11. package/bin/install.js +119 -655
  12. package/extensions/launch-pack/README.md +1 -1
  13. package/lib/README.md +16 -0
  14. package/lib/agent-browser-driver.js +13 -13
  15. package/lib/agent-cache.js +8 -1
  16. package/lib/agent-refs.js +161 -0
  17. package/lib/budget.js +25 -11
  18. package/lib/context-writer.js +17 -6
  19. package/lib/events.js +11 -4
  20. package/lib/extension-authoring.js +27 -0
  21. package/lib/feature-awareness.js +18 -0
  22. package/lib/fs-async.js +28 -0
  23. package/lib/installer-args.js +99 -0
  24. package/lib/installer-core.js +345 -0
  25. package/lib/installer-files.js +80 -0
  26. package/lib/installer-runtimes.js +112 -0
  27. package/lib/intent.js +111 -16
  28. package/lib/release-surface-sync.js +8 -1
  29. package/lib/repo-surface-sync.js +9 -2
  30. package/lib/review-required.js +2 -1
  31. package/lib/router.js +23 -3
  32. package/lib/skill-surface.js +42 -0
  33. package/lib/state-lock.js +10 -0
  34. package/lib/state.js +101 -8
  35. package/lib/workflow-runner.js +42 -5
  36. package/package.json +4 -3
  37. package/references/HAVE-NOTS.md +4 -3
  38. package/references/orchestration/GOD-MODE-RUNBOOK.md +273 -0
  39. package/routing/god-arch.yaml +1 -1
  40. package/routing/god-build.yaml +1 -1
  41. package/skills/god-add-backlog.md +1 -1
  42. package/skills/god-agent-audit.md +2 -2
  43. package/skills/god-build.md +5 -3
  44. package/skills/god-context-scan.md +2 -3
  45. package/skills/god-design.md +2 -2
  46. package/skills/god-doctor.md +2 -2
  47. package/skills/god-help.md +4 -3
  48. package/skills/god-mode.md +10 -266
  49. package/skills/god-org-context.md +1 -1
  50. package/skills/god-repair.md +3 -3
  51. package/skills/god-review.md +9 -0
  52. package/skills/god-stories.md +1 -1
  53. package/skills/god-version.md +2 -2
@@ -590,11 +590,12 @@ Updates applied without reading changelog for breaking changes. Fail.
590
590
  ## Reference Tally
591
591
 
592
592
  - Universal: 12
593
- - Tier 0 Orchestration: 6
593
+ - Tier 0 Orchestration: 10
594
594
  - Tier 1 PRD: 15
595
- - Tier 1 Architecture: 12
595
+ - Tier 1 Architecture: 13
596
596
  - Tier 1 Roadmap: 10
597
597
  - Tier 1 Stack: 5
598
+ - Tier 1 Domain Glossary: 5
598
599
  - Tier 2 Repo: 8
599
600
  - Tier 2 Build: 12
600
601
  - Tier 3 Deploy: 8
@@ -607,7 +608,7 @@ Updates applied without reading changelog for breaking changes. Fail.
607
608
  - Workflow Docs: 5
608
609
  - Workflow Deps: 6
609
610
 
610
- **Total: 146 named have-nots.**
611
+ **Total: 156 named have-nots.**
611
612
 
612
613
  Each is grep-testable. Each is a documented failure mode. Together they form
613
614
  the mechanical quality definition for Godpowers output.
@@ -0,0 +1,273 @@
1
+ # God Mode Runbook
2
+
3
+ This reference contains the detailed transcript, flag, final sync, and completion contracts for `/god-mode`. The skill file remains the dispatch contract and points here for operational templates.
4
+
5
+ ## User-Visible Transcript Contract
6
+
7
+ The God Mode transcript is an operator console, not a prompt debugger.
8
+
9
+ Show:
10
+ - detected resume or project mode in plain language
11
+ - a compact "Next step" card before each visible phase or tier sub-step
12
+ - a compact "Step result" card after each visible phase or tier sub-step
13
+ - every auto-invoked command, agent, and local runtime helper using an
14
+ `Auto-invoked:` or `Sync status:` card
15
+ - plain-language workflow names. Say "project run" or "workflow" instead of
16
+ unexplained "arc" in visible output
17
+ - PRD and roadmap visibility in status and closeout blocks when artifacts
18
+ exist or are expected
19
+ - short progress updates for phases, commands, validations, and file edits
20
+ - concise validation summaries instead of full command noise when possible
21
+ - final changed paths, validation results, and completion or pause status
22
+ - final Godpowers Dashboard from disk, including phase, tier, step, progress,
23
+ planning visibility, proactive checks, open items, worktree/index state, and
24
+ recommended next action
25
+
26
+ Hide:
27
+ - raw spawn input
28
+ - "Hard instructions" sections
29
+ - spawned-agent prompt text
30
+ - detailed handoff file contents
31
+ - system, developer, or AGENTS.md rule recitations
32
+ - complete file loadout lists
33
+ - internal routing metadata unless it directly affects a user decision
34
+
35
+ If an internal instruction must influence a pause, translate it into the
36
+ smallest user-facing question. For example, ask for
37
+ `STAGING_APP_URL=<deployed staging origin>` at final sign-off instead of
38
+ exposing the full Shipping Closure Protocol.
39
+
40
+ ## Step Cards
41
+
42
+ Relay the orchestrator's step cards when present. If the orchestrator output is
43
+ missing them, synthesize them from disk state before continuing.
44
+
45
+ Before work starts:
46
+
47
+ ```text
48
+ Next step
49
+ Phase: <plain-language phase> (tier <human ordinal> of <human total>)
50
+ Step: <sub-step-label>
51
+ Progress: <pct>% (<done> of <total> steps complete; step <n> of <total>)
52
+ Why this now: <one sentence>
53
+ What will happen:
54
+ 1. <observable action>
55
+ 2. <observable action>
56
+ Expected output: <artifact path or verification result>
57
+ ```
58
+
59
+ After work completes or pauses:
60
+
61
+ ```text
62
+ Step result
63
+ Phase: <plain-language phase> (tier <human ordinal> of <human total>)
64
+ Step: <sub-step-label>
65
+ Progress: <pct>% (<done> of <total> steps complete; step <n> of <total>)
66
+ Result: <done | blocked | failed | skipped | imported>
67
+ What happened:
68
+ 1. <observable action completed>
69
+ 2. <artifact or verification result>
70
+ Next: <next command or pause question>
71
+ ```
72
+
73
+ ## Pause Format (relay from orchestrator)
74
+
75
+ ```
76
+ PAUSE: [one-sentence question]
77
+
78
+ Why only you can answer: [one sentence]
79
+
80
+ | Option | Tradeoff |
81
+ |--------|----------|
82
+ | A: ... | ... |
83
+ | B: ... | ... |
84
+
85
+ Default: If you say "go", I'll pick [X] because [Y].
86
+ ```
87
+
88
+ ## Flags
89
+
90
+ ### --yolo
91
+ Pass through to orchestrator. Orchestrator picks defaults at every pause point
92
+ and logs decisions to `.godpowers/YOLO-DECISIONS.md`. Pillar sync proposals
93
+ generated from durable Godpowers artifact changes are auto-applied in this
94
+ mode and logged as YOLO decisions.
95
+
96
+ `--yolo` does not skip release-truth gates. If safe sync is unresolved, route
97
+ to `/god-reconcile Release Truth And Safe Sync`. If harden has unresolved
98
+ Critical findings, pause even under `--yolo`.
99
+
100
+ For brownfield and bluefield, `--yolo` still runs `/god-preflight` first when
101
+ `.godpowers/preflight/PREFLIGHT.md` is absent. The orchestrator then follows
102
+ the preflight report's safest recommended route automatically, logging that
103
+ choice to `.godpowers/YOLO-DECISIONS.md`. Preflight may only pause under
104
+ `--yolo` for Critical security findings or a contradiction that makes route
105
+ selection impossible.
106
+
107
+ ### --conservative
108
+ Pass through. Orchestrator pauses at every tier boundary.
109
+
110
+ ### --from=<tier>
111
+ Pass through. Orchestrator re-derives state from disk and starts from named tier.
112
+
113
+ ### --audit
114
+ Pass through. Orchestrator skips building, runs god-auditor on existing artifacts.
115
+
116
+ ### --dry-run
117
+ Pass through. Orchestrator plans but writes nothing.
118
+
119
+ ### --with-hygiene
120
+ After Launch, run a post-launch hygiene pass: god-auditor + god-deps-auditor +
121
+ god-docs-writer verification. Catches pre-existing CVEs, doc drift, artifact
122
+ quality drift before declaring complete.
123
+
124
+ ### --skip-hygiene
125
+ Default. Skip the hygiene pass. Use when iterating quickly.
126
+
127
+ ## Mandatory final sync
128
+
129
+ Regardless of flags, `/god-mode` always runs `/god-sync` before declaring
130
+ complete. This ensures all 14 core artifact categories and local sync surfaces
131
+ are in a consistent state:
132
+
133
+ - 10 Tier 0-3 artifacts validated (have-nots passing)
134
+ - 4 capture artifacts noted as `not-yet-created` (graceful handling)
135
+ - repo-doc, repo-surface, feature awareness, source sync-back, host capability,
136
+ checkpoint, Pillars, and context refresh statuses reported
137
+ - SYNC-LOG.md updated with project-run completion entry
138
+ - state.json reflects final tier statuses
139
+
140
+ Under `--yolo`, the sync step auto-applies (no pause). Under
141
+ `--conservative`, it pauses for confirmation. Under `--with-hygiene`,
142
+ it runs alongside the hygiene pass.
143
+
144
+ Display this before the final completion block:
145
+
146
+ ```
147
+ Sync status:
148
+ Trigger: /god-mode final sync
149
+ Agent: god-updater spawned
150
+ Local syncs:
151
+ + feature-awareness: <recorded runtime features, refreshed context, or no-op>
152
+ + reverse-sync: <counts and result>
153
+ + repo-doc-sync: <refreshed repo docs, recommended god-docs-writer, or no-op>
154
+ + repo-surface-sync: <checked structural surfaces, recommended scoped agents, or no-op>
155
+ + pillars-sync: <counts and result>
156
+ + checkpoint-sync: <created, updated, no-op, or skipped>
157
+ + context-refresh: <spawned, no-op, or skipped>
158
+ Artifacts: <changed files or no-op>
159
+ Log: .godpowers/SYNC-LOG.md
160
+ ```
161
+
162
+ The sync step also reconciles native Pillars context. When `.godpowers`
163
+ artifacts create or change durable project truth, Godpowers maps those changes
164
+ to relevant pillar files through `lib/pillars.planArtifactSync`. Default mode
165
+ proposes pillar updates for review. `--yolo` applies them immediately and logs
166
+ the action to `.godpowers/YOLO-DECISIONS.md`.
167
+
168
+ When `/god-mode` resumes an existing `.godpowers` project, it auto-invokes
169
+ `lib/feature-awareness.run(projectRoot)` before the final sync report. This
170
+ keeps upgraded projects aware of new runtime features, current context fences,
171
+ and migration routes without rewriting user artifacts.
172
+
173
+ The mandatory final sync also receives repo documentation sync through
174
+ `/god-sync`. This keeps README badges, release surfaces, contribution guidance,
175
+ security policy checks, and Pillars context planning arc-ready before the
176
+ project run is declared complete.
177
+
178
+ The mandatory final sync also receives repo surface sync through `/god-sync`.
179
+ This keeps routes, packages, agent handoffs, workflow metadata, recipe routes,
180
+ extension packs, and release policy checks aligned before the project run is
181
+ declared complete.
182
+
183
+ If `/god-mode` resumes an existing `.godpowers` project that lacks Pillars,
184
+ it Pillar-izes the project before continuing. Existing `.godpowers` artifacts
185
+ become managed source references in the relevant `agents/*.md` files.
186
+
187
+ The sync step is what closes the loop between greenfield project-run creation and
188
+ the comprehensive 14-artifact reconciliation system. See
189
+ `docs/greenfield-coverage.md` for what's created when.
190
+
191
+ ## Completion
192
+
193
+ When orchestrator returns "complete", display:
194
+
195
+ ```
196
+ Godpowers project run complete.
197
+
198
+ Sync status:
199
+ Trigger: /god-mode final sync
200
+ Agent: god-updater spawned
201
+ Local syncs:
202
+ + feature-awareness: <recorded runtime features, refreshed context, or no-op>
203
+ + reverse-sync: <counts and result>
204
+ + repo-doc-sync: <refreshed repo docs, recommended god-docs-writer, or no-op>
205
+ + repo-surface-sync: <checked structural surfaces, recommended scoped agents, or no-op>
206
+ + pillars-sync: <counts and result>
207
+ + checkpoint-sync: <created, updated, no-op, or skipped>
208
+ + context-refresh: <spawned, no-op, or skipped>
209
+ Artifacts: <changed files or no-op>
210
+ Log: .godpowers/SYNC-LOG.md
211
+
212
+ Current status:
213
+ State: complete
214
+ Progress: <pct>% (<done> of <total> steps complete; current step <n> of <total>)
215
+ Worktree: <clean | modified files unstaged | staged changes | mixed>
216
+ Index: <untouched | staged files listed>
217
+
218
+ Planning visibility:
219
+ PRD: <done | pending | missing | deferred> <artifact path when present>
220
+ Roadmap: <done | pending | missing | deferred> <artifact path when present>
221
+ Current milestone: <roadmap milestone, tier, or next planning gate when known>
222
+ Completion: <pct>% <brief basis, for example done steps over total tracked steps>
223
+
224
+ Artifacts on disk:
225
+ + PRD .godpowers/prd/PRD.md
226
+ + Architecture .godpowers/arch/ARCH.md
227
+ + Roadmap .godpowers/roadmap/ROADMAP.md
228
+ + Stack .godpowers/stack/DECISION.md
229
+ + Repo .godpowers/repo/AUDIT.md
230
+ + Build .godpowers/build/STATE.md
231
+ + Deploy .godpowers/deploy/STATE.md
232
+ + Observe .godpowers/observe/STATE.md
233
+ + Launch .godpowers/launch/STATE.md
234
+ + Harden .godpowers/harden/FINDINGS.md
235
+
236
+ Built. Tested. Shipped. Hardened.
237
+
238
+ Project is now in STEADY STATE. From here, use these workflows:
239
+
240
+ Adding features: /god-feature
241
+ Production bugs: /god-hotfix
242
+ Code cleanup: /god-refactor
243
+ Research questions: /god-spike
244
+ Post-incident: /god-postmortem
245
+ Framework upgrades: /god-upgrade
246
+ Documentation: /god-docs
247
+ Dependency updates: /god-update-deps
248
+
249
+ Periodic hygiene:
250
+ Quality audit: /god-audit
251
+ Health check: /god-hygiene
252
+
253
+ Open items:
254
+ 1. <none, or deployed staging deferred, pending review, unstaged files, etc.>
255
+
256
+ Next:
257
+ Recommended: <single safest command or decision>
258
+ Why: <one sentence tied to disk state>
259
+
260
+ Proposition:
261
+ 1. Review status: /god-status
262
+ 2. Continue work: /god-next or describe the next intent
263
+ 3. Commit release-ready changes: stage only the intended files, then commit
264
+ 4. Run deployed staging: provide STAGING_APP_URL=<deployed staging origin> when needed
265
+ ```
266
+
267
+ If the run edited code but did not stage or commit, the completion block must
268
+ say so. If unrelated or pre-existing worktree changes are present, do not imply
269
+ the worktree is clean. Recommend a scoped review or explicit staging path.
270
+
271
+ If the run is a focused brownfield/refactor workflow rather than a full greenfield
272
+ project run, adapt the same closeout shape and replace "Project is now in STEADY
273
+ STATE" with the actual disk-derived lifecycle and next route.
@@ -31,7 +31,7 @@ execution:
31
31
  standards:
32
32
  substitution-test: true
33
33
  three-label-test: true
34
- have-nots: [A-01, A-02, A-03, A-04, A-05, A-06, A-07, A-08, A-09, A-10, A-11, A-12]
34
+ have-nots: [A-01, A-02, A-03, A-04, A-05, A-06, A-07, A-08, A-09, A-10, A-11, A-12, A-13]
35
35
  gate-on-failure: pause-for-user
36
36
 
37
37
  success-path:
@@ -11,7 +11,7 @@ prerequisites:
11
11
  auto-complete: /god-roadmap
12
12
  human-required: true
13
13
  - check: state:tier-2.repo.status == done
14
- auto-complete: /god-roadmap
14
+ auto-complete: /god-repo
15
15
  human-required: true
16
16
 
17
17
  execution:
@@ -2,7 +2,7 @@
2
2
  name: god-add-backlog
3
3
  description: |
4
4
  Add an idea to the backlog. Less urgent than a todo. Reviewed periodically
5
- via /god-review-backlog. Captured in .godpowers/backlog/BACKLOG.md.
5
+ via /god-add-backlog list. Captured in .godpowers/backlog/BACKLOG.md.
6
6
 
7
7
  Triggers on: "god add backlog", "/god-add-backlog", "backlog this", "for later"
8
8
  ---
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: god-agent-audit
3
3
  description: |
4
- Validates every `agents/*.md` against the agent contract:
4
+ Validates every `agents/god-*.md` against the agent contract:
5
5
  required frontmatter, recommended sections (Have-Nots, Inputs,
6
6
  Outputs, Handoff), hand-off targets exist, no dual-ownership of
7
7
  output paths. Lenient by design: most issues are warnings; only
@@ -50,7 +50,7 @@ opportunities, not failures.
50
50
  ```
51
51
  Agent audit
52
52
 
53
- 37 agents audited
53
+ 40 agents audited
54
54
  0 errors, 2 warnings, 90 infos
55
55
 
56
56
  Errors:
@@ -39,12 +39,14 @@ For each slice in the wave (parallel):
39
39
  - The slice plan only (not the whole PLAN.md)
40
40
  - Relevant ARCH context for this slice
41
41
  - Stack DECISION
42
- 2. Wait for executor to complete (TDD enforced)
42
+ 2. Wait for executor to complete (TDD and request-trace discipline enforced)
43
43
  3. Spawn **god-spec-reviewer** in fresh context (independent of executor)
44
- - If FAIL: return slice to god-executor with findings
44
+ - If FAIL: return slice to god-executor with findings, including any
45
+ scope creep or request-trace failures
45
46
  - If PASS: proceed to stage 2
46
47
  4. Spawn **god-quality-reviewer** in fresh context (independent)
47
- - If FAIL: return slice to god-executor with findings
48
+ - If FAIL: return slice to god-executor with findings, including any
49
+ overcomplication, speculative abstraction, or unrelated cleanup
48
50
  - If PASS: commit the slice atomically
49
51
  5. Update `.godpowers/build/STATE.md`
50
52
 
@@ -60,9 +60,8 @@ called drifts.
60
60
  last 3 events)
61
61
  - **info**: claim mentions facts not in CHECKPOINT held-facts
62
62
  (might be new, worth recording)
63
- 6. Suggested actions: `/god-locate` to re-orient, `/god-repair`
64
- for state drift, or accept the new facts via `/god-checkpoint
65
- --record-facts`.
63
+ 6. Suggested actions: `/god-locate` to re-orient, or `/god-repair`
64
+ to reconcile state drift and record the new facts.
66
65
 
67
66
  ### Output
68
67
 
@@ -54,7 +54,7 @@ producing DESIGN.md in the
54
54
  | `/god-design optimize` | Performance improvements (impeccable optimize) |
55
55
  | `/god-design live` | Visual variant mode (impeccable live) |
56
56
  | `/god-design status` | Lint findings + drift report |
57
- | `/god-design impact "<change>"` | What-if analysis (delegates to god-impact-analyzer) |
57
+ | `/god-design impact "<change>"` | What-if analysis (delegates to /god-design-impact) |
58
58
 
59
59
  ## Process
60
60
 
@@ -100,7 +100,7 @@ Project root:
100
100
 
101
101
  Inside `.godpowers/design/`:
102
102
  - `STATE.md` (lint history, version, impeccable command log)
103
- - `HISTORY.md` (append-only log of design changes; populated by god-design-updater)
103
+ - `HISTORY.md` (append-only log of design changes; populated by god-designer)
104
104
  - `REJECTED.md` (append-only log of blocked changes; populated by god-design-reviewer)
105
105
 
106
106
  ## Output to events.jsonl
@@ -50,7 +50,7 @@ GODPOWERS DOCTOR
50
50
  Install: claude (~/.claude/)
51
51
  [OK] 110 skills installed
52
52
  [OK] 40 agents installed
53
- [OK] VERSION matches (1.6.6)
53
+ [OK] VERSION matches (2.1.1)
54
54
  [WARN] routing/god-doctor.yaml exists but skill file did not until now
55
55
 
56
56
  Project: /Users/.../my-project/.godpowers/
@@ -144,7 +144,7 @@ findings should recommend the scoped specialist named by the helper.
144
144
  Built-in, no spawned agent. Reads:
145
145
  - `<runtime>/GODPOWERS_VERSION` (compare to package.json)
146
146
  - `<runtime>/skills/` and `<runtime>/agents/` listings
147
- - `.godpowers/state.json`, `intent.yaml`, `log`, `linkage.json`
147
+ - `.godpowers/state.json`, `intent.yaml`, `log`, `links/`
148
148
  - `lib/feature-awareness.detect(projectRoot)` for existing-project upgrade
149
149
  awareness
150
150
  - `lib/repo-doc-sync.detect(projectRoot)` for repo documentation freshness
@@ -28,9 +28,10 @@ All installed skills grouped by category. Categories match
28
28
  `docs/reference.md` order.
29
29
 
30
30
  ### 4. Where to go for more
31
- - Full reference: `<runtime>/godpowers-references/reference.md`
32
- - Concepts: `<runtime>/godpowers-references/concepts.md`
33
- - Roadmap: `<runtime>/godpowers-references/ROADMAP.md`
31
+ - Full reference: https://github.com/aihxp/godpowers/blob/main/docs/reference.md
32
+ - Concepts: https://github.com/aihxp/godpowers/blob/main/docs/concepts.md
33
+ - Roadmap: https://github.com/aihxp/godpowers/blob/main/docs/ROADMAP.md
34
+ - Installed have-nots catalog: `<runtime>/godpowers-references/HAVE-NOTS.md`
34
35
 
35
36
  ## Subcommands
36
37