Declare admin-zone sections from compiled plugins (surface 2.9.0, WP3-I3) #165

Merged
weichen merged 2 commits from feature/adminzone-plugin-sections into main 2026-10-12 02:39:56 +00:00
Owner

扩展面 2.8.0 → 2.9.0:Registry.AddAdminZone + AdminZoneSpec(编译插件向基座管理区声明展示分区);applyCompiled 把声明记入注册面摘要;新端点 GET /api/admin-zone/sections 展平并按 Order→ID 排序下发。分区入口不做基座级权限判定,区内数据能力由分区组件自身命令面 fail-closed(KTD4:前端只消费、不合并角色)。

  • Why: AdminZone 此前无法承载插件声明分区;RDM 审计分区需对基座超管与 RDM 域管理员开放而不硬编码 RDM 进基座。
  • Evidence: go test ./internal/app ./internal/server ./pkg/extension 绿(新增 adminzone 记录/端点测试;surface snapshot 同步);Dev 组合 CI 为权威。
  • Impact: 公开扩展面版本化新增(向后兼容:既有下游无需改动);新端点对全部认证主体返回展示元数据。
  • Refs: Dev 任务卡 .task/feature-adminzone-plugin-sections.md;配套 Frontend/RDM/Dev PR 见任务卡。
扩展面 2.8.0 → 2.9.0:`Registry.AddAdminZone` + `AdminZoneSpec`(编译插件向基座管理区声明展示分区);`applyCompiled` 把声明记入注册面摘要;新端点 `GET /api/admin-zone/sections` 展平并按 Order→ID 排序下发。分区入口不做基座级权限判定,区内数据能力由分区组件自身命令面 fail-closed(KTD4:前端只消费、不合并角色)。 - Why: AdminZone 此前无法承载插件声明分区;RDM 审计分区需对基座超管与 RDM 域管理员开放而不硬编码 RDM 进基座。 - Evidence: go test ./internal/app ./internal/server ./pkg/extension 绿(新增 adminzone 记录/端点测试;surface snapshot 同步);Dev 组合 CI 为权威。 - Impact: 公开扩展面版本化新增(向后兼容:既有下游无需改动);新端点对全部认证主体返回展示元数据。 - Refs: Dev 任务卡 .task/feature-adminzone-plugin-sections.md;配套 Frontend/RDM/Dev PR 见任务卡。
weichen added 1 commit 2026-10-12 02:34:19 +00:00
Declare admin-zone sections from compiled plugins (surface 2.9.0)
ci / vet-and-test (pull_request) Successful in 46s
62bfc6068a
Why: the admin zone could not host plugin-declared partitions - KTD4
requires the RDM audit partition to be reachable by RDM domain admins and
base superadmins without hardcoding RDM into the base AdminZone.
Evidence: go test ./internal/app ./internal/server ./pkg/extension green
incl. new admin-zone recording/endpoint tests; surface snapshot test
green after surface.txt update; CI (Dev composite) is authoritative.
Impact: extension surface 2.8.0 -> 2.9.0 (Registry.AddAdminZone +
AdminZoneSpec, fail-closed on invalid specs); applyCompiled records
declarations into the plugin summary; new authenticated GET
/api/admin-zone/sections returns the flattened, ordered declaration list.
Entry visibility stays metadata-only - data capability remains enforced
by each section's own command surface (fail-closed).
Refs: WP3-I3/KTD4; task card feature-adminzone-plugin-sections.
weichen added 1 commit 2026-10-12 02:38:06 +00:00
Merge authoritative main into the admin-zone branch
ci / vet-and-test (pull_request) Successful in 49s
1719b5f668
weichen merged commit a80d3c3359 into main 2026-10-12 02:39:56 +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-Backend#165