gofmt the ext-11 files
ci / vet-and-test (pull_request) Successful in 42s

Why: The implementation commit left two files unformatted; keep the tree gofmt-clean.
Evidence: gofmt -l now empty; targeted test still green.
Impact: Formatting only.
Refs: Follow-up to the wiring commit.
This commit is contained in:
2026-10-08 17:02:16 +00:00
parent 6162817ea3
commit bbe39b475f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ func (a *projectAuthz) Authorize(owner string, projectID core.ID) (bool, error)
}
// wireScopedHostFactory EXT-11:把「按 owner+pluginID 构造受限 Host」注入公开面
//(extension.SetScopedHostFactory)。组合根在 hostcaps 就绪后调用;重建句柄与
// (extension.SetScopedHostFactory)。组合根在 hostcaps 就绪后调用;重建句柄与
// 分发期同构(owner 作用域、来源前缀强制、KV/任务台账隔离)。
func wireScopedHostFactory(caps hostcaps) {
extension.SetScopedHostFactory(func(owner, pluginID string) extension.Host {
+1 -1
View File
@@ -12,7 +12,7 @@ import (
)
// EXT-11 红测:注入前 NewScopedHost fail-closed;注入后重建句柄与分发期同构
//(owner 作用域、PluginID、KV 隔离、知识删除前缀强制)。
// (owner 作用域、PluginID、KV 隔离、知识删除前缀强制)。
func TestScopedHostFactory(t *testing.T) {
// 注入前:fail-closed。
if _, err := extension.NewScopedHost("alice", "rdm"); err == nil {