@agent-teams/docs-protocol-agent-teams 0.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/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/README.md +24 -0
- package/assets/catalog.json +1 -0
- package/assets/docs-protocol.yml +14 -0
- package/assets/history/sha256-097df9fe1b90ab45f73389c8b69736f8a54d4199b09536d586222b5a7f0fbb09/caller.yml +13 -0
- package/assets/history/sha256-3e53262efc8a530b532380dac21d876456473d3b88aba20889a1d24823bf3a1b/caller.yml +14 -0
- package/assets/history/sha256-51d3f02a352ce2c3b0a4068a86b6899a57ab54b0a876c468e3fb3e536519caca/caller.yml +14 -0
- package/assets/history/sha256-641265ef9ecff59c16482fdae1bc8fc56002b5a4a1ee34b102438d0ca08a86a3/skill.md +29 -0
- package/assets/history/sha256-7907195753506e4b0f0e89eb3f6e495bacbd79e9b9913c9f60fc4a07dffb22e5/caller.yml +14 -0
- package/assets/history/sha256-7b31cd257532247f64c55a014dc926c601e4d742176cfb8513b6b0d8ab48213e/skill.md +28 -0
- package/assets/history/sha256-d697c5c7c9bcfccfc006fcf7e4d4cc8e7c629f9689781b9b0b50f30d82bc019e/caller.yml +14 -0
- package/assets/history/sha256-f21dc19277a4ba24bcef90a7071c9cf50adf144769f42d6f74ff4eac9ef117cf/caller.yml +14 -0
- package/assets/history/sha256-fd633c3c6337e5cfe51a9f36989bb654381634c5ab4add9e4da71fe40ab4e0dd/caller.yml +14 -0
- package/assets/transition-catalog.json +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -0
- package/dist/composition/managed-cli-input.d.ts +11 -0
- package/dist/composition/managed-cli-input.d.ts.map +1 -0
- package/dist/composition/managed-cli-input.js +52 -0
- package/dist/composition/managed-cli-input.js.map +1 -0
- package/dist/composition/managed-cli.d.ts +2 -0
- package/dist/composition/managed-cli.d.ts.map +1 -0
- package/dist/composition/managed-cli.js +17 -0
- package/dist/composition/managed-cli.js.map +1 -0
- package/dist/composition/qualification-cli.d.ts +2 -0
- package/dist/composition/qualification-cli.d.ts.map +1 -0
- package/dist/composition/qualification-cli.js +119 -0
- package/dist/composition/qualification-cli.js.map +1 -0
- package/dist/consumer-integration/adapters/agents-route-adapter-v1.d.ts +10 -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 +99 -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-node-error.d.ts +5 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.js +9 -0
- package/dist/consumer-integration/adapters/consumer-integration-node-error.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.d.ts +4 -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 +51 -0
- package/dist/consumer-integration/adapters/consumer-integration-schema-validator.js.map +1 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.d.ts +21 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.js +145 -0
- package/dist/consumer-integration/adapters/consumer-upgrade-file-projectors.js.map +1 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.d.ts +3 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.js +7 -0
- package/dist/consumer-integration/adapters/foundation-known-file-transaction.js.map +1 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.d.ts +21 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.js +215 -0
- package/dist/consumer-integration/adapters/github-cohort-authority-reader.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.d.ts +13 -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 +213 -0
- package/dist/consumer-integration/adapters/node-consumer-integration-repository.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.d.ts +11 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.js +81 -0
- package/dist/consumer-integration/adapters/node-consumer-repository-files.js.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.d.ts +19 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.js +307 -0
- package/dist/consumer-integration/adapters/node-consumer-upgrade-sandbox.js.map +1 -0
- package/dist/consumer-integration/adapters/package-consumer-asset-catalog.d.ts +5 -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 +150 -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-lockfile-validator-v1.d.ts +3 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.js +120 -0
- package/dist/consumer-integration/adapters/pnpm-lockfile-validator-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/pnpm-manifest-adapter-v1.d.ts +15 -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 +189 -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 +245 -0
- package/dist/consumer-integration/adapters/pnpm-runtime-closure-v1.js.map +1 -0
- package/dist/consumer-integration/adapters/strict-json-record.d.ts +3 -0
- package/dist/consumer-integration/adapters/strict-json-record.d.ts.map +1 -0
- package/dist/consumer-integration/adapters/strict-json-record.js +27 -0
- package/dist/consumer-integration/adapters/strict-json-record.js.map +1 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.d.ts +11 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.d.ts.map +1 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.js +2 -0
- package/dist/consumer-integration/application/model/consumer-integration-execution.js.map +1 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.d.ts +18 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.d.ts.map +1 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.js +2 -0
- package/dist/consumer-integration/application/model/consumer-upgrade-execution.js.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-assets.d.ts +58 -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 +154 -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/policies/consumer-integration-prior-cohort.d.ts +14 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.d.ts.map +1 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.js +186 -0
- package/dist/consumer-integration/application/policies/consumer-integration-prior-cohort.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.d.ts +31 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-integration-lifecycle.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.d.ts +35 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-integration-planners.js.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.d.ts +28 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.d.ts.map +1 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.js +2 -0
- package/dist/consumer-integration/application/ports/consumer-upgrade.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.d.ts +15 -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 +350 -0
- package/dist/consumer-integration/application/use-cases/plan-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.d.ts +29 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.js +139 -0
- package/dist/consumer-integration/application/use-cases/run-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.d.ts +13 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/application/use-cases/upgrade-consumer-integration.js +134 -0
- package/dist/consumer-integration/application/use-cases/upgrade-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 +241 -0
- package/dist/consumer-integration/composition/consumer-integration-cli.js.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.d.ts +19 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.d.ts.map +1 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.js +14 -0
- package/dist/consumer-integration/composition/consumer-integration-planner.js.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts +26 -0
- package/dist/consumer-integration/composition/node-consumer-integration.d.ts.map +1 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js +38 -0
- package/dist/consumer-integration/composition/node-consumer-integration.js.map +1 -0
- package/dist/consumer-integration/domain/model.d.ts +111 -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 +5 -0
- package/dist/consumer-integration/generated/canonical-assets.d.ts.map +1 -0
- package/dist/consumer-integration/generated/canonical-assets.js +6 -0
- package/dist/consumer-integration/generated/canonical-assets.js.map +1 -0
- package/dist/consumer-integration/index.d.ts +12 -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 +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/qualification/index.d.ts +3 -0
- package/dist/qualification/index.d.ts.map +1 -0
- package/dist/qualification/index.js +2 -0
- package/dist/qualification/index.js.map +1 -0
- package/dist/qualification/managed-command-envelope-validator.d.ts +14 -0
- package/dist/qualification/managed-command-envelope-validator.d.ts.map +1 -0
- package/dist/qualification/managed-command-envelope-validator.js +33 -0
- package/dist/qualification/managed-command-envelope-validator.js.map +1 -0
- package/dist/qualification/qualification-v2-runner.d.ts +4 -0
- package/dist/qualification/qualification-v2-runner.d.ts.map +1 -0
- package/dist/qualification/qualification-v2-runner.js +344 -0
- package/dist/qualification/qualification-v2-runner.js.map +1 -0
- package/dist/qualification/v2-contract.d.ts +91 -0
- package/dist/qualification/v2-contract.d.ts.map +1 -0
- package/dist/qualification/v2-contract.js +2 -0
- package/dist/qualification/v2-contract.js.map +1 -0
- package/package.json +66 -0
- 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-integration-profile/v2.schema.json +283 -0
- package/schemas/docs-consumer-managed-state/v1.schema.json +99 -0
- package/schemas/docs-consumer-upgrade-execution/v1.schema.json +44 -0
- package/schemas/docs-protocol-command-envelope/v1.schema.json +239 -0
- package/schemas/docs-protocol-command-envelope/v2.schema.json +285 -0
- package/schemas/docs-protocol-command-envelope/v3.schema.json +529 -0
- package/schemas/docs-protocol-profile/v1.schema.json +46 -0
- package/schemas/docs-protocol-profile/v2.schema.json +46 -0
- package/schemas/docs-protocol-qualification/v2.schema.json +78 -0
- package/schemas/docs-protocol-qualification-receipt/v2.schema.json +113 -0
- package/schemas/qualified-docs-cohort/v1.schema.json +96 -0
- package/skills/docs/SKILL.md +29 -0
|
@@ -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,283 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-integration-profile/v2",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schemaVersion",
|
|
8
|
+
"repository",
|
|
9
|
+
"integrationRoot",
|
|
10
|
+
"packageManager",
|
|
11
|
+
"profilePath",
|
|
12
|
+
"skillPath",
|
|
13
|
+
"callerWorkflowPath",
|
|
14
|
+
"managedStatePath",
|
|
15
|
+
"cohort",
|
|
16
|
+
"qualification"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": {
|
|
20
|
+
"const": 2
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": [
|
|
26
|
+
"provider",
|
|
27
|
+
"id",
|
|
28
|
+
"nameWithOwner"
|
|
29
|
+
],
|
|
30
|
+
"properties": {
|
|
31
|
+
"provider": {
|
|
32
|
+
"const": "github"
|
|
33
|
+
},
|
|
34
|
+
"id": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[1-9][0-9]*$"
|
|
37
|
+
},
|
|
38
|
+
"nameWithOwner": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"integrationRoot": {
|
|
45
|
+
"const": "."
|
|
46
|
+
},
|
|
47
|
+
"packageManager": {
|
|
48
|
+
"const": "pnpm"
|
|
49
|
+
},
|
|
50
|
+
"profilePath": {
|
|
51
|
+
"const": "architecture/foundation/docs-protocol.yaml"
|
|
52
|
+
},
|
|
53
|
+
"skillPath": {
|
|
54
|
+
"const": ".agents/skills/docs-authoring/SKILL.md"
|
|
55
|
+
},
|
|
56
|
+
"callerWorkflowPath": {
|
|
57
|
+
"const": ".github/workflows/docs-protocol.yml"
|
|
58
|
+
},
|
|
59
|
+
"managedStatePath": {
|
|
60
|
+
"const": "architecture/foundation/docs-protocol-managed-state.json"
|
|
61
|
+
},
|
|
62
|
+
"qualification": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"required": [
|
|
66
|
+
"contractPath",
|
|
67
|
+
"gateCommand"
|
|
68
|
+
],
|
|
69
|
+
"properties": {
|
|
70
|
+
"contractPath": {
|
|
71
|
+
"const": "architecture/foundation/docs-protocol-qualification.json"
|
|
72
|
+
},
|
|
73
|
+
"gateCommand": {
|
|
74
|
+
"const": "pnpm docs:protocol:check"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"governedDocsRoots": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"minItems": 1,
|
|
81
|
+
"maxItems": 32,
|
|
82
|
+
"uniqueItems": true,
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1,
|
|
86
|
+
"maxLength": 512,
|
|
87
|
+
"pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"cohort": {
|
|
91
|
+
"$ref": "#/$defs/cohortBinding"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"$defs": {
|
|
95
|
+
"cohortBinding": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"schemaVersion",
|
|
100
|
+
"cohortId",
|
|
101
|
+
"channel",
|
|
102
|
+
"recordDigest",
|
|
103
|
+
"qualificationEventDigest",
|
|
104
|
+
"eligibleAfter",
|
|
105
|
+
"upgradeFrom",
|
|
106
|
+
"rollbackTo",
|
|
107
|
+
"packages",
|
|
108
|
+
"workflow",
|
|
109
|
+
"assets",
|
|
110
|
+
"schemas",
|
|
111
|
+
"runtime"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"schemaVersion": {
|
|
115
|
+
"const": 1
|
|
116
|
+
},
|
|
117
|
+
"cohortId": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
|
120
|
+
},
|
|
121
|
+
"channel": {
|
|
122
|
+
"enum": [
|
|
123
|
+
"rc",
|
|
124
|
+
"stable"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"recordDigest": {
|
|
128
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
129
|
+
},
|
|
130
|
+
"qualificationEventDigest": {
|
|
131
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
132
|
+
},
|
|
133
|
+
"eligibleAfter": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
|
|
136
|
+
},
|
|
137
|
+
"upgradeFrom": {
|
|
138
|
+
"$ref": "#/$defs/cohortIds"
|
|
139
|
+
},
|
|
140
|
+
"rollbackTo": {
|
|
141
|
+
"$ref": "#/$defs/cohortIds"
|
|
142
|
+
},
|
|
143
|
+
"packages": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"docsProtocol",
|
|
148
|
+
"engineeringFoundation"
|
|
149
|
+
],
|
|
150
|
+
"properties": {
|
|
151
|
+
"docsProtocol": {
|
|
152
|
+
"$ref": "#/$defs/package"
|
|
153
|
+
},
|
|
154
|
+
"engineeringFoundation": {
|
|
155
|
+
"$ref": "#/$defs/package"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"workflow": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"required": [
|
|
163
|
+
"repository",
|
|
164
|
+
"path",
|
|
165
|
+
"revision",
|
|
166
|
+
"blobSha"
|
|
167
|
+
],
|
|
168
|
+
"properties": {
|
|
169
|
+
"repository": {
|
|
170
|
+
"const": "agent-teams-ai/.github"
|
|
171
|
+
},
|
|
172
|
+
"path": {
|
|
173
|
+
"const": ".github/workflows/docs-protocol-check.yml"
|
|
174
|
+
},
|
|
175
|
+
"revision": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"pattern": "^(?!0{40}$)[0-9a-f]{40}$"
|
|
178
|
+
},
|
|
179
|
+
"blobSha": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"pattern": "^(?!0{40}$)[0-9a-f]{40}$"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"assets": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"required": [
|
|
189
|
+
"skillDigest",
|
|
190
|
+
"callerWorkflowDigest",
|
|
191
|
+
"assetCatalogDigest",
|
|
192
|
+
"transitionCatalogDigest"
|
|
193
|
+
],
|
|
194
|
+
"properties": {
|
|
195
|
+
"skillDigest": {
|
|
196
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
197
|
+
},
|
|
198
|
+
"callerWorkflowDigest": {
|
|
199
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
200
|
+
},
|
|
201
|
+
"assetCatalogDigest": {
|
|
202
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
203
|
+
},
|
|
204
|
+
"transitionCatalogDigest": {
|
|
205
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"schemas": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"required": [
|
|
213
|
+
"consumerIntegration",
|
|
214
|
+
"managedState",
|
|
215
|
+
"docsProtocol"
|
|
216
|
+
],
|
|
217
|
+
"properties": {
|
|
218
|
+
"consumerIntegration": {
|
|
219
|
+
"const": 1
|
|
220
|
+
},
|
|
221
|
+
"managedState": {
|
|
222
|
+
"const": 1
|
|
223
|
+
},
|
|
224
|
+
"docsProtocol": {
|
|
225
|
+
"const": 1
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"runtime": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"required": [
|
|
233
|
+
"node",
|
|
234
|
+
"pnpm",
|
|
235
|
+
"runtimeClosureDigest"
|
|
236
|
+
],
|
|
237
|
+
"properties": {
|
|
238
|
+
"node": {
|
|
239
|
+
"const": ">=24.18.0 <25"
|
|
240
|
+
},
|
|
241
|
+
"pnpm": {
|
|
242
|
+
"const": ">=11.17.0 <12"
|
|
243
|
+
},
|
|
244
|
+
"runtimeClosureDigest": {
|
|
245
|
+
"$ref": "#/$defs/nonzeroSha256"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"nonzeroSha256": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"pattern": "^sha256:(?!0{64}$)[0-9a-f]{64}$"
|
|
254
|
+
},
|
|
255
|
+
"cohortIds": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"maxItems": 32,
|
|
258
|
+
"uniqueItems": true,
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"package": {
|
|
265
|
+
"type": "object",
|
|
266
|
+
"additionalProperties": false,
|
|
267
|
+
"required": [
|
|
268
|
+
"version",
|
|
269
|
+
"integrity"
|
|
270
|
+
],
|
|
271
|
+
"properties": {
|
|
272
|
+
"version": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$"
|
|
275
|
+
},
|
|
276
|
+
"integrity": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"pattern": "^sha512-[A-Za-z0-9+/]{86}==$"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
@@ -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,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-consumer-upgrade-execution/v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["schemaVersion", "command", "outcome", "issues"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"schemaVersion": { "const": 1 },
|
|
9
|
+
"command": { "const": "consumer.upgrade" },
|
|
10
|
+
"outcome": { "enum": ["blocked", "current", "upgraded"] },
|
|
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
|
+
"authority": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"additionalProperties": false,
|
|
29
|
+
"required": ["repository", "path", "revision", "cohortId", "recordDigest", "qualificationEventDigest"],
|
|
30
|
+
"properties": {
|
|
31
|
+
"repository": { "const": "agent-teams-ai/.github" },
|
|
32
|
+
"path": { "const": "governance/docs-qualified-cohorts.json" },
|
|
33
|
+
"revision": { "type": "string", "pattern": "^(?!0{40}$)[0-9a-f]{40}$" },
|
|
34
|
+
"cohortId": { "type": "string", "pattern": "^[a-z0-9]+(?:[._-][a-z0-9]+)*$" },
|
|
35
|
+
"recordDigest": { "$ref": "#/$defs/sha256" },
|
|
36
|
+
"qualificationEventDigest": { "$ref": "#/$defs/sha256" }
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"receipt": { "$ref": "https://agent-teams.ai/schemas/known-file-transaction-receipt/v1" }
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"sha256": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
43
|
+
}
|
|
44
|
+
}
|