pbl_compiler/json/compiler_pbl_compiler_version.json
agent.develop cb1132e6a9 fix(pbl_compiler): M3b RBAC 29条显式登记+CRUD只读拒绝端点+json根键统一+audit BinOp解析修复
- scripts/load_path.py: PATHS_CONTRACTS 20 条(含 M3b 5 个导出契约) + PATHS_READONLY_DENY 9 条
  = 29 条全显式登记,无通配符;与 wwwroot/api/*.dspy(29) 一一对应
- wwwroot/api/: 新增 9 个 CRUD 只读拒绝端点(create/update/delete × 3 表),
  封死 xls2ui 回退默认写入口,保 rules_hash 29.6 确定性指纹唯一写入路径
- json/*.json: 根级 browserfields 合并进 params,三文件统一 tblname/alias/title/params 根键集,
  editable 齐备 new_/update_/delete_data_url 且指向真实 .dspy
- scripts/audit_rbac_parity.py: 修复 PATHS = A + B (BinOp) 解析取空的自身缺陷(假 FAIL 根因),
  新增 json/ 根键白名单 + editable 三 URL + 幽灵/漏登记 检查
- pbl_compiler/init.py: 文件头注释登记条数与代码事实对齐(29=20+9)
- 实跑: audit_rbac_parity.py rc=0 PASS;test_m3b_mapping.py PASS=113/FAIL=0
2026-09-19 11:04:55 +08:00

40 lines
2.5 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"tblname": "pbl_compiler_version",
"alias": "pbl_compiler_version_list",
"title": "编译器版本29.6 确定性)",
"_comment": "M3b 整改(QC #3):删除根级冗余 browserfields规范只允许 params.browserfields根键统一为 tblname/alias/title/paramsalias 由 pbl_compiler与模块同名、生成目录会与模块 wwwroot 冲突)改为 pbl_compiler_version_listparams.editable 补齐 new/update/delete_data_url 对象,三写 URL 指向显式拒绝直写的端点(唯一写入口是契约 pbl_compiler_version_register。",
"params": {
"browserfields": {
"id": {"label": "ID", "type": "number", "list": true},
"tenant_id": {"label": "租户ID", "type": "text", "list": true},
"code": {"label": "版本编码", "type": "text", "list": true},
"semver": {"label": "语义化版本", "type": "text", "list": true},
"rules_hash": {"label": "规则集SHA256前缀", "type": "text", "list": true},
"entrypoint": {"label": "入口函数", "type": "text", "list": true},
"enabled": {"label": "启用", "type": "checkbox", "list": true},
"notes": {"label": "说明", "type": "text", "list": true}
},
"editable": {
"get_data_url": {
"url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_list.dspy')}}"
},
"new_data_url": {
"url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_create.dspy')}}"
},
"update_data_url": {
"url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_update.dspy')}}"
},
"delete_data_url": {
"url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_delete.dspy')}}"
}
},
"new_data_url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_create.dspy')}}",
"update_data_url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_update.dspy')}}",
"delete_data_url": "{{entire_url('/pbl_compiler/api/pbl_compiler_version_delete.dspy')}}",
"editexclouded": ["id", "tenant_id", "rules_hash", "created_at", "updated_at"],
"_crud_note": "编译器版本行一经登记即不可变(版本 diff 与确定性验证以其 rules_hash 为基线):新增/变更一律走契约 pbl_compiler_version_register计算 rules_hash + semver 唯一性校验),停用走 enabled=0禁止物理删除pbl_game_definition.compiler_version_id 引用它)。三个写端点仅用于满足 editable 格式硬要求并封死 xls2ui 默认写包装,均返回 widgettype=Error。",
"order_by": "id DESC",
"page_size": 20
}
}