godpowers 0.15.16 → 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,52 @@ 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
+
34
+ ## [0.15.17] - 2026-05-12
35
+
36
+ Greenfieldification release. Turns the brownfield and bluefield simulation
37
+ audit into a controlled artifact migration instead of a passive report.
38
+
39
+ ### Added
40
+ - Added `god-greenfieldifier`, a Tier 0 agent that writes
41
+ `.godpowers/audit/GREENFIELDIFY-PLAN.md`, classifies audit findings, pauses
42
+ before risky canonical artifact rewrites, and then updates affected artifacts
43
+ after approval.
44
+
45
+ ### Changed
46
+ - Brownfield arc now runs greenfieldification after the greenfield simulation
47
+ audit and before steady-state handoff.
48
+ - Bluefield arc now runs greenfieldification after the greenfield simulation
49
+ audit and before PRD.
50
+ - `/god-mode`, `god-orchestrator`, and `/god-audit` now document that the
51
+ simulation audit must be acted on through a thorough, approval-gated artifact
52
+ migration.
53
+
8
54
  ## [0.15.16] - 2026-05-11
9
55
 
10
56
  Greenfield simulation audit release. Adds a preparation audit to brownfield
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.16-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,16 @@ 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
+
166
+ For existing codebases and org-constrained new projects, God Mode now runs a
167
+ greenfield simulation audit and then actions it through a greenfieldification
168
+ plan. It pauses before risky artifact rewrites because that process can change
169
+ product scope, design direction, architecture, roadmap, stack, and shipping
170
+ commitments.
171
+
159
172
  ## Architecture
160
173
 
161
174
  ### Slash Command + Specialist Agent Pattern
@@ -200,9 +213,23 @@ Skill updates: PROGRESS.md
200
213
  .godpowers/harden/FINDINGS.md Security Findings
201
214
  ```
202
215
 
203
- ## Quality Guarantees
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.
204
229
 
205
- Every artifact passes these mechanical checks:
230
+ ## Quality Guardrails
231
+
232
+ Every artifact passes these mechanical checks before it is treated as complete:
206
233
 
207
234
  | Check | What it catches |
208
235
  |---|---|
@@ -214,6 +241,26 @@ Every artifact passes these mechanical checks:
214
241
  | TDD enforcement | Code without tests |
215
242
  | Two-stage review | Code that passes tests but violates spec or quality |
216
243
 
244
+ These checks are guardrails, not proof that the product is right. A PRD can
245
+ pass the substitution test and still make the wrong product call. Godpowers
246
+ uses mechanical checks to catch generic, missing, or untraceable work so the
247
+ remaining judgment is visible to humans and reviewers.
248
+
249
+ ## Operational Reality
250
+
251
+ Godpowers is pre-launch. See [USERS.md](USERS.md) for current adoption status.
252
+
253
+ Full autonomous runs can be expensive because they spawn multiple fresh-context
254
+ agents. The runtime records token and dollar estimates through `cost.recorded`
255
+ events, and `/god-cost` reports spend, savings, live vs estimated token counts,
256
+ and cache hits. `/god-budget` configures context caps, cache use, and model
257
+ profiles. `/god-metrics` and `/god-trace` expose run duration, pauses, retries,
258
+ and per-tier history from `.godpowers/runs/<id>/events.jsonl`.
259
+
260
+ Treat a real `/god-mode` result as successful only when it produces shipped or
261
+ ship-ready work on someone else's codebase, with validation results, cost, and
262
+ wall-clock time visible.
263
+
217
264
  ## Pause Philosophy
218
265
 
219
266
  God Mode pauses only when:
@@ -237,7 +284,7 @@ Pi. T3 Code inherits from the underlying agent (Codex / Claude / OpenCode).
237
284
 
238
285
  - [Getting Started](docs/getting-started.md)
239
286
  - [Concepts](docs/concepts.md)
240
- - [Command reference (all 105 skills + 38 agents)](docs/reference.md)
287
+ - [Command reference (all 105 skills + 39 agents)](docs/reference.md)
241
288
  - [Roadmap](docs/ROADMAP.md)
242
289
  - [Changelog](CHANGELOG.md)
243
290
  - [Inspiration](INSPIRATION.md)
@@ -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
 
@@ -187,6 +187,8 @@ Mode: [brownfield | bluefield]
187
187
 
188
188
  ## Non-Goals
189
189
  - This audit does not rewrite artifacts.
190
+ - This audit must be followed by `god-greenfieldifier` in brownfield and
191
+ bluefield workflows when the user wants the audit acted on.
190
192
  - This audit does not treat imported GSD, Superpowers, BMAD, or org context as
191
193
  source of truth.
192
194
  - This audit does not block the arc unless it finds a Critical security or
@@ -204,3 +206,6 @@ Greenfield simulation rules:
204
206
  - Do not invent missing intent. Mark unknowns as OPEN QUESTION.
205
207
  - Do not overwrite PRD, ARCH, ROADMAP, STACK, or shipping artifacts. This audit
206
208
  is preparation context for downstream steps.
209
+ - In brownfield and bluefield workflows, hand this audit to god-greenfieldifier
210
+ so it can produce `.godpowers/audit/GREENFIELDIFY-PLAN.md`, pause for
211
+ approval when needed, and then update the affected artifacts thoroughly.
@@ -0,0 +1,159 @@
1
+ ---
2
+ name: god-greenfieldifier
3
+ description: |
4
+ Turns a greenfield simulation audit into a controlled artifact migration
5
+ plan for brownfield and bluefield projects. Requires user approval before
6
+ rewriting canonical Godpowers artifacts.
7
+
8
+ Spawned by: brownfield-arc, bluefield-arc, god-orchestrator
9
+ tools: Read, Write, Edit, Bash, Grep, Glob
10
+ ---
11
+
12
+ # God Greenfieldifier
13
+
14
+ You action the greenfield simulation audit. Your job is to help an existing or
15
+ org-constrained project receive the same thorough Godpowers preparation that a
16
+ greenfield project would have received, without silently breaking project
17
+ intent, architecture, delivery commitments, or org constraints.
18
+
19
+ ## Inputs
20
+
21
+ - `.godpowers/audit/GREENFIELD-SIMULATION.md`
22
+ - `.godpowers/prep/INITIAL-FINDINGS.md`, when present
23
+ - `.godpowers/prep/IMPORTED-CONTEXT.md`, when present
24
+ - Existing canonical artifacts:
25
+ - `.godpowers/prd/PRD.md`
26
+ - `.godpowers/design/DESIGN.md`
27
+ - `.godpowers/product/PRODUCT.md`
28
+ - `.godpowers/arch/ARCH.md`
29
+ - `.godpowers/roadmap/ROADMAP.md`
30
+ - `.godpowers/stack/DECISION.md`
31
+ - `.godpowers/repo/AUDIT.md`
32
+ - `.godpowers/build/STATE.md`
33
+ - `.godpowers/deploy/STATE.md`
34
+ - `.godpowers/observe/STATE.md`
35
+ - `.godpowers/launch/STATE.md`
36
+ - `.godpowers/harden/FINDINGS.md`
37
+ - Source evidence from code, org context, and imported planning systems.
38
+
39
+ ## Process
40
+
41
+ ### 1. Read Before Acting
42
+
43
+ Read the audit and every existing canonical artifact before recommending any
44
+ rewrite. Disk state is authoritative. Conversation memory is not.
45
+
46
+ ### 2. Classify Each Finding
47
+
48
+ For every gap in the audit, classify it as exactly one:
49
+
50
+ - `preserve`: existing artifact is better than canonical greenfield default.
51
+ - `carry-forward`: useful context, but no rewrite yet.
52
+ - `rewrite-candidate`: likely artifact update.
53
+ - `requires-user-approval`: could change product scope, system shape, roadmap,
54
+ security posture, launch posture, budget, provider, hosting, or org policy.
55
+ - `blocked`: missing evidence prevents a safe rewrite.
56
+
57
+ ### 3. Write The Plan First
58
+
59
+ Write `.godpowers/audit/GREENFIELDIFY-PLAN.md` before editing canonical
60
+ artifacts.
61
+
62
+ The plan must include:
63
+
64
+ - DECISION: Which findings are safe to action.
65
+ - DECISION: Which artifacts would change.
66
+ - HYPOTHESIS: Why each change better matches the canonical greenfield arc.
67
+ - OPEN QUESTION: Any product, org, risk, or architecture choice that needs the
68
+ user.
69
+ - A per-artifact impact table for PRD, DESIGN, PRODUCT, ARCH, ROADMAP, STACK,
70
+ REPO, BUILD, DEPLOY, OBSERVE, LAUNCH, and HARDEN.
71
+ - A rollback note describing how to undo the planned artifact changes.
72
+
73
+ ### 4. Pause Before Risky Rewrites
74
+
75
+ Do not rewrite canonical artifacts when any planned change is classified as
76
+ `requires-user-approval` or `blocked`.
77
+
78
+ Pause with:
79
+
80
+ ```markdown
81
+ PAUSE: Approve greenfieldification plan?
82
+
83
+ Why only you can answer: The plan may change product scope, architecture,
84
+ roadmap, stack, or shipping commitments.
85
+
86
+ | Option | Tradeoff |
87
+ |--------|----------|
88
+ | A: approve | Apply the plan to the listed artifacts. |
89
+ | B: revise | Provide corrections before any artifact rewrite. |
90
+ | C: preserve | Keep the current artifacts and carry the audit forward as prep context. |
91
+
92
+ Default: If you say "go", I will pick C unless `--yolo` explicitly permits
93
+ artifact rewrites and every change is classified as `rewrite-candidate`.
94
+ ```
95
+
96
+ Under `--yolo`, you may only apply changes without a pause when every change is
97
+ classified as `rewrite-candidate`, no product or org intent changes, and no
98
+ canonical artifact loses existing concrete evidence.
99
+
100
+ ### 5. Apply Approved Changes Thoroughly
101
+
102
+ When approved, update all affected artifacts, not just the first one:
103
+
104
+ - PRD: product goals, requirements, metrics, no-gos, open questions.
105
+ - DESIGN: product experience, UI surface, accessibility, workflow, brand.
106
+ - PRODUCT: screens, journeys, user promises, operational UX.
107
+ - ARCH: components, trust boundaries, ADRs, NFR mappings.
108
+ - ROADMAP: sequence, gates, dependencies, delivery increments.
109
+ - STACK: decisions, flip points, org constraints, incompatibilities.
110
+ - REPO: repository shape, CI, tests, security docs, install docs.
111
+ - BUILD: build state, test expectations, review gates.
112
+ - DEPLOY: environment model, deploy checks, rollback.
113
+ - OBSERVE: SLOs, dashboards, alerts, runbooks.
114
+ - LAUNCH: launch gates, copy scope, channel readiness.
115
+ - HARDEN: security findings, auth boundaries, severity.
116
+
117
+ ### 6. Sync State
118
+
119
+ After approved rewrites:
120
+
121
+ - Update `.godpowers/SYNC-LOG.md`.
122
+ - Update `.godpowers/PROGRESS.md`.
123
+ - Update `.godpowers/state.json` with:
124
+ - `greenfieldification.status`
125
+ - `greenfieldification.plan`
126
+ - `greenfieldification.approved`
127
+ - `greenfieldification.updatedArtifacts`
128
+ - Mark unresolved items as open questions, not completed work.
129
+
130
+ ## Rules
131
+
132
+ - Imported GSD, Superpowers, BMAD, org context, and reconstructed artifacts are
133
+ evidence, not source of truth.
134
+ - Never erase existing specific evidence to replace it with a generic
135
+ greenfield default.
136
+ - Never silently change product scope, stack, architecture, launch posture, or
137
+ security posture.
138
+ - Label every sentence written to Godpowers artifacts as DECISION, HYPOTHESIS,
139
+ or OPEN QUESTION unless the target artifact has a stricter existing format.
140
+ - If the audit is too shallow to act on, improve the plan with open questions
141
+ and stop before rewriting artifacts.
142
+
143
+ ## Output
144
+
145
+ Always write `.godpowers/audit/GREENFIELDIFY-PLAN.md`.
146
+
147
+ If user approval is required, return the PAUSE block.
148
+
149
+ If changes are approved and applied, return:
150
+
151
+ ```json
152
+ {
153
+ "status": "greenfieldified",
154
+ "plan": ".godpowers/audit/GREENFIELDIFY-PLAN.md",
155
+ "updatedArtifacts": [],
156
+ "openQuestions": [],
157
+ "validation": []
158
+ }
159
+ ```
@@ -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 |
@@ -809,7 +835,8 @@ in a parent suite. The human-friendly label is what the user sees.
809
835
  - Existing code OR partial `.godpowers/` artifacts present
810
836
  - May or may not have org context
811
837
  - Default path: archaeology -> reconstruct -> debt-assess -> greenfield
812
- simulation audit -> proceed
838
+ simulation audit -> greenfieldify plan and approved artifact updates ->
839
+ proceed
813
840
 
814
841
  **Detection logic (run this on every Mode B invocation)**:
815
842
 
@@ -844,6 +871,27 @@ Report findings to user before running any tier:
844
871
  Repo imported (CI present), Build in progress. Resuming from Build."
845
872
  ```
846
873
 
874
+ ### Greenfieldification checkpoint for Mode B and Mode E
875
+
876
+ The greenfield simulation audit is not enough by itself. It identifies gaps;
877
+ god-greenfieldifier actions those gaps through a controlled artifact migration.
878
+
879
+ Required sequence:
880
+
881
+ 1. Run greenfield simulation audit.
882
+ 2. Spawn god-greenfieldifier.
883
+ 3. Write `.godpowers/audit/GREENFIELDIFY-PLAN.md`.
884
+ 4. If the plan can change product scope, design direction, architecture,
885
+ roadmap, stack, deploy, observe, launch, harden, org policy, or user
886
+ commitments, pause for user approval before rewriting canonical artifacts.
887
+ 5. After approval, update every affected artifact, not just the first artifact
888
+ where the gap appears.
889
+ 6. Run sync so PROGRESS.md, state.json, and SYNC-LOG.md reflect what changed.
890
+
891
+ Under `--yolo`, do not bypass this checkpoint for risky changes. YOLO may only
892
+ auto-apply greenfieldification when every planned change is a non-destructive
893
+ rewrite-candidate and no concrete existing evidence is removed.
894
+
847
895
  ### Mode C: Audit
848
896
  - Triggered explicitly with --audit flag
849
897
  - Build nothing
@@ -878,9 +926,10 @@ Report findings to user before running any tier:
878
926
  - BUT org-context.yaml found (in current dir, parent, or grandparent)
879
927
  - Run full arc with all decisions constrained by org context
880
928
  - Spawn god-org-context-loader first to load constraints
881
- - Run greenfield simulation audit after org-context and before PRD so the arc
882
- knows where canonical Godpowers defaults align with, conflict with, or are
883
- constrained by org standards
929
+ - Run greenfield simulation audit after org-context, then run
930
+ god-greenfieldifier so the arc has an approved artifact plan before PRD.
931
+ The plan explains where canonical Godpowers defaults align with, conflict
932
+ with, or are constrained by org standards.
884
933
  - All downstream agents (god-stack-selector, god-architect, god-deploy-engineer,
885
934
  god-observability-engineer, god-harden-auditor) receive the org-context
886
935
  and respect it
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