Skip to content

feat: add Source V2 capability and safety contracts - #11

Merged
Scaxlibur merged 82 commits into
masterfrom
Scaxlibur/feat/source-v2-snapshot
Aug 24, 2026
Merged

feat: add Source V2 capability and safety contracts#11
Scaxlibur merged 82 commits into
masterfrom
Scaxlibur/feat/source-v2-snapshot

Conversation

@Scaxlibur

@Scaxlibur Scaxlibur commented Aug 24, 2026

Copy link
Copy Markdown
Owner

概要

实现已接受 RFC 的 Source V2 能力、状态与复合输出安全合同,按 R6 → M5-A–M5-D → C2 → M6-A–M6-C → M7 → C3 推进。

  • 新增 typed snapshot、Basic/Output、高级单通道、ARB 与跨通道合同
  • 新增预算、termination、operation context、Service/CLI/run plan/intent/artifact
  • 保留 V1 路由与旧插件兼容;无 source_extensions 的插件继续走 V1
  • 新增 conformance manifest、canonical wheel binding 和当前 distribution 归属校验
  • 首个支持版本为 WaveBench 0.8.24,当前仍为 implemented-unreleased

兼容性

  • V1-only Source 插件不要求提高最低版本或增加 manifest
  • InstrumentDescriptor.source_extensions 保持 append-only 且默认为 None
  • 新旧核心/插件组合、V1 artifact、受管安装回滚和外部插件 registry 均有离线回归

验证

  • 核心全量:1465 passed, 1 skipped, 131 subtests passed
  • 插件兼容聚焦:154 passed
  • Ruff、pip check、wheel/sdist、package inspection 和 git diff --check 通过

安全边界

  • 不提供 raw SCPI 入口
  • 写入保持单次 MAIN、独立回读和有界 OFF recovery
  • 独立输出端口允许同时 ON,不增加全局单端口限制
  • 本 PR 不包含 push 之外的发布、tag 或硬件操作

对应插件 PR:wavebench-instrument-plugins#3。插件 PR 依赖本 PR,应在核心合并后再合并。

@Scaxlibur
Scaxlibur merged commit dc7ce5b into master Aug 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant