godpowers 2.0.0 → 2.1.1

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 (53) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +141 -0
  3. package/README.md +45 -5
  4. package/RELEASE.md +30 -48
  5. package/SKILL.md +9 -1
  6. package/agents/god-design-reviewer.md +6 -6
  7. package/agents/god-designer.md +1 -1
  8. package/agents/god-executor.md +23 -0
  9. package/agents/god-quality-reviewer.md +12 -1
  10. package/agents/god-spec-reviewer.md +10 -0
  11. package/bin/install.js +119 -655
  12. package/extensions/launch-pack/README.md +1 -1
  13. package/lib/README.md +16 -0
  14. package/lib/agent-browser-driver.js +13 -13
  15. package/lib/agent-cache.js +8 -1
  16. package/lib/agent-refs.js +161 -0
  17. package/lib/budget.js +25 -11
  18. package/lib/context-writer.js +17 -6
  19. package/lib/events.js +11 -4
  20. package/lib/extension-authoring.js +27 -0
  21. package/lib/feature-awareness.js +18 -0
  22. package/lib/fs-async.js +28 -0
  23. package/lib/installer-args.js +99 -0
  24. package/lib/installer-core.js +345 -0
  25. package/lib/installer-files.js +80 -0
  26. package/lib/installer-runtimes.js +112 -0
  27. package/lib/intent.js +111 -16
  28. package/lib/release-surface-sync.js +8 -1
  29. package/lib/repo-surface-sync.js +9 -2
  30. package/lib/review-required.js +2 -1
  31. package/lib/router.js +23 -3
  32. package/lib/skill-surface.js +42 -0
  33. package/lib/state-lock.js +10 -0
  34. package/lib/state.js +101 -8
  35. package/lib/workflow-runner.js +42 -5
  36. package/package.json +4 -3
  37. package/references/HAVE-NOTS.md +4 -3
  38. package/references/orchestration/GOD-MODE-RUNBOOK.md +273 -0
  39. package/routing/god-arch.yaml +1 -1
  40. package/routing/god-build.yaml +1 -1
  41. package/skills/god-add-backlog.md +1 -1
  42. package/skills/god-agent-audit.md +2 -2
  43. package/skills/god-build.md +5 -3
  44. package/skills/god-context-scan.md +2 -3
  45. package/skills/god-design.md +2 -2
  46. package/skills/god-doctor.md +2 -2
  47. package/skills/god-help.md +4 -3
  48. package/skills/god-mode.md +10 -266
  49. package/skills/god-org-context.md +1 -1
  50. package/skills/god-repair.md +3 -3
  51. package/skills/god-review.md +9 -0
  52. package/skills/god-stories.md +1 -1
  53. package/skills/god-version.md +2 -2
package/AGENTS.md CHANGED
@@ -18,7 +18,7 @@ projects from raw idea to hardened production.
18
18
  - `routing/` contains command routing metadata and intent recipes
19
19
  - `workflows/` contains executable workflow YAML
20
20
  - `references/` contains per-tier reference material (antipatterns, examples)
21
- - `bin/` contains the CLI installer and `god` command
21
+ - `bin/` contains the CLI installer (`npx godpowers`)
22
22
  - `lib/` contains executable runtime helpers, sync checks, dogfood, dashboard, and release logic
23
23
  - `scripts/` contains validation and testing scripts
24
24
  - `templates/` contains artifact templates
package/CHANGELOG.md CHANGED
@@ -7,6 +7,147 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.1.1] - 2026-05-30
11
+
12
+ ### Changed
13
+ - The context off-switch now empties the canonical `AGENTS.md` instead of
14
+ deleting it; auto-generated pointer files (`CLAUDE.md`, `.cursorrules`, etc.)
15
+ are still removed when only the Godpowers fence remains
16
+ (`lib/context-writer.js`).
17
+
18
+ ### Fixed
19
+ - Documentation: dropped unverifiable external impeccable rule/finding counts;
20
+ reconciled the project-mode taxonomy (A/B/C/E primary modes, with D as the
21
+ orthogonal multi-repo suite overlay) in `concepts.md` and `ROADMAP.md`;
22
+ documented all `lib/` modules in `lib/README.md`; and clarified how the
23
+ artifact-category counts relate in `greenfield-coverage.md`.
24
+
25
+ ## [2.1.0] - 2026-05-30
26
+
27
+ ### Security
28
+ - Fixed a command-injection vector in `lib/agent-browser-driver.js`: CLI
29
+ arguments are now passed as an argv array with the shell disabled
30
+ (`execFileSync`), so URLs, selectors, and eval expressions sourced from
31
+ project content (`PRD.md`/`DESIGN.md`) or CLI flags can no longer be
32
+ interpreted as shell syntax.
33
+ - Added prototype-pollution guards to the `intent.yaml`/manifest parser
34
+ (`lib/intent.js`) and the router state-path reader (`lib/router.js`).
35
+ - Hardened the non-interactive installer: `npx godpowers` with no target in a
36
+ non-TTY shell now refuses and prints guidance instead of performing a silent
37
+ global install.
38
+ - Added path-traversal validation to `extension-scaffold` names
39
+ (`lib/extension-authoring.js`).
40
+ - `installer-files.copyRecursive` now only reproduces symlinks that stay within
41
+ the source tree.
42
+
43
+ ### Fixed
44
+ - Guarded JSON parsing of `state.json` (`lib/state.js`) and `events.jsonl`
45
+ (`lib/events.js`) against corrupt or partially-written files: a clear,
46
+ actionable error or a skipped torn line instead of an uncaught crash on the
47
+ `status`/`next`/checkpoint paths.
48
+ - Corrected the review registry path to `.godpowers/REVIEW-REQUIRED.md`
49
+ (`lib/review-required.js`) so the dashboard and automation count review items,
50
+ and so the off-switch no longer deletes a repo-root file.
51
+ - `agent-cache.clear` no longer deletes unparseable entries during a narrow
52
+ (by-agent, expiry, or age) clear (`lib/agent-cache.js`).
53
+ - Reconciled documentation drift: JS-module and script counts, the
54
+ `HAVE-NOTS.md` reference tally (now 156), linkage path naming
55
+ (`.godpowers/links/`), phantom command/agent references in skill and agent
56
+ prose, and stale sample output across docs and skills.
57
+
58
+ ### Changed
59
+ - Data-directory and runtime-bundle installs are now a clean replace
60
+ (`lib/installer-core.js`), so a version upgrade never leaves behind files that
61
+ no longer ship.
62
+ - Documented the state lock's advisory, single-process semantics
63
+ (`lib/state-lock.js`).
64
+ - Softened brittle exact-count test assertions (full-arc step/wave counts,
65
+ core workflow count) to floors so valid workflow edits no longer break the
66
+ gate for non-bug reasons.
67
+
68
+ ### Added
69
+ - A skill/agent prose reference validator
70
+ (`lib/agent-refs.findUnresolvedProseRefs`) wired into the agent-ref test gate,
71
+ catching phantom `/god-*` and agent references in markdown bodies that the
72
+ workflow `uses:` check cannot see.
73
+ - Wired have-not `A-13` (ADR inflation) into the architecture gate
74
+ (`routing/god-arch.yaml`).
75
+
76
+ ## [2.0.3] - 2026-05-26
77
+
78
+ ### Added
79
+ - Added async state, intent, and workflow plan APIs as the first supported path
80
+ away from synchronous-only runtime file I/O.
81
+ - Added executable workflow agent reference validation so `uses:
82
+ god-agent@range` entries are checked against the current agent contract.
83
+ - Added `lib/skill-surface.js` and source-sync tests so individual skill files
84
+ are the source of truth for slash-command metadata.
85
+
86
+ ### Changed
87
+ - Migrated test files to the shared test harness and made static checks reject
88
+ new copied harness boilerplate.
89
+ - Split installer runtime definitions, argument parsing, and install core logic
90
+ out of `bin/install.js`.
91
+ - Moved long-form `/god-mode` operator templates into
92
+ `references/orchestration/GOD-MODE-RUNBOOK.md`.
93
+ - Added JSDoc typedef contracts to load-bearing runtime modules.
94
+
95
+ ## [2.0.2] - 2026-05-26
96
+
97
+ ### Added
98
+ - Added `scripts/run-tests.js` as the maintained full-suite runner behind
99
+ `npm test`.
100
+ - Added `scripts/static-check.js` and `npm run lint` for dependency-free
101
+ JavaScript syntax and release-gate structure checks.
102
+ - Added dedicated YAML parser coverage for the supported dependency-free YAML
103
+ subset.
104
+
105
+ ### Changed
106
+ - Hardened `lib/intent.parseSimpleYaml` for quoted colons, quoted hashes,
107
+ quoted commas in inline arrays, scalar arrays, object arrays, and folded
108
+ block scalars.
109
+ - Moved installer copy helpers into `lib/installer-files.js` and preserved
110
+ symlinks during recursive copies.
111
+ - Updated release and repo surface sync detectors to recognize delegated test
112
+ runners instead of requiring every test filename inside `package.json`.
113
+ - Tightened budget block removal so only the top-level `budgets` block is
114
+ removed.
115
+
116
+ ### Fixed
117
+ - Rejected router `file:` checks that point outside the project root.
118
+ - Corrected the `/god-build` repository prerequisite auto-complete route from
119
+ `/god-roadmap` to `/god-repo`.
120
+ - Aligned `SKILL.md` frontmatter version with package version `2.0.2`.
121
+
122
+ ## [2.0.1] - 2026-05-22
123
+
124
+ Request-trace review guardrails.
125
+
126
+ ### Added
127
+ - Added request-trace discipline to `god-executor`: assumptions, public
128
+ behavior, expected files, and verification command must be explicit before
129
+ implementation.
130
+ - Added scope and request-trace review checks to `god-spec-reviewer` so
131
+ unplanned touched files, speculative flexibility, and unrelated churn block
132
+ review before quality review begins.
133
+ - Added a simplicity and surgicality dimension to `god-quality-reviewer` so
134
+ overcomplicated but technically correct code does not pass review.
135
+ - Added `request-trace-review` to runtime feature awareness for upgraded
136
+ projects.
137
+
138
+ ### Changed
139
+ - `/god-build` and `/god-review` docs now describe the narrow-diff guardrails
140
+ as part of existing workflows instead of introducing a new command.
141
+ - README, reference docs, roadmap, architecture, quality pillar, release notes,
142
+ package metadata, and lockfile now align to `2.0.1`.
143
+
144
+ ### Guardrails
145
+ - The public command surface stays frozen; the change strengthens existing
146
+ executor and reviewer contracts.
147
+ - Reviewers now reject speculative abstraction, unrelated cleanup, and diff
148
+ churn that cannot be traced to the user request, slice plan, failing test, or
149
+ implementation-caused cleanup.
150
+
10
151
  ## [2.0.0] - 2026-05-16
11
152
 
12
153
  Executable proof release.
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-2.0.0-blue)](CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/version-2.1.1-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.**
@@ -21,11 +21,24 @@ Godpowers makes AI coding accountable: every serious run should leave disk
21
21
  state, artifacts, validation gates, host guarantees, and a next action. Code is
22
22
  only one output. The project memory and proof trail matter too.
23
23
 
24
- Version 2.0.0 makes the proof loop executable. `npx godpowers quick-proof
24
+ Version 2.1.1 keeps the proof loop executable. `npx godpowers quick-proof
25
25
  --project=.` now renders a shipped fixture with real `.godpowers/state.json`,
26
26
  computed next action, missing-artifact visibility, and host guarantees. The
27
- release also ships a proof transcript, adoption canary harness, published npm
28
- install verifier, and package checks that require the proof fixture to ship.
27
+ 2.0 line also ships a proof transcript, adoption canary harness, published npm
28
+ install verifier, package checks that require the proof fixture to ship, and
29
+ request-trace review guardrails for narrower implementation diffs. The 2.0.2
30
+ release also hardens the dependency-free YAML subset, route file checks,
31
+ installer file copying, and maintainer release gates.
32
+
33
+ Maintainer hardening continues on the 2.x line without expanding the public
34
+ command surface. The 2.1.0 patch closes a command-injection vector in the
35
+ agent-browser driver, guards runtime file parsing against corrupt state,
36
+ makes data-directory installs a clean replace, and reconciles documentation
37
+ drift. The 2.0.3 patch range-checks workflow agent references,
38
+ derives command metadata from the individual files in `skills/`, delegates
39
+ installer runtime logic to `lib/`, moves the detailed God Mode runbook into
40
+ `references/`, and exposes async file APIs for incremental migration away from
41
+ synchronous-only internals.
29
42
 
30
43
  Strict release readiness remains fail-closed. Godpowers requires delegated
31
44
  release checks to cover root docs, docs, agents, skills, routing, workflows,
@@ -50,7 +63,8 @@ It fuses four disciplines into one unified workflow:
50
63
  - **Execution engine** - fresh-context agents in parallel waves with atomic
51
64
  commits. No context rot. No sequential bottlenecks.
52
65
  - **Quality immune system** - TDD enforcement, two-stage code review (spec
53
- compliance + code quality), verification before completion.
66
+ compliance + code quality), request-trace discipline, surgical diffs, and
67
+ verification before completion.
54
68
  - **Team intelligence** - scale-adaptive complexity, specialized agent personas
55
69
  (PM, Architect, Executor, Reviewer, Harden Auditor, etc.).
56
70
 
@@ -182,6 +196,26 @@ npx godpowers dogfood
182
196
  npx godpowers extension-scaffold --name=@godpowers/my-pack --output=.
183
197
  ```
184
198
 
199
+ ### Maintainer Validation
200
+
201
+ Godpowers keeps the public release gate behind one command:
202
+
203
+ ```bash
204
+ npm run release:check
205
+ ```
206
+
207
+ That command runs the maintained full-suite runner, audit checks, and package
208
+ contents verification. `npm test` delegates to `scripts/run-tests.js`, so the
209
+ test order is maintained as a readable list instead of a long package script.
210
+ `npm run lint` runs dependency-free static checks through
211
+ `scripts/static-check.js`, including shared test harness adoption, installer
212
+ decomposition, async runtime APIs, agent reference validation coverage, and God
213
+ Mode runbook delegation.
214
+
215
+ The runtime remains dependency-free. YAML parsing is intentionally limited to
216
+ the documented Godpowers subset used by intent, routing, workflow, and
217
+ extension files, with parser coverage in `scripts/test-yaml-parser.js`.
218
+
185
219
  ### Slash Commands
186
220
 
187
221
  | Command | What it does | Spawns agent |
@@ -249,6 +283,11 @@ going through build, verification, repair, launch, and final sync. Red tests,
249
283
  typecheck, lint, build, or check output enter the repair loop instead of being
250
284
  reported as the final result.
251
285
 
286
+ Build execution also keeps diffs narrow. Executors state assumptions, expected
287
+ files, changed public behavior, and verification before editing. Reviewers
288
+ block speculative flexibility, unrelated cleanup, and any touched file that
289
+ does not trace back to the request or slice plan.
290
+
252
291
  If `.godpowers` state already exists, `/god-mode --yolo` resumes from disk
253
292
  instead of asking for the project description again.
254
293
 
@@ -388,6 +427,7 @@ Every artifact passes these mechanical checks before it is treated as complete:
388
427
  | Artifact-on-disk | Phantom resume (agent claims done, file does not exist) |
389
428
  | Critical-finding gate | Shipping with known security holes |
390
429
  | TDD enforcement | Code without tests |
430
+ | Request-trace review | Scope creep, unrelated cleanup, speculative abstraction |
391
431
  | Two-stage review | Code that passes tests but violates spec or quality |
392
432
 
393
433
  These checks are guardrails, not proof that the product is right. A PRD can
package/RELEASE.md CHANGED
@@ -1,12 +1,11 @@
1
- # Godpowers 2.0.0 Release
1
+ # Godpowers 2.1.1 Release
2
2
 
3
- Date: 2026-05-16
3
+ Date: 2026-05-30
4
4
 
5
- Godpowers 2.0.0 is the executable proof release. It turns the first-user trust
6
- loop from documentation into a packaged command: `npx godpowers quick-proof
7
- --project=.`. The command renders a shipped fixture with real
8
- `.godpowers/state.json`, computed next action, missing-artifact visibility, and
9
- host guarantees from the caller's environment.
5
+ Godpowers 2.1.1 is a documentation and off-switch safety patch on top of the
6
+ 2.1.0 security release. The public slash-command surface, runtime behavior, and
7
+ artifact layout are unchanged except for one safety improvement to the context
8
+ off-switch.
10
9
 
11
10
  ## What is stable
12
11
 
@@ -16,62 +15,45 @@ host guarantees from the caller's environment.
16
15
  - 40 intent recipes
17
16
  - 15-runtime installer
18
17
  - Codex installs with generated `god-*.toml` agent metadata files
19
- - Markdown specialist agent contracts at `<runtime>/agents/god-*.md`
20
18
  - Shared runtime bundle at `<runtime>/godpowers-runtime`
21
19
  - Native Pillars project context through `AGENTS.md` and `agents/*.md`
22
20
  - `.godpowers/` workflow state and artifact layout
23
- - Dashboard action briefs for next-step compression
24
- - Dashboard host guarantees for full, degraded, and unknown runtime capability
25
- - `godpowers status --project .` and `godpowers next --project .`
26
- - `godpowers quick-proof --project .`
27
- - Planning-system migration for GSD, BMAD, and Superpowers
28
- - Repository documentation sync checks
29
- - Repository surface sync checks
30
- - Route quality, recipe coverage, and release surface sync checks
31
- - Messy-repo dogfood scenarios
32
- - Extension authoring scaffold helper
33
- - Mode D suite release dry-run planner
21
+ - `godpowers status --project .`, `godpowers next --project .`, and
22
+ `godpowers quick-proof --project .`
34
23
  - Release gate enforcement through `npm run release:check`
24
+ - The 2.1.0 security hardening (argv-only browser exec, corrupt-file parse
25
+ guards, clean-replace installs, prototype-pollution guards)
35
26
 
36
27
  ## What is new
37
28
 
38
- - Added `lib/quick-proof.js` and the packaged `fixtures/quick-proof/` project.
39
- - Added the `quick-proof` CLI command as the first executable proof path.
40
- - Added `docs/quick-proof.md` to make the first 10 minutes concrete.
41
- - Added `docs/proof-transcript.md` with captured command output.
42
- - Added `docs/adoption-canary.md` with pass/fail criteria and feedback routing.
43
- - Added `scripts/run-adoption-canary.js` to clone an external repo and capture
44
- quick proof, dashboard status, and next-route output.
45
- - Added `scripts/verify-published-install.js` to verify the npm registry
46
- artifact after publish.
47
- - Updated README, getting started, reference, release checklist, and Pillars
48
- context so executable proof is part of the product surface.
29
+ - The context off-switch now empties the canonical `AGENTS.md` instead of
30
+ deleting it; auto-generated pointer files (`CLAUDE.md`, `.cursorrules`, etc.)
31
+ are still removed when only the Godpowers fence remains.
32
+ - Documentation reconciliation: removed unverifiable external impeccable
33
+ rule/finding counts; aligned the project-mode taxonomy with the runtime
34
+ (A/B/C/E primary modes, with D as the orthogonal multi-repo suite overlay);
35
+ documented every `lib/` module; and clarified how the artifact-category counts
36
+ relate.
49
37
 
50
38
  ## Guardrails
51
39
 
52
- - Quick proof is read-only and deterministic.
53
- - Quick proof reports the user's current host guarantees separately from the
54
- shipped fixture state.
55
- - Package contents checks require the quick-proof module and fixture state.
56
- - Published install verification checks quick proof, status, next, Claude
57
- install, and Codex metadata install against the registry artifact.
58
- - The adoption canary harness captures CLI-verifiable signals only. Host slash
59
- commands such as `/god-preflight`, `/god-audit`, and `/god-reconstruct` still
60
- require an AI coding host.
40
+ - The public slash-command surface remains frozen.
41
+ - The runtime remains dependency-free.
42
+ - `bin/install.js` stays a thin CLI entry point and delegates install behavior
43
+ to `lib/installer-core.js`.
61
44
 
62
45
  ## Validation
63
46
 
64
47
  Release validation includes:
65
48
 
66
- - `npm run test:quick-proof`
67
- - `node scripts/run-adoption-canary.js <repo> --output=<report>`
49
+ - `npm test`
50
+ - `npm run test:audit`
51
+ - `npm run pack:check`
68
52
  - `npm run release:check`
69
53
  - `npm pack --json`
70
- - local uninstall of previous runtime installs
71
- - local reinstall from the generated tarball
72
- - npm publish with provenance when available
73
- - `node scripts/verify-published-install.js godpowers@latest`
74
- - GitHub release creation for `v2.0.0`
54
+ - local install smoke tests across supported runtime shapes
55
+ - npm publish when registry credentials are available
56
+ - GitHub release creation for `v2.1.1`
75
57
 
76
- The `v2.0.0` tag should point to the release commit that matches the npm
77
- `godpowers@2.0.0` package.
58
+ The `v2.1.1` tag should point to the release commit that matches the npm
59
+ `godpowers@2.1.1` package.
package/SKILL.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: godpowers
3
- version: 0.1.0
3
+ version: 2.1.1
4
4
  description: |
5
5
  AI-powered development system that takes a project from raw idea to hardened
6
6
  production. Fuses artifact discipline, execution engine, quality enforcement,
@@ -21,6 +21,14 @@ hardened production. You enforce mechanical quality at every step. You never
21
21
  produce AI-slop. You never skip a gate. You never claim done without an artifact
22
22
  on disk.
23
23
 
24
+ ## Command Source Of Truth
25
+
26
+ Individual command files in `skills/` are the source of truth for slash-command
27
+ metadata and command behavior. `SKILL.md` carries the global operating contract
28
+ only. When a command name, trigger, or description is needed programmatically,
29
+ read it through `lib/skill-surface.js` instead of duplicating a hand-maintained
30
+ command table here.
31
+
24
32
  ## Core Principles
25
33
 
26
34
  ### 1. The Three-Label Rule
@@ -4,10 +4,10 @@ description: |
4
4
  Two-stage review gate for DESIGN.md and PRODUCT.md changes. Mirrors
5
5
  the existing god-spec-reviewer + god-quality-reviewer pattern from
6
6
  code review, combined into one agent because design intent and design
7
- quality are tightly coupled. Spawned by god-design-updater BEFORE
7
+ quality are tightly coupled. Spawned by /god-design BEFORE
8
8
  impact analysis runs.
9
9
 
10
- Spawned by: god-design-updater, god-orchestrator (mid-arc DESIGN/PRODUCT changes)
10
+ Spawned by: /god-design, god-orchestrator (mid-arc DESIGN/PRODUCT changes)
11
11
  tools: Read, Bash, Grep, Glob
12
12
  ---
13
13
 
@@ -112,10 +112,10 @@ Emit event:
112
112
 
113
113
  ## Handoff
114
114
 
115
- - **PASS**: return verdict to god-design-updater; impact analysis can run
115
+ - **PASS**: return verdict to god-designer; impact analysis can run
116
116
  - **WARN**: return verdict + warnings; impact analysis runs; warnings
117
117
  flow to REVIEW-REQUIRED.md alongside affected files
118
- - **BLOCK**: return verdict + REJECTED.md path; god-design-updater aborts
118
+ - **BLOCK**: return verdict + REJECTED.md path; god-designer aborts
119
119
  propagation; god-orchestrator pauses (default + --yolo) per the
120
120
  critical-finding gate
121
121
 
@@ -131,7 +131,7 @@ You fail (and the BLOCK becomes a critical-finding gate trigger) if:
131
131
 
132
132
  ## What you do NOT do
133
133
 
134
- - Apply the change yourself (god-design-updater applies after PASS/WARN)
135
- - Compute downstream impact (god-impact-analyzer runs after PASS/WARN)
134
+ - Apply the change yourself (god-designer applies after PASS/WARN)
135
+ - Compute downstream impact (/god-design-impact runs after PASS/WARN)
136
136
  - Touch PRODUCT.md (god-designer owns it)
137
137
  - Run reverse-sync (god-updater)
@@ -176,5 +176,5 @@ implementing files.
176
176
 
177
177
  - Reimplement impeccable's typography / color / motion design intelligence
178
178
  - Run reverse-sync (that's god-updater)
179
- - Compute change impact (that's god-impact-analyzer)
179
+ - Compute change impact (that's /god-design-impact)
180
180
  - Review your own changes (that's god-design-reviewer)
@@ -51,6 +51,24 @@ For every behavior in this slice:
51
51
  - **"I'll add tests after"**: VIOLATION. Stop. Write the test now.
52
52
  - **Skipping refactor**: allowed only if the GREEN code is already clean.
53
53
  - **Multiple slices in one commit**: VIOLATION. One slice = one commit.
54
+ - **Speculative flexibility**: VIOLATION. Do not add configuration,
55
+ extension points, generalized helpers, or future-proof branches unless the
56
+ slice plan requires them.
57
+ - **Unrelated cleanup**: VIOLATION. Do not reformat, rename, refactor, or
58
+ delete adjacent code that is not required for this slice. Mention it as a
59
+ follow-up instead.
60
+
61
+ ## Request Trace Discipline
62
+
63
+ Before editing, convert the slice into a short execution contract:
64
+ - Assumptions you are making
65
+ - The public behavior that will change
66
+ - The smallest files you expect to touch
67
+ - The verification command that proves success
68
+
69
+ Every changed line must trace back to that contract, the failing test, or a
70
+ cleanup created by your own change. If you cannot explain the trace, revert
71
+ that line before returning control to the orchestrator.
54
72
 
55
73
  ## After All Behaviors Complete
56
74
 
@@ -63,6 +81,7 @@ For every behavior in this slice:
63
81
  - Test results
64
82
  - Typecheck/check results
65
83
  - Files changed
84
+ - Any unrelated improvement you noticed but intentionally left untouched
66
85
  - Ready for two-stage review
67
86
 
68
87
  DO NOT commit yet. The orchestrator will spawn god-spec-reviewer and
@@ -79,6 +98,10 @@ happen.
79
98
  - Test suite failing (any test, not just yours)
80
99
  - Typecheck/check command failing
81
100
  - Stub/placeholder code in the implementation
101
+ - Speculative abstraction, unused configurability, or generalized plumbing not
102
+ demanded by the slice
103
+ - Drive-by formatting, renaming, refactoring, or dead-code deletion unrelated
104
+ to the slice
82
105
 
83
106
  ## Repair Mode
84
107
 
@@ -47,6 +47,16 @@ Your job: would you ship this code in production?
47
47
  - No premature abstraction either
48
48
  - Comments explain WHY, not WHAT (the code shows what)
49
49
 
50
+ ### 6. Simplicity and Surgicality
51
+ - The solution is the minimum code that satisfies the verified behavior
52
+ - No single-use abstraction replaces clearer direct code
53
+ - No options, settings, adapters, or extension points exist for hypothetical
54
+ future needs
55
+ - No adjacent cleanup, formatting churn, renames, or dead-code deletion appears
56
+ unless it was required by the request
57
+ - Any follow-up cleanup is reported separately instead of being smuggled into
58
+ the diff
59
+
50
60
  ## Output
51
61
 
52
62
  Return verdict to orchestrator:
@@ -60,6 +70,7 @@ Return verdict to orchestrator:
60
70
  - [PASS/FAIL] Error handling: [evidence]
61
71
  - [PASS/FAIL] Performance: [evidence]
62
72
  - [PASS/FAIL] Maintainability: [evidence]
73
+ - [PASS/FAIL] Simplicity and surgicality: [evidence]
63
74
 
64
75
  ### Verdict: PASS / FAIL
65
76
 
@@ -68,7 +79,7 @@ Return verdict to orchestrator:
68
79
 
69
80
  ## Pass Criteria
70
81
 
71
- ALL five dimensions must PASS. Any FAIL blocks the commit.
82
+ ALL six dimensions must PASS. Any FAIL blocks the commit.
72
83
 
73
84
  If FAIL: orchestrator returns the slice to god-executor.
74
85
  If PASS: orchestrator commits the slice atomically.
@@ -42,6 +42,14 @@ Answer each with EVIDENCE from the code:
42
42
  - Anything in the code that wasn't in the plan?
43
43
  - If yes: was it necessary, or is it scope creep?
44
44
 
45
+ 5. **Can every changed line trace to the request?**
46
+ - Does each file touched map to a plan item, acceptance criterion, failing
47
+ test, or cleanup caused by the implementation?
48
+ - Were unrelated comments, formatting, names, or neighboring abstractions
49
+ changed without a plan-backed reason?
50
+ - Did the executor add future options, broad configurability, or generic
51
+ interfaces that the current slice does not need?
52
+
45
53
  ## Output
46
54
 
47
55
  Return verdict to orchestrator:
@@ -65,6 +73,8 @@ Return verdict to orchestrator:
65
73
  - Every acceptance criterion has a corresponding test
66
74
  - All edge cases from the plan are covered
67
75
  - No scope creep without justification
76
+ - Every touched file has request-trace evidence
77
+ - No speculative flexibility or unrelated cleanup entered the diff
68
78
 
69
79
  If FAIL: orchestrator returns the slice to god-executor with the failures.
70
80
  If PASS: orchestrator spawns god-quality-reviewer next.