godpowers 1.6.22 → 1.6.24

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 (51) hide show
  1. package/AGENTS.md +6 -0
  2. package/CHANGELOG.md +74 -0
  3. package/INSPIRATION.md +6 -0
  4. package/README.md +7 -5
  5. package/RELEASE.md +44 -71
  6. package/SKILL.md +24 -4
  7. package/agents/god-orchestrator.md +18 -3
  8. package/agents/god-reconciler.md +52 -5
  9. package/agents/god-updater.md +84 -2
  10. package/hooks/pre-tool-use.sh +13 -1
  11. package/hooks/session-start.sh +12 -0
  12. package/lib/automation-providers.js +32 -0
  13. package/lib/events.js +6 -0
  14. package/lib/feature-awareness.js +12 -0
  15. package/lib/have-nots-validator.js +2 -2
  16. package/lib/workflow-runner.js +4 -0
  17. package/package.json +2 -2
  18. package/references/HAVE-NOTS.md +16 -0
  19. package/references/orchestration/MODE-DETECTION.md +36 -3
  20. package/references/orchestration/README.md +5 -2
  21. package/references/planning/ROADMAP-ANTIPATTERNS.md +1 -1
  22. package/references/shared/ORCHESTRATORS.md +42 -11
  23. package/references/shared/README.md +4 -4
  24. package/routing/recipes/release-maintenance.yaml +2 -0
  25. package/schema/events.v1.json +9 -0
  26. package/schema/intent.v1.yaml.json +5 -1
  27. package/schema/recipe.v1.json +2 -1
  28. package/schema/routing.v1.json +20 -0
  29. package/schema/state.v1.json +51 -0
  30. package/schema/workflow.v1.json +31 -2
  31. package/skills/god-automation-setup.md +5 -0
  32. package/skills/god-mode.md +4 -1
  33. package/skills/god-reconcile.md +13 -4
  34. package/skills/god-version.md +1 -1
  35. package/templates/DOCS-UPDATE-LOG.md +14 -0
  36. package/templates/IMPORTED-CONTEXT.md +2 -0
  37. package/templates/INITIAL-FINDINGS.md +5 -0
  38. package/templates/PROGRESS.md +8 -0
  39. package/workflows/audit-only.yaml +12 -0
  40. package/workflows/bluefield-arc.yaml +16 -1
  41. package/workflows/brownfield-arc.yaml +17 -1
  42. package/workflows/deps-audit.yaml +13 -0
  43. package/workflows/docs-arc.yaml +23 -0
  44. package/workflows/feature-arc.yaml +14 -0
  45. package/workflows/full-arc.yaml +19 -0
  46. package/workflows/hotfix-arc.yaml +14 -0
  47. package/workflows/hygiene.yaml +6 -0
  48. package/workflows/migration-arc.yaml +15 -0
  49. package/workflows/postmortem.yaml +13 -0
  50. package/workflows/refactor-arc.yaml +14 -0
  51. package/workflows/spike.yaml +11 -0
package/AGENTS.md CHANGED
@@ -15,10 +15,14 @@ projects from raw idea to hardened production.
15
15
 
16
16
  - `SKILL.md` is the main entry point, loaded by AI coding tools
17
17
  - `skills/` contains individual command skills (one per file)
18
+ - `routing/` contains command routing metadata and intent recipes
19
+ - `workflows/` contains executable workflow YAML
18
20
  - `references/` contains per-tier reference material (antipatterns, examples)
19
21
  - `bin/` contains the CLI installer and `god` command
22
+ - `lib/` contains executable runtime helpers, sync checks, dogfood, dashboard, and release logic
20
23
  - `scripts/` contains validation and testing scripts
21
24
  - `templates/` contains artifact templates
25
+ - `fixtures/dogfood/` contains messy-repo release dogfood scenarios
22
26
 
23
27
  ## Conventions
24
28
 
@@ -27,6 +31,8 @@ projects from raw idea to hardened production.
27
31
  - Every tier skill documents its have-nots (failure modes)
28
32
  - Artifacts are written to `.godpowers/<tier>/` paths
29
33
  - State is tracked in `.godpowers/PROGRESS.md`
34
+ - Dashboard state is computed by `lib/dashboard.js`
35
+ - Repo docs, repo surface, route quality, recipe coverage, release surface, host capability, and dogfood checks are executable release gates
30
36
  - Disk state is authoritative; conversation memory is not
31
37
 
32
38
  ## Quality Rules
package/CHANGELOG.md CHANGED
@@ -7,6 +7,80 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.6.24] - 2026-05-16
11
+
12
+ Strict background release readiness.
13
+
14
+ ### Added
15
+ - Added the `strict-release-readiness` automation template so delegated or
16
+ scheduled release checks fail closed when any required release surface is
17
+ unchecked, stale, missing, untested, or inconsistent with the intended
18
+ version.
19
+ - Added a required release-surface manifest for root docs, docs, agents,
20
+ skills, routing, workflows, schema, templates, references, hooks, lib,
21
+ scripts, tests, fixtures, GitHub workflows, package metadata, npm latest,
22
+ git tag state, GitHub release state, CI, publish workflow, and local install
23
+ state.
24
+
25
+ ### Changed
26
+ - `/god-automation-setup` now recommends `strict-release-readiness` for
27
+ background release checks and keeps the narrower `release-readiness`
28
+ template reserved for quick manual checks.
29
+ - The release maintenance recipe now routes background-release setup through
30
+ `/god-automation-setup` with an explicit no-publish guardrail.
31
+ - Auto-invoke visibility docs now classify strict release readiness as a
32
+ read-only, fail-closed Level 2 automation candidate.
33
+ - The release checklist now names every folder and published surface that must
34
+ be checked before packaging, tagging, pushing, releasing, or publishing.
35
+
36
+ ### Guardrails
37
+ - Added behavioral coverage that verifies the strict release readiness
38
+ template exists, is fail-closed, refuses file mutation, and names every
39
+ required release surface.
40
+ - The strict readiness template may report blockers and exact next commands,
41
+ but it must not modify files, stage, commit, tag, push, create a GitHub
42
+ release, publish to npm, delete files, clear caches, or change installs.
43
+
44
+ ## [1.6.23] - 2026-05-16
45
+
46
+ Full repository audit, release gate hardening, and documentation repair.
47
+
48
+ ### Added
49
+ - Added `.planning/2026-05-16-surface-sync-status.md` to record the current
50
+ `.github/workflows`, `.planning`, and `agents` sync status without rewriting
51
+ historical planning evidence.
52
+ - Expanded `god-reconciler` and `god-updater` contracts so repo docs, repo
53
+ surface, runtime feature awareness, source-system sync-back, host capability,
54
+ and dashboard refresh are checked and reported as part of the same loop.
55
+ - Documented the audited source scan across root docs, `.github`, `.godpowers`,
56
+ `.planning`, agents, docs, examples, extensions, fixtures, hooks, lib,
57
+ references, routing, schema, scripts, skills, templates, tests, and workflows.
58
+
59
+ ### Changed
60
+ - Release workflows now run `npm run release:check` before publishing the root
61
+ package or first-party extension packs.
62
+ - `prepublishOnly` now runs the full release gate instead of only `npm test`.
63
+ - `/god-reconcile`, `/god-mode`, the orchestrator, agent specs, and roadmap
64
+ now describe the expanded local sync surfaces consistently.
65
+ - Version, badge, roadmap, architecture, user-support, and reference surfaces
66
+ now align to 1.6.23.
67
+
68
+ ### Fixed
69
+ - Repaired stale 1.6.19 and 1.6.22 current-version claims in runtime docs.
70
+ - Removed literal forbidden dash and emoji characters from primary source
71
+ files while preserving validator coverage through Unicode escape sequences.
72
+ - Repaired release documentation drift around package contents, route quality,
73
+ recipe coverage, release-surface checks, dogfood, host guarantees, extension
74
+ authoring, and Mode D suite release dry-runs.
75
+
76
+ ### Guardrails
77
+ - Primary source scan now covers 639 tracked plus untracked source files and
78
+ verifies zero forbidden dash characters, zero emoji characters, zero invalid
79
+ JSON files, zero CRLF files, zero missing final newlines, and zero zero-byte
80
+ files.
81
+ - `npm run release:check` remains the one-command release gate before commit,
82
+ tag, npm publish, and GitHub release creation.
83
+
10
84
  ## [1.6.22] - 2026-05-16
11
85
 
12
86
  Dogfooding, host guarantees, extension authoring, and suite release dry-runs.
package/INSPIRATION.md CHANGED
@@ -33,6 +33,12 @@ Beyond what was inherited, godpowers added:
33
33
  for the case where Impeccable is not installed
34
34
  - **AI-tool context writer** that maintains fenced sections in
35
35
  AGENTS.md / CLAUDE.md / GEMINI.md and 11 other tool-specific paths
36
+ - **Feature awareness and host guarantee reporting** so existing projects and
37
+ AI coding hosts can state what Godpowers capabilities are actually available
38
+ - **Messy-repo dogfood fixtures** for GSD migration, sync-back, extension
39
+ authoring, host capability, and Mode D suite release dry-run behavior
40
+ - **Autonomous repo documentation and surface sync** for badges, route
41
+ metadata, recipes, package payloads, release gates, and extension packs
36
42
 
37
43
  ## Why this is the only mention
38
44
 
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.22-blue)](CHANGELOG.md)
5
+ [![Version](https://img.shields.io/badge/version-1.6.24-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,12 @@ 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.22 turns the last "needs more outside use" gaps into executable
16
- surface area. Godpowers now ships a messy-repo dogfood runner, dashboard host
17
- guarantee reporting, compact dashboard output, extension scaffolding, and
18
- Mode D suite release dry-run planning.
15
+ Version 1.6.24 makes background release readiness strict and fail-closed.
16
+ Godpowers now requires delegated release checks to cover root docs, docs,
17
+ agents, skills, routing, workflows, schema, templates, references, hooks, lib,
18
+ scripts, tests, fixtures, GitHub workflows, package metadata, npm, GitHub
19
+ release, CI, publish workflow, and local install state before a human-approved
20
+ release executor can run.
19
21
 
20
22
  The dashboard now starts with an action brief and a host guarantee line: the
21
23
  next command, why it is recommended, whether the project is ready, the first
package/RELEASE.md CHANGED
@@ -1,11 +1,12 @@
1
- # Godpowers 1.6.22 Release
1
+ # Godpowers 1.6.24 Release
2
2
 
3
3
  Date: 2026-05-16
4
4
 
5
- Godpowers 1.6.22 turns the remaining "needs more real use" risks into
6
- executable surfaces. It adds deterministic messy-repo dogfooding, dashboard
7
- host guarantees, compact status output, extension authoring scaffolds, and
8
- Mode D suite release dry-run planning.
5
+ Godpowers 1.6.24 turns release readiness automation into a strict,
6
+ fail-closed background check. It packages the lesson from the 1.6.23 release:
7
+ release readiness cannot be inferred from README, package metadata, and
8
+ changelog alone. Every owned repo surface must be checked or the release is
9
+ blocked.
9
10
 
10
11
  ## What is stable
11
12
 
@@ -34,79 +35,51 @@ Mode D suite release dry-run planning.
34
35
  - Messy-repo dogfood scenarios
35
36
  - Extension authoring scaffold helper
36
37
  - Mode D suite release dry-run planner
38
+ - Release gate enforcement through `npm run release:check`
37
39
 
38
40
  ## What is new
39
41
 
40
- - Added `lib/dogfood-runner.js`, `/god-dogfood`, and CLI `dogfood`.
41
- - Added dogfood fixtures for half-migrated GSD import and sync-back, full and
42
- degraded host guarantees, extension scaffold validation, and suite release
43
- dry-run planning.
44
- - Added `lib/host-capabilities.js` and dashboard host guarantee reporting.
45
- - Added compact dashboard output through `--brief`.
46
- - Added `lib/extension-authoring.js` and CLI `extension-scaffold`.
47
- - Added `suiteState.planRelease` for Mode D dependent impact planning before
48
- mutation.
49
-
50
- ## Automation surface behavior
51
-
52
- For a Godpowers repository, the helper checks:
53
-
54
- - every routed specialist spawn resolves to a real agent or built-in runtime
55
- owner
56
- - every agent-spawning route declares `agent.start` and `agent.end`
57
- - every durable-writing route declares standards coverage or an approved
58
- exemption
59
- - high-frequency work has discoverable intent recipes
60
- - release-facing version surfaces agree with `package.json`
61
- - package content checks require load-bearing runtime helper files
62
- - release checklist policy names the current sync guards
63
- - release gates include dogfood, extension publish, Mode D suite, and installer
64
- smoke checks
65
- - dogfood fixtures cover migration, host guarantees, extension authoring, and
66
- suite release dry-runs
67
- - host guarantees are visible in dashboard and compact dashboard output
68
-
69
- Detection is read-only by default. Applying sync writes logs and leaves
70
- judgment-heavy rewrites to scoped specialists.
71
-
72
- ## Auto-invoke and auto-spawn policy
73
-
74
- Safe repo surface sync is local runtime work and must be reported as:
75
-
76
- ```text
77
- Agent: none, local runtime only
78
- ```
79
-
80
- Godpowers recommends scoped specialists only when judgment is needed:
81
-
82
- - `god-auditor` for agent contract or handoff drift
83
- - `god-roadmap-reconciler` for workflow or recipe lifecycle drift
84
- - `god-coordinator` for extension pack drift
85
- - `god-docs-writer` for release prose drift
86
- - `god-greenfieldifier` for dogfood migration failures
87
- - `god-context-writer` for host capability failures
42
+ - Added `strict-release-readiness` to the safe automation templates.
43
+ - Added a strict release-surface manifest that covers root docs, docs, agents,
44
+ skills, routing, workflows, schema, templates, references, hooks, lib,
45
+ scripts, tests, fixtures, GitHub workflows, package metadata, npm latest, git
46
+ tag state, GitHub release state, CI status, publish workflow status, and
47
+ local install state.
48
+ - Updated `/god-automation-setup` so background release checks use the strict
49
+ template by default.
50
+ - Updated the release maintenance recipe so background release setup goes
51
+ through `/god-automation-setup` and keeps publishing behind explicit human
52
+ approval.
53
+ - Updated auto-invoke visibility docs so strict release readiness is a Level 2
54
+ read-only local automation candidate.
55
+
56
+ ## Guardrails
57
+
58
+ - Strict release readiness fails closed when any required surface is unchecked,
59
+ stale, missing, untested, or inconsistent with the intended version.
60
+ - Strict release readiness reports blockers and exact next commands only.
61
+ - Strict release readiness must not modify files, stage, commit, tag, push,
62
+ create a GitHub release, publish to npm, delete files, clear caches, or
63
+ change runtime installs.
64
+ - Behavioral tests verify that the strict template is fail-closed, read-only,
65
+ and names every required release surface.
88
66
 
89
67
  ## Validation
90
68
 
91
69
  Release validation includes:
92
70
 
93
- - `node scripts/test-dogfood-runner.js`
94
- - `node scripts/test-host-capabilities.js`
95
- - `node scripts/test-extension-authoring.js`
96
- - `node scripts/test-repo-surface-sync.js`
71
+ - `node scripts/test-automation-providers.js`
97
72
  - `node scripts/test-automation-surface-sync.js`
98
- - `node scripts/test-repo-doc-sync.js`
99
- - `node scripts/test-feature-awareness.js`
100
- - `node scripts/test-dashboard.js`
101
- - `node scripts/test-mode-d.js`
102
- - `node scripts/test-extensions-publish.js`
103
- - `node scripts/test-install-smoke.js`
104
- - `node scripts/test-context-writer.js`
105
- - `node scripts/test-planning-systems.js`
106
- - `node scripts/test-doc-surface-counts.js`
107
- - `node scripts/validate-skills.js`
108
- - `git diff --check`
73
+ - `node scripts/test-recipes.js`
74
+ - source scan for forbidden dash characters in edited files
109
75
  - `npm run release:check`
110
-
111
- The `v1.6.22` tag should point to the release commit that matches the npm
112
- `godpowers@1.6.22` package.
76
+ - `npm pack --json`
77
+ - npm cache clear before local install
78
+ - local uninstall and reinstall from the generated tarball
79
+ - tag-triggered npm publish workflow with provenance
80
+ - npm registry verification after publish
81
+ - local uninstall and reinstall from `godpowers@1.6.24`
82
+ - all-runtime `godpowers --all` refresh after published install
83
+
84
+ The `v1.6.24` tag should point to the release commit that matches the npm
85
+ `godpowers@1.6.24` package.
package/SKILL.md CHANGED
@@ -120,9 +120,9 @@ When the runtime bundle is available, compute this with
120
120
  `lib/dashboard.compute(projectRoot)` and render it with
121
121
  `lib/dashboard.render(result)`. The executable dashboard engine is the shared
122
122
  source for phase, tier, step, progress, PRD and roadmap visibility, proactive
123
- checks, open items, and the next route. If the runtime module is unavailable,
124
- fall back to a manual disk scan and say `Dashboard engine: unavailable, manual
125
- scan used`.
123
+ checks, host guarantees, open items, and the next route. If the runtime module
124
+ is unavailable, fall back to a manual disk scan and say `Dashboard engine:
125
+ unavailable, manual scan used`.
126
126
 
127
127
  Use this shape:
128
128
 
@@ -137,6 +137,13 @@ Current status:
137
137
  Worktree: <clean | modified files unstaged | staged changes | mixed>
138
138
  Index: <untouched | staged files listed>
139
139
 
140
+ Action brief:
141
+ Next: <recommended command or user decision>
142
+ Why: <route reason tied to disk state>
143
+ Readiness: <ready | needs attention>
144
+ Attention: <top blockers or none>
145
+ Host guarantees: <full | degraded | unknown with host and first gap>
146
+
140
147
  Planning visibility:
141
148
  PRD: <done | pending | missing | deferred> <artifact path when present>
142
149
  Roadmap: <done | pending | missing | deferred> <artifact path when present>
@@ -156,6 +163,7 @@ Proactive checks:
156
163
  Sync: <fresh | missing | stale | local helper ran | suggest /god-sync>
157
164
  Docs: <fresh | N stale, suggest /god-docs | repo-doc-sync ran>
158
165
  Repo surface: <fresh | N stale, suggest /god-doctor | repo-surface-sync ran>
166
+ Host: <full | degraded | unknown with host and first gap>
159
167
  Runtime: <not-applicable | known URL, suggest /god-test-runtime | no known URL, defer deployed verification>
160
168
  Automation: <not configured | N active | available via provider, suggest /god-automation-setup>
161
169
  Security: <clear | sensitive files changed, suggest /god-harden>
@@ -215,7 +223,7 @@ Auto-invoked:
215
223
  Trigger: <what caused this automatic step>
216
224
  Agent: <god-updater | god-context-writer | none, local runtime only>
217
225
  Local syncs:
218
- + <feature-awareness | planning-system-import | reverse-sync | source-sync | repo-doc-sync | repo-surface-sync | route-quality-sync | recipe-coverage-sync | release-surface-sync | pillars-sync | checkpoint-sync | context-refresh>: <result or skipped reason>
226
+ + <feature-awareness | planning-system-import | reverse-sync | source-sync | repo-doc-sync | repo-surface-sync | route-quality-sync | recipe-coverage-sync | release-surface-sync | host-capabilities | dogfood-runner | pillars-sync | checkpoint-sync | context-refresh>: <result or skipped reason>
219
227
  Artifacts: <changed files, no-op, or deferred>
220
228
  Log: <SYNC-LOG.md, CHECKPOINT.md, REVIEW-REQUIRED.md, or none>
221
229
  ```
@@ -250,6 +258,10 @@ Automatic steps that especially need visible reporting:
250
258
  - route-quality sync, recipe-coverage sync, and release-surface sync through
251
259
  repo-surface sync during `/god-sync`, `/god-docs`, `/god-doctor`,
252
260
  `/god-status`, or `/god-mode`
261
+ - host capability detection during `/god-status`, `/god-next`, and closeout
262
+ dashboards
263
+ - dogfood runner execution during `/god-dogfood`, release checks, or explicit
264
+ dogfood requests
253
265
 
254
266
  ### 13. Proactive Auto-Invoke Policy
255
267
  Godpowers should be proactive from disk evidence, not from guesswork. Before
@@ -297,6 +309,10 @@ Run these local runtime helpers automatically when their trigger is present:
297
309
  - `lib/route-quality-sync.detect`, `lib/recipe-coverage-sync.detect`, and
298
310
  `lib/release-surface-sync.detect` through repo-surface sync when route
299
311
  spawns, high-frequency recipes, or release-facing surfaces may have drifted.
312
+ - `lib/host-capabilities.detect` during dashboard computation so runtime
313
+ guarantees are visible before Godpowers claims autonomy.
314
+ - `lib/dogfood-runner.runAll` during explicit `/god-dogfood`, release checks,
315
+ or user-requested dogfood verification.
300
316
  - Context refresh dry-run after `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`,
301
317
  `.cursor/rules/`, `.windsurfrules`, `.github/copilot-instructions.md`,
302
318
  `.clinerules`, `.roo/`, or `.continue/` changes.
@@ -332,6 +348,10 @@ Spawn these agents only when the trigger is direct and scope is bounded:
332
348
  artifacts after local import.
333
349
  - `god-greenfieldifier` when feature-awareness detects unimported or imported
334
350
  source-system context that is low confidence or conflicting.
351
+ - `god-greenfieldifier` when dogfood migration scenarios fail.
352
+ - `god-context-writer` when host capability dogfood scenarios fail.
353
+ - `god-coordinator` when extension authoring or suite release dogfood
354
+ scenarios fail.
335
355
 
336
356
  #### Level 4: Explicit approval required
337
357
  Never auto-run these from inference alone:
@@ -643,10 +643,13 @@ ecosystem.
643
643
  Before declaring the project run complete, ALWAYS run /god-sync:
644
644
 
645
645
  1. Spawn god-updater in fresh context
646
- 2. Verify final consistency across all 14 artifact categories:
646
+ 2. Verify final consistency across all 14 core artifact categories and local
647
+ sync surfaces:
647
648
  - All Tier 1-3 artifacts written and pass have-nots
648
649
  - Capture artifacts (BACKLOG, SEEDS, TODOS, THREADS) noted as
649
650
  "not-yet-created" if absent (graceful, not a failure)
651
+ - Repo docs, repo surface, feature awareness, source sync-back, host
652
+ capability, checkpoint, Pillars, and context refresh statuses reported
650
653
  3. Update SYNC-LOG.md with the project-run completion entry
651
654
  4. Update state.json with all final tier statuses
652
655
 
@@ -685,19 +688,28 @@ Godpowers project run complete.
685
688
 
686
689
  Godpowers Dashboard
687
690
 
691
+ Source: runtime dashboard (lib/dashboard.js)
692
+
688
693
  Current status:
689
694
  State: complete
690
695
  Phase: <plain-language phase> (tier <human ordinal> of <human total>)
691
696
  Step: <sub-step label> (step <n> of <total steps>)
692
- Progress: <pct>% (<done> of <total> steps complete)
697
+ Progress: <pct>% workflow progress (<done> of <total> tracked steps complete)
693
698
  Worktree: <clean | modified files unstaged | staged changes | mixed>
694
699
  Index: <untouched | staged files listed>
695
700
 
701
+ Action brief:
702
+ Next: <one command or user decision>
703
+ Why: <one sentence tied to disk state>
704
+ Readiness: <ready | needs attention>
705
+ Attention: <none or top blockers>
706
+ Host guarantees: <full | degraded | unknown>
707
+
696
708
  Planning visibility:
697
709
  PRD: <done | pending | missing | deferred> <artifact path when present>
698
710
  Roadmap: <done | pending | missing | deferred> <artifact path when present>
699
711
  Current milestone: <roadmap milestone, tier, or next planning gate when known>
700
- Completion: <pct>% <brief basis, for example done steps over total tracked steps>
712
+ Completion basis: <state.json, PROGRESS.md, artifacts, or audit score source>
701
713
 
702
714
  What changed:
703
715
  1. <highest-signal user-visible change>
@@ -711,6 +723,9 @@ Proactive checks:
711
723
  Reviews: <none | N pending, suggest /god-review-changes>
712
724
  Sync: <fresh | suggested | local helper ran>
713
725
  Docs: <fresh | suggested | drift-check spawned>
726
+ Repo surface: <fresh | stale, suggest /god-doctor>
727
+ Host: <full | degraded | unknown>
728
+ Dogfood: <not-run | pass | fail | suggest /god-dogfood>
714
729
  Runtime: <not-applicable | suggested | browser test spawned>
715
730
  Security: <clear | suggested | harden spawned>
716
731
  Dependencies: <clear | suggested | deps audit spawned>
@@ -3,9 +3,10 @@ name: god-reconciler
3
3
  description: |
4
4
  Comprehensive reconciliation across ALL impacted artifacts before feature
5
5
  work. Checks PRD, ARCH, ROADMAP, STACK, REPO, DEPLOY, OBSERVE, HARDEN,
6
- LAUNCH, BACKLOG, SEEDS, TODOS, THREADS in parallel. Returns multi-
7
- dimensional verdict so user knows every place the work intersects with
8
- existing artifacts.
6
+ LAUNCH, BACKLOG, SEEDS, TODOS, THREADS, repository documentation,
7
+ repository surface, feature awareness, host capability, and source-system
8
+ sync-back in parallel. Returns multi-dimensional verdict so user knows every
9
+ place the work intersects with existing artifacts.
9
10
 
10
11
  Spawned by: /god-reconcile, recipe execution (feature-addition category)
11
12
  tools: Read, Bash, Grep, Glob, Task
@@ -25,6 +26,8 @@ A feature addition often impacts multiple artifacts:
25
26
  - STACK may need a new dependency
26
27
  - BACKLOG may already capture the intent
27
28
  - SEEDS may trigger a planted seed
29
+ - README, release notes, schemas, workflows, recipes, and installed-project
30
+ feature awareness may need mechanical sync
28
31
 
29
32
  If we don't check all of these, we get drift. Roadmap says one thing, PRD
30
33
  says another, code does a third.
@@ -120,6 +123,38 @@ For each artifact below, check (in parallel where possible):
120
123
  - Is there an active thread about this topic?
121
124
  - Verdict: no-thread / active-thread (with thread name)
122
125
 
126
+ ### Runtime and repository surface artifacts
127
+
128
+ #### REPO DOCS (`README.md`, `CHANGELOG.md`, `RELEASE.md`, docs, support files)
129
+ - Does this work change public counts, badges, release status, install
130
+ guidance, contributor guidance, or support policy?
131
+ - Verdict: fresh / needs-mechanical-sync / needs-docs-writer
132
+ - If narrative release or support docs need judgment: recommend
133
+ `god-docs-writer`.
134
+
135
+ #### REPO SURFACE (`skills/`, `agents/`, `routing/`, `workflows/`, `schema/`, `package.json`)
136
+ - Did the work add, rename, remove, or change a command, agent, workflow,
137
+ recipe, schema, package file entry, extension, or release helper?
138
+ - Verdict: fresh / needs-surface-sync / needs-safe-fix / needs-human-review
139
+ - If stale checks are mechanical: recommend `lib/repo-surface-sync.run`.
140
+
141
+ #### FEATURE AWARENESS (`.godpowers/state.json`, context fences)
142
+ - Does an existing Godpowers project need to learn about new runtime features?
143
+ - Verdict: fresh / needs-awareness-refresh / needs-migration-judgment
144
+ - If imported planning systems have low confidence or conflicts: recommend
145
+ `god-greenfieldifier`.
146
+
147
+ #### SOURCE SYSTEM SYNC-BACK (GSD, BMAD, Superpowers)
148
+ - Did migrated source-system summaries need managed sync-back?
149
+ - Verdict: not-applicable / fresh / needs-sync-back / blocked-by-conflict
150
+ - If conflicts exist: recommend greenfieldifier review before writes.
151
+
152
+ #### HOST CAPABILITY (`lib/host-capabilities.js`)
153
+ - Does the work depend on a host feature such as fresh-context spawning,
154
+ local shell, GitHub CLI, npm, or extension authoring?
155
+ - Verdict: full / degraded / unknown
156
+ - If degraded: include the missing guarantee in the recommendation.
157
+
123
158
  ## Output
124
159
 
125
160
  Return structured JSON to the orchestrating skill:
@@ -141,6 +176,11 @@ Return structured JSON to the orchestrating skill:
141
176
  "seeds": { "status": "no-seeds" },
142
177
  "todos": { "status": "supersedes-todo", "match": "P1: refactor auth middleware" },
143
178
  "threads": { "status": "active-thread", "match": "auth migration" },
179
+ "repo_docs": { "status": "needs-mechanical-sync", "action": "run repo-doc-sync" },
180
+ "repo_surface": { "status": "needs-surface-sync", "action": "run repo-surface-sync" },
181
+ "feature_awareness": { "status": "needs-awareness-refresh", "action": "run feature-awareness" },
182
+ "source_sync_back": { "status": "not-applicable" },
183
+ "host_capability": { "status": "degraded", "gap": "fresh-context agent spawn not detected" },
144
184
  "recommendation": {
145
185
  "primary-action": "/god-feature scoped to Milestone 2",
146
186
  "preflight": [
@@ -148,7 +188,7 @@ Return structured JSON to the orchestrating skill:
148
188
  "/god-arch with mode=delta-only (add component + ADR)"
149
189
  ],
150
190
  "post-work": [
151
- "/god-sync (update all affected artifacts)"
191
+ "/god-sync (update all affected artifacts and local sync surfaces)"
152
192
  ]
153
193
  }
154
194
  }
@@ -175,12 +215,17 @@ Where this intersects existing artifacts:
175
215
  SEEDS: no triggers
176
216
  TODOS: supersedes "refactor auth middleware"
177
217
  THREADS: relates to active thread "auth migration"
218
+ REPO DOCS: needs mechanical sync
219
+ SURFACE: needs repo-surface sync
220
+ FEATURES: awareness refresh needed
221
+ SOURCE: no sync-back needed
222
+ HOST: degraded - fresh-context agent spawn not detected
178
223
 
179
224
  Recommended sequence:
180
225
  1. /god-redo prd (add requirement)
181
226
  2. /god-arch delta-only (architecture delta)
182
227
  3. /god-feature (build it, scoped to Milestone 2)
183
- 4. /god-sync (update all touched artifacts)
228
+ 4. /god-sync (update all touched artifacts and local sync surfaces)
184
229
 
185
230
  Run this sequence? (yes / show alternatives / cancel)
186
231
  ```
@@ -224,6 +269,8 @@ For feature-addition category recipes: ALWAYS reconcile.
224
269
  Reconciliation FAILS if:
225
270
  - Returns "all covered" without checking each artifact
226
271
  - Skips an artifact silently (must report status for each)
272
+ - Skips repo docs, repo surface, feature awareness, source sync-back, or host
273
+ capability when the work affects them
227
274
  - Recommends bypass without justification
228
275
  - Missing prerequisite check
229
276
  - Doesn't surface ambiguous cases
@@ -4,8 +4,9 @@ description: |
4
4
  After feature work, syncs all affected artifacts: PRD (add requirement),
5
5
  ARCH (add ADR/delta), ROADMAP (mark progress, append entries), STACK
6
6
  (add deps), DEPLOY/OBSERVE/HARDEN/LAUNCH (note new surface), TODOS
7
- (resolve superseded), THREADS (update). Re-validates have-nots after
8
- each update.
7
+ (resolve superseded), THREADS (update), repository documentation, runtime
8
+ feature awareness, source-system sync-back, host capability notes, and
9
+ repository surface checks. Re-validates have-nots after each update.
9
10
 
10
11
  Spawned by: /god-sync, end of feature-addition recipe execution
11
12
  tools: Read, Write, Edit, Bash, Grep, Glob, Task
@@ -20,6 +21,9 @@ After feature work, every artifact that was impacted needs to reflect reality.
20
21
  - The reconciliation verdict (from god-reconciler) showing which artifacts changed
21
22
  - Description of what was just done (commits, slice plans, etc.)
22
23
  - Project root
24
+ - Changed files, when the caller can provide them
25
+ - Trigger type: manual `/god-sync`, closeout from `/god-mode`, release work,
26
+ migration import, hotfix, or docs-only sync
23
27
 
24
28
  ## Operations (per artifact, conditional)
25
29
 
@@ -118,6 +122,74 @@ After feature work, every artifact that was impacted needs to reflect reality.
118
122
  - drift findings
119
123
  - REVIEW-REQUIRED.md items created
120
124
 
125
+ ### Repository documentation sync
126
+ - Call `lib/repo-doc-sync.run(projectRoot, { changedFiles })` when the runtime
127
+ is available. Use detect-only mode when the caller is in read-only audit mode.
128
+ - Safe mechanical fixes may update version badges, package description counts,
129
+ README command counts, reference counts, and shipped-version markers.
130
+ - Narrative drift in release notes, changelog, contribution policy, security
131
+ policy, or support docs must spawn or recommend `god-docs-writer`.
132
+ - Emit or preserve the local log at `.godpowers/docs/REPO-DOC-SYNC.md`.
133
+ - Report:
134
+ - status: fresh, stale, applied, or skipped
135
+ - safe fixes applied
136
+ - narrative paths requiring a docs writer
137
+ - Pillars sync plan count when touched docs affect portable context
138
+
139
+ ### Repository surface sync
140
+ - Call `lib/repo-surface-sync.run(projectRoot, { changedFiles })` when the
141
+ runtime is available.
142
+ - This checks routing, package file entries, package content checks, agent
143
+ contracts, workflow metadata, recipe coverage, extension publish readiness,
144
+ route quality, release surface, and repository documentation drift.
145
+ - Safe local fixes may write missing routing stubs only when explicitly allowed
146
+ by the caller.
147
+ - Emit or preserve the local log at `.godpowers/surface/REPO-SURFACE-SYNC.md`.
148
+ - Report:
149
+ - status: fresh, stale, applied, or skipped
150
+ - stale checks by area
151
+ - spawn recommendations
152
+ - whether route, recipe, release, and documentation sub-checks were fresh
153
+
154
+ ### Runtime feature awareness
155
+ - Call `lib/feature-awareness.run(projectRoot)` for existing `.godpowers`
156
+ projects when the runtime is available.
157
+ - Record the installed runtime version, the current feature-set version, and
158
+ known feature IDs into `.godpowers/state.json`.
159
+ - Refresh AI-tool context fences only through `god-context-writer` or
160
+ `lib/context-writer.js`; do not hand-edit outside managed fences.
161
+ - If low-confidence imported planning systems or sync-back conflicts are
162
+ detected, spawn or recommend `god-greenfieldifier`.
163
+ - Report:
164
+ - runtime version
165
+ - missing features before refresh
166
+ - whether state changed
167
+ - context files refreshed or skipped
168
+
169
+ ### Source-system sync-back
170
+ - Call `lib/source-sync.run(projectRoot)` when `.godpowers/state.json`
171
+ declares GSD, BMAD, Superpowers, or other source-system records.
172
+ - Write only managed Godpowers summary sections back to source systems.
173
+ - Preserve user-authored source-system content outside managed sections.
174
+ - If source-system confidence is low or conflicts are present, recommend
175
+ `god-greenfieldifier` before writing.
176
+ - Report:
177
+ - source systems found
178
+ - summaries written, unchanged, skipped, or blocked
179
+ - conflict count
180
+
181
+ ### Host capability and dashboard refresh
182
+ - Call `lib/host-capabilities.detect(projectRoot)` when available and include
183
+ the guarantee level in closeouts.
184
+ - Call `lib/dashboard.compute(projectRoot)` and `lib/dashboard.render(result)`
185
+ for user-facing status when available.
186
+ - Treat host guarantee gaps as visible runtime facts, not fatal failures.
187
+ - Report:
188
+ - host name
189
+ - guarantee level: full, degraded, or unknown
190
+ - top gap, when present
191
+ - dashboard readiness and attention line
192
+
121
193
  ### Pillars sync (native context)
122
194
  - Call `lib/pillars.pillarizeExisting(projectRoot)` if Pillars is absent or
123
195
  partial.
@@ -171,6 +243,11 @@ Sync status:
171
243
  - Pillars sync: [applied/proposed/no-op/skipped], [N] pillar files
172
244
  - Checkpoint sync: [created/updated/no-op/skipped] .godpowers/CHECKPOINT.md
173
245
  - Context refresh: [spawned god-context-writer/no-op/skipped], [N] files
246
+ - Repo docs sync: [fresh/applied/stale/skipped], [N] safe fixes, [N] docs-writer paths
247
+ - Repo surface sync: [fresh/applied/stale/skipped], [N] stale checks, [N] spawn recommendations
248
+ - Feature awareness: [fresh/applied/skipped], runtime [version], [N] new features recorded
249
+ - Source sync-back: [written/unchanged/blocked/skipped], [N] source systems
250
+ - Host capabilities: [full/degraded/unknown], [top gap or none]
174
251
 
175
252
  Updated:
176
253
  - prd/PRD.md: added requirement P-MUST-12
@@ -201,8 +278,13 @@ Sync status:
201
278
  Local syncs:
202
279
  + reverse-sync: <counts and result>
203
280
  + pillars-sync: <counts and result>
281
+ + repo-doc-sync: <fresh, applied, stale, or skipped>
282
+ + repo-surface-sync: <fresh, applied, stale, or skipped>
283
+ + feature-awareness: <fresh, applied, or skipped>
284
+ + source-sync-back: <written, unchanged, blocked, or skipped>
204
285
  + checkpoint-sync: <created, updated, no-op, or skipped>
205
286
  + context-refresh: <spawned, no-op, or skipped>
287
+ + host-capabilities: <full, degraded, or unknown>
206
288
  Artifacts: <changed files or no-op>
207
289
  Log: .godpowers/SYNC-LOG.md
208
290