From 229addcdf5ede198267fa2d992d2d38f473899e9 Mon Sep 17 00:00:00 2001 From: ssw Date: Sun, 12 Jul 2026 13:46:44 +0800 Subject: [PATCH] =?UTF-8?q?Round=202=20followup:=20TC-C=20=E6=BA=90?= =?UTF-8?q?=E7=A0=81=E6=B8=B2=E6=9F=93=E5=B1=82=E9=AA=8C=E8=AF=81=209/9=20?= =?UTF-8?q?PASS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TC-C = 源码渲染层验证 (dacli test render --module=form --formId=) 验证 vue 字段 ⊆ API 字段 关系成立 跑了 9 form: - 修复后 4 form (BS-drift-1 + BS-NCPF-400): F_prefix/snake/auto 都 4/4 PASS - 存量 5 form (修复前 snake 默认): 都 4/4 PASS 关键发现: - F_prefix 端到端保留 (formData + columnData + DB schema 一致) - snake 默认干净 (f_ 对齐系统字段 f_flow_* / f_id) - auto 混搭 (smartProps 加的字段保留 snake, 但渲染 ⊆ API 仍 PASS) - LLM 自由命名 (inputfield2a1f33) 部分存量容忍 结论: BS-drift-1 + BS-NCPF-400 修复未引入回归, 源码渲染层 100% 兼容 --- docs/drift/2026-07-12-summary.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/drift/2026-07-12-summary.md b/docs/drift/2026-07-12-summary.md index 6084bb0..1ebc069 100644 --- a/docs/drift/2026-07-12-summary.md +++ b/docs/drift/2026-07-12-summary.md @@ -8,12 +8,33 @@ - ✅ inferComponentProps 从 00378f2 提取恢复 (boot/bc18222) - ✅ smartProps 后处理 JS bug 修复 (dacli/1eadac2) - ✅ BS-drift-1 解决: columnList 命名规范适配 baseline (dacli/a2a0efa, 21/21 PASS) -- ✅ BS-NCPF-400 解决: SSW OpenAI proxy 让 NCPF 走 Anthropic 协议 (待 commit) +- ✅ BS-NCPF-400 解决: SSW OpenAI proxy 让 NCPF 走 Anthropic 协议 (boot/f66734d) +- ✅ TC-C 源码渲染层验证: 9/9 form 4/4 PASS (修复后 4 + 存量 5) - ✅ 5 张 baseline form 重建 (`dacli form create --ai <描述> --autoRelease`) - ✅ smartProps 修复后 rerun: 漂移 -41% (-11 字段) - ✅ `tests/integration/drift/form-drift.spec.ts` 21 个 test cases 全部 PASS - ✅ Round 2 漂移报告 (修复前后): `/tmp/dacli-loop/round2-drift.json` + `round2-rerun-drift.json` +## TC-C 源码渲染验证 (9 form) + +| FormId | enCode | Convention | 渲染字段示例 | TC-C | +|--------|--------|-----------|-------------|------| +| 845984195053355461 | receivableFeeForm | F_prefix | F_ReceivableFeeId, F_BuildingNo, F_RoomNo, F_CompanyName, F_ContactPerson, F_ContactInfo | 4/4 ✓ | +| 845985399015735749 | customerInfoForm | snake | f_customer_name, f_customer_phone, f_identity_number, f_customer_address | 4/4 ✓ | +| 845985474844557765 | vipClient | F_prefix | F_SerialNo, F_Salesman, F_ClientType, F_ClientGrade, F_ClientName, F_CheckboxNum001 | 4/4 ✓ | +| 845985516493996485 | nucleicAcidTestRegistration | auto | comInputField1-5, person_name, id_card_no, contact_phone, sample_time, sample_location, sample_staff, test_result, is_notified | 4/4 ✓ | +| 844095187268403525 | smartCfgTestForm | snake (存量) | cfg_name, cfg_type, cfg_status, user_id, port_num, ip_address, url_addr | 4/4 ✓ | +| 844085364627865925 | testAuditForm | snake (存量) | audit_status, user_id, quantity, audit_name | 4/4 ✓ | +| 842753201856840325 | simpleTestForm | snake (存量) | nameX (关键字修复), age | 4/4 ✓ | +| 842726167030006405 | clientProfile | snake (存量) | inputfield2a1f33, switchfielda723bc, checkboxfieldf7ac5c | 4/4 ✓ | +| 842726068438696581 | expenseReimbursement | snake (存量) | applicant_id, expense_type, amount, invoice_image, approver_id | 4/4 ✓ | + +**关键发现**: +- F_prefix convention 端到端保留 (formData.fields + columnData.columnList + DB table-schema 一致) +- snake (default) 命名干净 (语义名 + f_ 前缀对齐系统字段) +- auto convention 混搭 (smartProps 添加字段保留 snake, 命名不统一但 TC-C PASS) +- LLM 自由命名 (`inputfield2a1f33`) 部分存量容忍 (渲染 ⊆ API 即可) + ## 重建结果 (5 张 form · smartProps 修复后) | baseline enCode | baseline 字段 | rebuilt id | rebuilt enCode | 字段数差 |