@pieai/pro-gov 0.5.4 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ required:
6
6
  ai_in_the_loop:
7
7
  target: docs/policy/shared-rules/ai-in-the-loop.md
8
8
  source: external shared-rule SSOT
9
- agents_routing: docs/governance/agents-routing/doc-only-v1.0.md
9
+ agents_routing: docs/governance/agents-routing/doc-only-v1.1.md
10
10
  current_work: docs/reference/execution/current-work.md
11
11
  project_local_required:
12
12
  - docs/policy/best-practice-for-this-project.md
@@ -6,9 +6,9 @@ Use for non-runtime projects: IP development, AI media production, research vaul
6
6
 
7
7
  - `packages/doc-gov`
8
8
  - `packages/pro-gov`
9
- - `docs/governance/ssot-v1.0.md`
9
+ - `docs/governance/ssot-v1.1.md`
10
10
  - external AI-in-the-Loop policy linked by target projects under `docs/policy/shared-rules/ai-in-the-loop.md`
11
- - `docs/governance/agents-routing/doc-only-v1.0.md`
11
+ - `docs/governance/agents-routing/doc-only-v1.1.md`
12
12
  - starter `docs/governance/` and `docs/policy/` templates
13
13
 
14
14
  ## Does Not Include By Default
@@ -6,7 +6,7 @@ required:
6
6
  ai_in_the_loop:
7
7
  target: docs/policy/shared-rules/ai-in-the-loop.md
8
8
  source: external shared-rule SSOT
9
- agents_routing: docs/governance/agents-routing/engineering-runtime-v1.0.md
9
+ agents_routing: docs/governance/agents-routing/engineering-runtime-v1.1.md
10
10
  current_work: docs/reference/execution/current-work.md
11
11
  optional:
12
12
  mattpocock_skills: integrations/mattpocock-skills.md
@@ -6,9 +6,9 @@ Use for code-heavy projects: apps, games, runtimes, services, browser products,
6
6
 
7
7
  - `packages/doc-gov`
8
8
  - `packages/pro-gov`
9
- - `docs/governance/ssot-v1.0.md`
9
+ - `docs/governance/ssot-v1.1.md`
10
10
  - external AI-in-the-Loop policy linked by target projects under `docs/policy/shared-rules/ai-in-the-loop.md`
11
- - `docs/governance/agents-routing/engineering-runtime-v1.0.md`
11
+ - `docs/governance/agents-routing/engineering-runtime-v1.1.md`
12
12
  - `integrations/mattpocock-skills.md`
13
13
  - starter `docs/governance/` and `docs/policy/` templates
14
14
 
@@ -2,11 +2,15 @@
2
2
 
3
3
  ## PGS Router Block
4
4
 
5
- <!-- PGS-ROUTER:BEGIN v1.0 -->
5
+ <!-- PGS-ROUTER:BEGIN v1.1 -->
6
6
 
7
7
  ## Boundary
8
8
 
9
9
  - PGS governs this `AGENTS.md` entry and governed Markdown under `docs/**`.
10
+ - `AGENTS.md` is the canonical project router; `CLAUDE.md` must be the exact
11
+ relative symlink `AGENTS.md`.
12
+ - `.agents/skills/` is the canonical project skill root; `.claude/skills`
13
+ must be the exact relative symlink `../.agents/skills`.
10
14
  - Product artifacts outside `docs/**` are not governed docs unless this project explicitly opts them in.
11
15
  - `README.md` is the human-facing introduction; read it only for positioning,
12
16
  public explanation, or README work.
@@ -19,7 +23,7 @@
19
23
  ## Documentation Tasks
20
24
 
21
25
  When the task creates, edits, moves, deletes, or governs documentation, read
22
- `docs/governance/boundary.md`, `docs/governance/ssot-v1.0.md`,
26
+ `docs/governance/boundary.md`, `docs/governance/ssot-v1.1.md`,
23
27
  `docs/governance/doc-agent-rules.md`, `docs/governance/doc-types.md`, the
24
28
  selected agents routing file, and all Markdown under `docs/policy/**/*.md`.
25
29
  That policy set includes subdirectories and symlinked shared-rule files; keep
@@ -1,12 +1,12 @@
1
1
  ---
2
- id: GOV-AGENTS-ROUTING-DOC-ONLY-V1-0
3
- title: Doc-Only Agents Routing v1.0
2
+ id: GOV-AGENTS-ROUTING-DOC-ONLY-V1-1
3
+ title: Doc-Only Agents Routing v1.1
4
4
  type: policy
5
5
  status: stable
6
6
  canonical: true
7
7
  owner: human
8
- created: 2026-05-09
9
- last_reviewed: 2026-07-12
8
+ created: 2026-07-13
9
+ last_reviewed: 2026-07-13
10
10
  domain: agents-routing
11
11
  tags:
12
12
  - agents-routing
@@ -14,13 +14,13 @@ tags:
14
14
  - workflow
15
15
  pinned: true
16
16
  related:
17
- - GOV-SSOT-V1-0
17
+ - GOV-SSOT-V1-1
18
18
  - REF-DOC-GOVERNANCE-BOUNDARY
19
19
  supersedes: []
20
20
  superseded_by: null
21
21
  ---
22
22
 
23
- # Doc-Only Agents Routing v1.0
23
+ # Doc-Only Agents Routing v1.1
24
24
 
25
25
  Shared routing algorithm for non-runtime projects such as AI media, IP development, research, and asset governance workspaces.
26
26
 
@@ -74,7 +74,7 @@ written as Markdown. Governed docs record decisions, plans, references, policies
74
74
  and workspace truth. Product artifacts stay in the project package or workbench
75
75
  unless the project explicitly opts them into doc-gov.
76
76
 
77
- ## Host Adapter Boundary
77
+ ## Host Compatibility Boundary
78
78
 
79
- Host-specific adapters such as `CLAUDE.md` may adapt the route for a specific AI
80
- client, but they must not replace the project `AGENTS.md` route.
79
+ Follow the Project AI Host SSOT in `docs/governance/ssot-v1.1.md`. Host-specific
80
+ runtime settings must not create a second project router or skill tree.
@@ -1,12 +1,12 @@
1
1
  ---
2
- id: GOV-AGENTS-ROUTING-ENGINEERING-RUNTIME-V1-0
3
- title: Engineering Runtime Agents Routing v1.0
2
+ id: GOV-AGENTS-ROUTING-ENGINEERING-RUNTIME-V1-1
3
+ title: Engineering Runtime Agents Routing v1.1
4
4
  type: policy
5
5
  status: stable
6
6
  canonical: true
7
7
  owner: human
8
- created: 2026-05-09
9
- last_reviewed: 2026-05-09
8
+ created: 2026-07-13
9
+ last_reviewed: 2026-07-13
10
10
  domain: agents-routing
11
11
  tags:
12
12
  - agents-routing
@@ -14,13 +14,13 @@ tags:
14
14
  - workflow
15
15
  pinned: true
16
16
  related:
17
- - GOV-SSOT-V1-0
17
+ - GOV-SSOT-V1-1
18
18
  - REF-DOC-GOVERNANCE-BOUNDARY
19
19
  supersedes: []
20
20
  superseded_by: null
21
21
  ---
22
22
 
23
- # Engineering Runtime Agents Routing v1.0
23
+ # Engineering Runtime Agents Routing v1.1
24
24
 
25
25
  Shared routing algorithm for app, game, runtime, and code-heavy projects.
26
26
 
@@ -54,7 +54,7 @@ Typical lanes:
54
54
 
55
55
  But the shared router must not define project-specific lanes.
56
56
 
57
- ## Host Adapter Boundary
57
+ ## Host Compatibility Boundary
58
58
 
59
- Host-specific adapters such as `CLAUDE.md` may adapt the route for a specific AI
60
- client, but they must not replace the project `AGENTS.md` route.
59
+ Follow the Project AI Host SSOT in `docs/governance/ssot-v1.1.md`. Host-specific
60
+ runtime settings must not create a second project router or skill tree.
@@ -53,7 +53,7 @@ project-specific AI development habits live.
53
53
  | --- | --- |
54
54
  | AI startup entry | `AGENTS.md` |
55
55
  | Agent routing algorithm | `docs/governance/agents-routing/` |
56
- | Governed SSOT rules | `docs/governance/ssot-v1.0.md` |
56
+ | Governed SSOT rules | `docs/governance/ssot-v1.1.md` |
57
57
  | Project AI development practices | `docs/policy/best-practice-for-this-project.md` |
58
58
  | Current work index | `docs/reference/execution/current-work.md` |
59
59
  | Product or world truth | `docs/canon/` |
@@ -69,8 +69,9 @@ System rules go here. Project-specific rules go to `docs/policy/`.
69
69
 
70
70
  ## Governed Scope
71
71
 
72
- By default, doc-gov governs Markdown under `docs/**` and AI entry files such as
73
- `AGENTS.md`.
72
+ By default, doc-gov governs Markdown under `docs/**` and the project AI entry
73
+ contract. `AGENTS.md` is the canonical project router; compatibility entry and
74
+ skill roots must follow `docs/governance/ssot-v1.1.md`.
74
75
 
75
76
  It does not govern every Markdown file in the repository. Markdown under
76
77
  product packages, workbenches, prompt libraries, source folders, or asset
@@ -1,17 +1,18 @@
1
1
  ---
2
- id: GOV-SSOT-V1-0
3
- title: SSOT Documentation Governance Rules v1.0
2
+ id: GOV-SSOT-V1-1
3
+ title: SSOT Documentation Governance Rules v1.1
4
4
  type: policy
5
5
  status: stable
6
6
  canonical: true
7
7
  owner: human
8
- created: 2026-05-09
9
- last_reviewed: 2026-05-09
8
+ created: 2026-07-13
9
+ last_reviewed: 2026-07-13
10
10
  domain: doc-governance
11
11
  tags:
12
12
  - ssot
13
13
  - doc-gov
14
14
  - boundary
15
+ - ai-hosts
15
16
  pinned: true
16
17
  related:
17
18
  - REF-DOC-GOVERNANCE-BOUNDARY
@@ -19,29 +20,32 @@ supersedes: []
19
20
  superseded_by: null
20
21
  ---
21
22
 
22
- # SSOT Documentation Governance Rules v1.0
23
+ # SSOT Documentation Governance Rules v1.1
23
24
 
24
25
  This rule defines how projects using Project Governance System handle
25
- **SSOT (Single Source of Truth)** for governed documentation.
26
+ **SSOT (Single Source of Truth)** for governed documentation and project-level
27
+ AI-host entry and skill discovery.
26
28
 
27
29
  Use it whenever an AI agent creates, modifies, moves, deletes, archives, or
28
- cross-references project documents.
30
+ cross-references project documents, routers, or project skill roots.
29
31
 
30
- Beginner version: every important fact should have one home. Other files can
31
- point to that home, but they should not become competing copies.
32
+ Beginner version: every important fact should have one home. Other files and
33
+ host compatibility paths may point to that home, but they must not become
34
+ competing copies.
32
35
 
33
36
  ## Governance Scope
34
37
 
35
38
  Project Governance System governs:
36
39
 
37
- - `AGENTS.md` and equivalent AI entry files.
40
+ - `AGENTS.md` and compatible project AI entry paths.
41
+ - `.agents/skills/` as the canonical project skill root and compatible
42
+ project skill discovery paths.
38
43
  - Governed Markdown under `docs/**`.
39
44
  - Documentation governance rules, agent routing rules, templates, manifests,
40
- plans, specs, references, canon, and archives that live under
41
- `docs/**`.
45
+ plans, specs, references, canon, and archives that live under `docs/**`.
42
46
 
43
- Project Governance System does **not** automatically govern every Markdown file
44
- or every asset in the repository.
47
+ Project Governance System does **not** automatically govern every Markdown file,
48
+ host-native runtime setting, user-level skill installation, or project asset.
45
49
 
46
50
  Markdown outside `docs/**` can be a product artifact, source asset, prompt,
47
51
  project package file, runtime note, generated media description, or local
@@ -62,20 +66,60 @@ Gov schema:
62
66
  PGS plans remain under `docs/plans/active/**` and
63
67
  `docs/plans/completed/**`.
64
68
 
69
+ ## Project AI Host SSOT
70
+
71
+ Every governed project uses these project-level truth surfaces:
72
+
73
+ | Concern | Canonical path | Compatibility contract |
74
+ | --- | --- | --- |
75
+ | Project AI router | `AGENTS.md` | `CLAUDE.md` is the exact relative symlink `AGENTS.md` |
76
+ | Project skills | `.agents/skills/` | `.claude/skills` is the exact relative symlink `../.agents/skills` |
77
+
78
+ The compatibility paths are structural contracts, not alternate content
79
+ locations:
80
+
81
+ - `CLAUDE.md` must be a symbolic link whose raw link target is exactly
82
+ `AGENTS.md`.
83
+ - `.claude/skills` must be a symbolic link whose raw link target is exactly
84
+ `../.agents/skills`.
85
+ - `.agents/skills/` must still exist in a clean checkout. Track managed skill
86
+ entries or a `.gitkeep`; if the directory is otherwise ignored, explicitly
87
+ unignore that placeholder.
88
+ - A copied file, copied directory, absolute link, differently spelled relative
89
+ link, wrong target, or dangling link is not compliant even when it currently
90
+ resolves to similar content.
91
+ - Check the link object and raw target with `lstat` and `readlink`; resolving
92
+ the final path alone is insufficient.
93
+ - Host-specific runtime settings may remain in native host configuration files,
94
+ but they must not introduce a second project router or project skill tree.
95
+
96
+ This exact-relative rule applies only to the two compatibility links above.
97
+ Individual entries under `.agents/skills/<skill>` may be directories or valid
98
+ absolute or relative symlinks. Skill managers may choose absolute per-skill
99
+ links when that is the correct installation model.
100
+
101
+ User-level skill roots are a separate configuration scope. A user may maintain
102
+ one canonical `~/.agents/skills/` tree and link a compatible host root to it,
103
+ but project governance must not hard-code a user's home directory or inspect it
104
+ as part of a portable project router contract.
105
+
65
106
  ## Core Behavior
66
107
 
67
108
  - **Discover before editing**: first identify the project's actual documentation
68
109
  system and current entrypoints.
69
110
  - **One truth surface**: each durable fact should have one canonical source;
70
111
  other files should summarize and link.
112
+ - **One project router and skill tree**: host compatibility paths point to the
113
+ canonical project surfaces instead of duplicating them.
71
114
  - **Runtime beats Markdown**: when runtime code/config is the real product truth,
72
115
  docs must point to it instead of duplicating it.
73
116
  - **Product artifacts stay in their product package**: prompts, generated media,
74
117
  asset manifests, project-package canon, and source materials should stay in
75
118
  the project's own production/workbench structure unless the project explicitly
76
119
  makes them governed docs.
77
- - **No parallel systems**: do not keep old and new documentation structures alive
78
- unless the project explicitly says it is in a migration window.
120
+ - **No parallel systems**: do not keep old and new documentation, router, or
121
+ skill structures alive unless the project explicitly says it is in a
122
+ migration window.
79
123
  - **No AI dump folders inside governed docs**: do not create ad-hoc `Temp/`,
80
124
  `Drafts/`, `Opus/`, `Codex/`, or AI-name folders under `docs/**`.
81
125
 
@@ -83,9 +127,9 @@ PGS plans remain under `docs/plans/active/**` and
83
127
 
84
128
  Before changing docs, look for project-local guidance in this order:
85
129
 
86
- 1. `AGENTS.md`, `CLAUDE.md`, or equivalent AI router/config adapter.
130
+ 1. `AGENTS.md`, reached directly or through a compliant compatibility link.
87
131
  2. `docs/governance/boundary.md`.
88
- 3. `docs/governance/ssot-v1.0.md`.
132
+ 3. `docs/governance/ssot-v1.1.md`.
89
133
  4. `docs/governance/agents-routing/` and the project's selected agents-routing file.
90
134
  5. `docs/reference/documentation-map.md`, root `README.md` for human-facing
91
135
  orientation, or another project-defined documentation index.
@@ -112,7 +156,8 @@ works for governed docs:
112
156
 
113
157
  | Need | Usually belongs in |
114
158
  | --- | --- |
115
- | AI entry and startup routing | `AGENTS.md` plus thin host-specific adapters such as `CLAUDE.md` |
159
+ | AI entry and startup routing | `AGENTS.md`, reached through exact host compatibility links when required |
160
+ | Project skill discovery | `.agents/skills/`, reached through exact host compatibility links when required |
116
161
  | Agents-routing rules | `docs/governance/agents-routing/` |
117
162
  | Doc-system rules, templates, and manifest | `docs/governance/` |
118
163
  | Project AI/development policy | `docs/policy/` |
@@ -131,16 +176,19 @@ table.
131
176
 
132
177
  ## Editing Rules
133
178
 
134
- When modifying documentation:
179
+ When modifying documentation or project AI-host compatibility:
135
180
 
136
181
  1. Find the canonical source first.
137
- 2. Decide whether the file is a governed doc or a product artifact.
182
+ 2. Decide whether the file is a governed doc, compatibility link, or product
183
+ artifact.
138
184
  3. Edit only the canonical source for the durable fact.
139
- 4. Update navigation links if names or paths change.
140
- 5. Replace duplicated content with a one-line summary plus link.
141
- 6. If code/runtime behavior changed, update the runtime truth first, then align
185
+ 4. Preserve exact compatibility link targets instead of editing through a
186
+ duplicate host-specific body.
187
+ 5. Update navigation links if names or paths change.
188
+ 6. Replace duplicated content with a one-line summary plus link.
189
+ 7. If code/runtime behavior changed, update the runtime truth first, then align
142
190
  docs.
143
- 7. Run the project's doc checks before claiming completion.
191
+ 8. Run the project's checks before claiming completion.
144
192
 
145
193
  ## Moving Or Deleting Docs
146
194
 
@@ -152,27 +200,34 @@ When modifying documentation:
152
200
  AI cognitive load.
153
201
  - If a file is moved, update indexes, manifests, and symlinks.
154
202
  - Do not move product artifacts into `docs/**` as a cleanup shortcut.
203
+ - Before replacing an incompatible skill directory, preserve any unique skills
204
+ by moving them into the canonical `.agents/skills/` tree.
155
205
 
156
206
  ## Completion Checklist
157
207
 
158
- Before reporting doc work complete:
208
+ Before reporting doc or host-compatibility work complete:
159
209
 
160
210
  - [ ] I found the project documentation system.
161
- - [ ] I identified whether the changed file is governed documentation or a
162
- product artifact.
211
+ - [ ] I identified whether the changed path is canonical, compatible, governed
212
+ documentation, or a product artifact.
163
213
  - [ ] I updated the canonical source, not a duplicate.
214
+ - [ ] `CLAUDE.md` and `.claude/skills` use their exact relative link targets.
215
+ - [ ] I did not rewrite valid per-skill links merely because they are absolute.
164
216
  - [ ] I did not create ungoverned temp/draft/AI-name folders under `docs/**`.
165
217
  - [ ] I updated links/navigation after moves or renames.
166
218
  - [ ] I kept runtime data in runtime/config files, not Markdown copies.
167
219
  - [ ] I kept product prompts/assets in the product package unless explicitly
168
220
  governed.
169
- - [ ] I ran the project's doc validation command when available.
221
+ - [ ] I ran the project's validation commands when available.
170
222
 
171
223
  ## Common Mistakes
172
224
 
173
225
  | Mistake | Better move |
174
226
  | --- | --- |
175
227
  | Copying the same design rule into five docs | Keep one canonical doc, link from the others. |
228
+ | Keeping a separate `CLAUDE.md` body | Link `CLAUDE.md` exactly to `AGENTS.md`. |
229
+ | Copying skills into `.claude/skills/` | Keep skills in `.agents/skills/` and link the compatible root. |
230
+ | Rewriting every absolute per-skill link | Leave valid per-skill installation links alone; the exact-relative rule is for compatibility roots. |
176
231
  | Treating old migration sources as current truth | Archive or delete them after migration. |
177
232
  | Letting Markdown override runtime config | Runtime/config wins; docs explain intent. |
178
233
  | Moving every `.md` file into `docs/**` | Govern discussion records; keep product artifacts in their product package. |
@@ -24,10 +24,10 @@ Use `AGENTS.md` for startup reading. It should point agents to:
24
24
 
25
25
  - `docs/policy/*.md`
26
26
  - `docs/governance/boundary.md`
27
- - `docs/governance/ssot-v1.0.md`
27
+ - `docs/governance/ssot-v1.1.md`
28
28
  - `docs/governance/doc-agent-rules.md`
29
29
  - `docs/governance/doc-types.md`
30
- - `docs/governance/agents-routing/<selected-profile>-v1.0.md`
30
+ - `docs/governance/agents-routing/<selected-profile>-v1.1.md`
31
31
  - `docs/reference/execution/current-work.md`
32
32
 
33
33
  ## Areas
package/cli-guide.md CHANGED
@@ -92,10 +92,14 @@ auto|manual` only as a migration override when deliberately moving an existing
92
92
  target.
93
93
 
94
94
  `portfolio ai-health` performs a read-only structural inventory of the control
95
- plane, execution engine, and registered targets, then writes a fixed local HTML
96
- dashboard plus JSON evidence to the explicit `--out` directory. It records MCP
97
- server names and environment filenames, but never reads or emits secret values,
98
- environment values, MCP commands, arguments, or MCP environment maps.
95
+ plane, execution engine, registered targets, user/project AI-host configuration,
96
+ and machine-level specialist checks explicitly declared in the private manifest
97
+ (currently DevSpace). It then writes a fixed local HTML dashboard plus JSON
98
+ evidence to the explicit `--out` directory. Specialist checks retain derived
99
+ health states only; credentials, URLs, and raw process environments are never
100
+ written. The inventory records MCP server names and environment filenames, but
101
+ never reads or emits secret values, environment values, MCP commands, arguments,
102
+ or MCP environment maps.
99
103
 
100
104
  Portfolio manifests are external configuration files owned by a user or
101
105
  organization. PGS provides the format and commands; it does not publish a real