@pieai/pro-gov 0.4.3 → 0.4.4
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/README.md +16 -58
- package/assets/docs/reference/adoption/adoption-playbook.md +16 -68
- package/assets/docs/reference/adoption/agent-workflow-methodology-comparison.md +10 -2
- package/assets/docs/reference/adoption/recommended-agent-tooling.md +21 -118
- package/assets/integrations/compound-engineering.md +8 -161
- package/assets/integrations/directed-development.md +4 -6
- package/assets/integrations/mattpocock-skills.md +27 -130
- package/assets/integrations/ponytail.md +6 -158
- package/assets/integrations/superpowers.md +9 -104
- package/assets/profiles/doc-only/manifest.yml +1 -4
- package/assets/profiles/doc-only/profile.md +1 -1
- package/assets/profiles/engineering-runtime/manifest.yml +1 -4
- package/assets/profiles/engineering-runtime/profile.md +3 -13
- package/assets/starter/AGENTS.template.md +5 -7
- package/assets/starter/docs/governance/agents-routing/doc-only-v0.9.md +2 -2
- package/assets/starter/docs/governance/agents-routing/engineering-runtime-v0.9.md +5 -4
- package/assets/starter/docs/governance/boundary.md +4 -7
- package/assets/starter/docs/governance/ssot-v0.9.md +3 -4
- package/assets/starter/docs/reference/documentation-map.md +4 -4
- package/cli-guide.md +16 -40
- package/dist/cli.js +134 -707
- package/package.json +2 -2
- package/assets/starter/.agents/hooks.json +0 -26
- package/assets/starter/.claude/settings.json +0 -26
- package/assets/starter/.codex/hooks.json +0 -28
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ Think of Project Governance System as a librarian, traffic desk, and inspection
|
|
|
9
9
|
station:
|
|
10
10
|
|
|
11
11
|
- `pro-gov` shows which reusable project-governance parts are present or missing;
|
|
12
|
-
- `@pieai/doc-gov` checks documents, routing, links,
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
12
|
+
- `@pieai/doc-gov` checks documents, routing, links, guardrails, and CI;
|
|
13
|
+
- the AI host and project checks own normal execution;
|
|
14
|
+
- optional Matt skills trigger only when their narrow descriptions match;
|
|
15
|
+
- `capture-learning` records a reusable lesson only when one exists.
|
|
16
16
|
|
|
17
17
|
The current `pro-gov` release is conservative by design. Public init and sync
|
|
18
18
|
commands inspect and compare; they do not silently overwrite another project's
|
|
@@ -53,7 +53,6 @@ pro-gov init --profile engineering-runtime --dry-run
|
|
|
53
53
|
pro-gov init --profile engineering-runtime --apply
|
|
54
54
|
pro-gov init --profile doc-only --dry-run
|
|
55
55
|
pro-gov sync --check --profile engineering-runtime
|
|
56
|
-
pro-gov sync --apply-host-hooks --profile engineering-runtime
|
|
57
56
|
pro-gov doctor
|
|
58
57
|
```
|
|
59
58
|
|
|
@@ -73,7 +72,6 @@ What these commands do:
|
|
|
73
72
|
| `init --dry-run` | Shows starter/profile files that would be needed. | No |
|
|
74
73
|
| `init --apply` | Installs one profile into a fresh target; refuses the whole operation if any target file exists. Optional CI and Lefthook references are not installed. | Yes |
|
|
75
74
|
| `sync --check` | Strictly compares shared core files, checks project-local seeds for presence, and leaves optional guardrail contents consumer-owned. | No |
|
|
76
|
-
| `sync --apply-host-hooks` | Merges current PGS Compound Gate entries into engineering-runtime host configs while preserving consumer-owned keys and hooks. | Only the three host config files |
|
|
77
75
|
| `doctor` | Checks required packaged assets and whether `doc-gov` is available. | No |
|
|
78
76
|
|
|
79
77
|
## Full Checkout Commands
|
|
@@ -129,71 +127,31 @@ the private-source and public-copy hashes recorded during promotion.
|
|
|
129
127
|
reviewable plan in a full upstream checkout.
|
|
130
128
|
- `pro-gov lens inspect|report` provides read-only inspection and an explicit
|
|
131
129
|
report output.
|
|
132
|
-
- `doc-gov` remains the document, router, manifest, link,
|
|
130
|
+
- `doc-gov` remains the document, router, manifest, link, CI, and migration
|
|
133
131
|
validator.
|
|
134
132
|
- Product truth stays in the target project.
|
|
135
133
|
- `pro-gov init --apply` is intentionally fresh-target only. Existing projects
|
|
136
134
|
use `--dry-run` and a deliberate migration so local truth is never overwritten.
|
|
137
|
-
-
|
|
138
|
-
bundled runtime dependencies.
|
|
135
|
+
- PGS does not require or bootstrap a workflow plugin.
|
|
139
136
|
- Optional `hostTooling` entries let `portfolio doctor` verify required Codex or
|
|
140
137
|
Claude Code plugins. PGS does not install or upgrade those plugins.
|
|
141
138
|
|
|
142
|
-
##
|
|
139
|
+
## Lightweight Agent Workflow
|
|
143
140
|
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
The AI host and the target project's proof commands own ordinary work. Matt
|
|
142
|
+
Pocock's skills may be exposed as an optional unchanged library; each skill
|
|
143
|
+
triggers from its own narrow description and does not become a mandatory
|
|
144
|
+
pipeline or workflow owner.
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
engineering work. The default PGS pattern is a Compound Gate: run
|
|
149
|
-
`ce-compound` when there is reusable learning, or report why compounding was
|
|
150
|
-
skipped. Full CE workflows such as `ce-plan`, `ce-work`, and `lfg` remain
|
|
151
|
-
explicit user choices.
|
|
152
|
-
|
|
153
|
-
PGS Learning Recall is the pre-work companion to that post-work gate. Before
|
|
146
|
+
Before
|
|
154
147
|
non-trivial implementation, debugging, release, architecture, or portfolio-sync
|
|
155
148
|
work, run `pro-gov learn recall --query "<task summary>"` and read relevant
|
|
156
149
|
`docs/solutions/**` or `CONCEPTS.md` hits before changing files.
|
|
157
150
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
exit-door reminder, or `--compound-gate-mode strict` for the older blocking
|
|
163
|
-
gate.
|
|
164
|
-
|
|
165
|
-
When enabled, the hook expects the final report to include either:
|
|
166
|
-
|
|
167
|
-
```text
|
|
168
|
-
Compound Gate: ran ce-compound -> <path>
|
|
169
|
-
Compound Gate: ran fallback capture -> <path>
|
|
170
|
-
Compound Gate: skipped -> <reason>
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
Use `ran fallback capture` only when the Compound Engineering plugin or
|
|
174
|
-
`ce-compound` skill is unavailable in the current host. It writes a minimal
|
|
175
|
-
`docs/solutions/**` learning record through `pro-gov learn capture`; it does
|
|
176
|
-
not replace or copy the full CE workflow.
|
|
177
|
-
|
|
178
|
-
Use `pro-gov doctor --strict-hooks` after syncing an engineering project to
|
|
179
|
-
verify that the host configs are wired. This is a wiring check: it proves the
|
|
180
|
-
project calls `pro-gov host-hook` for Codex, Claude Code, and Antigravity. The
|
|
181
|
-
host behavior contract is covered by PGS package tests against recorded
|
|
182
|
-
per-host Stop/SubagentStop fixtures. Open a fresh AI session after installing or
|
|
183
|
-
changing hooks; old sessions may not reload host configuration.
|
|
184
|
-
|
|
185
|
-
Antigravity hook commands enable `PGS_HOST_HOOK_DEBUG=1` by default in PGS
|
|
186
|
-
starters. The hook writes local diagnostics to `.git/pro-gov-hook-debug/` when
|
|
187
|
-
it is actually invoked, including the input summary, decision, and output JSON.
|
|
188
|
-
This directory lives inside Git's private metadata so it does not dirty the
|
|
189
|
-
worktree. If an Antigravity test does not create a diagnostic file, inspect
|
|
190
|
-
whether the host loaded `.agents/hooks.json` before changing PGS policy.
|
|
191
|
-
`.pro-gov/assets.json` is only an asset-install manifest; its `host` field does
|
|
192
|
-
not control runtime hook dispatch.
|
|
193
|
-
|
|
194
|
-
Ponytail can be installed as an optional complexity adviser. Keep its global mode
|
|
195
|
-
`off`; test `lite` in one isolated task before considering a stronger mode.
|
|
196
|
-
Ponytail must not remove requested scope, tests, safety, accessibility, or proof.
|
|
151
|
+
After verified work, use the small `capture-learning` skill only when the result
|
|
152
|
+
will help future work. It calls `pro-gov learn capture` and writes a compact
|
|
153
|
+
`docs/solutions/**` record. PGS does not install Stop/SubagentStop reminder
|
|
154
|
+
hooks or require a completion ceremony.
|
|
197
155
|
|
|
198
156
|
Read the
|
|
199
157
|
[full project introduction](https://github.com/PieAIStudio/ProjectGovernanceSystem#readme)
|
|
@@ -22,11 +22,10 @@ related:
|
|
|
22
22
|
|
|
23
23
|
Use this when a project wants to migrate into the Project Governance System.
|
|
24
24
|
|
|
25
|
-
Before choosing
|
|
25
|
+
Before choosing optional AI skills, read
|
|
26
26
|
`docs/reference/adoption/recommended-agent-tooling.md`. It explains which PGS
|
|
27
|
-
packages are required,
|
|
28
|
-
|
|
29
|
-
should remain globally `off` until it is tested in an isolated task.
|
|
27
|
+
packages are required, how Matt skills remain trigger-based, and how the small
|
|
28
|
+
native learning-capture path works.
|
|
30
29
|
|
|
31
30
|
## The Short Version
|
|
32
31
|
|
|
@@ -79,8 +78,7 @@ Current package-based method:
|
|
|
79
78
|
merge local truth deliberately instead of asking PGS to overwrite it
|
|
80
79
|
- run `pro-gov sync --check --profile <profile>` to compare shared core files;
|
|
81
80
|
project-local router, policy, documentation map, and current-work files are
|
|
82
|
-
checked for presence rather than byte equality
|
|
83
|
-
PGS-owned entries rather than whole-file equality
|
|
81
|
+
checked for presence rather than byte equality
|
|
84
82
|
- run `pro-gov assets discover --target <path>` and
|
|
85
83
|
`pro-gov assets recommend --target <path>` to collect local project signals
|
|
86
84
|
and suggested agent-asset bundles without changing the project
|
|
@@ -93,20 +91,8 @@ Current package-based method:
|
|
|
93
91
|
- copy `starter/lefthook.template.yml` to `lefthook.yml` and
|
|
94
92
|
`starter/.github/workflows/docs-check.yml` to `.github/workflows/docs-check.yml`
|
|
95
93
|
when the target project is ready for standard guardrails
|
|
96
|
-
- for an `engineering-runtime` target, install the three host-hook starter files
|
|
97
|
-
or merge their Stop/SubagentStop entries into the target's existing host
|
|
98
|
-
config:
|
|
99
|
-
- `.codex/hooks.json`
|
|
100
|
-
- `.claude/settings.json`
|
|
101
|
-
- `.agents/hooks.json`
|
|
102
|
-
- prefer `pro-gov sync --apply-host-hooks --profile engineering-runtime` for
|
|
103
|
-
that merge; it preserves consumer `PreToolUse`, other events, other top-level
|
|
104
|
-
keys, and non-PGS Stop/SubagentStop entries
|
|
105
94
|
- run `doc-gov doctor` after wiring guardrails to verify they are actually
|
|
106
95
|
connected
|
|
107
|
-
- run `pro-gov doctor --strict-hooks` after wiring host hooks to prove the
|
|
108
|
-
target has the expected host-hook configuration for Codex, Claude Code, and
|
|
109
|
-
Antigravity
|
|
110
96
|
- treat the npm package as the CLI source and the local `docs/governance/`
|
|
111
97
|
files as the project's checked-in governance contract
|
|
112
98
|
|
|
@@ -116,7 +102,6 @@ pnpm pro-gov init --profile engineering-runtime --dry-run
|
|
|
116
102
|
pnpm pro-gov init --profile engineering-runtime --apply
|
|
117
103
|
pnpm doc-gov scan
|
|
118
104
|
pnpm pro-gov sync --check --profile engineering-runtime
|
|
119
|
-
pnpm pro-gov sync --apply-host-hooks --profile engineering-runtime
|
|
120
105
|
```
|
|
121
106
|
|
|
122
107
|
Use `--apply` only for a fresh target. Existing projects normally already own
|
|
@@ -211,13 +196,10 @@ The project must define local lanes and proof commands.
|
|
|
211
196
|
Do not copy the upstream root `integrations/` directory into target projects by default.
|
|
212
197
|
If a project needs local external-workflow guidance, keep it thin in `AGENTS.md` or put project-specific notes under `docs/reference/integrations/`.
|
|
213
198
|
|
|
214
|
-
For engineering projects,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
`pro-gov learn capture` as the fallback capture path and report
|
|
219
|
-
`Compound Gate: ran fallback capture -> <path>`. Full CE workflows require an
|
|
220
|
-
explicit user request.
|
|
199
|
+
For engineering projects, normal execution belongs to the AI host and the
|
|
200
|
+
project's own proof commands. Matt Pocock's skills remain available as a
|
|
201
|
+
lightweight library and trigger only when their narrow descriptions match; they
|
|
202
|
+
are not a mandatory pipeline or workflow owner.
|
|
221
203
|
|
|
222
204
|
Use PGS Learning Recall before non-trivial work:
|
|
223
205
|
|
|
@@ -225,22 +207,10 @@ Use PGS Learning Recall before non-trivial work:
|
|
|
225
207
|
pro-gov learn recall --query "<task summary>"
|
|
226
208
|
```
|
|
227
209
|
|
|
228
|
-
This reads the project's existing `docs/solutions/**` and `CONCEPTS.md` records
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
The host-hook gate is deliberately small. It does not make Compound Engineering
|
|
233
|
-
the main workflow. Starter hooks default to `--compound-gate-mode off`, so they
|
|
234
|
-
prove the wiring without interrupting the main session. Switch a target to
|
|
235
|
-
`--compound-gate-mode lite` for a short reminder, or `--compound-gate-mode
|
|
236
|
-
strict` when a project intentionally wants the old blocking exit gate. In
|
|
237
|
-
`lite` or `strict`, the hook checks whether a completion report says one of:
|
|
238
|
-
|
|
239
|
-
```text
|
|
240
|
-
Compound Gate: ran ce-compound -> <path>
|
|
241
|
-
Compound Gate: ran fallback capture -> <path>
|
|
242
|
-
Compound Gate: skipped -> <reason>
|
|
243
|
-
```
|
|
210
|
+
This reads the project's existing `docs/solutions/**` and `CONCEPTS.md` records.
|
|
211
|
+
After verified work, use `capture-learning` only when the result is genuinely
|
|
212
|
+
reusable. The skill calls `pro-gov learn capture`; no exit hook or completion
|
|
213
|
+
ceremony is required.
|
|
244
214
|
|
|
245
215
|
### Doc-Only
|
|
246
216
|
|
|
@@ -251,15 +221,9 @@ Add:
|
|
|
251
221
|
- AI-in-the-Loop rules linked from the project's external shared-rule source
|
|
252
222
|
- canon/provenance/archive rules in `docs/policy/best-practice-for-this-project.md`
|
|
253
223
|
|
|
254
|
-
Do not add
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
in the AI host, doc-only projects should use it only for a real reusable
|
|
258
|
-
learning that belongs in that workspace.
|
|
259
|
-
|
|
260
|
-
Ponytail is also optional. If it is installed, keep its global mode `off` and
|
|
261
|
-
activate it only for a bounded task or review after reading
|
|
262
|
-
`integrations/ponytail.md`.
|
|
224
|
+
Do not add engineering TDD workflow plugins or Directed Development by default.
|
|
225
|
+
Use `capture-learning` only for a real reusable lesson that belongs in that
|
|
226
|
+
workspace.
|
|
263
227
|
|
|
264
228
|
## Step 6: Create Current Work
|
|
265
229
|
|
|
@@ -301,7 +265,7 @@ For the v0.9 structural migration, use
|
|
|
301
265
|
Minimum:
|
|
302
266
|
|
|
303
267
|
```bash
|
|
304
|
-
pnpm pro-gov doctor
|
|
268
|
+
pnpm pro-gov doctor
|
|
305
269
|
pnpm doc-gov check
|
|
306
270
|
pnpm doc-gov router-check
|
|
307
271
|
pnpm doc-gov scan --check
|
|
@@ -311,22 +275,6 @@ pnpm doc-gov doctor
|
|
|
311
275
|
git diff --check
|
|
312
276
|
```
|
|
313
277
|
|
|
314
|
-
Use `pro-gov doctor --strict-hooks` for engineering-runtime projects. Doc-only
|
|
315
|
-
projects may omit strict host hooks unless they intentionally adopt the
|
|
316
|
-
engineering runtime profile.
|
|
317
|
-
|
|
318
|
-
`pro-gov doctor --strict-hooks` is a wiring check, not a live host simulation.
|
|
319
|
-
It proves the project has hook files that call `pro-gov host-hook`; PGS package
|
|
320
|
-
tests prove the expected Stop/SubagentStop behavior for `off`, `lite`, and
|
|
321
|
-
`strict` modes across the supported host schemas. After installing or changing
|
|
322
|
-
hooks, validate from a fresh AI session.
|
|
323
|
-
For Antigravity, a real invocation writes diagnostics under
|
|
324
|
-
`.git/pro-gov-hook-debug/` because the starter hook command sets
|
|
325
|
-
`PGS_HOST_HOOK_DEBUG=1`. Absence of a diagnostic file after a fresh
|
|
326
|
-
Antigravity session usually means the host did not load or run
|
|
327
|
-
`.agents/hooks.json`. The `.pro-gov/assets.json` `host` field records asset
|
|
328
|
-
placement only; it does not control runtime hook dispatch.
|
|
329
|
-
|
|
330
278
|
Engineering projects should also run their local verification ladder.
|
|
331
279
|
|
|
332
280
|
## Example: Migrating A Runtime Product
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
id: REF-AGENT-WORKFLOW-METHODOLOGY-COMPARISON
|
|
3
3
|
title: Agent Workflow Methodology Comparison
|
|
4
4
|
type: reference
|
|
5
|
-
status:
|
|
6
|
-
canonical:
|
|
5
|
+
status: superseded
|
|
6
|
+
canonical: false
|
|
7
7
|
owner: project
|
|
8
8
|
created: 2026-07-06
|
|
9
9
|
last_reviewed: 2026-07-06
|
|
@@ -18,10 +18,18 @@ pinned: false
|
|
|
18
18
|
related:
|
|
19
19
|
- REF-PUBLIC-RELEASE-CHECKLIST
|
|
20
20
|
- REF-DOWNSTREAM-PROJECT-REGISTRY
|
|
21
|
+
superseded_by: REF-RECOMMENDED-AGENT-TOOLING
|
|
21
22
|
---
|
|
22
23
|
|
|
23
24
|
# Agent Workflow Methodology Comparison
|
|
24
25
|
|
|
26
|
+
> Historical snapshot only. The current decision is documented in
|
|
27
|
+
> [Recommended Agent Tooling](recommended-agent-tooling.md): Superpowers,
|
|
28
|
+
> Compound Engineering, and Ponytail are retired from the installed PGS stack;
|
|
29
|
+
> Matt skills remain a trigger-based library, and `capture-learning` preserves
|
|
30
|
+
> the small reusable-learning loop. The older analysis below is retained as
|
|
31
|
+
> decision history, not current guidance.
|
|
32
|
+
|
|
25
33
|
本文比较 4 套 AI agent 工作方法,观察时间点是 2026-07-06:
|
|
26
34
|
|
|
27
35
|
1. **Superpowers**
|
|
@@ -6,14 +6,12 @@ status: stable
|
|
|
6
6
|
canonical: true
|
|
7
7
|
owner: human
|
|
8
8
|
created: 2026-06-21
|
|
9
|
-
last_reviewed: 2026-
|
|
9
|
+
last_reviewed: 2026-07-12
|
|
10
10
|
domain: adoption
|
|
11
11
|
tags:
|
|
12
12
|
- adoption
|
|
13
13
|
- tooling
|
|
14
|
-
-
|
|
15
|
-
- compound-engineering
|
|
16
|
-
- ponytail
|
|
14
|
+
- skills
|
|
17
15
|
pinned: false
|
|
18
16
|
related:
|
|
19
17
|
- REF-ADOPTION-PLAYBOOK
|
|
@@ -23,130 +21,35 @@ related:
|
|
|
23
21
|
|
|
24
22
|
# Recommended Agent Tooling
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
PGS keeps the default path small: Codex and the project router execute normal
|
|
25
|
+
work; tools and skills add capabilities only when their narrow trigger matches.
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
| Tool | Default | Purpose |
|
|
28
|
+
| --- | --- | --- |
|
|
29
|
+
| `@pieai/pro-gov` | required | Profiles, assets, learning recall/capture, portfolio checks |
|
|
30
|
+
| `@pieai/doc-gov` | required | Governed-document and router validation |
|
|
31
|
+
| mattpocock/skills | available | Optional specialist toolbox; no bootstrap or workflow owner |
|
|
32
|
+
| `capture-learning` | available | Save a verified reusable lesson after completed work |
|
|
33
|
+
| Superpowers | not installed | Retired mandatory workflow plugin |
|
|
34
|
+
| Compound Engineering | not installed | Retired; native PGS capture keeps the useful learning loop |
|
|
35
|
+
| Ponytail | not installed | Retired global mode/hooks; ordinary engineering judgment stays lean |
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- PGS labels the shelves, routes each job, and checks that the record is complete.
|
|
33
|
-
- Superpowers gives the class a reliable build-and-test routine.
|
|
34
|
-
- Compound Engineering keeps the class notebook of hard-won lessons.
|
|
35
|
-
- Ponytail is the adviser who asks, "Can we make this with fewer unnecessary
|
|
36
|
-
parts?"
|
|
37
|
-
|
|
38
|
-
Installing every tool does not mean every tool should run all the time.
|
|
39
|
-
|
|
40
|
-
## Recommendation Table
|
|
41
|
-
|
|
42
|
-
| Tool | Recommendation | Best fit | Default behavior |
|
|
43
|
-
| --- | --- | --- | --- |
|
|
44
|
-
| `@pieai/pro-gov` | Required for package-based PGS adoption | Projects adopting PGS starter/profile assets | Use its read-only discovery, init, sync, doctor, and Lens commands. |
|
|
45
|
-
| `@pieai/doc-gov` | Required for package-based PGS adoption | All governed PGS projects | Run document, router, manifest, link, hook, and CI checks. |
|
|
46
|
-
| Superpowers | Recommended for engineering/runtime projects | Apps, games, services, browser products, and other code-heavy work | Use the matching workflow when the selected PGS lane requires it. |
|
|
47
|
-
| Compound Engineering | Recommended for knowledge capture | Engineering projects that benefit from reusable learnings | Default to `ce-compound` as the post-work Compound Gate; use full CE workflows only when explicit. |
|
|
48
|
-
| Ponytail | Recommended as an installed, optional adviser | Projects that need help resisting unnecessary complexity | Keep the global mode `off`; activate it explicitly for a bounded task or review. |
|
|
49
|
-
|
|
50
|
-
## Superpowers
|
|
51
|
-
|
|
52
|
-
Superpowers owns engineering workflow discipline:
|
|
53
|
-
|
|
54
|
-
- brainstorming before creative implementation;
|
|
55
|
-
- implementation plans;
|
|
56
|
-
- test-driven development;
|
|
57
|
-
- systematic debugging;
|
|
58
|
-
- verification before completion;
|
|
59
|
-
- isolated worktree usage.
|
|
60
|
-
|
|
61
|
-
PGS routes the task first. Superpowers then runs inside the selected lane.
|
|
62
|
-
|
|
63
|
-
Engineering/runtime projects usually benefit from Superpowers. Doc-only
|
|
64
|
-
projects should not inherit the full engineering ceremony unless their current
|
|
65
|
-
task actually involves runtime or code behavior.
|
|
66
|
-
|
|
67
|
-
Read `integrations/superpowers.md` for the exact boundary.
|
|
68
|
-
|
|
69
|
-
## Compound Engineering
|
|
70
|
-
|
|
71
|
-
Compound Engineering is useful for preserving lessons that should make future
|
|
72
|
-
work easier. In PGS-governed projects, its default role is the post-work
|
|
73
|
-
Compound Gate:
|
|
74
|
-
|
|
75
|
-
```text
|
|
76
|
-
Superpowers completes verified work
|
|
77
|
-
-> decide with CE criteria whether reusable learning exists
|
|
78
|
-
-> run ce-compound or report a skip reason
|
|
79
|
-
-> if CE is unavailable in this host, run pro-gov learn capture as fallback
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
PGS Learning Recall is the matching pre-work step:
|
|
37
|
+
Before non-trivial work:
|
|
83
38
|
|
|
84
39
|
```bash
|
|
85
40
|
pro-gov learn recall --query "<task summary>"
|
|
86
41
|
```
|
|
87
42
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
The fallback path is deliberately smaller than CE:
|
|
43
|
+
After verified work, `capture-learning` first checks for an existing lesson and
|
|
44
|
+
then calls this only when a new reusable lesson exists:
|
|
92
45
|
|
|
93
46
|
```bash
|
|
94
47
|
pro-gov learn capture --title "<learning title>" --summary "<reusable lesson>"
|
|
95
48
|
```
|
|
96
49
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
workflow into PGS.
|
|
100
|
-
|
|
101
|
-
Do not make routine tasks choose between Superpowers and Compound Engineering as
|
|
102
|
-
competing default engineering processes. Use CE's full `ce-plan`, `ce-work`, or
|
|
103
|
-
`lfg` flow only when the user explicitly asks for it.
|
|
104
|
-
|
|
105
|
-
Read `integrations/compound-engineering.md` for artifact ownership and Doc Gov
|
|
106
|
-
compatibility.
|
|
107
|
-
|
|
108
|
-
## Ponytail
|
|
109
|
-
|
|
110
|
-
Ponytail advises the AI to prefer smaller, less speculative solutions. That can
|
|
111
|
-
reduce unnecessary code, files, dependencies, and abstractions.
|
|
112
|
-
|
|
113
|
-
Keep its global mode `off`. When a low-risk task needs a simplicity comparison,
|
|
114
|
-
test `lite` in an isolated session first. Use `full` only as an optional stress
|
|
115
|
-
test after checking that requirements, tests, verification, security,
|
|
116
|
-
accessibility, and durable evidence remain intact.
|
|
117
|
-
|
|
118
|
-
Ponytail is not a replacement for PGS or Superpowers. Shorter work is valuable
|
|
119
|
-
only when it is still the complete, proven work the project asked for.
|
|
120
|
-
|
|
121
|
-
Read `integrations/ponytail.md` for the mode policy and comparison protocol.
|
|
122
|
-
|
|
123
|
-
## A Practical Default
|
|
124
|
-
|
|
125
|
-
For an engineering/runtime project:
|
|
126
|
-
|
|
127
|
-
```text
|
|
128
|
-
install PGS packages
|
|
129
|
-
-> keep Superpowers available for engineering workflows
|
|
130
|
-
-> run pro-gov learn recall before non-trivial work
|
|
131
|
-
-> use Compound Engineering's ce-compound as the post-work learning tail
|
|
132
|
-
-> install Ponytail but keep global mode off
|
|
133
|
-
-> activate Ponytail only when a bounded simplicity review would help
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
For a doc-only project:
|
|
137
|
-
|
|
138
|
-
```text
|
|
139
|
-
install PGS packages
|
|
140
|
-
-> use doc-only routing and evidence rules
|
|
141
|
-
-> add engineering workflow tools only for a real engineering task
|
|
142
|
-
-> keep Ponytail optional and off by default
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## What PGS Does Not Do
|
|
50
|
+
Do not add Stop/SubagentStop workflow reminder hooks. Verification belongs in
|
|
51
|
+
the task and the project's real command ladder.
|
|
146
52
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
declare required Codex or Claude Code plugin ids in `hostTooling`; `portfolio
|
|
151
|
-
doctor` then verifies installed/enabled state and reports observed versions.
|
|
152
|
-
The host's native plugin manager remains the installation and update authority.
|
|
53
|
+
Host plugins that provide external capabilities—such as GitHub, Vercel,
|
|
54
|
+
Supabase, browsers, documents, or device control—remain independent choices.
|
|
55
|
+
PGS does not require them unless a portfolio manifest explicitly declares one.
|
|
@@ -1,164 +1,11 @@
|
|
|
1
|
-
# Compound Engineering Integration
|
|
1
|
+
# Compound Engineering Integration (Retired)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
vendor, rewrite, or require the Compound Engineering plugin.
|
|
3
|
+
PGS no longer requires the Compound Engineering plugin or a Compound Gate.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
The retained idea is small: verified work sometimes produces a reusable lesson.
|
|
6
|
+
The PGS-owned `capture-learning` skill decides whether a lesson is worth keeping,
|
|
7
|
+
checks for duplicates, and writes it through `pro-gov learn capture`. There are
|
|
8
|
+
no Stop hooks, modes, plugin configuration, or mandatory final-report ceremony.
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- PGS is the traffic desk and filing cabinet.
|
|
11
|
-
- Superpowers is the default cooking process for engineering work.
|
|
12
|
-
- Compound Engineering's `ce-compound` is the recipe notebook written after a
|
|
13
|
-
non-trivial dish is proven to work.
|
|
14
|
-
- `pro-gov learn recall` is the recipe-card search before the next dish starts.
|
|
15
|
-
- Ponytail is the cost and complexity adviser.
|
|
16
|
-
|
|
17
|
-
The default path is one main process with one learning tail. Do not make every
|
|
18
|
-
task choose between two construction processes.
|
|
19
|
-
|
|
20
|
-
## Default Rule
|
|
21
|
-
|
|
22
|
-
For PGS-governed engineering/runtime projects, Superpowers remains the default
|
|
23
|
-
engineering workflow. Compound Engineering is installed for its knowledge
|
|
24
|
-
capture loop by default, not as a second default execution engine.
|
|
25
|
-
|
|
26
|
-
Use this order:
|
|
27
|
-
|
|
28
|
-
1. PGS routes the task and selects the project lane.
|
|
29
|
-
2. For non-trivial engineering work, run Learning Recall against the task
|
|
30
|
-
summary and read relevant prior lessons.
|
|
31
|
-
3. Superpowers handles the normal engineering workflow when that lane needs one.
|
|
32
|
-
4. Ponytail may run as an explicit complexity review when useful.
|
|
33
|
-
5. The agent must pass the Compound Gate before final reporting.
|
|
34
|
-
6. Doc Gov validates governed documentation and ignores CE-owned external
|
|
35
|
-
artifacts.
|
|
36
|
-
|
|
37
|
-
## Learning Recall
|
|
38
|
-
|
|
39
|
-
CE writes the reusable lesson. PGS recalls it.
|
|
40
|
-
|
|
41
|
-
Before non-trivial implementation, debugging, release, architecture, or
|
|
42
|
-
portfolio-sync work, run:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
pro-gov learn recall --query "<task summary>"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Read the relevant hits before changing files. A no-hit result is acceptable;
|
|
49
|
-
do not scan every `docs/solutions/**` file by hand. The recall command is a
|
|
50
|
-
small search surface over `docs/solutions/**` and `CONCEPTS.md`, not a second
|
|
51
|
-
workflow engine, vector database, or CE replacement.
|
|
52
|
-
|
|
53
|
-
## Compound Gate
|
|
54
|
-
|
|
55
|
-
Every completed non-trivial engineering task must pass the Compound Gate:
|
|
56
|
-
|
|
57
|
-
```text
|
|
58
|
-
Was there reusable learning?
|
|
59
|
-
-> yes: run compound-engineering:ce-compound
|
|
60
|
-
-> yes, but CE is unavailable: run pro-gov learn capture
|
|
61
|
-
-> no: report "Compound Gate: skipped" and give the reason
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Use Compound Engineering's own capture criteria when CE is available. PGS
|
|
65
|
-
fallback capture exists only so hosts without the CE plugin can still preserve a
|
|
66
|
-
searchable lesson. It is a minimal backup path, not a copied CE workflow and not
|
|
67
|
-
a separate default process.
|
|
68
|
-
|
|
69
|
-
Run `ce-compound` when the completed work produced a reusable lesson, such as:
|
|
70
|
-
|
|
71
|
-
- a non-obvious bug diagnosis;
|
|
72
|
-
- a repeated pattern or root cause;
|
|
73
|
-
- a wrong assumption about a shared dependency, framework, convention, or tool;
|
|
74
|
-
- a new reusable architecture, workflow, verification, or tooling pattern;
|
|
75
|
-
- owner intent that the lesson should be remembered.
|
|
76
|
-
|
|
77
|
-
Skip compounding when the work was:
|
|
78
|
-
|
|
79
|
-
- unverified or still in progress;
|
|
80
|
-
- a trivial typo or obvious one-line fix;
|
|
81
|
-
- mechanical formatting, dependency bumping, or bulk sync work;
|
|
82
|
-
- already covered by an existing `docs/solutions/**` learning.
|
|
83
|
-
|
|
84
|
-
The skip must be explicit in the final report. This prevents agents from
|
|
85
|
-
forgetting the gate while avoiding a low-value knowledge dump.
|
|
86
|
-
|
|
87
|
-
If `compound-engineering:ce-compound` is unavailable in the current host, write
|
|
88
|
-
a minimal fallback record:
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
pro-gov learn capture \
|
|
92
|
-
--title "<learning title>" \
|
|
93
|
-
--summary "<the reusable lesson future agents should recall>"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
The fallback record should capture only verified, reusable learning. It should
|
|
97
|
-
not document unfinished work, trivial changes, or lessons already covered by an
|
|
98
|
-
existing `docs/solutions/**` record. Report it as:
|
|
99
|
-
|
|
100
|
-
```text
|
|
101
|
-
Compound Gate: ran fallback capture -> docs/solutions/<category>/<file>.md
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## When CE May Own The Main Flow
|
|
105
|
-
|
|
106
|
-
Use the full Compound Engineering flow only when the user explicitly names it,
|
|
107
|
-
for example `ce-plan`, `ce-work`, `lfg`, or "use Compound Engineering full
|
|
108
|
-
workflow."
|
|
109
|
-
|
|
110
|
-
Do not auto-select between Superpowers and Compound Engineering for routine
|
|
111
|
-
work. Automatic choice adds cognitive load and makes sessions harder to reason
|
|
112
|
-
about.
|
|
113
|
-
|
|
114
|
-
## CE-Owned Artifacts
|
|
115
|
-
|
|
116
|
-
The following paths are Compound Engineering external artifacts:
|
|
117
|
-
|
|
118
|
-
| Path | Owner | Rule |
|
|
119
|
-
| --- | --- | --- |
|
|
120
|
-
| `docs/solutions/**` | CE | Knowledge store written by `ce-compound`; uses CE frontmatter. |
|
|
121
|
-
| `docs/brainstorms/**` | CE | CE brainstorm artifacts; explicit CE use only. |
|
|
122
|
-
| `docs/pulse-reports/**` | CE | CE product-pulse reports; explicit CE use only. |
|
|
123
|
-
| `docs/plans/*` | CE | CE-native root plan artifacts; explicit CE full workflow only. |
|
|
124
|
-
|
|
125
|
-
PGS-owned plans remain:
|
|
126
|
-
|
|
127
|
-
```text
|
|
128
|
-
docs/plans/active/**
|
|
129
|
-
docs/plans/completed/**
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Doc Gov must not require CE-owned artifacts to use PGS frontmatter. The
|
|
133
|
-
directory decides which schema applies:
|
|
134
|
-
|
|
135
|
-
```text
|
|
136
|
-
docs/solutions/** and other CE-owned paths -> CE schema
|
|
137
|
-
PGS governed docs -> Doc Gov schema
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Do not try to make one YAML block satisfy both systems.
|
|
141
|
-
|
|
142
|
-
## Root Files
|
|
143
|
-
|
|
144
|
-
Compound Engineering may read project root files when present, but PGS-governed
|
|
145
|
-
projects keep these boundaries:
|
|
146
|
-
|
|
147
|
-
| File | Rule |
|
|
148
|
-
| --- | --- |
|
|
149
|
-
| `STRATEGY.md` | CE must not create or overwrite this by default in PGS-governed projects. Product strategy belongs in the project's canon/control plane unless explicitly adopted. |
|
|
150
|
-
| `CONCEPTS.md` | Allowed as a CE vocabulary helper, but it does not replace `docs/canon/**` or project runtime truth. |
|
|
151
|
-
| `AGENTS.md` / `CLAUDE.md` | CE discoverability edits must stay short and must not replace the PGS router. |
|
|
152
|
-
| `.compound-engineering/config.local.yaml` | Machine-local CE config; keep gitignored. |
|
|
153
|
-
|
|
154
|
-
## Completion Report
|
|
155
|
-
|
|
156
|
-
When a task finishes, report one of:
|
|
157
|
-
|
|
158
|
-
```text
|
|
159
|
-
Compound Gate: ran ce-compound -> docs/solutions/<category>/<file>.md
|
|
160
|
-
Compound Gate: ran fallback capture -> docs/solutions/<category>/<file>.md
|
|
161
|
-
Compound Gate: skipped -> <reason>
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
This is the durable signal that the learning tail was considered.
|
|
10
|
+
Historical `docs/solutions/**` records remain valid inputs to
|
|
11
|
+
`pro-gov learn recall`.
|
|
@@ -4,10 +4,8 @@ Directed Development is an optional workflow for mixed, cross-domain, interdepen
|
|
|
4
4
|
|
|
5
5
|
It is not the default for every task.
|
|
6
6
|
|
|
7
|
-
It is
|
|
8
|
-
|
|
9
|
-
ordered dependency-aware Blocks before the selected lane uses its normal
|
|
10
|
-
workflow. Superpowers still owns the engineering process inside that lane.
|
|
7
|
+
It is a small PGS routing rule for cases where product work must be split into
|
|
8
|
+
ordered dependency-aware Blocks before execution.
|
|
11
9
|
|
|
12
10
|
## Boundary
|
|
13
11
|
|
|
@@ -21,7 +19,7 @@ Directed Development may define:
|
|
|
21
19
|
Directed Development must not define:
|
|
22
20
|
|
|
23
21
|
- artifact locations
|
|
24
|
-
-
|
|
22
|
+
- optional skill invocation rules
|
|
25
23
|
- project document paths
|
|
26
24
|
- project lane names
|
|
27
25
|
- runtime truth
|
|
@@ -33,7 +31,7 @@ not replace the project router.
|
|
|
33
31
|
|
|
34
32
|
BDD-style scenarios are allowed only as acceptance language for a DD Block. They
|
|
35
33
|
do not turn Directed Development into a default BDD ceremony and do not replace
|
|
36
|
-
|
|
34
|
+
project-specific testing, debugging, or verification.
|
|
37
35
|
|
|
38
36
|
## Trigger
|
|
39
37
|
|