release-skill 0.9.15 → 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 +61 -0
- package/INSTALL.md +57 -9
- package/INSTALL.zh-CN.md +44 -7
- package/README.md +88 -29
- package/README.zh-CN.md +70 -27
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/bin/release-skill.bundle.mjs +1471 -672
- package/adapters/claude/schemas/release-plan.schema.json +1 -1
- package/adapters/claude/schemas/release-project.schema.json +19 -1
- package/adapters/claude/skills/release-finish/SKILL.md +65 -6
- 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 +1471 -672
- package/adapters/codex/schemas/release-plan.schema.json +1 -1
- package/adapters/codex/schemas/release-project.schema.json +19 -1
- package/adapters/codex/skills/release-finish/SKILL.md +65 -6
- 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 +1471 -672
- package/adapters/kimi/schemas/release-plan.schema.json +1 -1
- package/adapters/kimi/schemas/release-project.schema.json +19 -1
- package/adapters/kimi/skills/release-finish/SKILL.md +65 -6
- 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 +1471 -672
- package/adapters/workbuddy/schemas/release-plan.schema.json +1 -1
- package/adapters/workbuddy/schemas/release-project.schema.json +19 -1
- package/adapters/workbuddy/skills/release-finish/SKILL.md +65 -6
- 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 +152 -6
- package/bin/release-skill.bundle.mjs +1471 -672
- package/package.json +4 -2
- package/platform-manifest.json +70 -4
- package/references/02-project-config.md +25 -2
- package/schemas/release-plan.schema.json +1 -1
- package/schemas/release-project.schema.json +19 -1
- package/skills/release-finish/SKILL.md +65 -6
- package/skills/release-help/SKILL.md +3 -3
- package/skills/release-verify/SKILL.md +2 -2
- package/skills-src/release-finish/SKILL.md +65 -6
- 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,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-verify
|
|
3
|
+
description: Post-publish verification including remote state recheck, exact npm installation smoke, and consumer plugin install verification
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
> **Qoder 安装入口解析协议**:在调用 CLI 前,Agent 必须从宿主当前已加载技能的元数据中取得本 `SKILL.md` 的实际绝对路径,并将该字面量记为 `SKILL_FILE`。
|
|
7
|
+
> `SKILL_FILE` 不是环境变量;禁止从工作目录、可执行搜索路径、源码仓库或 shell 调用上下文猜测。若宿主未提供该绝对路径,立即停止并报告安装定位失败。
|
|
8
|
+
> 对 `SKILL_FILE` 执行 `realpath`,取其目录向上两级得到 `PLUGIN_ROOT`;校验真实技能路径匹配 `PLUGIN_ROOT/skills/*/SKILL.md` 且仍位于插件根内(路径包含检查)。
|
|
9
|
+
> 令 `RELEASE_SKILL_ENTRY=PLUGIN_ROOT/bin/release-skill.mjs`,对入口执行 `realpath` containment、`lstat` 非符号链接且为普通文件校验。
|
|
10
|
+
> 每一次 shell 工具调用都必须在同一个调用中用上述已验证绝对值设置 `RELEASE_SKILL_ENTRY`,然后执行 `node "$RELEASE_SKILL_ENTRY" ...`;不得依赖前一次 shell 的变量。
|
|
11
|
+
>
|
|
12
|
+
|
|
13
|
+
# release-verify
|
|
14
|
+
|
|
15
|
+
## 触发
|
|
16
|
+
|
|
17
|
+
用户请求验证发布结果完整性,或发布流程自动进入 verify 阶段。
|
|
18
|
+
|
|
19
|
+
## 当前状态
|
|
20
|
+
|
|
21
|
+
verify 是发布流程的最终验证阶段,是唯一能将状态提升到 `VERIFIED` 的命令。
|
|
22
|
+
它执行远端状态重检、精确 npm 安装烟雾测试和消费者插件安装验证。
|
|
23
|
+
verify 只接受 `PUBLISHED` 状态的源 run;`VERIFIED` 是终态,不会再次派生运行。
|
|
24
|
+
|
|
25
|
+
计划声明 `postVerify` hook 时,`postverify` 命令负责执行独立的收尾阶段。它接收
|
|
26
|
+
`VERIFIED` verify run、同一计划的 approval,以及逐个传入的 checkpoint approval,
|
|
27
|
+
然后原样调用现有 `postVerifyRelease`。该命令产生独立的 `postverify` run,不读取或写入
|
|
28
|
+
ship state;hook approval 缺失、错误或过期时,在 hook 执行前失败关闭。
|
|
29
|
+
|
|
30
|
+
**注意**: distribute gate (W1) 已经实现并集成在标准 verify 流程中。verify 现在会检查 postPublish 分发状态(git mirror + marketplace index),只有当所有外部动作都完成并通过验证时才达到 VERIFIED。
|
|
31
|
+
|
|
32
|
+
**工作流兼容性**:
|
|
33
|
+
- `docs-only`: consumer-verify preserved (步骤⑧)
|
|
34
|
+
- `config-only`: scene B completes full chain including verify
|
|
35
|
+
- `marketplace-only`: delegates to workspace's exclusive skill for final verification
|
|
36
|
+
- `full-happy-end`: standard complete path with all gates
|
|
37
|
+
|
|
38
|
+
所有工作流 profile 最终都路由到此 verify 命令作为终态验证门。
|
|
39
|
+
|
|
40
|
+
## 职责与边界
|
|
41
|
+
|
|
42
|
+
验证远端所有自动化 action 的实际状态与冻结计划一致。执行精确 `<package>@<version>` npm 安装到隔离目录,验证包名、版本、静态入口闭包,并在配置时验证 bin 路径安全和 CLI 烟雾输出。对 Claude/Codex marketplace distribution 执行全新隔离消费者安装验证。新计划中的 Kimi/CodeBuddy 安装只返回 `manualFollowUps`,明确标记 `verifiedBySystem: false`,不阻塞 `VERIFIED`;缺少该策略字段的旧冻结计划继续走历史 attestation 兼容路径。
|
|
43
|
+
|
|
44
|
+
0.9.3 的稳定隔离安装树记录只消费宿主命令退出后的隔离树观察:宿主附加 link 记录自身但不跟随,声明载荷 symlink 失败关闭,legacy 全树语义保持不变。该观察属于安装树事实,不替代远端状态、发布计划或 `VERIFIED` 判断。
|
|
45
|
+
|
|
46
|
+
**attestation 证明力边界**: `attest` 命令记录的旧计划兼容人工证明(`humanConfirmed: true` → `PASSED_MANUAL`)是本地自声明收据,不是签名见证:`--actor` 仅做非空字符串校验,无外部签名或身份核验,任何能运行 CLI 的进程都能自称任意 actor;伪造收据需写 `.release-skill` authority 目录,与直接改写收据文件属同一信任边界。因此旧兼容路径的人工证明只用于旧冻结计划收尾,不构成独立可审计的人工见证。新计划的 Kimi/CodeBuddy 安装一律走 `manualFollowUps`(`verifiedBySystem: false`),不参与 `VERIFIED` 终态判定。
|
|
47
|
+
|
|
48
|
+
**阶段通过规则**: 只有 CLI exit code 0 和结构化状态码 `VERIFIED` 才是完整终态。
|
|
49
|
+
|
|
50
|
+
**源 run 要求**: `--run` 必需;源 run 的所有 checkpoint 必须为 succeeded 或 skipped。
|
|
51
|
+
|
|
52
|
+
**不确定性停止**: 任何验证失败立即停止,不进行部分降级。
|
|
53
|
+
|
|
54
|
+
## 正向执行路径
|
|
55
|
+
|
|
56
|
+
1. 确认有 `--run` 路径(必需),且源 run 状态为 PUBLISHED
|
|
57
|
+
2. 使用插件根相对路径运行 CLI;命令调用本身即授权执行已配置的 verification gate 和 smoke process
|
|
58
|
+
3. 检查 exit code 和结构化状态:`VERIFIED`(全部通过)/ 失败(具体错误)
|
|
59
|
+
4. 只有 `VERIFIED` 才是发布 happy end
|
|
60
|
+
5. 达到 `VERIFIED` 后先检查计划是否声明 `postVerify` hook:直接收尾使用独立的 `postverify --plan --approval --run --hook-approval`,由该命令产生 `DISTRIBUTED` postVerify run;若仍由持久化 ship state 承担编排,则使用 `ship --hook-approval` 完成同一阶段,再把最终 run 路径交给 `release-finish`。没有 postVerify hook 时,把当前 verify run 路径交给 `release-finish`。随后按清单主动询问分支合并和本机宿主插件更新;发布策略已包含分支动作时略过合并询问
|
|
61
|
+
|
|
62
|
+
## 确定性脚本调用
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# 从插件根运行
|
|
66
|
+
node "$RELEASE_SKILL_ENTRY" verify --root <path> --plan <plan-path> --run <run-path> --json
|
|
67
|
+
# 独立执行已 VERIFIED 计划的 postVerify hook;每个 requiresApproval hook 单独传入批准记录
|
|
68
|
+
node "$RELEASE_SKILL_ENTRY" postverify --root <path> \
|
|
69
|
+
--plan <plan-path> --approval <approval-path> --run <verified-run-path> \
|
|
70
|
+
--hook-approval <immutable-hook-approval-path> --json
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 验证步骤
|
|
74
|
+
|
|
75
|
+
1. 加载并验证 release plan schema 和 digest
|
|
76
|
+
2. 加载源 run,验证 planDigest 匹配和 checkpoint 完整性
|
|
77
|
+
3. 对每个 plan action 执行 adapter.verify()(远端状态重检)
|
|
78
|
+
4. 对每个 npm distribution 执行隔离安装烟雾测试
|
|
79
|
+
5. 对 Claude/Codex marketplace distribution 执行全新隔离消费者安装验证;收集 Kimi/CodeBuddy 的非阻塞 `manualFollowUps`
|
|
80
|
+
6. 全部通过 → `VERIFIED`
|
|
81
|
+
|
|
82
|
+
`postverify` 不属于上述远端验证步骤。它只处理已经达到 `VERIFIED` 的计划,并把
|
|
83
|
+
`postVerify` 阶段的执行结果写入独立 run。
|
|
84
|
+
|
|
85
|
+
## 发布后收尾
|
|
86
|
+
|
|
87
|
+
`VERIFIED` 不代表要自动修改开发分支或本机宿主。进入 `release-finish` 后,只有用户明确同意,才执行对应的本地动作。本机插件更新失败不会改变发布终态。
|
|
88
|
+
核心 prepare、publish、verify 流程跨平台;WorkBuddy 的本机收尾探测和更新仅支持 macOS。
|
|
89
|
+
|
|
90
|
+
## 烟雾测试
|
|
91
|
+
|
|
92
|
+
- 在 `os.tmpdir()` 创建隔离目录
|
|
93
|
+
- 执行 `npm install <package>@<version>` 带安全标志
|
|
94
|
+
- 验证安装的 `package.json` name 和 version 精确匹配
|
|
95
|
+
- 无条件静态验证已安装包中具体 `bin`/`main`/`module`/`types`/`typings`/`exports`
|
|
96
|
+
目标是普通文件;失败时不得写入 `VERIFIED`
|
|
97
|
+
- 若配置了 `smokeBin`:验证 bin 路径安全(无逃逸、无 symlink),从精确安装根、隔离 HOME 和最小环境执行并验证输出;这会运行已安装代码,必须显式授权
|
|
98
|
+
- 若未配置 `smokeBin`:跳过运行代码,但静态入口闭包检查仍然强制执行
|
|
99
|
+
|
|
100
|
+
## 常见错误
|
|
101
|
+
|
|
102
|
+
| 场景 | 状态 | 处理 |
|
|
103
|
+
|------|------|------|
|
|
104
|
+
| 源 run 非 PUBLISHED | GATE_FAILED | 拒绝执行;VERIFIED 是终态 |
|
|
105
|
+
| 源 run 有 incomplete checkpoint | GATE_FAILED | 拒绝执行 |
|
|
106
|
+
| 远端状态不匹配 | POST_PUBLISH_VERIFY_FAILED | 停止 |
|
|
107
|
+
| npm 安装失败 | POST_PUBLISH_VERIFY_FAILED | 停止 |
|
|
108
|
+
| CLI 烟雾输出不匹配 | POST_PUBLISH_VERIFY_FAILED | 停止 |
|
|
109
|
+
| consumer gate / smokeBin 执行失败 | GATE_FAILED | 检查失败原因,修复后重试 |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/adapter-build-manifest.json",
|
|
4
|
+
"title": "Skill Family adapter build manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "hostId", "pathCategory", "sourceClosure", "members", "digest"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.adapter-build-manifest" },
|
|
11
|
+
"hostId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
12
|
+
"pathCategory": { "$ref": "#/$defs/category" },
|
|
13
|
+
"sourceClosure": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": ["digest", "members"],
|
|
17
|
+
"properties": {
|
|
18
|
+
"digest": { "$ref": "#/$defs/sha256" },
|
|
19
|
+
"members": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/sourceMember" } }
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"members": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/outputMember" } },
|
|
23
|
+
"digest": { "$ref": "#/$defs/sha256" }
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
27
|
+
"relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
|
|
28
|
+
"category": {
|
|
29
|
+
"type": "object", "additionalProperties": false, "required": ["id", "scope", "anchor", "relPath"],
|
|
30
|
+
"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" } }
|
|
31
|
+
},
|
|
32
|
+
"sourceMember": {
|
|
33
|
+
"type": "object", "additionalProperties": false, "required": ["sourcePath", "sha256", "bytes"],
|
|
34
|
+
"properties": { "sourcePath": { "$ref": "#/$defs/relativePath" }, "sha256": { "$ref": "#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 } }
|
|
35
|
+
},
|
|
36
|
+
"outputMember": {
|
|
37
|
+
"type": "object", "additionalProperties": false, "required": ["sourcePath", "target", "sha256", "bytes"],
|
|
38
|
+
"properties": { "sourcePath": { "$ref": "#/$defs/relativePath" }, "target": { "$ref": "#/$defs/relativePath" }, "sha256": { "$ref": "#/$defs/sha256" }, "bytes": { "type": "integer", "minimum": 0 } }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/adapter-peer-verification-request.json",
|
|
4
|
+
"title": "Skill Family peer adapter verification request",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "skillFamilyId", "peers"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.adapter-peer-verification-request" },
|
|
11
|
+
"skillFamilyId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"peers": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 2,
|
|
15
|
+
"maxItems": 16,
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["peerId", "hostId", "pathCategory", "logicalMappings"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"peerId": { "$ref": "#/$defs/id" },
|
|
22
|
+
"hostId": { "$ref": "#/$defs/id" },
|
|
23
|
+
"pathCategory": { "$ref": "#/$defs/category" },
|
|
24
|
+
"logicalMappings": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"minItems": 1,
|
|
27
|
+
"maxItems": 128,
|
|
28
|
+
"items": { "$ref": "#/$defs/logicalMapping" }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"$defs": {
|
|
35
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
36
|
+
"relativePath": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$" },
|
|
37
|
+
"category": {
|
|
38
|
+
"type": "object", "additionalProperties": false, "required": ["id", "scope", "anchor", "relPath"],
|
|
39
|
+
"properties": { "id": { "$ref": "#/$defs/id" }, "scope": { "enum": ["user", "project"] }, "anchor": { "enum": ["user-home", "project-root"] }, "relPath": { "$ref": "#/$defs/relativePath" } }
|
|
40
|
+
},
|
|
41
|
+
"logicalMapping": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"required": ["logicalId", "skillId", "sourcePath", "entryType", "userInvocable"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"logicalId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
47
|
+
"skillId": { "$ref": "#/$defs/id" },
|
|
48
|
+
"sourcePath": { "$ref": "#/$defs/relativePath" },
|
|
49
|
+
"entryType": { "const": "skill" },
|
|
50
|
+
"userInvocable": { "type": "boolean" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/adapter-peer-verification-result.json",
|
|
4
|
+
"title": "Skill Family peer adapter verification result",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "status", "decision", "skillFamilyId", "commonSourceClosure", "peers"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.adapter-peer-verification-result" },
|
|
11
|
+
"status": { "const": "verified" },
|
|
12
|
+
"decision": { "const": "peer-verification" },
|
|
13
|
+
"skillFamilyId": { "$ref": "#/$defs/id" },
|
|
14
|
+
"commonSourceClosure": { "$ref": "https://contracts.skill-family.example/v1/adapter-build-manifest.json#/properties/sourceClosure" },
|
|
15
|
+
"peers": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"minItems": 2,
|
|
18
|
+
"maxItems": 16,
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["peerId", "hostId", "pathCategory", "manifest", "logicalMappings"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"peerId": { "$ref": "#/$defs/id" },
|
|
25
|
+
"hostId": { "$ref": "#/$defs/id" },
|
|
26
|
+
"pathCategory": { "$ref": "https://contracts.skill-family.example/v1/adapter-peer-verification-request.json#/$defs/category" },
|
|
27
|
+
"manifest": { "$ref": "https://contracts.skill-family.example/v1/adapter-build-manifest.json" },
|
|
28
|
+
"logicalMappings": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"minItems": 1,
|
|
31
|
+
"maxItems": 128,
|
|
32
|
+
"items": { "$ref": "#/$defs/resultMapping" }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
40
|
+
"resultMapping": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"required": ["logicalId", "skillId", "sourcePath", "target", "entryType", "userInvocable"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"logicalId": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
46
|
+
"skillId": { "$ref": "https://contracts.skill-family.example/v1/adapter-peer-verification-request.json#/$defs/id" },
|
|
47
|
+
"sourcePath": { "$ref": "https://contracts.skill-family.example/v1/adapter-peer-verification-request.json#/$defs/relativePath" },
|
|
48
|
+
"target": { "$ref": "https://contracts.skill-family.example/v1/adapter-peer-verification-request.json#/$defs/relativePath" },
|
|
49
|
+
"entryType": { "const": "skill" },
|
|
50
|
+
"userInvocable": { "type": "boolean" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/adapter-source.json",
|
|
4
|
+
"title": "Skill Family adapter source",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schemaVersion", "kind", "skillFamilyId", "skills"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schemaVersion": { "const": 1 },
|
|
10
|
+
"kind": { "const": "skill-family.adapter-source" },
|
|
11
|
+
"skillFamilyId": { "$ref": "#/$defs/id" },
|
|
12
|
+
"skills": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"minItems": 1,
|
|
15
|
+
"items": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": ["id", "files"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"id": { "$ref": "#/$defs/id" },
|
|
21
|
+
"files": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"minItems": 1,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"additionalProperties": false,
|
|
27
|
+
"required": ["path", "content"],
|
|
28
|
+
"properties": {
|
|
29
|
+
"path": { "$ref": "#/$defs/relativePath" },
|
|
30
|
+
"content": { "type": "string" }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"$defs": {
|
|
39
|
+
"id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{1,63}$" },
|
|
40
|
+
"relativePath": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"maxLength": 240,
|
|
44
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$))(?!.*\\\\)(?!.*\\u0000)[A-Za-z0-9._-]+(?:/[A-Za-z0-9._-]+)*$"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/audit-baseline-pin.json",
|
|
4
|
+
"title": "AuditBaselinePin",
|
|
5
|
+
"description": "Audit baseline pin contract (GAP-5 / SG-28, FVD-005 lineage). The frozen document an independent audit uses to pin one approved Contracts version: the audit-surface digest, per-document digests (registry, error codes, rules, kernel protocol), per-schema digests, and the frozen engine facts. Pins are append-only, one file per contracts version, generated mechanically from describeAuditSurface(); a live surface that no longer matches its pin is AUD-BASE-001, a failed pin/lock comparison is AUD-LOCK-001 (codes owned by the audit namespace). The supersedes field records the predecessor pin file name so the pin lineage stays mechanically traceable.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"kind",
|
|
11
|
+
"provenance",
|
|
12
|
+
"frozenAt",
|
|
13
|
+
"contractsVersion",
|
|
14
|
+
"auditSurfaceVersion",
|
|
15
|
+
"digestAlgorithm",
|
|
16
|
+
"note",
|
|
17
|
+
"surfaceDigest",
|
|
18
|
+
"documentDigests",
|
|
19
|
+
"schemaDigests",
|
|
20
|
+
"facts"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"schemaVersion": { "const": 1 },
|
|
24
|
+
"kind": { "const": "skill-family.audit-baseline-pin" },
|
|
25
|
+
"provenance": {
|
|
26
|
+
"enum": ["product-compatibility-fixture", "independent-audit"],
|
|
27
|
+
"description": "Authorship class of the pin. product-compatibility-fixture: generated mechanically on the product side from describeAuditSurface(); independent-audit: authored by an independent audit consumer."
|
|
28
|
+
},
|
|
29
|
+
"frozenAt": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
|
|
32
|
+
"description": "Calendar date (YYYY-MM-DD) on which the pin was frozen."
|
|
33
|
+
},
|
|
34
|
+
"contractsVersion": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
37
|
+
"description": "Contracts version this pin freezes."
|
|
38
|
+
},
|
|
39
|
+
"auditSurfaceVersion": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 1,
|
|
42
|
+
"description": "Audit consumption surface version the pin was derived from."
|
|
43
|
+
},
|
|
44
|
+
"digestAlgorithm": {
|
|
45
|
+
"const": "sha256",
|
|
46
|
+
"description": "Digest algorithm; sha256 is the only admitted value."
|
|
47
|
+
},
|
|
48
|
+
"note": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"description": "Human-readable provenance note."
|
|
52
|
+
},
|
|
53
|
+
"supersedes": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"pattern": "^contracts-[0-9]+\\.[0-9]+\\.[0-9]+\\.pin\\.json$",
|
|
56
|
+
"description": "File name of the predecessor baseline pin this pin supersedes (FVD-005 lineage); omitted only for the first pin of a lineage."
|
|
57
|
+
},
|
|
58
|
+
"surfaceDigest": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
61
|
+
"description": "sha256 hex of the canonical JSON of the full audit surface (digestAuditSurface)."
|
|
62
|
+
},
|
|
63
|
+
"documentDigests": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": ["registry", "errorCodes", "rules", "kernelProtocol"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"registry": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
69
|
+
"errorCodes": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
70
|
+
"rules": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
71
|
+
"kernelProtocol": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"schemaDigests": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"minProperties": 1,
|
|
77
|
+
"additionalProperties": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
78
|
+
"description": "Map of schema $id to the sha256 hex digest of the canonical JSON of that schema document."
|
|
79
|
+
},
|
|
80
|
+
"facts": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": [
|
|
84
|
+
"contractObjects",
|
|
85
|
+
"checkTypes",
|
|
86
|
+
"mandatoryRuleIds",
|
|
87
|
+
"ruleBudget",
|
|
88
|
+
"errorCodes",
|
|
89
|
+
"kernelOperations",
|
|
90
|
+
"kernelTerminalStates",
|
|
91
|
+
"validationPolicies",
|
|
92
|
+
"supportedDialects",
|
|
93
|
+
"errorCodeStabilityPolicy",
|
|
94
|
+
"schemaIdNamespace"
|
|
95
|
+
],
|
|
96
|
+
"properties": {
|
|
97
|
+
"contractObjects": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"minItems": 1,
|
|
100
|
+
"uniqueItems": true,
|
|
101
|
+
"items": { "type": "string", "minLength": 1 }
|
|
102
|
+
},
|
|
103
|
+
"checkTypes": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"minItems": 1,
|
|
106
|
+
"uniqueItems": true,
|
|
107
|
+
"items": { "type": "string", "minLength": 1 }
|
|
108
|
+
},
|
|
109
|
+
"mandatoryRuleIds": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"uniqueItems": true,
|
|
113
|
+
"items": { "type": "string", "minLength": 1 }
|
|
114
|
+
},
|
|
115
|
+
"ruleBudget": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["firstVersionMax", "absoluteMax"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"firstVersionMax": { "type": "integer", "minimum": 1 },
|
|
121
|
+
"absoluteMax": { "type": "integer", "minimum": 1 }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"errorCodes": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"minItems": 1,
|
|
127
|
+
"uniqueItems": true,
|
|
128
|
+
"items": { "type": "string", "pattern": "^SFC[0-9]{4}$" }
|
|
129
|
+
},
|
|
130
|
+
"kernelOperations": {
|
|
131
|
+
"type": "array",
|
|
132
|
+
"minItems": 1,
|
|
133
|
+
"uniqueItems": true,
|
|
134
|
+
"items": { "type": "string", "minLength": 1 }
|
|
135
|
+
},
|
|
136
|
+
"kernelTerminalStates": {
|
|
137
|
+
"type": "array",
|
|
138
|
+
"minItems": 1,
|
|
139
|
+
"uniqueItems": true,
|
|
140
|
+
"items": { "type": "string", "minLength": 1 }
|
|
141
|
+
},
|
|
142
|
+
"validationPolicies": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"minProperties": 1,
|
|
145
|
+
"additionalProperties": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"additionalProperties": {
|
|
148
|
+
"anyOf": [{ "type": "boolean" }, { "type": "string" }]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"supportedDialects": {
|
|
153
|
+
"type": "array",
|
|
154
|
+
"minItems": 1,
|
|
155
|
+
"uniqueItems": true,
|
|
156
|
+
"items": { "type": "string", "minLength": 1 }
|
|
157
|
+
},
|
|
158
|
+
"errorCodeStabilityPolicy": { "type": "string", "minLength": 1 },
|
|
159
|
+
"schemaIdNamespace": { "type": "string", "minLength": 1 }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/declared-read-surface-result.json",
|
|
4
|
+
"title": "DeclaredReadSurfaceResult",
|
|
5
|
+
"description": "Static verification result for a declared fs read surface (FND-ADR-010). The mechanism collects every `.mjs`/`.js` module under the scanned root, compares each module's `import {...} from \"node:fs\"` named imports against the consumer-declared reader set, and forbids every write-family fs API across the whole tree. The verdict semantics are a closed three-rule enumeration carried in violations[].rule: undeclared-module-imports-fs, fs-api-outside-declared-set, write-family-fs-api. Scope and bias direction are declared in the contract: static syntax surface only (ESM named imports plus whole-source substring detection), conservative approximation (comments and string literals containing write-family API names also hit; static syntax-level violations are never under-reported), no execution of the scanned modules, no model call, no network. The result carries no timestamp.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"kind",
|
|
11
|
+
"ok",
|
|
12
|
+
"violations",
|
|
13
|
+
"scannedModules",
|
|
14
|
+
"scope",
|
|
15
|
+
"guarantees"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schemaVersion": { "const": 1 },
|
|
19
|
+
"kind": { "const": "skill-family.declared-read-surface-result" },
|
|
20
|
+
"ok": { "type": "boolean" },
|
|
21
|
+
"violations": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"required": ["module", "rule"],
|
|
27
|
+
"properties": {
|
|
28
|
+
"module": { "type": "string", "minLength": 1 },
|
|
29
|
+
"api": { "type": "string", "minLength": 1 },
|
|
30
|
+
"rule": {
|
|
31
|
+
"enum": [
|
|
32
|
+
"undeclared-module-imports-fs",
|
|
33
|
+
"fs-api-outside-declared-set",
|
|
34
|
+
"write-family-fs-api"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"scannedModules": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"items": { "type": "string", "minLength": 1 }
|
|
44
|
+
},
|
|
45
|
+
"scope": { "const": "esm-named-imports-only" },
|
|
46
|
+
"guarantees": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"minItems": 1,
|
|
49
|
+
"uniqueItems": true,
|
|
50
|
+
"items": {
|
|
51
|
+
"enum": [
|
|
52
|
+
"syntax-surface-only",
|
|
53
|
+
"conservative-approximation",
|
|
54
|
+
"no-execution",
|
|
55
|
+
"no-model-calls",
|
|
56
|
+
"no-network-access"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://contracts.skill-family.example/v1/engineering-baseline.json",
|
|
4
|
+
"title": "EngineeringBaseline",
|
|
5
|
+
"description": "Business-neutral identity for an engineering baseline. The contract carries the provider-owned baseline identity, canonical rule lineage references, and the Foundation reference implementation identity; it does not carry rule bodies, effects, equivalence, or exemption semantics.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"kind",
|
|
11
|
+
"provider",
|
|
12
|
+
"id",
|
|
13
|
+
"version",
|
|
14
|
+
"digest",
|
|
15
|
+
"canonicalRuleRefs",
|
|
16
|
+
"referenceImplementation"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schemaVersion": { "const": 1 },
|
|
20
|
+
"kind": { "const": "skill-family.engineering-baseline" },
|
|
21
|
+
"provider": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1,
|
|
24
|
+
"description": "Provider that owns the baseline identity, for example an independent Audit implementation."
|
|
25
|
+
},
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1,
|
|
29
|
+
"description": "Provider-scoped stable baseline identifier."
|
|
30
|
+
},
|
|
31
|
+
"version": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$",
|
|
34
|
+
"description": "Semantic version of the provider-owned baseline identity."
|
|
35
|
+
},
|
|
36
|
+
"digest": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
39
|
+
"description": "SHA-256 digest of the canonical JSON of this document with digest omitted."
|
|
40
|
+
},
|
|
41
|
+
"canonicalRuleRefs": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"minItems": 1,
|
|
44
|
+
"items": { "$ref": "#/$defs/canonicalRuleRef" },
|
|
45
|
+
"description": "Sorted, unique references to provider-owned canonical rule lineages. Rule bodies and decisions remain outside this contract."
|
|
46
|
+
},
|
|
47
|
+
"referenceImplementation": {
|
|
48
|
+
"$ref": "#/$defs/referenceImplementation",
|
|
49
|
+
"description": "Identity of the Foundation reference implementation used by the baseline provider."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"$defs": {
|
|
53
|
+
"canonicalRuleRef": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": ["id", "revision", "revisionDigest"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"id": { "type": "string", "minLength": 1 },
|
|
59
|
+
"revision": { "type": "integer", "minimum": 1 },
|
|
60
|
+
"revisionDigest": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"referenceImplementation": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"additionalProperties": false,
|
|
66
|
+
"required": ["foundationVersion", "profile", "skeletonDigest"],
|
|
67
|
+
"properties": {
|
|
68
|
+
"foundationVersion": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
|
|
71
|
+
},
|
|
72
|
+
"profile": { "type": "string", "minLength": 1 },
|
|
73
|
+
"skeletonDigest": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|