godpowers 2.4.2 → 2.5.0

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 (66) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +22 -6
  3. package/RELEASE.md +29 -35
  4. package/SKILL.md +5 -0
  5. package/agents/god-orchestrator.md +31 -1255
  6. package/bin/install.js +16 -107
  7. package/fixtures/gate/build-pass/.godpowers/build/STATE.md +10 -0
  8. package/fixtures/gate/harden-pass/.godpowers/harden/FINDINGS.md +14 -0
  9. package/fixtures/gate/repo-pass/.godpowers/repo/AUDIT.md +9 -0
  10. package/lib/artifact-map.js +60 -0
  11. package/lib/cli-dispatch.js +162 -0
  12. package/lib/command-families.js +10 -2
  13. package/lib/dashboard.js +3 -2
  14. package/lib/gate.js +271 -0
  15. package/lib/installer-args.js +11 -1
  16. package/lib/route-quality-sync.js +38 -0
  17. package/package.json +3 -2
  18. package/references/orchestration/GOD-MODE-RUNBOOK.md +19 -0
  19. package/references/orchestration/GOD-NEXT-RUNBOOK.md +32 -0
  20. package/references/orchestration/GOD-ORCHESTRATOR-RUNBOOK.md +1259 -0
  21. package/references/orchestration/README.md +6 -0
  22. package/references/shared/DASHBOARD-CONTRACT.md +93 -0
  23. package/references/shared/LOCKING.md +15 -0
  24. package/references/shared/README.md +2 -0
  25. package/routing/god-arch.yaml +1 -0
  26. package/routing/god-build.yaml +1 -0
  27. package/routing/god-design.yaml +1 -0
  28. package/routing/god-harden.yaml +1 -0
  29. package/routing/god-prd.yaml +1 -0
  30. package/routing/god-repo.yaml +1 -0
  31. package/routing/god-roadmap-check.yaml +1 -1
  32. package/routing/god-roadmap.yaml +1 -0
  33. package/routing/god-stack.yaml +1 -0
  34. package/skills/god-arch.md +3 -13
  35. package/skills/god-build.md +5 -14
  36. package/skills/god-deploy.md +1 -12
  37. package/skills/god-design.md +9 -12
  38. package/skills/god-feature.md +1 -12
  39. package/skills/god-harden.md +3 -13
  40. package/skills/god-hotfix.md +1 -12
  41. package/skills/god-launch.md +1 -12
  42. package/skills/god-link.md +1 -12
  43. package/skills/god-migrate.md +1 -3
  44. package/skills/god-mode.md +4 -0
  45. package/skills/god-next.md +34 -410
  46. package/skills/god-observe.md +1 -12
  47. package/skills/god-prd.md +3 -13
  48. package/skills/god-redo.md +1 -12
  49. package/skills/god-refactor.md +1 -12
  50. package/skills/god-repair.md +1 -12
  51. package/skills/god-repo.md +3 -13
  52. package/skills/god-restore.md +1 -12
  53. package/skills/god-roadmap-check.md +5 -0
  54. package/skills/god-roadmap.md +3 -13
  55. package/skills/god-rollback.md +1 -12
  56. package/skills/god-scan.md +1 -12
  57. package/skills/god-skip.md +1 -12
  58. package/skills/god-stack.md +3 -13
  59. package/skills/god-status.md +27 -204
  60. package/skills/god-story-build.md +1 -12
  61. package/skills/god-story-close.md +1 -12
  62. package/skills/god-story.md +1 -12
  63. package/skills/god-sync.md +1 -12
  64. package/skills/god-undo.md +1 -12
  65. package/skills/god-update-deps.md +1 -12
  66. package/skills/god-upgrade.md +1 -12
@@ -5,6 +5,12 @@ god-orchestrator and related agents.
5
5
 
6
6
  ## Files
7
7
 
8
+ - [GOD-MODE-RUNBOOK.md](GOD-MODE-RUNBOOK.md): `/god-mode` transcript,
9
+ flags, final sync, and completion contracts.
10
+ - [GOD-NEXT-RUNBOOK.md](GOD-NEXT-RUNBOOK.md): `/god-next` invocation modes,
11
+ route detail, and edge cases.
12
+ - [GOD-ORCHESTRATOR-RUNBOOK.md](GOD-ORCHESTRATOR-RUNBOOK.md): detailed
13
+ god-orchestrator operating contracts delegated out of the agent prompt.
8
14
  - [MODE-DETECTION.md](MODE-DETECTION.md): Mode A/B/C/E detection, plus Mode D
9
15
  suite membership.
10
16
  - [SCALE-DETECTION.md](SCALE-DETECTION.md): scale rubric and calibration.
@@ -0,0 +1,93 @@
1
+ # Godpowers Dashboard Contract
2
+
3
+ This reference owns the shared dashboard shape for `/god-status`, `/god-next`, `/god-mode` closeouts, and completed command closeouts.
4
+
5
+ ## Runtime source
6
+
7
+ Prefer `lib/dashboard.js` for dashboard computation. Call `dashboard.compute(projectRoot)`, then render with `dashboard.render(result)` unless the caller needs a narrower brief view.
8
+
9
+ If the runtime module is unavailable, use a manual disk scan and say `Dashboard engine: unavailable, manual scan used`.
10
+
11
+ Never mix workflow progress with audit, hygiene, remediation, or launch-readiness scores. Label those scores separately when they appear.
12
+
13
+ ## Required shape
14
+
15
+ ```text
16
+ Godpowers Dashboard
17
+
18
+ Source: runtime dashboard (lib/dashboard.js)
19
+
20
+ Current status:
21
+ State: <complete | partial | blocked | proposal | complete with deferred item>
22
+ Phase: <plain-language phase> (tier <human ordinal> of <human total>)
23
+ Step: <sub-step label> (step <n> of <total steps>)
24
+ Progress: <pct>% workflow progress (<done> of <total> tracked steps complete)
25
+ Worktree: <clean | modified files unstaged | staged changes | mixed>
26
+ Index: <untouched | staged files listed>
27
+
28
+ Action brief:
29
+ Next: <recommended command or user decision>
30
+ Why: <route reason tied to disk state>
31
+ Readiness: <ready | needs attention>
32
+ Attention: <top blockers or none>
33
+ Host guarantees: <full | degraded | unknown with host and first gap>
34
+
35
+ Planning visibility:
36
+ PRD: <done | pending | missing | deferred> <artifact path when present>
37
+ Roadmap: <done | pending | missing | deferred> <artifact path when present>
38
+ Current milestone: <roadmap milestone, tier, or next planning gate when known>
39
+ Completion basis: <state.json, PROGRESS.md, artifacts, or audit score source>
40
+
41
+ Deliverable progress:
42
+ Requirements: <done>/<total> done (<pct>%), <in-progress> in progress, <untouched> not started
43
+ Increments: <done> done, <building> building, <pending> pending
44
+ Ledger: .godpowers/REQUIREMENTS.md
45
+
46
+ What changed:
47
+ 1. <highest-signal user-visible change>
48
+ 2. <highest-signal user-visible change>
49
+
50
+ Validation:
51
+ + <command>: <result>
52
+
53
+ Proactive checks:
54
+ Checkpoint: <fresh | refreshed | missing | stale | conflicts with state.json>
55
+ Reviews: <none | N pending, suggest /god-review-changes>
56
+ Sync: <fresh | missing | stale | local helper ran | suggest /god-sync>
57
+ Docs: <fresh | N stale, suggest /god-docs | repo-doc-sync ran>
58
+ Repo surface: <fresh | N stale, suggest /god-doctor | repo-surface-sync ran>
59
+ Host: <full | degraded | unknown with host and first gap>
60
+ Runtime: <not-applicable | known URL, suggest /god-test-runtime | no known URL, defer deployed verification>
61
+ Automation: <not configured | N active | available via provider, suggest /god-automation-setup>
62
+ Security: <clear | sensitive files changed, suggest /god-harden>
63
+ Dependencies: <clear | dependency files changed, suggest /god-update-deps>
64
+ Hygiene: <fresh | stale, suggest /god-hygiene>
65
+
66
+ Open items:
67
+ 1. <deferred staging, unstaged files, pending review, blocker, or none>
68
+
69
+ Next:
70
+ Recommended: <one concrete command or user decision>
71
+ Why: <one sentence tied to current state>
72
+ ```
73
+
74
+ ## Proposition closeout
75
+
76
+ When a command only recommends work, end with this proposition block unless it already launched the selected command.
77
+
78
+ ```text
79
+ Proposition:
80
+ 1. Implement partial: <single suggested command>
81
+ 2. Implement complete: <recipe sequence or /god-mode when safe>
82
+ 3. Discuss more: /god-discuss <routing ambiguity or missing prerequisite>
83
+ 4. Inspect status: /god-status, /god-locate, or /god-next
84
+ Recommended: <one option and why>
85
+ ```
86
+
87
+ ## Proactive rules
88
+
89
+ `/god-status` is read-only by default, so Level 3 agent work becomes a suggestion unless the user asked it to continue work.
90
+
91
+ `/god-next` may run Level 2 local helpers only when there is a direct trigger. Standalone `/god-next` turns Level 3 work into the recommended command or a proposition option.
92
+
93
+ Report checkpoint, review, sync, docs, repo surface, host, runtime, automation, security, dependency, and hygiene signals using the labels in the required shape.
@@ -0,0 +1,15 @@
1
+ # Shared Locking Contract
2
+
3
+ This reference owns the state-lock contract used by mutating Godpowers commands.
4
+
5
+ ## Contract
6
+
7
+ The orchestrator acquires a state lock before any skill mutates project state. The lock is scoped to the smallest affected unit, such as `tier-1.prd` for `/god-prd` or `linkage` for `/god-scan`.
8
+
9
+ The default lock TTL is 5 minutes. The same holder may re-enter the lock. Stale locks are force-reclaimable through `/god-repair`.
10
+
11
+ Read-only inspection commands do not block on the lock. Examples include `/god-status`, `/god-doctor`, and `/god-locate`.
12
+
13
+ Concurrent writers on non-overlapping scopes are allowed. Concurrent writers on overlapping scopes must pause or route through `/god-next`.
14
+
15
+ The full architecture contract lives in `ARCHITECTURE.md` under the concurrency contract section.
@@ -8,6 +8,8 @@ Cross-tier reference content used by multiple agents.
8
8
  - [ORCHESTRATORS.md](ORCHESTRATORS.md): composition patterns with other AI
9
9
  coding workflow systems, including migration and managed sync-back.
10
10
  - [GLOSSARY.md](GLOSSARY.md): standardized vocabulary across tiers.
11
+ - [DASHBOARD-CONTRACT.md](DASHBOARD-CONTRACT.md): shared dashboard and proposition output contract.
12
+ - [LOCKING.md](LOCKING.md): shared state-lock contract for mutating commands.
11
13
 
12
14
  ## Planned content
13
15
 
@@ -34,6 +34,7 @@ standards:
34
34
  three-label-test: true
35
35
  have-nots: [A-01, A-02, A-03, A-04, A-05, A-06, A-07, A-08, A-09, A-10, A-11, A-12, A-13]
36
36
  gate-on-failure: pause-for-user
37
+ gate-command: npx godpowers gate --tier=arch --project=.
37
38
 
38
39
  success-path:
39
40
  next-recommended: /god-roadmap
@@ -29,6 +29,7 @@ standards:
29
29
  three-label-test: true
30
30
  have-nots: [B-01, B-02, B-03, B-04, B-05, B-06, B-07, B-08, B-09, B-10, B-11, B-12]
31
31
  gate-on-failure: pause-for-user
32
+ gate-command: npx godpowers gate --tier=build --project=.
32
33
 
33
34
  success-path:
34
35
  next-recommended: /god-deploy
@@ -50,6 +50,7 @@ standards:
50
50
  - "purple-blue gradients" # impeccable anti-pattern
51
51
  - "Inter everywhere" # impeccable anti-pattern
52
52
  - "cards in cards" # impeccable anti-pattern
53
+ gate-command: npx godpowers gate --tier=design --project=.
53
54
 
54
55
  success-path:
55
56
  next-recommended: /god-arch
@@ -33,6 +33,7 @@ standards:
33
33
  three-label-test: true
34
34
  have-nots: [H-01, H-02, H-03, H-04, H-05, H-06, H-07, H-08, H-09, H-10, H-11]
35
35
  gate-on-failure: pause-for-user
36
+ gate-command: npx godpowers gate --tier=harden --project=.
36
37
 
37
38
  success-path:
38
39
  next-recommended: /god-launch
@@ -35,6 +35,7 @@ standards:
35
35
  three-label-test: true
36
36
  have-nots: [P-01, P-02, P-03, P-04, P-05, P-06, P-07, P-08, P-09, P-10, P-11, P-12, P-13, P-14, P-15]
37
37
  gate-on-failure: pause-for-user
38
+ gate-command: npx godpowers gate --tier=prd --project=.
38
39
 
39
40
  success-path:
40
41
  next-recommended: /god-arch
@@ -24,6 +24,7 @@ standards:
24
24
  three-label-test: true
25
25
  have-nots: [RP-01, RP-02, RP-03, RP-04, RP-05, RP-06, RP-07, RP-08]
26
26
  gate-on-failure: pause-for-user
27
+ gate-command: npx godpowers gate --tier=repo --project=.
27
28
 
28
29
  success-path:
29
30
  next-recommended: /god-build
@@ -4,7 +4,7 @@ metadata:
4
4
  command: /god-roadmap-check
5
5
  description: Reconcile intent against ROADMAP.md before feature work
6
6
  tier: 1
7
- family: maintain
7
+ family: compatibility
8
8
 
9
9
  prerequisites:
10
10
  required:
@@ -31,6 +31,7 @@ standards:
31
31
  three-label-test: true
32
32
  have-nots: [R-01, R-02, R-03, R-04, R-05, R-06, R-07, R-08, R-09, R-10]
33
33
  gate-on-failure: pause-for-user
34
+ gate-command: npx godpowers gate --tier=roadmap --project=.
34
35
 
35
36
  success-path:
36
37
  next-recommended: /god-stack
@@ -29,6 +29,7 @@ standards:
29
29
  three-label-test: true
30
30
  have-nots: [S-01, S-02, S-03, S-04, S-05]
31
31
  gate-on-failure: pause-for-user
32
+ gate-command: npx godpowers gate --tier=stack --project=.
32
33
 
33
34
  success-path:
34
35
  next-recommended: /god-repo
@@ -26,7 +26,8 @@ Spawn the **god-architect** agent in a fresh context via the host platform's nat
26
26
  After god-architect returns:
27
27
  1. Verify ARCH.md and ADRs exist on disk
28
28
  2. Spawn god-auditor to verify have-nots pass
29
- 3. Update `.godpowers/PROGRESS.md`: Architecture status = done
29
+ 3. Run `npx godpowers gate --tier=arch --project=.` and do not proceed on a non-zero exit
30
+ 4. Update `.godpowers/PROGRESS.md`: Architecture status = done
30
31
 
31
32
  ## Pause Format
32
33
 
@@ -70,15 +71,4 @@ The reflog records every god-arch invocation as `op:god-arch` for `/god-undo`.
70
71
 
71
72
  ## Locking
72
73
 
73
- The orchestrator acquires a state-lock before this skill mutates anything,
74
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
75
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
76
- same holder; force-reclaimable if stale via `/god-repair`.
77
-
78
- Read-only inspection commands (`/god-status`, `/god-doctor`,
79
- `/god-locate`) do NOT block on the lock. Concurrent writers on
80
- non-overlapping scopes are allowed; on overlapping scopes, the second
81
- writer pauses or routes elsewhere via `/god-next`.
82
-
83
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
84
- the full contract.
74
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -76,8 +76,10 @@ After all waves:
76
76
  decompose, prune, or escalate. Pass the exact failing diagnostics, rerun the
77
77
  command, and repeat until green or until the same root failure exhausts the
78
78
  repair budget.
79
- 5. Update PROGRESS.md: Build status = done
80
- 6. If the build plan or implementation establishes durable conventions, plan
79
+ 5. Record the exact verification commands that passed in `.godpowers/build/STATE.md`
80
+ 6. Run `npx godpowers gate --tier=build --project=.` and do not proceed on a non-zero exit
81
+ 7. Update PROGRESS.md: Build status = done
82
+ 8. If the build plan or implementation establishes durable conventions, plan
81
83
  pillar updates through `lib/pillars.planArtifactSync`. Under
82
84
  `/god-mode --yolo`, apply those updates immediately and log the decision.
83
85
 
@@ -106,15 +108,4 @@ after the current increment.
106
108
 
107
109
  ## Locking
108
110
 
109
- The orchestrator acquires a state-lock before this skill mutates anything,
110
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
111
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
112
- same holder; force-reclaimable if stale via `/god-repair`.
113
-
114
- Read-only inspection commands (`/god-status`, `/god-doctor`,
115
- `/god-locate`) do NOT block on the lock. Concurrent writers on
116
- non-overlapping scopes are allowed; on overlapping scopes, the second
117
- writer pauses or routes elsewhere via `/god-next`.
118
-
119
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
120
- the full contract.
111
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -95,15 +95,4 @@ The reflog records every god-deploy invocation as `op:god-deploy` for `/god-undo
95
95
 
96
96
  ## Locking
97
97
 
98
- The orchestrator acquires a state-lock before this skill mutates anything,
99
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
100
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
101
- same holder; force-reclaimable if stale via `/god-repair`.
102
-
103
- Read-only inspection commands (`/god-status`, `/god-doctor`,
104
- `/god-locate`) do NOT block on the lock. Concurrent writers on
105
- non-overlapping scopes are allowed; on overlapping scopes, the second
106
- writer pauses or routes elsewhere via `/god-next`.
107
-
108
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
109
- the full contract.
98
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -92,6 +92,14 @@ When DESIGN.md or PRODUCT.md change as a result of any subcommand:
92
92
  This pattern mirrors code review (god-spec-reviewer + god-quality-reviewer)
93
93
  applied to design.
94
94
 
95
+ ## Verification
96
+
97
+ After god-designer and god-design-reviewer return:
98
+ 1. Verify `DESIGN.md` exists on disk
99
+ 2. Verify `.godpowers/design/STATE.md` exists on disk
100
+ 3. Run `npx godpowers gate --tier=design --project=.` and do not proceed on a non-zero exit
101
+ 4. Update `.godpowers/PROGRESS.md`: Design status = done when the project requires design
102
+
95
103
  ## Output
96
104
 
97
105
  Project root:
@@ -261,15 +269,4 @@ The reflog records every god-design invocation as `op:god-design` for `/god-undo
261
269
 
262
270
  ## Locking
263
271
 
264
- The orchestrator acquires a state-lock before this skill mutates anything,
265
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
266
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
267
- same holder; force-reclaimable if stale via `/god-repair`.
268
-
269
- Read-only inspection commands (`/god-status`, `/god-doctor`,
270
- `/god-locate`) do NOT block on the lock. Concurrent writers on
271
- non-overlapping scopes are allowed; on overlapping scopes, the second
272
- writer pauses or routes elsewhere via `/god-next`.
273
-
274
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
275
- the full contract.
272
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -109,15 +109,4 @@ in the linkage system:
109
109
 
110
110
  ## Locking
111
111
 
112
- The orchestrator acquires a state-lock before this skill mutates anything,
113
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
114
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
115
- same holder; force-reclaimable if stale via `/god-repair`.
116
-
117
- Read-only inspection commands (`/god-status`, `/god-doctor`,
118
- `/god-locate`) do NOT block on the lock. Concurrent writers on
119
- non-overlapping scopes are allowed; on overlapping scopes, the second
120
- writer pauses or routes elsewhere via `/god-next`.
121
-
122
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
123
- the full contract.
112
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -21,7 +21,8 @@ Spawn the **god-harden-auditor** agent in a fresh context via the host platform'
21
21
 
22
22
  After god-harden-auditor returns:
23
23
  1. Verify FINDINGS.md exists on disk
24
- 2. Read findings classification:
24
+ 2. Run `npx godpowers gate --tier=harden --project=.` and do not proceed on a non-zero exit
25
+ 3. Read findings classification:
25
26
  - If any Critical: PROGRESS.md status = failed, launch is BLOCKED
26
27
  - If only High/Medium/Low: PROGRESS.md status = done
27
28
 
@@ -92,15 +93,4 @@ The reflog records every god-harden invocation as `op:god-harden` for `/god-undo
92
93
 
93
94
  ## Locking
94
95
 
95
- The orchestrator acquires a state-lock before this skill mutates anything,
96
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
97
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
98
- same holder; force-reclaimable if stale via `/god-repair`.
99
-
100
- Read-only inspection commands (`/god-status`, `/god-doctor`,
101
- `/god-locate`) do NOT block on the lock. Concurrent writers on
102
- non-overlapping scopes are allowed; on overlapping scopes, the second
103
- writer pauses or routes elsewhere via `/god-next`.
104
-
105
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
106
- the full contract.
96
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -125,15 +125,4 @@ in the linkage system:
125
125
 
126
126
  ## Locking
127
127
 
128
- The orchestrator acquires a state-lock before this skill mutates anything,
129
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
130
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
131
- same holder; force-reclaimable if stale via `/god-repair`.
132
-
133
- Read-only inspection commands (`/god-status`, `/god-doctor`,
134
- `/god-locate`) do NOT block on the lock. Concurrent writers on
135
- non-overlapping scopes are allowed; on overlapping scopes, the second
136
- writer pauses or routes elsewhere via `/god-next`.
137
-
138
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
139
- the full contract.
128
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -97,15 +97,4 @@ The reflog records every god-launch invocation as `op:god-launch` for `/god-undo
97
97
 
98
98
  ## Locking
99
99
 
100
- The orchestrator acquires a state-lock before this skill mutates anything,
101
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
102
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
103
- same holder; force-reclaimable if stale via `/god-repair`.
104
-
105
- Read-only inspection commands (`/god-status`, `/god-doctor`,
106
- `/god-locate`) do NOT block on the lock. Concurrent writers on
107
- non-overlapping scopes are allowed; on overlapping scopes, the second
108
- writer pauses or routes elsewhere via `/god-next`.
109
-
110
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
111
- the full contract.
100
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -76,15 +76,4 @@ No source files are modified by this skill.
76
76
 
77
77
  ## Locking
78
78
 
79
- The orchestrator acquires a state-lock before this skill mutates anything,
80
- scoped to the smallest affected unit (e.g. `tier-1.prd` for `/god-prd`,
81
- `linkage` for `/god-scan`). Lock TTL is 5 minutes; reentrant for the
82
- same holder; force-reclaimable if stale via `/god-repair`.
83
-
84
- Read-only inspection commands (`/god-status`, `/god-doctor`,
85
- `/god-locate`) do NOT block on the lock. Concurrent writers on
86
- non-overlapping scopes are allowed; on overlapping scopes, the second
87
- writer pauses or routes elsewhere via `/god-next`.
88
-
89
- See [ARCHITECTURE.md "Concurrency contract"](../ARCHITECTURE.md) for
90
- the full contract.
79
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -141,6 +141,4 @@ Suggested next:
141
141
 
142
142
  ## Locking
143
143
 
144
- Acquire the state lock with scope `migration.source-systems` before writing
145
- `.godpowers/prep/IMPORTED-CONTEXT.md`, seed artifacts, source-system companion
146
- files, or `state.json`.
144
+ See `<runtimeRoot>/references/shared/LOCKING.md` for the shared state-lock contract.
@@ -121,6 +121,10 @@ workflow.
121
121
  `safe-sync-clear` fails, run
122
122
  `/god-reconcile Release Truth And Safe Sync` before deploy, observe,
123
123
  harden, launch, broad migration, or resume work.
124
+ - Instruction to run `npx godpowers gate --tier=<tier> --project=.`
125
+ after each tier skill returns and before starting the downstream tier
126
+ for PRD, design when required, architecture, roadmap, stack, repo,
127
+ build, and harden. A non-zero exit pauses the project run for repair.
124
128
  - Instruction that `--yolo` cannot bypass safe sync blockers or
125
129
  unresolved Critical harden findings. These are release-truth gates, not
126
130
  preference pauses.