godpowers 0.15.17 → 0.15.18

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,32 @@ 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.18] - 2026-05-14
9
+
10
+ Native Pillars context release. Makes Pillars the default project context
11
+ layer for Godpowers projects and keeps existing `.godpowers` artifacts aligned
12
+ with portable `agents/*.md` pillar files.
13
+
14
+ ### Added
15
+ - Added `lib/pillars.js` for Pillars detection, initialization, load-set
16
+ routing, existing-project Pillar-ization, artifact sync planning, and
17
+ semantic signal extraction from labeled Godpowers artifacts.
18
+ - Added `scripts/test-pillars.js` and `npm run test:pillars` to cover the
19
+ `agents/` collision risk, Pillars initialization, routed load sets,
20
+ existing `.godpowers` conversion, artifact-to-pillar sync, `--yolo`
21
+ auto-apply behavior, and restricted-character sanitization.
22
+
23
+ ### Changed
24
+ - `/god-init`, `/god-mode`, `/god-context`, and `/god-sync` now treat every
25
+ Godpowers project as a Pillars project by default.
26
+ - Existing `.godpowers` projects are Pillar-ized on resume or sync, with PRD,
27
+ ARCH, STACK, ROADMAP, BUILD, DEPLOY, OBSERVE, HARDEN, DESIGN, and PRODUCT
28
+ artifacts linked into relevant pillar files.
29
+ - `/god-feature`, `/god-build`, `/god-review`, PRD, architecture, roadmap,
30
+ orchestrator, and updater flows now document Pillars-first context loading.
31
+ - Under `/god-mode --yolo`, durable artifact changes auto-apply managed
32
+ pillar sync sections and log the decision.
33
+
8
34
  ## [0.15.17] - 2026-05-12
9
35
 
10
36
  Greenfieldification release. Turns the brownfield and bluefield simulation
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.17-blue)](CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/version-0.15.18-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.**
@@ -14,6 +14,9 @@ in fresh contexts to do the work.
14
14
 
15
15
  It fuses four disciplines into one unified workflow:
16
16
 
17
+ - **Native project context** - every Godpowers project is a Pillars project:
18
+ root `AGENTS.md` plus task-routed `agents/*.md` files carry durable project
19
+ truth before commands touch code.
17
20
  - **Artifact discipline** - every sentence in every document is a labeled
18
21
  decision, hypothesis, or open question. Mechanically verified failure modes.
19
22
  - **Execution engine** - fresh-context agents in parallel waves with atomic
@@ -156,6 +159,10 @@ reported as the final result.
156
159
  If `.godpowers` state already exists, `/god-mode --yolo` resumes from disk
157
160
  instead of asking for the project description again.
158
161
 
162
+ Under `--yolo`, Godpowers also auto-applies Pillars sync proposals when
163
+ durable `.godpowers` artifacts change project truth. The decision is logged to
164
+ `.godpowers/YOLO-DECISIONS.md`.
165
+
159
166
  For existing codebases and org-constrained new projects, God Mode now runs a
160
167
  greenfield simulation audit and then actions it through a greenfieldification
161
168
  plan. It pauses before risky artifact rewrites because that process can change
@@ -206,6 +213,20 @@ Skill updates: PROGRESS.md
206
213
  .godpowers/harden/FINDINGS.md Security Findings
207
214
  ```
208
215
 
216
+ Godpowers projects also include native Pillars context:
217
+
218
+ ```
219
+ AGENTS.md Pillars loading protocol plus Godpowers managed fence
220
+ agents/context.md Always-loaded project identity and invariants
221
+ agents/repo.md Always-loaded repository layout and naming
222
+ agents/*.md Task-routed domain pillars
223
+ ```
224
+
225
+ Existing `.godpowers` projects are Pillar-ized on resume or sync. Current PRD,
226
+ ARCH, STACK, ROADMAP, BUILD, DEPLOY, OBSERVE, HARDEN, DESIGN, and PRODUCT
227
+ artifacts become managed source references in the relevant pillar files, with
228
+ labeled decisions, hypotheses, and open questions extracted when available.
229
+
209
230
  ## Quality Guardrails
210
231
 
211
232
  Every artifact passes these mechanical checks before it is treated as complete:
@@ -29,6 +29,11 @@ Before starting:
29
29
 
30
30
  ## Imported Preparation Context
31
31
 
32
+ Before drafting, compute the Pillars load set for the architecture task with
33
+ `lib/pillars.computeLoadSet(projectRoot, taskText)`. Read `agents/context.md`
34
+ and `agents/repo.md` first, then routed pillars such as `arch`, `stack`,
35
+ `data`, `api`, `auth`, `deploy`, or `observe` when relevant.
36
+
32
37
  If `.godpowers/prep/INITIAL-FINDINGS.md` exists, read it first for direct
33
38
  Godpowers observations about framework, tooling, deploy, tests, docs, and
34
39
  codebase risks.
@@ -50,6 +55,9 @@ Rules:
50
55
  descriptions, or open questions.
51
56
  - If imported context conflicts with the PRD, the PRD wins and the conflict
52
57
  becomes an `[OPEN QUESTION]`.
58
+ - If ARCH or ADRs create durable architectural truth, plan updates for
59
+ `agents/arch.md` and related pillars. In `--yolo`, apply those updates and
60
+ log them to `.godpowers/YOLO-DECISIONS.md`.
53
61
 
54
62
  ## Output
55
63
 
@@ -146,6 +146,31 @@ During `/god-init`, scan for adjacent methodology artifacts from GSD,
146
146
  Superpowers, BMAD, and similar systems. Treat them as preparation context,
147
147
  not as source of truth.
148
148
 
149
+ ## Native Pillars context
150
+
151
+ Every Godpowers project is also a Pillars project. During `/god-init` and
152
+ `/god-mode`, call `lib/pillars.detect(projectRoot)`. If Pillars is absent or
153
+ partial, call `lib/pillars.init(projectRoot)` before planning or build work
154
+ continues.
155
+
156
+ If `.godpowers/` already exists, call
157
+ `lib/pillars.pillarizeExisting(projectRoot)` before resume work continues.
158
+ This converts existing Godpowers artifacts into managed source references in
159
+ the relevant pillar files, so old projects are Pillar-ized as part of being
160
+ Godpower-ized.
161
+
162
+ Before each major command, compute the task-specific Pillars load set with
163
+ `lib/pillars.computeLoadSet(projectRoot, taskText)`. Load `agents/context.md`
164
+ and `agents/repo.md` first, then the routed primary pillars and their direct
165
+ `must_read_with` dependencies. Do not read every file in `agents/`; Godpowers
166
+ specialist agents also live there and are not project pillars.
167
+
168
+ When a Godpowers artifact changes durable project truth, map the artifact to
169
+ pillar sync work with `lib/pillars.planArtifactSync(projectRoot, artifacts,
170
+ { yolo })`. Default mode proposes pillar updates for review. Under `--yolo`,
171
+ apply the pillar updates immediately and log the action to
172
+ `.godpowers/YOLO-DECISIONS.md`.
173
+
149
174
  Before or alongside that import, write `.godpowers/prep/INITIAL-FINDINGS.md`
150
175
  using `templates/INITIAL-FINDINGS.md`. This artifact records what Godpowers
151
176
  observed directly during init:
@@ -407,6 +432,7 @@ for `STAGING_APP_URL=<deployed staging origin>` before deployed staging smoke.
407
432
  | Drift (breaking) | Pause | Pause anyway |
408
433
  | Impeccable critical at /god-launch | Pause | Pause anyway |
409
434
  | Impeccable warnings at launch | Pause to ack | Auto-ack with justification |
435
+ | Pillars durable context sync | Propose updates | Auto-apply and log |
410
436
  | REVIEW-REQUIRED.md auto-clear | No | No anyway |
411
437
  | Reverse-sync between tiers | Yes | Yes |
412
438
  | Mandatory final /god-sync | Always | Always |
package/agents/god-pm.md CHANGED
@@ -31,6 +31,11 @@ required sections:
31
31
 
32
32
  ## Imported Preparation Context
33
33
 
34
+ Before drafting, compute the Pillars load set for the PRD task with
35
+ `lib/pillars.computeLoadSet(projectRoot, taskText)`. Read `agents/context.md`
36
+ and `agents/repo.md` first, then any task-routed pillars. Pillars is native
37
+ project truth for Godpowers; use it before broader repo archaeology.
38
+
34
39
  If `.godpowers/prep/INITIAL-FINDINGS.md` exists, read it first so the PRD
35
40
  reflects what Godpowers observed during init: codebase shape, tests, docs,
36
41
  risks, and methodology systems detected.
@@ -48,6 +53,9 @@ Rules:
48
53
  preserve the Godpowers state and add an `[OPEN QUESTION]`.
49
54
  - In PRD rationale, mention the source only when it materially changes a
50
55
  requirement.
56
+ - If the PRD creates durable product truth, plan corresponding updates for
57
+ `agents/context.md`. In `--yolo`, apply those updates and log them to
58
+ `.godpowers/YOLO-DECISIONS.md`.
51
59
 
52
60
  ## Quality Gates
53
61
 
@@ -25,6 +25,11 @@ may exist as early product-experience preparation.
25
25
 
26
26
  ## Imported Preparation Context
27
27
 
28
+ Before sequencing, compute the Pillars load set for the roadmap task with
29
+ `lib/pillars.computeLoadSet(projectRoot, taskText)`. Read `agents/context.md`
30
+ and `agents/repo.md` first, then routed pillars that affect delivery,
31
+ quality, deploy, or observability.
32
+
28
33
  If `.godpowers/prep/INITIAL-FINDINGS.md` exists, read it first for repo risks,
29
34
  existing tests, docs, CI, deploy, and suggested sequencing implications.
30
35
 
@@ -47,6 +52,9 @@ Rules:
47
52
  - Mark any imported sequencing assumption as `[HYPOTHESIS]` until confirmed by
48
53
  Godpowers artifacts or the user.
49
54
  - Keep design-derived delivery increments grounded in the PRD and ARCH.
55
+ - If ROADMAP creates durable delivery or sequencing truth, plan updates for
56
+ relevant pillars. In `--yolo`, apply those updates and log them to
57
+ `.godpowers/YOLO-DECISIONS.md`.
50
58
 
51
59
  ## Process
52
60
 
@@ -112,6 +112,17 @@ After feature work, every artifact that was impacted needs to reflect reality.
112
112
  - Emit events: `linkage.snapshot`, `drift.detected` (per finding),
113
113
  `review-required.populated`
114
114
 
115
+ ### Pillars sync (native context)
116
+ - Call `lib/pillars.pillarizeExisting(projectRoot)` if Pillars is absent or
117
+ partial.
118
+ - For every durable Godpowers artifact changed during this sync, call
119
+ `lib/pillars.applyArtifactSync(projectRoot, changedArtifacts, { yolo })`.
120
+ - Default mode may report the pillar updates as proposed review items when the
121
+ change is interpretive. Under `--yolo`, apply the managed source sections
122
+ immediately and log the decision to `.godpowers/YOLO-DECISIONS.md`.
123
+ - Never read every file in `agents/` as project context. Only files with
124
+ `pillar:` frontmatter are Pillars files.
125
+
115
126
  ### AI-tool context refresh (always, unless never-ask)
116
127
  - Read `state.json` for `project.context-prompt-answered`
117
128
  - If `never-ask`: skip; do not touch AGENTS.md / CLAUDE.md / others