Commit Graph

107 Commits

Author SHA1 Message Date
03a514e57f docs(总览): 标记 B2(删 overlay 死代码)完成
B2 代码在 eip4-web 分支;本提交同步总览 §10 B2 状态。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:22:47 +08:00
8df60e810c docs(总览): 标记 B4(isAdminProfile 收口)完成
B4 代码在 eip4-web 分支 feat/arch-review-followup(commit 768ffa8);本提交仅同步总览 §10 B4 状态为已完成。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:20:24 +08:00
c4ef673b0a refactor(ai): 三处本机判定统一到 LocalHostPolicy(D5)
AiToolRegistry/AiSmokeRunner/AiLocalReleaseExecutor 原各写一份本机白名单且互异(一处认 0:0:0:0:0:0:0:1 漏 [::1],另两处反之)。
新增 LocalHostPolicy.isLocalHost:去 IPv6 方括号归一 + 精确比对回环集 {localhost,127.0.0.1,::1,0:0:0:0:0:0:0:1},杜绝 127.0.0.1.evil.com 伪本地绕过;三处删副本统一委托。
验证:新增 LocalHostPolicyTest(全回环形态接受 + 伪本地/非本机拒绝)3/3 + 三处既有测试无回归,platform-ai 69/69 绿。见总览 §10 D5。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:12:22 +08:00
21a181f44b feat(observability): Actuator 健康端点 + 滚动日志 + base 日志降噪
总览 §10.2 可观测性:
- platform-app 加 spring-boot-starter-actuator,management 只暴露 health(开 liveness/readiness 探针,show-details when-authorized 不泄露 db 等组件细节);不上 Prometheus 全家桶
- SecurityConfig.PUBLIC_PATHS 加 /actuator/health(/**),prod 链探针免认证可达
- 新增 logback-spring.xml(控制台 + 50MB×14 天滚动文件,文件 appender 仅 dev/local/prod 启用,不污染单测)
- base application.yml 日志 com.dsasp/jdbc.core DEBUG→INFO(prod 继承 INFO,dev 仍 DEBUG);.gitignore 忽略 logs/
验证:真启动 dev profile(1.7s)curl /actuator/health=200 {UP,groups:[liveness,readiness]} + readiness/liveness 均 200 UP;SecurityProfileTest 3/3 + ArchitectureRulesTest 6/6 无回归。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 11:05:33 +08:00
378fd74682 refactor(ai): AI 本地发布裸写下沉到 AiReleaseWriter + 补值断言测试
A5 安全半步:把 AiLocalReleaseExecutor 里所有 sys_serviceflow/sys_menu 裸 JDBC(含 ensureAiMenuParent/tableExists/实体复用查询)收拢到新类 AiReleaseWriter,执行器只剩编排;SQL 逐字保留=零行为变更。
新增 AiReleaseWriterTest 4 值断言(serviceflow 审计/?::xml/bool→int、菜单 INSERT 全列值、UPDATE 全字段、自动建「AI Agent」目录),补上原黄金测试只查表名的宽松缺口。
platform-ai 30/30 绿(黄金测试经搬迁仍绿=行为未变)。与人走五环 MenuRegistrar 的完整统一(两者已分叉)留作专项,见总览 §10 A5。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 10:52:25 +08:00
49e745912d docs(总览): 新增 §10 架构改进待办,合并外部评审并纠偏严重度
8 维度架构评审 + 逐条核实其他 agent《架构分析与改进建议》(已删除,内容并入):
- 真 P0:script-execute RCE / permitAll fail-open / asUser 越权 / CI 孤儿
- 可采纳工程项:A4 ArchUnit / A5 写收口 / D1 render runner / D5 LocalHostPolicy / 前端去重
- 严重度纠偏:ColumnSQL 不可达降 low、deleteByType 已缓解、A2 归因更正
标记 A4 与稳定性三件套已完成(含验证证据)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 10:36:41 +08:00
1eb690124b feat(cli): 新增 eip4-amis-pitfalls skill
把散落的 amis 实战坑收敛成「写 amis schema 的 agent」可直接用的规则 + 必实测铁律:
单选 selectedItems 是 Option 对象非数组、树 >100 节点虚拟列表破坏选中、
空列表兜底 items:[]、quickEdit.needConfirm 须显式 false、
行级按钮 dialog 按 name 自动回填同名字段、onEvent 需按钮 id 等。

manifest 登记为第 7 个 skill,由 initInstallsAllBundledSkillsWithoutDrift 守护端到端可装。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 09:50:23 +08:00
0e457d9945 feat(cli): agent 接入补全(token/MCP/REST 分流)+ 修 page-recipe recipe-id
- fix: page-recipe 的 maintenance-crud 漏 `-v1`,而 compile 端点精确匹配
  maintenance-crud-v1,agent 照抄示例会 400;统一为 -v1,并引导以
  GET /api/ai/page-recipes 为权威列表,避免硬写字面量漂移。
- env-manage 新增「鉴权/Token」段:非 prod profile permitAll 免 token,
  prod/JWT 环境需 POST /api/auth/login 取顶层 `token` + `Authorization: Bearer`
  (核实 AuthController/JwtAuthFilter)。
- AGENTS.md(writeAgentsMd):把「优先 platform-cli」误导修为按类分流
  (env/ai/release 用 CLI,建模/页面/授权用 REST 或 platform-mcp),
  并点名 platform-mcp 注册方式 + token 获取指引。
- data-modeling/page-recipe/acl-manage 各加调用方式与 token 交叉引用。
- 测试 +3:page-recipe recipe-id 回归、AGENTS.md MCP/auth、bundled skills 防漂移。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 09:50:23 +08:00
8a6c94ebde feat(cli): eip4 skills list/check + 3 个新 agent skill (G3)
- 新增 skill(均基于源码核实过的端点):
  - eip4-data-modeling — /api/meta/entity 建实体/加字段/引用列/主子表
  - eip4-page-recipe   — /api/design/recipe/compile 生成默认页(维护/树/主子表)
  - eip4-acl-manage    — /api/admin/* 菜单/角色/用户组授权
  manifest.json + jar 打包同步,docs/skills 现共 6 个
- CLI 新增 eip4 skills list(列内置 skills)+ skills check --dir(缺失退出非 0)
- TDD 2 个新测试,platform-cli 共 22 单测全绿
- 真实验证:skills list 列 6 个 / init 装 6 个 / skills check 全 installed(exit 0)/ 端口渲染零占位符残留
- serviceflow-diagnose 暂缓:平台无「查看/诊断服务流定义」的 agent 可操作端点(需先补端点)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 14:47:31 +08:00
4a2080a4f6 feat(mcp): platform-mcp —— EIP4 MCP server 标准接入 Claude Code/Codex/OpenCode (G2)
- 新增 platform-mcp 模块(stdio MCP server,MCP Java SDK 1.1.0 / jackson2 路线)
- 注册 7 个 MCP 工具:eip4_auto_develop / list_page_recipes / validate_page_schema
  / list_components / access_check / list_entities / entity_attributes
  忠实转发 EIP4 REST,复用人审红线(产物恒 READY_FOR_HUMAN_REVIEW),不另开权限面
- 工具逻辑 TDD(Eip4McpTools 9 单测,注入 mock REST client)
- 真实 stdio JSON-RPC e2e:initialize 协商 + tools/list 返回 7 工具(schema 正确)
  + tools/call 链路(死端口优雅 isError)
- 坑:父 pom 为 amis 校验钉死 networknt 1.5.2,与 MCP 需要的 2.0.0(含 dialect.Dialects)
  冲突 → platform-mcp 显式覆盖 2.0.0(仅本模块)
- 文档:GAP 标记 G2 完成、平台 README + skills/README 加 MCP 接入说明

接入:claude mcp add eip4 -- java -jar platform-mcp/target/platform-mcp-0.1.0-SNAPSHOT.jar --base-url <env>

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 14:37:02 +08:00
5b06aeceff feat(cli): eip4 init 一键接入 Claude Code/Codex/OpenCode (G1)
- 新增 eip4 init:把 agent skills 装到目标项目
  - Claude Code → .claude/skills/<name>/SKILL.md(代码生成 frontmatter)
  - Codex/OpenCode → 根 AGENTS.md(EIP4-SKILLS 标记块,内嵌 skill 全文,块外保留,幂等)
  - base URL 按 --base-url/--env/current env 渲染
- docs/skills/*.md 的 base URL 改为 {{EIP4_BASE_URL}} 占位符
- 新增 eip4-skills/manifest.json + pom 用 maven-resources-plugin 把 docs/skills 打进 jar(init 默认从 classpath 读,无需仓库在场)
- 文档:AI_AGENT_Nocobase_INTEGRATION_GAP_AND_PLAN(NocoBase 对照 + G1-G3 计划)、skills/README、平台 README
- TDD 5 个新测试,platform-cli 共 20 单测全绿;真实 jar 端到端验证通过

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 14:14:26 +08:00
2d1e9d143b docs: §9/README 回写——已提交分支 + 对抗审查修复 + P1③双重阻塞
- §9 实施记录:代码已提交 feat/p0p1-impl(改"未commit");补对抗审查4major修复
  + overlay审计实跑发现 + 部署包下沉调查结论(两生成器现等价无bug)
- §9/README:P1③ framework业务106 标双重阻塞(待S1拍板 + EIP-3.0源码本地未克隆)
- README §4:P0②/P1④/P1⑥/P1⑤ 标✅已实施(指向总览§9)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 15:29:00 +08:00
624ffe8a15 docs: 06-21 进度文档对齐 + P0/P1 实施记录
- 新建 项目进度与路线-总览-2026-06-21(取代06-17版),刷新A/B矩阵+增量交付+下一步+§9实施记录
- README 索引刷新到06-21;旧总览+14份过时/已完成文档加状态横幅;落地路线图回写里程碑

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 13:56:14 +08:00
418b0b6458 docs(plan): land human five-ring build-new-feature implementation plan (24 TDD tasks, adversarially reviewed)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:27:51 +08:00
22d481e1cb docs(plan): land human five-ring build-new-feature design (NocoBase-style modeler + live designer)
Brainstorm output. Locks: NocoBase-style modeler+live-designer (no linear wizard);
v1 builds NEW features only (CREATE proven, ALTER=M4 deferred); recipe auto-generates
wired default page then edit in DesignerPage; AI-assist via external agent+Skills
(no in-platform LLM); single metadata truth SYS_ENTITY/SYS_ENTITYATTRIBUTE.
Companion to 2026-06-19 direction+roadmap. Ready for writing-plans.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 00:16:31 +08:00
da3ad35821 docs(plan): land EIP4 dev-platform direction + reconciled execution roadmap
Commit the architecture-direction design doc (D1-D7 locked decisions) and add a companion living execution roadmap reconciling the design with the already-merged AI agent module (main 9aea6c1): phase-by-phase delivery account + ordered milestones (M0 component L1 -> render-smoke gate -> 先宽度 M1/M3a/M2/M3b -> 再深度 M4/M5/M7/M8), split autonomous-build vs env-verification.

Roadmap revised after adversarial review: restored the D2-locked P0 prerequisite (component L1), moved the render-smoke correctness gate ahead of real-DB dogfood, split net-new write-path convergence ahead of the new endpoint, marked code-complete vs integration-pending.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 16:59:16 +08:00
9aea6c1cd0 docs(ai): converge external wording to AI-assisted + human review, not full-auto
Per the architecture-review redline (EIP3 决策会纪要: AI claims limited to 'AI-assisted, human-reviewed'; never promise 'AI full-auto development'), soften endpoint @Operation summaries, the default task objective, and AI docs that read as committed full-automation. Endpoint paths/method names unchanged (API contract). Added a capability-boundary disclaimer at the top of AI_AGENT_AUTO_DEVELOPMENT.md. 33 platform-ai tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 16:39:45 +08:00
bd4c642766 merge ai agent module 2026-06-19 14:01:09 +08:00
ccd74710fa fix schedule job notify editor
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 17:15:10 +08:00
62188a557f docs: verify treegrid entity filtering
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 16:44:21 +08:00
d218c2ba6f fix framework treegrid search and formeditgrid editors 2026-06-18 16:35:51 +08:00
b6e6964913 fix framework p2 custom views 2026-06-18 15:35:17 +08:00
55b9c201d6 docs: mark framework P2 gate complete
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 13:25:30 +08:00
75885f9d7d docs: mark framework P2 complete
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 11:19:22 +08:00
5636b37220 feat: complete framework P2 deltas 2026-06-18 11:18:40 +08:00
be9d1c8e71 docs: record work calendar status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 10:27:08 +08:00
03bf036d87 docs: record treegrid entity filtering status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 10:10:28 +08:00
9cdd043af3 docs: record schedule and data import status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 10:01:15 +08:00
46dfa9c5a2 docs: record script editor status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 09:40:36 +08:00
0b8a9c4ce4 docs: record process monitor status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 09:03:45 +08:00
7192c2aaa6 docs: record process form removal status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 08:56:10 +08:00
d82ef94da8 docs: record workflow task commit hash
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 08:12:54 +08:00
61f31527bc feat: wire my started workflow tasks 2026-06-18 08:12:15 +08:00
f736d33a20 docs(platform): record approval history completion
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 02:13:09 +08:00
21e3865dcf fix(platform): restore approval history drawer 2026-06-18 02:12:27 +08:00
278b0da422 fix(platform): resolve picker load defaults
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 01:51:59 +08:00
cfb7451e62 docs: update framework todo for short message
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 01:19:58 +08:00
f690f30552 fix(platform): repair message detail views
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 00:49:03 +08:00
bf7bb2515b fix(platform): complete picker parity and message detail
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-18 00:30:01 +08:00
c380659ef0 docs: update picker todo status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-17 23:56:20 +08:00
88ff6f6bfb feat(metadata): wire legacy process selector
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-17 21:45:12 +08:00
1581a99d75 feat(metadata): wire legacy user select picker
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-17 21:31:11 +08:00
380d1f17ca docs: update framework todo verification status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-17 21:06:50 +08:00
5ea4607817 docs: correct framework todo completion status
Some checks failed
ci / build-test-parity (push) Has been cancelled
2026-06-17 20:58:12 +08:00
7fd11fe6a4 docs: add framework todo tracker 2026-06-17 20:50:32 +08:00
5946afa6e6 docs: 同步本会话进展到状态总览(real-first/树编辑布局/时间段过滤+Wave A两项)
Some checks failed
ci / build-test-parity (push) Has been cancelled
README §0/§1.1/§1.3 更新:
- §1.3 横向能力新增 3 个全站通用保真修复(树编辑 <layout> 布局保真、搜索时间段
  过滤 date-range→DateTime[]、real-first 流解析)+ 机制①扩出整页改写器。
- §1.1 功能模板下载/枚举组 → ✅,日志组 → 🟡(删除按钮接+real-first修通+时间段通)。
- §0 加本会话进展提要(6 提交已 push origin/main)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 18:02:20 +08:00
1b69f8b481 docs: 统一项目文档进 eip4-platform/docs + 新增进度路线总览
Some checks failed
ci / build-test-parity (push) Has been cancelled
- 从工作区根 docs/(非 git,未版本化)合并全部文档进版本控制,消除文档两头分裂
- 新增 README(状态总览+模块完成度+全文档索引)、项目进度与路线-总览-2026-06-17(A兼容/B新功能+关键路径+待拍板决策)
- 被取代的冲突状态/审计快照归入 归档/;对最易误导的两份("16视图已交付"实现交付报告、06-13架构快照)加"已归档"横幅
- 现行权威:engineclass移植backlog(46视图) + 用户管理Delta移植(方法论/交接) + 组件设计体系 + 通用模板收口 + 客户沟通
- 诚实口径:纵向模块仅用户管理 parity,横向引擎地基较全,余 153 定制视图(47 framework+106 业务)多为通用页已产·delta 未移植

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 14:53:29 +08:00
4b2cedfd1d feat: add AI page preview URL 2026-06-17 14:17:53 +08:00
d91da77038 feat: add AI render plan gate 2026-06-17 13:28:49 +08:00
718c5a5b9b feat: add AI tree CRUD recipe 2026-06-17 13:03:38 +08:00