@thinkingai/ae-cli 6.0.61 → 6.0.63
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.
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/dist/{ai-monitor-NUKSJPLE.js → ai-monitor-X5GL44JT.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-MVAEBGBP.js → auth-SPQ46XQ3.js} +3 -3
- package/dist/{automation-6L6IAYRK.js → automation-7XC3VBZI.js} +85 -9
- package/dist/{capability-74N7AN5X.js → capability-JZP4KXZC.js} +3 -3
- package/dist/{chunk-SVNED423.js → chunk-2VKMHNUU.js} +4 -4
- package/dist/{chunk-JZY6WWAP.js → chunk-6HOM2FOJ.js} +10 -1
- package/dist/{chunk-COOMXFUG.js → chunk-AAN6KBUK.js} +2 -2
- package/dist/{chunk-H35VDOAE.js → chunk-E457FREE.js} +2 -2
- package/dist/{chunk-VLOGOM7N.js → chunk-ETQXIZFP.js} +2 -1
- package/dist/{chunk-XZDKAR4N.js → chunk-F36ORPI6.js} +3 -28
- package/dist/{chunk-7WBCSJL6.js → chunk-F7TCQPQX.js} +1 -1
- package/dist/{chunk-HRFYYEXR.js → chunk-FGGEF7MI.js} +2 -2
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-RB26WNLM.js → chunk-PRCHMOWT.js} +1 -1
- package/dist/{chunk-LPKIMGIU.js → chunk-RYY5NJK3.js} +2 -2
- package/dist/{chunk-OTZ4JQDU.js → chunk-VR2D54AA.js} +1 -1
- package/dist/{chunk-THTROEGD.js → chunk-YIG3L4RC.js} +1 -1
- package/dist/{chunk-XPARQSYS.js → chunk-YJYC5PLL.js} +2 -3
- package/dist/{chunk-HIMOBNEY.js → chunk-ZVUXAHEV.js} +1 -1
- package/dist/{compat-check-W4XC27RG.js → compat-check-JD5D77ET.js} +1 -1
- package/dist/{config-264GB6C7.js → config-IIMRATTP.js} +3 -3
- package/dist/{context-SOQDFZIB.js → context-BXHIPIIX.js} +1 -1
- package/dist/{data-integration-UNJ7EPW2.js → data-integration-VRJQ3HVK.js} +2 -1
- package/dist/index.js +33 -31
- package/dist/{memory-ZLTTULZK.js → memory-B44LY27L.js} +3 -3
- package/dist/{metadata-EN2IWCDI.js → metadata-ZVPG2MIA.js} +5 -5
- package/dist/{model-NAKQWK4W.js → model-ANZBYVST.js} +1 -1
- package/dist/{personal-semantic-preference-UGN67KTN.js → personal-semantic-preference-YNCV4QG3.js} +4 -4
- package/dist/{project-semantic-5OP3YPZD.js → project-semantic-E7ZAQL5S.js} +4 -4
- package/dist/{sync-LDJQZRQH.js → sync-Y4OZRQAY.js} +3 -3
- package/dist/{te-agent-WNNAD4AJ.js → te-agent-RKAUTYJZ.js} +4 -4
- package/dist/{te-analysis-KIMH6AGU.js → te-analysis-7N5VC4JB.js} +5 -5
- package/dist/{te-community-P7NNBVCS.js → te-community-SIA2UHTS.js} +4 -4
- package/dist/{te-dataops-ZRKSG4R7.js → te-dataops-5MJQCODU.js} +2 -2
- package/dist/{te-engage-PVBVNRSU.js → te-engage-ZTLOMKO3.js} +68 -16
- package/dist/{te-kb-W7PRC7QN.js → te-kb-LDL3MF2Y.js} +44 -13
- package/dist/{te-system-F4ZU2HRQ.js → te-system-473I5O53.js} +1 -1
- package/dist/{te-team-5ONMRGKF.js → te-team-JOWHCMZA.js} +87 -6
- package/dist/{things-PFENSIF4.js → things-DOQ2L3O2.js} +4 -4
- package/dist/{update-EUZ4GNND.js → update-KUS6TCPB.js} +2 -2
- package/dist/{workspace-Z7L33OBQ.js → workspace-MJFPIV7C.js} +3 -3
- package/package.json +3 -3
- package/skills/ae-automation/SKILL.md +6 -2
- package/skills/ae-automation/references/cli.md +9 -3
- package/skills/ae-engage/SKILL.md +6 -1
- package/skills/ae-engage/references/common-metric.md +47 -1
- package/skills/ae-engage/references/flow-metric-update.md +1 -1
- package/skills/ae-engage/references/task-metric-update.md +1 -1
- package/skills/ae-kb/SKILL.md +8 -6
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-team/SKILL.md +7 -3
- package/skills/ae-team/references/copy-to-personal.md +7 -0
- package/skills/ae-team/references/promote.md +7 -0
- package/skills/ae-team/references/update.md +3 -3
- package/skills/ae-tracking-matrix/SKILL.md +0 -170
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +0 -12
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
- package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
- package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
- package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
- package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
- package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
- package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
- package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
- package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
- package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
- package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
- package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
- package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
|
@@ -1,406 +0,0 @@
|
|
|
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"
|
|
@@ -1,128 +0,0 @@
|
|
|
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).
|
|
@@ -1,74 +0,0 @@
|
|
|
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.
|