From 04b66c4c4c20abdc3011abcd45d8db20a3e1540f Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 30 Sep 2026 17:24:24 +0800 Subject: [PATCH] docs(deploy): archive obsolete AI test deployment input --- deploys/test/README.md | 8 ++++++-- docs/archive/deployment-examples/README.md | 3 ++- .../archive/deployment-examples}/ai-dental-meiba-v1.json | 0 docs/evidence/saas-dispatcher-implementation.md | 2 ++ internal/config/deployment_layout_test.go | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) rename {deploys/test => docs/archive/deployment-examples}/ai-dental-meiba-v1.json (100%) diff --git a/deploys/test/README.md b/deploys/test/README.md index 98b9821..5199183 100644 --- a/deploys/test/README.md +++ b/deploys/test/README.md @@ -23,5 +23,9 @@ Agent replacement and is not containerized. Run it explicitly with the current call authorization and the approved target/trunk. It refuses production mode and fails closed when its prerequisites are missing. -The offline OSS environment file and `ai-dental-meiba-v1.json` are fixtures for -isolated tests only. They contain no real credentials or production approval. +The offline OSS environment file is a fixture for isolated tests only. It +contains no real credentials or production approval. The former +`ai-dental-meiba-v1.json` is archived at +[`docs/archive/deployment-examples/ai-dental-meiba-v1.json`](../../docs/archive/deployment-examples/ai-dental-meiba-v1.json), +with its original path and SHA-256 recorded in the archive README; it is not a +current AI configuration or an installable deployment input. diff --git a/docs/archive/deployment-examples/README.md b/docs/archive/deployment-examples/README.md index 165fd21..855991c 100644 --- a/docs/archive/deployment-examples/README.md +++ b/docs/archive/deployment-examples/README.md @@ -1,11 +1,12 @@ # 已退役的部署配置样例 -以下文件从 `deploys/config/` 原样移入本目录,仅保留历史来源事实。当前 Agent/Dispatcher 不读取这些配置,当前安装包也不包含它们;其中的审批标记和真实线路字段**不是现行部署授权**。 +以下文件从各自原路径逐字节移入本目录,仅保留历史来源事实。当前 Agent/Dispatcher 不读取这些配置,当前安装包也不包含它们;其中的审批标记、真实线路字段及旧智能体参数**不是现行部署授权**。旧证据中出现的原路径是当时使用的事实,不代表今天该文件仍在部署目录。 | 原路径(相对项目根目录) | SHA-256(迁移前后相同) | | --- | --- | | `deploys/config/dispatcher.json.example` | `c73954882284c0db9650dd5dda579365afb39124f2567bfff486b3b32efe3080` | | `deploys/config/static-cell-artifact-v2.json` | `371e0e89548838a1d293b04503e40e681a8352312bad6db8fa273807b34875ac` | | `deploys/config/static-cell-runtime-v1.json` | `89d2686d0d1ca60159c3c6bd725dc9e6f511cbdb56bf6ce7b65ca7d4dc3f2d60` | +| `deploys/test/ai-dental-meiba-v1.json` | `ae6f94045719e838c943e6c5ff9170ebc7fedb5991958cc64bbbffc229ba07b4` | 当前隔离 Mock 的端点样例是 [`deploys/config/agent-endpoints.example.json`](../../../deploys/config/agent-endpoints.example.json)。真实 Agent/Asterisk 加载、管理平台审批、主机诊断及供应商联调尚未验证;这些历史样例不得代替验收。 diff --git a/deploys/test/ai-dental-meiba-v1.json b/docs/archive/deployment-examples/ai-dental-meiba-v1.json similarity index 100% rename from deploys/test/ai-dental-meiba-v1.json rename to docs/archive/deployment-examples/ai-dental-meiba-v1.json diff --git a/docs/evidence/saas-dispatcher-implementation.md b/docs/evidence/saas-dispatcher-implementation.md index 87b7910..6ca2116 100644 --- a/docs/evidence/saas-dispatcher-implementation.md +++ b/docs/evidence/saas-dispatcher-implementation.md @@ -148,6 +148,8 @@ - 未接入运行路径的旧通话日志包:全仓活动 Go 代码中没有 `internal/calllog` 调用,独立 `internal/calllog/log.go`/单元测试仍包含旧 `schema_version`、旧任务条目等数据模型;删除该死代码而不是留下看似可用的第二条事实通道。Agent/Dispatcher 的现行失败关键路径仍有 `cmd/sip-go-agent/main.go` 的 `slog.Error` 与 `internal/rpc/` 的脱敏执行、录音授予、结束和结果提交日志,删包不删除任何已存在的日志/录音/恢复文件。`go test -race ./...`、`make check`(含三项真实隔离 MQ PASS)与 `make release-check-local` 均通过;不将旧日志格式留作兼容层。旧 AI 部署夹具与自有 `Current` 入口名称仍需另行审计,P07 尚未收口。 +- 退役 AI 部署夹具:`TestDeploymentHasOneCanonicalDirectory` 先在旧 `deploys/test/ai-dental-meiba-v1.json` 上预期失败;逐字节移至 `docs/archive/deployment-examples/ai-dental-meiba-v1.json`,迁移前后 SHA-256 均为 `ae6f94045719e838c943e6c5ff9170ebc7fedb5991958cc64bbbffc229ba07b4`。运行入口、安装包和脚本无调用者,`deploys/test/README.md` 改指归档,历史证据中仍记录的原路径是**当时运行的输入事实**而不是现在的可执行路径;归档 README 列出原路径与当前位置,未改写旧证据 JSON。本机布局测试、当前文档链接/哈希、`make check`(含三项真实隔离 MQ PASS)与 `make release-check-local` 全部通过;不能因此宣称旧配置或真实供应商有效。P07 尚待自有 `Current` 命名及最终残留分类。 + ## 验收台账 P01–P06 的项目内隔离证据见上;P07 全仓命名与唯一入口尚在清理,A01–A12 和 K01–K16 的最终对照仍待 P08。不得用本地 Mock 冒充外部签收。 diff --git a/internal/config/deployment_layout_test.go b/internal/config/deployment_layout_test.go index 98b69f4..bd8a625 100644 --- a/internal/config/deployment_layout_test.go +++ b/internal/config/deployment_layout_test.go @@ -22,7 +22,7 @@ func TestDeploymentHasOneCanonicalDirectory(t *testing.T) { t.Errorf("deployment entry %s is not a regular file", path) } } - for _, path := range []string{"config/dispatcher.json.example", "config/static-cell-artifact-v2.json", "config/static-cell-runtime-v1.json"} { + for _, path := range []string{"config/dispatcher.json.example", "config/static-cell-artifact-v2.json", "config/static-cell-runtime-v1.json", "test/ai-dental-meiba-v1.json"} { if _, err := os.Lstat(filepath.Join(root, "deploys", path)); !errors.Is(err, os.ErrNotExist) { t.Errorf("retired deployment example %s still active: %v", path, err) }