@pieai/pro-gov 0.5.4 → 0.7.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.
package/README.md CHANGED
@@ -47,7 +47,7 @@ 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
48
  pro-gov portfolio assets-check --config /path/to/portfolio.json --json
49
49
  pro-gov portfolio doctor --config /path/to/portfolio.json --json
50
- pro-gov portfolio ai-health --config /path/to/portfolio.json --out audits/portfolio-ai-health/2026-07-12
50
+ pro-gov portfolio ai-health --config /path/to/portfolio.json --target all --out audits/portfolio-ai-health/2026-07-12
51
51
  pro-gov lens inspect --target .
52
52
  pro-gov lens report --target . --out .pro-gov/lens-report.md
53
53
  pro-gov init --profile engineering-runtime --dry-run
@@ -68,7 +68,7 @@ What these commands do:
68
68
  | `portfolio plan` | Builds dry-run asset plans for manifest targets, using packaged public assets unless a full checkout is supplied. | No |
69
69
  | `portfolio assets-check` | Checks the integrity of each target's current managed asset lock and symlinks. | No |
70
70
  | `portfolio doctor` | Runs the offline fleet gate: package, target CLI, bundle, asset, symlink, Git-state evidence, and optional host-tooling checks. | No |
71
- | `portfolio ai-health` | Writes a privacy-preserving HTML/JSON map of entry, MCP-name, skill, Git, and secret-location health across the registered portfolio. | Only the explicit output |
71
+ | `portfolio ai-health` | Writes a privacy-preserving HTML/JSON map of entry, user/project AI Host SSOT, exact technology-version, four verification-gate, redundancy/cache, MCP-name, skill, Git, and secret-location health. `--target <id>` refreshes one target and merges it into the same-portfolio board; `--target all` creates complete coverage. | Only the explicit output |
72
72
  | `lens inspect` | Produces ProjectLens-style local evidence. | No |
73
73
  | `lens report` | Writes the requested report file. | Only the explicit output |
74
74
  | `init --dry-run` | Shows starter/profile files that would be needed. | No |
@@ -6,7 +6,7 @@ status: stable
6
6
  canonical: true
7
7
  owner: human
8
8
  created: 2026-05-06
9
- last_reviewed: 2026-07-11
9
+ last_reviewed: 2026-07-13
10
10
  domain: adoption
11
11
  tags:
12
12
  - adoption
@@ -16,6 +16,7 @@ pinned: false
16
16
  related:
17
17
  - POLICY-SYNC-STRATEGY
18
18
  - REF-PROJECT-RELATIONSHIP
19
+ - REF-MIGRATION-V1-1
19
20
  ---
20
21
 
21
22
  # Adoption Playbook
@@ -55,6 +56,7 @@ If unsure, pick `doc-only` first. Add engineering agents routing only when the p
55
56
  Before moving anything, list:
56
57
 
57
58
  - current project router files (`AGENTS.md`, `CLAUDE.md`, etc.)
59
+ - current project skill roots (`.agents/skills/`, `.claude/skills/`, etc.)
58
60
  - current docs index files
59
61
  - current active plans/specs
60
62
  - current canon/reference/archive locations
@@ -95,6 +97,8 @@ Current package-based method:
95
97
  connected
96
98
  - treat the npm package as the CLI source and the local `docs/governance/`
97
99
  files as the project's checked-in governance contract
100
+ - keep `AGENTS.md` and `.agents/skills/` canonical; host compatibility paths
101
+ must use the exact relative symlinks defined by the v1.1 SSOT contract
98
102
 
99
103
  ```bash
100
104
  pnpm add -D @pieai/pro-gov @pieai/doc-gov
@@ -167,10 +171,10 @@ Required concepts:
167
171
 
168
172
  - `docs/reference/documentation-map.md`
169
173
  - `docs/governance/boundary.md`
170
- - `docs/governance/ssot-v1.0.md`
174
+ - `docs/governance/ssot-v1.1.md`
171
175
  - `docs/governance/doc-agent-rules.md`
172
176
  - `docs/governance/doc-types.md`
173
- - `docs/governance/agents-routing/<selected-profile>-v1.0.md`
177
+ - `docs/governance/agents-routing/<selected-profile>-v1.1.md`
174
178
  - `docs/governance/templates/*.md`
175
179
  - `docs/policy/best-practice-for-this-project.md`
176
180
  - `docs/reference/execution/current-work.md`
@@ -180,7 +184,9 @@ Required concepts:
180
184
  - `docs/specs/completed/`
181
185
  - `docs/archive/`
182
186
  - `AGENTS.md` as the project router
183
- - `CLAUDE.md` as a thin adapter that forwards to `AGENTS.md`
187
+ - `CLAUDE.md -> AGENTS.md` as the exact relative compatibility symlink
188
+ - `.agents/skills/` as the canonical project skill root
189
+ - `.claude/skills -> ../.agents/skills` as the exact relative compatibility symlink
184
190
 
185
191
  ## Step 5: Apply The Profile
186
192
 
@@ -188,7 +194,7 @@ Required concepts:
188
194
 
189
195
  Add:
190
196
 
191
- - `docs/governance/agents-routing/engineering-runtime-v1.0.md`
197
+ - `docs/governance/agents-routing/engineering-runtime-v1.1.md`
192
198
  - engineering lane summary in `AGENTS.md`
193
199
  - detailed lane profile in `docs/policy/best-practice-for-this-project.md`
194
200
 
@@ -216,8 +222,8 @@ ceremony is required.
216
222
 
217
223
  Add:
218
224
 
219
- - `docs/governance/agents-routing/doc-only-v1.0.md`
220
- - `docs/governance/ssot-v1.0.md`
225
+ - `docs/governance/agents-routing/doc-only-v1.1.md`
226
+ - `docs/governance/ssot-v1.1.md`
221
227
  - AI-in-the-Loop rules linked from the project's external shared-rule source
222
228
  - canon/provenance/archive rules in `docs/policy/best-practice-for-this-project.md`
223
229
 
@@ -257,8 +263,10 @@ Prompts, generated media notes, project-package canon, source assets, and
257
263
  workbench files stay in their product package unless the project explicitly opts
258
264
  them into doc-gov.
259
265
 
260
- For the v1.0 structural migration, use
261
- `docs/reference/adoption/migration-v1.0.md` as the checklist.
266
+ For the current host-SSOT migration, use
267
+ `docs/reference/adoption/migration-v1.1.md` as the checklist. The v1.0 checklist
268
+ remains historical guidance for projects that have not yet completed the
269
+ decision and learning-surface migration.
262
270
 
263
271
  ## Step 8: Validate
264
272
 
@@ -0,0 +1,164 @@
1
+ ---
2
+ id: REF-MIGRATION-V1-1
3
+ title: Project Governance System v1.1 Migration Checklist
4
+ type: reference
5
+ status: stable
6
+ canonical: true
7
+ owner: human
8
+ created: 2026-07-13
9
+ last_reviewed: 2026-07-13
10
+ domain: adoption
11
+ tags:
12
+ - migration
13
+ - v1.1
14
+ - ai-hosts
15
+ - skills
16
+ - symlinks
17
+ pinned: false
18
+ related:
19
+ - POLICY-VERSIONING
20
+ - REF-ADOPTION-PLAYBOOK
21
+ - GOV-SSOT-V1-1
22
+ - GOV-AGENTS-ROUTING-ENGINEERING-RUNTIME-V1-1
23
+ - GOV-AGENTS-ROUTING-DOC-ONLY-V1-1
24
+ ---
25
+
26
+ # v1.1 Migration Checklist
27
+
28
+ Use this checklist when upgrading a v1.0 project. v1.1 removes duplicate
29
+ project router and skill surfaces across AI hosts. It does not change the
30
+ project's product truth, host-native runtime settings, or the installation
31
+ model of individual skills.
32
+
33
+ ## Target Contract
34
+
35
+ A migrated project has exactly these project-level truth surfaces:
36
+
37
+ | Concern | Canonical path | Exact compatibility link |
38
+ | --- | --- | --- |
39
+ | Project AI router | `AGENTS.md` | `CLAUDE.md -> AGENTS.md` |
40
+ | Project skills | `.agents/skills/` | `.claude/skills -> ../.agents/skills` |
41
+
42
+ The target text shown after each arrow is the raw symbolic-link target. An
43
+ absolute link or a differently spelled relative link is not the v1.1 contract,
44
+ even when it resolves to the same destination on one machine.
45
+
46
+ The exact-relative requirement applies to these compatibility roots only.
47
+ Entries under `.agents/skills/<skill>` may remain directories or valid
48
+ absolute or relative symlinks.
49
+
50
+ ## Preflight Inventory
51
+
52
+ Before replacing anything:
53
+
54
+ 1. Confirm that `AGENTS.md` is the intended project router.
55
+ 2. Inspect `CLAUDE.md` with `lstat` or `readlink`; do not assume a path is a
56
+ link because its content resembles `AGENTS.md`.
57
+ 3. Inventory both `.agents/skills/` and `.claude/skills/`.
58
+ 4. Identify any Claude-only skill that does not already exist under
59
+ `.agents/skills/`.
60
+ 5. Check Git status and preserve unrelated work.
61
+ 6. If the project uses managed asset locks, identify which links are
62
+ PGS-managed before changing them.
63
+
64
+ Do not delete a copied skill directory until every unique skill has a reviewed
65
+ canonical destination.
66
+
67
+ ## Project Router Migration
68
+
69
+ 1. Merge any still-valid project guidance from an independent `CLAUDE.md` into
70
+ the canonical `AGENTS.md`. Remove duplicated or host-specific wording that
71
+ does not belong in the shared project router.
72
+ 2. Replace `CLAUDE.md` with a symbolic link whose raw target is exactly
73
+ `AGENTS.md`.
74
+ 3. Update the router marker to:
75
+ `<!-- PGS-ROUTER:BEGIN v1.1 -->`.
76
+ 4. Update startup references to:
77
+ - `docs/governance/ssot-v1.1.md`
78
+ - `docs/governance/agents-routing/<selected-profile>-v1.1.md`
79
+ 5. Remove the v1.0 SSOT and selected routing file from the downstream project
80
+ after v1.1 is installed. Do not keep two current contracts.
81
+
82
+ Host-native settings such as `.claude/settings.json`, `.codex/config.toml`,
83
+ or project MCP configuration remain separate. They may configure host behavior,
84
+ but they must not become alternate project routers.
85
+
86
+ ## Project Skill Migration
87
+
88
+ 1. Create or confirm the canonical `.agents/skills/` directory.
89
+ Ensure it survives a clean checkout by tracking managed entries or
90
+ `.agents/skills/.gitkeep`. If the root is otherwise ignored, keep the
91
+ directory and placeholder explicitly unignored.
92
+ 2. Move or deliberately reinstall every unique project skill into that
93
+ canonical tree.
94
+ 3. Leave valid per-skill absolute or relative symlinks unchanged unless their
95
+ source is stale or broken.
96
+ 4. Replace `.claude/skills` with a symbolic link whose raw target is exactly
97
+ `../.agents/skills`.
98
+ 5. Confirm that every expected skill remains discoverable through both roots.
99
+
100
+ Do not run a bulk relative-link rewrite inside `.agents/skills/`. The
101
+ compatibility-root contract and the per-skill installation model are different
102
+ layers.
103
+
104
+ ## User-Level Skill Scope
105
+
106
+ User-level skills are not part of the portable project router contract. When a
107
+ user chooses the same SSOT pattern, keep `~/.agents/skills/` canonical and use
108
+ one compatible host-root link such as
109
+ `~/.claude/skills -> ../.agents/skills`.
110
+
111
+ Do not commit a user's home path into a project. User-level migration and
112
+ validation belong to the user's skill manager or portfolio health tooling, not
113
+ to a target repository's `doc-gov router-check`.
114
+
115
+ ## Governance File Migration
116
+
117
+ Install only the current starter contract:
118
+
119
+ - `docs/governance/ssot-v1.1.md`
120
+ - `docs/governance/agents-routing/engineering-runtime-v1.1.md`, or
121
+ - `docs/governance/agents-routing/doc-only-v1.1.md`
122
+
123
+ The central PGS repository retains v1.0 documents as superseded history.
124
+ Downstream starter assets and current router checks must not mix v1.0 and v1.1.
125
+
126
+ ## Verification
127
+
128
+ First inspect the raw links:
129
+
130
+ ```bash
131
+ test -L CLAUDE.md
132
+ test "$(readlink CLAUDE.md)" = "AGENTS.md"
133
+ test -d .agents/skills
134
+ test -L .claude/skills
135
+ test "$(readlink .claude/skills)" = "../.agents/skills"
136
+ ```
137
+
138
+ Then run the governance and project checks:
139
+
140
+ ```bash
141
+ pnpm pro-gov sync --check --profile <engineering-runtime|doc-only>
142
+ pnpm pro-gov lens inspect --target .
143
+ pnpm doc-gov check
144
+ pnpm doc-gov router-check
145
+ pnpm doc-gov scan
146
+ pnpm doc-gov scan --check
147
+ pnpm doc-gov links
148
+ pnpm doc-gov doctor
149
+ git diff --check
150
+ ```
151
+
152
+ Run the target project's normal typecheck, lint, tests, build, and visual checks
153
+ when the migration is part of an engineering repository upgrade.
154
+
155
+ ## Completion Evidence
156
+
157
+ Record:
158
+
159
+ - the raw target and resolved destination of both compatibility links;
160
+ - any unique skill moved into the canonical tree;
161
+ - the selected v1.1 routing profile;
162
+ - governance check results;
163
+ - project verification results;
164
+ - any deliberate exception that remains outside the portable project contract.