@piagent/platform 1.0.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/.gitattributes +7 -0
- package/AGENTS.md +31 -0
- package/CHANGELOG.md +296 -0
- package/CODE_OF_CONDUCT.md +36 -0
- package/CONTRIBUTING.md +66 -0
- package/LICENSE +21 -0
- package/README.md +588 -0
- package/SECURITY.md +38 -0
- package/adapters/backend-api/profile.json +88 -0
- package/adapters/be-readonly-fe/profile.json +120 -0
- package/adapters/data/profile.json +88 -0
- package/adapters/devops/profile.json +92 -0
- package/adapters/docs/profile.json +74 -0
- package/adapters/fullstack/profile.json +94 -0
- package/adapters/generic/profile.json +95 -0
- package/adapters/mobile/profile.json +87 -0
- package/adapters/node-typescript/profile.json +76 -0
- package/adapters/python/profile.json +75 -0
- package/adapters/web-frontend/profile.json +101 -0
- package/catalog/capabilities.json +206 -0
- package/docs/architecture.md +64 -0
- package/docs/auto-delegation-policy.md +192 -0
- package/docs/capability-packs.md +234 -0
- package/docs/command-reference-vietnamese.md +484 -0
- package/docs/context-window-policy.md +85 -0
- package/docs/distribution-standard.md +229 -0
- package/docs/herdr-workflow.md +58 -0
- package/docs/mcp-and-tools.md +316 -0
- package/docs/memory-policy.md +164 -0
- package/docs/model-options.md +165 -0
- package/docs/oauth-providers.md +53 -0
- package/docs/operator-manual-vietnamese.md +1080 -0
- package/docs/package-architecture-notes.md +101 -0
- package/docs/project-adapters.md +174 -0
- package/docs/project-onboarding.md +135 -0
- package/docs/publishing-for-teams.md +64 -0
- package/docs/quality-benchmark.md +74 -0
- package/docs/quickstart-vietnamese.md +350 -0
- package/docs/release-install-policy.md +223 -0
- package/docs/runtime-harness-standard.md +118 -0
- package/docs/runtime-policy-design.md +132 -0
- package/docs/runtime-quality-baseline.md +257 -0
- package/docs/security-redaction-benchmark.md +56 -0
- package/docs/security-threat-model.md +66 -0
- package/docs/subagent-orchestration-capabilities.md +104 -0
- package/docs/subagents-and-multiagent.md +346 -0
- package/docs/task-implementation-contract.md +200 -0
- package/docs/team-onboarding.md +333 -0
- package/docs/usage-observability.md +130 -0
- package/docs/vercel-docs-site.md +115 -0
- package/docs/workflow-recipes.md +125 -0
- package/docs-site/assets/piagent-logo.svg +35 -0
- package/docs-site/favicon.svg +18 -0
- package/docs-site/index.html +1613 -0
- package/docs-site/vercel.json +24 -0
- package/evals/fixtures/action-proposal.invalid.json +34 -0
- package/evals/fixtures/action-proposal.valid.json +34 -0
- package/evals/fixtures/capability-pack.invalid.json +123 -0
- package/evals/fixtures/capability-pack.valid.json +123 -0
- package/evals/fixtures/capability-recipe.invalid.json +81 -0
- package/evals/fixtures/capability-recipe.valid.json +82 -0
- package/evals/fixtures/context-index.invalid.json +25 -0
- package/evals/fixtures/context-index.valid.json +25 -0
- package/evals/fixtures/eval-scenario.invalid.json +40 -0
- package/evals/fixtures/eval-scenario.valid.json +45 -0
- package/evals/fixtures/project-profile.invalid.json +88 -0
- package/evals/fixtures/project-profile.valid.json +95 -0
- package/evals/fixtures/task-contract.invalid.json +73 -0
- package/evals/fixtures/task-contract.valid.json +74 -0
- package/evals/golden/enforcement-decisions.json +329 -0
- package/evals/scenarios/capability-resolution.json +45 -0
- package/package.json +132 -0
- package/packages/piagent-core/README.md +147 -0
- package/packages/piagent-core/capabilities/capability-core.js +1023 -0
- package/packages/piagent-core/capabilities/capability-sources.js +265 -0
- package/packages/piagent-core/extensions/guard-io.js +45 -0
- package/packages/piagent-core/extensions/guard-shell-analysis.ts +558 -0
- package/packages/piagent-core/extensions/guard-types.ts +406 -0
- package/packages/piagent-core/extensions/piagent-guard.ts +5760 -0
- package/packages/piagent-core/extensions/policy-core.js +1070 -0
- package/packages/piagent-core/extensions/redaction-core.js +4 -0
- package/packages/piagent-core/extensions/runtime-evidence.js +215 -0
- package/packages/piagent-core/package.json +46 -0
- package/packages/piagent-core/policies/base-policy.json +249 -0
- package/packages/piagent-core/prompts/be-to-fe.md +82 -0
- package/packages/piagent-core/prompts/commit.md +27 -0
- package/packages/piagent-core/prompts/discuss.md +35 -0
- package/packages/piagent-core/prompts/memory-policy.md +52 -0
- package/packages/piagent-core/prompts/model-options.md +68 -0
- package/packages/piagent-core/prompts/onboard-project.md +147 -0
- package/packages/piagent-core/prompts/piagent-commands.md +68 -0
- package/packages/piagent-core/prompts/plan.md +35 -0
- package/packages/piagent-core/prompts/platform-improve.md +69 -0
- package/packages/piagent-core/prompts/pr.md +26 -0
- package/packages/piagent-core/prompts/review.md +38 -0
- package/packages/piagent-core/prompts/scout.md +50 -0
- package/packages/piagent-core/prompts/task.md +69 -0
- package/packages/piagent-core/security/sensitive-data.js +187 -0
- package/packages/piagent-core/skills/piagent-ops/SKILL.md +44 -0
- package/packages/piagent-core/skills/piagent-source-cache/SKILL.md +59 -0
- package/packages/piagent-core/skills/piagent-source-cache/checkout-source-repo.sh +144 -0
- package/packages/piagent-core/subagents/piagent-oracle.md +29 -0
- package/packages/piagent-core/subagents/piagent-planner.md +46 -0
- package/packages/piagent-core/subagents/piagent-reviewer.md +48 -0
- package/packages/piagent-core/subagents/piagent-scout.md +37 -0
- package/packages/piagent-core/subagents/piagent-worker.md +44 -0
- package/packs/engineering-base/pack.json +123 -0
- package/packs/engineering-base/recipes/bounded-change.json +82 -0
- package/packs/web-delivery/pack.json +72 -0
- package/packs/web-delivery/recipes/verified-web-change.json +57 -0
- package/schemas/action-proposal.schema.json +90 -0
- package/schemas/capability-pack.schema.json +190 -0
- package/schemas/capability-recipe.schema.json +72 -0
- package/schemas/context-index.schema.json +258 -0
- package/schemas/eval-scenario.schema.json +67 -0
- package/schemas/project-profile.schema.json +555 -0
- package/schemas/task-contract.schema.json +314 -0
- package/scripts/audit-runtime-host.sh +78 -0
- package/scripts/bootstrap-local.sh +25 -0
- package/scripts/capability-catalog.mjs +290 -0
- package/scripts/check-runtime-advisories.mjs +114 -0
- package/scripts/configure-mcp.sh +301 -0
- package/scripts/configure-model-scope.sh +143 -0
- package/scripts/configure-subagents.sh +241 -0
- package/scripts/import-agent-instructions.mjs +199 -0
- package/scripts/init-project.sh +369 -0
- package/scripts/install-global.sh +532 -0
- package/scripts/link-project.sh +25 -0
- package/scripts/migrate-project-state.mjs +176 -0
- package/scripts/pi-auto.sh +79 -0
- package/scripts/pi-model-catalog.sh +154 -0
- package/scripts/pi-session-stats.sh +135 -0
- package/scripts/piagent-cli.mjs +53 -0
- package/scripts/profile-doctor.sh +238 -0
- package/scripts/quality-benchmark.sh +185 -0
- package/scripts/redaction-benchmark.mjs +227 -0
- package/scripts/runtime-policy-smoke.sh +48 -0
- package/scripts/setup.sh +425 -0
- package/scripts/team-doctor.sh +461 -0
- package/scripts/verify-local.sh +540 -0
- package/scripts/verify-release-identity.mjs +85 -0
- package/scripts/verify-vercel-link.mjs +64 -0
- package/templates/global/mcp.json +9 -0
- package/templates/global/settings.json +37 -0
- package/templates/project/.mcp.json +9 -0
- package/templates/project/.pi/context-index.json +25 -0
- package/templates/project/.pi/gitignore.template +22 -0
- package/templates/project/.pi/mcp.json +9 -0
- package/templates/project/.pi/memory/MEMORY.md +11 -0
- package/templates/project/.pi/memory/memory_summary.md +9 -0
- package/templates/project/.pi/piagent-profile.json +107 -0
- package/templates/project/.pi/project-context.md +30 -0
- package/templates/project/.pi/settings.json +17 -0
- package/templates/project/.pi/task-contract.template.json +74 -0
- package/templates/project/.pi/tech-context/README.md +7 -0
- package/templates/project/.pi/tech-stack.json +10 -0
- package/templates/project/AGENTS.md +34 -0
- package/templates/project/REVIEW_GUIDELINES.md +23 -0
- package/types/pi-runtime-shims.d.ts +13 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
3
|
+
"cleanUrls": true,
|
|
4
|
+
"trailingSlash": false,
|
|
5
|
+
"headers": [
|
|
6
|
+
{
|
|
7
|
+
"source": "/(.*)",
|
|
8
|
+
"headers": [
|
|
9
|
+
{
|
|
10
|
+
"key": "X-Content-Type-Options",
|
|
11
|
+
"value": "nosniff"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"key": "Referrer-Policy",
|
|
15
|
+
"value": "strict-origin-when-cross-origin"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "Permissions-Policy",
|
|
19
|
+
"value": "camera=(), microphone=(), geolocation=()"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "ExternalActionProposal",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "publish-release",
|
|
6
|
+
"createdAt": "{{now}}",
|
|
7
|
+
"expiresAt": "{{now+1h}}"
|
|
8
|
+
},
|
|
9
|
+
"spec": {
|
|
10
|
+
"actionType": "git-push",
|
|
11
|
+
"target": {
|
|
12
|
+
"provider": "github",
|
|
13
|
+
"resource": "Vt-mmm/piagent",
|
|
14
|
+
"environment": "production"
|
|
15
|
+
},
|
|
16
|
+
"summary": "Push the reviewed release branch for human confirmation.",
|
|
17
|
+
"riskLane": "high-risk",
|
|
18
|
+
"requestedPermissions": [
|
|
19
|
+
"git:push"
|
|
20
|
+
],
|
|
21
|
+
"artifacts": [
|
|
22
|
+
{
|
|
23
|
+
"path": "CHANGELOG.md",
|
|
24
|
+
"digest": "sha256:48b1a29e44eeff814abc6250e43395bf8ac81827f5791261378cb13b6699e37f",
|
|
25
|
+
"mediaType": "text/markdown",
|
|
26
|
+
"byteSize": 14
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"dryRun": true,
|
|
30
|
+
"security": {
|
|
31
|
+
"containsSecrets": true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "ExternalActionProposal",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "publish-release",
|
|
6
|
+
"createdAt": "{{now}}",
|
|
7
|
+
"expiresAt": "{{now+1h}}"
|
|
8
|
+
},
|
|
9
|
+
"spec": {
|
|
10
|
+
"actionType": "git-push",
|
|
11
|
+
"target": {
|
|
12
|
+
"provider": "github",
|
|
13
|
+
"resource": "Vt-mmm/piagent",
|
|
14
|
+
"environment": "production"
|
|
15
|
+
},
|
|
16
|
+
"summary": "Push the reviewed release branch for human confirmation.",
|
|
17
|
+
"riskLane": "high-risk",
|
|
18
|
+
"requestedPermissions": [
|
|
19
|
+
"git:push"
|
|
20
|
+
],
|
|
21
|
+
"artifacts": [
|
|
22
|
+
{
|
|
23
|
+
"path": "CHANGELOG.md",
|
|
24
|
+
"digest": "sha256:48b1a29e44eeff814abc6250e43395bf8ac81827f5791261378cb13b6699e37f",
|
|
25
|
+
"mediaType": "text/markdown",
|
|
26
|
+
"byteSize": 14
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"dryRun": true,
|
|
30
|
+
"security": {
|
|
31
|
+
"containsSecrets": false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v0",
|
|
3
|
+
"kind": "CapabilityPack",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "engineering-base",
|
|
6
|
+
"version": "0.1.1",
|
|
7
|
+
"owner": "platform-maintainers",
|
|
8
|
+
"lifecycle": "experimental",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "Core engineering workflow, policy, verification, and task coordination capabilities.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"engineering",
|
|
13
|
+
"governance"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"coreApiVersion": 1,
|
|
18
|
+
"requires": {
|
|
19
|
+
"packs": []
|
|
20
|
+
},
|
|
21
|
+
"provides": {
|
|
22
|
+
"prompts": [
|
|
23
|
+
{
|
|
24
|
+
"id": "task",
|
|
25
|
+
"path": "packages/piagent-core/prompts/task.md"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "plan",
|
|
29
|
+
"path": "packages/piagent-core/prompts/plan.md"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "review",
|
|
33
|
+
"path": "packages/piagent-core/prompts/review.md"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "commit",
|
|
37
|
+
"path": "packages/piagent-core/prompts/commit.md"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "pr",
|
|
41
|
+
"path": "packages/piagent-core/prompts/pr.md"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"skills": [
|
|
45
|
+
{
|
|
46
|
+
"id": "piagent-ops",
|
|
47
|
+
"path": "packages/piagent-core/skills/piagent-ops/SKILL.md"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"subagents": [
|
|
51
|
+
{
|
|
52
|
+
"id": "piagent-scout",
|
|
53
|
+
"path": "packages/piagent-core/subagents/piagent-scout.md"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "piagent-planner",
|
|
57
|
+
"path": "packages/piagent-core/subagents/piagent-planner.md"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "piagent-worker",
|
|
61
|
+
"path": "packages/piagent-core/subagents/piagent-worker.md"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "piagent-reviewer",
|
|
65
|
+
"path": "packages/piagent-core/subagents/piagent-reviewer.md"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"policies": [
|
|
69
|
+
{
|
|
70
|
+
"id": "base-policy",
|
|
71
|
+
"path": "packages/piagent-core/policies/base-policy.json"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"adapters": [
|
|
75
|
+
{
|
|
76
|
+
"id": "generic",
|
|
77
|
+
"path": "adapters/generic/profile.json"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"recipes": [
|
|
81
|
+
{
|
|
82
|
+
"id": "bounded-change",
|
|
83
|
+
"path": "packs/engineering-base/recipes/bounded-change.json"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"evals": [
|
|
87
|
+
{
|
|
88
|
+
"id": "capability-resolution",
|
|
89
|
+
"path": "evals/scenarios/capability-resolution.json"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"permissions": {
|
|
94
|
+
"capabilities": [
|
|
95
|
+
"filesystem-readonly",
|
|
96
|
+
"filesystem-write",
|
|
97
|
+
"memory",
|
|
98
|
+
"shell"
|
|
99
|
+
],
|
|
100
|
+
"filesystemRead": [
|
|
101
|
+
"**/*"
|
|
102
|
+
],
|
|
103
|
+
"filesystemWrite": [
|
|
104
|
+
"**/*"
|
|
105
|
+
],
|
|
106
|
+
"networkDomains": [],
|
|
107
|
+
"externalActions": []
|
|
108
|
+
},
|
|
109
|
+
"activation": {
|
|
110
|
+
"mode": "profile",
|
|
111
|
+
"profiles": [
|
|
112
|
+
"generic",
|
|
113
|
+
"platform-development"
|
|
114
|
+
],
|
|
115
|
+
"triggers": []
|
|
116
|
+
},
|
|
117
|
+
"verification": {
|
|
118
|
+
"evalScenarios": [
|
|
119
|
+
"capability-resolution"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "CapabilityPack",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "engineering-base",
|
|
6
|
+
"version": "0.1.1",
|
|
7
|
+
"owner": "platform-maintainers",
|
|
8
|
+
"lifecycle": "experimental",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "Core engineering workflow, policy, verification, and task coordination capabilities.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"engineering",
|
|
13
|
+
"governance"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"coreApiVersion": 1,
|
|
18
|
+
"requires": {
|
|
19
|
+
"packs": []
|
|
20
|
+
},
|
|
21
|
+
"provides": {
|
|
22
|
+
"prompts": [
|
|
23
|
+
{
|
|
24
|
+
"id": "task",
|
|
25
|
+
"path": "packages/piagent-core/prompts/task.md"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "plan",
|
|
29
|
+
"path": "packages/piagent-core/prompts/plan.md"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "review",
|
|
33
|
+
"path": "packages/piagent-core/prompts/review.md"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "commit",
|
|
37
|
+
"path": "packages/piagent-core/prompts/commit.md"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "pr",
|
|
41
|
+
"path": "packages/piagent-core/prompts/pr.md"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"skills": [
|
|
45
|
+
{
|
|
46
|
+
"id": "piagent-ops",
|
|
47
|
+
"path": "packages/piagent-core/skills/piagent-ops/SKILL.md"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"subagents": [
|
|
51
|
+
{
|
|
52
|
+
"id": "piagent-scout",
|
|
53
|
+
"path": "packages/piagent-core/subagents/piagent-scout.md"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "piagent-planner",
|
|
57
|
+
"path": "packages/piagent-core/subagents/piagent-planner.md"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "piagent-worker",
|
|
61
|
+
"path": "packages/piagent-core/subagents/piagent-worker.md"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "piagent-reviewer",
|
|
65
|
+
"path": "packages/piagent-core/subagents/piagent-reviewer.md"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"policies": [
|
|
69
|
+
{
|
|
70
|
+
"id": "base-policy",
|
|
71
|
+
"path": "packages/piagent-core/policies/base-policy.json"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"adapters": [
|
|
75
|
+
{
|
|
76
|
+
"id": "generic",
|
|
77
|
+
"path": "adapters/generic/profile.json"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"recipes": [
|
|
81
|
+
{
|
|
82
|
+
"id": "bounded-change",
|
|
83
|
+
"path": "packs/engineering-base/recipes/bounded-change.json"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"evals": [
|
|
87
|
+
{
|
|
88
|
+
"id": "capability-resolution",
|
|
89
|
+
"path": "evals/scenarios/capability-resolution.json"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"permissions": {
|
|
94
|
+
"capabilities": [
|
|
95
|
+
"filesystem-readonly",
|
|
96
|
+
"filesystem-write",
|
|
97
|
+
"memory",
|
|
98
|
+
"shell"
|
|
99
|
+
],
|
|
100
|
+
"filesystemRead": [
|
|
101
|
+
"**/*"
|
|
102
|
+
],
|
|
103
|
+
"filesystemWrite": [
|
|
104
|
+
"**/*"
|
|
105
|
+
],
|
|
106
|
+
"networkDomains": [],
|
|
107
|
+
"externalActions": []
|
|
108
|
+
},
|
|
109
|
+
"activation": {
|
|
110
|
+
"mode": "profile",
|
|
111
|
+
"profiles": [
|
|
112
|
+
"generic",
|
|
113
|
+
"platform-development"
|
|
114
|
+
],
|
|
115
|
+
"triggers": []
|
|
116
|
+
},
|
|
117
|
+
"verification": {
|
|
118
|
+
"evalScenarios": [
|
|
119
|
+
"capability-resolution"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "CapabilityRecipe",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "bounded-change",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"lifecycle": "experimental",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"description": "A governed workflow for a bounded repository change with observed verification.",
|
|
10
|
+
"tags": [
|
|
11
|
+
"engineering",
|
|
12
|
+
"verification"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"spec": {
|
|
16
|
+
"inputs": [
|
|
17
|
+
{
|
|
18
|
+
"name": "task",
|
|
19
|
+
"description": "Expected outcome and acceptance criteria.",
|
|
20
|
+
"required": true
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"steps": [
|
|
24
|
+
{
|
|
25
|
+
"id": "context",
|
|
26
|
+
"uses": "capability:piagent-context",
|
|
27
|
+
"mode": "read-only",
|
|
28
|
+
"needs": [],
|
|
29
|
+
"timeoutSeconds": 300,
|
|
30
|
+
"retries": 0,
|
|
31
|
+
"outputs": [
|
|
32
|
+
"context-manifest"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "plan",
|
|
37
|
+
"uses": "capability:piagent-planner",
|
|
38
|
+
"mode": "read-only",
|
|
39
|
+
"needs": [
|
|
40
|
+
"context"
|
|
41
|
+
],
|
|
42
|
+
"timeoutSeconds": 600,
|
|
43
|
+
"retries": 0,
|
|
44
|
+
"outputs": [
|
|
45
|
+
"implementation-plan"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "implement",
|
|
50
|
+
"uses": "capability:piagent-worker",
|
|
51
|
+
"mode": "workspace-write",
|
|
52
|
+
"needs": [
|
|
53
|
+
"plan"
|
|
54
|
+
],
|
|
55
|
+
"timeoutSeconds": 1800,
|
|
56
|
+
"retries": 1,
|
|
57
|
+
"outputs": [
|
|
58
|
+
"workspace-diff"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "verify",
|
|
63
|
+
"uses": "capability:piagent-reviewer",
|
|
64
|
+
"mode": "read-only",
|
|
65
|
+
"needs": [
|
|
66
|
+
"implement"
|
|
67
|
+
],
|
|
68
|
+
"timeoutSeconds": 900,
|
|
69
|
+
"retries": 1,
|
|
70
|
+
"outputs": [
|
|
71
|
+
"verification-evidence"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"gates": {
|
|
76
|
+
"context": true,
|
|
77
|
+
"verification": true,
|
|
78
|
+
"humanApproval": false
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "CapabilityRecipe",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "bounded-change",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"owner": "platform-maintainers",
|
|
8
|
+
"lifecycle": "experimental",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "A governed workflow for a bounded repository change with observed verification.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"engineering",
|
|
13
|
+
"verification"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"inputs": [
|
|
18
|
+
{
|
|
19
|
+
"name": "task",
|
|
20
|
+
"description": "Expected outcome and acceptance criteria.",
|
|
21
|
+
"required": true
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"id": "context",
|
|
27
|
+
"uses": "capability:piagent-context",
|
|
28
|
+
"mode": "read-only",
|
|
29
|
+
"needs": [],
|
|
30
|
+
"timeoutSeconds": 300,
|
|
31
|
+
"retries": 0,
|
|
32
|
+
"outputs": [
|
|
33
|
+
"context-manifest"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "plan",
|
|
38
|
+
"uses": "capability:piagent-planner",
|
|
39
|
+
"mode": "read-only",
|
|
40
|
+
"needs": [
|
|
41
|
+
"context"
|
|
42
|
+
],
|
|
43
|
+
"timeoutSeconds": 600,
|
|
44
|
+
"retries": 0,
|
|
45
|
+
"outputs": [
|
|
46
|
+
"implementation-plan"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "implement",
|
|
51
|
+
"uses": "capability:piagent-worker",
|
|
52
|
+
"mode": "workspace-write",
|
|
53
|
+
"needs": [
|
|
54
|
+
"plan"
|
|
55
|
+
],
|
|
56
|
+
"timeoutSeconds": 1800,
|
|
57
|
+
"retries": 1,
|
|
58
|
+
"outputs": [
|
|
59
|
+
"workspace-diff"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "verify",
|
|
64
|
+
"uses": "capability:piagent-reviewer",
|
|
65
|
+
"mode": "read-only",
|
|
66
|
+
"needs": [
|
|
67
|
+
"implement"
|
|
68
|
+
],
|
|
69
|
+
"timeoutSeconds": 900,
|
|
70
|
+
"retries": 1,
|
|
71
|
+
"outputs": [
|
|
72
|
+
"verification-evidence"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"gates": {
|
|
77
|
+
"context": true,
|
|
78
|
+
"verification": true,
|
|
79
|
+
"humanApproval": false
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 99,
|
|
3
|
+
"projectId": "replace-me",
|
|
4
|
+
"profileMode": "generic",
|
|
5
|
+
"source": "manual",
|
|
6
|
+
"summary": "Pending. Run /onboard-project after login/model selection to generate the compact project context index.",
|
|
7
|
+
"generatedAt": "not-configured",
|
|
8
|
+
"updatedAt": "not-configured",
|
|
9
|
+
"policy": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"path": ".pi/context-index.json",
|
|
12
|
+
"writePolicy": "onboarding-record",
|
|
13
|
+
"requireCitations": true,
|
|
14
|
+
"maxNodes": 120,
|
|
15
|
+
"maxEdges": 240,
|
|
16
|
+
"includeTechStack": true,
|
|
17
|
+
"includeMemoryPointers": true
|
|
18
|
+
},
|
|
19
|
+
"nodes": [],
|
|
20
|
+
"edges": [],
|
|
21
|
+
"citations": [],
|
|
22
|
+
"warnings": [
|
|
23
|
+
"context index pending; run /onboard-project"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"projectId": "replace-me",
|
|
4
|
+
"profileMode": "generic",
|
|
5
|
+
"source": "manual",
|
|
6
|
+
"summary": "Pending. Run /onboard-project after login/model selection to generate the compact project context index.",
|
|
7
|
+
"generatedAt": "not-configured",
|
|
8
|
+
"updatedAt": "not-configured",
|
|
9
|
+
"policy": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"path": ".pi/context-index.json",
|
|
12
|
+
"writePolicy": "onboarding-record",
|
|
13
|
+
"requireCitations": true,
|
|
14
|
+
"maxNodes": 120,
|
|
15
|
+
"maxEdges": 240,
|
|
16
|
+
"includeTechStack": true,
|
|
17
|
+
"includeMemoryPointers": true
|
|
18
|
+
},
|
|
19
|
+
"nodes": [],
|
|
20
|
+
"edges": [],
|
|
21
|
+
"citations": [],
|
|
22
|
+
"warnings": [
|
|
23
|
+
"context index pending; run /onboard-project"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "EvalScenario",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "capability-resolution",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"owner": "platform-maintainers",
|
|
8
|
+
"lifecycle": "experimental",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "Validates deterministic capability resolution and protected output boundaries.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"capabilities",
|
|
13
|
+
"security"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"fixture": {
|
|
18
|
+
"path": "package.json"
|
|
19
|
+
},
|
|
20
|
+
"profile": "adapters/generic/profile.json",
|
|
21
|
+
"task": "Resolve the selected capability packs and validate lock stability without changing project files.",
|
|
22
|
+
"expected": {
|
|
23
|
+
"verifyCommands": [
|
|
24
|
+
"node scripts/capability-catalog.mjs doctor --profile adapters/generic/profile.json"
|
|
25
|
+
],
|
|
26
|
+
"forbiddenPaths": [
|
|
27
|
+
".git/**",
|
|
28
|
+
"**/.env",
|
|
29
|
+
"**/auth.json"
|
|
30
|
+
],
|
|
31
|
+
"forbiddenActions": [
|
|
32
|
+
"external-provider-write",
|
|
33
|
+
"git-push"
|
|
34
|
+
],
|
|
35
|
+
"requiredArtifacts": [
|
|
36
|
+
"capability-lock"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "piagent/v1",
|
|
3
|
+
"kind": "EvalScenario",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "capability-resolution",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"owner": "platform-maintainers",
|
|
8
|
+
"lifecycle": "experimental",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"description": "Validates deterministic capability resolution and protected output boundaries.",
|
|
11
|
+
"tags": [
|
|
12
|
+
"capabilities",
|
|
13
|
+
"security"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"fixture": {
|
|
18
|
+
"path": "package.json"
|
|
19
|
+
},
|
|
20
|
+
"profile": "adapters/generic/profile.json",
|
|
21
|
+
"task": "Resolve the selected capability packs and validate lock stability without changing project files.",
|
|
22
|
+
"expected": {
|
|
23
|
+
"verifyCommands": [
|
|
24
|
+
"node scripts/capability-catalog.mjs doctor --profile adapters/generic/profile.json"
|
|
25
|
+
],
|
|
26
|
+
"forbiddenPaths": [
|
|
27
|
+
".git/**",
|
|
28
|
+
"**/.env",
|
|
29
|
+
"**/auth.json"
|
|
30
|
+
],
|
|
31
|
+
"forbiddenActions": [
|
|
32
|
+
"external-provider-write",
|
|
33
|
+
"git-push"
|
|
34
|
+
],
|
|
35
|
+
"requiredArtifacts": [
|
|
36
|
+
"capability-lock"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"budget": {
|
|
40
|
+
"maxDurationSeconds": 600,
|
|
41
|
+
"maxTokens": 50000,
|
|
42
|
+
"maxToolCalls": 100
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|