@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,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-protocol-profile/v1",
|
|
4
|
+
"title": "Agent Teams Docs Protocol Profile",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "protocol", "foundationProfile", "agentWorkflow", "semanticValidatorIds"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"protocol": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["id", "version"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "const": "agent-teams.docs-protocol" },
|
|
16
|
+
"version": { "const": 1 }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"foundationProfile": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["path", "schemaVersion", "metadataSidecarPolicy"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
25
|
+
"schemaVersion": { "const": 2 },
|
|
26
|
+
"metadataSidecarPolicy": { "const": "foundation-profile-v2-strict-merge" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"agentWorkflow": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["skillPath"],
|
|
33
|
+
"properties": { "skillPath": { "$ref": "#/$defs/repositoryPath" } }
|
|
34
|
+
},
|
|
35
|
+
"semanticValidatorIds": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"maxItems": 256,
|
|
38
|
+
"uniqueItems": true,
|
|
39
|
+
"items": { "$ref": "#/$defs/lowerId" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"$defs": {
|
|
43
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
44
|
+
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$" }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-protocol-profile/v2",
|
|
4
|
+
"title": "Agent Teams Docs Protocol Profile",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "protocol", "foundationProfile", "agentWorkflow", "semanticValidatorIds"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 2 },
|
|
10
|
+
"protocol": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["id", "version"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"id": { "const": "agent-teams.docs-protocol" },
|
|
16
|
+
"version": { "const": 1 }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"foundationProfile": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["path", "schemaVersion", "metadataSidecarPolicy"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"path": { "$ref": "#/$defs/repositoryPath" },
|
|
25
|
+
"schemaVersion": { "const": 3 },
|
|
26
|
+
"metadataSidecarPolicy": { "const": "foundation-profile-v3-strict-merge" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"agentWorkflow": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": ["skillPath"],
|
|
33
|
+
"properties": { "skillPath": { "$ref": "#/$defs/repositoryPath" } }
|
|
34
|
+
},
|
|
35
|
+
"semanticValidatorIds": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"maxItems": 256,
|
|
38
|
+
"uniqueItems": true,
|
|
39
|
+
"items": { "$ref": "#/$defs/lowerId" }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"$defs": {
|
|
43
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
44
|
+
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$" }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-protocol-qualification/v2",
|
|
4
|
+
"title": "Docs Protocol consumer qualification v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "scenarios"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 2 },
|
|
10
|
+
"scenarios": {
|
|
11
|
+
"type": "array", "minItems": 1, "maxItems": 32,
|
|
12
|
+
"items": { "$ref": "#/$defs/scenario" }
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"$defs": {
|
|
16
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
17
|
+
"opaqueId": { "type": "string", "minLength": 1, "maxLength": 214, "pattern": "^[A-Za-z0-9@][A-Za-z0-9@._/-]*$" },
|
|
18
|
+
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$" },
|
|
19
|
+
"jsonValue": {
|
|
20
|
+
"oneOf": [
|
|
21
|
+
{ "type": "boolean" }, { "type": "null" }, { "type": "number" }, { "type": "string" },
|
|
22
|
+
{ "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/jsonValue" } },
|
|
23
|
+
{ "type": "object", "maxProperties": 256, "additionalProperties": { "$ref": "#/$defs/jsonValue" } }
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"anchor": {
|
|
27
|
+
"type": "object", "additionalProperties": false, "required": ["enforcement", "pattern"],
|
|
28
|
+
"properties": { "enforcement": { "enum": ["advisory", "required"] }, "pattern": { "type": "string", "minLength": 1, "maxLength": 1000 } }
|
|
29
|
+
},
|
|
30
|
+
"intent": {
|
|
31
|
+
"type": "object", "additionalProperties": false,
|
|
32
|
+
"required": ["id", "title", "owner", "summary"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"id": { "$ref": "#/$defs/opaqueId" },
|
|
35
|
+
"title": { "type": "string", "minLength": 1, "maxLength": 240 },
|
|
36
|
+
"owner": { "$ref": "#/$defs/opaqueId" },
|
|
37
|
+
"summary": { "type": "string", "minLength": 1, "maxLength": 1000 },
|
|
38
|
+
"slug": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
39
|
+
"destination": { "$ref": "#/$defs/repositoryPath" },
|
|
40
|
+
"related": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/opaqueId" } },
|
|
41
|
+
"blockedBy": { "type": "array", "maxItems": 256, "uniqueItems": true, "items": { "$ref": "#/$defs/opaqueId" } },
|
|
42
|
+
"codeAnchors": { "type": "array", "maxItems": 256, "items": { "$ref": "#/$defs/anchor" } },
|
|
43
|
+
"metadata": { "type": "object", "maxProperties": 256, "additionalProperties": { "$ref": "#/$defs/jsonValue" } }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"reachability": {
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{ "type": "object", "additionalProperties": false, "required": ["state", "indexPath", "markdownLink"], "properties": { "state": { "const": "manual-required" }, "indexPath": { "$ref": "#/$defs/repositoryPath" }, "markdownLink": { "type": "string", "minLength": 1, "maxLength": 1024 } } },
|
|
49
|
+
{ "type": "object", "additionalProperties": false, "required": ["state", "reason"], "properties": { "state": { "const": "not-required" }, "reason": { "type": "string", "minLength": 1, "maxLength": 500 } } }
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"expected": {
|
|
53
|
+
"type": "object", "additionalProperties": false,
|
|
54
|
+
"required": ["documentPath", "metadataStorage", "reachability"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"documentPath": { "$ref": "#/$defs/repositoryPath" },
|
|
57
|
+
"metadataStorage": { "const": "frontmatter" },
|
|
58
|
+
"reachability": { "$ref": "#/$defs/reachability" },
|
|
59
|
+
"goldenFile": { "$ref": "#/$defs/repositoryPath" },
|
|
60
|
+
"goldenDigest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" }
|
|
61
|
+
},
|
|
62
|
+
"oneOf": [
|
|
63
|
+
{ "not": { "anyOf": [{ "required": ["goldenFile"], "properties": { "goldenFile": true } }, { "required": ["goldenDigest"], "properties": { "goldenDigest": true } }] } },
|
|
64
|
+
{ "required": ["goldenFile"], "properties": { "goldenFile": true }, "not": { "required": ["goldenDigest"], "properties": { "goldenDigest": true } } },
|
|
65
|
+
{ "required": ["goldenDigest"], "properties": { "goldenDigest": true }, "not": { "required": ["goldenFile"], "properties": { "goldenFile": true } } }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"scenario": {
|
|
69
|
+
"type": "object", "additionalProperties": false, "required": ["id", "type", "intent", "expected"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"id": { "$ref": "#/$defs/lowerId" },
|
|
72
|
+
"type": { "$ref": "#/$defs/lowerId" },
|
|
73
|
+
"intent": { "$ref": "#/$defs/intent" },
|
|
74
|
+
"expected": { "$ref": "#/$defs/expected" }
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agent-teams.ai/schemas/docs-protocol-qualification-receipt/v2",
|
|
4
|
+
"title": "Docs Protocol qualification receipt v2",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "receiptDigest", "cohortAdmissible", "evidenceClass", "projectId", "scenarios", "checks", "derived", "evidence"],
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"if": { "properties": { "evidenceClass": { "const": "local-development" } }, "required": ["evidenceClass"] },
|
|
11
|
+
"then": { "properties": { "cohortAdmissible": { "const": false } } }
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"if": { "properties": { "evidenceClass": { "const": "released-cohort" } }, "required": ["evidenceClass"] },
|
|
15
|
+
"then": { "properties": { "cohortAdmissible": { "const": true } } }
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": { "const": 2 },
|
|
20
|
+
"receiptDigest": { "$ref": "#/$defs/digest" },
|
|
21
|
+
"cohortAdmissible": { "type": "boolean" },
|
|
22
|
+
"evidenceClass": { "enum": ["local-development", "released-cohort"] },
|
|
23
|
+
"projectId": { "$ref": "#/$defs/lowerId" },
|
|
24
|
+
"scenarios": {
|
|
25
|
+
"type": "array", "minItems": 1, "maxItems": 32,
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "object", "additionalProperties": false,
|
|
28
|
+
"required": ["id", "type", "documentPath", "outputDigest"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"id": { "$ref": "#/$defs/lowerId" },
|
|
31
|
+
"type": { "$ref": "#/$defs/lowerId" },
|
|
32
|
+
"documentPath": { "$ref": "#/$defs/repositoryPath" },
|
|
33
|
+
"outputDigest": { "$ref": "#/$defs/digest" }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"checks": { "$ref": "#/$defs/checks" },
|
|
38
|
+
"derived": {
|
|
39
|
+
"type": "object", "additionalProperties": false,
|
|
40
|
+
"required": ["contractPath", "gateCommand", "packageVersions", "profilePath"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"contractPath": { "$ref": "#/$defs/repositoryPath" },
|
|
43
|
+
"gateCommand": { "const": "pnpm docs:protocol:check" },
|
|
44
|
+
"packageVersions": {
|
|
45
|
+
"type": "object", "additionalProperties": false,
|
|
46
|
+
"required": ["docsProtocol", "engineeringFoundation"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"docsProtocol": { "$ref": "#/$defs/version" },
|
|
49
|
+
"engineeringFoundation": { "$ref": "#/$defs/version" }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"profilePath": { "$ref": "#/$defs/repositoryPath" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"evidence": {
|
|
56
|
+
"type": "object", "additionalProperties": false,
|
|
57
|
+
"required": ["sourceDigest", "integration", "contract", "profile", "skill", "packageManifestDigest", "lockfileDigest", "executingDocsProtocol", "executingFoundation", "cohort"],
|
|
58
|
+
"properties": {
|
|
59
|
+
"sourceDigest": { "$ref": "#/$defs/digest" },
|
|
60
|
+
"integration": { "$ref": "#/$defs/pathEvidence" },
|
|
61
|
+
"contract": { "$ref": "#/$defs/pathEvidence" },
|
|
62
|
+
"profile": { "$ref": "#/$defs/pathEvidence" },
|
|
63
|
+
"skill": { "$ref": "#/$defs/pathEvidence" },
|
|
64
|
+
"packageManifestDigest": { "$ref": "#/$defs/digest" },
|
|
65
|
+
"lockfileDigest": { "$ref": "#/$defs/digest" },
|
|
66
|
+
"executingDocsProtocol": {
|
|
67
|
+
"type": "object", "additionalProperties": false,
|
|
68
|
+
"required": ["version", "buildDigest"],
|
|
69
|
+
"properties": { "version": { "$ref": "#/$defs/version" }, "buildDigest": { "$ref": "#/$defs/digest" } }
|
|
70
|
+
},
|
|
71
|
+
"executingFoundation": {
|
|
72
|
+
"type": "object", "additionalProperties": false,
|
|
73
|
+
"required": ["version", "buildIdentity"],
|
|
74
|
+
"properties": { "version": { "$ref": "#/$defs/version" }, "buildIdentity": { "$ref": "#/$defs/digest" } }
|
|
75
|
+
},
|
|
76
|
+
"cohort": { "$ref": "https://agent-teams.ai/schemas/docs-consumer-integration-profile/v2#/$defs/cohortBinding" }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"$defs": {
|
|
81
|
+
"digest": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
82
|
+
"lowerId": { "type": "string", "minLength": 1, "maxLength": 160, "pattern": "^[a-z0-9][a-z0-9._/-]*$" },
|
|
83
|
+
"repositoryPath": { "type": "string", "minLength": 1, "maxLength": 512, "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9._@-]{1,255}(?:/[A-Za-z0-9._@-]{1,255})*$" },
|
|
84
|
+
"version": { "type": "string", "minLength": 1, "maxLength": 100 },
|
|
85
|
+
"pathEvidence": {
|
|
86
|
+
"type": "object", "additionalProperties": false,
|
|
87
|
+
"required": ["path", "digest"],
|
|
88
|
+
"properties": { "path": { "$ref": "#/$defs/repositoryPath" }, "digest": { "$ref": "#/$defs/digest" } }
|
|
89
|
+
},
|
|
90
|
+
"checks": {
|
|
91
|
+
"oneOf": [
|
|
92
|
+
{
|
|
93
|
+
"type": "array", "minItems": 10, "maxItems": 10,
|
|
94
|
+
"prefixItems": [
|
|
95
|
+
{ "const": "info" }, { "const": "find" }, { "const": "check" }, { "const": "doctor" },
|
|
96
|
+
{ "const": "recover" }, { "const": "preview" }, { "const": "apply" }, { "const": "path" },
|
|
97
|
+
{ "const": "reachability" }, { "const": "source-unchanged" }
|
|
98
|
+
],
|
|
99
|
+
"items": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "array", "minItems": 11, "maxItems": 11,
|
|
103
|
+
"prefixItems": [
|
|
104
|
+
{ "const": "info" }, { "const": "find" }, { "const": "check" }, { "const": "doctor" },
|
|
105
|
+
{ "const": "recover" }, { "const": "preview" }, { "const": "apply" }, { "const": "path" },
|
|
106
|
+
{ "const": "reachability" }, { "const": "golden" }, { "const": "source-unchanged" }
|
|
107
|
+
],
|
|
108
|
+
"items": false
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -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,29 @@
|
|
|
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
|
+
- For edits, preserve canonical frontmatter and sidecar ownership; use the repository's governed review flow rather than bypassing the create-only writer.
|
|
20
|
+
- For accepted authority, record supersession explicitly instead of silently rewriting history.
|
|
21
|
+
- Finish with the full consumer gate `pnpm docs:protocol:check` after the index is current.
|
|
22
|
+
|
|
23
|
+
## Rules
|
|
24
|
+
- Never invent owners, types, statuses, paths, or metadata outside `docs:info`.
|
|
25
|
+
- If dependencies are absent, use only `pnpm install --frozen-lockfile`; never use npx, dlx, or latest tags.
|
|
26
|
+
- Keep preview and apply inputs identical.
|
|
27
|
+
- Stop when recovery is required; use `pnpm docs:doctor` before `pnpm docs:recover`.
|
|
28
|
+
- Resolve required anchors and blockers before apply.
|
|
29
|
+
- Do not bypass repository scripts or hand-edit transaction evidence.
|