@thinkingai/ae-cli 6.0.60 → 6.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/README.md +6 -1
  2. package/README.zh.md +8 -1
  3. package/bin/runtime-capabilities.json +1 -1
  4. package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-X5GL44JT.js} +10 -9
  5. package/dist/ai-monitor.js +14 -13
  6. package/dist/{auth-ATK2SLEV.js → auth-SPQ46XQ3.js} +18 -10
  7. package/dist/{automation-FLCPFMN4.js → automation-7XC3VBZI.js} +87 -12
  8. package/dist/{capability-6KTSOI7L.js → capability-JZP4KXZC.js} +10 -9
  9. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  10. package/dist/{chunk-VRMGHQKE.js → chunk-2VKMHNUU.js} +11 -11
  11. package/dist/{chunk-2ETRY2CU.js → chunk-6HOM2FOJ.js} +19 -9
  12. package/dist/{chunk-KTJXD27G.js → chunk-AAN6KBUK.js} +3 -3
  13. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  14. package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
  15. package/dist/{chunk-BEYLCUZX.js → chunk-E457FREE.js} +3 -3
  16. package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
  17. package/dist/{chunk-5M5LBRR3.js → chunk-ETQXIZFP.js} +15 -8
  18. package/dist/{chunk-72NJKS7O.js → chunk-F36ORPI6.js} +7 -32
  19. package/dist/{chunk-5E7MTTFN.js → chunk-F7TCQPQX.js} +23 -9
  20. package/dist/{chunk-AXTO4FTM.js → chunk-FGGEF7MI.js} +3 -3
  21. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  22. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  23. package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
  24. package/dist/chunk-N2MAYIRU.js +32 -0
  25. package/dist/chunk-NNK3JBH4.js +60 -0
  26. package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
  27. package/dist/{chunk-HSZAIPUX.js → chunk-PRCHMOWT.js} +7 -5
  28. package/dist/chunk-PUSFEC6B.js +29 -0
  29. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  30. package/dist/{chunk-SDKW6LYE.js → chunk-RYY5NJK3.js} +3 -3
  31. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  32. package/dist/{chunk-VJUXKVRE.js → chunk-VR2D54AA.js} +2 -2
  33. package/dist/{chunk-HVMCPKOZ.js → chunk-YIG3L4RC.js} +1 -1
  34. package/dist/{chunk-LOR4IA26.js → chunk-YJYC5PLL.js} +166 -188
  35. package/dist/{chunk-F2VFZUGG.js → chunk-ZVUXAHEV.js} +2 -2
  36. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  37. package/dist/{compat-check-XD2U7PZ2.js → compat-check-JD5D77ET.js} +5 -4
  38. package/dist/{config-U3GDWU6E.js → config-IIMRATTP.js} +7 -6
  39. package/dist/{context-YAQG6YQC.js → context-BXHIPIIX.js} +8 -6
  40. package/dist/{data-integration-QE37EQ3A.js → data-integration-VRJQ3HVK.js} +7 -6
  41. package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
  42. package/dist/index.js +49 -43
  43. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  44. package/dist/{memory-WEB27VI6.js → memory-B44LY27L.js} +6 -7
  45. package/dist/{metadata-7FYE4234.js → metadata-ZVPG2MIA.js} +10 -9
  46. package/dist/{model-T7H7Q6BG.js → model-ANZBYVST.js} +4 -5
  47. package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-YNCV4QG3.js} +45 -14
  48. package/dist/{project-semantic-2GGFJWW6.js → project-semantic-E7ZAQL5S.js} +9 -8
  49. package/dist/{sync-ULBB7WO5.js → sync-Y4OZRQAY.js} +9 -9
  50. package/dist/{te-agent-6RMF7LUV.js → te-agent-RKAUTYJZ.js} +303 -17
  51. package/dist/{te-analysis-HSYC7GNV.js → te-analysis-7N5VC4JB.js} +25 -20
  52. package/dist/{te-community-FLKZGQKB.js → te-community-SIA2UHTS.js} +13 -11
  53. package/dist/{te-dataops-OQQGTCUA.js → te-dataops-5MJQCODU.js} +13 -11
  54. package/dist/{te-engage-RIEBHL5T.js → te-engage-ZTLOMKO3.js} +73 -20
  55. package/dist/{te-kb-4HG2FMHJ.js → te-kb-LDL3MF2Y.js} +107 -25
  56. package/dist/{te-system-AL4B4XZL.js → te-system-473I5O53.js} +6 -7
  57. package/dist/{te-team-5O4UVUWE.js → te-team-JOWHCMZA.js} +92 -10
  58. package/dist/{things-TSJ64GBT.js → things-DOQ2L3O2.js} +9 -8
  59. package/dist/{update-Q5LURAWV.js → update-KUS6TCPB.js} +8 -6
  60. package/dist/{workspace-FF2HXJGR.js → workspace-MJFPIV7C.js} +6 -7
  61. package/package.json +6 -3
  62. package/skills/ae-agent/SKILL.md +19 -5
  63. package/skills/ae-agent/references/a2a.md +103 -0
  64. package/skills/ae-agent/references/command_index.md +11 -0
  65. package/skills/ae-analysis/SKILL.md +35 -23
  66. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  67. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  68. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  69. package/skills/ae-analysis/references/bad_case_review.md +4 -4
  70. package/skills/ae-analysis/references/command_index.md +7 -7
  71. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  72. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  73. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  74. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  75. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  76. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  77. package/skills/ae-analysis/references/project_owner_update.md +5 -1
  78. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  79. package/skills/ae-analysis/references/scenario_list.md +5 -6
  80. package/skills/ae-automation/SKILL.md +6 -2
  81. package/skills/ae-automation/references/cli.md +9 -3
  82. package/skills/ae-capability/SKILL.md +8 -4
  83. package/skills/ae-engage/SKILL.md +6 -1
  84. package/skills/ae-engage/references/common-metric.md +47 -1
  85. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  86. package/skills/ae-engage/references/task-metric-update.md +1 -1
  87. package/skills/ae-kb/SKILL.md +11 -7
  88. package/skills/ae-kb/references/publication.md +45 -0
  89. package/skills/ae-kb/references/query-workflow.md +5 -1
  90. package/skills/ae-team/SKILL.md +7 -3
  91. package/skills/ae-team/references/copy-to-personal.md +7 -0
  92. package/skills/ae-team/references/promote.md +7 -0
  93. package/skills/ae-team/references/update.md +3 -3
  94. package/dist/chunk-Y74WTIKJ.js +0 -10
  95. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  96. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  97. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  98. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  99. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  100. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  101. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  102. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  103. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  104. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  105. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  106. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  107. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  108. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  109. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  110. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  111. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  112. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  113. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  114. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  115. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  116. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  117. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  118. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  119. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  120. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  121. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  122. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  123. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  124. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  125. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  126. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  127. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  128. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  129. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  130. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  131. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  132. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  133. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  134. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  135. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  136. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  137. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  138. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  139. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  140. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  141. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  142. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  143. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  144. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  145. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  146. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  147. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  148. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  149. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  150. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  151. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  152. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  153. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  154. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  155. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  156. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  157. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  158. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  159. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  160. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  161. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  162. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  163. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  164. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  165. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  166. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  167. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  168. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  169. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  170. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  171. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  172. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  173. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  174. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  175. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  176. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  177. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  178. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  179. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  180. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  181. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  182. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  183. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  184. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  185. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  186. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  187. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  188. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  189. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  190. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  191. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  192. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  193. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  194. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  195. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  196. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  197. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  198. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  199. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  200. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  201. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  202. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  203. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  204. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  205. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  206. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  207. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  208. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  209. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  210. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  211. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  212. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  213. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  214. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  215. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  216. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  217. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  218. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  219. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  220. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  221. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
@@ -1,232 +0,0 @@
1
- # TE Data Integration Quality Validation
2
-
3
- Runs systematic data integration quality checks on a TE project, covering event completeness, user identification, ID binding, latency distribution, and other dimensions, and finally generates a Feishu document report.
4
-
5
- ## Prerequisites
6
-
7
- The tool names and QP/SQL examples below are historical interface notes, not permission to guess current capability fields. Load the current official analysis/capability contract; use targeted `--help` or discovery + `inspect` when unknown. Verify schema/auth before querying, and stop repeated failures rather than probing indefinitely. In local-only work, perform no remote query or report creation.
8
-
9
- - **ae-cli analysis / capability**: Executes read-only queries and retrieves project/event/property metadata through the current CLI contract. Names such as `list_projects`, `get_project_config`, `list_events` and `query_event_details` below describe historical operations, not callable tools. Resolve them with targeted CLI help or capability search and inspect before execution.
10
- - **lark-doc skill**: Generates the Feishu document report (optional, only if the user needs an online report)
11
- - **te-user-id-debug skill**: Deep investigation of ID identification fragmentation (guide the user to it when anomalies are found; this skill does not re-implement it)
12
-
13
- ---
14
-
15
- ## Validation Workflow
16
-
17
- Execute the following 5 steps in order:
18
-
19
- ### Step 1: Locate the project and date
20
-
21
- 1. If the user has not specified a project, call `list_projects` to let the user choose.
22
- 2. Call `get_project_config` to obtain the timezone configuration.
23
- 3. Date range: default to the last 7 days. **In SQL mode**: replace `{query_date}` with `BETWEEN 'yyyy-MM-dd' AND 'yyyy-MM-dd'` (computed from the current date). The `relativeDateRange` parameter may not take effect under the SQL `modelType`; do not rely on it.
24
- 4. Call `list_events` to confirm which events are available in the project (this affects the feasibility of subsequent checks).
25
- 5. **Column existence pre-check**: Run a probe query to obtain the actual column names of the event table, to avoid subsequent SQL failing in bulk because columns do not exist:
26
-
27
- ```sql
28
- SELECT * FROM ta.v_event_{project_id} WHERE "$part_date" {query_date} LIMIT 1
29
- ```
30
-
31
- From the returned column names, check whether the following key columns exist, and trim subsequent SQL accordingly:
32
-
33
- | Missing column | Affected check | Handling |
34
- |--------|--------|------|
35
- | `#os` | S1 | Remove `"#os"` from S1's SELECT and GROUP BY |
36
- | `#lib` | S5, S8 | Remove `"#lib"` from S5/S8 and adjust GROUP BY accordingly |
37
- | `#ip` | S7 | Skip S7 |
38
- | `#country`, `#province`, `#city` | S7 | Skip S7 |
39
- | `#zone_offset` | S4 | Skip S4 |
40
- | `TRY_CAST` not recognized | S7 | Keep only the `#ip IS NULL` check in S7 and drop the type validation part |
41
- | `APPROX_PERCENTILE` not recognized | S8 | Keep only MIN/MAX/COUNT in S8 and drop the percentile rows |
42
-
43
- **Note**: An empty sample does not establish the schema. Prefer one targeted metadata discovery through the verified interface; if schema remains unavailable, skip dependent checks with a concrete reason rather than running guessed SQL or repeatedly probing other tables.
44
-
45
- ### Step 2: Run SQL quality validation
46
-
47
- Run each validation SQL one by one. The detailed definitions and historical query adaptation notes for all SQL are in `references/data-verification/sql_checks.md`.
48
-
49
- **Historical SQL constraints (verify against the current CLI contract)**:
50
- - **CTE (WITH clause) is not supported** — all queries must be rewritten as subqueries or flattened
51
- - SQL must end with `LIMIT 100`
52
- - In the QP, `events` is an **object** `{"sql": "..."}`, not an array — `"events": {"sql": "SELECT ..."}`
53
- - The QP must include `eventView.requiredEvents` (fill in any event name involved)
54
- - GROUP BY must use numeric positions (`GROUP BY 1,2,3`), not aliases
55
- - Column names must be wrapped in double quotes (`"#event_name"`)
56
- - `"$part_date"` and `"$part_event"` are partition fields and must be used in WHERE
57
-
58
- **Execution method**: Use `query_adhoc` with `modelType: "sql"`, and obtain `zoneOffset` from `get_project_config`.
59
-
60
- There are 13 available validation items, divided into two phases:
61
-
62
- **Phase A: System-level validation (S1-S10)**
63
-
64
- | # | Validation item | Reference SQL | Dependent optional column | Description |
65
- |---|--------|---------|-----------|------|
66
- | 0 | Event sample data extraction | `references/data-verification/sql_checks.md#S0` | None | Use query_event_details to fetch 1 sample per event |
67
- | 1 | Event trigger volume check | `references/data-verification/sql_checks.md#S1` | `#os` (removable) | Count volume by event/data source/OS |
68
- | 2 | Distinct ID null rate | `references/data-verification/sql_checks.md#S2` | None | Missing `#distinct_id` in server-side events |
69
- | 3 | No account_id | `references/data-verification/sql_checks.md#S3` | None | Which events do not carry `#account_id` |
70
- | 4 | No zone_offset | `references/data-verification/sql_checks.md#S4` | `#zone_offset` (skip if missing) | Timezone field missing rate |
71
- | 5 | ta_app_start/end pairing | `references/data-verification/sql_checks.md#S5` | `#lib` (removable) | Whether the two preset events appear in pairs |
72
- | 6 | ta_app_install ordering | `references/data-verification/sql_checks.md#S6` | None | Run only when the project has this event |
73
- | 7 | IP information completeness | `references/data-verification/sql_checks.md#S7` | `#ip`, `#country`, etc. (skip if missing) | IP null / invalid / resolution failed |
74
- | 8 | Event latency distribution | `references/data-verification/sql_checks.md#S8` | `#lib` (removable) | server_time vs event_time |
75
- | 9 | Abnormal uid validation | `references/data-verification/sql_checks.md#S9` | None | One aid/did mapping to multiple uids |
76
- | 10 | ID mapping fragmentation initial check | `references/data-verification/sql_checks.md#S10` | None | **The historical contract does not support CTE; use the simplified version** |
77
-
78
- **Phase B: Property-level validation (S11-S12)**
79
-
80
- | # | Validation item | Reference SQL | Dependency | Description |
81
- |---|--------|---------|------|------|
82
- | 11 | Event property null rate check | `references/data-verification/sql_checks.md#S11` | `list_properties` | **Core addition**: compute null rate per event per property and flag by threshold |
83
- | 12 | Data source distribution statistics | `references/data-verification/sql_checks.md#S12` | None (can be extracted from S1) | Report volume, event type count, and user count distribution per data source |
84
-
85
- **Execution strategy**:
86
- - **S0** can be launched in parallel with other SQL (uses query_event_details, non-SQL mode)
87
- - **S1-S5, S7-S9** can be launched in parallel (independent of each other)
88
- - **S6** first confirm the event exists, then run
89
- - **S10** use the simplified SQL for an initial screening; if there are anomalies → 🚩 guide the user to call the `te-user-id-debug` skill for deep investigation
90
- - **S11** depends on S1 results (to obtain the event list) and `list_properties` (to obtain the property list); run after S1 completes
91
- - **S12** can be extracted directly from S1 results, no additional query needed
92
-
93
- After each check, record: validation name, whether it succeeded, and the result summary (row count, key values).
94
-
95
- ### Step 3: Tracking plan comparison (conditional)
96
-
97
- **Run this step only when the user has provided a tracking plan document**. If the user has not provided any plan document, skip this step and note in the report: "No tracking plan provided, comparison skipped."
98
-
99
- The user may provide:
100
- - A local Excel/CSV file path
101
- - A Feishu document/sheet link
102
- - An online document URL
103
-
104
- See `references/data-verification/tracking_plan_comparison.md` for the specific parsing and comparison method.
105
-
106
- ### Step 4: Result diagnosis
107
-
108
- For the anomalous results of each validation item, match diagnostic suggestions from the knowledge base in `references/data-verification/diagnosis_kb.md`.
109
-
110
- Diagnosis output format:
111
- ```
112
- Validation item: <name>
113
- Anomaly found: <specific values>
114
- Possible cause: <matched from the knowledge base>
115
- Suggested fix: <matched from the knowledge base>
116
- ```
117
-
118
- **Special rules for S11 property null rate diagnosis**:
119
- 1. First determine the event's data source (from S1/S12): it is normal for a purely server-side event not to carry client-side properties (`device_id`, `client_type`, `device_model`, etc.), so do not flag it as anomalous.
120
- 2. If the same property is null across multiple events → it may be an overall integration problem (e.g., the server did not pass through `ip`).
121
- 3. If only a specific event's property is null → it may be an omission in that event's reporting logic.
122
-
123
- **Severity rules**:
124
- - **Identity prerequisite (S2/S3)**: first confirm whether the product has accounts, which events are post-login, and the expected visitor/account ID assignment. For a no-account / guest-only product (including E1), 100% empty `#account_id` is expected when a valid `#distinct_id` is present; mark S3 not applicable/expected, not High. Unknown identity design is TBC, not an automatic severity verdict. If both IDs are absent, investigate separately as an identification defect.
125
- - **High**: `#account_id` 100% missing on events confirmed to require a logged-in account; abnormal uid is non-empty; IP entirely null where required; median latency > 1 hour; required event-property null rate > 90%. Apply business applicability before thresholds.
126
- - **Medium**: distinct_id missing rate > 10%, zone_offset missing rate > 50%, start/end gap > 20%, event property null rate 70-90%
127
- - **Low**: zone_offset missing rate < 50%, latency percentiles in the minute range, a few events missing the OS field, event property null rate 30-70%
128
-
129
- **Property null rate thresholds (S11-specific)**:
130
- - **> 70%**: 🔴 Anomalous — "large-scale missing property"; investigate whether the reporting logic omitted it
131
- - **30-70%**: ⚠️ Needs confirmation — some events not carrying the property may be a normal business difference (e.g., server-side events have no client-side properties)
132
- - **< 30%**: Usually normal, not flagged
133
- - **Special case**: A purely server-side event not carrying client-side properties such as `device_id`, `client_type` is **normal design**, and is not flagged as anomalous even at a 100% null rate.
134
-
135
- ### Step 5: Generate the Feishu document report
136
-
137
- Use the `lark-doc` skill to create a Feishu document and output a structured validation report.
138
-
139
- **Note**: Feishu document callout blocks do not support tables, code blocks, or images. Anomaly details involving tables (such as S8 latency distribution) must be converted to list format inside the callout.
140
-
141
- **Report template**:
142
-
143
- ```
144
- # <project name> Data Integration Quality Validation Report
145
-
146
- ## Basic Information
147
- - Project: <project_name> (ID: <project_id>)
148
- - Validation time: <current time>
149
- - Data range: <start_date> ~ <end_date>
150
- - Timezone: UTC+<offset>
151
- - Total event volume: <total_events> rows (<N> days)
152
- - Total event types: <event_type_count>
153
-
154
- ## Validation Result Overview
155
- | Validation item | Status | Key findings |
156
- |--------|------|---------|
157
- | S0 Event sample data | ... | ... |
158
- | S1 Event trigger volume check | ... | ... |
159
- | S2 Distinct ID null rate | ... | ... |
160
- | ... one row per item ... |
161
- | S11 Event property null rate | ... | ... |
162
- | S12 Data source distribution | ... | ... |
163
-
164
- ## Anomaly Details (sorted by severity)
165
-
166
- ### High
167
- <list one by one, with diagnostic suggestions>
168
-
169
- ### Medium
170
- <list one by one, with diagnostic suggestions>
171
-
172
- ### Low
173
- <list one by one>
174
-
175
- ## Event Property Null Rate Details
176
-
177
- <Output this section only when S11 finds anomalous properties>
178
-
179
- Group by event, and list properties with null rate > 70%:
180
-
181
- ### <event name 1> (total event volume: <N>)
182
- | Property name | Null rate | Verdict |
183
- |--------|--------|------|
184
- | property_a | 85% | 🔴 Anomalous |
185
- | property_b | 72% | 🔴 Anomalous |
186
-
187
- ### <event name 2>
188
- ...
189
-
190
- Also list a cross-event coverage summary of key properties:
191
- | Property name | Events with value | Total events | Overall null rate |
192
- |--------|-----------|---------|-----------|
193
- | device_id | 3 | 20 | 85% |
194
- | ip | 5 | 20 | 75% |
195
- | client_type | 8 | 20 | 60% |
196
-
197
- ## Event Sample Data
198
-
199
- <1 JSON sample per event, only show the Top 10 events>
200
-
201
- ### <event name 1>
202
- ```json
203
- {...}
204
- ```
205
-
206
- ## Skipped Items
207
- - List the checks that were not executed because conditions were not met, and the reasons
208
-
209
- ## Diagnostic Suggestions Summary
210
- <List all issues that need fixing, sorted by priority>
211
-
212
- ## Notes
213
- - This report is auto-generated by the TE data integration quality validation tool
214
- - For deep investigation of ID identification fragmentation, use /te-user-id-debug
215
- - TE's built-in data acceptance (OriChecker/tracking plan acceptance) must be run by logging into the TE console
216
- ```
217
-
218
- Also suggest to the user:
219
- - If needed, use the `te-user-id-debug` skill for deep ID fragmentation investigation
220
- - TE's built-in data acceptance feature requires logging into the TE console → Data Management → Data Validation → New Validation
221
-
222
- ---
223
-
224
- ## Notes
225
-
226
- - **Privacy data**: Do not display specific values of user identifiers such as `#account_id`, `#user_id`, `#ip`; only show statistical aggregates.
227
- - **Large projects**: When data volume exceeds 10 million/day, remind the user to narrow the date range.
228
- - **Empty results**: An empty result for a validation item is usually good news (meaning no anomalies); explain this in the report.
229
- - **SQL errors**: If the CLI SQL query reports an error, first check whether any of the query constraints above were violated; if it is a column-not-exist error (e.g., `column "#os" does not exist`), degrade handling per the column existence pre-check table in Step 1; do not simply abandon that check.
230
- - **te-user-id-debug**: For ID fragmentation-related issues, only do an initial check; always guide deep investigation to the `te-user-id-debug` skill.
231
- - **S11 property null rate**: A purely server-side event missing client-side properties (device_id, client_type, etc.) is normal design, not flagged as anomalous. Check the event's data source before judging anomalies.
232
- - **S0 sample data**: Fields involving user privacy (`#account_id`, `ip`, etc.) must be masked before display.