release-skill 0.9.16 → 0.9.17
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/.kimi-plugin/plugin.json +1 -1
- package/.qoder-plugin/plugin.json +10 -0
- package/CHANGELOG.md +30 -0
- package/INSTALL.md +57 -9
- package/INSTALL.zh-CN.md +44 -7
- package/README.md +75 -31
- package/README.zh-CN.md +60 -29
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/claude/schemas/release-plan.schema.json +1 -1
- package/adapters/claude/schemas/release-project.schema.json +1 -1
- package/adapters/claude/skills/release-finish/SKILL.md +14 -13
- package/adapters/claude/skills/release-help/SKILL.md +3 -3
- package/adapters/claude/skills/release-verify/SKILL.md +2 -2
- package/adapters/codex/.codex-plugin/plugin.json +2 -2
- package/adapters/codex/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/codex/schemas/release-plan.schema.json +1 -1
- package/adapters/codex/schemas/release-project.schema.json +1 -1
- package/adapters/codex/skills/release-finish/SKILL.md +14 -13
- package/adapters/codex/skills/release-help/SKILL.md +3 -3
- package/adapters/codex/skills/release-verify/SKILL.md +2 -2
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/kimi/schemas/release-plan.schema.json +1 -1
- package/adapters/kimi/schemas/release-project.schema.json +1 -1
- package/adapters/kimi/skills/release-finish/SKILL.md +14 -13
- package/adapters/kimi/skills/release-help/SKILL.md +3 -3
- package/adapters/kimi/skills/release-verify/SKILL.md +2 -2
- package/adapters/qoder/.qoder-plugin/plugin.json +10 -0
- package/adapters/qoder/bin/consumer-contract-vectors.json +110 -0
- package/adapters/qoder/bin/error-codes.json +161 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-contracts/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-engineering-kit/THIRD_PARTY_NOTICES +142 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/LICENSE +202 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/NOTICE +10 -0
- package/adapters/qoder/bin/foundation-legal/skill-family-harness-node/native-NOTICE +2 -0
- package/adapters/qoder/bin/foundation-resource-binding.json +1 -0
- package/adapters/qoder/bin/kernel-protocol.json +60 -0
- package/adapters/qoder/bin/license-texts/Apache-2.0.txt +201 -0
- package/adapters/qoder/bin/license-texts/MIT.txt +21 -0
- package/adapters/qoder/bin/prebuild-manifest.json +79 -0
- 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 +347 -0
- package/adapters/qoder/bin/release-skill-local-finish.mjs +4 -0
- package/adapters/qoder/bin/release-skill.bundle.mjs +149446 -0
- package/adapters/qoder/bin/release-skill.mjs +54 -0
- package/adapters/qoder/bin/rules.json +104 -0
- package/adapters/qoder/bin/schemas/consumer-contract-vector.schema.json +149 -0
- package/adapters/qoder/data/hosts/claude/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/codebuddy/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/codex/host-descriptor.json +45 -0
- package/adapters/qoder/data/hosts/deepseek-harness/host-descriptor.json +23 -0
- package/adapters/qoder/data/hosts/kimi-code/host-descriptor.json +36 -0
- package/adapters/qoder/data/hosts/qoder/host-descriptor.json +26 -0
- package/adapters/qoder/data/hosts/registry.json +13 -0
- package/adapters/qoder/data/hosts/workbuddy/host-descriptor.json +34 -0
- package/adapters/qoder/data/licensing/registry.json +211 -0
- package/adapters/qoder/data/licensing/schema.json +207 -0
- package/adapters/qoder/native/safe-write/binding.gyp +41 -0
- package/adapters/qoder/native/safe-write/prebuilds/darwin-arm64/safe_write.node +0 -0
- package/adapters/qoder/native/safe-write/prebuilds.json +24 -0
- package/adapters/qoder/native/safe-write/src/safe_write.cc +2032 -0
- package/adapters/qoder/schemas/.render-manifest.json +41 -0
- package/adapters/qoder/schemas/approval-record.schema.json +115 -0
- package/adapters/qoder/schemas/artifact-lock.schema.json +111 -0
- package/adapters/qoder/schemas/artifact-plan.schema.json +52 -0
- package/adapters/qoder/schemas/artifact-policy.schema.json +76 -0
- package/adapters/qoder/schemas/evidence-event-v2.schema.json +164 -0
- package/adapters/qoder/schemas/evidence-event.schema.json +89 -0
- package/adapters/qoder/schemas/postpublish-approval-record.schema.json +47 -0
- package/adapters/qoder/schemas/release-plan.schema.json +1996 -0
- package/adapters/qoder/schemas/release-project.schema.json +1613 -0
- package/adapters/qoder/schemas/release-run.schema.json +777 -0
- package/adapters/qoder/skills/release-assess/SKILL.md +60 -0
- package/adapters/qoder/skills/release-config/SKILL.md +150 -0
- package/adapters/qoder/skills/release-docs/SKILL.md +119 -0
- package/adapters/qoder/skills/release-finish/SKILL.md +141 -0
- package/adapters/qoder/skills/release-help/SKILL.md +153 -0
- package/adapters/qoder/skills/release-marketplace/SKILL.md +156 -0
- package/adapters/qoder/skills/release-prepare/SKILL.md +135 -0
- package/adapters/qoder/skills/release-publish/SKILL.md +91 -0
- package/adapters/qoder/skills/release-reconcile/SKILL.md +80 -0
- package/adapters/qoder/skills/release-setup/SKILL.md +131 -0
- package/adapters/qoder/skills/release-verify/SKILL.md +109 -0
- package/adapters/qoder/src/schemas/adapter-build-manifest.schema.json +41 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-request.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-peer-verification-result.schema.json +54 -0
- package/adapters/qoder/src/schemas/adapter-source.schema.json +47 -0
- package/adapters/qoder/src/schemas/audit-baseline-pin.schema.json +163 -0
- package/adapters/qoder/src/schemas/declared-read-surface-result.schema.json +61 -0
- package/adapters/qoder/src/schemas/engineering-baseline.schema.json +77 -0
- package/adapters/qoder/src/schemas/executable-identity-observation.schema.json +162 -0
- package/adapters/qoder/src/schemas/filesystem-root-binding.schema.json +14 -0
- package/adapters/qoder/src/schemas/filesystem-tree-observation.schema.json +71 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-manifest.schema.json +108 -0
- package/adapters/qoder/src/schemas/fixed-set-publication-receipt.schema.json +148 -0
- package/adapters/qoder/src/schemas/host-capability-fact.schema.json +31 -0
- package/adapters/qoder/src/schemas/host-descriptor.schema.json +137 -0
- package/adapters/qoder/src/schemas/host-operation-plan.schema.json +57 -0
- package/adapters/qoder/src/schemas/host-operation-receipt.schema.json +81 -0
- package/adapters/qoder/src/schemas/host-probe-result.schema.json +30 -0
- package/adapters/qoder/src/schemas/host-registry.schema.json +18 -0
- package/adapters/qoder/src/schemas/host-verification-request.schema.json +67 -0
- package/adapters/qoder/src/schemas/host-verification-result.schema.json +149 -0
- package/adapters/qoder/src/schemas/managed-file-lock.schema.json +77 -0
- package/adapters/qoder/src/schemas/migration-manifest.schema.json +412 -0
- package/adapters/qoder/src/schemas/observation-scope.schema.json +91 -0
- package/adapters/qoder/src/schemas/operation-request.schema.json +58 -0
- package/adapters/qoder/src/schemas/operation-result.schema.json +130 -0
- package/adapters/qoder/src/schemas/platform-difference-registry.schema.json +110 -0
- package/adapters/qoder/src/schemas/plugin-verification-request.schema.json +499 -0
- package/adapters/qoder/src/schemas/plugin-verification-result.schema.json +1217 -0
- package/adapters/qoder/src/schemas/profile-adoption-declaration.schema.json +111 -0
- package/adapters/qoder/src/schemas/profile-descriptor.schema.json +99 -0
- package/adapters/qoder/src/schemas/project-manifest.schema.json +67 -0
- package/adapters/qoder/src/schemas/project-profile.schema.json +25 -0
- package/adapters/qoder/src/schemas/public-boundary-declaration.schema.json +73 -0
- package/adapters/qoder/src/schemas/report-binding.schema.json +42 -0
- package/adapters/qoder/src/schemas/report-model.schema.json +308 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-request.schema.json +100 -0
- package/adapters/qoder/src/schemas/skill-family-directory-verification-result.schema.json +193 -0
- package/adapters/qoder/src/schemas/source-authority-receipt.schema.json +31 -0
- package/adapters/qoder/src/schemas/state-event-envelope.schema.json +38 -0
- package/adapters/qoder/src/schemas/state-snapshot-metadata.schema.json +25 -0
- package/adapters/qoder/src/schemas/structured-scan-policy.schema.json +97 -0
- package/adapters/qoder/src/schemas/surface-scan-policy.schema.json +42 -0
- package/adapters/qoder/src/schemas/timeout-policy.schema.json +24 -0
- package/adapters/qoder/src/schemas/token-estimate-record.schema.json +75 -0
- package/adapters/qoder/src/schemas/token-estimate-result.schema.json +43 -0
- package/adapters/qoder/src/schemas/watchdog-termination-envelope.schema.json +156 -0
- package/adapters/workbuddy/.codebuddy-plugin/plugin.json +1 -1
- package/adapters/workbuddy/bin/release-skill.bundle.mjs +1443 -672
- package/adapters/workbuddy/schemas/release-plan.schema.json +1 -1
- package/adapters/workbuddy/schemas/release-project.schema.json +1 -1
- package/adapters/workbuddy/skills/release-finish/SKILL.md +14 -13
- package/adapters/workbuddy/skills/release-help/SKILL.md +3 -3
- package/adapters/workbuddy/skills/release-verify/SKILL.md +2 -2
- package/bin/release-skill-cli.mjs +124 -6
- package/bin/release-skill.bundle.mjs +1443 -672
- package/package.json +4 -2
- package/platform-manifest.json +70 -4
- package/references/02-project-config.md +9 -2
- package/schemas/release-plan.schema.json +1 -1
- package/schemas/release-project.schema.json +1 -1
- package/skills/release-finish/SKILL.md +14 -13
- package/skills/release-help/SKILL.md +3 -3
- package/skills/release-verify/SKILL.md +2 -2
- package/skills-src/release-finish/SKILL.md +14 -13
- package/skills-src/release-help/SKILL.md +3 -3
- package/skills-src/release-verify/SKILL.md +2 -2
- package/src/commands/post-release-local.mjs +360 -51
- package/src/commands/verify-records.mjs +467 -0
- package/src/core/postpublish.mjs +1 -1
- package/src/core/run.mjs +1 -1
- package/src/producers/build-adapters.mjs +36 -13
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/executable-identity-observation.json",
|
|
4
|
+
"title": "Executable identity observation",
|
|
5
|
+
"description": "A single, private observation of an executable lookup and its explicit launch image. Absolute roots and file bytes are intentionally represented only by the bound root and digest facts.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "kind", "lookup", "canonicalEntry", "interpreter", "launch", "observationDigest"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": 1 },
|
|
11
|
+
"kind": { "const": "skill-family.executable-identity-observation" },
|
|
12
|
+
"lookup": { "$ref": "#/$defs/lookup" },
|
|
13
|
+
"canonicalEntry": { "$ref": "#/$defs/canonicalEntry" },
|
|
14
|
+
"interpreter": {
|
|
15
|
+
"oneOf": [
|
|
16
|
+
{ "type": "null" },
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": ["request", "canonicalEntry", "shebangArgs"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"request": {
|
|
23
|
+
"oneOf": [
|
|
24
|
+
{ "$ref": "#/$defs/bareCommand" },
|
|
25
|
+
{ "$ref": "#/$defs/absolutePath" }
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"canonicalEntry": {
|
|
29
|
+
"allOf": [
|
|
30
|
+
{ "$ref": "#/$defs/canonicalEntry" },
|
|
31
|
+
{ "type": "object", "properties": { "entryKind": { "const": "native-binary" } } }
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"shebangArgs": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"maxItems": 8,
|
|
37
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^\\u0000\\r\\n]+$" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"launch": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"required": ["file", "argvPrefix"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"file": { "$ref": "#/$defs/absolutePath" },
|
|
49
|
+
"argvPrefix": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"maxItems": 8,
|
|
52
|
+
"items": { "$ref": "#/$defs/absolutePath" }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"observationDigest": { "$ref": "#/$defs/sha256" }
|
|
57
|
+
},
|
|
58
|
+
"allOf": [
|
|
59
|
+
{
|
|
60
|
+
"if": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": { "canonicalEntry": { "type": "object", "properties": { "entryKind": { "const": "interpreter-script" } }, "required": ["entryKind"] } },
|
|
63
|
+
"required": ["canonicalEntry"]
|
|
64
|
+
},
|
|
65
|
+
"then": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"interpreter": { "type": "object" },
|
|
69
|
+
"launch": { "type": "object", "properties": { "argvPrefix": { "type": "array", "minItems": 1 } } }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"else": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"interpreter": { "type": "null" },
|
|
76
|
+
"launch": { "type": "object", "properties": { "argvPrefix": { "type": "array", "maxItems": 0 } } }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"$defs": {
|
|
82
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
83
|
+
"absolutePath": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1,
|
|
86
|
+
"maxLength": 4096,
|
|
87
|
+
"pattern": "^/(?:[^/\\\\\\u0000]+(?:/[^/\\\\\\u0000]+)*)?$",
|
|
88
|
+
"not": { "pattern": "(?:^|/)\\.{1,2}(?:/|$)" }
|
|
89
|
+
},
|
|
90
|
+
"relativePath": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"minLength": 1,
|
|
93
|
+
"maxLength": 4096,
|
|
94
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*(?:^|/)\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[^/\\\\\\u0000]+(?:/[^/\\\\\\u0000]+)*$"
|
|
95
|
+
},
|
|
96
|
+
"bareCommand": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 256,
|
|
100
|
+
"pattern": "^[^/\\\\\\u0000]+$"
|
|
101
|
+
},
|
|
102
|
+
"rootBinding": { "$ref": "https://contracts.skill-family.example/v1/filesystem-root-binding.json" },
|
|
103
|
+
"lookup": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"additionalProperties": false,
|
|
106
|
+
"required": ["requested", "mode", "selectedPath"],
|
|
107
|
+
"properties": {
|
|
108
|
+
"requested": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
109
|
+
"mode": { "enum": ["absolute-path", "explicit-path-search"] },
|
|
110
|
+
"path": { "$ref": "#/$defs/absolutePath" },
|
|
111
|
+
"pathEntries": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"minItems": 1,
|
|
114
|
+
"maxItems": 64,
|
|
115
|
+
"uniqueItems": true,
|
|
116
|
+
"items": { "$ref": "#/$defs/absolutePath" }
|
|
117
|
+
},
|
|
118
|
+
"selectedPath": { "$ref": "#/$defs/absolutePath" }
|
|
119
|
+
},
|
|
120
|
+
"allOf": [
|
|
121
|
+
{
|
|
122
|
+
"if": { "type": "object", "properties": { "mode": { "const": "absolute-path" } }, "required": ["mode"] },
|
|
123
|
+
"then": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"required": ["path"],
|
|
126
|
+
"properties": { "path": {}, "pathEntries": false }
|
|
127
|
+
},
|
|
128
|
+
"else": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"required": ["pathEntries"],
|
|
131
|
+
"properties": { "pathEntries": {}, "path": false }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"symlink": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"required": ["path", "targetBase64", "bytes"],
|
|
140
|
+
"properties": {
|
|
141
|
+
"path": { "$ref": "#/$defs/absolutePath" },
|
|
142
|
+
"targetBase64": { "type": "string", "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" },
|
|
143
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 1048576 }
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"canonicalEntry": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": ["path", "symlinkChain", "binding", "relPath", "sha256", "bytes", "statMode", "entryKind"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"path": { "$ref": "#/$defs/absolutePath" },
|
|
152
|
+
"symlinkChain": { "type": "array", "maxItems": 40, "items": { "$ref": "#/$defs/symlink" } },
|
|
153
|
+
"binding": { "$ref": "#/$defs/rootBinding" },
|
|
154
|
+
"relPath": { "$ref": "#/$defs/relativePath" },
|
|
155
|
+
"sha256": { "$ref": "#/$defs/sha256" },
|
|
156
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 1073741824 },
|
|
157
|
+
"statMode": { "type": "integer", "minimum": 0, "maximum": 4294967295 },
|
|
158
|
+
"entryKind": { "enum": ["native-binary", "interpreter-script", "opaque-executable"] }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/filesystem-root-binding.json",
|
|
4
|
+
"title": "Filesystem root binding",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["kind", "digestAlgorithm", "basis", "digest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "trusted-filesystem-root-binding" },
|
|
10
|
+
"digestAlgorithm": { "const": "sha256" },
|
|
11
|
+
"basis": { "const": "canonical-realpath-device-inode-type-mode-v1" },
|
|
12
|
+
"digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/filesystem-tree-observation.json",
|
|
4
|
+
"title": "Filesystem tree observation",
|
|
5
|
+
"description": "A complete same-pass fact observation of a bound filesystem tree (FND-DES-014 section 6.1). Private data only: it is returned by the public read-only harness entry, but never enters a public plugin verification result. The record keeps the original root binding so consumers re-verify the same bound root and never re-bind a replacement. Default and explicit reject preserve the 0.14 UTF-16 order; record mode uses Unicode code point order. Directories carry identity/type/permission facts only; file bytes come from the same native descriptor that supplies statMode.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schemaVersion", "kind", "rootBinding", "members", "membersDigest"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schemaVersion": { "const": 1 },
|
|
11
|
+
"kind": { "const": "skill-family.filesystem-tree-observation" },
|
|
12
|
+
"rootBinding": { "$ref": "https://contracts.skill-family.example/v1/filesystem-root-binding.json" },
|
|
13
|
+
"members": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"uniqueItems": true,
|
|
16
|
+
"items": { "$ref": "#/$defs/member" }
|
|
17
|
+
},
|
|
18
|
+
"membersDigest": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"$defs": {
|
|
24
|
+
"statMode": { "type": "integer", "minimum": 0, "maximum": 65535 },
|
|
25
|
+
"member": {
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{ "$ref": "#/$defs/fileMember" },
|
|
28
|
+
{ "$ref": "#/$defs/directoryMember" },
|
|
29
|
+
{ "$ref": "#/$defs/symlinkMember" }
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"fileMember": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": ["path", "type", "sha256", "bytes", "statMode", "contentBase64"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"path": { "type": "string", "minLength": 1 },
|
|
38
|
+
"type": { "const": "file" },
|
|
39
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
40
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
41
|
+
"statMode": { "$ref": "#/$defs/statMode" },
|
|
42
|
+
"contentBase64": { "type": "string" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"directoryMember": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["path", "type", "statMode"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"path": { "type": "string", "minLength": 1 },
|
|
51
|
+
"type": { "const": "directory" },
|
|
52
|
+
"statMode": { "$ref": "#/$defs/statMode" }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"symlinkMember": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["path", "type", "targetBase64", "bytes", "statMode"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"path": { "type": "string", "minLength": 1 },
|
|
61
|
+
"type": { "const": "symlink" },
|
|
62
|
+
"targetBase64": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
|
|
65
|
+
},
|
|
66
|
+
"bytes": { "type": "integer", "minimum": 0, "maximum": 1048576 },
|
|
67
|
+
"statMode": { "$ref": "#/$defs/statMode" }
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/fixed-set-publication-manifest.json",
|
|
4
|
+
"title": "Fixed-set publication manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "source", "target", "members", "digest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.fixed-set-publication-manifest" },
|
|
11
|
+
"source": { "$ref": "#/$defs/sourceClosure" },
|
|
12
|
+
"target": { "$ref": "#/$defs/targetClosure" },
|
|
13
|
+
"members": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"uniqueItems": true,
|
|
17
|
+
"items": { "$ref": "#/$defs/member" }
|
|
18
|
+
},
|
|
19
|
+
"digest": { "$ref": "#/$defs/sha256" }
|
|
20
|
+
},
|
|
21
|
+
"$defs": {
|
|
22
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
23
|
+
"decimalIdentity": { "type": "string", "pattern": "^(?:0|[1-9][0-9]*)$", "maxLength": 40 },
|
|
24
|
+
"relativePath": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1,
|
|
27
|
+
"maxLength": 240,
|
|
28
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
|
|
29
|
+
},
|
|
30
|
+
"rootBinding": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["kind", "digestAlgorithm", "basis", "digest"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"kind": { "const": "trusted-filesystem-root-binding" },
|
|
36
|
+
"digestAlgorithm": { "const": "sha256" },
|
|
37
|
+
"basis": { "const": "canonical-realpath-device-inode-type-mode-v1" },
|
|
38
|
+
"digest": { "$ref": "#/$defs/sha256" }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"directoryIdentity": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["type", "mode", "device", "inode"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"type": { "const": "directory" },
|
|
47
|
+
"mode": { "type": "integer", "minimum": 0, "maximum": 511 },
|
|
48
|
+
"device": { "$ref": "#/$defs/decimalIdentity" },
|
|
49
|
+
"inode": { "$ref": "#/$defs/decimalIdentity" }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"directoryMember": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": ["path", "type", "mode", "device", "inode"],
|
|
56
|
+
"properties": {
|
|
57
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
58
|
+
"type": { "const": "directory" },
|
|
59
|
+
"mode": { "type": "integer", "minimum": 0, "maximum": 511 },
|
|
60
|
+
"device": { "$ref": "#/$defs/decimalIdentity" },
|
|
61
|
+
"inode": { "$ref": "#/$defs/decimalIdentity" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"sourceClosure": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["rootBinding", "root", "directories", "closureDigest"],
|
|
68
|
+
"properties": {
|
|
69
|
+
"rootBinding": { "$ref": "#/$defs/rootBinding" },
|
|
70
|
+
"root": { "$ref": "#/$defs/directoryIdentity" },
|
|
71
|
+
"directories": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": { "$ref": "#/$defs/directoryMember" }
|
|
75
|
+
},
|
|
76
|
+
"closureDigest": { "$ref": "#/$defs/sha256" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"targetClosure": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": ["rootBinding", "root", "directories", "closureDigest", "expectation"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"rootBinding": { "$ref": "#/$defs/rootBinding" },
|
|
85
|
+
"root": { "$ref": "#/$defs/directoryIdentity" },
|
|
86
|
+
"directories": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"uniqueItems": true,
|
|
89
|
+
"items": { "$ref": "#/$defs/directoryMember" }
|
|
90
|
+
},
|
|
91
|
+
"closureDigest": { "$ref": "#/$defs/sha256" },
|
|
92
|
+
"expectation": { "const": "absent" }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"member": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["path", "type", "mode", "bytes", "sha256"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
101
|
+
"type": { "const": "regular" },
|
|
102
|
+
"mode": { "type": "integer", "minimum": 0, "maximum": 511 },
|
|
103
|
+
"bytes": { "type": "integer", "minimum": 0 },
|
|
104
|
+
"sha256": { "$ref": "#/$defs/sha256" }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/fixed-set-publication-receipt.json",
|
|
4
|
+
"title": "Fixed-set publication receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schemaVersion", "kind", "manifestDigest", "targetRootBinding", "platform", "primitive",
|
|
9
|
+
"status", "targetState", "commitState", "verification", "durability"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": { "const": 1 },
|
|
13
|
+
"kind": { "const": "skill-family.fixed-set-publication-receipt" },
|
|
14
|
+
"manifestDigest": { "$ref": "#/$defs/sha256" },
|
|
15
|
+
"targetRootBinding": { "$ref": "#/$defs/rootBinding" },
|
|
16
|
+
"platform": { "enum": ["darwin", "linux", "other"] },
|
|
17
|
+
"primitive": { "enum": ["darwin-renameatx-noreplace-v1", "linux-renameat2-noreplace-v1", "none"] },
|
|
18
|
+
"status": { "enum": ["succeeded", "refused", "failed", "indeterminate"] },
|
|
19
|
+
"targetState": { "enum": ["absent", "existing", "published", "indeterminate"] },
|
|
20
|
+
"commitState": { "enum": ["not-committed", "rename-committed"] },
|
|
21
|
+
"verification": { "enum": ["not-run", "verified", "failed"] },
|
|
22
|
+
"durability": { "enum": ["not-attempted", "synced", "indeterminate"] },
|
|
23
|
+
"publishedClosureDigest": { "$ref": "#/$defs/sha256" },
|
|
24
|
+
"memberCount": { "type": "integer", "minimum": 1 },
|
|
25
|
+
"error": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"required": ["code", "message"],
|
|
29
|
+
"properties": {
|
|
30
|
+
"code": {
|
|
31
|
+
"enum": [
|
|
32
|
+
"TARGET_EXISTS", "UNSUPPORTED_PLATFORM", "MANIFEST_INVALID", "SOURCE_DRIFT",
|
|
33
|
+
"PATH_UNSAFE", "PUBLICATION_FAILED", "POST_VERIFY_FAILED", "DIRECTORY_FSYNC_FAILED"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"message": { "type": "string", "minLength": 1, "maxLength": 300 }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"$defs": {
|
|
41
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
42
|
+
"rootBinding": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"required": ["kind", "digestAlgorithm", "basis", "digest"],
|
|
46
|
+
"properties": {
|
|
47
|
+
"kind": { "const": "trusted-filesystem-root-binding" },
|
|
48
|
+
"digestAlgorithm": { "const": "sha256" },
|
|
49
|
+
"basis": { "const": "canonical-realpath-device-inode-type-mode-v1" },
|
|
50
|
+
"digest": { "$ref": "#/$defs/sha256" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"allOf": [
|
|
55
|
+
{
|
|
56
|
+
"if": { "properties": { "status": { "const": "succeeded" } }, "required": ["status"] },
|
|
57
|
+
"then": {
|
|
58
|
+
"required": ["publishedClosureDigest", "memberCount"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"platform": { "enum": ["darwin", "linux"] },
|
|
61
|
+
"primitive": { "enum": ["darwin-renameatx-noreplace-v1", "linux-renameat2-noreplace-v1"] },
|
|
62
|
+
"targetState": { "const": "published" },
|
|
63
|
+
"commitState": { "const": "rename-committed" },
|
|
64
|
+
"verification": { "const": "verified" },
|
|
65
|
+
"durability": { "const": "synced" },
|
|
66
|
+
"publishedClosureDigest": true,
|
|
67
|
+
"memberCount": true,
|
|
68
|
+
"error": false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"if": { "properties": { "status": { "const": "refused" } }, "required": ["status"] },
|
|
74
|
+
"then": {
|
|
75
|
+
"required": ["error"],
|
|
76
|
+
"properties": {
|
|
77
|
+
"targetState": { "enum": ["absent", "existing"] },
|
|
78
|
+
"commitState": { "const": "not-committed" },
|
|
79
|
+
"verification": { "const": "not-run" },
|
|
80
|
+
"durability": { "const": "not-attempted" },
|
|
81
|
+
"publishedClosureDigest": false,
|
|
82
|
+
"memberCount": false,
|
|
83
|
+
"error": true
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"if": { "properties": { "status": { "const": "failed" } }, "required": ["status"] },
|
|
89
|
+
"then": {
|
|
90
|
+
"required": ["error"],
|
|
91
|
+
"properties": {
|
|
92
|
+
"targetState": { "const": "absent" },
|
|
93
|
+
"commitState": { "const": "not-committed" },
|
|
94
|
+
"verification": { "enum": ["not-run", "failed"] },
|
|
95
|
+
"durability": { "const": "not-attempted" },
|
|
96
|
+
"publishedClosureDigest": false,
|
|
97
|
+
"memberCount": false,
|
|
98
|
+
"error": true
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"if": { "properties": { "status": { "const": "indeterminate" } }, "required": ["status"] },
|
|
104
|
+
"then": {
|
|
105
|
+
"required": ["error"],
|
|
106
|
+
"properties": {
|
|
107
|
+
"platform": { "enum": ["darwin", "linux"] },
|
|
108
|
+
"primitive": { "enum": ["darwin-renameatx-noreplace-v1", "linux-renameat2-noreplace-v1"] },
|
|
109
|
+
"targetState": { "enum": ["published", "indeterminate"] },
|
|
110
|
+
"commitState": { "const": "rename-committed" },
|
|
111
|
+
"verification": { "enum": ["verified", "failed"] },
|
|
112
|
+
"durability": { "const": "indeterminate" },
|
|
113
|
+
"error": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": { "code": { "enum": ["POST_VERIFY_FAILED", "DIRECTORY_FSYNC_FAILED"] } }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"oneOf": [
|
|
119
|
+
{
|
|
120
|
+
"required": ["publishedClosureDigest", "memberCount"],
|
|
121
|
+
"properties": {
|
|
122
|
+
"targetState": { "const": "published" },
|
|
123
|
+
"verification": { "const": "verified" },
|
|
124
|
+
"error": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": { "code": { "const": "DIRECTORY_FSYNC_FAILED" } }
|
|
127
|
+
},
|
|
128
|
+
"publishedClosureDigest": true,
|
|
129
|
+
"memberCount": true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"properties": {
|
|
134
|
+
"targetState": { "const": "indeterminate" },
|
|
135
|
+
"verification": { "const": "failed" },
|
|
136
|
+
"error": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": { "code": { "const": "POST_VERIFY_FAILED" } }
|
|
139
|
+
},
|
|
140
|
+
"publishedClosureDigest": false,
|
|
141
|
+
"memberCount": false
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
@@ -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
|
+
}
|