Add an rdm deploy source to svc (downstream composite binary) #398

Merged
weichen merged 5 commits from feature/svc-rdm-source into main 2026-10-11 20:49:58 +00:00
Owner

Why

RDM 能力(两树一网、rdm.* 追溯审计命令面)只存在于下游 Agent-System-RDM 组合二进制;svc 现有三源(local/dev/release)产物均为 Dev 二进制,无法部署与生命周期管理。本 PR 新增第四种部署源 --from rdm[@<sha>]。

改动

  • scripts/svc.sh:独立 RDM 源仓(SVC_RDM_SRC_DIR/SVC_RDM_ORIGIN 覆盖)+ materialize_rdm_commit(pins 物化 + 纯 Go 构建)+ deploy/update/commits/--pick 的 rdm 轨道 + 启动探测 timeout 护栏 + rdm 形态跳过基座设置播种 + bin_env_dsn_supported ELF 静态证据兜底;
  • docs/svc.md §5.4 rdm 源章节;
  • tests/test_svc.py 两个 rdm 桩用例。

Evidence(任务卡三段 + 验收,均 evidence 工具写入)

  • make test-governance 138/138(含新增用例:部署 E2E、commits/update 轨道);make test 全套 exit=0;make task-sync 已并入最新 main;
  • 真实部署验收:svc rdm1 deploy --from rdm → rdm@2aef3fc:pins 物化、构建、web/ 工作台落 htdocs、serve 健康;rdm.ping→pong、rdm.inspect.capabilities→fail-closed 语义正确;update rdm1 --check→✓ 最新。

Impact

仅治理脚本/文档/测试;不动基座子模块。RDM 侧 CLI 对齐已在 RDM PR #228 合入(卡经 #229 闭合)。

Refs

任务卡 .task/feature-svc-rdm-source.md(主记录=本 PR);RDM PR #228/#229;docs/svc.md §5.4。

## Why RDM 能力(两树一网、`rdm.*` 追溯审计命令面)只存在于下游 Agent-System-RDM 组合二进制;svc 现有三源(local/dev/release)产物均为 Dev 二进制,无法部署与生命周期管理。本 PR 新增第四种部署源 `--from rdm[@<sha>]`。 ## 改动 - `scripts/svc.sh`:独立 RDM 源仓(`SVC_RDM_SRC_DIR`/`SVC_RDM_ORIGIN` 覆盖)+ `materialize_rdm_commit`(pins 物化 + 纯 Go 构建)+ deploy/update/commits/--pick 的 rdm 轨道 + 启动探测 timeout 护栏 + rdm 形态跳过基座设置播种 + `bin_env_dsn_supported` ELF 静态证据兜底; - `docs/svc.md` §5.4 rdm 源章节; - `tests/test_svc.py` 两个 rdm 桩用例。 ## Evidence(任务卡三段 + 验收,均 evidence 工具写入) - `make test-governance` 138/138(含新增用例:部署 E2E、commits/update 轨道);`make test` 全套 exit=0;`make task-sync` 已并入最新 main; - **真实部署验收**:`svc rdm1 deploy --from rdm` → rdm@2aef3fc:pins 物化、构建、web/ 工作台落 htdocs、serve 健康;`rdm.ping`→pong、`rdm.inspect.capabilities`→fail-closed 语义正确;`update rdm1 --check`→✓ 最新。 ## Impact 仅治理脚本/文档/测试;不动基座子模块。RDM 侧 CLI 对齐已在 RDM PR #228 合入(卡经 #229 闭合)。 ## Refs 任务卡 `.task/feature-svc-rdm-source.md`(主记录=本 PR);RDM PR #228/#229;docs/svc.md §5.4。
weichen added 5 commits 2026-10-11 20:46:49 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-svc-rdm-source.md; R0=acc8bf124c04b89ed05093467ebce865934bdddc.

Impact: task metadata only; the feature workspace starts at acc8bf124c.

Refs: .task/feature-svc-rdm-source.md
Why: RDM capabilities (two-trees-one-net, rdm.* trace-audit command face)
only exist in the downstream Agent-System-RDM composite binary; svc's three
existing sources all produce the Dev binary, so none of it could be deployed
or lifecycle-managed. This adds --from rdm[@<sha>] with the same isolated
source-repo semantics as the dev source.

Evidence: make test-governance 138/138 (two new stub cases: deploy E2E and
commits/update track); real deployment rdm@2aef3fc recorded in the task card
(pins materialized, pure-Go build, web workbench to htdocs, serve health OK,
rdm.ping/rdm.inspect.capabilities committed, update --check reports latest);
make test full suite exit=0. All segments written by make evidence.

Impact: scripts/svc.sh (rdm source resolution/materialization/deploy/update/
commits, probe timeouts, rdm seed skip, ELF env-DSN evidence fallback),
docs/svc.md 5.4, tests/test_svc.py. RDM-side CLI alignment landed as RDM
PR #228; no base submodules touched.

Refs: task card .task/feature-svc-rdm-source.md; RDM PR #228/#229.
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=6933ec3979fef58e94461f3b80bb79fca3874c99.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=6933ec3979fef58e94461f3b80bb79fca3874c99; candidate=2d723b2a3c5883b32443ad5a731a34db41206f80.

Impact: task metadata only.

Refs: .task/feature-svc-rdm-source.md
Record the sync and test evidence in the task card
ci / test-pg (pull_request) Successful in 1m1s
ci / test (pull_request) Successful in 2m27s
cc4ea0e357
weichen merged commit c936174bed into main 2026-10-11 20:49:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#398