Skip to content

[P3] audit: platform audit log has no UI surface / no template-facing API doc #1328

@xuyushun441-sys

Description

@xuyushun441-sys

来源:docs/PLATFORM_GAPS_FROM_TEMPLATES.md 第 25 条(P3)。

现象

平台已内置 AuditPlugin(dev 启动日志可见),但:

  • 模板 / 业务用户找不到「审计日志」UI 入口
  • 没有标准 view 让管理员浏览谁在何时改了什么
  • 模板想引用「最近 N 条审计」也不知道走什么 API
  • 没有文档说明审计颗粒度、保留策略、查询性能

合规模板(compliance)想引用平台审计能力,没办法对外宣称「合规审计开箱即用」。

建议范围

M1:系统对象 + view 暴露

  • audit log 暴露为系统对象 system.audit_entry,readonly
  • 默认 list view + filter(按对象 / 字段 / 用户 / 时间)

M2:详情页内嵌

  • 任意详情页 Discussion 区可挂「Audit Trail」tab
  • 模板可声明哪些字段进入审计

M3:策略与保留

M4:文档

  • 「如何在你的模板中引用平台审计」专章
  • 哪些事件被审计、字段层级 vs 操作层级

验收

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestpriority:p3Low: nice-to-have, backlog

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions