@pieai/pro-gov 0.3.3
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/LICENSE +21 -0
- package/README.md +47 -0
- package/assets/docs/reference/adoption/adoption-playbook.md +215 -0
- package/assets/docs/reference/adoption/downstream-project-registry.md +78 -0
- package/assets/docs/reference/adoption/migration-v0.9.md +74 -0
- package/assets/docs/reference/adoption/project-relationship.md +128 -0
- package/assets/docs/reference/adoption/public-release-checklist.md +123 -0
- package/assets/docs/reference/adoption/site-publication-brief.md +86 -0
- package/assets/integrations/directed-development.md +36 -0
- package/assets/integrations/superpowers.md +52 -0
- package/assets/profiles/doc-only/manifest.yml +21 -0
- package/assets/profiles/doc-only/profile.md +37 -0
- package/assets/profiles/engineering-runtime/manifest.yml +22 -0
- package/assets/profiles/engineering-runtime/profile.md +39 -0
- package/assets/starter/.github/workflows/docs-check.yml +59 -0
- package/assets/starter/AGENTS.template.md +48 -0
- package/assets/starter/CLAUDE.template.md +6 -0
- package/assets/starter/docs/archive/.gitkeep +1 -0
- package/assets/starter/docs/canon/.gitkeep +1 -0
- package/assets/starter/docs/decisions/.gitkeep +1 -0
- package/assets/starter/docs/governance/agents-routing/doc-only-v0.9.md +83 -0
- package/assets/starter/docs/governance/agents-routing/engineering-runtime-v0.9.md +78 -0
- package/assets/starter/docs/governance/boundary.md +76 -0
- package/assets/starter/docs/governance/doc-agent-rules.md +71 -0
- package/assets/starter/docs/governance/doc-types.md +50 -0
- package/assets/starter/docs/governance/ssot-v0.9.md +166 -0
- package/assets/starter/docs/governance/templates/adr.md +24 -0
- package/assets/starter/docs/governance/templates/archive.md +23 -0
- package/assets/starter/docs/governance/templates/canon-entry.md +24 -0
- package/assets/starter/docs/governance/templates/plan.md +33 -0
- package/assets/starter/docs/governance/templates/policy.md +24 -0
- package/assets/starter/docs/governance/templates/reference.md +24 -0
- package/assets/starter/docs/governance/templates/spec.md +24 -0
- package/assets/starter/docs/plans/active/.gitkeep +1 -0
- package/assets/starter/docs/plans/completed/.gitkeep +1 -0
- package/assets/starter/docs/policy/best-practice-for-this-project.md +35 -0
- package/assets/starter/docs/reference/documentation-map.md +51 -0
- package/assets/starter/docs/reference/execution/current-work.md +36 -0
- package/assets/starter/docs/specs/active/.gitkeep +1 -0
- package/assets/starter/docs/specs/completed/.gitkeep +1 -0
- package/assets/starter/lefthook.template.yml +18 -0
- package/cli-guide.md +36 -0
- package/dist/cli.js +244 -0
- package/package.json +56 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: REF-SITE-PUBLICATION-BRIEF
|
|
3
|
+
title: Website Publication Brief
|
|
4
|
+
type: reference
|
|
5
|
+
status: stable
|
|
6
|
+
canonical: true
|
|
7
|
+
owner: human
|
|
8
|
+
created: 2026-06-04
|
|
9
|
+
last_reviewed: 2026-06-13
|
|
10
|
+
domain: adoption
|
|
11
|
+
tags:
|
|
12
|
+
- website
|
|
13
|
+
- public
|
|
14
|
+
- handoff
|
|
15
|
+
pinned: false
|
|
16
|
+
related:
|
|
17
|
+
- REF-PUBLIC-RELEASE-CHECKLIST
|
|
18
|
+
- REF-PROJECT-RELATIONSHIP
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Website Publication Brief
|
|
22
|
+
|
|
23
|
+
Use this when asking the PieAI Studio website project to add Project Governance
|
|
24
|
+
System as a public project page.
|
|
25
|
+
|
|
26
|
+
## Public Positioning
|
|
27
|
+
|
|
28
|
+
Project Governance System is an AI-native governance layer for projects that
|
|
29
|
+
work with AI agents over time.
|
|
30
|
+
|
|
31
|
+
Beginner-friendly description:
|
|
32
|
+
|
|
33
|
+
> Git remembers code history. AGENTS.md tells an AI how to enter a project.
|
|
34
|
+
> Superpowers gives engineering workflows. Project Governance System is the
|
|
35
|
+
> librarian and traffic desk: it decides where durable AI-created documents
|
|
36
|
+
> belong, which ones are current truth, which route a task should take, and
|
|
37
|
+
> when old documents should retire.
|
|
38
|
+
|
|
39
|
+
## What To Emphasize
|
|
40
|
+
|
|
41
|
+
- It keeps AI-generated specs, plans, decisions, references, and routing rules
|
|
42
|
+
from becoming unmanaged clutter.
|
|
43
|
+
- It separates central governance rules from project-local truth.
|
|
44
|
+
- It has two practical profiles: engineering-runtime and doc-only.
|
|
45
|
+
- It provides `doc-gov` commands for schema checks, manifest freshness, link
|
|
46
|
+
checks, router integrity, health checks, and read-only migration checks.
|
|
47
|
+
- It provides `pro-gov` commands for packaged starter/profile assets,
|
|
48
|
+
read-only init planning, read-only sync checks, and package health checks.
|
|
49
|
+
- It is designed to work with external workflow systems instead of replacing
|
|
50
|
+
them.
|
|
51
|
+
|
|
52
|
+
## Do Not Overclaim
|
|
53
|
+
|
|
54
|
+
- Do not say it replaces Git.
|
|
55
|
+
- Do not say it replaces Superpowers.
|
|
56
|
+
- Do not say it automatically migrates every project.
|
|
57
|
+
- Do not imply product prompts, generated media, or runtime assets must move
|
|
58
|
+
under `docs/**`.
|
|
59
|
+
|
|
60
|
+
## Suggested Website Prompt
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
Read <local ProjectGovernanceSystem checkout path> as the source project.
|
|
64
|
+
|
|
65
|
+
Add Project Governance System to <local PieAIStudio-Site path> as a
|
|
66
|
+
public project surface. Follow the existing project-page pattern, homepage card
|
|
67
|
+
pattern, translations, and sitemap conventions in that website repository.
|
|
68
|
+
|
|
69
|
+
Use the central repo's README.md, packages/doc-gov/README.md,
|
|
70
|
+
packages/pro-gov/README.md, docs/reference/adoption/public-release-checklist.md,
|
|
71
|
+
and docs/reference/adoption/site-publication-brief.md as source material.
|
|
72
|
+
|
|
73
|
+
Position it for normal readers as an AI-era documentation governance system:
|
|
74
|
+
the librarian and traffic desk for AI-created project documents. Explain what
|
|
75
|
+
problem it solves, why it matters, how doc-gov checks work, and how it fits next
|
|
76
|
+
to Git, AGENTS.md, Superpowers, pro-gov starter/profile distribution, and
|
|
77
|
+
project-local product truth.
|
|
78
|
+
|
|
79
|
+
Keep the copy confident but accurate. Do not claim automatic migration or
|
|
80
|
+
full replacement of existing workflow tools. npm publication is live, so include
|
|
81
|
+
the package install commands for @pieai/doc-gov and @pieai/pro-gov, and link the
|
|
82
|
+
npm packages plus the GitHub repository.
|
|
83
|
+
|
|
84
|
+
After implementation, run the site's normal quality/typecheck/build checks and
|
|
85
|
+
verify the new public route plus sitemap entry.
|
|
86
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Directed Development Integration
|
|
2
|
+
|
|
3
|
+
Directed Development is an optional workflow for mixed, cross-domain, interdependent product work.
|
|
4
|
+
|
|
5
|
+
It is not the default for every task.
|
|
6
|
+
|
|
7
|
+
## Boundary
|
|
8
|
+
|
|
9
|
+
Directed Development may define:
|
|
10
|
+
|
|
11
|
+
- ordered DD Blocks
|
|
12
|
+
- dependencies between Blocks
|
|
13
|
+
- BDD-style acceptance scenarios
|
|
14
|
+
- verification gates
|
|
15
|
+
|
|
16
|
+
Directed Development must not define:
|
|
17
|
+
|
|
18
|
+
- artifact locations
|
|
19
|
+
- project document paths
|
|
20
|
+
- project lane names
|
|
21
|
+
- runtime truth
|
|
22
|
+
|
|
23
|
+
Those remain owned by the project and doc-gov.
|
|
24
|
+
|
|
25
|
+
Agents routing decides whether this workflow applies. Directed Development does
|
|
26
|
+
not replace the project router.
|
|
27
|
+
|
|
28
|
+
## Trigger
|
|
29
|
+
|
|
30
|
+
Use Directed Development only when all are true:
|
|
31
|
+
|
|
32
|
+
- the task is product work
|
|
33
|
+
- it crosses local lanes or shared contracts
|
|
34
|
+
- sequencing risk makes a flat plan unsafe
|
|
35
|
+
|
|
36
|
+
Doc-only projects do not use Directed Development unless explicitly opted in.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Superpowers Integration
|
|
2
|
+
|
|
3
|
+
Superpowers is an external plugin/system. This repository does not vendor or rewrite it.
|
|
4
|
+
|
|
5
|
+
## Boundary
|
|
6
|
+
|
|
7
|
+
Superpowers owns engineering workflows such as:
|
|
8
|
+
|
|
9
|
+
- brainstorming
|
|
10
|
+
- writing plans
|
|
11
|
+
- TDD
|
|
12
|
+
- debugging
|
|
13
|
+
- verification before completion
|
|
14
|
+
- worktree usage
|
|
15
|
+
|
|
16
|
+
Project Governance System owns:
|
|
17
|
+
|
|
18
|
+
- documentation lifecycle
|
|
19
|
+
- agents routing
|
|
20
|
+
- current work index conventions
|
|
21
|
+
- the governed location and boundary for externally sourced AI evidence rules
|
|
22
|
+
|
|
23
|
+
## Rule
|
|
24
|
+
|
|
25
|
+
Use Superpowers inside the selected project lane. Do not let Superpowers create a separate durable document tree unless the project explicitly adopts one.
|
|
26
|
+
|
|
27
|
+
Durable outputs should map back to the project's doc-gov layers:
|
|
28
|
+
|
|
29
|
+
- specs -> `docs/specs/**`
|
|
30
|
+
- plans -> `docs/plans/**`
|
|
31
|
+
- durable references -> `docs/reference/**`
|
|
32
|
+
|
|
33
|
+
## Execution Order
|
|
34
|
+
|
|
35
|
+
Agents routing classifies first. Superpowers executes inside the selected lane.
|
|
36
|
+
|
|
37
|
+
```mermaid
|
|
38
|
+
flowchart TD
|
|
39
|
+
A["Task arrives"] --> B["Read project router and current work"]
|
|
40
|
+
B --> C["Classify profile and lane"]
|
|
41
|
+
C --> D{"Does this lane need a Superpowers workflow?"}
|
|
42
|
+
D -- "yes" --> E["Use the matching Superpowers skill"]
|
|
43
|
+
D -- "no" --> F["Use the local non-Superpowers lane rules"]
|
|
44
|
+
E --> G["Write durable outputs into doc-gov layers"]
|
|
45
|
+
F --> G
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
Host-specific files such as `CLAUDE.md` may include Superpowers skill routing
|
|
51
|
+
text. That text is an adapter. It must not replace the project `AGENTS.md`
|
|
52
|
+
router or run before the Project Governance System routing block.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
profile: doc-only
|
|
2
|
+
required:
|
|
3
|
+
doc_gov: true
|
|
4
|
+
pro_gov: true
|
|
5
|
+
ssot: true
|
|
6
|
+
ai_in_the_loop:
|
|
7
|
+
target: docs/policy/shared-rules/ai-in-the-loop.md
|
|
8
|
+
source: external shared-rule SSOT
|
|
9
|
+
agents_routing: docs/governance/agents-routing/doc-only-v0.9.md
|
|
10
|
+
current_work: docs/reference/execution/current-work.md
|
|
11
|
+
optional:
|
|
12
|
+
directed_development: false
|
|
13
|
+
superpowers: false
|
|
14
|
+
project_local_required:
|
|
15
|
+
- docs/policy/best-practice-for-this-project.md
|
|
16
|
+
- canon/provenance/approval boundaries
|
|
17
|
+
- archive/delete policy
|
|
18
|
+
not_included:
|
|
19
|
+
- engineering-runtime agents routing
|
|
20
|
+
- behavior-critical code lanes
|
|
21
|
+
- Superpowers TDD workflow
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Doc-Only Profile
|
|
2
|
+
|
|
3
|
+
Use for non-runtime projects: IP development, AI media production, research vaults, writing systems, asset governance, and strategy libraries.
|
|
4
|
+
|
|
5
|
+
## Includes
|
|
6
|
+
|
|
7
|
+
- `packages/doc-gov`
|
|
8
|
+
- `packages/pro-gov`
|
|
9
|
+
- `docs/governance/ssot-v0.9.md`
|
|
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-v0.9.md`
|
|
12
|
+
- starter `docs/governance/` and `docs/policy/` templates
|
|
13
|
+
|
|
14
|
+
## Does Not Include By Default
|
|
15
|
+
|
|
16
|
+
- engineering-runtime agents routing
|
|
17
|
+
- Directed Development
|
|
18
|
+
- Superpowers TDD
|
|
19
|
+
- behavior-critical code lanes
|
|
20
|
+
|
|
21
|
+
## Requires Project-Local Rules
|
|
22
|
+
|
|
23
|
+
Each project must define:
|
|
24
|
+
|
|
25
|
+
- canon layers
|
|
26
|
+
- asset/provenance rules
|
|
27
|
+
- approval boundaries
|
|
28
|
+
- archive/delete policy
|
|
29
|
+
- current work index (required, kept lightweight when there is no active execution lane)
|
|
30
|
+
|
|
31
|
+
## Automation Boundary
|
|
32
|
+
|
|
33
|
+
This profile is a human/AI adoption contract. `doc-gov` validates the resulting
|
|
34
|
+
project shape. `pro-gov` packages reusable starter/profile assets and exposes
|
|
35
|
+
read-only init/sync checks, but it does not overwrite project-local files in
|
|
36
|
+
the first release. Use `starter/`, this profile, and `manifest.yml` as the
|
|
37
|
+
reference checklist.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
profile: engineering-runtime
|
|
2
|
+
required:
|
|
3
|
+
doc_gov: true
|
|
4
|
+
pro_gov: true
|
|
5
|
+
ssot: true
|
|
6
|
+
ai_in_the_loop:
|
|
7
|
+
target: docs/policy/shared-rules/ai-in-the-loop.md
|
|
8
|
+
source: external shared-rule SSOT
|
|
9
|
+
agents_routing: docs/governance/agents-routing/engineering-runtime-v0.9.md
|
|
10
|
+
current_work: docs/reference/execution/current-work.md
|
|
11
|
+
optional:
|
|
12
|
+
directed_development: integrations/directed-development.md
|
|
13
|
+
superpowers: integrations/superpowers.md
|
|
14
|
+
project_local_required:
|
|
15
|
+
- docs/policy/best-practice-for-this-project.md
|
|
16
|
+
- AGENTS.md lane summary
|
|
17
|
+
- verification command ladder
|
|
18
|
+
- current runtime truth hierarchy
|
|
19
|
+
not_included:
|
|
20
|
+
- product canon
|
|
21
|
+
- project-specific runtime rules
|
|
22
|
+
- Superpowers plugin body
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Engineering Runtime Profile
|
|
2
|
+
|
|
3
|
+
Use for code-heavy projects: apps, games, runtimes, services, browser products, Electron apps, and multiplayer prototypes.
|
|
4
|
+
|
|
5
|
+
## Includes
|
|
6
|
+
|
|
7
|
+
- `packages/doc-gov`
|
|
8
|
+
- `packages/pro-gov`
|
|
9
|
+
- `docs/governance/ssot-v0.9.md`
|
|
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-v0.9.md`
|
|
12
|
+
- `integrations/superpowers.md`
|
|
13
|
+
- `integrations/directed-development.md`
|
|
14
|
+
- starter `docs/governance/` and `docs/policy/` templates
|
|
15
|
+
|
|
16
|
+
## Requires Project-Local Rules
|
|
17
|
+
|
|
18
|
+
Each project must define:
|
|
19
|
+
|
|
20
|
+
- current runtime truth hierarchy
|
|
21
|
+
- lane profile
|
|
22
|
+
- behavior-critical paths
|
|
23
|
+
- verification command ladder
|
|
24
|
+
- current work index
|
|
25
|
+
|
|
26
|
+
## Does Not Include
|
|
27
|
+
|
|
28
|
+
- product canon
|
|
29
|
+
- stack-specific rules
|
|
30
|
+
- game/app-specific lane wording
|
|
31
|
+
- Superpowers plugin body
|
|
32
|
+
|
|
33
|
+
## Automation Boundary
|
|
34
|
+
|
|
35
|
+
This profile is a human/AI adoption contract. `doc-gov` validates the resulting
|
|
36
|
+
project shape. `pro-gov` packages reusable starter/profile assets and exposes
|
|
37
|
+
read-only init/sync checks, but it does not overwrite project-local files in
|
|
38
|
+
the first release. Use `starter/`, this profile, and `manifest.yml` as the
|
|
39
|
+
reference checklist.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: docs-check
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths:
|
|
6
|
+
- "AGENTS.md"
|
|
7
|
+
- "CLAUDE.md"
|
|
8
|
+
- "GEMINI.md"
|
|
9
|
+
- "README.md"
|
|
10
|
+
- "docs/**"
|
|
11
|
+
- "lefthook.yml"
|
|
12
|
+
- ".github/workflows/docs-check.yml"
|
|
13
|
+
- "package.json"
|
|
14
|
+
- "pnpm-lock.yaml"
|
|
15
|
+
push:
|
|
16
|
+
branches:
|
|
17
|
+
- main
|
|
18
|
+
paths:
|
|
19
|
+
- "AGENTS.md"
|
|
20
|
+
- "CLAUDE.md"
|
|
21
|
+
- "GEMINI.md"
|
|
22
|
+
- "README.md"
|
|
23
|
+
- "docs/**"
|
|
24
|
+
- "lefthook.yml"
|
|
25
|
+
- ".github/workflows/docs-check.yml"
|
|
26
|
+
- "package.json"
|
|
27
|
+
- "pnpm-lock.yaml"
|
|
28
|
+
|
|
29
|
+
jobs:
|
|
30
|
+
doc-gov:
|
|
31
|
+
name: doc-gov
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@v4
|
|
35
|
+
|
|
36
|
+
- uses: pnpm/action-setup@v4
|
|
37
|
+
|
|
38
|
+
- uses: actions/setup-node@v4
|
|
39
|
+
with:
|
|
40
|
+
node-version: "22"
|
|
41
|
+
cache: pnpm
|
|
42
|
+
|
|
43
|
+
- name: Install dependencies
|
|
44
|
+
run: pnpm install --frozen-lockfile
|
|
45
|
+
|
|
46
|
+
- name: Validate router and entry files
|
|
47
|
+
run: pnpm doc-gov router-check
|
|
48
|
+
|
|
49
|
+
- name: Validate governed docs
|
|
50
|
+
run: pnpm doc-gov check
|
|
51
|
+
|
|
52
|
+
- name: Validate manifest freshness
|
|
53
|
+
run: pnpm doc-gov scan --check
|
|
54
|
+
|
|
55
|
+
- name: Validate links
|
|
56
|
+
run: pnpm doc-gov links
|
|
57
|
+
|
|
58
|
+
- name: Audit docs
|
|
59
|
+
run: pnpm doc-gov audit
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# PROJECT_NAME AI Router
|
|
2
|
+
|
|
3
|
+
## PGS Router Block
|
|
4
|
+
|
|
5
|
+
<!-- PGS-ROUTER:BEGIN v0.9 -->
|
|
6
|
+
|
|
7
|
+
## Startup Reading
|
|
8
|
+
|
|
9
|
+
`README.md` is the human-facing project introduction. Do not use it as the default AI startup path unless the task is about project positioning, public explanation, or the README itself.
|
|
10
|
+
|
|
11
|
+
1. All Markdown files under `docs/policy/**/*.md`, including files in
|
|
12
|
+
subdirectories and symlinked shared-rule files.
|
|
13
|
+
2. `docs/governance/boundary.md`
|
|
14
|
+
3. `docs/governance/ssot-v0.9.md`
|
|
15
|
+
4. `docs/governance/doc-agent-rules.md`
|
|
16
|
+
5. `docs/governance/doc-types.md`
|
|
17
|
+
6. The selected agents routing file:
|
|
18
|
+
- `docs/governance/agents-routing/engineering-runtime-v0.9.md`, or
|
|
19
|
+
- `docs/governance/agents-routing/doc-only-v0.9.md`
|
|
20
|
+
7. `docs/reference/execution/current-work.md`
|
|
21
|
+
|
|
22
|
+
## Governance
|
|
23
|
+
|
|
24
|
+
- Use doc-gov for governed Markdown.
|
|
25
|
+
- Governed Markdown lives under `docs/**` by default.
|
|
26
|
+
- Product artifacts outside `docs/**` are not governed docs unless this project explicitly opts them in.
|
|
27
|
+
- Before creating docs: `pnpm doc-gov find <topic>`.
|
|
28
|
+
- Before claiming doc work complete:
|
|
29
|
+
- `pnpm doc-gov router-check`
|
|
30
|
+
- `pnpm doc-gov check`
|
|
31
|
+
- `pnpm doc-gov scan --check`
|
|
32
|
+
- `pnpm doc-gov links`
|
|
33
|
+
- `pnpm doc-gov audit`
|
|
34
|
+
- `pnpm doc-gov doctor`
|
|
35
|
+
|
|
36
|
+
## Routing
|
|
37
|
+
|
|
38
|
+
- Name this project's adopted profile: `engineering-runtime` or `doc-only`.
|
|
39
|
+
- Point to the chosen agents-routing file from `docs/governance/agents-routing/`.
|
|
40
|
+
- Engineering projects may use Superpowers, Directed Development, GStack, or other external workflows only inside the selected lane; do not copy upstream `integrations/` into the target project by default.
|
|
41
|
+
- Doc-only projects should say that Superpowers TDD and Directed Development are not enabled by default.
|
|
42
|
+
- External workflow systems such as Superpowers or GStack run inside the lane selected by this router. They must not replace this project router.
|
|
43
|
+
|
|
44
|
+
<!-- PGS-ROUTER:END -->
|
|
45
|
+
|
|
46
|
+
## Upstream Rule
|
|
47
|
+
|
|
48
|
+
Do not locally invent doc-gov core changes such as new document statuses, frontmatter schema, lifecycle rules, shared agents-routing rules, or external shared-rule placement contracts. If such a change seems necessary, propose it upstream in the Project Governance System upstream repository first.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GOV-AGENTS-ROUTING-DOC-ONLY-V0-9
|
|
3
|
+
title: Doc-Only Agents Routing v0.9
|
|
4
|
+
type: policy
|
|
5
|
+
status: stable
|
|
6
|
+
canonical: true
|
|
7
|
+
owner: human
|
|
8
|
+
created: 2026-05-09
|
|
9
|
+
last_reviewed: 2026-05-09
|
|
10
|
+
domain: agents-routing
|
|
11
|
+
tags:
|
|
12
|
+
- agents-routing
|
|
13
|
+
- doc-only
|
|
14
|
+
- workflow
|
|
15
|
+
pinned: true
|
|
16
|
+
related:
|
|
17
|
+
- GOV-SSOT-V0-9
|
|
18
|
+
- REF-DOC-GOVERNANCE-BOUNDARY
|
|
19
|
+
supersedes: []
|
|
20
|
+
superseded_by: null
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Doc-Only Agents Routing v0.9
|
|
24
|
+
|
|
25
|
+
Shared routing algorithm for non-runtime projects such as AI media, IP development, research, and asset governance workspaces.
|
|
26
|
+
|
|
27
|
+
This route does not use Superpowers TDD or Directed Development by default.
|
|
28
|
+
|
|
29
|
+
## Core Flow
|
|
30
|
+
|
|
31
|
+
```mermaid
|
|
32
|
+
flowchart TD
|
|
33
|
+
A["Task arrives"] --> B["Read project router and current work"]
|
|
34
|
+
B --> C{"What is being changed?"}
|
|
35
|
+
C --> D["canon / durable truth"]
|
|
36
|
+
C --> E["asset / provenance"]
|
|
37
|
+
C --> F["reference / operating guide"]
|
|
38
|
+
C --> G["archive / cleanup"]
|
|
39
|
+
C --> H["review / synthesis"]
|
|
40
|
+
D --> I["Update canonical doc"]
|
|
41
|
+
E --> J["Preserve source and approval trail"]
|
|
42
|
+
F --> K["Update reusable guide"]
|
|
43
|
+
G --> L["Archive or delete stale material"]
|
|
44
|
+
H --> M["Write summary and evidence"]
|
|
45
|
+
I --> N["Run doc-gov checks"]
|
|
46
|
+
J --> N
|
|
47
|
+
K --> N
|
|
48
|
+
L --> N
|
|
49
|
+
M --> N
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Rules
|
|
53
|
+
|
|
54
|
+
- Do not ask whether the task needs TDD unless the project has actual runtime code.
|
|
55
|
+
- Do not trigger Directed Development unless the project explicitly opts in.
|
|
56
|
+
- Prefer SSOT, provenance, and approval clarity over engineering ceremonies.
|
|
57
|
+
- Use AI-in-the-Loop for evidence: inspect source, change one thing, verify the target document or asset path.
|
|
58
|
+
|
|
59
|
+
## Typical Lanes
|
|
60
|
+
|
|
61
|
+
- canon truth
|
|
62
|
+
- asset intake and promotion
|
|
63
|
+
- production/reference guide
|
|
64
|
+
- archive and cleanup
|
|
65
|
+
- research synthesis
|
|
66
|
+
|
|
67
|
+
The local project decides exact lane names.
|
|
68
|
+
|
|
69
|
+
## Product Artifact Boundary
|
|
70
|
+
|
|
71
|
+
Doc-only projects often produce Markdown, prompts, images, scripts, bibles,
|
|
72
|
+
reference packs, and asset manifests as product artifacts.
|
|
73
|
+
|
|
74
|
+
Those artifacts do not become governed `docs/**` files just because they are
|
|
75
|
+
written as Markdown. Governed docs record decisions, plans, references, policies,
|
|
76
|
+
and workspace truth. Product artifacts stay in the project package or workbench
|
|
77
|
+
unless the project explicitly opts them into doc-gov.
|
|
78
|
+
|
|
79
|
+
## External Workflow Boundary
|
|
80
|
+
|
|
81
|
+
This route runs before external workflow systems such as Superpowers or GStack.
|
|
82
|
+
Host-specific files such as `CLAUDE.md` or `GEMINI.md` may adapt the route for a
|
|
83
|
+
specific AI client, but they must not replace the project `AGENTS.md` route.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: GOV-AGENTS-ROUTING-ENGINEERING-RUNTIME-V0-9
|
|
3
|
+
title: Engineering Runtime Agents Routing v0.9
|
|
4
|
+
type: policy
|
|
5
|
+
status: stable
|
|
6
|
+
canonical: true
|
|
7
|
+
owner: human
|
|
8
|
+
created: 2026-05-09
|
|
9
|
+
last_reviewed: 2026-05-09
|
|
10
|
+
domain: agents-routing
|
|
11
|
+
tags:
|
|
12
|
+
- agents-routing
|
|
13
|
+
- engineering-runtime
|
|
14
|
+
- workflow
|
|
15
|
+
pinned: true
|
|
16
|
+
related:
|
|
17
|
+
- GOV-SSOT-V0-9
|
|
18
|
+
- REF-DOC-GOVERNANCE-BOUNDARY
|
|
19
|
+
supersedes: []
|
|
20
|
+
superseded_by: null
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Engineering Runtime Agents Routing v0.9
|
|
24
|
+
|
|
25
|
+
Shared routing algorithm for app, game, runtime, and code-heavy projects.
|
|
26
|
+
|
|
27
|
+
This file decides **how to choose a workflow**, not what the project is currently building. Current work belongs in the project's `docs/reference/execution/current-work.md` or equivalent.
|
|
28
|
+
|
|
29
|
+
## Core Flow
|
|
30
|
+
|
|
31
|
+
```mermaid
|
|
32
|
+
flowchart TD
|
|
33
|
+
A["Task arrives"] --> B["Read project router and current work"]
|
|
34
|
+
B --> C["Classify with local lane profile"]
|
|
35
|
+
C --> D{"Mixed / cross-domain / interdependent product work?"}
|
|
36
|
+
D -- "yes" --> E["Use Directed Development to split ordered DD Blocks"]
|
|
37
|
+
E --> C
|
|
38
|
+
D -- "no" --> F["Enter local lane"]
|
|
39
|
+
F --> G["Use matching Superpowers workflow if applicable"]
|
|
40
|
+
G --> H["Use AI-in-the-Loop evidence cycle"]
|
|
41
|
+
H --> I["Record evidence in doc-gov"]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Keep It Small
|
|
45
|
+
|
|
46
|
+
Use this router only to pick depth and workflow. Do not use it as a project roadmap.
|
|
47
|
+
|
|
48
|
+
## DD Trigger
|
|
49
|
+
|
|
50
|
+
Use Directed Development only when all are true:
|
|
51
|
+
|
|
52
|
+
- the task is product work
|
|
53
|
+
- it crosses local lanes or shared contracts
|
|
54
|
+
- sequencing risk makes a flat plan unsafe
|
|
55
|
+
|
|
56
|
+
Do not trigger DD for broad mechanical edits, renames, formatting, or ordinary docs migration.
|
|
57
|
+
|
|
58
|
+
## Project-Local Lane Profile
|
|
59
|
+
|
|
60
|
+
Every engineering project must define its own lane profile in `AGENTS.md` or `docs/policy/best-practice-for-this-project.md`.
|
|
61
|
+
|
|
62
|
+
Typical lanes:
|
|
63
|
+
|
|
64
|
+
- visual / UX / game-feel
|
|
65
|
+
- content / config / canon
|
|
66
|
+
- behavior-critical code
|
|
67
|
+
- pure refactor
|
|
68
|
+
|
|
69
|
+
But the shared router must not define project-specific lanes.
|
|
70
|
+
|
|
71
|
+
## External Workflow Boundary
|
|
72
|
+
|
|
73
|
+
This route runs before external workflow systems such as Superpowers or GStack.
|
|
74
|
+
Those systems may provide skills, reviews, browser workflows, or shipping gates,
|
|
75
|
+
but they execute **inside** the lane selected by this route.
|
|
76
|
+
|
|
77
|
+
Host-specific files such as `CLAUDE.md` or `GEMINI.md` may adapt the route for a
|
|
78
|
+
specific AI client, but they must not replace the project `AGENTS.md` route.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: REF-DOC-GOVERNANCE-BOUNDARY
|
|
3
|
+
title: Documentation Governance Boundary
|
|
4
|
+
type: reference
|
|
5
|
+
status: stable
|
|
6
|
+
canonical: true
|
|
7
|
+
owner: project
|
|
8
|
+
created: YYYY-MM-DD
|
|
9
|
+
last_reviewed: YYYY-MM-DD
|
|
10
|
+
domain: doc-governance
|
|
11
|
+
tags:
|
|
12
|
+
- doc-gov
|
|
13
|
+
- boundary
|
|
14
|
+
pinned: true
|
|
15
|
+
related:
|
|
16
|
+
- POLICY-DOC-AGENT-RULES
|
|
17
|
+
- POLICY-DOC-TYPES
|
|
18
|
+
supersedes: []
|
|
19
|
+
superseded_by: null
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Project Governance Boundary
|
|
23
|
+
|
|
24
|
+
Use this folder for the Project Governance System's own rules.
|
|
25
|
+
|
|
26
|
+
Beginner version: `docs/governance/` is the filing-cabinet manual and traffic
|
|
27
|
+
desk. It explains how governed documents work, how agents choose a workflow,
|
|
28
|
+
and what the system does not govern.
|
|
29
|
+
|
|
30
|
+
It is not where project product truth, source assets, generated media, or
|
|
31
|
+
project-specific AI development habits live.
|
|
32
|
+
|
|
33
|
+
## Put Here
|
|
34
|
+
|
|
35
|
+
- Document types and lifecycle rules.
|
|
36
|
+
- SSOT rules for governed docs.
|
|
37
|
+
- Agents-routing rules.
|
|
38
|
+
- Documentation agent behavior rules.
|
|
39
|
+
- Document templates.
|
|
40
|
+
- The generated doc manifest.
|
|
41
|
+
|
|
42
|
+
## Do Not Put Here
|
|
43
|
+
|
|
44
|
+
- Project-specific AI development practices.
|
|
45
|
+
- Product canon, runtime truth, or content truth.
|
|
46
|
+
- Product prompts, generated media notes, or project-package workbench files.
|
|
47
|
+
- Current project plans or active specs.
|
|
48
|
+
- Superpowers plugin content.
|
|
49
|
+
|
|
50
|
+
## Put Those Elsewhere
|
|
51
|
+
|
|
52
|
+
| Need | Put it in |
|
|
53
|
+
| --- | --- |
|
|
54
|
+
| AI startup entry | `AGENTS.md` |
|
|
55
|
+
| Agent routing algorithm | `docs/governance/agents-routing/` |
|
|
56
|
+
| Governed SSOT rules | `docs/governance/ssot-v0.9.md` |
|
|
57
|
+
| Project AI development practices | `docs/policy/best-practice-for-this-project.md` |
|
|
58
|
+
| Current work index | `docs/reference/execution/current-work.md` |
|
|
59
|
+
| Product or world truth | `docs/canon/` |
|
|
60
|
+
| Active implementation work | `docs/plans/active/` |
|
|
61
|
+
| Completed proof records | `docs/plans/completed/` |
|
|
62
|
+
| Product artifacts outside governed docs | Project package, workbench, assets, runtime config, or source tree |
|
|
63
|
+
|
|
64
|
+
When unsure, ask this question: is this rule about how the document system works,
|
|
65
|
+
how agents should route work, or about how this particular project works?
|
|
66
|
+
System rules go here. Project-specific rules go to `docs/policy/`.
|
|
67
|
+
|
|
68
|
+
## Governed Scope
|
|
69
|
+
|
|
70
|
+
By default, doc-gov governs Markdown under `docs/**` and AI entry files such as
|
|
71
|
+
`AGENTS.md`.
|
|
72
|
+
|
|
73
|
+
It does not govern every Markdown file in the repository. Markdown under
|
|
74
|
+
product packages, workbenches, prompt libraries, source folders, or asset
|
|
75
|
+
folders can be product artifacts. Keep those files where the product package
|
|
76
|
+
expects them unless a project explicitly opts them into doc-gov.
|