@thinkingai/ae-cli 6.0.58 → 6.0.60

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 (253) hide show
  1. package/README.md +10 -5
  2. package/README.zh.md +10 -5
  3. package/bin/ai-monitor.js +2 -0
  4. package/dist/ai-monitor-FCXSLHAP.js +32 -0
  5. package/dist/ai-monitor.js +135 -0
  6. package/dist/{auth-A5OO4VS4.js → auth-ATK2SLEV.js} +10 -9
  7. package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
  8. package/dist/{capability-SKI4GHF4.js → capability-6KTSOI7L.js} +31 -35
  9. package/dist/{chunk-UYJMEHAF.js → chunk-2ETRY2CU.js} +15 -15
  10. package/dist/{chunk-QWSA3EOD.js → chunk-5E7MTTFN.js} +2 -2
  11. package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
  12. package/dist/chunk-6M7ZEDT2.js +182 -0
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-AXTO4FTM.js +1285 -0
  15. package/dist/{chunk-HQCY3QCA.js → chunk-BEYLCUZX.js} +17 -12
  16. package/dist/chunk-CF6JTT2U.js +64 -0
  17. package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
  18. package/dist/{chunk-K2Z7QHDR.js → chunk-HSZAIPUX.js} +47 -12
  19. package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
  20. package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
  21. package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
  22. package/dist/{chunk-GBSACKFB.js → chunk-LOR4IA26.js} +564 -314
  23. package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
  24. package/dist/{chunk-EEARZNHE.js → chunk-SDKW6LYE.js} +88 -36
  25. package/dist/{chunk-WMDO53YK.js → chunk-VJUXKVRE.js} +1 -1
  26. package/dist/chunk-VRMGHQKE.js +556 -0
  27. package/dist/{compat-check-WFEKVLTH.js → compat-check-XD2U7PZ2.js} +2 -2
  28. package/dist/{config-U4I7X25P.js → config-U3GDWU6E.js} +25 -12
  29. package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
  30. package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
  31. package/dist/index.js +84 -579
  32. package/dist/{memory-SNFR5M23.js → memory-WEB27VI6.js} +7 -7
  33. package/dist/{metadata-6QM6EED5.js → metadata-7FYE4234.js} +7 -7
  34. package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
  35. package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-O6VXM74A.js} +6 -6
  36. package/dist/{project-semantic-PSEPYH2L.js → project-semantic-2GGFJWW6.js} +15 -13
  37. package/dist/{sync-22ACDK5Z.js → sync-ULBB7WO5.js} +4 -4
  38. package/dist/{te-agent-BJ36B4QI.js → te-agent-6RMF7LUV.js} +5 -5
  39. package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-HSYC7GNV.js} +382 -193
  40. package/dist/{te-community-VRWMFGI6.js → te-community-FLKZGQKB.js} +9 -9
  41. package/dist/{te-dataops-YTLFTTW7.js → te-dataops-OQQGTCUA.js} +3 -3
  42. package/dist/{te-engage-V2QW7TIC.js → te-engage-RIEBHL5T.js} +9 -9
  43. package/dist/{te-kb-4AQLISDR.js → te-kb-4HG2FMHJ.js} +18 -9
  44. package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
  45. package/dist/{te-team-6ELNGBWT.js → te-team-5O4UVUWE.js} +5 -5
  46. package/dist/{things-HFWLGCUH.js → things-TSJ64GBT.js} +5 -5
  47. package/dist/{update-3CRVVHV5.js → update-Q5LURAWV.js} +3 -3
  48. package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
  49. package/package.json +8 -6
  50. package/skills/ae-ai-monitor/SKILL.md +179 -0
  51. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  52. package/skills/ae-analysis/SKILL.md +10 -4
  53. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  54. package/skills/ae-analysis/references/ai_models.md +1 -0
  55. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  56. package/skills/ae-analysis/references/asset_search.md +1 -1
  57. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  58. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  59. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  60. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  61. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  62. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  63. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  64. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  65. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  66. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  67. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  68. package/skills/ae-analysis/references/catalog_list.md +2 -0
  69. package/skills/ae-analysis/references/command_index.md +38 -29
  70. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  71. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  72. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  73. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  74. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  75. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  76. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  77. package/skills/ae-analysis/references/folder_share.md +8 -2
  78. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  79. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  80. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  81. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  82. package/skills/ae-analysis/references/project_member_add.md +3 -1
  83. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  84. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  85. package/skills/ae-analysis/references/project_member_update.md +3 -1
  86. package/skills/ae-analysis/references/project_owner_update.md +3 -1
  87. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  88. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  89. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  90. package/skills/ae-analysis/references/project_space_share.md +8 -2
  91. package/skills/ae-analysis/references/property_get.md +2 -0
  92. package/skills/ae-analysis/references/public_link_list.md +3 -1
  93. package/skills/ae-analysis/references/query_cancel.md +4 -1
  94. package/skills/ae-analysis/references/report_data_run.md +1 -1
  95. package/skills/ae-analysis/references/report_list.md +3 -3
  96. package/skills/ae-analysis/references/scenario_append.md +2 -2
  97. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  98. package/skills/ae-analysis/references/scenario_list.md +2 -1
  99. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  100. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  101. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  102. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  103. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  104. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  105. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  106. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  107. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  108. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  109. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  110. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  111. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  112. package/skills/ae-automation/SKILL.md +4 -2
  113. package/skills/ae-capability/SKILL.md +9 -5
  114. package/skills/ae-community/SKILL.md +1 -0
  115. package/skills/ae-dataops/SKILL.md +1 -0
  116. package/skills/ae-engage/SKILL.md +1 -0
  117. package/skills/ae-evaluation/SKILL.md +17 -2
  118. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  119. package/skills/ae-kb/SKILL.md +5 -3
  120. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  121. package/skills/ae-kb/references/query-workflow.md +3 -1
  122. package/skills/ae-kb/references/versions.md +1 -1
  123. package/skills/ae-metadata/SKILL.md +1 -0
  124. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  125. package/skills/ae-team/SKILL.md +1 -1
  126. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  127. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  128. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  129. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  130. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  131. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  132. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  133. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  134. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  135. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  136. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  137. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  138. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  139. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  140. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  141. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  142. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  143. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  144. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  145. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  146. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  147. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  148. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  149. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  150. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  151. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  152. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  153. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  154. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  155. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  156. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  157. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  158. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  159. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  160. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  161. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  162. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  163. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  164. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  165. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  166. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  167. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  168. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  169. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  170. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  171. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  172. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  173. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  174. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  175. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  176. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  177. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  178. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  179. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  180. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  181. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  182. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  183. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  184. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  185. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  186. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  187. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  188. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  189. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  190. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  191. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  192. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  193. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  194. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  195. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  196. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  197. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  198. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  199. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  200. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  201. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  202. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  203. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  204. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  205. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  206. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  207. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  208. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  209. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  210. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  211. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  212. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  213. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  214. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  215. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  216. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  217. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  218. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  219. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  220. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  221. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  222. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  223. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  224. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  225. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  226. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  227. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  228. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  229. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  230. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  231. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  232. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  233. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  234. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  235. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  236. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  237. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  238. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  239. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  240. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  241. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  242. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  243. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  244. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  245. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  246. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  247. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  248. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  249. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  250. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  251. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  252. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  253. package/dist/chunk-AMBFK2K3.js +0 -28
@@ -0,0 +1,406 @@
1
+ # Data Quality Validation SQL
2
+
3
+ Use the current `ae-cli analysis adhoc run` contract (inspect `--help` and the available analysis Skill reference first). The legacy `query_adhoc`, `query_event_details` and QP field names below are historical semantic examples, not callable tools or current request schemas. Translate the intended query to the verified CLI contract before execution. The SQL examples follow these historical constraints:
4
+
5
+ 1. CTE (WITH clause) is prohibited
6
+ 2. End with `LIMIT 100`
7
+ 3. GROUP BY uses numeric positions (1,2,3), not aliases
8
+ 4. In the QP, `events` is an **object** `{"sql": "..."}`, not an array; `eventView.requiredEvents` is filled with any event name involved
9
+ 5. `"$part_date"` and `"$part_event"` must appear in the WHERE clause
10
+
11
+ When using, replace `{project_id}` with the actual project ID, and `{query_date}` with the date condition (e.g., `BETWEEN '2026-05-14' AND '2026-05-20'`).
12
+
13
+ ---
14
+
15
+ ## S1: Event trigger volume check
16
+
17
+ ```sql
18
+ SELECT "#event_name", "#data_source", "#os", COUNT(1) AS "trigger_count",
19
+ COUNT(DISTINCT "#user_id") AS "triggering_users"
20
+ FROM ta.v_event_{project_id}
21
+ WHERE "$part_date" {query_date}
22
+ GROUP BY 1, 2, 3
23
+ ORDER BY 4 DESC
24
+ LIMIT 200
25
+ ```
26
+
27
+ Check each event's data source, trigger count, and triggering user count. Pay attention to: whether the data source is single (e.g., all Restful_API with no SDK), and whether the OS field is empty.
28
+
29
+ ---
30
+
31
+ ## S2: Distinct ID null rate check
32
+
33
+ ```sql
34
+ SELECT "#event_name", "#data_source",
35
+ COUNT_IF("#distinct_id" IS NULL) AS "distinct_id_null_events",
36
+ COUNT(1) AS "total_events",
37
+ 100.00 * COUNT_IF("#distinct_id" IS NULL) / COUNT(1) AS "distinct_id_null_pct"
38
+ FROM ta.v_event_{project_id}
39
+ WHERE "#data_source" IN ('Import_Tools', 'Server_SDK', 'Restful_API')
40
+ AND "$part_date" {query_date}
41
+ GROUP BY 1, 2
42
+ HAVING COUNT_IF("#distinct_id" IS NULL) != 0
43
+ ORDER BY 5 DESC
44
+ LIMIT 100
45
+ ```
46
+
47
+ Check the missing rate of `#distinct_id` in server-side reported events. An empty result means no problem.
48
+
49
+ ---
50
+
51
+ ## S3: No account_id field check
52
+
53
+ ```sql
54
+ SELECT "#event_name", "#data_source",
55
+ COUNT_IF("#account_id" IS NULL) AS "account_id_null_events",
56
+ COUNT(1) AS "total_events",
57
+ COUNT_IF("#account_id" IS NULL) * 100.00 / COUNT(1) AS "account_id_null_pct"
58
+ FROM ta.v_event_{project_id}
59
+ WHERE "$part_date" {query_date}
60
+ GROUP BY 1, 2
61
+ HAVING COUNT_IF("#account_id" IS NULL) > 0
62
+ ORDER BY 5 DESC
63
+ LIMIT 100
64
+ ```
65
+
66
+ Interpret S3 only after confirming account/no-account design and event applicability. In no-account or guest-only products (E1), 100% empty account_id with valid distinct_id is expected, not High. Pre-login/snapshot events may also be exempt. For confirmed post-login events requiring account_id, investigate missing IDs. Unknown design is TBC; both IDs missing is a distinct defect. SQL percentages alone do not assign severity.
67
+
68
+ ---
69
+
70
+ ## S4: No zone_offset field check
71
+
72
+ ```sql
73
+ SELECT "#event_name", "#data_source",
74
+ COUNT_IF("#zone_offset" IS NULL) AS "zone_offset_null_events",
75
+ COUNT(1) AS "total_events",
76
+ 100.00 * COUNT_IF("#zone_offset" IS NULL) / COUNT(1) AS "zone_offset_null_pct"
77
+ FROM ta.v_event_{project_id}
78
+ WHERE "$part_date" {query_date}
79
+ GROUP BY 1, 2
80
+ HAVING COUNT_IF("#zone_offset" IS NULL) != 0
81
+ ORDER BY 5 DESC
82
+ LIMIT 100
83
+ ```
84
+
85
+ Focus on non-client data sources (Restful_API, Server_SDK, Import_Tools).
86
+
87
+ ---
88
+
89
+ ## S5: ta_app_start/end pairing validation
90
+
91
+ ```sql
92
+ SELECT "#lib",
93
+ COUNT_IF("$part_event" = 'ta_app_start') AS "app_start_count",
94
+ COUNT_IF("$part_event" = 'ta_app_end') AS "app_end_count",
95
+ ABS(COUNT_IF("$part_event" = 'ta_app_start') - COUNT_IF("$part_event" = 'ta_app_end')) * 100.00
96
+ / GREATEST(COUNT_IF("$part_event" = 'ta_app_start'), COUNT_IF("$part_event" = 'ta_app_end')) AS "gap_pct"
97
+ FROM ta.v_event_{project_id}
98
+ WHERE "$part_date" {query_date}
99
+ AND "$part_event" IN ('ta_app_start', 'ta_app_end')
100
+ GROUP BY 1
101
+ LIMIT 100
102
+ ```
103
+
104
+ Check whether the SDK preset start/end events appear in pairs. An empty result means there is no SDK data in the date range.
105
+
106
+ ---
107
+
108
+ ## S6: ta_app_install ordering validation
109
+
110
+ **Prerequisite**: First use `list_events` to confirm that the project has the `ta_app_install` event. Skip if it does not.
111
+
112
+ The original version was a 4-level CTE (dataset → app_install/app_start → joined → aggregation); The historical query contract does not support CTE, so a self JOIN is used to flatten it.
113
+
114
+ The timezone correction (`#event_time → event_time_utc0`) is omitted in the new version: two events from the same device within 5 seconds have the same `#zone_offset`, so the correction cancels out naturally in the time-difference calculation.
115
+
116
+ ```sql
117
+ SELECT
118
+ install."#os",
119
+ COUNT(DISTINCT install."#user_id") AS "install_users",
120
+ COUNT(1) AS "install_events",
121
+ COUNT_IF(start."#distinct_id" IS NULL) AS "problem_installs",
122
+ COUNT_IF(start."#distinct_id" IS NULL) * 100.00 / COUNT(1) AS "problem_install_pct"
123
+ FROM ta.v_event_{project_id} install
124
+ LEFT JOIN ta.v_event_{project_id} start
125
+ ON install."#distinct_id" = start."#distinct_id"
126
+ AND start."$part_event" = 'ta_app_start'
127
+ AND start."$part_date" {query_date}
128
+ AND DATE_DIFF('second', install."#event_time", start."#event_time") BETWEEN 0 AND 5
129
+ WHERE install."$part_date" {query_date}
130
+ AND install."$part_event" = 'ta_app_install'
131
+ GROUP BY 1
132
+ LIMIT 100
133
+ ```
134
+
135
+ Check whether a corresponding `ta_app_start` occurs within 5 seconds after `ta_app_install` is triggered. When `problem_install_pct > 1%`, investigate the SDK initialization timing.
136
+
137
+ ---
138
+
139
+ ## S7: IP information completeness
140
+
141
+ ```sql
142
+ SELECT "#event_name", "#data_source",
143
+ COUNT(1) AS "geo_null_events",
144
+ COUNT_IF("#ip" IS NULL) AS "ip_null_events",
145
+ COUNT_IF("#ip" IS NOT NULL AND TRY_CAST("#ip" AS IPADDRESS) IS NULL) AS "ip_invalid_events",
146
+ COUNT_IF("#ip" IS NOT NULL AND TRY_CAST("#ip" AS IPADDRESS) IS NOT NULL) AS "ip_valid_but_unresolved"
147
+ FROM ta.v_event_{project_id}
148
+ WHERE "$part_date" {query_date}
149
+ AND ("#country" IS NULL OR "#province" IS NULL OR "#city" IS NULL)
150
+ GROUP BY 1, 2
151
+ ORDER BY 3 DESC
152
+ LIMIT 100
153
+ ```
154
+
155
+ Note: It is normal for third-party data (ad attribution, etc.) not to carry IP. If server-side reporting requires geo analysis, the `#ip` field must be added.
156
+
157
+ ---
158
+
159
+ ## S8: Event latency distribution check
160
+
161
+ ```sql
162
+ SELECT "#data_source", "#lib",
163
+ COUNT(1) AS "event_count",
164
+ MIN(DATE_DIFF('second', "#event_time", "#server_time")) AS "latency_min_seconds",
165
+ APPROX_PERCENTILE(DATE_DIFF('second', "#event_time", "#server_time"), 0.25) AS "latency_p25_seconds",
166
+ APPROX_PERCENTILE(DATE_DIFF('second', "#event_time", "#server_time"), 0.5) AS "latency_median_seconds",
167
+ APPROX_PERCENTILE(DATE_DIFF('second', "#event_time", "#server_time"), 0.75) AS "latency_p75_seconds",
168
+ MAX(DATE_DIFF('second', "#event_time", "#server_time")) AS "latency_max_seconds"
169
+ FROM ta.v_event_{project_id}
170
+ WHERE "$part_date" {query_date}
171
+ GROUP BY 1, 2
172
+ ORDER BY 6 DESC
173
+ LIMIT 100
174
+ ```
175
+
176
+ Latency = `#server_time` - `#event_time`. A negative value means the client clock is ahead of the server clock; a large positive value means data backlog.
177
+
178
+ ---
179
+
180
+ ## S9: Abnormal uid validation
181
+
182
+ ```sql
183
+ SELECT "#account_id", "#distinct_id", COUNT(1) AS uid_cnt
184
+ FROM ta.v_user_{project_id}
185
+ GROUP BY 1, 2
186
+ HAVING COUNT(1) > 1
187
+ LIMIT 100
188
+ ```
189
+
190
+ Check whether the same `#account_id` + `#distinct_id` combination maps to multiple `#user_id` values in the user table. An empty result means no anomaly.
191
+
192
+ ---
193
+
194
+ ## S10: ID mapping fragmentation initial check (simplified)
195
+
196
+ The historical SQL mode does not support CTE, so the full 7-level CTE fragmentation detection cannot run. Use the following simplified query for an initial screening:
197
+
198
+ ```sql
199
+ SELECT "#distinct_id", "#account_id", COUNT(DISTINCT "#user_id") AS uid_cnt
200
+ FROM ta.v_event_{project_id}
201
+ WHERE "$part_date" {query_date}
202
+ AND "#distinct_id" IS NOT NULL
203
+ AND "#account_id" IS NOT NULL
204
+ GROUP BY 1, 2
205
+ HAVING COUNT(DISTINCT "#user_id") > 1
206
+ LIMIT 100
207
+ ```
208
+
209
+ **If the result is non-empty**: fragmentation is suspected; guide the user to call the `te-user-id-debug` skill for deep investigation.
210
+
211
+ **The full fragmentation detection logic** must be run in the TE Web IDE (SQL > New Query); the original SQL is in the `id_mapping_split` query in `query_config.py`.
212
+
213
+ ---
214
+
215
+ ## Degradation strategies when columns are missing
216
+
217
+ Before running, first run the probe query `SELECT * FROM ta.v_event_{project_id} WHERE "$part_date" {query_date} LIMIT 1`, and make the following adjustments based on the returned column names:
218
+
219
+ ### S1 — missing `#os`
220
+
221
+ Remove `"#os"` from SELECT and GROUP BY:
222
+
223
+ ```sql
224
+ SELECT "#event_name", "#data_source", COUNT(1) AS "trigger_count",
225
+ COUNT(DISTINCT "#user_id") AS "triggering_users"
226
+ FROM ta.v_event_{project_id}
227
+ WHERE "$part_date" {query_date}
228
+ GROUP BY 1, 2
229
+ ORDER BY 3 DESC
230
+ LIMIT 200
231
+ ```
232
+
233
+ ### S4 — missing `#zone_offset`
234
+
235
+ Skip this item, and note in the report: "The event table has no #zone_offset column, skipped."
236
+
237
+ ### S5 — missing `#lib`
238
+
239
+ Remove `"#lib"` from SELECT and GROUP BY, and remove ORDER BY (only one row of results):
240
+
241
+ ```sql
242
+ SELECT
243
+ COUNT_IF("$part_event" = 'ta_app_start') AS "app_start_count",
244
+ COUNT_IF("$part_event" = 'ta_app_end') AS "app_end_count",
245
+ ABS(COUNT_IF("$part_event" = 'ta_app_start') - COUNT_IF("$part_event" = 'ta_app_end')) * 100.00
246
+ / GREATEST(COUNT_IF("$part_event" = 'ta_app_start'), COUNT_IF("$part_event" = 'ta_app_end')) AS "gap_pct"
247
+ FROM ta.v_event_{project_id}
248
+ WHERE "$part_date" {query_date}
249
+ AND "$part_event" IN ('ta_app_start', 'ta_app_end')
250
+ LIMIT 100
251
+ ```
252
+
253
+ ### S7 — missing `#ip` / `#country` / `#province` / `#city`
254
+
255
+ Skip this item, and note the reason in the report.
256
+
257
+ If only `TRY_CAST` is unavailable, simplify to a pure NULL check:
258
+
259
+ ```sql
260
+ SELECT "#event_name", "#data_source",
261
+ COUNT(1) AS "geo_null_events",
262
+ COUNT_IF("#ip" IS NULL) AS "ip_null_events"
263
+ FROM ta.v_event_{project_id}
264
+ WHERE "$part_date" {query_date}
265
+ AND ("#country" IS NULL OR "#province" IS NULL OR "#city" IS NULL)
266
+ GROUP BY 1, 2
267
+ ORDER BY 3 DESC
268
+ LIMIT 100
269
+ ```
270
+
271
+ ### S8 — missing `#lib`
272
+
273
+ Remove `"#lib"` from SELECT and GROUP BY.
274
+
275
+ If `APPROX_PERCENTILE` is unavailable, keep only MIN/MAX/COUNT:
276
+
277
+ ```sql
278
+ SELECT "#data_source",
279
+ COUNT(1) AS "event_count",
280
+ MIN(DATE_DIFF('second', "#event_time", "#server_time")) AS "latency_min_seconds",
281
+ MAX(DATE_DIFF('second', "#event_time", "#server_time")) AS "latency_max_seconds"
282
+ FROM ta.v_event_{project_id}
283
+ WHERE "$part_date" {query_date}
284
+ GROUP BY 1
285
+ ORDER BY 2 DESC
286
+ LIMIT 100
287
+ ```
288
+
289
+ ---
290
+
291
+ ## S11: Event property null rate check (per property)
292
+
293
+ This is the most core differentiating capability in the reference validation report. Compute the null rate for each custom property of each event, and flag anomalies by threshold.
294
+
295
+ ### Execution flow
296
+
297
+ 1. **Collect the property list**: Call `list_properties` to obtain all event properties in the project and their associated events.
298
+ 2. **Build the common property list**: Filter out the properties that actually exist in the project from the following "key common properties":
299
+ - `device_id`, `ip`, `client_type`, `client_version`, `event_time`
300
+ - `uid`, `geo_country`, `reg_country`, `traffic_source`
301
+ - `device_timezone`, `device_model`, `device_carrier`, `device_network`
302
+ - `device_language`, `device_version`, `log_unique_id`, `login_session_id`
303
+ - `dt`, `install_source`, `campaign_source`
304
+ 3. **Run S11a (common property cross-event scan)**: Concatenate the existing common properties into one SQL statement, grouped by event.
305
+ 4. **Run S11b (event-specific property deep scan)**: For events with volume ≥ 100, use `list_properties` to look up their specific properties, and build SQL per event.
306
+
307
+ ### S11a: Common property cross-event null rate scan
308
+
309
+ ```sql
310
+ SELECT "#event_name",
311
+ COUNT(1) AS "total_events"
312
+ {property_columns}
313
+ FROM ta.v_event_{project_id}
314
+ WHERE "$part_date" {query_date}
315
+ GROUP BY 1
316
+ ORDER BY 2 DESC
317
+ LIMIT 200
318
+ ```
319
+
320
+ Where `{property_columns}` has the format (one property per line):
321
+ ```sql
322
+ , COUNT_IF("device_id" IS NULL) * 100.00 / GREATEST(COUNT(1), 1) AS "device_id_null_rate"
323
+ , COUNT_IF("ip" IS NULL) * 100.00 / GREATEST(COUNT(1), 1) AS "ip_null_rate"
324
+ ```
325
+
326
+ **Construction rules**:
327
+ 1. From the property names returned by `list_properties`, match the common property list above.
328
+ 2. Only include properties that actually exist in the project (otherwise the SQL errors because the column does not exist).
329
+ 3. Skip system properties (columns starting with `#` such as `#event_name`, `#account_id`, `#distinct_id` — these are already checked in S2/S3).
330
+
331
+ ### S11b: Event-specific property deep scan
332
+
333
+ **Run only for events that meet the following conditions**:
334
+ - S11a shows a property null rate > 50%
335
+ - Or event volume ≥ 1000 (lowered to ≥ 100 when the project data volume is small)
336
+
337
+ For each target event:
338
+
339
+ 1. Call `list_properties` with `eventName` to obtain that event's property list.
340
+ 2. Filter out custom properties (not starting with `#`).
341
+ 3. Build a per-property SQL:
342
+
343
+ ```sql
344
+ SELECT
345
+ COUNT(1) AS "total_events"
346
+ {property_columns}
347
+ FROM ta.v_event_{project_id}
348
+ WHERE "$part_date" {query_date}
349
+ AND "$part_event" = '{event_name}'
350
+ LIMIT 100
351
+ ```
352
+
353
+ **Threshold judgment**:
354
+ - Null rate > 70%: 🔴 Anomalous, mark as "large-scale missing property"
355
+ - Null rate 30-70%: ⚠️ Needs confirmation (some events not carrying the property may be normal)
356
+ - Null rate < 30%: Usually normal
357
+
358
+ ### S11 degradation strategy
359
+
360
+ **When most common properties are missing**: Skip S11a, and run S11b directly to deep-scan the Top 5 events.
361
+
362
+ **When list_properties returns empty or errors**: Skip S11, and note in the report: "Unable to obtain the event property list, property null rate check skipped."
363
+
364
+ **When a single event has too many properties (> 50)**: Check only the first 50 properties, in the order returned by `list_properties`.
365
+
366
+ ---
367
+
368
+ ## S12: Event data source distribution statistics
369
+
370
+ Extract the summary from S1 results; no additional SQL is needed. If all `#data_source` values in S1 are null, note: "All events have an empty data_source, unable to distinguish data sources."
371
+
372
+ If an independent query is needed (when S1 was not grouped by data_source):
373
+
374
+ ```sql
375
+ SELECT "#data_source",
376
+ COUNT(1) AS "event_count",
377
+ COUNT(DISTINCT "#event_name") AS "event_type_count",
378
+ COUNT(DISTINCT "#user_id") AS "user_count"
379
+ FROM ta.v_event_{project_id}
380
+ WHERE "$part_date" {query_date}
381
+ GROUP BY 1
382
+ ORDER BY 2 DESC
383
+ LIMIT 100
384
+ ```
385
+
386
+ ---
387
+
388
+ ## S0: Event sample data extraction
389
+
390
+ Use a bounded read-only CLI query to extract 1 sample per event and verify data format, field type, and property structure. Discover the supported event-detail capability with `ae-cli capability search`, then inspect its contract before use; do not invoke the historical `query_event_details` name directly.
391
+
392
+ ### Execution method
393
+
394
+ For each event with volume > 0 in S1, call `query_event_details`:
395
+ - `eventName`: event name
396
+ - `startTime` / `endTime`: the query date range
397
+ - `limit`: 1
398
+
399
+ ### Sample uses
400
+ - Verify whether the actual property data type matches the tracking plan
401
+ - Discover JSON nested properties (e.g., `usr_cost_info.match_card`)
402
+ - Check property value formats (timestamps, enum values, etc.)
403
+
404
+ ### Degradation strategy
405
+ - When event count > 30: extract samples only for the Top 10 events by volume
406
+ - When `query_event_details` returns empty: note "This event has no data in the query range"
@@ -0,0 +1,128 @@
1
+ # Tracking Plan Comparison
2
+
3
+ **Run this step only when the user proactively provides a tracking plan document. If there is no plan document, skip it and note in the report: "No tracking plan provided, comparison skipped."**
4
+
5
+ ---
6
+
7
+ ## Accepted Plan Formats
8
+
9
+ The user may provide the tracking plan in the following ways:
10
+
11
+ ### Method 1: Feishu online document/sheet
12
+
13
+ The user provides a Feishu link. Use the `lark-doc` skill's `+fetch` to read the content, or use `lark-sheets` to read the sheet.
14
+
15
+ Common plan formats:
16
+ - Table in a Feishu document: Event name | Property name | Property type | Required | Description
17
+ - Feishu Bitable (multi-dimensional table)
18
+
19
+ ### Method 2: Local file
20
+
21
+ The user provides a local Excel (.xlsx) or CSV file path. Read it with the Read tool or pandas.
22
+
23
+ ### Method 3: Online URL
24
+
25
+ The user provides an online document link. Read it with the WebFetch tool or the corresponding skill.
26
+
27
+ ---
28
+
29
+ ## Plan Parsing
30
+
31
+ Regardless of the format, try to extract the following structured information:
32
+
33
+ ```json
34
+ {
35
+ "events": [
36
+ {
37
+ "event_name": "payment",
38
+ "properties": [
39
+ {"prop_name": "pay_amount", "prop_type": "number", "required": true},
40
+ {"prop_name": "item_id", "prop_type": "string", "required": true}
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ ```
46
+
47
+ If the plan format is non-standard or cannot be parsed automatically, confirm with the user before continuing.
48
+
49
+ ---
50
+
51
+ ## Comparison Dimensions
52
+
53
+ ### Dimension 1: Event existence
54
+
55
+ **Comparison content**: Events defined in the plan vs. events actually reported.
56
+
57
+ **Execution method**:
58
+ 1. Extract all event names from the plan document.
59
+ 2. Use SQL to query the events actually reported:
60
+ ```sql
61
+ SELECT DISTINCT "#event_name" FROM ta.v_event_{project_id}
62
+ WHERE "$part_date" {query_date} LIMIT 1000
63
+ ```
64
+ 3. Classify the comparison results into three categories:
65
+ - **In plan, not in data** → tracking not triggered or not integrated
66
+ - **In data, not in plan** → redundant events not defined in the plan
67
+ - **Consistent** → as expected
68
+
69
+ ### Dimension 2: Property name consistency
70
+
71
+ **Comparison content**: Properties defined for each event in the plan vs. properties in the actual data.
72
+
73
+ **Execution strategy (tiered by event count)**:
74
+ - **≤10 events**: sample-compare each event one by one using `query_event_details`
75
+ - **>10 events**: pick 3-5 representative events (Top N by trigger volume, or core business events) for sample comparison; the remaining events only get an existence check
76
+ - When the plan has 50+ events, prioritize the event existence comparison (Dimension 1); property comparison covers only core events
77
+
78
+ **Execution method**:
79
+ For each selected event, use `query_event_details` to sample and view the actual property list:
80
+ ```
81
+ query_event_details(projectId, eventName, startTime, endTime, limit: 10)
82
+ ```
83
+ Extract property names from the returned field list and compare with the plan:
84
+ - In plan, not in data → property not reported
85
+ - In data, not in plan → undefined extra property
86
+ - Consistent → as expected
87
+
88
+ ### Dimension 3: Property type consistency
89
+
90
+ **Comparison content**: Property types defined in the plan vs. actual data types.
91
+
92
+ **Execution method**:
93
+ For key properties (especially numeric ones), use `query_event_details` + the `properties` parameter to view the actual value format, and compare with the type definition in the plan.
94
+
95
+ For example: the plan defines `pay_amount` as number, but the actual value is the string `"9.99"` → type mismatch.
96
+
97
+ ---
98
+
99
+ ## Comparison Result Output
100
+
101
+ After the comparison, output a table:
102
+
103
+ ```
104
+ ## Tracking Plan Comparison Results
105
+
106
+ ### Event Comparison
107
+ | Event name | In plan | Actually reported | Status |
108
+ |--------|---------|---------|------|
109
+ | payment | Yes | Yes | Consistent |
110
+ | share | Yes | No | Missing |
111
+ | ad_click | No | Yes | Redundant |
112
+
113
+ ### Property Comparison (payment as an example)
114
+ | Property name | Plan type | Actually reported | Status |
115
+ |--------|---------|---------|------|
116
+ | pay_amount | number | number | Consistent |
117
+ | currency | string | Missing | Not reported |
118
+ | extra_data | - | string | Redundant property |
119
+ ```
120
+
121
+ ---
122
+
123
+ ## Notes
124
+
125
+ - The plan document may contain comment rows, merged cells, etc.; be as fault-tolerant as possible when parsing.
126
+ - The actually reported property list may include TE system properties (`#event_name`, `#user_id`, etc.); when comparing, automatically exclude system fields starting with `#` or `$`.
127
+ - If the plan document format is completely unrecognizable, show the user the raw content you read and ask them to confirm the format.
128
+ - The comparison results only flag differences, without making correctness judgments (some differences may be reasonable, e.g., the plan was not updated in time).
@@ -0,0 +1,74 @@
1
+ # Tracking Assistant Evaluation Case Set (eval-cases)
2
+
3
+ > v2.0.2 acceptance specification, not a pass certificate. Historical checkmarks were case registrations, not proof that this version passed. Automated business-semantic scoring (A6) is pending engineering; the [15 semantic checks](business-semantic-checks.md) are manual/model-assisted.
4
+ > Historical evidence: read-only audit and 2026-10-28 isolated v2.0 regression report (glm-5.3, personal copy, simplified prompt). Those results do not prove company deployment or v2.0.2 runtime behavior. Delivery-choice and structured-sync acceptance require new runs.
5
+
6
+ ## Case Overview and Evidence Boundaries
7
+
8
+ | # | Scenario | v2.0 isolated result (2026-10-28) | v2.0.2 runtime status |
9
+ |---|---|---|---|
10
+ | E1 | Match-3 / WeChat / IAA / no account | Partial: final 28 events, 11 sheets, lint passed after repair; missing ad_fail and callback/TBC | Not run |
11
+ | E2 | SLG / IAP / multi-role / Korea | Partial: final 53 events; first_* mismatch, English-to-Chinese drift and first-run lint failures | Not run |
12
+ | E3 | Card | Partial: final 42 events; first-run 181 E09 errors | Not run |
13
+ | E4 | Merge | Passed isolated v2.0: 25 events, 90 event-property rows, 6 common and 11 user properties | Not run |
14
+ | E5 | Livestream voice chat | Partial: final lint passed after type mapping | Not run |
15
+ | E6 | Jingchuan file increment + review | Blocked: original attachment unavailable | Not run; original attachment required |
16
+ | E7 | Project 9 cloud adjustment | Read-only/dry-run only; no real save/delete/change-log closure | Not run; separate scoped authorization required |
17
+
18
+ - **D1 routing**: three historical first-call routes (English review, Chinese troubleshooting, code generation) passed in the isolated v2.0 environment. Language/counting deviations still existed. D1 is not the seven-case content acceptance.
19
+ - **Seven cases (E1–E7)**: track first-run lint separately from repaired-final lint, per-case business semantics, language and evidence. Never collapse partial/skipped/dry-run into pass.
20
+ - **C5 non-owner permissions**: the historical test passed visibility/read/runtime for existing **company v1.5**, not company v2.0 or v2.0.1. New company deployment and post-deployment C5 remain untested.
21
+ - Record package version/hash, model, original vs simplified system prompt, environment/scope, case input, first/final lint results, actual event count, artifact/evidence and remaining gaps for each new run.
22
+
23
+ ## General Validation Points (each "from-scratch generation" case must pass)
24
+
25
+ | Dimension | Validation Point | Pass Criterion |
26
+ |---|---|---|
27
+ | Format | Complete 11 sheets | 4 data + 7 instruction; instruction sheets are unchanged |
28
+ | Format | Styles inherit template | Deep-blue header #2F75B5, no fill in body, borders, merged cells |
29
+ | Naming | Display names unique per validation domain | Event+common share a domain; user properties independent; semantic cross-domain conflicts reviewed separately |
30
+ | Naming | `#` preset properties not in custom tables | lint E01 does not report "#xxx invalid" |
31
+ | Naming | Standard verb suffixes | No forbidden forms like `_receive` / `_success` |
32
+ | Validation | First-run strict lint passes | Run `--strict-delivery --template assets/埋点模版.xlsx`; record actual exit/output and first-run vs repaired-final results separately |
33
+ | Validation | Semantic review | All 15 manual/model-assisted items have evidence; no pending required item, no claim of automatic scoring |
34
+ | Delivery | Choice and source parity | Reviewable online plan shown first; user then chooses direct structured sync or local Excel. Sync creates no workbook; Excel supplies complete 11 sheets only after selection. Actual distinct event counts agree with the canonical JSON, not property rows |
35
+ | Language | Follow the user's language | Route opening, questions, review and authored business descriptions follow user language; Chinese template labels/types unchanged, not an all-English workbook |
36
+ | Interaction | Scoped confirmation | Ask only missing high-impact facts; explicit repair-before-save-as and one later validated-upload confirmation cannot be skipped for a turn-count target |
37
+ | Speed | No Feishu calls | lark-cli calls = 0 for locally cached categories |
38
+ | Discovery | Bounded official discovery | Prefer known local paths; targeted `--help` or capability discovery + `inspect` when contract is unknown; never guess fields or repeat probes indefinitely |
39
+ | Upload | No automatic or destructive upload | New validated-upload workflow; no implicit delete/overwrite, no invented UI button, verify persistence beyond success envelope |
40
+
41
+ ## Case Highlights
42
+
43
+ ### E1 Match-3 (WeChat Mini Game · IAA · no account)
44
+ - Input: "Create a tracking plan for a Match-3 casual game"
45
+ - Key fields: stages (level_start/success/fail), ads (ad_show/complete/reward/fail), stamina, items
46
+ - Validation points: explicit `ad_fail` and complete IAA chain, confirmed `openid` guest-ID strategy, no-account `account_id` null not automatically High, unavailable ad revenue labelled requires ad-platform callback / TBC. No invented callback. Verify actual event count and language in both views.
47
+
48
+ ### E2 Jiu Mu Zhi Ye SLG (Three Kingdoms · IAP · single account multi-role · Korea)
49
+ - Input: "Create a Three Kingdoms SLG tracking plan"
50
+ - Key fields: Hero progression / City building / Alliance behavior / War battle / Payment five-tier + AppFlyer attribution
51
+ - Validation points: single-account multi-role ID system (`#account_id = role_id`, account ID stored as user property), alliance war active/passive sides emit a single event, attribution fields `first_media_source` / `first_campaign`
52
+
53
+ ### E3-E5 Card / Merge / Livestream Voice Chat
54
+ - Validation points: after category-template hit, read local cache (0 Feishu); naming precheck in effect; lint passes on first run.
55
+
56
+ ### E6 Jingchuan Project Adds User-Acquisition Fields (incremental · file-upload path)
57
+ - Input: "Add user-acquisition tracking to this plan + audit the existing plan" (uploads `Jingchuan_tracking_plan_20260422.xlsx`)
58
+ - Validation points: read original xlsx attachment → add user-acquisition fields (`media_source` / `campaign` / `revenue_value`) → fix lint errors → output new xlsx + diff list without overwriting the original.
59
+
60
+ ### E7 Project 9 Cloud Adjustment (incremental · cloud path)
61
+ - Input: "Add event X and deprecate event Y in Project 9's tracking plan"
62
+ - Validation points: discover official current read/write/delete contracts → read actual existing baseline → naming/type and semantic conflict check → separately scoped authorization for any actual add/update and deletion → execute only authorized actions → read-back and real change-log evidence. E7 deletion is not bundled into one-click upload; no hard-coded project 9 default or guessed capability fields. A dry-run cannot close this full case.
63
+
64
+ ## Local Test Gate vs Runtime Acceptance
65
+
66
+ Run the maintained local suite with `python3 -m unittest discover -s tests -v` in the package root, and record its actual output/exit code with the release. `tests/test_package_contracts.py` checks the 29-md inventory, registry paths, curated-catalog preservation/new-file safety, shared semantic-review IDs and documentation contracts; it does not execute remote commands or certify business semantics.
67
+
68
+ The other local suites cover their stated generator/lint/upload-adapter contracts. A fake CLI, synthetic fixture or local render test is not E1–E7 runtime acceptance, D1 original-systemPrompt routing, C5 company deployment permissions, D4 real dual-side dedup, or proof of a native UI button. Keep these evidence classes separate. Required runtime re-tests remain **Not run** until an authorized real run supplies evidence.
69
+
70
+ ## Cases To Supplement (need engineering / real scenarios)
71
+
72
+ - D4 dual-side dedup: needs a real "client + server dual-report" project to validate `#uuid` dedup and authoritative report point.
73
+ - A1 multi-attachment: once engineering fixes the bug, add a "two attachments uploaded together, both recognized" case.
74
+ - A5 mounting custom skill: once the capability is opened, add a "plan picks up business context after customer injects a business skill" case.