godpowers 2.2.0 → 2.3.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 (59) hide show
  1. package/CHANGELOG.md +44 -7
  2. package/INSPIRATION.md +4 -2
  3. package/README.md +25 -12
  4. package/RELEASE.md +23 -27
  5. package/SKILL.md +2 -2
  6. package/agents/god-auditor.md +1 -1
  7. package/agents/god-deps-auditor.md +11 -0
  8. package/agents/god-executor.md +22 -5
  9. package/agents/god-greenfieldifier.md +1 -1
  10. package/agents/god-orchestrator.md +2 -2
  11. package/agents/god-planner.md +14 -0
  12. package/agents/god-pm.md +1 -1
  13. package/agents/god-reconciler.md +1 -1
  14. package/agents/god-roadmapper.md +1 -1
  15. package/agents/god-spec-reviewer.md +10 -0
  16. package/agents/god-stack-selector.md +4 -0
  17. package/agents/god-updater.md +1 -1
  18. package/bin/install.js +9 -3
  19. package/fixtures/dogfood/{half-migrated-gsd → half-migrated-planning}/manifest.json +2 -2
  20. package/lib/README.md +7 -1
  21. package/lib/atomic-write.js +85 -0
  22. package/lib/checkpoint.js +2 -1
  23. package/lib/context-writer.js +1 -1
  24. package/lib/executor-repair.js +65 -0
  25. package/lib/feature-awareness.js +1 -1
  26. package/lib/fs-async.js +2 -1
  27. package/lib/install-profiles.js +154 -0
  28. package/lib/installer-args.js +12 -0
  29. package/lib/installer-core.js +43 -8
  30. package/lib/linkage.js +2 -1
  31. package/lib/package-identity.js +38 -0
  32. package/lib/package-legitimacy.js +158 -0
  33. package/lib/planning-systems.js +9 -9
  34. package/lib/repo-surface-sync.js +1 -1
  35. package/lib/requirements.js +38 -5
  36. package/lib/reverse-sync.js +12 -2
  37. package/lib/source-grounding.js +177 -0
  38. package/lib/source-sync.js +6 -5
  39. package/lib/state.js +2 -1
  40. package/package.json +1 -1
  41. package/references/HAVE-NOTS.md +1 -1
  42. package/references/orchestration/MODE-DETECTION.md +2 -2
  43. package/references/shared/ORCHESTRATORS.md +3 -3
  44. package/routing/god-design.yaml +1 -1
  45. package/routing/god-migrate.yaml +3 -3
  46. package/schema/state.v1.json +1 -1
  47. package/skills/god-build.md +17 -3
  48. package/skills/god-doctor.md +2 -2
  49. package/skills/god-dogfood.md +2 -2
  50. package/skills/god-init.md +6 -6
  51. package/skills/god-migrate.md +10 -10
  52. package/skills/god-sync.md +2 -2
  53. package/skills/god-update-deps.md +4 -2
  54. package/skills/god-version.md +1 -1
  55. package/templates/IMPORTED-CONTEXT.md +1 -1
  56. package/templates/INITIAL-FINDINGS.md +2 -2
  57. /package/fixtures/dogfood/{half-migrated-gsd → half-migrated-planning}/.planning/PROJECT.md +0 -0
  58. /package/fixtures/dogfood/{half-migrated-gsd → half-migrated-planning}/.planning/REQUIREMENTS.md +0 -0
  59. /package/fixtures/dogfood/{half-migrated-gsd → half-migrated-planning}/.planning/ROADMAP.md +0 -0
@@ -2,7 +2,7 @@ apiVersion: godpowers/v1
2
2
  kind: CommandRouting
3
3
  metadata:
4
4
  command: /god-migrate
5
- description: Detect and migrate GSD, BMAD, and Superpowers planning context
5
+ description: Detect and migrate legacy planning, BMAD, and Superpowers planning context
6
6
  tier: 0
7
7
 
8
8
  prerequisites:
@@ -16,7 +16,7 @@ execution:
16
16
  context: current
17
17
  reads:
18
18
  - .planning/**
19
- - .gsd/**
19
+ - .legacy-planning/**
20
20
  - _bmad-output/**
21
21
  - .bmad/**
22
22
  - docs/superpowers/**
@@ -29,7 +29,7 @@ execution:
29
29
  - .godpowers/build/STATE.md
30
30
  - .godpowers/state.json
31
31
  - .planning/GODPOWERS-SYNC.md
32
- - .gsd/GODPOWERS-SYNC.md
32
+ - .legacy-planning/GODPOWERS-SYNC.md
33
33
  - _bmad-output/GODPOWERS-SYNC.md
34
34
  - .bmad/GODPOWERS-SYNC.md
35
35
  - docs/superpowers/GODPOWERS-SYNC.md
@@ -108,7 +108,7 @@
108
108
  "properties": {
109
109
  "id": {
110
110
  "type": "string",
111
- "enum": ["gsd", "bmad", "superpowers", "other"]
111
+ "enum": ["legacy-planning", "bmad", "superpowers", "other"]
112
112
  },
113
113
  "name": { "type": "string" },
114
114
  "confidence": {
@@ -30,6 +30,19 @@ Orchestrate the build via specialist agents.
30
30
  Spawn **god-planner** in fresh context with ROADMAP, ARCH, DECISION.
31
31
  Output: `.godpowers/build/PLAN.md` with vertical slices grouped into waves.
32
32
 
33
+ After the planner returns, run the source-grounding preflight from
34
+ `lib/source-grounding.js` against `.godpowers/build/PLAN.md`. The plan must
35
+ distinguish existing files, existing symbols, new artifacts, and unchecked
36
+ references before any executor starts.
37
+
38
+ Block execution when:
39
+ - A plan cites an existing file that does not exist.
40
+ - A plan cites an existing symbol that cannot be found in the repo.
41
+ - A cited reference is neither grounded nor declared as a new artifact.
42
+
43
+ Allow execution only when missing references are corrected, marked as new
44
+ artifacts, or explicitly accepted by the user as unchecked risk.
45
+
33
46
  ### Phase 2: Execute Waves
34
47
 
35
48
  For each wave in PLAN.md:
@@ -59,9 +72,10 @@ After all waves:
59
72
  2. Run linter. All clean.
60
73
  3. Run the package's typecheck/check command when present. All pass.
61
74
  4. If any verification command fails, do not mark Build complete. Re-enter
62
- repair mode with the owning agent, pass the exact failing diagnostics, rerun
63
- the command, and repeat until green or until the same root failure survives
64
- 3 repair attempts.
75
+ repair mode with the owning agent. Classify the failure as retry,
76
+ decompose, prune, or escalate. Pass the exact failing diagnostics, rerun the
77
+ command, and repeat until green or until the same root failure exhausts the
78
+ repair budget.
65
79
  5. Update PROGRESS.md: Build status = done
66
80
  6. If the build plan or implementation establishes durable conventions, plan
67
81
  pillar updates through `lib/pillars.planArtifactSync`. Under
@@ -50,7 +50,7 @@ GODPOWERS DOCTOR
50
50
  Install: claude (~/.claude/)
51
51
  [OK] 111 skills installed
52
52
  [OK] 40 agents installed
53
- [OK] VERSION matches (2.2.0)
53
+ [OK] VERSION matches (2.3.0)
54
54
  [WARN] routing/god-doctor.yaml exists but skill file did not until now
55
55
 
56
56
  Project: /Users/.../my-project/.godpowers/
@@ -106,7 +106,7 @@ as a read-only diagnostic. It reports:
106
106
  - runtime version recorded in `state.json`
107
107
  - missing current Godpowers feature IDs
108
108
  - missing managed AI-tool context fences
109
- - unimported GSD, BMAD, or Superpowers evidence that should route to
109
+ - unimported legacy planning, BMAD, or Superpowers evidence that should route to
110
110
  `/god-migrate`
111
111
  - `god-greenfieldifier` recommendation when migration evidence is low
112
112
  confidence or conflicting
@@ -16,7 +16,7 @@ Run deterministic messy-repo scenarios before release or after automation change
16
16
 
17
17
  - [DECISION] Use `/god-dogfood` before a release when migration, host autonomy,
18
18
  extension authoring, or Mode D suite release behavior changes.
19
- - [DECISION] Use `/god-dogfood` when a project already contains GSD, BMAD, or
19
+ - [DECISION] Use `/god-dogfood` when a project already contains legacy planning, BMAD, or
20
20
  Superpowers context and you need confidence that Godpowers can import and
21
21
  sync back without deleting prior-system files.
22
22
  - [DECISION] Use `/god-dogfood` when host-spawn guarantees are unclear and the
@@ -44,7 +44,7 @@ npx godpowers dogfood --json
44
44
 
45
45
  ## Expected Coverage
46
46
 
47
- - [DECISION] The dogfood suite includes a half-migrated GSD project.
47
+ - [DECISION] The dogfood suite includes a half-migrated legacy planning project.
48
48
  - [DECISION] The dogfood suite includes degraded and full host capability
49
49
  scenarios.
50
50
  - [DECISION] The dogfood suite includes extension scaffold validation.
@@ -36,7 +36,7 @@ needs to specify a mode.
36
36
  command. This happens before `/god-prd`, `/god-next`, or `/god-mode`
37
37
  continues.
38
38
  - Look for adjacent planning-system context:
39
- - GSD: `.gsd/`, `.planning/`, `GSD.md`, `gsd*.md`
39
+ - legacy planning: `.legacy-planning/`, `.planning/`, `LEGACY-PLANNING.md`, `legacy-planning*.md`
40
40
  - Superpowers: `.superpowers/`, `superpowers/`, `SUPERPOWERS.md`,
41
41
  `.claude/skills/`, `.codex/skills/`
42
42
  - BMAD: `.bmad-core/`, `bmad-core/`, `.bmad/`, `BMAD.md`,
@@ -45,7 +45,7 @@ needs to specify a mode.
45
45
  `.godpowers/prep/IMPORTED-CONTEXT.md` as preparation context.
46
46
  Do not treat external planning-system files as source of truth.
47
47
  - Auto-invoke `lib/planning-systems.importPlanningContext(projectRoot)`
48
- when GSD, Superpowers, or BMAD context is detected. Report this as
48
+ when legacy planning, Superpowers, or BMAD context is detected. Report this as
49
49
  `Agent: none, local runtime only`.
50
50
  - If import confidence is low, more than one source system appears to
51
51
  conflict, or canonical Godpowers seed artifacts cannot be created from
@@ -57,7 +57,7 @@ needs to specify a mode.
57
57
  - UI surfaces: `src/components/`, `app/`, `pages/`, `routes/`,
58
58
  `public/`, form-heavy flows, dashboards, editor surfaces, mobile
59
59
  shells, marketing pages, or other user-facing product experience
60
- - Imported GSD, Superpowers, or BMAD context that mentions UX, screens,
60
+ - Imported legacy planning, Superpowers, or BMAD context that mentions UX, screens,
61
61
  journeys, components, brand, interaction states, or visual design
62
62
  - Record the result in `INITIAL-FINDINGS.md` so `/god-prd`, `/god-next`,
63
63
  and `/god-mode` can place `/god-design` after PRD and before
@@ -114,7 +114,7 @@ needs to specify a mode.
114
114
  - Run Mode Detection (announced in plain English; stored as A/B/C/E internally)
115
115
  - Run Scale Detection (trivial/small/medium/large/enterprise)
116
116
  - Write `.godpowers/prep/INITIAL-FINDINGS.md`
117
- - Run planning-system context detection for GSD, Superpowers, and BMAD
117
+ - Run planning-system context detection for legacy planning, Superpowers, and BMAD
118
118
  - Write `.godpowers/prep/IMPORTED-CONTEXT.md` when useful context exists
119
119
  - Run automatic planning-system import through
120
120
  `lib/planning-systems.importPlanningContext(projectRoot)` and record
@@ -153,7 +153,7 @@ needs to specify a mode.
153
153
  PROGRESS.md
154
154
  prep/
155
155
  INITIAL-FINDINGS.md
156
- IMPORTED-CONTEXT.md # only when GSD / Superpowers / BMAD context exists
156
+ IMPORTED-CONTEXT.md # only when legacy planning / Superpowers / BMAD context exists
157
157
  prd/
158
158
  arch/
159
159
  adr/
@@ -194,7 +194,7 @@ shape, framework and tooling signals, tests, CI, docs, AI-tool files, detected
194
194
  methodology systems, Pillars health, UI or product-experience signals, risk
195
195
  signals, and the reasoning behind the suggested next command.
196
196
 
197
- If GSD, Superpowers, BMAD, or similar planning context is detected, create
197
+ If legacy planning, Superpowers, BMAD, or similar planning context is detected, create
198
198
  `.godpowers/prep/IMPORTED-CONTEXT.md`. This artifact is preparation context,
199
199
  not source of truth. It feeds PRD, architecture, roadmap, and stack decisions
200
200
  as hypothesis-level input only.
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: god-migrate
3
3
  description: |
4
- Detect GSD, BMAD, and Superpowers planning systems, migrate useful context
4
+ Detect legacy planning, BMAD, and Superpowers planning systems, migrate useful context
5
5
  into Godpowers prep and seed artifacts, and sync Godpowers progress back to
6
6
  the prior system through managed companion files.
7
7
 
8
- Triggers on: "god migrate", "/god-migrate", "migrate from gsd",
9
- "migrate from bmad", "migrate from superpowers", "sync back to gsd",
8
+ Triggers on: "god migrate", "/god-migrate", "migrate from legacy-planning",
9
+ "migrate from bmad", "migrate from superpowers", "sync back to legacy-planning",
10
10
  "sync back to bmad", "sync back to superpowers"
11
11
  ---
12
12
 
@@ -16,7 +16,7 @@ Detect and migrate adjacent planning systems into Godpowers.
16
16
 
17
17
  ## When To Use
18
18
 
19
- - A project already has GSD `.planning/` or `.gsd/` context.
19
+ - A project already has legacy planning `.planning/` or `.legacy-planning/` context.
20
20
  - A project already has BMAD `_bmad/`, `_bmad-output/`, `.bmad-core/`, or
21
21
  `.bmad/` context.
22
22
  - A project already has Superpowers specs, plans, or project-local skills.
@@ -26,7 +26,7 @@ Detect and migrate adjacent planning systems into Godpowers.
26
26
 
27
27
  ## Auto-Invoke Contract
28
28
 
29
- `/god-init` auto-invokes the import path when it detects GSD, BMAD, or
29
+ `/god-init` auto-invokes the import path when it detects legacy planning, BMAD, or
30
30
  Superpowers context. It must show this visible status card:
31
31
 
32
32
  ```
@@ -74,7 +74,7 @@ lib/planning-systems.importPlanningContext(projectRoot, {
74
74
  ```
75
75
 
76
76
  This:
77
- - detects GSD, BMAD, and Superpowers sources
77
+ - detects legacy planning, BMAD, and Superpowers sources
78
78
  - writes `.godpowers/prep/IMPORTED-CONTEXT.md`
79
79
  - writes missing Godpowers seed artifacts when enough source evidence exists
80
80
  - marks those seed artifacts as `imported` in `state.json`
@@ -98,14 +98,14 @@ This:
98
98
 
99
99
  | Source system | Import evidence | Godpowers destination | Sync-back destination |
100
100
  |---|---|---|---|
101
- | GSD | `.planning/PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, phase files | prep context, PRD seed, roadmap seed, build-state seed | `.planning/GODPOWERS-SYNC.md` |
102
- | GSD 2 | `.gsd/` files | prep context and seeds when source files are readable | `.gsd/GODPOWERS-SYNC.md` |
101
+ | legacy planning | `.planning/PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, phase files | prep context, PRD seed, roadmap seed, build-state seed | `.planning/GODPOWERS-SYNC.md` |
102
+ | legacy planning variant | `.legacy-planning/` files | prep context and seeds when source files are readable | `.legacy-planning/GODPOWERS-SYNC.md` |
103
103
  | BMAD | `_bmad-output/planning-artifacts/PRD.md`, `architecture.md`, epics, stories, sprint status | prep context, PRD seed, arch seed, roadmap seed | `_bmad-output/GODPOWERS-SYNC.md` |
104
104
  | Superpowers | `docs/superpowers/specs/*.md`, `docs/superpowers/plans/*.md`, project-local skills | prep context, PRD seed, roadmap seed, build-state seed | `docs/superpowers/GODPOWERS-SYNC.md` |
105
105
 
106
106
  ## Guardrails
107
107
 
108
- - Do not delete, move, or rewrite GSD, BMAD, or Superpowers files.
108
+ - Do not delete, move, or rewrite legacy planning, BMAD, or Superpowers files.
109
109
  - Do not treat imported content as authoritative until a Godpowers artifact or
110
110
  the user confirms it.
111
111
  - Do not write outside Godpowers-owned fences in source-system files.
@@ -120,7 +120,7 @@ This:
120
120
  Migration complete.
121
121
 
122
122
  Detected:
123
- + GSD: high confidence, 12 files
123
+ + legacy planning: high confidence, 12 files
124
124
  + BMAD: not detected
125
125
  + Superpowers: medium confidence, 2 files
126
126
 
@@ -50,7 +50,7 @@ User runs `/god-sync` after manual changes. Useful for:
50
50
  `lib/pillars.applyArtifactSync` under the active Pillars policy.
51
51
  7. If `state.json` contains enabled `source-systems`, auto-invoke
52
52
  `lib/source-sync.run(projectRoot)` so current Godpowers progress is written
53
- back to imported GSD, BMAD, or Superpowers companion files. Report this as
53
+ back to imported legacy planning, BMAD, or Superpowers companion files. Report this as
54
54
  `Agent: none, local runtime only`.
55
55
  8. Spawn god-updater in fresh context with:
56
56
  - The reconciliation verdict (if available from a prior /god-reconcile)
@@ -90,7 +90,7 @@ Sync status:
90
90
  Local syncs:
91
91
  + reverse-sync: <scanned N files, updated M footers, populated K review items>
92
92
  + feature-awareness: <recorded runtime features, refreshed context, or no-op>
93
- + source-sync: <written GSD/BMAD/Superpowers companion files, no-op, or skipped>
93
+ + source-sync: <written legacy planning/BMAD/Superpowers companion files, no-op, or skipped>
94
94
  + repo-doc-sync: <refreshed README badges/counts, recommended god-docs-writer, or no-op>
95
95
  + repo-surface-sync: <checked routes/package/agents/workflows/extensions, recommended scoped agents, or no-op>
96
96
  + route-quality-sync: <checked atomic spawns and contextual exits, no-op, or recommended god-auditor>
@@ -34,8 +34,10 @@ The agent:
34
34
  1. Runs the appropriate audit tool for the stack (`npm audit`, `pip-audit`,
35
35
  etc.)
36
36
  2. Lists outdated and stale dependencies
37
- 3. Classifies each: Critical CVE / Stale / Major behind / Minor behind / OK
38
- 4. Writes AUDIT.md
37
+ 3. Runs package legitimacy checks for new replacement candidates before
38
+ recommending them
39
+ 4. Classifies each: Critical CVE / Stale / Major behind / Minor behind / OK
40
+ 5. Writes AUDIT.md
39
41
 
40
42
  ### Phase 2: Triage
41
43
  The agent presents the audit. Priority order:
@@ -14,7 +14,7 @@ Print version and a short capability summary.
14
14
  ## Output
15
15
 
16
16
  ```
17
- Godpowers v2.2.0
17
+ Godpowers v2.3.0
18
18
  Install: /Users/.../.claude/ (matches package.json)
19
19
  Surface: 111 skills, 40 agents, 13 workflows, 41 recipes
20
20
  Schema: intent.v1, state.v1, events.v1, workflow.v1, routing.v1, recipe.v1
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Sources Detected
8
8
 
9
- - [DECISION] Source system: [GSD / Superpowers / BMAD / other].
9
+ - [DECISION] Source system: [legacy planning / Superpowers / BMAD / other].
10
10
  - [DECISION] Source path: [relative path].
11
11
  - [DECISION] Managed sync-back path: [relative path or "not enabled"].
12
12
  - [HYPOTHESIS] Useful signal: [what this source appears to clarify].
@@ -24,7 +24,7 @@
24
24
  ## Methodology And AI Tool Signals
25
25
 
26
26
  - [HYPOTHESIS] AI instruction files found: [paths or "none detected"].
27
- - [HYPOTHESIS] GSD context found: [paths or "none detected"].
27
+ - [HYPOTHESIS] Legacy planning context found: [paths or "none detected"].
28
28
  - [HYPOTHESIS] Superpowers context found: [paths or "none detected"].
29
29
  - [HYPOTHESIS] BMAD context found: [paths or "none detected"].
30
30
  - [HYPOTHESIS] Pillars context health: [present / partial / initialized].
@@ -56,6 +56,6 @@
56
56
  - [DECISION] Downstream agents may use this artifact as preparation context only.
57
57
  - [DECISION] If this artifact conflicts with `.godpowers/intent.yaml`, `.godpowers/state.json`, `PROGRESS.md`, or a completed Godpowers artifact, the Godpowers artifact wins.
58
58
  - [DECISION] Pillars files under `agents/*.md` are the native project context layer for Godpowers commands.
59
- - [DECISION] Imported GSD, Superpowers, and BMAD signals must be converted into Godpowers-native artifacts, not preserved as parallel state.
59
+ - [DECISION] Imported legacy planning, Superpowers, and BMAD signals must be converted into Godpowers-native artifacts, not preserved as parallel state.
60
60
  - [DECISION] Managed sync-back files may be written only by Godpowers-owned fences or companion paths.
61
61
  - [DECISION] Host capability and dogfood findings inform routing, but completed Godpowers artifacts remain authoritative.