godpowers 1.6.4 → 1.6.5

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,33 @@ 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
+ ## [1.6.5] - 2026-05-16
9
+
10
+ God Mode handoff privacy patch. Keeps the 1.6 command surface stable while
11
+ making Codex-spawned `god-orchestrator` runs display a small safe pointer
12
+ instead of detailed orchestration payloads.
13
+
14
+ ### Added
15
+ - Added a private `.godpowers/runs/<run-id>/ORCHESTRATOR-HANDOFF.md` handoff
16
+ pattern for `/god-mode` orchestration context.
17
+ - Added `god-orchestrator` instructions to read handoff files before planning
18
+ or mutation and keep handoff contents out of the visible transcript.
19
+ - Added regression coverage proving agent validation ignores non-specialist
20
+ Pillars files under `agents/`.
21
+
22
+ ### Changed
23
+ - `/god-mode` now spawns `god-orchestrator` with only a display-safe project
24
+ root, flags, and handoff file path.
25
+ - Agent validation and smoke tests now inspect `agents/god-*.md` specialist
26
+ files while allowing Pillars context files like `agents/context.md` and
27
+ `agents/repo.md` to coexist.
28
+
29
+ ### Guardrails
30
+ - This patch does not add slash commands, agents, workflows, recipes, schemas,
31
+ or public artifact formats.
32
+ - `--yolo` still respects safe-sync and Critical harden blockers. The handoff
33
+ change affects transcript hygiene, not gate policy.
34
+
8
35
  ## [1.6.4] - 2026-05-16
9
36
 
10
37
  Release gate propagation patch. Keeps the 1.6 command surface stable while
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-1.6.4-blue)](CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/version-1.6.5-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.**
@@ -12,10 +12,11 @@ idea to hardened production. It runs as **slash commands inside your AI coding
12
12
  tool** (Claude Code, Codex, Cursor, etc.) that orchestrate **specialist agents**
13
13
  in fresh contexts to do the work.
14
14
 
15
- Version 1.6.4 hardens Godpowers routing around release truth: safe-sync
16
- blockers and unresolved Critical harden findings now gate direct Tier 3
17
- commands, `/god-mode`, and `/god-mode --yolo`, while Codex installs keep
18
- per-agent TOML metadata for all 39 specialist agents.
15
+ Version 1.6.5 keeps the stable Godpowers surface while making Codex
16
+ `god-orchestrator` spawns transcript-safe: `/god-mode` now writes detailed
17
+ orchestration context to a private handoff file and spawns with only a small
18
+ display-safe pointer. Safe-sync and unresolved Critical harden findings still
19
+ gate direct Tier 3 commands, `/god-mode`, and `/god-mode --yolo`.
19
20
 
20
21
  It fuses four disciplines into one unified workflow:
21
22
 
package/RELEASE.md CHANGED
@@ -1,11 +1,11 @@
1
- # Godpowers 1.6.4 Release
1
+ # Godpowers 1.6.5 Release
2
2
 
3
3
  Date: 2026-05-16
4
4
 
5
- Godpowers 1.6.4 hardens release-truth routing around the stable 1.6 surface.
6
- The goal of this patch is to make safe sync and unresolved Critical harden
7
- findings block direct Tier 3 commands, `/god-mode`, and `/god-mode --yolo`,
8
- without changing the public command surface.
5
+ Godpowers 1.6.5 keeps the stable 1.6 surface while fixing Codex God Mode
6
+ transcript hygiene. The goal of this patch is to make `god-orchestrator`
7
+ spawn correctly from `/god-mode` and `/god-mode --yolo` without exposing the
8
+ detailed orchestration payload in the visible transcript.
9
9
 
10
10
  ## What is stable
11
11
 
@@ -27,33 +27,35 @@ without changing the public command surface.
27
27
 
28
28
  ## What is new
29
29
 
30
- - `/god-next` detects `.godpowers/sync/SAFE-SYNC-PLAN.md` and routes to
31
- `/god-reconcile Release Truth And Safe Sync` before `/god-deploy`.
32
- - Direct `/god-observe`, `/god-harden`, `/god-launch`, and `/god-mode`
33
- invocations also require `safe-sync-clear`.
34
- - `/god-launch` now executes the `no-critical-findings` prerequisite instead
35
- of treating it as an unknown pass-through check.
36
- - `god-orchestrator` now checks router prerequisites before command dispatch,
37
- including under `--yolo`.
38
- - Router tests cover unresolved safe sync plans, checkpoint blockers, direct
39
- Tier 3 gates, `/god-mode`, unresolved Critical findings, and resolved gates.
30
+ - `/god-mode` now writes detailed orchestration context to
31
+ `.godpowers/runs/<run-id>/ORCHESTRATOR-HANDOFF.md`.
32
+ - `/god-mode` now spawns `god-orchestrator` with only a display-safe project
33
+ root, flags, and handoff file path.
34
+ - `god-orchestrator` now knows to read the handoff file before planning,
35
+ spawning, or mutating project state.
36
+ - `god-orchestrator` now treats handoff contents as private orchestration
37
+ context and keeps them out of the visible transcript.
38
+ - Agent validation and smoke tests now inspect `agents/god-*.md` specialist
39
+ files while allowing Pillars context files like `agents/context.md` and
40
+ `agents/repo.md` to coexist.
40
41
 
41
- ## What 1.6.4 means
42
+ ## What 1.6.5 means
42
43
 
43
- Godpowers 1.6.4 does not expand the public command surface. It tightens the
44
- runtime decision path so project truth can override structural tier order for
45
- safe sync and harden Critical gates.
44
+ Godpowers 1.6.5 does not expand the public command surface. It fixes the Codex
45
+ spawn integration path so the right specialist agent is still started, but the
46
+ host UI only sees a small pointer to disk state instead of raw checkpoint,
47
+ routing, and local-file details.
46
48
 
47
- The domain glossary remains preparation context. PRD, ARCH, ROADMAP, STACK,
48
- docs, and Pillars files still carry durable decisions for their own domains.
49
+ Safe sync and unresolved Critical harden findings remain release-truth gates.
50
+ `--yolo` can still auto-pick defaults, but it cannot bypass those blockers.
49
51
 
50
52
  ## Stability policy
51
53
 
52
54
  During the 1.x stability window, do not add broad new command families, change
53
55
  schema formats, or rename public artifacts without evidence from real use.
54
56
 
55
- The `v1.6.4` git tag points to the release commit that matches the npm
56
- `godpowers@1.6.4` package. Public publishes should prefer the tag-triggered
57
+ The `v1.6.5` git tag points to the release commit that matches the npm
58
+ `godpowers@1.6.5` package. Public publishes should prefer the tag-triggered
57
59
  GitHub workflow so npm provenance, git history, and release notes stay aligned.
58
60
 
59
61
  Allowed changes:
@@ -21,6 +21,24 @@ You orchestrate the full Godpowers arc. You DO NOT do the heavy lifting yourself
21
21
  Your job is to spawn the right specialist agent for each sub-step, verify their
22
22
  output passes the gate, update PROGRESS.md, and move to the next step.
23
23
 
24
+ ## God Mode Handoff
25
+
26
+ When spawned by `/god-mode`, the visible spawn message may include only a
27
+ display-safe summary plus a path like
28
+ `.godpowers/runs/<run-id>/ORCHESTRATOR-HANDOFF.md`.
29
+
30
+ If a handoff path is provided:
31
+ 1. Read the handoff file before any planning, spawning, or state mutation.
32
+ 2. Treat the handoff as private orchestration context and disk evidence.
33
+ 3. Do not quote, summarize, or expose the full handoff in the user-visible
34
+ transcript.
35
+ 4. If the handoff conflicts with durable artifacts, prefer disk artifacts and
36
+ record the conflict as an open question or repair target.
37
+
38
+ If no handoff path is provided, recover from durable disk state. Do not ask the
39
+ user to restate the project when `.godpowers` artifacts, Pillars files, or
40
+ repository evidence identify the work.
41
+
24
42
  ## Quarterback responsibilities (Tier 0 ownership)
25
43
 
26
44
  You and only you are responsible for:
@@ -230,14 +230,18 @@ function crossValidate(agents, opts = {}) {
230
230
  }
231
231
 
232
232
  /**
233
- * Walk agents/ and audit all.
233
+ * Walk agents/ and audit all shipped specialist agents.
234
+ *
235
+ * Godpowers projects may also have Pillars files under agents/ (for example
236
+ * agents/context.md and agents/repo.md). Those are project context, not
237
+ * specialist agent specs, so they are intentionally excluded here.
234
238
  */
235
239
  function auditAll(projectRoot, opts = {}) {
236
240
  const agentsDir = path.join(projectRoot, 'agents');
237
241
  if (!fs.existsSync(agentsDir)) {
238
242
  return { results: [], summary: { errors: 0, warnings: 0, infos: 0 } };
239
243
  }
240
- const files = fs.readdirSync(agentsDir).filter(f => f.endsWith('.md'));
244
+ const files = fs.readdirSync(agentsDir).filter(f => /^god-.*\.md$/.test(f));
241
245
  const agents = files.map(f => parseAgentFile(path.join(agentsDir, f)));
242
246
 
243
247
  const allFindings = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godpowers",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "AI-powered development system: 106 slash commands and 39 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"
@@ -48,7 +48,7 @@ GODPOWERS DOCTOR
48
48
  Install: claude (~/.claude/)
49
49
  [OK] 106 skills installed
50
50
  [OK] 39 agents installed
51
- [OK] VERSION matches (1.6.4)
51
+ [OK] VERSION matches (1.6.5)
52
52
  [WARN] routing/god-doctor.yaml exists but skill file did not until now
53
53
 
54
54
  Project: /Users/.../my-project/.godpowers/
@@ -69,75 +69,94 @@ You are receiving a /god-mode invocation. Your job is to spawn the
69
69
  - `--bluefield` (force bluefield path)
70
70
  - `--greenfield` (force greenfield, skip archaeology even if code exists)
71
71
 
72
- 5. Spawn the **god-orchestrator** agent via Task tool with:
73
- - The user's project description, or durable intent recovered from disk
74
- - The detected mode (A/B/C/E)
75
- - The active flags
76
- - Instruction that existing `.godpowers` state means resume, not prompt
77
- - Instruction to read `.godpowers/PROGRESS.md` from disk if it exists
78
- - Instruction to read `.godpowers/prep/INITIAL-FINDINGS.md` and
79
- `.godpowers/prep/IMPORTED-CONTEXT.md` if present before choosing the
80
- first planning or build step
81
- - Instruction to read `.godpowers/preflight/PREFLIGHT.md` if present before
82
- choosing the first brownfield or bluefield action
83
- - Instruction to compute and load the Pillars load set before every major
84
- command, because Pillars is the native project context layer
85
- - Instruction to run `/god-design` after `/god-prd` and before `/god-arch`
86
- when initial findings, imported planning context, the PRD, or the
87
- codebase show UI or product-experience signals
88
- - Instruction that a red test, typecheck, lint, build, or check command is
89
- not a completed arc. It must enter the autonomous repair loop and continue
90
- the same `/god-mode` run until green, except for Critical security or a
91
- genuine human-only decision.
92
- - Instruction that deploy, observe, harden, and launch must follow the
93
- Shipping Closure Protocol: verify a real environment when available,
94
- otherwise create local/CI-verifiable deploy automation and pause only for
95
- one exact external access bundle.
96
- - Instruction that keys, API tokens, dashboards, admin consoles, and
97
- provider-specific access are last-mile inputs. The first external pause
98
- should ask only for the smallest next item needed by a concrete command,
99
- usually `STAGING_APP_URL=<staging-origin>`. Ask for additional provider
100
- access only after a named check proves it is needed.
101
- - Instruction that staging, preview, and production URLs must come from
102
- direct evidence. Never infer or invent a domain from project name, package
103
- name, repo name, README title, or brand name. If no deployed origin is
104
- evidenced, pause for `STAGING_APP_URL=<deployed staging origin>`.
105
- - Instruction that brownfield and bluefield greenfield simulation audits
106
- must be acted on by god-greenfieldifier. The greenfieldifier writes
107
- `.godpowers/audit/GREENFIELDIFY-PLAN.md`, pauses before risky canonical
108
- artifact rewrites, and updates every affected artifact after approval.
109
- - Instruction that brownfield and bluefield arcs run `/god-preflight`
110
- automatically when `.godpowers/preflight/PREFLIGHT.md` is absent.
111
- Greenfield arcs skip preflight unless the user explicitly requests it.
112
- - Instruction to run routing prerequisites through `lib/router.js`
113
- `checkPrerequisites` before every direct command dispatch. If
114
- `safe-sync-clear` fails, run
115
- `/god-reconcile Release Truth And Safe Sync` before deploy, observe,
116
- harden, launch, broad migration, or resume work.
117
- - Instruction that `--yolo` cannot bypass safe sync blockers or unresolved
118
- Critical harden findings. These are release-truth gates, not preference
119
- pauses.
120
-
121
- 6. Keep the spawn payload private. Do not echo or summarize raw Task input,
72
+ 5. Create a private disk handoff before spawning the orchestrator:
73
+ - Path: `.godpowers/runs/<run-id>/ORCHESTRATOR-HANDOFF.md`
74
+ - Create parent directories if needed.
75
+ - Put all detailed orchestration context in this file, including:
76
+ - The user's project description, or durable intent recovered from disk
77
+ - The detected mode (A/B/C/E)
78
+ - The active flags
79
+ - Instruction that existing `.godpowers` state means resume, not prompt
80
+ - Instruction to read `.godpowers/PROGRESS.md` from disk if it exists
81
+ - Instruction to read `.godpowers/prep/INITIAL-FINDINGS.md` and
82
+ `.godpowers/prep/IMPORTED-CONTEXT.md` if present before choosing the
83
+ first planning or build step
84
+ - Instruction to read `.godpowers/preflight/PREFLIGHT.md` if present
85
+ before choosing the first brownfield or bluefield action
86
+ - Instruction to compute and load the Pillars load set before every major
87
+ command, because Pillars is the native project context layer
88
+ - Instruction to run `/god-design` after `/god-prd` and before
89
+ `/god-arch` when initial findings, imported planning context, the PRD,
90
+ or the codebase show UI or product-experience signals
91
+ - Instruction that a red test, typecheck, lint, build, or check command
92
+ is not a completed arc. It must enter the autonomous repair loop and
93
+ continue the same `/god-mode` run until green, except for Critical
94
+ security or a genuine human-only decision.
95
+ - Instruction that deploy, observe, harden, and launch must follow the
96
+ Shipping Closure Protocol: verify a real environment when available,
97
+ otherwise create local/CI-verifiable deploy automation and pause only
98
+ for one exact external access bundle.
99
+ - Instruction that keys, API tokens, dashboards, admin consoles, and
100
+ provider-specific access are last-mile inputs. The first external pause
101
+ should ask only for the smallest next item needed by a concrete command,
102
+ usually `STAGING_APP_URL=<staging-origin>`. Ask for additional provider
103
+ access only after a named check proves it is needed.
104
+ - Instruction that staging, preview, and production URLs must come from
105
+ direct evidence. Never infer or invent a domain from project name,
106
+ package name, repo name, README title, or brand name. If no deployed
107
+ origin is evidenced, pause for
108
+ `STAGING_APP_URL=<deployed staging origin>`.
109
+ - Instruction that brownfield and bluefield greenfield simulation audits
110
+ must be acted on by god-greenfieldifier. The greenfieldifier writes
111
+ `.godpowers/audit/GREENFIELDIFY-PLAN.md`, pauses before risky canonical
112
+ artifact rewrites, and updates every affected artifact after approval.
113
+ - Instruction that brownfield and bluefield arcs run `/god-preflight`
114
+ automatically when `.godpowers/preflight/PREFLIGHT.md` is absent.
115
+ Greenfield arcs skip preflight unless the user explicitly requests it.
116
+ - Instruction to run routing prerequisites through `lib/router.js`
117
+ `checkPrerequisites` before every direct command dispatch. If
118
+ `safe-sync-clear` fails, run
119
+ `/god-reconcile Release Truth And Safe Sync` before deploy, observe,
120
+ harden, launch, broad migration, or resume work.
121
+ - Instruction that `--yolo` cannot bypass safe sync blockers or
122
+ unresolved Critical harden findings. These are release-truth gates, not
123
+ preference pauses.
124
+
125
+ 6. Spawn the **god-orchestrator** agent via Task tool with only a
126
+ display-safe payload:
127
+ - Name the project root.
128
+ - Name the invocation flags.
129
+ - Name the handoff file path.
130
+ - Say: "Read the handoff file first, then run the autonomous arc from disk
131
+ state. Return only user-facing progress and final status."
132
+
133
+ Do not put recovered checkpoint facts, safe-sync plans, local file lists,
134
+ hidden routing rules, or detailed instructions in the spawn message.
135
+ Assume the host UI may display the raw spawn message to the user.
136
+
137
+ 7. Keep the spawn payload display-safe. Do not echo or summarize raw Task input,
122
138
  "Hard instructions", hidden orchestration rules, agent prompts, file
123
139
  loadout lists, or internal routing payloads into the user-visible transcript.
124
140
  The visible transcript may say only what phase is running, what durable state
125
141
  was detected, what commands are running, what changed, and the final
126
142
  `Arc complete` or `PAUSE: external access required` block.
127
143
 
128
- 7. Orchestrator runs the appropriate workflow:
144
+ 8. Orchestrator runs the appropriate workflow:
129
145
  - Greenfield -> full-arc
130
146
  - Brownfield -> brownfield-arc (preflight -> archaeology -> reconstruct -> debt-assess -> greenfield simulation audit -> greenfieldify plan and approved artifact updates -> proceed)
131
147
  - Bluefield -> bluefield-arc (org-context -> preflight -> greenfield simulation audit -> greenfieldify plan and approved artifact updates -> arc with constraints)
132
148
 
133
- 8. Relay only the orchestrator's user-facing output to the user. If the
134
- platform displays raw spawn details automatically, immediately follow with a
135
- clean public summary and never repeat the leaked payload.
149
+ 9. Relay only the orchestrator's user-facing output to the user. If the
150
+ platform displays raw spawn details automatically, the displayed payload
151
+ should already be safe. Immediately follow with a clean public summary and
152
+ never repeat detailed handoff contents.
136
153
 
137
- 9. When the orchestrator pauses, present the question to the user using the
154
+ 10. When the orchestrator pauses, present the question to the user using the
138
155
  pause format (What / Why / Options / Default).
139
156
 
140
- 10. When the user answers, re-spawn god-orchestrator with the answer.
157
+ 11. When the user answers, append the answer to the existing handoff file or
158
+ create a new handoff file, then re-spawn god-orchestrator with only the
159
+ display-safe pointer.
141
160
 
142
161
  ## User-Visible Transcript Contract
143
162
 
@@ -153,6 +172,7 @@ Hide:
153
172
  - raw Task input
154
173
  - "Hard instructions" sections
155
174
  - spawned-agent prompt text
175
+ - detailed handoff file contents
156
176
  - system, developer, or AGENTS.md rule recitations
157
177
  - complete file loadout lists
158
178
  - internal routing metadata unless it directly affects a user decision
@@ -14,7 +14,7 @@ Print version and a short capability summary.
14
14
  ## Output
15
15
 
16
16
  ```
17
- Godpowers v1.6.4
17
+ Godpowers v1.6.5
18
18
  Install: /Users/.../.claude/ (matches package.json)
19
19
  Surface: 106 skills, 39 agents, 13 workflows, 36 recipes
20
20
  Schema: intent.v1, state.v1, events.v1, workflow.v1, routing.v1, recipe.v1