@pieai/pro-gov 0.3.6 → 0.3.8

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 CHANGED
@@ -11,6 +11,7 @@ station:
11
11
  - `pro-gov` shows which reusable project-governance parts are present or missing;
12
12
  - `@pieai/doc-gov` checks documents, routing, links, hooks, and CI;
13
13
  - Superpowers may provide the engineering process;
14
+ - Compound Engineering may provide the post-work learning capture tail;
14
15
  - Ponytail may provide an optional simplicity review.
15
16
 
16
17
  The current `pro-gov` release is conservative by design. Public init and sync
@@ -47,8 +48,9 @@ pro-gov portfolio plan --config /path/to/portfolio.json --target web-app --json
47
48
  pro-gov lens inspect --target .
48
49
  pro-gov lens report --target . --out .pro-gov/lens-report.md
49
50
  pro-gov init --profile engineering-runtime --dry-run
51
+ pro-gov init --profile engineering-runtime --apply
50
52
  pro-gov init --profile doc-only --dry-run
51
- pro-gov sync --check
53
+ pro-gov sync --check --profile engineering-runtime
52
54
  pro-gov doctor
53
55
  ```
54
56
 
@@ -59,18 +61,20 @@ What these commands do:
59
61
  | `assets list` | Shows packaged assets and public registry metadata. | No |
60
62
  | `assets discover` | Detects local project signals. | No |
61
63
  | `assets recommend` | Suggests relevant asset bundles with reasons. | No |
62
- | `portfolio check` | Validates an external portfolio manifest owned by the user's control repo. | No |
63
- | `portfolio plan` | Builds dry-run asset plans for manifest targets. | No |
64
+ | `portfolio check` | Validates an external portfolio manifest owned by the user or organization. | No |
65
+ | `portfolio plan` | Builds dry-run asset plans for manifest targets, using packaged public assets unless a full checkout is supplied. | No |
64
66
  | `lens inspect` | Produces ProjectLens-style local evidence. | No |
65
67
  | `lens report` | Writes the requested report file. | Only the explicit output |
66
68
  | `init --dry-run` | Shows starter/profile files that would be needed. | No |
67
- | `sync --check` | Compares local starter files with packaged assets. | No |
69
+ | `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 |
70
+ | `sync --check` | Strictly compares shared core files and checks only the presence of project-local seed files. | No |
68
71
  | `doctor` | Checks required packaged assets and whether `doc-gov` is available. | No |
69
72
 
70
73
  ## Full Checkout Commands
71
74
 
72
- A full Project Governance System checkout may also manage Yuanfei's local
73
- agent-asset registry through reviewed plans:
75
+ The npm package can install reviewed public agent assets through an explicit
76
+ plan. A full Project Governance System checkout can additionally use its
77
+ maintainer-local asset registry:
74
78
 
75
79
  ```bash
76
80
  pro-gov assets plan --bundle base-governance --target . --out .pro-gov/asset-plan.json
@@ -109,7 +113,9 @@ the private-source and public-copy hashes recorded during promotion.
109
113
  deterministic recommendations.
110
114
  - `pro-gov portfolio check|plan` reads an external portfolio manifest. Real
111
115
  downstream project lists belong in the user's control repository, not in this
112
- public package.
116
+ public package. The manifest does not require a private headquarters repo:
117
+ npm users can omit `controlPlane` and `executionEngine`, and PGS will use the
118
+ reviewed public assets packaged with `@pieai/pro-gov`.
113
119
  - `pro-gov assets plan|apply|check` manages local assets only from an explicit,
114
120
  reviewable plan in a full upstream checkout.
115
121
  - `pro-gov lens inspect|report` provides read-only inspection and an explicit
@@ -117,14 +123,22 @@ the private-source and public-copy hashes recorded during promotion.
117
123
  - `doc-gov` remains the document, router, manifest, link, hook, CI, and migration
118
124
  validator.
119
125
  - Product truth stays in the target project.
120
- - Write-mode `pro-gov init --apply` is not enabled in this release.
121
- - Superpowers and Ponytail are external tools, not bundled runtime dependencies.
126
+ - `pro-gov init --apply` is intentionally fresh-target only. Existing projects
127
+ use `--dry-run` and a deliberate migration so local truth is never overwritten.
128
+ - Superpowers, Compound Engineering, and Ponytail are external tools, not
129
+ bundled runtime dependencies.
122
130
 
123
131
  ## Recommended Companion Tools
124
132
 
125
133
  Superpowers is recommended for engineering/runtime projects that need
126
134
  brainstorming, plans, TDD, debugging, verification, and worktree discipline.
127
135
 
136
+ Compound Engineering is recommended for knowledge capture after verified
137
+ engineering work. The default PGS pattern is a Compound Gate: run
138
+ `ce-compound` when there is reusable learning, or report why compounding was
139
+ skipped. Full CE workflows such as `ce-plan`, `ce-work`, and `lfg` remain
140
+ explicit user choices.
141
+
128
142
  Ponytail can be installed as an optional complexity adviser. Keep its global mode
129
143
  `off`; test `lite` in one isolated task before considering a stronger mode.
130
144
  Ponytail must not remove requested scope, tests, safety, accessibility, or proof.
@@ -24,8 +24,9 @@ Use this when a project wants to migrate into the Project Governance System.
24
24
 
25
25
  Before choosing external AI workflow tools, read
26
26
  `docs/reference/adoption/recommended-agent-tooling.md`. It explains which PGS
27
- packages are required, when Superpowers is recommended, and why Ponytail should
28
- remain globally `off` until it is tested in an isolated task.
27
+ packages are required, when Superpowers is recommended, how Compound
28
+ Engineering's `ce-compound` fits as a post-work learning tail, and why Ponytail
29
+ should remain globally `off` until it is tested in an isolated task.
29
30
 
30
31
  ## The Short Version
31
32
 
@@ -70,8 +71,15 @@ Current package-based method:
70
71
  - preserve project-local package scripts
71
72
  - run `pro-gov init --profile <engineering-runtime|doc-only> --dry-run` to see
72
73
  the starter files that would be installed
73
- - run `pro-gov sync --check` to compare reusable starter files without changing
74
- the project
74
+ - for a fresh target, run `pro-gov init --profile <profile> --apply`; it refuses
75
+ the entire operation if any destination already exists
76
+ - optional Lefthook and GitHub Actions guardrails remain reference assets; add
77
+ them deliberately when the target has the matching package manager and CI
78
+ - for an existing target, keep the dry-run output as the migration checklist and
79
+ merge local truth deliberately instead of asking PGS to overwrite it
80
+ - run `pro-gov sync --check --profile <profile>` to compare shared core files;
81
+ project-local router, policy, documentation map, and current-work files are
82
+ checked for presence rather than byte equality
75
83
  - run `pro-gov assets discover --target <path>` and
76
84
  `pro-gov assets recommend --target <path>` to collect local project signals
77
85
  and suggested agent-asset bundles without changing the project
@@ -89,14 +97,16 @@ Current package-based method:
89
97
  - treat the npm package as the CLI source and the local `docs/governance/`
90
98
  files as the project's checked-in governance contract
91
99
 
92
- Later Stage 2 method:
93
-
94
100
  ```bash
95
101
  pnpm add -D @pieai/pro-gov @pieai/doc-gov
102
+ pnpm pro-gov init --profile engineering-runtime --dry-run
103
+ pnpm pro-gov init --profile engineering-runtime --apply
104
+ pnpm doc-gov scan
105
+ pnpm pro-gov sync --check --profile engineering-runtime
96
106
  ```
97
107
 
98
- Do not jump to write-mode installation until package installation is
99
- deliberately enabled and the read-only checks are understood.
108
+ Use `--apply` only for a fresh target. Existing projects normally already own
109
+ some of the same paths, so keep them on the dry-run migration path.
100
110
  Do not use an absolute-path script as the default for collaborators; it is fine
101
111
  for one local machine, but it is brittle once a repo moves or another person
102
112
  checks it out.
@@ -129,6 +139,12 @@ The plan file is the safety gate. Review it before applying. It creates managed
129
139
  symlinks and `.pro-gov/assets.lock.json`; it should not overwrite unmanaged
130
140
  project files.
131
141
 
142
+ Managed symlinks are relative by default. A target project's normal
143
+ `assets check` validates the local lock and linked content without requiring the
144
+ public package to know a maintainer's private registry. Maintainers can add
145
+ `--strict-registry`, or run `pro-gov portfolio assets-check --config
146
+ /path/to/portfolio.json`, when they need central private-registry validation.
147
+
132
148
  When a maintainer promotes a private asset into `public-agent-assets/`, the
133
149
  public registry must record the private-source hash and the public-copy hash.
134
150
  Run this in the upstream checkout before publishing:
@@ -177,6 +193,11 @@ The project must define local lanes and proof commands.
177
193
  Do not copy the upstream root `integrations/` directory into target projects by default.
178
194
  If a project needs local external-workflow guidance, keep it thin in `AGENTS.md` or put project-specific notes under `docs/reference/integrations/`.
179
195
 
196
+ For engineering projects, keep Superpowers as the default engineering workflow.
197
+ Use Compound Engineering by default only as the post-work Compound Gate:
198
+ `ce-compound` captures reusable lessons when they exist; otherwise the agent
199
+ reports a skip reason. Full CE workflows require an explicit user request.
200
+
180
201
  ### Doc-Only
181
202
 
182
203
  Add:
@@ -188,6 +209,10 @@ Add:
188
209
 
189
210
  Do not add Superpowers TDD or Directed Development by default.
190
211
 
212
+ Do not add the Compound Engineering main workflow by default. If CE is installed
213
+ in the AI host, doc-only projects should use it only for a real reusable
214
+ learning that belongs in that workspace.
215
+
191
216
  Ponytail is also optional. If it is installed, keep its global mode `off` and
192
217
  activate it only for a bounded task or review after reading
193
218
  `integrations/ponytail.md`.
@@ -251,7 +276,8 @@ If the target project is an app/runtime project:
251
276
  2. Inventory existing docs and current runtime truth.
252
277
  3. Install `@pieai/pro-gov` and `@pieai/doc-gov`, or keep the existing local
253
278
  tool copy until the project is ready to move scripts and CI together.
254
- 4. Add governed `docs/governance/` and `docs/policy/` starter files.
279
+ 4. Preview the selected profile. Use fresh-target `init --apply`, or merge the
280
+ starter files deliberately when the project already has local truth.
255
281
  5. Write `docs/policy/best-practice-for-this-project.md` with project-specific truth, stack, lanes, and verification commands.
256
282
  6. Create `docs/reference/execution/current-work.md`.
257
283
  7. Move current plans into `docs/plans/active/`; move finished plans into `docs/plans/completed/`.
@@ -22,7 +22,8 @@ related:
22
22
 
23
23
  This file answers the most important beginner question:
24
24
 
25
- > If Non-Heroes already has doc-gov, and this central repo now exists, who owns what?
25
+ > If a project adopts PGS, which parts stay upstream and which parts belong to
26
+ > that project?
26
27
 
27
28
  ## Short Answer
28
29
 
@@ -55,7 +56,7 @@ a hard-coded local checkout path. If a local automation or handoff prompt truly
55
56
  needs a clone path, write it as `<local ProjectGovernanceSystem checkout path>`
56
57
  and keep it out of reusable router text.
57
58
 
58
- ## Does Non-Heroes Now Import This Repo?
59
+ ## Does A Target Project Import This Whole Repository?
59
60
 
60
61
  Not yet automatically.
61
62
 
@@ -64,10 +65,10 @@ the user's external portfolio manifest. See
64
65
  `docs/reference/adoption/downstream-project-registry.md` for the public
65
66
  manifest contract.
66
67
 
67
- Early downstream projects had local working copies because the system was born
68
- inside active projects. This central repo is now the upstream source, and
69
- downstream projects should use `@pieai/doc-gov`, `@pieai/pro-gov`, and their
70
- selected profile instead of keeping private CLI or starter copies.
68
+ Early adopters may have local working copies because governance often starts
69
+ inside an active project. The public packages are now the reusable source, and
70
+ target projects should use `@pieai/doc-gov`, `@pieai/pro-gov`, and their selected
71
+ profile instead of keeping private CLI or starter copies.
71
72
 
72
73
  ## Why Not Auto-Symlink Everything?
73
74
 
@@ -91,21 +92,19 @@ projects need different local lane profiles. The safe rule:
91
92
  - project-local best-practice files remain in each project's `docs/policy/`
92
93
  - product artifacts outside `docs/**` stay in the product package unless a project explicitly opts them into doc-gov
93
94
 
94
- ## How Non-Heroes Improvements Flow Upstream
95
+ ## How Target-Project Improvements Flow Upstream
95
96
 
96
- When Non-Heroes discovers a better governance rule:
97
+ When a target project discovers a better governance rule:
97
98
 
98
- 1. Ask: is this core, profile, or Non-Heroes-local?
99
+ 1. Ask: is this core, profile, or target-local?
99
100
  2. If core, update this repo.
100
101
  3. If profile, update the relevant `profiles/**`.
101
- 4. If Non-Heroes-local, keep it in Non-Heroes.
102
+ 4. If it is target-local, keep it in the target project.
102
103
  5. Other projects then upgrade from this central source.
103
104
 
104
- Example:
105
-
106
- - An active project discovered active plans were piling up.
107
- - The generic fix is a `completed` lifecycle state.
108
- - Therefore `completed` belongs in this repo's doc-gov core.
105
+ Example: one active project discovers that completed plans are piling up. If the
106
+ generic fix is a reusable `completed` lifecycle state, that state belongs in the
107
+ PGS core; the project's actual completed plans remain local.
109
108
 
110
109
  ## How Downstream Projects Upgrade
111
110
 
@@ -12,6 +12,7 @@ tags:
12
12
  - adoption
13
13
  - tooling
14
14
  - superpowers
15
+ - compound-engineering
15
16
  - ponytail
16
17
  pinned: false
17
18
  related:
@@ -30,6 +31,7 @@ Imagine a school workshop:
30
31
 
31
32
  - PGS labels the shelves, routes each job, and checks that the record is complete.
32
33
  - Superpowers gives the class a reliable build-and-test routine.
34
+ - Compound Engineering keeps the class notebook of hard-won lessons.
33
35
  - Ponytail is the adviser who asks, "Can we make this with fewer unnecessary
34
36
  parts?"
35
37
 
@@ -42,6 +44,7 @@ Installing every tool does not mean every tool should run all the time.
42
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. |
43
45
  | `@pieai/doc-gov` | Required for package-based PGS adoption | All governed PGS projects | Run document, router, manifest, link, hook, and CI checks. |
44
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. |
45
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. |
46
49
 
47
50
  ## Superpowers
@@ -63,6 +66,25 @@ task actually involves runtime or code behavior.
63
66
 
64
67
  Read `integrations/superpowers.md` for the exact boundary.
65
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
+ ```
80
+
81
+ Do not make routine tasks choose between Superpowers and Compound Engineering as
82
+ competing default engineering processes. Use CE's full `ce-plan`, `ce-work`, or
83
+ `lfg` flow only when the user explicitly asks for it.
84
+
85
+ Read `integrations/compound-engineering.md` for artifact ownership and Doc Gov
86
+ compatibility.
87
+
66
88
  ## Ponytail
67
89
 
68
90
  Ponytail advises the AI to prefer smaller, less speculative solutions. That can
@@ -85,6 +107,7 @@ For an engineering/runtime project:
85
107
  ```text
86
108
  install PGS packages
87
109
  -> keep Superpowers available for engineering workflows
110
+ -> use Compound Engineering's ce-compound as the post-work learning tail
88
111
  -> install Ponytail but keep global mode off
89
112
  -> activate Ponytail only when a bounded simplicity review would help
90
113
  ```
@@ -103,4 +126,3 @@ install PGS packages
103
126
  PGS does not automatically install, enable, update, or remove these external
104
127
  plugins in another person's AI host. It documents the recommended boundary and
105
128
  lets each project or user adopt tools deliberately.
106
-
@@ -0,0 +1,124 @@
1
+ # Compound Engineering Integration
2
+
3
+ Compound Engineering is an external plugin/system. This repository does not
4
+ vendor, rewrite, or require the Compound Engineering plugin.
5
+
6
+ ## The Beginner Version
7
+
8
+ Think of an AI project as a workshop:
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
+ - Ponytail is the cost and complexity adviser.
15
+
16
+ The default path is one main process with one learning tail. Do not make every
17
+ task choose between two construction processes.
18
+
19
+ ## Default Rule
20
+
21
+ For PGS-governed engineering/runtime projects, Superpowers remains the default
22
+ engineering workflow. Compound Engineering is installed for its knowledge
23
+ capture loop by default, not as a second default execution engine.
24
+
25
+ Use this order:
26
+
27
+ 1. PGS routes the task and selects the project lane.
28
+ 2. Superpowers handles the normal engineering workflow when that lane needs one.
29
+ 3. Ponytail may run as an explicit complexity review when useful.
30
+ 4. The agent must pass the Compound Gate before final reporting.
31
+ 5. Doc Gov validates governed documentation and ignores CE-owned external
32
+ artifacts.
33
+
34
+ ## Compound Gate
35
+
36
+ Every completed non-trivial engineering task must pass the Compound Gate:
37
+
38
+ ```text
39
+ Was there reusable learning?
40
+ -> yes: run compound-engineering:ce-compound
41
+ -> no: report "Compound Gate: skipped" and give the reason
42
+ ```
43
+
44
+ Use Compound Engineering's own capture criteria. Do not invent a separate PGS
45
+ scoring system.
46
+
47
+ Run `ce-compound` when the completed work produced a reusable lesson, such as:
48
+
49
+ - a non-obvious bug diagnosis;
50
+ - a repeated pattern or root cause;
51
+ - a wrong assumption about a shared dependency, framework, convention, or tool;
52
+ - a new reusable architecture, workflow, verification, or tooling pattern;
53
+ - owner intent that the lesson should be remembered.
54
+
55
+ Skip compounding when the work was:
56
+
57
+ - unverified or still in progress;
58
+ - a trivial typo or obvious one-line fix;
59
+ - mechanical formatting, dependency bumping, or bulk sync work;
60
+ - already covered by an existing `docs/solutions/**` learning.
61
+
62
+ The skip must be explicit in the final report. This prevents agents from
63
+ forgetting the gate while avoiding a low-value knowledge dump.
64
+
65
+ ## When CE May Own The Main Flow
66
+
67
+ Use the full Compound Engineering flow only when the user explicitly names it,
68
+ for example `ce-plan`, `ce-work`, `lfg`, or "use Compound Engineering full
69
+ workflow."
70
+
71
+ Do not auto-select between Superpowers and Compound Engineering for routine
72
+ work. Automatic choice adds cognitive load and makes sessions harder to reason
73
+ about.
74
+
75
+ ## CE-Owned Artifacts
76
+
77
+ The following paths are Compound Engineering external artifacts:
78
+
79
+ | Path | Owner | Rule |
80
+ | --- | --- | --- |
81
+ | `docs/solutions/**` | CE | Knowledge store written by `ce-compound`; uses CE frontmatter. |
82
+ | `docs/brainstorms/**` | CE | CE brainstorm artifacts; explicit CE use only. |
83
+ | `docs/pulse-reports/**` | CE | CE product-pulse reports; explicit CE use only. |
84
+ | `docs/plans/*` | CE | CE-native root plan artifacts; explicit CE full workflow only. |
85
+
86
+ PGS-owned plans remain:
87
+
88
+ ```text
89
+ docs/plans/active/**
90
+ docs/plans/completed/**
91
+ ```
92
+
93
+ Doc Gov must not require CE-owned artifacts to use PGS frontmatter. The
94
+ directory decides which schema applies:
95
+
96
+ ```text
97
+ docs/solutions/** and other CE-owned paths -> CE schema
98
+ PGS governed docs -> Doc Gov schema
99
+ ```
100
+
101
+ Do not try to make one YAML block satisfy both systems.
102
+
103
+ ## Root Files
104
+
105
+ Compound Engineering may read project root files when present, but PGS-governed
106
+ projects keep these boundaries:
107
+
108
+ | File | Rule |
109
+ | --- | --- |
110
+ | `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. |
111
+ | `CONCEPTS.md` | Allowed as a CE vocabulary helper, but it does not replace `docs/canon/**` or project runtime truth. |
112
+ | `AGENTS.md` / `CLAUDE.md` | CE discoverability edits must stay short and must not replace the PGS router. |
113
+ | `.compound-engineering/config.local.yaml` | Machine-local CE config; keep gitignored. |
114
+
115
+ ## Completion Report
116
+
117
+ When a task finishes, report one of:
118
+
119
+ ```text
120
+ Compound Gate: ran ce-compound -> docs/solutions/<category>/<file>.md
121
+ Compound Gate: skipped -> <reason>
122
+ ```
123
+
124
+ This is the durable signal that the learning tail was considered.
@@ -107,3 +107,55 @@ flowchart TD
107
107
  For normal engineering, Ponytail is a scoped adviser, not a second workflow
108
108
  engine and not a replacement for Superpowers.
109
109
 
110
+ ## ProjectLens Audit Use
111
+
112
+ When ProjectLens and Ponytail are used together for a target-project audit,
113
+ ProjectLens owns the audit package contract. Ponytail acts as an independent
114
+ senior engineering reviewer whose simplicity, YAGNI, dependency, abstraction,
115
+ and rewrite judgment can challenge ProjectLens recommendations.
116
+
117
+ For this combined workflow, "read-only project audit" means the target
118
+ repository must not be modified. It does not mean "do not write the PGS audit
119
+ package." The audit package is the required owner-facing evidence record.
120
+
121
+ Use this order:
122
+
123
+ 1. The main agent establishes target path, goal, current phase, target commit or
124
+ working state, then creates the package with
125
+ `pro-gov lens audit init --target <path> --out audits/<target>/<date>`.
126
+ 2. ProjectLens gathers local evidence and writes its own raw artifacts under
127
+ `raw/project-lens/`.
128
+ 3. Ponytail runs independently and writes its own raw artifacts under
129
+ `raw/ponytail/`. For initial whole-project audits, preserve at least
130
+ `ponytail-audit`, `ponytail-debt`, and `ponytail-gain` outputs when the
131
+ plugin can produce them.
132
+ 4. The target command log records Project Lens and Ponytail method sources.
133
+ 5. The main agent writes `synthesis/decision-index.md` and
134
+ `synthesis/handoff-for-implementation-ai.md`, then runs
135
+ `pro-gov lens audit check --dir audits/<target>/<date>`.
136
+
137
+ Use subagents for the ProjectLens/Ponytail raw passes when the AI host exposes
138
+ them and the user has authorized subagent or parallel agent work. If host rules
139
+ block subagents, preserve the same raw-output separation with serial passes and
140
+ record the fallback in the audit package. Do not claim that subagents were used
141
+ when they were not. The manifest must include `Subagent trace:` with each pass
142
+ role, execution mode, final status, and raw artifact path; if durable subagent
143
+ IDs are unavailable, record that limitation.
144
+
145
+ Do not blur a fresh audit with a reuse verification. For a fresh ProjectLens plus
146
+ Ponytail audit, run `pro-gov lens audit check --dir <audit-dir> --mode fresh`.
147
+ If an existing package is reused because the target commit and package check are
148
+ still valid, label the result as reuse and run `--mode reuse`.
149
+
150
+ Do not blend Ponytail findings into ProjectLens files. Do not suppress Ponytail
151
+ to make ProjectLens look correct. Preserve material disagreements in the raw
152
+ artifacts and let the synthesis state which judgment won and why. The shared
153
+ boundary is evidence, user intent, project safety, explicit product-line
154
+ direction, and PGS's technology-governance protocol. If a stack direction
155
+ exists, Ponytail may challenge migration scope, timing, and complexity, while
156
+ ProjectLens records the direction as the product group's stated intent and PGS
157
+ classifies the execution posture.
158
+
159
+ Use `ponytail-review` later for implementation diffs or PR-style changes. For
160
+ initial read-only project audits, prefer the whole-repo Ponytail modes above so
161
+ the audit starts from system shape instead of line-level patch review.
@@ -8,11 +8,13 @@ Think of an AI project as a building site:
8
8
 
9
9
  - PGS is the traffic desk and inspection station.
10
10
  - Superpowers is the construction process.
11
+ - Compound Engineering's `ce-compound` is the knowledge-capture tail.
11
12
  - Ponytail is an optional cost and complexity adviser.
12
13
 
13
14
  PGS chooses the lane. Superpowers makes sure the work follows the right
14
- engineering process. Ponytail may suggest a leaner implementation, but it
15
- cannot cancel the process or the final inspection.
15
+ engineering process. Compound Engineering records reusable lessons after
16
+ verified work. Ponytail may suggest a leaner implementation, but it cannot
17
+ cancel the process or the final inspection.
16
18
 
17
19
  ## Boundary
18
20
 
@@ -39,6 +41,12 @@ Ponytail, when explicitly enabled for a task, may advise on:
39
41
  - avoidable files and abstractions;
40
42
  - simpler implementation choices.
41
43
 
44
+ Compound Engineering, by default, owns:
45
+
46
+ - post-work knowledge capture through `ce-compound`;
47
+ - `docs/solutions/**` learning records and their CE frontmatter;
48
+ - CE-owned external artifacts when the user explicitly invokes CE workflows.
49
+
42
50
  ## Rule
43
51
 
44
52
  Use Superpowers inside the selected project lane. Do not let Superpowers create a separate durable document tree unless the project explicitly adopts one.
@@ -52,9 +60,10 @@ Durable outputs should map back to the project's doc-gov layers:
52
60
  ## Execution Order
53
61
 
54
62
  Agents routing classifies first. Superpowers executes inside the selected lane.
55
- Optional Ponytail advice comes after those responsibilities are known. It may
63
+ Optional Ponytail advice may run after those responsibilities are known. It may
56
64
  make the implementation leaner, but it must not remove explicit requirements or
57
- reduce how correctness is proven.
65
+ reduce how correctness is proven. The Compound Gate runs near the end, before
66
+ final reporting, to decide whether verified work produced reusable learning.
58
67
 
59
68
  ```mermaid
60
69
  flowchart TD
@@ -64,10 +73,11 @@ flowchart TD
64
73
  D -- "yes" --> E["Use the matching Superpowers skill"]
65
74
  D -- "no" --> F["Use the local non-Superpowers lane rules"]
66
75
  E --> G{"Would an explicit simplicity review help?"}
67
- F --> H["Write durable outputs into doc-gov layers"]
68
- G -- "yes" --> I["Use Ponytail without dropping workflow gates"]
69
- G -- "no" --> H
70
- I --> H
76
+ F --> G
77
+ G -- "yes" --> H["Use Ponytail without dropping workflow gates"]
78
+ G -- "no" --> I["Pass the Compound Gate"]
79
+ H --> I
80
+ I --> J["Write durable outputs into doc-gov layers"]
71
81
  ```
72
82
 
73
83
  If Superpowers suggests a default location such as `docs/superpowers/**`, project instructions may override that location. The durable project record should still land in the governed doc-gov layer unless the project has explicitly adopted a separate Superpowers document tree.
@@ -78,3 +88,6 @@ router or run before the Project Governance System routing block.
78
88
 
79
89
  For Ponytail mode policy and the isolated comparison protocol, read
80
90
  `integrations/ponytail.md`.
91
+
92
+ For Compound Engineering's knowledge-capture boundary, read
93
+ `integrations/compound-engineering.md`.
@@ -9,6 +9,7 @@ required:
9
9
  agents_routing: docs/governance/agents-routing/doc-only-v0.9.md
10
10
  current_work: docs/reference/execution/current-work.md
11
11
  optional:
12
+ compound_engineering: false
12
13
  directed_development: false
13
14
  superpowers: false
14
15
  project_local_required:
@@ -19,3 +20,4 @@ not_included:
19
20
  - engineering-runtime agents routing
20
21
  - behavior-critical code lanes
21
22
  - Superpowers TDD workflow
23
+ - Compound Engineering main workflow
@@ -31,7 +31,7 @@ Each project must define:
31
31
  ## Automation Boundary
32
32
 
33
33
  This profile is a human/AI adoption contract. `doc-gov` validates the resulting
34
- project shape. `pro-gov` packages reusable starter/profile assets and exposes
35
- read-only init/sync checks, but it does not overwrite project-local files in
36
- the first release. Use `starter/`, this profile, and `manifest.yml` as the
37
- reference checklist.
34
+ project shape. `pro-gov init --apply` can install it into a fresh target, but
35
+ refuses all writes when any destination already exists. `sync --check` compares
36
+ shared core files while leaving project-local router, policy, and current-work
37
+ content under the target project's ownership.
@@ -9,6 +9,7 @@ required:
9
9
  agents_routing: docs/governance/agents-routing/engineering-runtime-v0.9.md
10
10
  current_work: docs/reference/execution/current-work.md
11
11
  optional:
12
+ compound_engineering: integrations/compound-engineering.md
12
13
  directed_development: integrations/directed-development.md
13
14
  superpowers: integrations/superpowers.md
14
15
  project_local_required:
@@ -20,3 +21,4 @@ not_included:
20
21
  - product canon
21
22
  - project-specific runtime rules
22
23
  - Superpowers plugin body
24
+ - Compound Engineering plugin body
@@ -10,6 +10,7 @@ Use for code-heavy projects: apps, games, runtimes, services, browser products,
10
10
  - external AI-in-the-Loop policy linked by target projects under `docs/policy/shared-rules/ai-in-the-loop.md`
11
11
  - `docs/governance/agents-routing/engineering-runtime-v0.9.md`
12
12
  - `integrations/superpowers.md`
13
+ - `integrations/compound-engineering.md`
13
14
  - `integrations/directed-development.md`
14
15
  - starter `docs/governance/` and `docs/policy/` templates
15
16
 
@@ -29,11 +30,12 @@ Each project must define:
29
30
  - stack-specific rules
30
31
  - game/app-specific lane wording
31
32
  - Superpowers plugin body
33
+ - Compound Engineering plugin body
32
34
 
33
35
  ## Automation Boundary
34
36
 
35
37
  This profile is a human/AI adoption contract. `doc-gov` validates the resulting
36
- project shape. `pro-gov` packages reusable starter/profile assets and exposes
37
- read-only init/sync checks, but it does not overwrite project-local files in
38
- the first release. Use `starter/`, this profile, and `manifest.yml` as the
39
- reference checklist.
38
+ project shape. `pro-gov init --apply` can install it into a fresh target, but
39
+ refuses all writes when any destination already exists. `sync --check` compares
40
+ shared core files while leaving project-local router, policy, and current-work
41
+ content under the target project's ownership.
@@ -37,7 +37,8 @@
37
37
 
38
38
  - Name this project's adopted profile: `engineering-runtime` or `doc-only`.
39
39
  - Point to the chosen agents-routing file from `docs/governance/agents-routing/`.
40
- - Engineering projects may use Superpowers, Directed Development, GStack, or other external workflows only inside the selected lane; do not copy upstream `integrations/` into the target project by default.
40
+ - Engineering projects may use Superpowers, Directed Development, GStack, or other external workflows only inside the selected lane; do not copy upstream integration guides into the target project by default.
41
+ - For engineering projects, Superpowers is the default engineering workflow. Compound Engineering is used by default only as the post-work Compound Gate through `ce-compound`; full CE workflows require an explicit user request.
41
42
  - Doc-only projects should say that Superpowers TDD and Directed Development are not enabled by default.
42
43
  - External workflow systems such as Superpowers or GStack run inside the lane selected by this router. They must not replace this project router.
43
44
 
@@ -46,6 +46,7 @@ project-specific AI development habits live.
46
46
  - Product prompts, generated media notes, or project-package workbench files.
47
47
  - Current project plans or active specs.
48
48
  - Superpowers plugin content.
49
+ - Compound Engineering plugin content.
49
50
 
50
51
  ## Put Those Elsewhere
51
52
 
@@ -59,6 +60,7 @@ project-specific AI development habits live.
59
60
  | Product or world truth | `docs/canon/` |
60
61
  | Active implementation work | `docs/plans/active/` |
61
62
  | Completed proof records | `docs/plans/completed/` |
63
+ | Compound Engineering learnings | `docs/solutions/**` as CE-owned external artifacts |
62
64
  | Product artifacts outside governed docs | Project package, workbench, assets, runtime config, or source tree |
63
65
 
64
66
  When unsure, ask this question: is this rule about how the document system works,
@@ -74,3 +76,8 @@ It does not govern every Markdown file in the repository. Markdown under
74
76
  product packages, workbenches, prompt libraries, source folders, or asset
75
77
  folders can be product artifacts. Keep those files where the product package
76
78
  expects them unless a project explicitly opts them into doc-gov.
79
+
80
+ Compound Engineering external artifacts under `docs/solutions/**`,
81
+ `docs/brainstorms/**`, `docs/pulse-reports/**`, and CE-native root files under
82
+ `docs/plans/*` are not governed docs by default. They remain valid project
83
+ artifacts, but their frontmatter belongs to Compound Engineering, not Doc Gov.