mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 13:34:53 +08:00
fix(tm):建立 Trusted 唯一性与 Supersede 治理
This commit is contained in:
@@ -319,14 +319,15 @@ T03 → T16
|
||||
显式迁移。V1-A/V1-B 均兼容缺失 `schema_migrations` 或 component row,未知和 future
|
||||
schema 仍 fail closed;已验证业务 term/history、deletion audit 保留、失败回滚重试、
|
||||
V1-A 并发迁移和 V2 reopen no-op。当前 Translation Tasks 为 V2、Translation Memory
|
||||
为 V1、Glossary 为 V2。
|
||||
persistence schema 为 V2、Glossary domain/feature contract 为 V1 且 persistence schema
|
||||
为 V2。
|
||||
|
||||
---
|
||||
|
||||
# T04 — Translation Memory Trusted 唯一性与 Supersede 治理
|
||||
|
||||
**类型:** P2
|
||||
**状态:** Ready
|
||||
**状态:** Done
|
||||
|
||||
## 问题
|
||||
|
||||
@@ -570,17 +571,18 @@ CI 检查必须:
|
||||
* 明确报告每项 gate;
|
||||
* required tool 缺失时不应伪装成全部通过;
|
||||
* required tool 缺失或版本不匹配必须失败;
|
||||
* 与实际 Gitea CI 尽量保持一致。
|
||||
* 与本地 `make ci-check` 的完整 required quality gate 保持一致。
|
||||
|
||||
## 完成记录
|
||||
|
||||
`make format` / `make fmt` 保留为显式写入命令,`make ci-check` 和兼容的
|
||||
`make ci` 只执行 read-only required gates;共享 `scripts/check-go-format.sh` 由
|
||||
`make check-go-format`、本地 `scripts/ci-check.sh` 和 Gitea workflow 共用。`golangci-lint
|
||||
2.12.2` 由 `scripts/ci-versions.sh` 固定,缺失或版本不匹配失败;OpenAPI、RPC contract
|
||||
和文档一致性由 `make check-docs` 纳入。Gitea self-hosted runner 执行相同的 required
|
||||
Rust/Go/docs 语义,不添加 GitHub Actions。最终 workspace gates、`make test-go-api`、
|
||||
`make check-docs` 和 `make ci-check` 均已通过。
|
||||
`make check-go-format` 和本地 `scripts/ci-check.sh` 共用。`golangci-lint 2.12.2`
|
||||
由 `scripts/ci-versions.sh` 固定,缺失或版本不匹配失败;OpenAPI、RPC contract
|
||||
和文档一致性由 `make check-docs` 纳入。项目以本地 `make ci-check` 作为唯一完整
|
||||
required quality gate,开发过程中可运行 focused checks 以快速反馈,但提交前完整 gate
|
||||
不得省略;仓库不依赖 Gitea、GitHub Actions 或其它远端 CI runner。最终 workspace
|
||||
gates、`make test-go-api`、`make check-docs` 和 `make ci-check` 均已通过。
|
||||
|
||||
建议统一覆盖:
|
||||
|
||||
@@ -835,12 +837,21 @@ T09/T10 ─→ T11 增加 AssetBundle/Patch 真实验证
|
||||
|
||||
**Hard Blocker:T02**
|
||||
|
||||
## 完成记录
|
||||
|
||||
已完成 Translation Memory persistence schema V2、current Trusted 唯一性、显式
|
||||
supersede、历史 Trusted 冲突诊断与 `resolve_conflict`。确认和冲突解决均使用
|
||||
`BEGIN IMMEDIATE`、稳定 record ID 和 stale snapshot 校验,保留双向 supersede
|
||||
关系与 audit event;worker 遇到冲突不会自动复用。Rust RPC/CLI、Go
|
||||
`bat-api` typed forwarding、OpenAPI、focused regression/concurrency tests 和
|
||||
文档已同步。
|
||||
|
||||
---
|
||||
|
||||
# T14 — G-012 Translation Memory 后续扩展
|
||||
|
||||
**类型:** Feature
|
||||
**状态:** Blocked
|
||||
**状态:** Ready
|
||||
|
||||
## 前置
|
||||
|
||||
@@ -874,7 +885,7 @@ Embedding/vector 不应默认进入第一阶段。
|
||||
|
||||
## 目标
|
||||
|
||||
在现有 Glossary V2 基础上逐步增加:
|
||||
在现有 Glossary domain/feature contract V1、persistence schema V2 基础上逐步增加:
|
||||
|
||||
* bulk import/export;
|
||||
* richer search;
|
||||
|
||||
Reference in New Issue
Block a user