fix(ui): 接通取件后自动解析与一次性定位
build / build (push) Successful in 1m42s

F17:MarkArtifactFetched 与已验证内容复用都在同一事务内经过策略、来源启用、
过滤、superseded 和当前绑定的复核后,自动把 planned 转 pending 并入队唯一
test.upload;确认与作业幂等,失败整笔回滚。356 已卡记录可对同一文件再次保存
当前策略,经同一路径恢复,不做全库补扫或手工补队列。来源页提示改为自动接续。

F14:来源→监控定位清空未结束/动作/阶段/时间筛选;来源目录定位改为一次性请求
并由父消费,revision/sources 重载不再重放旧请求,手工换目录保持。

F13:抽出 readiness.Resolver 作为端点/绑定/凭据唯一来源;worker 上传/轮询/
校验/移除改用动态客户端,每次调用重读有效配置,不再固化启动 env 客户端。

验证:隔离 PG 的 F17 正负例与恢复用例、前端挂载定位回归、全量 Go/前端测试
及 make verify 17 项通过。未部署、未做 8088 UI 验收。
This commit is contained in:
姚章浩
2026-11-05 11:46:42 +08:00
parent 1c80b07f2c
commit 5bf4aae30e
17 changed files with 873 additions and 46 deletions
+15 -2
View File
@@ -23,8 +23,10 @@ type database interface {
}
type Store struct {
db database
libraryTargetID string
db database
libraryTargetID string
defaultInternalKBID string
defaultExternalKBID string
// restoreDispatchEvidenceRoot 是激活门唯一允许读取维护 journal 的根目录。
// 空值表示没有配置受信证据源:激活必须失败关闭,而不是退回"只看字符串"。
restoreDispatchEvidenceRoot string
@@ -43,6 +45,17 @@ func NewStore(db database) *Store {
return &Store{db: db}
}
// WithRoutingDefaults supplies the deployment's bootstrap bindings. The UI
// binding row still wins; defaults are only the unbound fallback, exactly like
// the route/readiness resolvers. Auto-continuation uses them only to prove the
// publication still targets the CURRENT effective knowledge base.
func (s *Store) WithRoutingDefaults(internal, external string) *Store {
copy := *s
copy.defaultInternalKBID = strings.TrimSpace(internal)
copy.defaultExternalKBID = strings.TrimSpace(external)
return &copy
}
// WithRestoreDispatchEvidence 绑定维护 journal 的受信根目录(部署配置
// LIBRARY_TARGET_JOURNAL_ROOT)。没有它时激活门一律失败关闭。
func (s *Store) WithRestoreDispatchEvidence(root string) *Store {