@pieai/pro-gov 0.3.11 → 0.3.13
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 -2
- package/assets/docs/reference/adoption/adoption-playbook.md +14 -0
- package/assets/docs/reference/adoption/recommended-agent-tooling.md +14 -1
- package/assets/integrations/compound-engineering.md +23 -4
- package/assets/integrations/superpowers.md +15 -9
- package/assets/profiles/engineering-runtime/profile.md +5 -0
- package/assets/starter/AGENTS.template.md +4 -0
- package/cli-guide.md +33 -0
- package/dist/cli.js +1047 -274
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,6 +45,8 @@ pro-gov assets discover --target .
|
|
|
45
45
|
pro-gov assets recommend --target .
|
|
46
46
|
pro-gov portfolio check --config /path/to/portfolio.json
|
|
47
47
|
pro-gov portfolio plan --config /path/to/portfolio.json --target web-app --json
|
|
48
|
+
pro-gov portfolio assets-check --config /path/to/portfolio.json --json
|
|
49
|
+
pro-gov portfolio doctor --config /path/to/portfolio.json --json
|
|
48
50
|
pro-gov lens inspect --target .
|
|
49
51
|
pro-gov lens report --target . --out .pro-gov/lens-report.md
|
|
50
52
|
pro-gov init --profile engineering-runtime --dry-run
|
|
@@ -63,6 +65,8 @@ What these commands do:
|
|
|
63
65
|
| `assets recommend` | Suggests relevant asset bundles with reasons. | No |
|
|
64
66
|
| `portfolio check` | Validates an external portfolio manifest owned by the user or organization. | No |
|
|
65
67
|
| `portfolio plan` | Builds dry-run asset plans for manifest targets, using packaged public assets unless a full checkout is supplied. | No |
|
|
68
|
+
| `portfolio assets-check` | Checks the integrity of each target's current managed asset lock and symlinks. | No |
|
|
69
|
+
| `portfolio doctor` | Runs the offline fleet gate: package, target CLI, bundle, asset, symlink, Git-state evidence, and optional host-tooling checks. | No |
|
|
66
70
|
| `lens inspect` | Produces ProjectLens-style local evidence. | No |
|
|
67
71
|
| `lens report` | Writes the requested report file. | Only the explicit output |
|
|
68
72
|
| `init --dry-run` | Shows starter/profile files that would be needed. | No |
|
|
@@ -98,7 +102,10 @@ User-scoped skills, such as a personal loop library, are not installed into
|
|
|
98
102
|
project targets; link them once under the user's skill roots instead.
|
|
99
103
|
|
|
100
104
|
The plan is the safety gate. `apply` may update managed targets described by the
|
|
101
|
-
plan; it must not overwrite an unrelated unmanaged file.
|
|
105
|
+
plan; it must not overwrite an unrelated unmanaged file. When an asset leaves a
|
|
106
|
+
bundle, a plan may remove its old symlink only when the previous lock proves
|
|
107
|
+
ownership and both plan-time and apply-time checks confirm that the path is
|
|
108
|
+
still the same managed symlink.
|
|
102
109
|
|
|
103
110
|
These checkout-only workflows depend on a maintainer-local `agent-assets/`
|
|
104
111
|
registry when local-only assets are being used. The public repository and npm
|
|
@@ -111,7 +118,7 @@ the private-source and public-copy hashes recorded during promotion.
|
|
|
111
118
|
- `pro-gov` distributes starter, profile, integration, and adoption assets.
|
|
112
119
|
- `pro-gov assets discover|recommend` provides read-only project evidence and
|
|
113
120
|
deterministic recommendations.
|
|
114
|
-
- `pro-gov portfolio check|plan` reads an external portfolio manifest. Real
|
|
121
|
+
- `pro-gov portfolio check|plan|assets-check|doctor` reads an external portfolio manifest. Real
|
|
115
122
|
downstream project lists belong in the user's control repository, not in this
|
|
116
123
|
public package. The manifest does not require a private headquarters repo:
|
|
117
124
|
npm users can omit `controlPlane` and `executionEngine`, and PGS will use the
|
|
@@ -127,6 +134,8 @@ the private-source and public-copy hashes recorded during promotion.
|
|
|
127
134
|
use `--dry-run` and a deliberate migration so local truth is never overwritten.
|
|
128
135
|
- Superpowers, Compound Engineering, and Ponytail are external tools, not
|
|
129
136
|
bundled runtime dependencies.
|
|
137
|
+
- Optional `hostTooling` entries let `portfolio doctor` verify required Codex or
|
|
138
|
+
Claude Code plugins. PGS does not install or upgrade those plugins.
|
|
130
139
|
|
|
131
140
|
## Recommended Companion Tools
|
|
132
141
|
|
|
@@ -139,6 +148,11 @@ engineering work. The default PGS pattern is a Compound Gate: run
|
|
|
139
148
|
skipped. Full CE workflows such as `ce-plan`, `ce-work`, and `lfg` remain
|
|
140
149
|
explicit user choices.
|
|
141
150
|
|
|
151
|
+
PGS Learning Recall is the pre-work companion to that post-work gate. Before
|
|
152
|
+
non-trivial implementation, debugging, release, architecture, or portfolio-sync
|
|
153
|
+
work, run `pro-gov learn recall --query "<task summary>"` and read relevant
|
|
154
|
+
`docs/solutions/**` or `CONCEPTS.md` hits before changing files.
|
|
155
|
+
|
|
142
156
|
Engineering-runtime starters include cross-host Stop hooks for Codex,
|
|
143
157
|
Claude Code, and Antigravity. Those hooks call `pro-gov host-hook` and require
|
|
144
158
|
the final report to include either:
|
|
@@ -153,6 +153,10 @@ Managed symlinks are relative by default. A target project's normal
|
|
|
153
153
|
public package to know a maintainer's private registry. Maintainers can add
|
|
154
154
|
`--strict-registry`, or run `pro-gov portfolio assets-check --config
|
|
155
155
|
/path/to/portfolio.json`, when they need central private-registry validation.
|
|
156
|
+
Use `pro-gov portfolio doctor --config /path/to/portfolio.json` as the final
|
|
157
|
+
offline fleet gate when package versions, target-local routers and hooks,
|
|
158
|
+
declared bundles, locks, managed symlinks, and optional host plugins all need to
|
|
159
|
+
be checked together. The command reports dirty Git state but does not edit it.
|
|
156
160
|
|
|
157
161
|
When a maintainer promotes a private asset into `public-agent-assets/`, the
|
|
158
162
|
public registry must record the private-source hash and the public-copy hash.
|
|
@@ -207,6 +211,16 @@ Use Compound Engineering by default only as the post-work Compound Gate:
|
|
|
207
211
|
`ce-compound` captures reusable lessons when they exist; otherwise the agent
|
|
208
212
|
reports a skip reason. Full CE workflows require an explicit user request.
|
|
209
213
|
|
|
214
|
+
Use PGS Learning Recall before non-trivial work:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
pro-gov learn recall --query "<task summary>"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
This reads the project's existing `docs/solutions/**` and `CONCEPTS.md` records
|
|
221
|
+
so prior lessons can shape the work without making Compound Engineering the
|
|
222
|
+
default execution workflow.
|
|
223
|
+
|
|
210
224
|
The host-hook gate is deliberately small. It does not make Compound Engineering
|
|
211
225
|
the main workflow. It only blocks a final completion report that looks like
|
|
212
226
|
finished engineering work but does not say whether the Compound Gate ran or was
|
|
@@ -78,6 +78,15 @@ Superpowers completes verified work
|
|
|
78
78
|
-> run ce-compound or report a skip reason
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
PGS Learning Recall is the matching pre-work step:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pro-gov learn recall --query "<task summary>"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
It searches `docs/solutions/**` and `CONCEPTS.md` so agents can reuse prior
|
|
88
|
+
lessons without making Compound Engineering the default execution workflow.
|
|
89
|
+
|
|
81
90
|
Do not make routine tasks choose between Superpowers and Compound Engineering as
|
|
82
91
|
competing default engineering processes. Use CE's full `ce-plan`, `ce-work`, or
|
|
83
92
|
`lfg` flow only when the user explicitly asks for it.
|
|
@@ -107,6 +116,7 @@ For an engineering/runtime project:
|
|
|
107
116
|
```text
|
|
108
117
|
install PGS packages
|
|
109
118
|
-> keep Superpowers available for engineering workflows
|
|
119
|
+
-> run pro-gov learn recall before non-trivial work
|
|
110
120
|
-> use Compound Engineering's ce-compound as the post-work learning tail
|
|
111
121
|
-> install Ponytail but keep global mode off
|
|
112
122
|
-> activate Ponytail only when a bounded simplicity review would help
|
|
@@ -125,4 +135,7 @@ install PGS packages
|
|
|
125
135
|
|
|
126
136
|
PGS does not automatically install, enable, update, or remove these external
|
|
127
137
|
plugins in another person's AI host. It documents the recommended boundary and
|
|
128
|
-
lets each project or user adopt tools deliberately.
|
|
138
|
+
lets each project or user adopt tools deliberately. A user-owned portfolio may
|
|
139
|
+
declare required Codex or Claude Code plugin ids in `hostTooling`; `portfolio
|
|
140
|
+
doctor` then verifies installed/enabled state and reports observed versions.
|
|
141
|
+
The host's native plugin manager remains the installation and update authority.
|
|
@@ -11,6 +11,7 @@ Think of an AI project as a workshop:
|
|
|
11
11
|
- Superpowers is the default cooking process for engineering work.
|
|
12
12
|
- Compound Engineering's `ce-compound` is the recipe notebook written after a
|
|
13
13
|
non-trivial dish is proven to work.
|
|
14
|
+
- `pro-gov learn recall` is the recipe-card search before the next dish starts.
|
|
14
15
|
- Ponytail is the cost and complexity adviser.
|
|
15
16
|
|
|
16
17
|
The default path is one main process with one learning tail. Do not make every
|
|
@@ -25,12 +26,30 @@ capture loop by default, not as a second default execution engine.
|
|
|
25
26
|
Use this order:
|
|
26
27
|
|
|
27
28
|
1. PGS routes the task and selects the project lane.
|
|
28
|
-
2.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
32
35
|
artifacts.
|
|
33
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
|
+
|
|
34
53
|
## Compound Gate
|
|
35
54
|
|
|
36
55
|
Every completed non-trivial engineering task must pass the Compound Gate:
|
|
@@ -8,13 +8,15 @@ 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
|
+
- `pro-gov learn recall` is the pre-work lookup for reusable lessons.
|
|
11
12
|
- Compound Engineering's `ce-compound` is the knowledge-capture tail.
|
|
12
13
|
- Ponytail is an optional cost and complexity adviser.
|
|
13
14
|
|
|
14
15
|
PGS chooses the lane. Superpowers makes sure the work follows the right
|
|
15
|
-
engineering process.
|
|
16
|
-
|
|
17
|
-
cancel the process or the final
|
|
16
|
+
engineering process. Learning Recall checks prior lessons before work starts.
|
|
17
|
+
Compound Engineering records reusable lessons after verified work. Ponytail may
|
|
18
|
+
suggest a leaner implementation, but it cannot cancel the process or the final
|
|
19
|
+
inspection.
|
|
18
20
|
|
|
19
21
|
## Boundary
|
|
20
22
|
|
|
@@ -32,6 +34,7 @@ Project Governance System owns:
|
|
|
32
34
|
- documentation lifecycle
|
|
33
35
|
- agents routing
|
|
34
36
|
- current work index conventions
|
|
37
|
+
- pre-work learning recall through `pro-gov learn recall`
|
|
35
38
|
- the governed location and boundary for externally sourced AI evidence rules
|
|
36
39
|
|
|
37
40
|
Ponytail, when explicitly enabled for a task, may advise on:
|
|
@@ -59,17 +62,20 @@ Durable outputs should map back to the project's doc-gov layers:
|
|
|
59
62
|
|
|
60
63
|
## Execution Order
|
|
61
64
|
|
|
62
|
-
Agents routing classifies first.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
Agents routing classifies first. For non-trivial work, Learning Recall checks
|
|
66
|
+
prior `docs/solutions/**` and `CONCEPTS.md` records before files change.
|
|
67
|
+
Superpowers executes inside the selected lane. Optional Ponytail advice may run
|
|
68
|
+
after those responsibilities are known. It may make the implementation leaner,
|
|
69
|
+
but it must not remove explicit requirements or reduce how correctness is
|
|
70
|
+
proven. The Compound Gate runs near the end, before final reporting, to decide
|
|
71
|
+
whether verified work produced reusable learning.
|
|
67
72
|
|
|
68
73
|
```mermaid
|
|
69
74
|
flowchart TD
|
|
70
75
|
A["Task arrives"] --> B["Read project router and current work"]
|
|
71
76
|
B --> C["Classify profile and lane"]
|
|
72
|
-
C -->
|
|
77
|
+
C --> R["Run Learning Recall for non-trivial work"]
|
|
78
|
+
R --> D{"Does this lane need a Superpowers workflow?"}
|
|
73
79
|
D -- "yes" --> E["Use the matching Superpowers skill"]
|
|
74
80
|
D -- "no" --> F["Use the local non-Superpowers lane rules"]
|
|
75
81
|
E --> G{"Would an explicit simplicity review help?"}
|
|
@@ -45,3 +45,8 @@ Stop hooks that call `pro-gov host-hook`. Use `pro-gov doctor --strict-hooks`
|
|
|
45
45
|
after sync to confirm the exit gate is wired. The hook enforces the Compound
|
|
46
46
|
Gate final-report marker; it does not replace verification, tests, or
|
|
47
47
|
`ce-compound` itself.
|
|
48
|
+
|
|
49
|
+
For non-trivial engineering work, run `pro-gov learn recall --query "<task
|
|
50
|
+
summary>"` before changing files so existing `docs/solutions/**` and
|
|
51
|
+
`CONCEPTS.md` lessons can shape the work without enabling a second default
|
|
52
|
+
workflow.
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
- `docs/governance/agents-routing/engineering-runtime-v0.9.md`, or
|
|
19
19
|
- `docs/governance/agents-routing/doc-only-v0.9.md`
|
|
20
20
|
7. `docs/reference/execution/current-work.md`
|
|
21
|
+
8. Before non-trivial implementation, debugging, release, architecture, or
|
|
22
|
+
migration work, run `pro-gov learn recall --query "<task summary>"` and read
|
|
23
|
+
any relevant prior-learning hits before changing files.
|
|
21
24
|
|
|
22
25
|
## Governance
|
|
23
26
|
|
|
@@ -39,6 +42,7 @@
|
|
|
39
42
|
- Point to the chosen agents-routing file from `docs/governance/agents-routing/`.
|
|
40
43
|
- 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
44
|
- 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.
|
|
45
|
+
- For engineering projects, PGS Learning Recall is the pre-work companion to that post-work gate: recall existing lessons first, then do the work, then decide whether a new lesson should be compounded.
|
|
42
46
|
- Engineering projects should have PGS Stop hooks wired for Codex, Claude Code, and Antigravity. Before final reporting after completed engineering work, report `Compound Gate: ran ce-compound -> <path>` or `Compound Gate: skipped -> <reason>`.
|
|
43
47
|
- Doc-only projects should say that Superpowers TDD and Directed Development are not enabled by default.
|
|
44
48
|
- External workflow systems such as Superpowers or GStack run inside the lane selected by this router. They must not replace this project router.
|
package/cli-guide.md
CHANGED
|
@@ -18,6 +18,9 @@ pro-gov assets discover --target .
|
|
|
18
18
|
pro-gov assets recommend --target .
|
|
19
19
|
pro-gov portfolio check --config /path/to/portfolio.json
|
|
20
20
|
pro-gov portfolio plan --config /path/to/portfolio.json --target web-app --json
|
|
21
|
+
pro-gov portfolio assets-check --config /path/to/portfolio.json --json
|
|
22
|
+
pro-gov portfolio doctor --config /path/to/portfolio.json --json
|
|
23
|
+
pro-gov learn recall --query "release downstream sync" --target .
|
|
21
24
|
pro-gov lens inspect --target .
|
|
22
25
|
pro-gov lens report --target . --out .pro-gov/lens-report.md
|
|
23
26
|
pro-gov lens audit init --target /path/to/project --out audits/project/2026-07-01
|
|
@@ -40,12 +43,21 @@ but checks project-local seeds such as `AGENTS.md`, project policy, and current
|
|
|
40
43
|
work for presence only. It infers the installed profile when exactly one route
|
|
41
44
|
exists; `--profile` resolves an empty or temporarily ambiguous target.
|
|
42
45
|
|
|
46
|
+
`learn recall` is the pre-work companion to Compound Engineering's post-work
|
|
47
|
+
`ce-compound` learning records. It searches `docs/solutions/**` and
|
|
48
|
+
`CONCEPTS.md` in the target repository and returns the most relevant prior
|
|
49
|
+
lessons for the current task. Use it before non-trivial implementation,
|
|
50
|
+
debugging, release, architecture, or portfolio-sync work. It is read-only and
|
|
51
|
+
does not require a full local PGS checkout.
|
|
52
|
+
|
|
43
53
|
Full upstream-checkout commands:
|
|
44
54
|
|
|
45
55
|
```bash
|
|
46
56
|
pro-gov assets list --json
|
|
47
57
|
pro-gov portfolio check --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
48
58
|
pro-gov portfolio plan --config /path/to/control-repo/.pro-gov/portfolio.json --target web-app --json
|
|
59
|
+
pro-gov portfolio assets-check --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
60
|
+
pro-gov portfolio doctor --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
49
61
|
pro-gov assets plan --bundle base-governance --target . --out .pro-gov/asset-plan.json
|
|
50
62
|
pro-gov assets plan --bundle project-lens --target /path/to/project --host codex --placement manual --out /tmp/project-lens-plan.json
|
|
51
63
|
pro-gov assets apply --plan .pro-gov/asset-plan.json
|
|
@@ -72,6 +84,27 @@ public assets packaged with `@pieai/pro-gov`. Add `executionEngine.path` only
|
|
|
72
84
|
when a full local checkout should provide a private asset registry for strict
|
|
73
85
|
maintainer checks.
|
|
74
86
|
|
|
87
|
+
`portfolio assets-check` verifies that the currently recorded lock and managed
|
|
88
|
+
links are healthy. `portfolio doctor` additionally compares each target with the
|
|
89
|
+
current portfolio `assetBundles`, registry hashes, package versions, target-local
|
|
90
|
+
router/hook checks, and optional `hostTooling` requirements. The doctor is
|
|
91
|
+
offline and read-only by default. A dirty product worktree is reported as
|
|
92
|
+
evidence but is not itself a governance failure.
|
|
93
|
+
|
|
94
|
+
Third-party update discovery is deliberately separate and low frequency:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pro-gov assets npx update --plan
|
|
98
|
+
codex plugin marketplace upgrade
|
|
99
|
+
codex plugin list --json
|
|
100
|
+
claude plugin update <plugin>
|
|
101
|
+
claude plugin list --json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The native tools own fetching and installation. PGS reviews resulting asset
|
|
105
|
+
changes, regenerates plans, and verifies the fleet; it does not implement a
|
|
106
|
+
second plugin marketplace or silently accept upstream changes.
|
|
107
|
+
|
|
75
108
|
`lens audit init` creates a raw-first audit package for Project Lens plus
|
|
76
109
|
Ponytail reviews. For a "read-only project audit", the target repository remains
|
|
77
110
|
read-only, but the audit package is still the required output record. `lens
|