release-skill 0.9.17 → 0.9.18
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/.claude-plugin/plugin.json +1 -1
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -2
- package/.cursor-plugin/plugin.json +10 -0
- package/.kimi-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +1 -1
- package/CHANGELOG.md +36 -2
- package/INSTALL.md +56 -9
- package/INSTALL.zh-CN.md +41 -7
- package/README.md +31 -20
- package/README.zh-CN.md +29 -19
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/consumer-contract-vectors.json +7 -7
- package/adapters/claude/bin/error-codes.json +1 -1
- package/adapters/claude/bin/foundation-resource-binding.json +1 -1
- package/adapters/claude/bin/prebuild-manifest.json +8 -4
- package/adapters/claude/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/claude/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/claude/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/claude/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/claude/bin/registry.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +3560 -1200
- package/adapters/claude/bin/rules.json +1 -1
- package/adapters/claude/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/claude/data/hosts/registry.json +1 -0
- package/adapters/claude/schemas/release-plan.schema.json +255 -25
- package/adapters/claude/schemas/release-project.schema.json +228 -26
- package/adapters/claude/skills/release-finish/SKILL.md +17 -4
- package/adapters/claude/skills/release-help/SKILL.md +40 -39
- package/adapters/claude/src/schemas/host-descriptor.schema.json +9 -2
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/consumer-contract-vectors.json +7 -7
- package/adapters/codex/bin/error-codes.json +1 -1
- package/adapters/codex/bin/foundation-resource-binding.json +1 -1
- package/adapters/codex/bin/prebuild-manifest.json +8 -4
- package/adapters/codex/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/codex/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/codex/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/codex/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/codex/bin/registry.json +1 -1
- package/adapters/codex/bin/release-skill.bundle.mjs +3560 -1200
- package/adapters/codex/bin/rules.json +1 -1
- package/adapters/codex/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/codex/data/hosts/registry.json +1 -0
- package/adapters/codex/schemas/release-plan.schema.json +255 -25
- package/adapters/codex/schemas/release-project.schema.json +228 -26
- package/adapters/codex/skills/release-finish/SKILL.md +17 -4
- package/adapters/codex/skills/release-help/SKILL.md +40 -39
- package/adapters/codex/src/schemas/host-descriptor.schema.json +9 -2
- package/adapters/cursor/.cursor-plugin/plugin.json +10 -0
- package/adapters/cursor/bin/consumer-contract-vectors.json +110 -0
- package/adapters/cursor/bin/error-codes.json +161 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
- package/adapters/cursor/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
- package/adapters/cursor/bin/foundation-resource-binding.json +1 -0
- package/adapters/cursor/bin/kernel-protocol.json +60 -0
- package/adapters/cursor/bin/license-texts/Apache-2.0.txt +201 -0
- package/adapters/cursor/bin/license-texts/MIT.txt +21 -0
- package/adapters/cursor/bin/prebuild-manifest.json +83 -0
- package/adapters/cursor/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/cursor/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/cursor/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/cursor/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/cursor/bin/registry.json +347 -0
- package/adapters/cursor/bin/release-skill-local-finish.mjs +4 -0
- package/adapters/cursor/bin/release-skill.bundle.mjs +151806 -0
- package/adapters/cursor/bin/release-skill.mjs +54 -0
- package/adapters/cursor/bin/rules.json +104 -0
- package/adapters/cursor/bin/schemas/consumer-contract-vector.schema.json +149 -0
- package/adapters/cursor/data/hosts/claude/host-descriptor.json +45 -0
- package/adapters/cursor/data/hosts/codebuddy/host-descriptor.json +26 -0
- package/adapters/cursor/data/hosts/codex/host-descriptor.json +45 -0
- package/adapters/cursor/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/cursor/data/hosts/deepseek-harness/host-descriptor.json +23 -0
- package/adapters/cursor/data/hosts/kimi-code/host-descriptor.json +36 -0
- package/adapters/cursor/data/hosts/qoder/host-descriptor.json +26 -0
- package/adapters/cursor/data/hosts/registry.json +14 -0
- package/adapters/cursor/data/hosts/workbuddy/host-descriptor.json +34 -0
- package/adapters/cursor/data/licensing/registry.json +211 -0
- package/adapters/cursor/data/licensing/schema.json +207 -0
- package/adapters/cursor/native/safe-write/binding.gyp +41 -0
- package/adapters/cursor/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
- package/adapters/cursor/native/safe-write/prebuilds.json +24 -0
- package/adapters/cursor/native/safe-write/src/safe_write.cc +2032 -0
- package/adapters/cursor/schemas/.render-manifest.json +41 -0
- package/adapters/cursor/schemas/approval-record.schema.json +115 -0
- package/adapters/cursor/schemas/artifact-lock.schema.json +111 -0
- package/adapters/cursor/schemas/artifact-plan.schema.json +52 -0
- package/adapters/cursor/schemas/artifact-policy.schema.json +76 -0
- package/adapters/cursor/schemas/evidence-event-v2.schema.json +164 -0
- package/adapters/cursor/schemas/evidence-event.schema.json +89 -0
- package/adapters/cursor/schemas/postpublish-approval-record.schema.json +47 -0
- package/adapters/cursor/schemas/release-plan.schema.json +2226 -0
- package/adapters/cursor/schemas/release-project.schema.json +1815 -0
- package/adapters/cursor/schemas/release-run.schema.json +777 -0
- package/adapters/cursor/skills/release-assess/SKILL.md +61 -0
- package/adapters/cursor/skills/release-config/SKILL.md +151 -0
- package/adapters/cursor/skills/release-docs/SKILL.md +120 -0
- package/adapters/cursor/skills/release-finish/SKILL.md +155 -0
- package/adapters/cursor/skills/release-help/SKILL.md +155 -0
- package/adapters/cursor/skills/release-marketplace/SKILL.md +157 -0
- package/adapters/cursor/skills/release-prepare/SKILL.md +136 -0
- package/adapters/cursor/skills/release-publish/SKILL.md +92 -0
- package/adapters/cursor/skills/release-reconcile/SKILL.md +81 -0
- package/adapters/cursor/skills/release-setup/SKILL.md +132 -0
- package/adapters/cursor/skills/release-verify/SKILL.md +110 -0
- package/adapters/cursor/src/schemas/adapter-build-manifest.schema.json +41 -0
- package/adapters/cursor/src/schemas/adapter-peer-verification-request.schema.json +54 -0
- package/adapters/cursor/src/schemas/adapter-peer-verification-result.schema.json +54 -0
- package/adapters/cursor/src/schemas/adapter-source.schema.json +47 -0
- package/adapters/cursor/src/schemas/audit-baseline-pin.schema.json +163 -0
- package/adapters/cursor/src/schemas/declared-read-surface-result.schema.json +61 -0
- package/adapters/cursor/src/schemas/engineering-baseline.schema.json +77 -0
- package/adapters/cursor/src/schemas/executable-identity-observation.schema.json +162 -0
- package/adapters/cursor/src/schemas/filesystem-root-binding.schema.json +14 -0
- package/adapters/cursor/src/schemas/filesystem-tree-observation.schema.json +71 -0
- package/adapters/cursor/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
- package/adapters/cursor/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
- package/adapters/cursor/src/schemas/host-capability-fact.schema.json +31 -0
- package/adapters/cursor/src/schemas/host-descriptor.schema.json +144 -0
- package/adapters/cursor/src/schemas/host-operation-plan.schema.json +57 -0
- package/adapters/cursor/src/schemas/host-operation-receipt.schema.json +81 -0
- package/adapters/cursor/src/schemas/host-probe-result.schema.json +30 -0
- package/adapters/cursor/src/schemas/host-registry.schema.json +18 -0
- package/adapters/cursor/src/schemas/host-verification-request.schema.json +67 -0
- package/adapters/cursor/src/schemas/host-verification-result.schema.json +149 -0
- package/adapters/cursor/src/schemas/managed-file-lock.schema.json +77 -0
- package/adapters/cursor/src/schemas/migration-manifest.schema.json +412 -0
- package/adapters/cursor/src/schemas/observation-scope.schema.json +91 -0
- package/adapters/cursor/src/schemas/operation-request.schema.json +58 -0
- package/adapters/cursor/src/schemas/operation-result.schema.json +130 -0
- package/adapters/cursor/src/schemas/platform-difference-registry.schema.json +110 -0
- package/adapters/cursor/src/schemas/plugin-verification-request.schema.json +499 -0
- package/adapters/cursor/src/schemas/plugin-verification-result.schema.json +1217 -0
- package/adapters/cursor/src/schemas/profile-adoption-declaration.schema.json +111 -0
- package/adapters/cursor/src/schemas/profile-descriptor.schema.json +99 -0
- package/adapters/cursor/src/schemas/project-manifest.schema.json +67 -0
- package/adapters/cursor/src/schemas/project-profile.schema.json +25 -0
- package/adapters/cursor/src/schemas/public-boundary-declaration.schema.json +73 -0
- package/adapters/cursor/src/schemas/report-binding.schema.json +42 -0
- package/adapters/cursor/src/schemas/report-model.schema.json +308 -0
- package/adapters/cursor/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
- package/adapters/cursor/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
- package/adapters/cursor/src/schemas/source-authority-receipt.schema.json +31 -0
- package/adapters/cursor/src/schemas/state-event-envelope.schema.json +38 -0
- package/adapters/cursor/src/schemas/state-snapshot-metadata.schema.json +25 -0
- package/adapters/cursor/src/schemas/structured-scan-policy.schema.json +97 -0
- package/adapters/cursor/src/schemas/surface-scan-policy.schema.json +42 -0
- package/adapters/cursor/src/schemas/timeout-policy.schema.json +24 -0
- package/adapters/cursor/src/schemas/token-estimate-record.schema.json +75 -0
- package/adapters/cursor/src/schemas/token-estimate-result.schema.json +43 -0
- package/adapters/cursor/src/schemas/watchdog-termination-envelope.schema.json +156 -0
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/consumer-contract-vectors.json +7 -7
- package/adapters/kimi/bin/error-codes.json +1 -1
- package/adapters/kimi/bin/foundation-resource-binding.json +1 -1
- package/adapters/kimi/bin/prebuild-manifest.json +8 -4
- package/adapters/kimi/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/kimi/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/kimi/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/kimi/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/kimi/bin/registry.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +3560 -1200
- package/adapters/kimi/bin/rules.json +1 -1
- package/adapters/kimi/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/kimi/data/hosts/registry.json +1 -0
- package/adapters/kimi/schemas/release-plan.schema.json +255 -25
- package/adapters/kimi/schemas/release-project.schema.json +228 -26
- package/adapters/kimi/skills/release-finish/SKILL.md +17 -4
- package/adapters/kimi/skills/release-help/SKILL.md +40 -39
- package/adapters/kimi/src/schemas/host-descriptor.schema.json +9 -2
- package/adapters/qoder/.qoder-plugin/plugin.json +1 -1
- package/adapters/qoder/bin/consumer-contract-vectors.json +7 -7
- package/adapters/qoder/bin/error-codes.json +1 -1
- package/adapters/qoder/bin/foundation-resource-binding.json +1 -1
- package/adapters/qoder/bin/prebuild-manifest.json +8 -4
- package/adapters/qoder/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/qoder/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/qoder/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/qoder/bin/registry.json +1 -1
- package/adapters/qoder/bin/release-skill.bundle.mjs +3560 -1200
- package/adapters/qoder/bin/rules.json +1 -1
- package/adapters/qoder/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/qoder/data/hosts/registry.json +1 -0
- package/adapters/qoder/schemas/release-plan.schema.json +255 -25
- package/adapters/qoder/schemas/release-project.schema.json +228 -26
- package/adapters/qoder/skills/release-finish/SKILL.md +17 -4
- package/adapters/qoder/skills/release-help/SKILL.md +40 -39
- package/adapters/qoder/src/schemas/host-descriptor.schema.json +9 -2
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/consumer-contract-vectors.json +7 -7
- package/adapters/workbuddy/bin/error-codes.json +1 -1
- package/adapters/workbuddy/bin/foundation-resource-binding.json +1 -1
- package/adapters/workbuddy/bin/prebuild-manifest.json +8 -4
- package/adapters/workbuddy/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/adapters/workbuddy/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/adapters/workbuddy/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/adapters/workbuddy/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/adapters/workbuddy/bin/registry.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +3560 -1200
- package/adapters/workbuddy/bin/rules.json +1 -1
- package/adapters/workbuddy/data/hosts/cursor/host-descriptor.json +34 -0
- package/adapters/workbuddy/data/hosts/registry.json +1 -0
- package/adapters/workbuddy/schemas/release-plan.schema.json +255 -25
- package/adapters/workbuddy/schemas/release-project.schema.json +228 -26
- package/adapters/workbuddy/skills/release-finish/SKILL.md +17 -4
- package/adapters/workbuddy/skills/release-help/SKILL.md +40 -39
- package/adapters/workbuddy/src/schemas/host-descriptor.schema.json +9 -2
- package/bin/consumer-contract-vectors.json +7 -7
- package/bin/error-codes.json +1 -1
- package/bin/foundation-resource-binding.json +1 -1
- package/bin/prebuild-manifest.json +8 -4
- package/bin/prebuilds/darwin-arm64/bound_read.darwin-arm64.node +0 -0
- package/bin/prebuilds/darwin-x64/bound_read.darwin-x64.node +0 -0
- package/bin/prebuilds/linux-arm64-gnu/bound_read.linux-arm64-gnu.node +0 -0
- package/bin/prebuilds/linux-x64-gnu/bound_read.linux-x64-gnu.node +0 -0
- package/bin/registry.json +1 -1
- package/bin/release-skill-cli.mjs +25 -1
- package/bin/release-skill.bundle.mjs +3560 -1200
- package/bin/rules.json +1 -1
- package/data/hosts/cursor/host-descriptor.json +34 -0
- package/data/hosts/registry.json +1 -0
- package/package.json +7 -5
- package/platform-manifest.json +75 -9
- package/schemas/release-plan.schema.json +255 -25
- package/schemas/release-project.schema.json +228 -26
- package/scripts/sync-public-files.mjs +3 -22
- package/skills/release-finish/SKILL.md +17 -4
- package/skills/release-help/SKILL.md +40 -39
- package/skills-src/release-finish/SKILL.md +17 -4
- package/skills-src/release-help/SKILL.md +40 -39
- package/src/adapters/contract.mjs +1 -0
- package/src/adapters/plugin-marketplace.mjs +201 -9
- package/src/commands/post-release-local.mjs +290 -34
- package/src/commands/prepare.mjs +74 -9
- package/src/commands/publish.mjs +4 -1
- package/src/commands/ship.mjs +2 -0
- package/src/commands/verify.mjs +73 -0
- package/src/core/checkpoints.mjs +5 -2
- package/src/core/config.mjs +1 -1
- package/src/core/foundation-host-verification.mjs +168 -0
- package/src/core/plan.mjs +19 -1
- package/src/core/postpublish.mjs +9 -1
- package/src/core/run-retention.mjs +1 -1
- package/src/core/surface-host-bindings.mjs +1 -0
- package/src/core/verification-gates.mjs +1 -1
- package/src/platforms/registry.mjs +225 -16
- package/src/producers/build-adapters.mjs +21 -26
- package/src/producers/foundation-resource-projection.mjs +3 -3
- package/src/schemas/host-descriptor.schema.json +9 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-capability-fact.json",
|
|
4
|
+
"title": "Skill Family host capability fact",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "capability", "state", "evidence"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-capability-fact" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"capability": { "enum": ["cli", "version", "payload", "registry", "discover", "enabled", "reload", "smoke", "uninstall"] },
|
|
13
|
+
"state": { "enum": ["available", "unavailable", "unknown", "error"] },
|
|
14
|
+
"evidence": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "type": "string", "minLength": 1, "maxLength": 300 } },
|
|
15
|
+
"observedVersion": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$" },
|
|
16
|
+
"unknownReason": { "enum": ["timeout", "permission-denied", "interactive-required", "spawn-restricted", "not-probed", "driver-limited"] },
|
|
17
|
+
"manualSteps": { "type": "array", "minItems": 1, "maxItems": 8, "items": { "type": "string", "minLength": 1, "maxLength": 300 } }
|
|
18
|
+
},
|
|
19
|
+
"allOf": [
|
|
20
|
+
{
|
|
21
|
+
"if": { "properties": { "state": { "const": "unknown" } }, "required": ["state"] },
|
|
22
|
+
"then": { "properties": { "unknownReason": true, "manualSteps": true }, "required": ["unknownReason", "manualSteps"] },
|
|
23
|
+
"else": { "properties": { "unknownReason": false, "manualSteps": false } }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"if": { "properties": { "capability": { "const": "version" }, "state": { "const": "available" } }, "required": ["capability", "state"] },
|
|
27
|
+
"then": { "properties": { "observedVersion": true }, "required": ["observedVersion"] },
|
|
28
|
+
"else": { "properties": { "observedVersion": false } }
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-descriptor.json",
|
|
4
|
+
"title": "Skill Family host descriptor",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "displayName", "support", "pathCategories", "probeCapabilities"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-descriptor" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"displayName": { "type": "string", "minLength": 1, "maxLength": 80 },
|
|
13
|
+
"support": { "enum": ["supported", "manual", "unsupported"] },
|
|
14
|
+
"maturity": { "enum": ["stable", "manual", "developer-preview", "unsupported"] },
|
|
15
|
+
"sourceAliases": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"maxItems": 8,
|
|
18
|
+
"uniqueItems": true,
|
|
19
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }
|
|
20
|
+
},
|
|
21
|
+
"unsupportedReason": { "type": "string", "minLength": 1 },
|
|
22
|
+
"driverId": { "enum": ["claude-version-v1", "codex-version-v1"] },
|
|
23
|
+
"verification": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["driverId", "authStrategy", "credentialMutation"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"driverId": { "enum": ["kimi-code-print-v1", "workbuddy-codebuddy-print-v1", "codebuddy-print-v1", "claude-code-print-v1", "codex-exec-v1", "qodercli-print-v1", "cursor-agent-print-v1"] },
|
|
29
|
+
"authStrategy": { "const": "existing-user-state" },
|
|
30
|
+
"credentialMutation": { "const": "host-managed" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"adapterFormat": { "const": "skill-directory-v1" },
|
|
34
|
+
"pathCategories": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"maxItems": 8,
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["id", "role", "scope", "anchor", "relPath"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
43
|
+
"role": { "const": "skill-root" },
|
|
44
|
+
"scope": { "enum": ["user", "project"] },
|
|
45
|
+
"anchor": { "enum": ["user-home", "project-root"] },
|
|
46
|
+
"relPath": { "$ref": "#/$defs/relativePath" }
|
|
47
|
+
},
|
|
48
|
+
"allOf": [
|
|
49
|
+
{ "if": { "properties": { "scope": { "const": "user" } }, "required": ["scope"] }, "then": { "properties": { "anchor": { "const": "user-home" } } } },
|
|
50
|
+
{ "if": { "properties": { "scope": { "const": "project" } }, "required": ["scope"] }, "then": { "properties": { "anchor": { "const": "project-root" } } } }
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"probeCapabilities": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": { "enum": ["cli", "version", "payload", "registry", "discover", "enabled", "reload", "smoke", "uninstall"] },
|
|
57
|
+
"uniqueItems": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"$defs": {
|
|
61
|
+
"relativePath": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1,
|
|
64
|
+
"maxLength": 240,
|
|
65
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"allOf": [
|
|
69
|
+
{
|
|
70
|
+
"if": { "properties": { "hostId": { "const": "kimi-code" } }, "required": ["hostId"] },
|
|
71
|
+
"then": {
|
|
72
|
+
"required": ["verification"],
|
|
73
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "kimi-code-print-v1" } } } }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"if": { "properties": { "hostId": { "const": "workbuddy" } }, "required": ["hostId"] },
|
|
78
|
+
"then": {
|
|
79
|
+
"required": ["verification"],
|
|
80
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "workbuddy-codebuddy-print-v1" } } } }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"if": { "properties": { "hostId": { "const": "codebuddy" } }, "required": ["hostId"] },
|
|
85
|
+
"then": {
|
|
86
|
+
"required": ["verification"],
|
|
87
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "codebuddy-print-v1" } } } }
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"if": { "properties": { "hostId": { "const": "claude" } }, "required": ["hostId"] },
|
|
92
|
+
"then": {
|
|
93
|
+
"required": ["verification"],
|
|
94
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "claude-code-print-v1" } } } }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"if": { "properties": { "hostId": { "const": "codex" } }, "required": ["hostId"] },
|
|
99
|
+
"then": {
|
|
100
|
+
"required": ["verification"],
|
|
101
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "codex-exec-v1" } } } }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"if": { "properties": { "hostId": { "const": "qoder" } }, "required": ["hostId"] },
|
|
106
|
+
"then": {
|
|
107
|
+
"required": ["verification"],
|
|
108
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "qodercli-print-v1" } } } }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"if": { "properties": { "hostId": { "const": "cursor" } }, "required": ["hostId"] },
|
|
113
|
+
"then": {
|
|
114
|
+
"required": ["verification"],
|
|
115
|
+
"properties": { "verification": { "type": "object", "properties": { "driverId": { "const": "cursor-agent-print-v1" } } } }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"if": { "properties": { "hostId": { "enum": ["kimi-code", "workbuddy", "codebuddy", "claude", "codex", "qoder", "cursor"] } }, "required": ["hostId"] },
|
|
120
|
+
"else": { "properties": { "verification": false } }
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"if": { "properties": { "support": { "const": "supported" } }, "required": ["support"] },
|
|
124
|
+
"then": {
|
|
125
|
+
"required": ["driverId", "adapterFormat"],
|
|
126
|
+
"properties": { "unsupportedReason": false, "maturity": { "enum": ["stable"] }, "driverId": true, "adapterFormat": true, "pathCategories": { "type": "array", "minItems": 1 }, "probeCapabilities": { "type": "array", "minItems": 9, "maxItems": 9 } }
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"if": { "properties": { "support": { "const": "manual" } }, "required": ["support"] },
|
|
131
|
+
"then": {
|
|
132
|
+
"required": ["maturity"],
|
|
133
|
+
"properties": { "unsupportedReason": false, "maturity": { "enum": ["manual", "developer-preview"] }, "driverId": false, "adapterFormat": false, "pathCategories": { "type": "array", "maxItems": 8 }, "probeCapabilities": { "type": "array", "minItems": 9, "maxItems": 9 } }
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"if": { "properties": { "support": { "const": "unsupported" } }, "required": ["support"] },
|
|
138
|
+
"then": {
|
|
139
|
+
"required": ["unsupportedReason"],
|
|
140
|
+
"properties": { "unsupportedReason": true, "maturity": { "enum": ["unsupported"] }, "driverId": false, "adapterFormat": false, "pathCategories": { "type": "array", "maxItems": 0 }, "probeCapabilities": { "type": "array", "maxItems": 0 } }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-operation-plan.json",
|
|
4
|
+
"title": "Skill Family host operation plan",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "status", "probeFacts", "actions", "writeSet", "digest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-operation-plan" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"status": { "enum": ["planned", "manual", "unsupported"] },
|
|
13
|
+
"operation": { "enum": ["install", "update", "uninstall"] },
|
|
14
|
+
"unsupportedReason": { "type": "string", "minLength": 1 },
|
|
15
|
+
"pathCategory": { "$ref": "#/$defs/category" },
|
|
16
|
+
"probeFacts": { "type": "array", "items": { "$ref": "https://contracts.skill-family.example/v1/host-capability-fact.json" } },
|
|
17
|
+
"actions": { "type": "array", "items": { "$ref": "#/$defs/action" } },
|
|
18
|
+
"writeSet": { "type": "array", "items": { "$ref": "#/$defs/write" } },
|
|
19
|
+
"digest": { "$ref": "#/$defs/sha256" }
|
|
20
|
+
},
|
|
21
|
+
"$defs": {
|
|
22
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
23
|
+
"relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
|
|
24
|
+
"category": {
|
|
25
|
+
"type": "object", "additionalProperties": false, "required": ["id", "scope", "anchor", "relPath"],
|
|
26
|
+
"properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] }, "relPath": { "$ref": "#/$defs/relativePath" } }
|
|
27
|
+
},
|
|
28
|
+
"action": {
|
|
29
|
+
"type": "object", "additionalProperties": false,
|
|
30
|
+
"required": ["sequence", "kind", "categoryId", "scope", "anchor", "target", "expect", "sourceSha256"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"sequence": { "type": "integer", "minimum": 1 }, "kind": { "const": "install-file" },
|
|
33
|
+
"categoryId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] },
|
|
34
|
+
"target": { "$ref": "#/$defs/relativePath" }, "expect": { "enum": ["absent", "matching"] }, "sourceSha256": { "$ref": "#/$defs/sha256" }, "expectedSha256": { "$ref": "#/$defs/sha256" }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"write": {
|
|
38
|
+
"type": "object", "additionalProperties": false, "required": ["categoryId", "scope", "anchor", "target", "sourceSha256"],
|
|
39
|
+
"properties": { "categoryId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] }, "target": { "$ref": "#/$defs/relativePath" }, "sourceSha256": { "$ref": "#/$defs/sha256" }, "expectedSha256": { "$ref": "#/$defs/sha256" } }
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"allOf": [
|
|
43
|
+
{
|
|
44
|
+
"if": { "properties": { "status": { "const": "planned" } }, "required": ["status"] },
|
|
45
|
+
"then": { "required": ["pathCategory"], "properties": { "pathCategory": true, "unsupportedReason": false, "probeFacts": { "type": "array", "minItems": 9, "maxItems": 9 }, "actions": { "type": "array", "minItems": 1 }, "writeSet": { "type": "array", "minItems": 1 } } },
|
|
46
|
+
"else": { "required": ["unsupportedReason"], "properties": { "unsupportedReason": true, "pathCategory": false, "probeFacts": { "type": "array", "maxItems": 0 }, "actions": { "type": "array", "maxItems": 0 }, "writeSet": { "type": "array", "maxItems": 0 } } }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"if": { "properties": { "status": { "const": "manual" } }, "required": ["status"] },
|
|
50
|
+
"then": { "properties": { "operation": { "enum": ["install", "update", "uninstall"] } } }
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"if": { "properties": { "operation": { "enum": ["update", "uninstall"] } }, "required": ["operation"] },
|
|
54
|
+
"then": { "properties": { "actions": { "type": "array", "items": { "type": "object", "properties": { "expectedSha256": { "$ref": "#/$defs/sha256" } }, "required": ["expectedSha256"] } }, "writeSet": { "type": "array", "items": { "type": "object", "properties": { "expectedSha256": { "$ref": "#/$defs/sha256" } }, "required": ["expectedSha256"] } } } }
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-operation-receipt.json",
|
|
4
|
+
"title": "Skill Family host operation receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "planDigest", "overall", "writes"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-operation-receipt" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"planDigest": { "$ref": "#/$defs/sha256" },
|
|
13
|
+
"overall": { "enum": ["rejected", "failed", "succeeded", "partially_applied"] },
|
|
14
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
15
|
+
"authorizationRef": { "type": "string", "minLength": 1, "maxLength": 200 },
|
|
16
|
+
"writes": { "type": "array", "items": { "$ref": "#/$defs/write" } },
|
|
17
|
+
"closure": { "$ref": "#/$defs/closure" }
|
|
18
|
+
},
|
|
19
|
+
"$defs": {
|
|
20
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
21
|
+
"relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
|
|
22
|
+
"write": {
|
|
23
|
+
"type": "object", "additionalProperties": false, "required": ["target", "outcome"],
|
|
24
|
+
"properties": { "target": { "$ref": "#/$defs/relativePath" }, "outcome": { "enum": ["planned", "attempted", "succeeded", "failed"] }, "sha256": { "$ref": "#/$defs/sha256" }, "reason": { "type": "string", "minLength": 1 } },
|
|
25
|
+
"allOf": [
|
|
26
|
+
{ "if": { "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] }, "then": { "properties": { "sha256": true }, "required": ["sha256"] }, "else": { "properties": { "sha256": false } } },
|
|
27
|
+
{ "if": { "properties": { "outcome": { "const": "failed" } }, "required": ["outcome"] }, "then": { "properties": { "reason": true }, "required": ["reason"] } }
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"closure": {
|
|
31
|
+
"type": "object", "additionalProperties": false, "required": ["digestAlgorithm", "digest", "resources"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"digestAlgorithm": { "const": "sha256" }, "digest": { "$ref": "#/$defs/sha256" },
|
|
34
|
+
"resources": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["path", "sha256"], "properties": { "path": { "$ref": "#/$defs/relativePath" }, "sha256": { "$ref": "#/$defs/sha256" } } } }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"allOf": [
|
|
39
|
+
{
|
|
40
|
+
"if": { "properties": { "overall": { "const": "rejected" } }, "required": ["overall"] },
|
|
41
|
+
"then": {
|
|
42
|
+
"required": ["reason"],
|
|
43
|
+
"properties": { "reason": true, "authorizationRef": false, "closure": false, "writes": { "type": "array", "maxItems": 0 } }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"if": { "properties": { "overall": { "const": "succeeded" } }, "required": ["overall"] },
|
|
48
|
+
"then": {
|
|
49
|
+
"required": ["authorizationRef", "closure"],
|
|
50
|
+
"properties": { "authorizationRef": true, "closure": true, "writes": { "type": "array", "minItems": 1, "items": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } } }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"if": { "properties": { "overall": { "const": "failed" } }, "required": ["overall"] },
|
|
55
|
+
"then": {
|
|
56
|
+
"required": ["reason"],
|
|
57
|
+
"properties": { "reason": true, "writes": { "type": "array", "contains": { "type": "object", "properties": { "outcome": { "const": "failed" } }, "required": ["outcome"] } } },
|
|
58
|
+
"not": { "properties": { "writes": { "type": "array", "contains": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } } } }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"if": { "properties": { "overall": { "const": "partially_applied" } }, "required": ["overall"] },
|
|
63
|
+
"then": {
|
|
64
|
+
"required": ["reason", "authorizationRef", "closure"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"reason": true,
|
|
67
|
+
"authorizationRef": true,
|
|
68
|
+
"closure": true,
|
|
69
|
+
"writes": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"minItems": 2,
|
|
72
|
+
"allOf": [
|
|
73
|
+
{ "contains": { "type": "object", "properties": { "outcome": { "const": "succeeded" } }, "required": ["outcome"] } },
|
|
74
|
+
{ "contains": { "type": "object", "properties": { "outcome": { "enum": ["failed", "attempted", "planned"] } }, "required": ["outcome"] } }
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-probe-result.json",
|
|
4
|
+
"title": "Skill Family host probe result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "support", "facts"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-probe-result" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"support": { "enum": ["supported", "manual", "unsupported"] },
|
|
13
|
+
"reason": { "type": "string", "minLength": 1 },
|
|
14
|
+
"facts": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": { "$ref": "https://contracts.skill-family.example/v1/host-capability-fact.json" }
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"allOf": [
|
|
20
|
+
{
|
|
21
|
+
"if": { "properties": { "support": { "const": "supported" } }, "required": ["support"] },
|
|
22
|
+
"then": { "properties": { "reason": false, "facts": { "type": "array", "minItems": 9, "maxItems": 9 } } },
|
|
23
|
+
"else": {
|
|
24
|
+
"if": { "properties": { "support": { "const": "manual" } }, "required": ["support"] },
|
|
25
|
+
"then": { "required": ["reason"], "properties": { "reason": true, "facts": { "type": "array", "minItems": 9, "maxItems": 9 } } },
|
|
26
|
+
"else": { "required": ["reason"], "properties": { "reason": true, "facts": { "type": "array", "maxItems": 0 } } }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-registry.json",
|
|
4
|
+
"title": "Skill Family host registry",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hosts"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-registry" },
|
|
11
|
+
"hosts": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"minItems": 1,
|
|
14
|
+
"uniqueItems": true,
|
|
15
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-verification-request.json",
|
|
4
|
+
"title": "Host verification request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "operation", "common", "host", "auth", "execution"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.host-verification-request" },
|
|
11
|
+
"operation": { "const": "host-verification" },
|
|
12
|
+
"common": { "$ref": "#/$defs/common" },
|
|
13
|
+
"host": { "$ref": "#/$defs/host" },
|
|
14
|
+
"auth": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"required": ["strategy", "credentialMutation"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"strategy": { "const": "existing-user-state" },
|
|
20
|
+
"credentialMutation": { "const": "host-managed" }
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"execution": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["timeoutPolicy", "modelOverridePolicy"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"timeoutPolicy": { "$ref": "https://contracts.skill-family.example/v1/timeout-policy.json" },
|
|
29
|
+
"modelOverridePolicy": { "const": "forbidden" }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
35
|
+
"digest": { "$ref": "#/$defs/sha256" },
|
|
36
|
+
"opaque": { "type": "string", "minLength": 1, "maxLength": 512 },
|
|
37
|
+
"common": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"required": ["verificationSetId", "candidateRef", "candidateManifestSha256", "workloadDocumentSha256", "fixtureClosureDigest", "protectedWorkspaceClosureDigest"],
|
|
41
|
+
"properties": {
|
|
42
|
+
"verificationSetId": { "$ref": "#/$defs/opaque" },
|
|
43
|
+
"candidateRef": { "$ref": "#/$defs/opaque" },
|
|
44
|
+
"candidateManifestSha256": { "$ref": "#/$defs/sha256" },
|
|
45
|
+
"workloadDocumentSha256": { "$ref": "#/$defs/sha256" },
|
|
46
|
+
"fixtureClosureDigest": { "$ref": "#/$defs/digest" },
|
|
47
|
+
"protectedWorkspaceClosureDigest": { "$ref": "#/$defs/digest" }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"host": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": ["hostId", "descriptorSha256", "driverId", "driverVersion", "platformManifestSha256", "adapterClosureDigest", "installedSkillClosureDigest", "effectivePromptSha256", "executableSha256"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
56
|
+
"descriptorSha256": { "$ref": "#/$defs/sha256" },
|
|
57
|
+
"driverId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,127}$" },
|
|
58
|
+
"driverVersion": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(?:-[0-9A-Za-z.-]+)?$" },
|
|
59
|
+
"platformManifestSha256": { "$ref": "#/$defs/sha256" },
|
|
60
|
+
"adapterClosureDigest": { "$ref": "#/$defs/digest" },
|
|
61
|
+
"installedSkillClosureDigest": { "$ref": "#/$defs/digest" },
|
|
62
|
+
"effectivePromptSha256": { "$ref": "#/$defs/sha256" },
|
|
63
|
+
"executableSha256": { "$ref": "#/$defs/sha256" }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/host-verification-result.json",
|
|
4
|
+
"title": "Host verification result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "operation", "status", "requestDigest", "common", "host", "runtimeIdentities", "execution", "snapshots", "streams", "reason", "requiredActions"],
|
|
8
|
+
"allOf": [
|
|
9
|
+
{
|
|
10
|
+
"if": { "properties": { "status": { "const": "observed" } } },
|
|
11
|
+
"then": {
|
|
12
|
+
"properties": {
|
|
13
|
+
"runtimeIdentities": { "type": "object" },
|
|
14
|
+
"execution": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"spawned": { "const": true },
|
|
18
|
+
"exitStatus": { "const": 0 },
|
|
19
|
+
"processStatus": { "const": "EXITED" },
|
|
20
|
+
"terminationReason": { "const": null },
|
|
21
|
+
"watchdogReason": { "const": null },
|
|
22
|
+
"runnerModelOverrideAbsent": { "const": true }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"snapshots": { "type": "object" },
|
|
26
|
+
"streams": { "type": "object" },
|
|
27
|
+
"reason": { "const": null },
|
|
28
|
+
"requiredActions": { "type": "array", "maxItems": 0 }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"if": { "properties": { "status": { "const": "indeterminate" } } },
|
|
34
|
+
"then": {
|
|
35
|
+
"properties": {
|
|
36
|
+
"reason": { "const": "boundary-state-indeterminate" },
|
|
37
|
+
"requiredActions": { "type": "array", "minItems": 1 }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"if": { "properties": { "status": { "const": "rejected" } } },
|
|
43
|
+
"then": {
|
|
44
|
+
"properties": {
|
|
45
|
+
"runtimeIdentities": { "const": null },
|
|
46
|
+
"execution": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"spawned": { "const": false },
|
|
50
|
+
"exitStatus": { "const": null },
|
|
51
|
+
"processStatus": { "const": null },
|
|
52
|
+
"terminationReason": { "const": null },
|
|
53
|
+
"watchdogReason": { "const": null }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"snapshots": { "const": null },
|
|
57
|
+
"streams": { "const": null },
|
|
58
|
+
"reason": { "enum": ["preflight-rejected", "executable-observation-mismatch"] },
|
|
59
|
+
"requiredActions": { "type": "array", "maxItems": 0 }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"if": { "properties": { "status": { "const": "failed" } } },
|
|
65
|
+
"then": {
|
|
66
|
+
"properties": {
|
|
67
|
+
"reason": { "enum": ["executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed"] },
|
|
68
|
+
"requiredActions": { "type": "array", "maxItems": 0 }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"if": { "properties": { "reason": { "const": "snapshot-mismatch" } } },
|
|
74
|
+
"then": {
|
|
75
|
+
"properties": {
|
|
76
|
+
"execution": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": { "spawned": { "const": true } }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"schemaVersion": { "const": 1 },
|
|
86
|
+
"kind": { "const": "skill-family.host-verification-result" },
|
|
87
|
+
"operation": { "const": "host-verification" },
|
|
88
|
+
"status": { "enum": ["observed", "rejected", "failed", "indeterminate"] },
|
|
89
|
+
"requestDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" },
|
|
90
|
+
"common": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/common" },
|
|
91
|
+
"host": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/host" },
|
|
92
|
+
"runtimeIdentities": {
|
|
93
|
+
"type": ["object", "null"],
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": ["cliVersion"],
|
|
96
|
+
"properties": { "cliVersion": { "type": "string", "minLength": 1, "maxLength": 256 } }
|
|
97
|
+
},
|
|
98
|
+
"execution": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"required": ["spawned", "exitStatus", "processStatus", "terminationReason", "watchdogReason", "runnerModelOverrideAbsent"],
|
|
102
|
+
"properties": {
|
|
103
|
+
"spawned": { "type": "boolean" },
|
|
104
|
+
"exitStatus": { "type": ["integer", "null"], "minimum": 0 },
|
|
105
|
+
"processStatus": { "type": ["string", "null"], "enum": ["PLANNED", "STARTING", "RUNNING", "EXITED", "FAILED_TO_START", "TIMED_OUT", "TERMINATED", null] },
|
|
106
|
+
"terminationReason": { "$ref": "https://contracts.skill-family.example/v1/watchdog-termination-envelope.json#/properties/terminationReason", "not": { "const": "output_limit_exceeded" } },
|
|
107
|
+
"watchdogReason": { "$ref": "https://contracts.skill-family.example/v1/watchdog-termination-envelope.json#/properties/watchdogReason", "not": { "const": "output_limit_exceeded" } },
|
|
108
|
+
"runnerModelOverrideAbsent": { "type": "boolean" }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"snapshots": {
|
|
112
|
+
"type": ["object", "null"],
|
|
113
|
+
"additionalProperties": false,
|
|
114
|
+
"required": ["installedSkill", "fixture", "protectedWorkspace"],
|
|
115
|
+
"properties": {
|
|
116
|
+
"installedSkill": { "$ref": "#/$defs/snapshot" },
|
|
117
|
+
"fixture": { "$ref": "#/$defs/snapshot" },
|
|
118
|
+
"protectedWorkspace": { "$ref": "#/$defs/snapshot" }
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"streams": {
|
|
122
|
+
"type": ["object", "null"],
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"required": ["stdout", "stderr"],
|
|
125
|
+
"properties": { "stdout": { "$ref": "#/$defs/stream" }, "stderr": { "$ref": "#/$defs/stream" } }
|
|
126
|
+
},
|
|
127
|
+
"reason": { "enum": [null, "preflight-rejected", "executable-observation-mismatch", "execution-failed", "snapshot-mismatch", "private-evidence-publication-failed", "boundary-state-indeterminate"] },
|
|
128
|
+
"requiredActions": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"uniqueItems": true,
|
|
131
|
+
"items": { "enum": ["manual-temporary-root-inspection-required"] }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"$defs": {
|
|
135
|
+
"snapshot": {
|
|
136
|
+
"type": "object", "additionalProperties": false,
|
|
137
|
+
"required": ["preClosureDigest", "postClosureDigest"],
|
|
138
|
+
"properties": {
|
|
139
|
+
"preClosureDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" },
|
|
140
|
+
"postClosureDigest": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" }
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"stream": {
|
|
144
|
+
"type": "object", "additionalProperties": false,
|
|
145
|
+
"required": ["sha256", "bytes", "sensitivity"],
|
|
146
|
+
"properties": { "sha256": { "$ref": "https://contracts.skill-family.example/v1/host-verification-request.json#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 }, "sensitivity": { "const": "private" } }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|