godpowers 0.15.9 → 0.15.10

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/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ All notable changes to Godpowers will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.15.10] - 2026-05-11
9
+
10
+ God Mode continuity release. Makes red verification output repair work inside
11
+ the same autonomous arc instead of a terminal summary.
12
+
13
+ ### Changed
14
+ - `/god-mode` now treats failed tests, lint, typecheck, build, or check commands
15
+ as repairable work and enters an autonomous repair loop before declaring the
16
+ arc complete.
17
+ - Build completion now requires test, lint, and typecheck/check commands to be
18
+ green when those commands exist.
19
+ - `/god-mode --yolo` now auto-runs repair loops, with Critical security findings
20
+ remaining the only unconditional pause.
21
+ - Roadmap and build planning language now uses Godpowers delivery increments
22
+ instead of preserving imported methodology terminology.
23
+
8
24
  ## [0.15.9] - 2026-05-11
9
25
 
10
26
  Early design planning release. Lets UI and product-experience projects shape
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![CI](https://github.com/aihxp/godpowers/actions/workflows/ci.yml/badge.svg)](https://github.com/aihxp/godpowers/actions/workflows/ci.yml)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
- [![Version](https://img.shields.io/badge/version-0.15.9-blue)](CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/version-0.15.10-blue)](CHANGELOG.md)
6
6
  [![npm](https://img.shields.io/npm/v/godpowers.svg)](https://www.npmjs.com/package/godpowers)
7
7
 
8
8
  **Ship fast. Ship right. Ship everything. Ship accountably.**
@@ -141,13 +141,18 @@ For real-world scenarios beyond greenfield:
141
141
 
142
142
  ```
143
143
  /god-mode # Standard: pauses for real questions only
144
- /god-mode --yolo # Zero pauses. Picks every default. Full send.
144
+ /god-mode --yolo # Zero pauses except Critical security. Repairs red checks before it stops.
145
145
  /god-mode --conservative # More checkpoints
146
146
  /god-mode --from=arch # Resume from a specific tier
147
147
  /god-mode --audit # Score existing artifacts. Build nothing.
148
148
  /god-mode --dry-run # Plan everything. Build nothing.
149
149
  ```
150
150
 
151
+ `/god-mode` is not complete when it merely writes planning artifacts. It keeps
152
+ going through build, verification, repair, launch, and final sync. Red tests,
153
+ typecheck, lint, build, or check output enter the repair loop instead of being
154
+ reported as the final result.
155
+
151
156
  ## Architecture
152
157
 
153
158
  ### Slash Command + Specialist Agent Pattern
@@ -20,6 +20,8 @@ You receive:
20
20
  - Relevant ARCH context (only what's needed for this slice)
21
21
  - Stack DECISION (tooling)
22
22
  - The slice's dependencies (what must already exist)
23
+ - Optional repair payload: failing command, error counts, focused diagnostics,
24
+ and files implicated by a previous verification run
23
25
 
24
26
  ## TDD Sequence (mandatory)
25
27
 
@@ -54,10 +56,12 @@ For every behavior in this slice:
54
56
 
55
57
  1. Run the full test suite. All tests must pass.
56
58
  2. Run the linter. All warnings resolved.
57
- 3. Stage your changes.
58
- 4. Return control to orchestrator with:
59
+ 3. Run typecheck/check command when present. All errors resolved.
60
+ 4. Stage your changes.
61
+ 5. Return control to orchestrator with:
59
62
  - Summary of what was implemented
60
63
  - Test results
64
+ - Typecheck/check results
61
65
  - Files changed
62
66
  - Ready for two-stage review
63
67
 
@@ -73,4 +77,13 @@ happen.
73
77
  - Multiple slices touched in one execution
74
78
  - Linter warnings unresolved
75
79
  - Test suite failing (any test, not just yours)
80
+ - Typecheck/check command failing
76
81
  - Stub/placeholder code in the implementation
82
+
83
+ ## Repair Mode
84
+
85
+ If invoked with a repair payload, stay narrowly focused on the failing command.
86
+ Do not reopen PRD, ARCH, roadmap, or stack unless the diagnostic proves the
87
+ artifact is stale. Fix code, config, imports, tests, generated types, or
88
+ tooling until the command passes. If the same root failure survives 3 focused
89
+ attempts, return the smallest human-only question needed to continue.
@@ -277,17 +277,52 @@ last known hash in state.json:
277
277
 
278
278
  ## Extended Critical-Finding Gate
279
279
 
280
- The existing critical-finding gate now also fires on:
281
- - Breaking drift findings (e.g., WCAG contrast fail, ARCH container
282
- responsibility violation, STACK dep version mismatch)
283
- - Critical impeccable findings on the diff
284
- - Lint errors from `lib/artifact-linter` on any artifact
285
- - Validator errors from `lib/have-nots-validator`
280
+ The critical-finding gate fires on:
281
+ - Critical security findings from god-harden-auditor
286
282
  - god-design-reviewer BLOCK verdicts
287
-
288
- All pause both default mode AND --yolo. Lint errors cannot be
289
- auto-resolved; they're mechanical signal that something is structurally
290
- wrong.
283
+ - Breaking drift findings that would make already-written artifacts unsafe
284
+ to trust without human context
285
+ - Artifact linter or have-nots errors that still fail after repair attempts
286
+
287
+ Only Critical security findings always pause, including under --yolo.
288
+ Everything else must first enter the autonomous repair loop below. A failed
289
+ typecheck, lint, check, unit test, generated artifact lint, or have-nots pass is
290
+ not a reason to declare the arc complete. It is work.
291
+
292
+ ## Autonomous Repair Loop
293
+
294
+ Godpowers full-arc means: plan, build, verify, repair, ship, sync. Do not stop
295
+ at "artifacts generated" when the repo is still red.
296
+
297
+ When any mechanical verification fails:
298
+ - tests, typecheck, lint, formatter, build, `bun run check`, `npm run check`,
299
+ `npm test`, `cargo test`, `go test`, or equivalent
300
+ - artifact lint or have-nots validation
301
+ - generated scaffold audit with fixable failures
302
+ - launch smoke check with deterministic reproduction
303
+
304
+ Do this:
305
+ 1. Record the exact failing command, counts, and highest-signal diagnostics in
306
+ `.godpowers/build/STATE.md` or the active tier state file.
307
+ 2. Classify the failure:
308
+ - `repairable`: code, config, type, lint, test, generated artifact, missing
309
+ dependency, bad scaffold, or stale state problem.
310
+ - `human-only`: product scope contradiction, credential missing, paid vendor
311
+ decision, legal/compliance choice, or Critical security acceptance.
312
+ 3. For `repairable`, spawn the owning agent again in repair mode with only the
313
+ failing diagnostics, touched files, relevant artifact excerpts, and the
314
+ command to re-run.
315
+ 4. Re-run the failing command after each repair attempt.
316
+ 5. Repeat until green or until the same root failure survives 3 repair attempts.
317
+ 6. If repair succeeds, continue the same `/god-mode` run. Do not hand off a
318
+ "next recommended delivery increment" while required verification is red.
319
+ 7. If the same root failure survives 3 attempts, pause with a precise blocker,
320
+ attempted fixes, and the smallest human question needed to continue.
321
+
322
+ Under `--yolo`, the repair loop auto-runs. It may commit atomic repair commits
323
+ after tests pass. If a git remote exists and the user passed an explicit push
324
+ flag or the project intent says pushing is allowed, push after the green commit
325
+ and then continue the arc. Pushing is not a terminal state.
291
326
 
292
327
  ## YOLO Behavior with Design + Linkage
293
328
 
@@ -297,7 +332,8 @@ wrong.
297
332
  | Impeccable install prompt | Pause | Auto-yes; log |
298
333
  | PRODUCT.md interview | Pause | Pause anyway (load-bearing brand) |
299
334
  | Design token defaults | Pause | Auto-pick impeccable defaults; log |
300
- | Lint errors | Pause | Pause anyway |
335
+ | Repairable mechanical failures | Repair loop | Repair loop |
336
+ | Lint errors after 3 repair attempts | Pause | Pause with diagnostics |
301
337
  | Lint warnings | Continue, log | Continue, log |
302
338
  | Drift (informational) | Continue | Continue |
303
339
  | Drift (breaking) | Pause | Pause anyway |
@@ -317,8 +353,9 @@ wrong.
317
353
  5. Verify their output exists on disk
318
354
  6. Run have-nots check on the artifact
319
355
  7. If pass: update PROGRESS.md, move to next sub-step
320
- 8. If fail: spawn the agent again with the failures, OR pause for human
321
- 9. Repeat until all tiers complete
356
+ 8. If fail and repairable: enter the autonomous repair loop
357
+ 9. If fail and human-only: pause with the smallest needed question
358
+ 10. Repeat until all tiers complete and verification is green
322
359
  ```
323
360
 
324
361
  ## Specialist Agent Routing
@@ -387,7 +424,10 @@ Move to next wave only when ALL slices in current wave are committed.
387
424
  After all waves complete:
388
425
  1. Run full test suite. All must pass.
389
426
  2. Run linter. All clean.
390
- 3. Update PROGRESS.md: Build = done
427
+ 3. Run typecheck/check command when the package exposes one. All clean.
428
+ 4. If any verification fails, run the autonomous repair loop. Do not mark
429
+ Build done and do not recommend later work while verification is red.
430
+ 5. Update PROGRESS.md: Build = done
391
431
 
392
432
  CRITICAL RULES (build phase):
393
433
  - Never skip god-spec-reviewer
@@ -395,6 +435,8 @@ CRITICAL RULES (build phase):
395
435
  - Never commit without BOTH stages passing
396
436
  - Each slice gets its own atomic commit
397
437
  - Each agent gets a fresh context (defeats context rot)
438
+ - Build cannot be `done` when test, lint, typecheck, or check commands fail
439
+ - A release blocker is a repair target, not the final answer
398
440
 
399
441
  ## Post-Launch Transition (after Tier 3 completes)
400
442
 
@@ -420,8 +462,10 @@ This step runs regardless of flags:
420
462
  - /god-mode --conservative -> sync runs (with pause for confirmation)
421
463
  - /god-mode --with-hygiene -> sync runs PLUS hygiene check
422
464
 
423
- This ensures every full-arc run leaves the project in a sync'd state. The
424
- artifact coverage is consistent across all 14 categories.
465
+ After sync, re-run the final verification commands. If any are red, return to
466
+ the autonomous repair loop. This ensures every full-arc run leaves the project
467
+ green and sync'd, not merely documented. The artifact coverage is consistent
468
+ across all 14 categories.
425
469
 
426
470
  ### Steady-State Hand-off
427
471
 
@@ -505,7 +549,8 @@ that should never be auto-accepted. If god-harden-auditor returns Critical
505
549
  findings, --yolo does NOT skip. Pause for human resolution.
506
550
 
507
551
  This is the only --yolo carve-out. All other pauses are auto-resolved with
508
- the agent's documented default.
552
+ the agent's documented default, and all repairable mechanical failures are
553
+ handled by the autonomous repair loop before the arc can be called complete.
509
554
 
510
555
  ### Pause Format
511
556
 
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: god-planner
3
3
  description: |
4
- Build planner. Reads roadmap, selects current milestone, breaks into vertical
5
- slices, identifies dependencies, groups slices into parallel waves. Each
4
+ Build planner. Reads roadmap, selects the current delivery increment, breaks
5
+ it into vertical slices, identifies dependencies, groups slices into waves. Each
6
6
  slice plan includes exact file paths, tests-first sequence, and verification
7
7
  criteria.
8
8
 
@@ -20,10 +20,11 @@ Plan the build.
20
20
 
21
21
  ## Process
22
22
 
23
- 1. Read roadmap, identify current milestone (first non-done)
23
+ 1. Read roadmap, identify the current delivery increment (first non-done
24
+ Now item)
24
25
  2. Read ARCH for technical context
25
26
  3. Read stack DECISION for tooling
26
- 4. Break milestone into **vertical slices**:
27
+ 4. Break the delivery increment into **vertical slices**:
27
28
  - Each slice delivers ONE user-visible behavior end-to-end
28
29
  - NOT "set up the database" - that's horizontal
29
30
  - YES "user can create an account" - includes DB + API + UI for that behavior
@@ -44,7 +45,7 @@ Plan the build.
44
45
  Write `.godpowers/build/PLAN.md`:
45
46
 
46
47
  ```markdown
47
- # Build Plan: Milestone [N]
48
+ # Build Plan: Delivery Increment [N]
48
49
 
49
50
  ## Wave 1 (parallel)
50
51
  ### Slice 1.1: User can create an account
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: god-roadmapper
3
3
  description: |
4
- Sequences work into milestones with topological dependency ordering,
5
- Now/Next/Later horizons, and observable completion gates. Gated on
4
+ Sequences work into Godpowers delivery increments with topological dependency
5
+ ordering, Now/Next/Later horizons, and observable completion gates. Gated on
6
6
  Architecture.
7
7
 
8
8
  Spawned by: /god-roadmap, god-orchestrator
@@ -29,21 +29,24 @@ If `.godpowers/prep/INITIAL-FINDINGS.md` exists, read it first for repo risks,
29
29
  existing tests, docs, CI, deploy, and suggested sequencing implications.
30
30
 
31
31
  If `.godpowers/prep/IMPORTED-CONTEXT.md` exists, read its delivery signals
32
- before sequencing milestones. Use imported GSD, Superpowers, BMAD, or similar
33
- stories and plans as hypothesis-level input only.
32
+ before sequencing work. Use imported GSD, Superpowers, BMAD, or similar
33
+ stories and plans as hypothesis-level input only. Convert imported terminology
34
+ into Godpowers vocabulary. Do not preserve imported methodology terminology in
35
+ Godpowers artifacts unless the user explicitly asked for it.
34
36
 
35
- If DESIGN.md or PRODUCT.md exists, read them before sequencing milestones.
37
+ If DESIGN.md or PRODUCT.md exists, read them before sequencing delivery
38
+ increments.
36
39
  Use screens, flows, components, accessibility obligations, and product voice to
37
40
  shape vertical slices and acceptance gates.
38
41
 
39
42
  Rules:
40
43
  - Do not add roadmap features that are not grounded in the PRD.
41
- - Use imported milestones, stories, and done-work signals to inform ordering,
44
+ - Use imported delivery, story, and done-work signals to inform ordering,
42
45
  dependency edges, and open questions.
43
46
  - If imported context conflicts with PRD or ARCH, PRD and ARCH win.
44
47
  - Mark any imported sequencing assumption as `[HYPOTHESIS]` until confirmed by
45
48
  Godpowers artifacts or the user.
46
- - Keep design-derived milestones grounded in the PRD and ARCH.
49
+ - Keep design-derived delivery increments grounded in the PRD and ARCH.
47
50
 
48
51
  ## Process
49
52
 
@@ -51,10 +54,10 @@ Rules:
51
54
  2. List all features from PRD with their priority (MUST/SHOULD/COULD)
52
55
  3. Build dependency graph from ARCH (component A depends on component B)
53
56
  4. Topologically sort
54
- 5. Group features into milestones:
55
- - Each milestone has a clear, substitution-tested goal
56
- - Each milestone has an observable completion gate
57
- - Each milestone is sized: S/M/L (no day-level precision without capacity input)
57
+ 5. Group features into delivery increments:
58
+ - Each increment has a clear, substitution-tested goal
59
+ - Each increment has an observable completion gate
60
+ - Each increment is sized: S/M/L (no day-level precision without capacity input)
58
61
  6. Assign Now/Next/Later horizons:
59
62
  - **Now**: building right now, committed
60
63
  - **Next**: planned next, flexible
@@ -69,7 +72,7 @@ as the structural starting point. Write `.godpowers/roadmap/ROADMAP.md`:
69
72
  # Roadmap
70
73
 
71
74
  ## Now
72
- ### Milestone 1: [substitution-tested name]
75
+ ### Delivery Increment 1: [substitution-tested name]
73
76
  - Goal: [what users can do when this ships]
74
77
  - Gate: [observable completion criteria]
75
78
  - Size: S/M/L
@@ -77,20 +80,20 @@ as the structural starting point. Write `.godpowers/roadmap/ROADMAP.md`:
77
80
  - Features: [from PRD]
78
81
 
79
82
  ## Next
80
- [milestones]
83
+ [delivery increments]
81
84
 
82
85
  ## Later
83
- [milestones]
86
+ [themes]
84
87
  ```
85
88
 
86
89
  ## Have-Nots
87
90
 
88
91
  Roadmap FAILS if:
89
- - Milestone goal passes substitution test
92
+ - Delivery increment goal passes substitution test
90
93
  - Completion gate is not observable
91
94
  - Feature appears that is not in the PRD
92
- - All milestones the same size (no prioritization)
93
- - No dependency edges between milestones
95
+ - All increments the same size (no prioritization)
96
+ - No dependency edges between increments
94
97
  - Day-level precision without capacity input
95
98
  - Later section is empty (no long-term vision)
96
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godpowers",
3
- "version": "0.15.9",
3
+ "version": "0.15.10",
4
4
  "description": "AI-powered development system: 104 slash commands and 38 specialist agents that take a project from raw idea to hardened production. Runs inside Claude Code, Codex, Cursor, Windsurf, Gemini, and 10+ other AI coding tools.",
5
5
  "bin": {
6
6
  "godpowers": "./bin/install.js"
@@ -51,13 +51,19 @@ Move to next wave only when current wave is fully committed.
51
51
  After all waves:
52
52
  1. Run full test suite. All pass.
53
53
  2. Run linter. All clean.
54
- 3. Update PROGRESS.md: Build status = done
54
+ 3. Run the package's typecheck/check command when present. All pass.
55
+ 4. If any verification command fails, do not mark Build complete. Re-enter
56
+ repair mode with the owning agent, pass the exact failing diagnostics, rerun
57
+ the command, and repeat until green or until the same root failure survives
58
+ 3 repair attempts.
59
+ 5. Update PROGRESS.md: Build status = done
55
60
 
56
61
  ## Pause Conditions
57
62
 
58
63
  Pause for user ONLY if:
59
64
  - A requirement is genuinely ambiguous (two valid implementations)
60
65
  - A test reveals a gap in PRD or ARCH that needs human resolution
66
+ - The same mechanical failure remains after 3 focused repair attempts
61
67
 
62
68
  ## On Completion
63
69
 
@@ -70,8 +76,9 @@ Alternative: /god-deploy (set up deploy pipeline, parallel-safe)
70
76
  Both can run; /god-harden is the critical path to Launch.
71
77
  ```
72
78
 
73
- If more milestones remain in the roadmap, suggest re-running /god-build for
74
- the next milestone before moving to Tier 3.
79
+ If more delivery increments remain in the roadmap, continue building the next
80
+ increment before moving to Tier 3 unless the user explicitly asked to stop
81
+ after the current increment.
75
82
 
76
83
 
77
84
  ## Locking
@@ -53,6 +53,10 @@ You are receiving a /god-mode invocation. Your job is to spawn the
53
53
  - Instruction to run `/god-design` after `/god-prd` and before `/god-arch`
54
54
  when initial findings, imported planning context, the PRD, or the
55
55
  codebase show UI or product-experience signals
56
+ - Instruction that a red test, typecheck, lint, build, or check command is
57
+ not a completed arc. It must enter the autonomous repair loop and continue
58
+ the same `/god-mode` run until green, except for Critical security or a
59
+ genuine human-only decision.
56
60
 
57
61
  6. Orchestrator runs the appropriate workflow:
58
62
  - Greenfield -> full-arc
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: god-roadmap
3
3
  description: |
4
- Sequence the work into milestones. Spawns the god-roadmapper agent in a
5
- fresh context. Gated on Architecture.
4
+ Sequence the work into Godpowers delivery increments. Spawns the
5
+ god-roadmapper agent in a fresh context. Gated on Architecture.
6
6
 
7
- Triggers on: "god roadmap", "/god-roadmap", "sequence the work", "milestone plan"
7
+ Triggers on: "god roadmap", "/god-roadmap", "sequence the work", "delivery plan"
8
8
  ---
9
9
 
10
10
  # /god-roadmap
@@ -1,11 +1,11 @@
1
1
  # Roadmap
2
2
 
3
- > Every milestone goal is substitution-tested. Every completion gate is
3
+ > Every delivery increment goal is substitution-tested. Every completion gate is
4
4
  > observable. No day-level precision without capacity input.
5
5
 
6
6
  ## Now (currently building, committed)
7
7
 
8
- ### Milestone 1: [Substitution-tested goal]
8
+ ### Delivery Increment 1: [Substitution-tested goal]
9
9
  - **Goal**: [What users can DO when this ships. Specific.]
10
10
  - **Completion gate**: [Observable criterion. Not "feels done".]
11
11
  - **Size**: S / M / L
@@ -14,20 +14,20 @@
14
14
  - [PRD requirement reference]
15
15
  - [PRD requirement reference]
16
16
 
17
- ### Milestone 2: [Substitution-tested goal]
17
+ ### Delivery Increment 2: [Substitution-tested goal]
18
18
  - **Goal**: ...
19
19
  - **Completion gate**: ...
20
20
  - **Size**: S / M / L
21
- - **Depends on**: Milestone 1
21
+ - **Depends on**: Delivery Increment 1
22
22
  - **Features**: ...
23
23
 
24
24
  ## Next (planned, flexible)
25
25
 
26
- ### Milestone 3: [Goal]
26
+ ### Delivery Increment 3: [Goal]
27
27
  - **Goal**: ...
28
28
  - **Completion gate**: ...
29
29
  - **Size**: ...
30
- - **Depends on**: Milestone 2
30
+ - **Depends on**: Delivery Increment 2
31
31
 
32
32
  ## Later (intent, not commitment)
33
33
 
@@ -38,10 +38,10 @@
38
38
 
39
39
  ## Have-Nots Checklist
40
40
 
41
- - [ ] Every milestone goal fails substitution test
41
+ - [ ] Every delivery increment goal fails substitution test
42
42
  - [ ] Every completion gate is observable (not subjective)
43
43
  - [ ] No feature appears that isn't in the PRD
44
- - [ ] Milestones are NOT all the same size (real prioritization)
44
+ - [ ] Delivery increments are NOT all the same size (real prioritization)
45
45
  - [ ] Dependency edges are explicit
46
46
  - [ ] No day-level precision without capacity input
47
47
  - [ ] Later section has at least one theme
@@ -58,6 +58,9 @@ jobs:
58
58
  - uses: god-quality-reviewer@^1.0.0
59
59
  on-fail: rollback
60
60
  on-pass: commit-atomic
61
+ on-fail: repair-loop
62
+ verification:
63
+ required: [test, lint, typecheck-or-check]
61
64
 
62
65
  deploy:
63
66
  tier: 3