@pieai/pro-gov 0.4.2 → 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 +17 -59
- 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 +4 -2
- package/assets/profiles/engineering-runtime/manifest.yml +1 -4
- package/assets/profiles/engineering-runtime/profile.md +6 -14
- 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 +17 -38
- package/dist/cli.js +135 -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
|
@@ -1,143 +1,40 @@
|
|
|
1
1
|
# mattpocock/skills Integration
|
|
2
2
|
|
|
3
|
-
mattpocock/skills is
|
|
4
|
-
|
|
3
|
+
mattpocock/skills is the optional shared engineering skill library for
|
|
4
|
+
PGS-governed projects. PGS does not vendor or rewrite their bodies; it installs
|
|
5
|
+
the upstream skills unchanged through managed symlinks.
|
|
5
6
|
|
|
6
|
-
##
|
|
7
|
+
## Trigger Rule
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
There is no bootstrap skill and no default workflow owner. Let each skill's own
|
|
10
|
+
narrow description decide when it applies. User-named skills always take
|
|
11
|
+
priority; otherwise invoke a skill only when its documented trigger directly
|
|
12
|
+
matches the task.
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
- Superpowers is the default construction process for engineering work.
|
|
12
|
-
- mattpocock/skills is a set of sharp workshop tools for grilling ideas,
|
|
13
|
-
modeling domain language, turning decisions into PRDs/issues, and running
|
|
14
|
-
specific implementation flows.
|
|
15
|
-
- Compound Engineering is the verified-learning notebook written after the work.
|
|
14
|
+
Examples:
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
- a reported hard bug may trigger `diagnosing-bugs`;
|
|
17
|
+
- an explicit branch review may trigger `code-review`;
|
|
18
|
+
- a request for a PRD may trigger `to-prd`;
|
|
19
|
+
- ordinary implementation does not automatically trigger `implement`, `tdd`,
|
|
20
|
+
`grill-me`, or a multi-agent flow.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
Skills that require subagents must respect the user's current delegation rule.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
capability inside the selected lane. It is not the default workflow owner.
|
|
24
|
+
## Artifact Boundary
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Matt-native artifacts remain external to Doc Gov by default:
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
active Matt flow calls one of its helper skills.
|
|
33
|
-
5. The Compound Gate still runs before final reporting.
|
|
28
|
+
- `CONTEXT.md` and `CONTEXT-MAP.md`;
|
|
29
|
+
- `docs/agents/**` and `docs/adr/**`;
|
|
30
|
+
- `.scratch/**`;
|
|
31
|
+
- GitHub/GitLab issues.
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
Promote durable truth intentionally into `docs/decisions/**`, `docs/specs/**`,
|
|
34
|
+
`docs/plans/**`, `docs/canon/**`, or `docs/reference/**`.
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
- Matt owns demand shaping, domain modeling, PRD/issues generation, triage, and
|
|
40
|
-
explicitly requested Matt implementation flows.
|
|
41
|
-
- CE owns post-work reusable learning.
|
|
36
|
+
## Distribution
|
|
42
37
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
`/to-issues`, `/implement`, `/triage`, and `/ask-matt`, require an explicit
|
|
47
|
-
user request or an already active Matt flow that named them.
|
|
48
|
-
|
|
49
|
-
Model-invoked Matt helper skills, such as `domain-modeling`, `tdd`,
|
|
50
|
-
`code-review`, `research`, and `prototype`, may run only when they support the
|
|
51
|
-
current selected lane and do not replace the current workflow owner.
|
|
52
|
-
|
|
53
|
-
If a Matt helper and a Superpowers skill both fit, keep the current workflow
|
|
54
|
-
owner unless the user explicitly switches. For example:
|
|
55
|
-
|
|
56
|
-
- normal feature implementation -> Superpowers remains the default;
|
|
57
|
-
- user says `/implement issue 123` -> Matt `/implement` owns that flow;
|
|
58
|
-
- user says "grill this idea and make docs" -> Matt `/grill-with-docs` owns
|
|
59
|
-
that shaping flow;
|
|
60
|
-
- user says "use CE full workflow" -> CE owns the explicitly requested flow.
|
|
61
|
-
|
|
62
|
-
## PGS Central Setup
|
|
63
|
-
|
|
64
|
-
The PGS central repository uses these Matt setup choices:
|
|
65
|
-
|
|
66
|
-
| Setup item | PGS central value |
|
|
67
|
-
| --- | --- |
|
|
68
|
-
| Issue tracker | GitHub Issues for `PieAIStudio/ProjectGovernanceSystem` |
|
|
69
|
-
| External PRs as request surface | No by default |
|
|
70
|
-
| Triage labels | Default Matt labels: `needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix` |
|
|
71
|
-
| Domain docs layout | Single-context: root `CONTEXT.md` and `docs/adr/**` when Matt creates them |
|
|
72
|
-
|
|
73
|
-
The setup files live under `docs/agents/**`. They are Matt-owned external
|
|
74
|
-
configuration files, not PGS canonical product truth.
|
|
75
|
-
|
|
76
|
-
## Matt-Owned Artifacts
|
|
77
|
-
|
|
78
|
-
The following outputs are Matt-owned external artifacts:
|
|
79
|
-
|
|
80
|
-
| Path or surface | Owner | Rule |
|
|
81
|
-
| --- | --- | --- |
|
|
82
|
-
| `CONTEXT.md` | Matt | Domain glossary/context. Helpful input, not a replacement for `docs/canon/**`. |
|
|
83
|
-
| `CONTEXT-MAP.md` | Matt | Multi-context map when a project opts into that layout. |
|
|
84
|
-
| `docs/agents/**` | Matt | Per-repo Matt setup: issue tracker, triage labels, domain docs. |
|
|
85
|
-
| `docs/adr/**` | Matt | Matt-generated ADRs. Promote manually to `docs/decisions/**` if they become PGS-governed decisions. |
|
|
86
|
-
| `.scratch/**` | Matt | Local issue tracker or temporary work surface. Keep project-specific. |
|
|
87
|
-
| GitHub/GitLab issues | Matt/project | PRDs, issue breakdowns, triage state. They are work-tracking artifacts, not doc-gov records by themselves. |
|
|
88
|
-
|
|
89
|
-
Doc Gov must ignore `docs/agents/**` and `docs/adr/**` as external artifacts.
|
|
90
|
-
When a Matt artifact becomes durable PGS truth, promote it into the normal
|
|
91
|
-
governed layer:
|
|
92
|
-
|
|
93
|
-
- decisions -> `docs/decisions/**`
|
|
94
|
-
- specs -> `docs/specs/**`
|
|
95
|
-
- plans -> `docs/plans/**`
|
|
96
|
-
- canon -> `docs/canon/**`
|
|
97
|
-
- references -> `docs/reference/**`
|
|
98
|
-
|
|
99
|
-
Do not try to make one file satisfy both Matt's native artifact contract and a
|
|
100
|
-
PGS governed document contract.
|
|
101
|
-
|
|
102
|
-
## Downstream Install Rule
|
|
103
|
-
|
|
104
|
-
Install or update Matt skills in downstream repositories through the PGS asset
|
|
105
|
-
workflow. Do not run `npx skills add mattpocock/skills` inside every downstream
|
|
106
|
-
project as an unmanaged one-off.
|
|
107
|
-
|
|
108
|
-
The central intake flow is:
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
pro-gov assets npx add mattpocock/skills --plan --root agent-assets/skills/npx-skills
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
Review the plan, then install into the PGS central npx skill root. Downstream
|
|
115
|
-
projects receive managed symlinks through the private PGS asset bundle
|
|
116
|
-
`mattpocock-skills` and project-local Matt setup files according to their
|
|
117
|
-
selected profile and host support.
|
|
118
|
-
|
|
119
|
-
## Verification
|
|
120
|
-
|
|
121
|
-
Central verification:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
node packages/doc-gov/dist/cli.js router-check
|
|
125
|
-
node packages/doc-gov/dist/cli.js check
|
|
126
|
-
node packages/doc-gov/dist/cli.js scan --check
|
|
127
|
-
git diff --check
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Matt install verification:
|
|
131
|
-
|
|
132
|
-
```bash
|
|
133
|
-
test -f agent-assets/skills/npx-skills/skills-lock.json
|
|
134
|
-
find agent-assets/skills/npx-skills/.agents/skills -maxdepth 2 -name SKILL.md
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
Downstream verification must prove:
|
|
138
|
-
|
|
139
|
-
- the target's project router points to its selected profile;
|
|
140
|
-
- Matt skills are linked from the managed PGS asset source;
|
|
141
|
-
- `docs/agents/**` exists when Matt engineering skills are enabled;
|
|
142
|
-
- Doc Gov ignores Matt-owned external artifacts;
|
|
143
|
-
- Superpowers, Matt, and CE each keep their documented ownership.
|
|
38
|
+
Maintain the canonical third-party source under
|
|
39
|
+
`agent-assets/skills/npx-skills` and distribute managed symlinks through the
|
|
40
|
+
`mattpocock-skills` asset bundle. Do not install project-local copies.
|
|
@@ -1,161 +1,9 @@
|
|
|
1
|
-
# Ponytail Integration
|
|
1
|
+
# Ponytail Integration (Retired)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
that still works. Project Governance System does not vendor, rewrite, or require
|
|
5
|
-
the Ponytail plugin.
|
|
3
|
+
PGS no longer requires or configures the Ponytail plugin.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
Prefer the smallest correct implementation, reuse mature tools, and avoid
|
|
6
|
+
speculative abstractions as ordinary engineering judgment. A global mode and
|
|
7
|
+
prompt/session hooks are unnecessary for those principles.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- PGS is the traffic desk and inspection station.
|
|
12
|
-
- Superpowers is the construction process.
|
|
13
|
-
- Ponytail is the cost and complexity adviser.
|
|
14
|
-
|
|
15
|
-
The adviser can stop the team from buying unnecessary materials. The adviser
|
|
16
|
-
cannot cancel the fire exit, the safety inspection, or a room the owner
|
|
17
|
-
explicitly requested.
|
|
18
|
-
|
|
19
|
-
## Safe Default
|
|
20
|
-
|
|
21
|
-
Keep the global Ponytail mode `off`.
|
|
22
|
-
|
|
23
|
-
`off` does not mean Ponytail is useless. It means Ponytail is available when a
|
|
24
|
-
task needs a simplicity review without silently influencing every project and
|
|
25
|
-
every answer.
|
|
26
|
-
|
|
27
|
-
Do not describe `lite` as "almost off." In Ponytail 4.7.0, `lite` still injects
|
|
28
|
-
the shared minimalism rules into the active AI context. Its mode-specific line
|
|
29
|
-
is gentler than `full`, but the same AI still sees rules about fewer files,
|
|
30
|
-
fewer abstractions, shorter diffs, and avoiding speculative work.
|
|
31
|
-
|
|
32
|
-
## Mode Policy
|
|
33
|
-
|
|
34
|
-
| Mode | Governed use |
|
|
35
|
-
| --- | --- |
|
|
36
|
-
| `off` | Recommended global default. Ponytail does not inject its active ruleset. |
|
|
37
|
-
| `lite` | First mode to test in one isolated task or session. Complete the requested work, while surfacing a simpler option. |
|
|
38
|
-
| `full` | Optional stress test after `lite`. Use only in an isolated task to see whether stronger minimalism harms scope or proof. |
|
|
39
|
-
| `ultra` | Not part of the recommended PGS workflow. It is too aggressive for a default governed engineering lane. |
|
|
40
|
-
|
|
41
|
-
Return to `off` after every comparison.
|
|
42
|
-
|
|
43
|
-
## Comparison Protocol
|
|
44
|
-
|
|
45
|
-
Use the same bounded, low-risk task in separate sessions or worktrees:
|
|
46
|
-
|
|
47
|
-
```text
|
|
48
|
-
baseline with off
|
|
49
|
-
-> repeat with lite
|
|
50
|
-
-> compare scope, proof, complexity, and clarity
|
|
51
|
-
-> optionally repeat with full
|
|
52
|
-
-> return global mode to off
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Compare:
|
|
56
|
-
|
|
57
|
-
- whether every requested requirement was delivered;
|
|
58
|
-
- whether Superpowers brainstorming, planning, TDD, debugging, and verification
|
|
59
|
-
gates were preserved;
|
|
60
|
-
- whether tests, security, accessibility, validation, and data-loss prevention
|
|
61
|
-
remained intact;
|
|
62
|
-
- files, dependencies, abstractions, and lines changed;
|
|
63
|
-
- whether the explanation and durable evidence stayed understandable;
|
|
64
|
-
- token and time measurements only when the AI host exposes trustworthy data.
|
|
65
|
-
|
|
66
|
-
A shorter answer or smaller diff is not automatically a better result.
|
|
67
|
-
|
|
68
|
-
## Priority And Boundary
|
|
69
|
-
|
|
70
|
-
Use this priority order:
|
|
71
|
-
|
|
72
|
-
1. User instructions and project safety requirements.
|
|
73
|
-
2. PGS routing, governance boundaries, and required evidence.
|
|
74
|
-
3. Superpowers workflow gates.
|
|
75
|
-
4. Ponytail complexity and cost advice.
|
|
76
|
-
|
|
77
|
-
Ponytail may:
|
|
78
|
-
|
|
79
|
-
- question speculative scope;
|
|
80
|
-
- prefer the standard library or an already-installed dependency;
|
|
81
|
-
- suggest fewer files, dependencies, and abstractions;
|
|
82
|
-
- identify code or structure that can be removed safely.
|
|
83
|
-
|
|
84
|
-
Ponytail may not:
|
|
85
|
-
|
|
86
|
-
- remove an explicit requirement;
|
|
87
|
-
- bypass PGS routing or document placement;
|
|
88
|
-
- skip required brainstorming, plans, TDD, debugging, or verification;
|
|
89
|
-
- weaken security, accessibility, trust-boundary validation, error handling, or
|
|
90
|
-
data-loss protection;
|
|
91
|
-
- replace proof with "the code is shorter";
|
|
92
|
-
- silently change the user's global Ponytail configuration.
|
|
93
|
-
|
|
94
|
-
## Recommended Workflow
|
|
95
|
-
|
|
96
|
-
```mermaid
|
|
97
|
-
flowchart TD
|
|
98
|
-
A["Task arrives"] --> B["PGS selects the project lane"]
|
|
99
|
-
B --> C["Superpowers runs the required workflow"]
|
|
100
|
-
C --> D{"Would a simplicity review help?"}
|
|
101
|
-
D -- "no" --> E["Implement and verify normally"]
|
|
102
|
-
D -- "yes" --> F["Use Ponytail explicitly for this task"]
|
|
103
|
-
F --> G["Keep requirements and proof intact"]
|
|
104
|
-
G --> E
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
For normal engineering, Ponytail is a scoped adviser, not a second workflow
|
|
108
|
-
engine and not a replacement for Superpowers.
|
|
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.
|
|
9
|
+
This file remains only as a stable target for historical links.
|
|
@@ -1,107 +1,12 @@
|
|
|
1
|
-
# Superpowers Integration
|
|
1
|
+
# Superpowers Integration (Retired)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
PGS no longer requires or routes through the Superpowers plugin.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The useful principles—understand before editing, diagnose root causes, verify
|
|
6
|
+
before claiming completion, and use tests proportionate to risk—are already part
|
|
7
|
+
of Codex and project-level engineering rules. Keeping a mandatory bootstrap
|
|
8
|
+
workflow duplicated those responsibilities and made small tasks unnecessarily
|
|
9
|
+
ceremonial.
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- PGS is the traffic desk and inspection station.
|
|
10
|
-
- Superpowers is the construction process.
|
|
11
|
-
- `pro-gov learn recall` is the pre-work lookup for reusable lessons.
|
|
12
|
-
- Compound Engineering's `ce-compound` is the knowledge-capture tail.
|
|
13
|
-
- Ponytail is an optional cost and complexity adviser.
|
|
14
|
-
|
|
15
|
-
PGS chooses the lane. Superpowers makes sure the work follows the right
|
|
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.
|
|
20
|
-
|
|
21
|
-
## Boundary
|
|
22
|
-
|
|
23
|
-
Superpowers owns engineering workflows such as:
|
|
24
|
-
|
|
25
|
-
- brainstorming
|
|
26
|
-
- writing plans
|
|
27
|
-
- TDD
|
|
28
|
-
- debugging
|
|
29
|
-
- verification before completion
|
|
30
|
-
- worktree usage
|
|
31
|
-
|
|
32
|
-
Superpowers 6.x for Codex is skill-routed, not hook-driven. The plugin manifest
|
|
33
|
-
does not need a SessionStart hook for PGS to make use of it. The startup
|
|
34
|
-
behavior comes from the `using-superpowers` skill description, which tells the
|
|
35
|
-
host to check relevant skills at the start of a conversation and before acting.
|
|
36
|
-
Do not add a PGS hook just to force Superpowers startup unless a future
|
|
37
|
-
Superpowers release explicitly requires one.
|
|
38
|
-
|
|
39
|
-
Project Governance System owns:
|
|
40
|
-
|
|
41
|
-
- documentation lifecycle
|
|
42
|
-
- agents routing
|
|
43
|
-
- current work index conventions
|
|
44
|
-
- pre-work learning recall through `pro-gov learn recall`
|
|
45
|
-
- the governed location and boundary for externally sourced AI evidence rules
|
|
46
|
-
|
|
47
|
-
Ponytail, when explicitly enabled for a task, may advise on:
|
|
48
|
-
|
|
49
|
-
- speculative scope;
|
|
50
|
-
- unnecessary dependencies;
|
|
51
|
-
- avoidable files and abstractions;
|
|
52
|
-
- simpler implementation choices.
|
|
53
|
-
|
|
54
|
-
Compound Engineering, by default, owns:
|
|
55
|
-
|
|
56
|
-
- post-work knowledge capture through `ce-compound`;
|
|
57
|
-
- fallback capture through `pro-gov learn capture` only when CE is unavailable;
|
|
58
|
-
- `docs/solutions/**` learning records and their CE frontmatter;
|
|
59
|
-
- CE-owned external artifacts when the user explicitly invokes CE workflows.
|
|
60
|
-
|
|
61
|
-
## Rule
|
|
62
|
-
|
|
63
|
-
Use Superpowers inside the selected project lane. Do not let Superpowers create a separate durable document tree unless the project explicitly adopts one.
|
|
64
|
-
|
|
65
|
-
Durable outputs should map back to the project's doc-gov layers:
|
|
66
|
-
|
|
67
|
-
- specs -> `docs/specs/**`
|
|
68
|
-
- plans -> `docs/plans/**`
|
|
69
|
-
- durable references -> `docs/reference/**`
|
|
70
|
-
|
|
71
|
-
## Execution Order
|
|
72
|
-
|
|
73
|
-
Agents routing classifies first. For non-trivial work, Learning Recall checks
|
|
74
|
-
prior `docs/solutions/**` and `CONCEPTS.md` records before files change.
|
|
75
|
-
Superpowers executes inside the selected lane. Optional Ponytail advice may run
|
|
76
|
-
after those responsibilities are known. It may make the implementation leaner,
|
|
77
|
-
but it must not remove explicit requirements or reduce how correctness is
|
|
78
|
-
proven. The Compound Gate runs near the end, before final reporting, to decide
|
|
79
|
-
whether verified work produced reusable learning.
|
|
80
|
-
|
|
81
|
-
```mermaid
|
|
82
|
-
flowchart TD
|
|
83
|
-
A["Task arrives"] --> B["Read project router and current work"]
|
|
84
|
-
B --> C["Classify profile and lane"]
|
|
85
|
-
C --> R["Run Learning Recall for non-trivial work"]
|
|
86
|
-
R --> D{"Does this lane need a Superpowers workflow?"}
|
|
87
|
-
D -- "yes" --> E["Use the matching Superpowers skill"]
|
|
88
|
-
D -- "no" --> F["Use the local non-Superpowers lane rules"]
|
|
89
|
-
E --> G{"Would an explicit simplicity review help?"}
|
|
90
|
-
F --> G
|
|
91
|
-
G -- "yes" --> H["Use Ponytail without dropping workflow gates"]
|
|
92
|
-
G -- "no" --> I["Pass the Compound Gate"]
|
|
93
|
-
H --> I
|
|
94
|
-
I --> J["Write durable outputs into doc-gov layers"]
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
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.
|
|
98
|
-
|
|
99
|
-
Host-specific files such as `CLAUDE.md` may include Superpowers skill routing
|
|
100
|
-
text. That text is an adapter. It must not replace the project `AGENTS.md`
|
|
101
|
-
router or run before the Project Governance System routing block.
|
|
102
|
-
|
|
103
|
-
For Ponytail mode policy and the isolated comparison protocol, read
|
|
104
|
-
`integrations/ponytail.md`.
|
|
105
|
-
|
|
106
|
-
For Compound Engineering's knowledge-capture boundary, read
|
|
107
|
-
`integrations/compound-engineering.md`.
|
|
11
|
+
This file remains only so historical decisions and links have a stable target.
|
|
12
|
+
Do not add Superpowers startup instructions or make it a portfolio requirement.
|
|
@@ -9,9 +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
|
|
13
12
|
directed_development: false
|
|
14
|
-
superpowers: false
|
|
15
13
|
project_local_required:
|
|
16
14
|
- docs/policy/best-practice-for-this-project.md
|
|
17
15
|
- canon/provenance/approval boundaries
|
|
@@ -19,5 +17,4 @@ project_local_required:
|
|
|
19
17
|
not_included:
|
|
20
18
|
- engineering-runtime agents routing
|
|
21
19
|
- behavior-critical code lanes
|
|
22
|
-
-
|
|
23
|
-
- Compound Engineering main workflow
|
|
20
|
+
- engineering workflow plugins
|
|
@@ -15,7 +15,7 @@ Use for non-runtime projects: IP development, AI media production, research vaul
|
|
|
15
15
|
|
|
16
16
|
- engineering-runtime agents routing
|
|
17
17
|
- Directed Development
|
|
18
|
-
-
|
|
18
|
+
- engineering TDD workflow plugins
|
|
19
19
|
- behavior-critical code lanes
|
|
20
20
|
|
|
21
21
|
## Requires Project-Local Rules
|
|
@@ -34,4 +34,6 @@ This profile is a human/AI adoption contract. `doc-gov` validates the resulting
|
|
|
34
34
|
project shape. `pro-gov init --apply` can install it into a fresh target, but
|
|
35
35
|
refuses all writes when any destination already exists. `sync --check` compares
|
|
36
36
|
shared core files while leaving project-local router, policy, and current-work
|
|
37
|
-
content under the target project's ownership.
|
|
37
|
+
content under the target project's ownership. Optional Lefthook and CI
|
|
38
|
+
guardrails are also consumer-owned when installed; `doc-gov doctor` checks that
|
|
39
|
+
their required governance commands remain present.
|
|
@@ -9,10 +9,8 @@ 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
|
|
13
12
|
directed_development: integrations/directed-development.md
|
|
14
13
|
mattpocock_skills: integrations/mattpocock-skills.md
|
|
15
|
-
superpowers: integrations/superpowers.md
|
|
16
14
|
project_local_required:
|
|
17
15
|
- docs/policy/best-practice-for-this-project.md
|
|
18
16
|
- AGENTS.md lane summary
|
|
@@ -21,5 +19,4 @@ project_local_required:
|
|
|
21
19
|
not_included:
|
|
22
20
|
- product canon
|
|
23
21
|
- project-specific runtime rules
|
|
24
|
-
-
|
|
25
|
-
- Compound Engineering plugin body
|
|
22
|
+
- external workflow plugin bodies
|
|
@@ -9,8 +9,6 @@ Use for code-heavy projects: apps, games, runtimes, services, browser products,
|
|
|
9
9
|
- `docs/governance/ssot-v0.9.md`
|
|
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
|
-
- `integrations/superpowers.md`
|
|
13
|
-
- `integrations/compound-engineering.md`
|
|
14
12
|
- `integrations/directed-development.md`
|
|
15
13
|
- `integrations/mattpocock-skills.md`
|
|
16
14
|
- starter `docs/governance/` and `docs/policy/` templates
|
|
@@ -30,8 +28,7 @@ Each project must define:
|
|
|
30
28
|
- product canon
|
|
31
29
|
- stack-specific rules
|
|
32
30
|
- game/app-specific lane wording
|
|
33
|
-
-
|
|
34
|
-
- Compound Engineering plugin body
|
|
31
|
+
- external workflow plugin bodies
|
|
35
32
|
- mattpocock/skills body
|
|
36
33
|
|
|
37
34
|
## Automation Boundary
|
|
@@ -40,16 +37,11 @@ This profile is a human/AI adoption contract. `doc-gov` validates the resulting
|
|
|
40
37
|
project shape. `pro-gov init --apply` can install it into a fresh target, but
|
|
41
38
|
refuses all writes when any destination already exists. `sync --check` compares
|
|
42
39
|
shared core files while leaving project-local router, policy, and current-work
|
|
43
|
-
content under the target project's ownership.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Stop hooks that call `pro-gov host-hook`. Use `pro-gov doctor --strict-hooks`
|
|
47
|
-
after sync to confirm the host configs are wired. The starter default is
|
|
48
|
-
`--compound-gate-mode off`, so the hook does not interrupt the main session
|
|
49
|
-
unless the project explicitly switches to `lite` or `strict`. Even when enabled,
|
|
50
|
-
the hook does not replace verification, tests, or `ce-compound` itself.
|
|
40
|
+
content under the target project's ownership. Optional Lefthook and CI
|
|
41
|
+
guardrails are also consumer-owned when installed; `doc-gov doctor` checks that
|
|
42
|
+
their required governance commands remain present.
|
|
51
43
|
|
|
52
44
|
For non-trivial engineering work, run `pro-gov learn recall --query "<task
|
|
53
45
|
summary>"` before changing files so existing `docs/solutions/**` and
|
|
54
|
-
`CONCEPTS.md` lessons can shape the work
|
|
55
|
-
|
|
46
|
+
`CONCEPTS.md` lessons can shape the work. After verified work, use the
|
|
47
|
+
`capture-learning` skill only when a reusable lesson exists.
|
|
@@ -40,13 +40,11 @@
|
|
|
40
40
|
|
|
41
41
|
- Name this project's adopted profile: `engineering-runtime` or `doc-only`.
|
|
42
42
|
- Point to the chosen agents-routing file from `docs/governance/agents-routing/`.
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
- Doc-only projects should say that Superpowers TDD and Directed Development are not enabled by default.
|
|
49
|
-
- External workflow systems such as Superpowers or GStack run inside the lane selected by this router. They must not replace this project router.
|
|
43
|
+
- Codex and this router own normal execution. Optional skills run only when their own narrow trigger directly matches the selected lane.
|
|
44
|
+
- mattpocock/skills may remain available as an unchanged shared toolbox; there is no bootstrap skill or mandatory workflow owner.
|
|
45
|
+
- Before non-trivial work, use Learning Recall. After verified work, use `capture-learning` only when a non-obvious reusable lesson exists.
|
|
46
|
+
- Do not install Stop/SubagentStop workflow reminder hooks.
|
|
47
|
+
- Doc-only projects should say that engineering TDD and Directed Development are not enabled by default.
|
|
50
48
|
|
|
51
49
|
<!-- PGS-ROUTER:END -->
|
|
52
50
|
|
|
@@ -24,7 +24,7 @@ superseded_by: null
|
|
|
24
24
|
|
|
25
25
|
Shared routing algorithm for non-runtime projects such as AI media, IP development, research, and asset governance workspaces.
|
|
26
26
|
|
|
27
|
-
This route does not use
|
|
27
|
+
This route does not use engineering TDD or Directed Development by default.
|
|
28
28
|
|
|
29
29
|
## Core Flow
|
|
30
30
|
|
|
@@ -78,6 +78,6 @@ unless the project explicitly opts them into doc-gov.
|
|
|
78
78
|
|
|
79
79
|
## External Workflow Boundary
|
|
80
80
|
|
|
81
|
-
This route runs before
|
|
81
|
+
This route runs before optional skill packs.
|
|
82
82
|
Host-specific adapters such as `CLAUDE.md` may adapt the route for a specific AI
|
|
83
83
|
client, but they must not replace the project `AGENTS.md` route.
|
|
@@ -36,7 +36,7 @@ flowchart TD
|
|
|
36
36
|
D -- "yes" --> E["Use Directed Development to split ordered DD Blocks"]
|
|
37
37
|
E --> C
|
|
38
38
|
D -- "no" --> F["Enter local lane"]
|
|
39
|
-
F --> G["Use
|
|
39
|
+
F --> G["Use a narrowly matched skill only when helpful"]
|
|
40
40
|
G --> H["Use AI-in-the-Loop evidence cycle"]
|
|
41
41
|
H --> I["Record evidence in doc-gov"]
|
|
42
42
|
```
|
|
@@ -70,9 +70,10 @@ But the shared router must not define project-specific lanes.
|
|
|
70
70
|
|
|
71
71
|
## External Workflow Boundary
|
|
72
72
|
|
|
73
|
-
This route runs before
|
|
74
|
-
|
|
75
|
-
but
|
|
73
|
+
This route runs before optional skill packs such as mattpocock/skills. Skills
|
|
74
|
+
may provide reviews, browser workflows, PRD/issue shaping, or domain-modeling
|
|
75
|
+
artifacts, but their own narrow trigger must match the selected lane. No skill
|
|
76
|
+
pack owns every engineering task.
|
|
76
77
|
|
|
77
78
|
Host-specific adapters such as `CLAUDE.md` may adapt the route for a specific AI
|
|
78
79
|
client, but they must not replace the project `AGENTS.md` route.
|
|
@@ -45,8 +45,7 @@ project-specific AI development habits live.
|
|
|
45
45
|
- Product canon, runtime truth, or content truth.
|
|
46
46
|
- Product prompts, generated media notes, or project-package workbench files.
|
|
47
47
|
- Current project plans or active specs.
|
|
48
|
-
-
|
|
49
|
-
- Compound Engineering plugin content.
|
|
48
|
+
- External workflow plugin content.
|
|
50
49
|
|
|
51
50
|
## Put Those Elsewhere
|
|
52
51
|
|
|
@@ -60,7 +59,7 @@ project-specific AI development habits live.
|
|
|
60
59
|
| Product or world truth | `docs/canon/` |
|
|
61
60
|
| Active implementation work | `docs/plans/active/` |
|
|
62
61
|
| Completed proof records | `docs/plans/completed/` |
|
|
63
|
-
|
|
|
62
|
+
| Reusable project learnings | `docs/solutions/**` as learning artifacts |
|
|
64
63
|
| Product artifacts outside governed docs | Project package, workbench, assets, runtime config, or source tree |
|
|
65
64
|
|
|
66
65
|
When unsure, ask this question: is this rule about how the document system works,
|
|
@@ -77,7 +76,5 @@ product packages, workbenches, prompt libraries, source folders, or asset
|
|
|
77
76
|
folders can be product artifacts. Keep those files where the product package
|
|
78
77
|
expects them unless a project explicitly opts them into doc-gov.
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
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.
|
|
79
|
+
Learning artifacts under `docs/solutions/**` are not governed docs by default.
|
|
80
|
+
They remain searchable project artifacts with their own lightweight metadata.
|