@agent-teams/docs-protocol 0.1.0-rc.1 → 0.1.0-rc.2
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/CHANGELOG.md +13 -0
- package/README.md +34 -5
- package/assets/catalog.json +1 -0
- package/assets/docs-protocol.yml +13 -0
- package/assets/transition-catalog.json +1 -0
- package/dist/composition/cli.d.ts.map +1 -1
- package/dist/composition/cli.js +9 -1
- package/dist/composition/cli.js.map +1 -1
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.d.ts +15 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.js +96 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.d.ts +8 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.js +80 -0
- package/dist/consumer-integration/adapters/bounded-repository-topology.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.d.ts +3 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.js +43 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.d.ts +14 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.js +404 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.js.map +1 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.d.ts +3 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.js +152 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.d.ts +3 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.js +37 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-policy-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.d.ts +16 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.js +155 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.d.ts +8 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.js +160 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.d.ts +57 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.js +151 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.d.ts +4 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.js +23 -0
- package/dist/consumer-integration/application/policies/consumer-integration-authority-guards.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.d.ts +4 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.js +153 -0
- package/dist/consumer-integration/application/policies/consumer-integration-desired-state.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.d.ts +18 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.js +537 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.d.ts +3 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.d.ts.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.js +223 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.js.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts +28 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js +138 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/domain/model.d.ts +105 -0
- package/dist/consumer-integration/domain/model.d.ts.map +1 -0
- package/dist/consumer-integration/domain/model.js +2 -0
- package/dist/consumer-integration/domain/model.js.map +1 -0
- package/dist/consumer-integration/generated/canonical-assets.d.ts +3 -0
- package/dist/consumer-integration/generated/canonical-assets.d.ts.map +1 -0
- package/dist/consumer-integration/generated/canonical-assets.js +4 -0
- package/dist/consumer-integration/generated/canonical-assets.js.map +1 -0
- package/dist/consumer-integration/index.d.ts +11 -0
- package/dist/consumer-integration/index.d.ts.map +1 -0
- package/dist/consumer-integration/index.js +7 -0
- package/dist/consumer-integration/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +13 -3
- package/schemas/docs-consumer-integration-execution/v1.schema.json +29 -0
- package/schemas/docs-consumer-integration-plan/v1.schema.json +63 -0
- package/schemas/docs-consumer-integration-profile/v1.schema.json +110 -0
- package/schemas/docs-consumer-managed-state/v1.schema.json +99 -0
- package/schemas/qualified-docs-cohort/v1.schema.json +96 -0
- package/skills/docs/SKILL.md +28 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-teams/docs-protocol",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
4
|
"description": "Unified deterministic documentation authoring protocol for Agent Teams repositories.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -25,6 +25,13 @@
|
|
|
25
25
|
"schemas/docs-protocol/v1.schema.json",
|
|
26
26
|
"schemas/docs-protocol-profile/v1.schema.json",
|
|
27
27
|
"schemas/docs-protocol-command-envelope/v1.schema.json",
|
|
28
|
+
"schemas/docs-consumer-integration-execution/v1.schema.json",
|
|
29
|
+
"schemas/docs-consumer-integration-plan/v1.schema.json",
|
|
30
|
+
"schemas/docs-consumer-integration-profile/v1.schema.json",
|
|
31
|
+
"schemas/docs-consumer-managed-state/v1.schema.json",
|
|
32
|
+
"schemas/qualified-docs-cohort/v1.schema.json",
|
|
33
|
+
"skills/docs/SKILL.md",
|
|
34
|
+
"assets",
|
|
28
35
|
"README.md",
|
|
29
36
|
"CHANGELOG.md",
|
|
30
37
|
"LICENSE"
|
|
@@ -50,15 +57,18 @@
|
|
|
50
57
|
"dependencies": {
|
|
51
58
|
"ajv": "8.20.0",
|
|
52
59
|
"ajv-formats": "3.0.1",
|
|
60
|
+
"jsonc-parser": "3.3.1",
|
|
53
61
|
"yaml": "2.9.0",
|
|
54
|
-
"@agent-teams/engineering-foundation": "0.17.0-rc.
|
|
62
|
+
"@agent-teams/engineering-foundation": "0.17.0-rc.1"
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
57
65
|
"@types/node": "24.13.3",
|
|
58
66
|
"typescript": "7.0.2"
|
|
59
67
|
},
|
|
60
68
|
"scripts": {
|
|
61
|
-
"
|
|
69
|
+
"assets:generate": "node scripts/generate-consumer-assets.mjs --write",
|
|
70
|
+
"assets:check": "node scripts/generate-consumer-assets.mjs",
|
|
71
|
+
"build": "pnpm assets:check && tsc --build tsconfig.json --pretty false",
|
|
62
72
|
"test": "pnpm build && node --test tests/*.test.mjs"
|
|
63
73
|
}
|
|
64
74
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-integration-execution/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "command", "outcome", "issues"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"command": { "enum": ["consumer.apply", "consumer.check", "consumer.plan", "consumer.recover"] },
|
|
10
|
+
"outcome": { "enum": ["applied", "blocked", "change-required", "current", "recovered"] },
|
|
11
|
+
"issues": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"maxItems": 64,
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"required": ["code", "severity", "subject", "message"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"code": { "type": "string", "pattern": "^[A-Z0-9_]+$", "maxLength": 128 },
|
|
20
|
+
"severity": { "enum": ["error", "warning"] },
|
|
21
|
+
"subject": { "type": "string", "maxLength": 2048 },
|
|
22
|
+
"message": { "type": "string", "maxLength": 4096 }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"plan": { "$ref": "https://agent-teams.ai/schemas/docs-consumer-integration-plan/v1" },
|
|
27
|
+
"receipt": { "$ref": "https://agent-teams.ai/schemas/known-file-transaction-receipt/v1" }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-integration-plan/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "cohortId", "repository", "planDigest", "outcome", "assets", "issues"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"cohortId": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
10
|
+
"repository": { "$ref": "#/$defs/repository" },
|
|
11
|
+
"planDigest": { "$ref": "#/$defs/sha256" },
|
|
12
|
+
"outcome": { "enum": ["blocked", "change-required", "current"] },
|
|
13
|
+
"assets": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 5,
|
|
16
|
+
"maxItems": 5,
|
|
17
|
+
"items": { "$ref": "#/$defs/asset" }
|
|
18
|
+
},
|
|
19
|
+
"issues": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"maxItems": 64,
|
|
22
|
+
"items": { "$ref": "#/$defs/issue" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": false,
|
|
30
|
+
"required": ["provider", "id", "nameWithOwner"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"provider": { "const": "github" },
|
|
33
|
+
"id": { "type": "string", "pattern": "^[1-9][0-9]*$" },
|
|
34
|
+
"nameWithOwner": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$" }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"asset": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["id", "path", "ownership", "state", "expectedDigest", "action"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "enum": ["agents-route", "caller-workflow", "managed-state", "package-manifest", "skill"] },
|
|
43
|
+
"path": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
|
44
|
+
"ownership": { "enum": ["full-bytes", "partial-fields", "managed-block"] },
|
|
45
|
+
"state": { "enum": ["absent", "exact-current", "known-prior", "partial-adoption", "outdated-cohort", "unknown-modified", "conflict", "unsupported"] },
|
|
46
|
+
"currentDigest": { "$ref": "#/$defs/sha256" },
|
|
47
|
+
"expectedDigest": { "$ref": "#/$defs/sha256" },
|
|
48
|
+
"action": { "enum": ["create", "none", "replace", "blocked"] }
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"issue": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["code", "severity", "subject", "message"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"code": { "type": "string", "pattern": "^[A-Z0-9_]+$", "maxLength": 128 },
|
|
57
|
+
"severity": { "enum": ["error", "warning"] },
|
|
58
|
+
"subject": { "type": "string", "maxLength": 2048 },
|
|
59
|
+
"message": { "type": "string", "maxLength": 4096 }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-integration-profile/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "repository", "integrationRoot", "packageManager", "profilePath", "skillPath", "callerWorkflowPath", "managedStatePath", "cohort"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"required": ["provider", "id", "nameWithOwner"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"provider": { "const": "github" },
|
|
15
|
+
"id": { "type": "string", "pattern": "^[1-9][0-9]*$" },
|
|
16
|
+
"nameWithOwner": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"integrationRoot": { "const": "." },
|
|
20
|
+
"packageManager": { "const": "pnpm" },
|
|
21
|
+
"profilePath": { "const": "architecture/foundation/docs-protocol.yaml" },
|
|
22
|
+
"skillPath": { "const": ".agents/skills/docs-authoring/SKILL.md" },
|
|
23
|
+
"callerWorkflowPath": { "const": ".github/workflows/docs-protocol.yml" },
|
|
24
|
+
"managedStatePath": { "const": "architecture/foundation/docs-protocol-managed-state.json" },
|
|
25
|
+
"governedDocsRoots": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"minItems": 1,
|
|
28
|
+
"maxItems": 32,
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$" }
|
|
31
|
+
},
|
|
32
|
+
"cohort": { "$ref": "#/$defs/cohortBinding" }
|
|
33
|
+
},
|
|
34
|
+
"$defs": {
|
|
35
|
+
"cohortBinding": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"required": ["schemaVersion", "cohortId", "channel", "recordDigest", "qualificationEventDigest", "eligibleAfter", "upgradeFrom", "rollbackTo", "packages", "workflow", "assets", "schemas", "runtime"],
|
|
39
|
+
"properties": {
|
|
40
|
+
"schemaVersion": { "const": 1 },
|
|
41
|
+
"cohortId": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
42
|
+
"channel": { "enum": ["rc", "stable"] },
|
|
43
|
+
"recordDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
44
|
+
"qualificationEventDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
45
|
+
"eligibleAfter": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" },
|
|
46
|
+
"upgradeFrom": { "$ref": "#/$defs/cohortIds" },
|
|
47
|
+
"rollbackTo": { "$ref": "#/$defs/cohortIds" },
|
|
48
|
+
"packages": {
|
|
49
|
+
"type": "object", "additionalProperties": false,
|
|
50
|
+
"required": ["docsProtocol", "engineeringFoundation"],
|
|
51
|
+
"properties": {
|
|
52
|
+
"docsProtocol": { "$ref": "#/$defs/package" },
|
|
53
|
+
"engineeringFoundation": { "$ref": "#/$defs/package" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"workflow": {
|
|
57
|
+
"type": "object", "additionalProperties": false,
|
|
58
|
+
"required": ["repository", "path", "revision", "blobSha"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"repository": { "const": "agent-teams-ai/.github" },
|
|
61
|
+
"path": { "const": ".github/workflows/docs-protocol-check.yml" },
|
|
62
|
+
"revision": { "type": "string", "pattern": "^(?!0{40}$)[0-9a-f]{40}$" },
|
|
63
|
+
"blobSha": { "type": "string", "pattern": "^(?!0{40}$)[0-9a-f]{40}$" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"assets": {
|
|
67
|
+
"type": "object", "additionalProperties": false,
|
|
68
|
+
"required": ["skillDigest", "callerWorkflowDigest", "assetCatalogDigest", "transitionCatalogDigest"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"skillDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
71
|
+
"callerWorkflowDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
72
|
+
"assetCatalogDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
73
|
+
"transitionCatalogDigest": { "$ref": "#/$defs/nonzeroSha256" }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"schemas": {
|
|
77
|
+
"type": "object", "additionalProperties": false,
|
|
78
|
+
"required": ["consumerIntegration", "managedState", "docsProtocol"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"consumerIntegration": { "const": 1 },
|
|
81
|
+
"managedState": { "const": 1 },
|
|
82
|
+
"docsProtocol": { "const": 1 }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"runtime": {
|
|
86
|
+
"type": "object", "additionalProperties": false,
|
|
87
|
+
"required": ["node", "pnpm", "runtimeClosureDigest"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"node": { "const": ">=24.18.0 <25" },
|
|
90
|
+
"pnpm": { "const": ">=11.17.0 <12" },
|
|
91
|
+
"runtimeClosureDigest": { "$ref": "#/$defs/nonzeroSha256" }
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"nonzeroSha256": { "type": "string", "pattern": "^sha256:(?!0{64}$)[0-9a-f]{64}$" },
|
|
97
|
+
"cohortIds": {
|
|
98
|
+
"type": "array", "maxItems": 32, "uniqueItems": true,
|
|
99
|
+
"items": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" }
|
|
100
|
+
},
|
|
101
|
+
"package": {
|
|
102
|
+
"type": "object", "additionalProperties": false,
|
|
103
|
+
"required": ["version", "integrity"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" },
|
|
106
|
+
"integrity": { "type": "string", "pattern": "^sha512-[A-Za-z0-9+/]{86}==$" }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-managed-state/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "cohortId", "cohortAuthority", "repository", "packages", "schemas", "runtime", "profilePath", "skillPath", "callerWorkflowPath", "managedStatePath", "assets", "stateDigest"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"cohortId": { "type": "string", "minLength": 1 },
|
|
10
|
+
"cohortAuthority": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["channel", "recordDigest", "qualificationEventDigest", "eligibleAfter", "upgradeFrom", "rollbackTo"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"channel": { "enum": ["rc", "stable"] },
|
|
16
|
+
"recordDigest": { "$ref": "#/$defs/sha256" },
|
|
17
|
+
"qualificationEventDigest": { "$ref": "#/$defs/sha256" },
|
|
18
|
+
"eligibleAfter": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" },
|
|
19
|
+
"upgradeFrom": { "$ref": "#/$defs/cohortIds" },
|
|
20
|
+
"rollbackTo": { "$ref": "#/$defs/cohortIds" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["provider", "id", "nameWithOwner"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"provider": { "const": "github" },
|
|
29
|
+
"id": { "type": "string", "pattern": "^[1-9][0-9]*$" },
|
|
30
|
+
"nameWithOwner": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"packages": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["docsProtocol", "engineeringFoundation"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"docsProtocol": { "$ref": "#/$defs/package" },
|
|
39
|
+
"engineeringFoundation": { "$ref": "#/$defs/package" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"schemas": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"required": ["consumerIntegration", "managedState", "docsProtocol"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"consumerIntegration": { "const": 1 },
|
|
48
|
+
"managedState": { "const": 1 },
|
|
49
|
+
"docsProtocol": { "const": 1 }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"runtime": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["node", "pnpm", "runtimeClosureDigest"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"node": { "const": ">=24.18.0 <25" },
|
|
58
|
+
"pnpm": { "const": ">=11.17.0 <12" },
|
|
59
|
+
"runtimeClosureDigest": { "$ref": "#/$defs/sha256" }
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"profilePath": { "type": "string", "minLength": 1 },
|
|
63
|
+
"skillPath": { "type": "string", "minLength": 1 },
|
|
64
|
+
"callerWorkflowPath": { "type": "string", "minLength": 1 },
|
|
65
|
+
"managedStatePath": { "type": "string", "minLength": 1 },
|
|
66
|
+
"assets": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["skillDigest", "callerWorkflowDigest", "assetCatalogDigest", "transitionCatalogDigest", "agentsRouteDigest", "docsScriptsDigest"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"skillDigest": { "$ref": "#/$defs/sha256" },
|
|
72
|
+
"callerWorkflowDigest": { "$ref": "#/$defs/sha256" },
|
|
73
|
+
"assetCatalogDigest": { "$ref": "#/$defs/sha256" },
|
|
74
|
+
"transitionCatalogDigest": { "$ref": "#/$defs/sha256" },
|
|
75
|
+
"agentsRouteDigest": { "$ref": "#/$defs/sha256" },
|
|
76
|
+
"docsScriptsDigest": { "$ref": "#/$defs/sha256" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"stateDigest": { "$ref": "#/$defs/sha256" }
|
|
80
|
+
},
|
|
81
|
+
"$defs": {
|
|
82
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
83
|
+
"cohortIds": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"maxItems": 32,
|
|
86
|
+
"uniqueItems": true,
|
|
87
|
+
"items": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" }
|
|
88
|
+
},
|
|
89
|
+
"package": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"required": ["version", "integrity"],
|
|
93
|
+
"properties": {
|
|
94
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" },
|
|
95
|
+
"integrity": { "type": "string", "pattern": "^sha512-[A-Za-z0-9+/]{86}==$" }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/qualified-docs-cohort/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "cohortId", "channel", "recordDigest", "qualificationEventDigest", "lifecycleState", "eligibleAfter", "upgradeFrom", "rollbackTo", "canaryRepositoryIds", "packages", "workflow", "assets", "schemas", "runtime"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"cohortId": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
10
|
+
"channel": { "enum": ["rc", "stable"] },
|
|
11
|
+
"recordDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
12
|
+
"qualificationEventDigest": { "$ref": "#/$defs/nonzeroSha256" },
|
|
13
|
+
"lifecycleState": { "enum": ["QUALIFIED", "CANARY", "RECOMMENDED"] },
|
|
14
|
+
"eligibleAfter": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" },
|
|
15
|
+
"upgradeFrom": { "$ref": "#/$defs/cohortIds" },
|
|
16
|
+
"rollbackTo": { "$ref": "#/$defs/cohortIds" },
|
|
17
|
+
"canaryRepositoryIds": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"maxItems": 32,
|
|
21
|
+
"uniqueItems": true,
|
|
22
|
+
"items": { "type": "string", "pattern": "^[1-9][0-9]*$" }
|
|
23
|
+
},
|
|
24
|
+
"packages": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["docsProtocol", "engineeringFoundation"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"docsProtocol": { "$ref": "#/$defs/package" },
|
|
30
|
+
"engineeringFoundation": { "$ref": "#/$defs/package" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"workflow": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["repository", "path", "revision", "blobSha"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"repository": { "const": "agent-teams-ai/.github" },
|
|
39
|
+
"path": { "const": ".github/workflows/docs-protocol-check.yml" },
|
|
40
|
+
"revision": { "$ref": "#/$defs/nonzeroSha" },
|
|
41
|
+
"blobSha": { "$ref": "#/$defs/nonzeroSha" }
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"assets": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": ["skillDigest", "callerWorkflowDigest", "assetCatalogDigest", "transitionCatalogDigest"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"skillDigest": { "$ref": "#/$defs/sha256" },
|
|
50
|
+
"callerWorkflowDigest": { "$ref": "#/$defs/sha256" },
|
|
51
|
+
"assetCatalogDigest": { "$ref": "#/$defs/sha256" },
|
|
52
|
+
"transitionCatalogDigest": { "$ref": "#/$defs/sha256" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"schemas": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["consumerIntegration", "managedState", "docsProtocol"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"consumerIntegration": { "const": 1 },
|
|
61
|
+
"managedState": { "const": 1 },
|
|
62
|
+
"docsProtocol": { "const": 1 }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"runtime": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"required": ["node", "pnpm", "runtimeClosureDigest"],
|
|
69
|
+
"properties": {
|
|
70
|
+
"node": { "const": ">=24.18.0 <25" },
|
|
71
|
+
"pnpm": { "const": ">=11.17.0 <12" },
|
|
72
|
+
"runtimeClosureDigest": { "$ref": "#/$defs/nonzeroSha256" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"$defs": {
|
|
77
|
+
"nonzeroSha": { "type": "string", "pattern": "^(?!0{40}$)[0-9a-f]{40}$" },
|
|
78
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
79
|
+
"nonzeroSha256": { "type": "string", "pattern": "^sha256:(?!0{64}$)[0-9a-f]{64}$" },
|
|
80
|
+
"cohortIds": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"maxItems": 32,
|
|
83
|
+
"uniqueItems": true,
|
|
84
|
+
"items": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" }
|
|
85
|
+
},
|
|
86
|
+
"package": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["version", "integrity"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" },
|
|
92
|
+
"integrity": { "type": "string", "pattern": "^sha512-[A-Za-z0-9+/]{86}==$" }
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: docs-authoring
|
|
3
|
+
description: Use when creating, changing, reorganizing, or reviewing governed documentation in this repository.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Authoring
|
|
7
|
+
|
|
8
|
+
Protocol: `agent-teams.docs-protocol/v1`.
|
|
9
|
+
|
|
10
|
+
## Required workflow
|
|
11
|
+
|
|
12
|
+
- Read the current types, owners, placement, metadata, and index policy with `pnpm docs:info`.
|
|
13
|
+
- Search first with `pnpm docs:find -- --text query`.
|
|
14
|
+
- Reuse or relate existing authority instead of creating a competing source.
|
|
15
|
+
- Preview with `pnpm docs:new -- --type TYPE --id ID --title TITLE --owner OWNER --summary SUMMARY --dry-run`.
|
|
16
|
+
- Review the exact destination, metadata, relations, anchors, and diagnostics.
|
|
17
|
+
- Apply with `pnpm docs:new -- --type TYPE --id ID --title TITLE --owner OWNER --summary SUMMARY --apply` after review.
|
|
18
|
+
- Manually update the reported index/link exactly when reachability requires it.
|
|
19
|
+
- Finish with `pnpm docs:check` after the index is current.
|
|
20
|
+
|
|
21
|
+
## Rules
|
|
22
|
+
|
|
23
|
+
- Never invent owners, types, statuses, paths, or metadata outside `docs:info`.
|
|
24
|
+
- If dependencies are absent, use only `pnpm install --frozen-lockfile`; never use npx, dlx, or latest tags.
|
|
25
|
+
- Keep preview and apply inputs identical.
|
|
26
|
+
- Stop when recovery is required; use `pnpm docs:doctor` before `pnpm docs:recover`.
|
|
27
|
+
- Resolve required anchors and blockers before apply.
|
|
28
|
+
- Do not bypass repository scripts or hand-edit transaction evidence.
|