godpowers 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +126 -0
  3. package/README.md +45 -5
  4. package/RELEASE.md +45 -39
  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/agent-browser-driver.js +13 -13
  14. package/lib/agent-cache.js +8 -1
  15. package/lib/agent-refs.js +161 -0
  16. package/lib/budget.js +25 -11
  17. package/lib/events.js +11 -4
  18. package/lib/extension-authoring.js +27 -0
  19. package/lib/feature-awareness.js +18 -0
  20. package/lib/fs-async.js +28 -0
  21. package/lib/installer-args.js +99 -0
  22. package/lib/installer-core.js +345 -0
  23. package/lib/installer-files.js +80 -0
  24. package/lib/installer-runtimes.js +112 -0
  25. package/lib/intent.js +111 -16
  26. package/lib/release-surface-sync.js +8 -1
  27. package/lib/repo-surface-sync.js +9 -2
  28. package/lib/review-required.js +2 -1
  29. package/lib/router.js +23 -3
  30. package/lib/skill-surface.js +42 -0
  31. package/lib/state-lock.js +10 -0
  32. package/lib/state.js +101 -8
  33. package/lib/workflow-runner.js +42 -5
  34. package/package.json +4 -3
  35. package/references/HAVE-NOTS.md +4 -3
  36. package/references/orchestration/GOD-MODE-RUNBOOK.md +273 -0
  37. package/routing/god-arch.yaml +1 -1
  38. package/routing/god-build.yaml +1 -1
  39. package/skills/god-add-backlog.md +1 -1
  40. package/skills/god-agent-audit.md +2 -2
  41. package/skills/god-build.md +5 -3
  42. package/skills/god-context-scan.md +2 -3
  43. package/skills/god-design.md +2 -2
  44. package/skills/god-doctor.md +2 -2
  45. package/skills/god-help.md +4 -3
  46. package/skills/god-mode.md +10 -266
  47. package/skills/god-org-context.md +1 -1
  48. package/skills/god-repair.md +3 -3
  49. package/skills/god-review.md +9 -0
  50. package/skills/god-stories.md +1 -1
  51. package/skills/god-version.md +2 -2
@@ -161,272 +161,16 @@ workflow.
161
161
  create a new handoff file, then re-spawn god-orchestrator with only the
162
162
  display-safe pointer.
163
163
 
164
- ## User-Visible Transcript Contract
164
+ ## Runbook Contracts
165
165
 
166
- The God Mode transcript is an operator console, not a prompt debugger.
166
+ Detailed operator transcript rules, step cards, pause format, flag behavior, mandatory final sync, and completion templates live in `references/orchestration/GOD-MODE-RUNBOOK.md`.
167
167
 
168
- Show:
169
- - detected resume or project mode in plain language
170
- - a compact "Next step" card before each visible phase or tier sub-step
171
- - a compact "Step result" card after each visible phase or tier sub-step
172
- - every auto-invoked command, agent, and local runtime helper using an
173
- `Auto-invoked:` or `Sync status:` card
174
- - plain-language workflow names. Say "project run" or "workflow" instead of
175
- unexplained "arc" in visible output
176
- - PRD and roadmap visibility in status and closeout blocks when artifacts
177
- exist or are expected
178
- - short progress updates for phases, commands, validations, and file edits
179
- - concise validation summaries instead of full command noise when possible
180
- - final changed paths, validation results, and completion or pause status
181
- - final Godpowers Dashboard from disk, including phase, tier, step, progress,
182
- planning visibility, proactive checks, open items, worktree/index state, and
183
- recommended next action
168
+ When spawning `god-orchestrator`, include the runbook path in the private handoff file and instruct the orchestrator to follow it. Keep the visible spawn payload display-safe and never copy hidden handoff details into the transcript.
184
169
 
185
- Hide:
186
- - raw spawn input
187
- - "Hard instructions" sections
188
- - spawned-agent prompt text
189
- - detailed handoff file contents
190
- - system, developer, or AGENTS.md rule recitations
191
- - complete file loadout lists
192
- - internal routing metadata unless it directly affects a user decision
193
-
194
- If an internal instruction must influence a pause, translate it into the
195
- smallest user-facing question. For example, ask for
196
- `STAGING_APP_URL=<deployed staging origin>` at final sign-off instead of
197
- exposing the full Shipping Closure Protocol.
198
-
199
- ## Step Cards
200
-
201
- Relay the orchestrator's step cards when present. If the orchestrator output is
202
- missing them, synthesize them from disk state before continuing.
203
-
204
- Before work starts:
205
-
206
- ```text
207
- Next step
208
- Phase: <plain-language phase> (tier <human ordinal> of <human total>)
209
- Step: <sub-step-label>
210
- Progress: <pct>% (<done> of <total> steps complete; step <n> of <total>)
211
- Why this now: <one sentence>
212
- What will happen:
213
- 1. <observable action>
214
- 2. <observable action>
215
- Expected output: <artifact path or verification result>
216
- ```
217
-
218
- After work completes or pauses:
219
-
220
- ```text
221
- Step result
222
- Phase: <plain-language phase> (tier <human ordinal> of <human total>)
223
- Step: <sub-step-label>
224
- Progress: <pct>% (<done> of <total> steps complete; step <n> of <total>)
225
- Result: <done | blocked | failed | skipped | imported>
226
- What happened:
227
- 1. <observable action completed>
228
- 2. <artifact or verification result>
229
- Next: <next command or pause question>
230
- ```
231
-
232
- ## Pause Format (relay from orchestrator)
233
-
234
- ```
235
- PAUSE: [one-sentence question]
236
-
237
- Why only you can answer: [one sentence]
238
-
239
- | Option | Tradeoff |
240
- |--------|----------|
241
- | A: ... | ... |
242
- | B: ... | ... |
243
-
244
- Default: If you say "go", I'll pick [X] because [Y].
245
- ```
246
-
247
- ## Flags
248
-
249
- ### --yolo
250
- Pass through to orchestrator. Orchestrator picks defaults at every pause point
251
- and logs decisions to `.godpowers/YOLO-DECISIONS.md`. Pillar sync proposals
252
- generated from durable Godpowers artifact changes are auto-applied in this
253
- mode and logged as YOLO decisions.
254
-
255
- `--yolo` does not skip release-truth gates. If safe sync is unresolved, route
256
- to `/god-reconcile Release Truth And Safe Sync`. If harden has unresolved
257
- Critical findings, pause even under `--yolo`.
258
-
259
- For brownfield and bluefield, `--yolo` still runs `/god-preflight` first when
260
- `.godpowers/preflight/PREFLIGHT.md` is absent. The orchestrator then follows
261
- the preflight report's safest recommended route automatically, logging that
262
- choice to `.godpowers/YOLO-DECISIONS.md`. Preflight may only pause under
263
- `--yolo` for Critical security findings or a contradiction that makes route
264
- selection impossible.
265
-
266
- ### --conservative
267
- Pass through. Orchestrator pauses at every tier boundary.
268
-
269
- ### --from=<tier>
270
- Pass through. Orchestrator re-derives state from disk and starts from named tier.
271
-
272
- ### --audit
273
- Pass through. Orchestrator skips building, runs god-auditor on existing artifacts.
274
-
275
- ### --dry-run
276
- Pass through. Orchestrator plans but writes nothing.
277
-
278
- ### --with-hygiene
279
- After Launch, run a post-launch hygiene pass: god-auditor + god-deps-auditor +
280
- god-docs-writer verification. Catches pre-existing CVEs, doc drift, artifact
281
- quality drift before declaring complete.
282
-
283
- ### --skip-hygiene
284
- Default. Skip the hygiene pass. Use when iterating quickly.
285
-
286
- ## Mandatory final sync
287
-
288
- Regardless of flags, `/god-mode` always runs `/god-sync` before declaring
289
- complete. This ensures all 14 core artifact categories and local sync surfaces
290
- are in a consistent state:
291
-
292
- - 10 Tier 0-3 artifacts validated (have-nots passing)
293
- - 4 capture artifacts noted as `not-yet-created` (graceful handling)
294
- - repo-doc, repo-surface, feature awareness, source sync-back, host capability,
295
- checkpoint, Pillars, and context refresh statuses reported
296
- - SYNC-LOG.md updated with project-run completion entry
297
- - state.json reflects final tier statuses
298
-
299
- Under `--yolo`, the sync step auto-applies (no pause). Under
300
- `--conservative`, it pauses for confirmation. Under `--with-hygiene`,
301
- it runs alongside the hygiene pass.
302
-
303
- Display this before the final completion block:
304
-
305
- ```
306
- Sync status:
307
- Trigger: /god-mode final sync
308
- Agent: god-updater spawned
309
- Local syncs:
310
- + feature-awareness: <recorded runtime features, refreshed context, or no-op>
311
- + reverse-sync: <counts and result>
312
- + repo-doc-sync: <refreshed repo docs, recommended god-docs-writer, or no-op>
313
- + repo-surface-sync: <checked structural surfaces, recommended scoped agents, or no-op>
314
- + pillars-sync: <counts and result>
315
- + checkpoint-sync: <created, updated, no-op, or skipped>
316
- + context-refresh: <spawned, no-op, or skipped>
317
- Artifacts: <changed files or no-op>
318
- Log: .godpowers/SYNC-LOG.md
319
- ```
320
-
321
- The sync step also reconciles native Pillars context. When `.godpowers`
322
- artifacts create or change durable project truth, Godpowers maps those changes
323
- to relevant pillar files through `lib/pillars.planArtifactSync`. Default mode
324
- proposes pillar updates for review. `--yolo` applies them immediately and logs
325
- the action to `.godpowers/YOLO-DECISIONS.md`.
326
-
327
- When `/god-mode` resumes an existing `.godpowers` project, it auto-invokes
328
- `lib/feature-awareness.run(projectRoot)` before the final sync report. This
329
- keeps upgraded projects aware of new runtime features, current context fences,
330
- and migration routes without rewriting user artifacts.
331
-
332
- The mandatory final sync also receives repo documentation sync through
333
- `/god-sync`. This keeps README badges, release surfaces, contribution guidance,
334
- security policy checks, and Pillars context planning arc-ready before the
335
- project run is declared complete.
336
-
337
- The mandatory final sync also receives repo surface sync through `/god-sync`.
338
- This keeps routes, packages, agent handoffs, workflow metadata, recipe routes,
339
- extension packs, and release policy checks aligned before the project run is
340
- declared complete.
341
-
342
- If `/god-mode` resumes an existing `.godpowers` project that lacks Pillars,
343
- it Pillar-izes the project before continuing. Existing `.godpowers` artifacts
344
- become managed source references in the relevant `agents/*.md` files.
345
-
346
- The sync step is what closes the loop between greenfield project-run creation and
347
- the comprehensive 14-artifact reconciliation system. See
348
- `docs/greenfield-coverage.md` for what's created when.
349
-
350
- ## Completion
351
-
352
- When orchestrator returns "complete", display:
353
-
354
- ```
355
- Godpowers project run complete.
356
-
357
- Sync status:
358
- Trigger: /god-mode final sync
359
- Agent: god-updater spawned
360
- Local syncs:
361
- + feature-awareness: <recorded runtime features, refreshed context, or no-op>
362
- + reverse-sync: <counts and result>
363
- + repo-doc-sync: <refreshed repo docs, recommended god-docs-writer, or no-op>
364
- + repo-surface-sync: <checked structural surfaces, recommended scoped agents, or no-op>
365
- + pillars-sync: <counts and result>
366
- + checkpoint-sync: <created, updated, no-op, or skipped>
367
- + context-refresh: <spawned, no-op, or skipped>
368
- Artifacts: <changed files or no-op>
369
- Log: .godpowers/SYNC-LOG.md
370
-
371
- Current status:
372
- State: complete
373
- Progress: <pct>% (<done> of <total> steps complete; current step <n> of <total>)
374
- Worktree: <clean | modified files unstaged | staged changes | mixed>
375
- Index: <untouched | staged files listed>
376
-
377
- Planning visibility:
378
- PRD: <done | pending | missing | deferred> <artifact path when present>
379
- Roadmap: <done | pending | missing | deferred> <artifact path when present>
380
- Current milestone: <roadmap milestone, tier, or next planning gate when known>
381
- Completion: <pct>% <brief basis, for example done steps over total tracked steps>
382
-
383
- Artifacts on disk:
384
- + PRD .godpowers/prd/PRD.md
385
- + Architecture .godpowers/arch/ARCH.md
386
- + Roadmap .godpowers/roadmap/ROADMAP.md
387
- + Stack .godpowers/stack/DECISION.md
388
- + Repo .godpowers/repo/AUDIT.md
389
- + Build .godpowers/build/STATE.md
390
- + Deploy .godpowers/deploy/STATE.md
391
- + Observe .godpowers/observe/STATE.md
392
- + Launch .godpowers/launch/STATE.md
393
- + Harden .godpowers/harden/FINDINGS.md
394
-
395
- Built. Tested. Shipped. Hardened.
396
-
397
- Project is now in STEADY STATE. From here, use these workflows:
398
-
399
- Adding features: /god-feature
400
- Production bugs: /god-hotfix
401
- Code cleanup: /god-refactor
402
- Research questions: /god-spike
403
- Post-incident: /god-postmortem
404
- Framework upgrades: /god-upgrade
405
- Documentation: /god-docs
406
- Dependency updates: /god-update-deps
407
-
408
- Periodic hygiene:
409
- Quality audit: /god-audit
410
- Health check: /god-hygiene
411
-
412
- Open items:
413
- 1. <none, or deployed staging deferred, pending review, unstaged files, etc.>
414
-
415
- Next:
416
- Recommended: <single safest command or decision>
417
- Why: <one sentence tied to disk state>
418
-
419
- Proposition:
420
- 1. Review status: /god-status
421
- 2. Continue work: /god-next or describe the next intent
422
- 3. Commit release-ready changes: stage only the intended files, then commit
423
- 4. Run deployed staging: provide STAGING_APP_URL=<deployed staging origin> when needed
424
- ```
425
-
426
- If the run edited code but did not stage or commit, the completion block must
427
- say so. If unrelated or pre-existing worktree changes are present, do not imply
428
- the worktree is clean. Recommend a scoped review or explicit staging path.
429
-
430
- If the run is a focused brownfield/refactor workflow rather than a full greenfield
431
- project run, adapt the same closeout shape and replace "Project is now in STEADY
432
- STATE" with the actual disk-derived lifecycle and next route.
170
+ Use the runbook for:
171
+ - User-visible transcript contract
172
+ - Step cards
173
+ - Pause format
174
+ - Flag semantics
175
+ - Mandatory final sync
176
+ - Completion block
@@ -49,7 +49,7 @@ Spawn god-org-context-loader in fresh context. Agent creates or reads
49
49
  ## Effect on other commands
50
50
 
51
51
  Once org-context.yaml exists, downstream agents respect it:
52
- - /god-stack-selector prefers org-standard tools (won't choose Python if org-standard is TypeScript without explicit override)
52
+ - god-stack-selector prefers org-standard tools (won't choose Python if org-standard is TypeScript without explicit override)
53
53
  - /god-arch respects org infrastructure (won't propose Kubernetes if org uses Vercel)
54
54
  - /god-deploy uses org's deploy platform
55
55
  - /god-observe uses org's observability stack
@@ -21,8 +21,8 @@ Detect and fix drift between `state.json` and disk.
21
21
  | state.json says PRD done; PRD.md missing | mark PRD pending, alert user |
22
22
  | state.json says PRD pending; PRD.md exists and passes lint | mark PRD imported |
23
23
  | state.json file hash differs from current PRD.md hash | re-hash and update |
24
- | linkage.json entry points at deleted code file | remove entry, mark artifact for review |
25
- | linkage.json entry missing for an annotated code file | scan + add |
24
+ | links/ entry points at deleted code file | remove entry, mark artifact for review |
25
+ | links/ entry missing for an annotated code file | scan + add |
26
26
  | Schema version in state.json older than installed | migrate (if path exists) |
27
27
  | .trash/ contains items older than 30 days | offer to permanently delete |
28
28
 
@@ -60,7 +60,7 @@ Walk every drift item with the user, even safe-auto-fixes.
60
60
 
61
61
  Built-in. Reads + writes:
62
62
  - `.godpowers/state.json`
63
- - `.godpowers/linkage.json`
63
+ - `.godpowers/links/`
64
64
  - `.godpowers/log` (appends repair event)
65
65
 
66
66
  Calls into `lib/drift-detector.js`, `lib/code-scanner.js`, `lib/reverse-sync.js`.
@@ -28,6 +28,11 @@ Spawn **god-spec-reviewer** in fresh context with:
28
28
  - The plan or PRD acceptance criteria
29
29
  - The test results
30
30
 
31
+ Stage 1 also checks that touched files trace to the request, acceptance
32
+ criteria, failing test, or implementation-caused cleanup. Scope creep,
33
+ speculative flexibility, and unrelated churn fail here before code-quality
34
+ review begins.
35
+
31
36
  If FAIL: report findings and STOP. The code must be fixed before Stage 2.
32
37
  If PASS: proceed to Stage 2.
33
38
 
@@ -36,6 +41,10 @@ If PASS: proceed to Stage 2.
36
41
  Spawn **god-quality-reviewer** in fresh context with:
37
42
  - The code to review (independent of stage 1 findings)
38
43
 
44
+ Stage 2 checks readability, security, error handling, performance,
45
+ maintainability, and simplicity/surgicality. A solution that is technically
46
+ correct but broader than needed still fails review.
47
+
39
48
  If FAIL: report findings.
40
49
  If PASS: review complete.
41
50
 
@@ -55,6 +55,6 @@ If dep cycles exist, surface them at the end.
55
55
 
56
56
  ## What this does NOT do
57
57
 
58
- - Modify any STORY.md (use /god-story-close, /god-story-block to change status)
58
+ - Modify any STORY.md (use /god-story-close, /god-story-verify to change status)
59
59
  - Spawn agents (read-only)
60
60
  - Trigger reverse-sync
@@ -14,12 +14,12 @@ Print version and a short capability summary.
14
14
  ## Output
15
15
 
16
16
  ```
17
- Godpowers v2.0.0
17
+ Godpowers v2.1.0
18
18
  Install: /Users/.../.claude/ (matches package.json)
19
19
  Surface: 110 skills, 40 agents, 13 workflows, 40 recipes
20
20
  Schema: intent.v1, state.v1, events.v1, workflow.v1, routing.v1, recipe.v1
21
21
  External integrations available: impeccable, agent-browser (others lazy)
22
- Feature awareness: planning-system migration, source-system sync-back, context refresh, dashboard status labels, repo documentation sync, repo surface sync
22
+ Feature awareness: planning-system migration, source-system sync-back, context refresh, dashboard status labels, repo documentation sync, repo surface sync, quick proof, request trace, release hardening, maintenance hardening
23
23
  ```
24
24
 
25
25
  ## Subcommands