@pieai/pro-gov 0.7.2 → 0.8.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 +15 -11
- package/assets/docs/reference/adoption/adoption-playbook.md +8 -8
- package/assets/docs/reference/adoption/migration-v1.0.md +9 -4
- package/assets/docs/reference/adoption/recommended-agent-tooling.md +32 -5
- package/assets/host-dashboard/app.css +1 -0
- package/assets/host-dashboard/app.js +66 -0
- package/assets/host-dashboard/index.html +16 -0
- package/assets/integrations/.gitkeep +1 -0
- package/assets/portfolio-dashboard/app.js +4 -4
- package/assets/profiles/engineering-runtime/manifest.yml +0 -2
- package/assets/profiles/engineering-runtime/profile.md +5 -4
- package/assets/public-agent-assets/bundles/base-governance.json +1 -2
- package/assets/public-agent-assets/registry.json +3 -36
- package/assets/public-agent-assets/skills/pie-skills/beginner-friendly-docs/SKILL.md +2 -4
- package/assets/starter/.github/workflows/docs-check.yml +11 -1
- package/assets/starter/docs/governance/agents-routing/engineering-runtime-v1.1.md +19 -1
- package/assets/starter/docs/governance/boundary.md +3 -4
- package/assets/starter/docs/governance/doc-agent-rules.md +2 -2
- package/assets/starter/docs/governance/doc-types.md +2 -2
- package/assets/starter/docs/governance/ssot-v1.1.md +3 -5
- package/assets/starter/docs/governance/templates/adr.md +24 -2
- package/assets/starter/docs/reference/documentation-map.md +1 -1
- package/cli-guide.md +16 -3
- package/dist/cli.js +4735 -3228
- package/package.json +2 -2
- package/assets/integrations/mattpocock-skills.md +0 -42
- package/assets/public-agent-assets/skills/pie-skills/doc-cross-validator/SKILL.md +0 -194
|
@@ -8,8 +8,6 @@ required:
|
|
|
8
8
|
source: external shared-rule SSOT
|
|
9
9
|
agents_routing: docs/governance/agents-routing/engineering-runtime-v1.1.md
|
|
10
10
|
current_work: docs/reference/execution/current-work.md
|
|
11
|
-
optional:
|
|
12
|
-
mattpocock_skills: integrations/mattpocock-skills.md
|
|
13
11
|
project_local_required:
|
|
14
12
|
- docs/policy/best-practice-for-this-project.md
|
|
15
13
|
- AGENTS.md lane summary
|
|
@@ -9,7 +9,6 @@ Use for code-heavy projects: apps, games, runtimes, services, browser products,
|
|
|
9
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
11
|
- `docs/governance/agents-routing/engineering-runtime-v1.1.md`
|
|
12
|
-
- `integrations/mattpocock-skills.md`
|
|
13
12
|
- starter `docs/governance/` and `docs/policy/` templates
|
|
14
13
|
|
|
15
14
|
## Requires Project-Local Rules
|
|
@@ -28,7 +27,6 @@ Each project must define:
|
|
|
28
27
|
- stack-specific rules
|
|
29
28
|
- game/app-specific lane wording
|
|
30
29
|
- external workflow plugin bodies
|
|
31
|
-
- mattpocock/skills body
|
|
32
30
|
|
|
33
31
|
## Automation Boundary
|
|
34
32
|
|
|
@@ -42,5 +40,8 @@ their required governance commands remain present.
|
|
|
42
40
|
|
|
43
41
|
For non-trivial engineering work, run `pro-gov learn recall --query "<task
|
|
44
42
|
summary>"` before changing files so existing `docs/reference/learnings/**` and
|
|
45
|
-
`CONCEPTS.md` lessons can shape the work. After verified
|
|
46
|
-
`capture-learning`
|
|
43
|
+
`CONCEPTS.md` lessons can shape the work. After completed, verified, non-trivial
|
|
44
|
+
work, let `capture-learning` make a visible soft closeout decision. Capture only
|
|
45
|
+
when a non-obvious reusable lesson exists; a skip is valid and no exit hook is
|
|
46
|
+
required. Resolve the CLI through the project (`pnpm pro-gov` in this source
|
|
47
|
+
repository), not by assuming a global `pro-gov` binary.
|
|
@@ -87,46 +87,13 @@
|
|
|
87
87
|
"notes": "Public skill for writing teaching-oriented documentation with stories, analogies, diagrams, and examples.",
|
|
88
88
|
"promotion": {
|
|
89
89
|
"privateSourcePath": "skills/pie-skills/beginner-friendly-docs",
|
|
90
|
-
"privateSourceHash": "sha256:
|
|
91
|
-
"publicHash": "sha256:
|
|
90
|
+
"privateSourceHash": "sha256:1d33061af9376ca30a046c26e2d15f67d2972ea2364e799472fcd31c62ba7104",
|
|
91
|
+
"publicHash": "sha256:1d33061af9376ca30a046c26e2d15f67d2972ea2364e799472fcd31c62ba7104",
|
|
92
92
|
"sanitized": false,
|
|
93
|
-
"lastReviewed": "2026-
|
|
93
|
+
"lastReviewed": "2026-07-16",
|
|
94
94
|
"reviewNotes": "Public copy is byte-for-byte aligned with the private source at review time."
|
|
95
95
|
},
|
|
96
96
|
"defaultPlacement": "auto"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"id": "pie-skills/doc-cross-validator",
|
|
100
|
-
"title": "Doc Cross Validator",
|
|
101
|
-
"family": "pie-skills",
|
|
102
|
-
"kind": "skill",
|
|
103
|
-
"visibility": "public",
|
|
104
|
-
"sourceKind": "local",
|
|
105
|
-
"sourcePath": "skills/pie-skills/doc-cross-validator",
|
|
106
|
-
"hosts": [
|
|
107
|
-
"codex",
|
|
108
|
-
"claude-code",
|
|
109
|
-
"gemini-cli",
|
|
110
|
-
"antigravity"
|
|
111
|
-
],
|
|
112
|
-
"tags": [
|
|
113
|
-
"skill",
|
|
114
|
-
"pie-skills",
|
|
115
|
-
"documentation",
|
|
116
|
-
"validation"
|
|
117
|
-
],
|
|
118
|
-
"publishable": true,
|
|
119
|
-
"origin": "Promoted from maintainer-authored PGS local skills after public review.",
|
|
120
|
-
"notes": "Public skill for checking documentation claims against source code, config, data structures, and command output.",
|
|
121
|
-
"promotion": {
|
|
122
|
-
"privateSourcePath": "skills/pie-skills/doc-cross-validator",
|
|
123
|
-
"privateSourceHash": "sha256:8aadfc76f9c660ca42ac1dc2c2b25119f8f8328fcf759adb35f9106969411ab4",
|
|
124
|
-
"publicHash": "sha256:46bd797682876c3973ae6abf757bfc90fcbb3c451ace493eb091ea86e2b2ee0e",
|
|
125
|
-
"sanitized": true,
|
|
126
|
-
"lastReviewed": "2026-06-25",
|
|
127
|
-
"reviewNotes": "Public copy keeps the validation workflow while removing private checkout wording."
|
|
128
|
-
},
|
|
129
|
-
"defaultPlacement": "auto"
|
|
130
97
|
}
|
|
131
98
|
]
|
|
132
99
|
}
|
|
@@ -186,16 +186,14 @@ graph LR
|
|
|
186
186
|
|
|
187
187
|
### 第六步:交叉验证
|
|
188
188
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
写完后必须对照真实系统验证文档内容,确保没有自己想当然地编造流程。
|
|
189
|
+
这一步至关重要。写完后必须直接对照真实系统的源代码、配置、数据结构和命令输出验证文档内容,确保没有自己想当然地编造流程。
|
|
192
190
|
|
|
193
191
|
## 红线(这些是 AI 写教学文档时反复栽的坑,记住"为什么"就不会犯)
|
|
194
192
|
|
|
195
193
|
**所有层级**:
|
|
196
194
|
- 别用"简单来说"开头——它八成是"我没讲清楚"的遮羞布,真清楚的解释不需要这个前缀
|
|
197
195
|
- 别让一整段纯文字不带任何视觉元素(图/表/引用块)——读者的眼睛需要落脚点,文字墙会劝退人
|
|
198
|
-
- 别写完不做交叉验证——读着顺但流程是错的,比"丑但对"
|
|
196
|
+
- 别写完不做交叉验证——读着顺但流程是错的,比"丑但对"更危险
|
|
199
197
|
- 别在没有比喻或例子的情况下抛出复杂概念——抽象概念没有抓手,读者会假装看懂然后悄悄放弃
|
|
200
198
|
|
|
201
199
|
**初级额外**:
|
|
@@ -24,12 +24,22 @@ on:
|
|
|
24
24
|
- "package.json"
|
|
25
25
|
- "pnpm-lock.yaml"
|
|
26
26
|
|
|
27
|
+
permissions:
|
|
28
|
+
contents: read
|
|
29
|
+
|
|
30
|
+
concurrency:
|
|
31
|
+
group: docs-check-${{ github.ref }}
|
|
32
|
+
cancel-in-progress: true
|
|
33
|
+
|
|
27
34
|
jobs:
|
|
28
35
|
doc-gov:
|
|
29
36
|
name: doc-gov
|
|
30
|
-
runs-on: ubuntu-
|
|
37
|
+
runs-on: ubuntu-slim
|
|
38
|
+
timeout-minutes: 10
|
|
31
39
|
steps:
|
|
32
40
|
- uses: actions/checkout@v7
|
|
41
|
+
with:
|
|
42
|
+
persist-credentials: false
|
|
33
43
|
|
|
34
44
|
- uses: pnpm/action-setup@v6
|
|
35
45
|
with:
|
|
@@ -6,7 +6,7 @@ status: stable
|
|
|
6
6
|
canonical: true
|
|
7
7
|
owner: human
|
|
8
8
|
created: 2026-07-13
|
|
9
|
-
last_reviewed: 2026-07-
|
|
9
|
+
last_reviewed: 2026-07-16
|
|
10
10
|
domain: agents-routing
|
|
11
11
|
tags:
|
|
12
12
|
- agents-routing
|
|
@@ -41,6 +41,24 @@ flowchart TD
|
|
|
41
41
|
|
|
42
42
|
Use this router only to pick depth and workflow. Do not use it as a project roadmap.
|
|
43
43
|
|
|
44
|
+
## Local-First Verification And Release Boundary
|
|
45
|
+
|
|
46
|
+
- Before pushing, run the smallest project-local verification ladder that fully
|
|
47
|
+
covers the changed surface. Do not use hosted CI as a remote debugging loop.
|
|
48
|
+
- If a relevant local gate fails, fix it locally before pushing. If it cannot run
|
|
49
|
+
locally, record the exact blocker and do not push repeated guesses.
|
|
50
|
+
- Automatic hosted CI is a short independent smoke check. Keep it path-scoped,
|
|
51
|
+
cached, least-privileged, time-bounded, and configured to cancel stale runs.
|
|
52
|
+
- Expensive browser, performance, packaging, staging, publishing, and deployment
|
|
53
|
+
lanes are local or manually triggered release evidence unless a project records
|
|
54
|
+
a specific exception.
|
|
55
|
+
- Implementation and release are separate phases. The same solo developer or AI
|
|
56
|
+
may perform both, but a product task does not silently authorize publishing a
|
|
57
|
+
shared package or mutating staging/production.
|
|
58
|
+
|
|
59
|
+
This is a behavior contract, not a requirement to add another hook, CI service,
|
|
60
|
+
or local tool. Reuse the project's existing scripts and verification ladder.
|
|
61
|
+
|
|
44
62
|
## Project-Local Lane Profile
|
|
45
63
|
|
|
46
64
|
Every engineering project must define its own lane profile in `AGENTS.md` or `docs/policy/best-practice-for-this-project.md`.
|
|
@@ -57,7 +57,7 @@ project-specific AI development habits live.
|
|
|
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/` |
|
|
60
|
-
| Durable decisions | `docs/adr/`,
|
|
60
|
+
| Durable decisions | `docs/adr/`, governed decision records |
|
|
61
61
|
| Active implementation work | `docs/plans/active/` |
|
|
62
62
|
| Completed proof records | `docs/plans/completed/` |
|
|
63
63
|
| Reusable project learnings | `docs/reference/learnings/**` as governed reference documents |
|
|
@@ -78,6 +78,5 @@ product packages, workbenches, prompt libraries, source folders, or asset
|
|
|
78
78
|
folders can be product artifacts. Keep those files where the product package
|
|
79
79
|
expects them unless a project explicitly opts them into doc-gov.
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
do not copy ADRs into a second PGS decision directory.
|
|
81
|
+
Decision records under `docs/adr/**` are governed documents. Do not copy them
|
|
82
|
+
into a second PGS decision directory.
|
|
@@ -58,8 +58,8 @@ draft -> active -> completed -> stable -> superseded -> archived
|
|
|
58
58
|
|
|
59
59
|
`completed` is for finished execution records or specs that should no longer appear in active folders.
|
|
60
60
|
|
|
61
|
-
Durable decisions belong only in `docs/adr/**`. They use
|
|
62
|
-
|
|
61
|
+
Durable decisions belong only in `docs/adr/**`. They use the governed decision
|
|
62
|
+
frontmatter and decision lifecycle; do not duplicate them elsewhere.
|
|
63
63
|
|
|
64
64
|
## Upstream Rule
|
|
65
65
|
|
|
@@ -42,5 +42,5 @@ Normal documents use:
|
|
|
42
42
|
draft -> active -> completed -> stable -> superseded -> archived
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
Durable decisions use the
|
|
46
|
-
|
|
45
|
+
Durable decisions use the governed `docs/adr/**` surface and the decision
|
|
46
|
+
lifecycle. Do not duplicate them in another decision folder.
|
|
@@ -54,12 +54,10 @@ Markdown.
|
|
|
54
54
|
|
|
55
55
|
Extra governed roots are allowed only when a project explicitly opts in.
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
External and optional-tool artifacts are explicitly outside the default Doc Gov
|
|
58
|
+
schema:
|
|
59
59
|
|
|
60
60
|
- `CONTEXT.md` and `CONTEXT-MAP.md`
|
|
61
|
-
- `docs/adr/**`
|
|
62
|
-
- `docs/agents/**`
|
|
63
61
|
- `docs/brainstorms/**`
|
|
64
62
|
- `docs/pulse-reports/**`
|
|
65
63
|
|
|
@@ -161,7 +159,7 @@ works for governed docs:
|
|
|
161
159
|
| Agents-routing rules | `docs/governance/agents-routing/` |
|
|
162
160
|
| Doc-system rules, templates, and manifest | `docs/governance/` |
|
|
163
161
|
| Project AI/development policy | `docs/policy/` |
|
|
164
|
-
| Durable decisions | `docs/adr/`,
|
|
162
|
+
| Durable decisions | `docs/adr/`, governed decision records |
|
|
165
163
|
| Product or feature requirement | `docs/specs/` |
|
|
166
164
|
| Step-by-step implementation work | `docs/plans/` |
|
|
167
165
|
| Reusable learning records | `docs/reference/learnings/**`, governed as `reference` documents and recalled on demand |
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
id: REPLACE-ME
|
|
3
|
+
title: Replace Me
|
|
4
|
+
type: decision
|
|
5
|
+
status: proposed
|
|
6
|
+
canonical: true
|
|
7
|
+
owner: human
|
|
8
|
+
created: YYYY-MM-DD
|
|
9
|
+
last_reviewed: YYYY-MM-DD
|
|
10
|
+
domain: meta
|
|
11
|
+
tags:
|
|
12
|
+
- replace-me
|
|
13
|
+
pinned: false
|
|
14
|
+
related: []
|
|
15
|
+
supersedes: []
|
|
16
|
+
superseded_by: null
|
|
17
|
+
---
|
|
2
18
|
|
|
3
|
-
|
|
19
|
+
# REPLACE-ME: Replace Me
|
|
20
|
+
|
|
21
|
+
## Context
|
|
22
|
+
|
|
23
|
+
## Decision
|
|
24
|
+
|
|
25
|
+
## Consequences
|
|
@@ -35,7 +35,7 @@ Use `AGENTS.md` for startup reading. It should point agents to:
|
|
|
35
35
|
| Area | Purpose |
|
|
36
36
|
| --- | --- |
|
|
37
37
|
| `docs/policy/` | Project policy and AI development rules |
|
|
38
|
-
| `docs/adr/` |
|
|
38
|
+
| `docs/adr/` | Governed durable decision records |
|
|
39
39
|
| `docs/specs/active/` | Active requirements |
|
|
40
40
|
| `docs/specs/completed/` | Completed specs |
|
|
41
41
|
| `docs/plans/active/` | Active implementation plans |
|
package/cli-guide.md
CHANGED
|
@@ -21,6 +21,9 @@ pro-gov portfolio plan --config /path/to/portfolio.json --target web-app --json
|
|
|
21
21
|
pro-gov portfolio assets-check --config /path/to/portfolio.json --json
|
|
22
22
|
pro-gov portfolio doctor --config /path/to/portfolio.json --json
|
|
23
23
|
pro-gov portfolio ai-health --config /path/to/portfolio.json --target all --out audits/portfolio-ai-health/2026-07-12
|
|
24
|
+
pro-gov host-lens inspect --config /path/to/portfolio.json --json
|
|
25
|
+
pro-gov host-lens scan --config /path/to/portfolio.json --out audits/host-lens/2026-07-16
|
|
26
|
+
pro-gov host-lens plan --config /path/to/portfolio.json --out audits/host-lens/cleanup-review.json
|
|
24
27
|
pro-gov learn recall --query "release downstream sync" --target .
|
|
25
28
|
pro-gov learn capture --title "Reusable learning" --summary "Reusable lesson..." --target .
|
|
26
29
|
pro-gov lens inspect --target .
|
|
@@ -73,6 +76,7 @@ pro-gov portfolio plan --config /path/to/control-repo/.pro-gov/portfolio.json --
|
|
|
73
76
|
pro-gov portfolio assets-check --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
74
77
|
pro-gov portfolio doctor --config /path/to/control-repo/.pro-gov/portfolio.json --json
|
|
75
78
|
pro-gov portfolio ai-health --config /path/to/control-repo/.pro-gov/portfolio.json --target all --out audits/portfolio-ai-health/2026-07-12
|
|
79
|
+
pro-gov host-lens scan --config /path/to/portfolio.json --out .scratch/scheduled/host-lens
|
|
76
80
|
pro-gov assets plan --bundle base-governance --target . --out .pro-gov/asset-plan.json
|
|
77
81
|
pro-gov assets plan --bundle project-lens --target /path/to/project --host codex --placement manual --out /tmp/project-lens-plan.json
|
|
78
82
|
pro-gov assets apply --plan .pro-gov/asset-plan.json
|
|
@@ -94,7 +98,7 @@ target.
|
|
|
94
98
|
`portfolio ai-health` performs a read-only structural inventory of the control
|
|
95
99
|
plane, execution engine, registered targets, user/project AI-host configuration,
|
|
96
100
|
exact technology-version policy, the four verification-gate scripts, bounded
|
|
97
|
-
legacy-directory
|
|
101
|
+
project legacy-directory evidence, and machine-level specialist checks
|
|
98
102
|
explicitly declared in the private manifest (currently DevSpace). It then writes
|
|
99
103
|
a fixed local HTML dashboard plus JSON evidence to the explicit `--out`
|
|
100
104
|
directory. `--target <id>` refreshes one target and merges it into the existing
|
|
@@ -102,8 +106,17 @@ same-portfolio board; `--target all` creates complete coverage. Specialist
|
|
|
102
106
|
checks retain derived health states only; credentials, URLs, and raw process
|
|
103
107
|
environments are never written. The inventory records MCP server names and
|
|
104
108
|
environment filenames, but never reads or emits secret values, environment
|
|
105
|
-
values, MCP commands, arguments, or MCP environment maps.
|
|
106
|
-
read-only and never deletes
|
|
109
|
+
values, MCP commands, arguments, or MCP environment maps. Project redundancy
|
|
110
|
+
evidence is read-only and never deletes legacy directories.
|
|
111
|
+
|
|
112
|
+
`host-lens` owns host-storage inspection that does not belong in ProjectLens.
|
|
113
|
+
It measures known AI-host roots, package stores, Playwright browsers, explicit
|
|
114
|
+
backup/cache/temp groups, and protected runtime/configuration groups without
|
|
115
|
+
reading file contents. `scan` writes a second fixed SwimmerUIKit dashboard;
|
|
116
|
+
`plan` writes only a review checklist with `executable: false` and
|
|
117
|
+
`approved: false`. Prefer each package manager or host's native maintenance
|
|
118
|
+
tool over generic recursive deletion. See `docs/reference/host-lens.md` in a
|
|
119
|
+
full PGS checkout for the boundary and scheduled-operation contract.
|
|
107
120
|
|
|
108
121
|
Portfolio manifests are external configuration files owned by a user or
|
|
109
122
|
organization. PGS provides the format and commands; it does not publish a real
|