|
|
bf5659590f
|
chore: 清理可再生 schema 产物 + gitignore 收口 + 菜单维护树计划/SQL
删除已跟踪的 batch_regression schema 产物(BatchConvertCli 可重生,体量大);.gitignore 屏蔽 tools/s3_rewriter/output/schema{,_out,_wsd}(各~20M)与 output 下重生副本分级清单.csv。补 2026-06-15 菜单维护树模式重建与树选择框修复计划 + menu_maintain 主子表 upsert SQL。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-16 14:09:00 +08:00 |
|
|
|
5288021773
|
C3 卫生:.gitignore 收纳可再生噪声 + 移出已跟踪的 __pycache__
新增忽略:__pycache__//*.pyc、/data//platform-app/data//test-results/、
rewriter output 备份、转换产物/schema(BatchConvertCli 重生,体量大)。
git rm --cached tools/s3_rewriter/__pycache__(误入版本库的 .pyc,保留磁盘文件)。
分级清单.csv 报告仍单独跟踪。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
2026-06-14 00:03:37 +08:00 |
|
|
|
aa576ea2c6
|
F2-4b: rewrite 规则扩展 + item 改进 + 最终批量结果
- rewrite.py: 新增 _VAADIN_EXTRA_IMPORT_RE / _DSASP_CLIENT_IMPORT_RE /
_ENVIROMENT_GET_IMPORT_RE 三条 import 剥离规则,统一在 5.9 清理节
运行;补多余引号修复(源数据 bug "...SQL 100"";")
- run_batch_regression.py: connect_db 优先连本地 eip4dev:5433,
回退远程 192.168.20.68:5435
- output/rewritten/*.groovy: 规则重跑后的 rewritten 产物更新
- output/manual_workpackage/*.md: 对应工包重生成
- output/batch_regression_20260612_053253.json: 最终批跑结果
FULL_AUTO 94.1%(476/506);删除 3 个中间产物 JSON
- docs/P1/F2-4批量回归报告.md: 最终通过率写入报告
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-12 05:33:41 +08:00 |
|
|
|
b453dde65f
|
F2-4: 全量批量回归 harness + 报告 + Notification import 修复
- 新增 tools/s3_rewriter/run_batch_regression.py:1,322 条(FULL_AUTO 507 + NO_S3 815)
全量批量回归 harness;并发 6,写路径安全排除,失败自动归因分桶
- rewrite.py F2-4 修复:新增 _NOTIF_IMPORT_RE,在 _apply_dynamic_button 和
rewrite_script 末尾统一剥离 com.vaadin.ui.Notification import,下次重跑改写器自动生效
- 磁盘产物 patch:17 条 FULL_AUTO groovy 批量剥离 Notification import
- 结果 JSON:batch_regression_20260612_024512.json(0.46MB)
- 报告:docs/P1/F2-4批量回归报告.md
回归结论:FULL_AUTO 90.7%(459/506),闭包动词专项 3/4 通过,
e2e 50 基线 46/50(4 条均在已知缺口桶,无新增回归),真缺口 42 条
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-12 02:47:23 +08:00 |
|
|
|
43fdfd1830
|
F2-3:运行时动词闭包子指令机制 + staging 晋级(FULL_AUTO 507/HARD 74)
ScriptFacade:addFieldButton 扩第3参闭包(onClick 子指令数组)+ showConfirm
新动词,服务端急切求值闭包,子指令收进子缓冲,输出嵌套指令 JSON。
前端 scriptCommands.ts/registerReplayAction.ts:处理 addButton onClick/
confirmDialog onOk 嵌套重放,onClickActions/onOkActions 透传给 amis。
ScriptFacadeTest 补 7 个正反例(24/24 全绿)。
staging 晋级:FULL_AUTO 507(+10)/HARD 74(-12)/自动化率 82.7%,
双库各更新 801 条,e2e 30/30 全绿。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 22:24:08 +08:00 |
|
|
|
252e55cff5
|
F2-3(规则族): 动态按钮族/comboBox深层访问族扩展,HARD 86→74,自动化率 81.1%→82.7%
规则族2(动态按钮): new Button + addClickListener + fieldVar.addButton(btnVar, N)
→ addFieldButton("FIELD", "文案", {闭包体}, N),命中 33 次,HARD→FULL_AUTO/PARTIAL -12
规则族3(深层访问): .comboBox.setValue → setFieldValue,.comboBox.removeItem → removeFieldItem
命中 6 次,5 个 PARTIAL 模板升为 FULL_AUTO
安全约束: 三元组不完整/来源不明/vl.addComponent 型一律保留 HARD,零误改
测试: 118 单测全绿(新增 13 条),output_staging 不入库
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 21:41:16 +08:00 |
|
|
|
a711ecd8f0
|
F2-4(一): 修 XML 实体污染并重批重入库,固化标准入库器
- run_eval: PG xpath(...)::text 保留实体转义(< → <),抽取后补 XML 预定义实体反转义
(等价手册 §5.3 dom4j getText() 语义);293 个污染产物清零,Groovy 编译失败根因消除
- 缓存重建(源=eip4dev,1428 条:1 模板改名+1 新增脚本属数据演进);全量重跑
497/30/86/815,自动化率 81.1% 守住 ≥80%
- 重大发现:同模板内脚本顺序在两次抽取间会交换((templateId,seq) 非稳定键,
welfare 模板 seq1↔seq2 实锤)——重批后 onEvent seq 已与磁盘对齐,长期需内容哈希键(登记 F2-4)
- tools/page-schema-loader/load_page_schema.py:幂等标准入库器(etag=sha256,version 递增,
仅允许 localhost 双库);本次双库各更新 756/幂等跳过 733,e2e 28/28 保持全绿
- 坑:mvn exec:java 的 -Dexec.args 引号空参会被吞导致参数错位(密码用占位符代替空串)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 21:27:38 +08:00 |
|
|
|
082b439179
|
P4-5: 实装改写后脚本挂回 amis onEvent 重放链路
转换器侧(事件段):TemplateToAmisConverter.attachScriptOnEvent 在页面
body 挂 inited+change 两类 onEvent,动作链 ajax 调 /api/script/execute-template
(传 templateId/seq/item:${&})→ replayScriptCommands 重放返回指令。
执行端点:ScriptExecuteController /api/script/execute-template 改接
{templateId,seq,item},RewrittenScriptStore 按 (tid,seq) 从改写产物
output/rewritten 取脚本正文(去头注释)经 facade 执行;原按名端点改
-by-name 保留 P4-2 兼容。
测试:RewrittenScriptStoreTest 4 + ScriptExecuteControllerTest 4 +
TemplateToAmisConverterTest 新增 4 onEvent 例;converter 28 / metadata 77 /
ArchUnit 1 全绿。
出入回写报告第五章 §5.3;新坑入手册 §8.5(组件级动作路由)/§8.6(改写产物取数键)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 16:55:43 +08:00 |
|
|
|
aefb0e2eb9
|
P4-2 脚本迁移线:全量改写产出 + facade 动词表运行时实现
任务1 全量改写执行:
- run_rewrite.py 对客户库缓存 1,427 条逐条改写,按 template_id+脚本序号落盘
output/rewritten/(497 FULL_AUTO + 30 PARTIAL + 85 HARD + 815 NO_S3)
- 人工作业单 115 份(PARTIAL 30 + HARD 85),每份附原文/已改部分/余留模式/建议改法/工时口径
- 自动化率 81.2% 复现 C4 实测,0 误改
任务2 facade 动词表运行时:
- ScriptFacade 把 31 改写目标动词 + bindField 作为 Groovy 闭包注入 Bindings
(PoC enableButton 模式扩展);服务端语义动词直接求值,UI 语义动词捕获为
amis 事件动作指令 JSON(actionType/componentId/args)
- 保真层纪律:全在 com.eip4 现代层,com.dsasp 源码零改,ArchUnit 复跑通过
- ScriptExecuteController 提供 /api/script/execute 与 /api/script/execute-template
验证:
- 单测 17 方法逐动词覆盖,均经真实 Groovy 过保真层引擎,BUILD SUCCESS
- 集成 6 条真实 FULL_AUTO 改写脚本经 8086 执行,amis 指令协议合规
- 回归 PoC script-test 通过,ArchUnit 架构纪律通过
报告 tools/s3_rewriter/P4脚本迁移执行报告.md;新坑入 docs/迁移手册.md 5.39/9.3
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 16:10:22 +08:00 |
|
|
|
c174fbdf83
|
chore: 工具迁入正式工程 + 工程 README + 根目录草稿报告入 ignore
- eip4-poc/tools/{s3_rewriter,loadtest} → tools/(P4 改写器种子与压测 harness 随工程演进,PoC 冻结)
- 新增工程 README(模块图/纪律/常用命令/自举说明)
- 根目录 parity-reports/ 为 CLI 默认输出草稿,入 .gitignore(正式报告在 platform-parity/parity-reports/)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-06-11 11:20:01 +08:00 |
|