@thinkingai/ae-cli 6.1.37 → 6.1.39
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 +3 -1
- package/README.zh.md +3 -1
- package/cli-installation-guide.md +1 -2
- package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
- package/dist/ai-monitor.js +7 -7
- package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
- package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
- package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
- package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
- package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
- package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
- package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
- package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
- package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
- package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
- package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
- package/dist/chunk-N2MAYIRU.js +32 -0
- package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
- package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
- package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
- package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
- package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
- package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
- package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
- package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
- package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
- package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
- package/dist/index.js +34 -32
- package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
- package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
- package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
- package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
- package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
- package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
- package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
- package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
- package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
- package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
- package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
- package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
- package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
- package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
- package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
- package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
- package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
- package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
- package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.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-experiment/SKILL.md +1 -1
- package/skills/ae-experiment/references/save_experiment.md +1 -1
- package/skills/ae-kb/SKILL.md +8 -6
- package/skills/ae-kb/references/query-workflow.md +5 -1
- package/skills/ae-onboarding/SKILL.md +2 -2
- package/skills/ae-onboarding/references/onboarding_run.md +1 -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,232 +0,0 @@
|
|
|
1
|
-
# TE Data Integration Quality Validation
|
|
2
|
-
|
|
3
|
-
Runs systematic data integration quality checks on a TE project, covering event completeness, user identification, ID binding, latency distribution, and other dimensions, and finally generates a Feishu document report.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
The tool names and QP/SQL examples below are historical interface notes, not permission to guess current capability fields. Load the current official analysis/capability contract; use targeted `--help` or discovery + `inspect` when unknown. Verify schema/auth before querying, and stop repeated failures rather than probing indefinitely. In local-only work, perform no remote query or report creation.
|
|
8
|
-
|
|
9
|
-
- **ae-cli analysis / capability**: Executes read-only queries and retrieves project/event/property metadata through the current CLI contract. Names such as `list_projects`, `get_project_config`, `list_events` and `query_event_details` below describe historical operations, not callable tools. Resolve them with targeted CLI help or capability search and inspect before execution.
|
|
10
|
-
- **lark-doc skill**: Generates the Feishu document report (optional, only if the user needs an online report)
|
|
11
|
-
- **te-user-id-debug skill**: Deep investigation of ID identification fragmentation (guide the user to it when anomalies are found; this skill does not re-implement it)
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Validation Workflow
|
|
16
|
-
|
|
17
|
-
Execute the following 5 steps in order:
|
|
18
|
-
|
|
19
|
-
### Step 1: Locate the project and date
|
|
20
|
-
|
|
21
|
-
1. If the user has not specified a project, call `list_projects` to let the user choose.
|
|
22
|
-
2. Call `get_project_config` to obtain the timezone configuration.
|
|
23
|
-
3. Date range: default to the last 7 days. **In SQL mode**: replace `{query_date}` with `BETWEEN 'yyyy-MM-dd' AND 'yyyy-MM-dd'` (computed from the current date). The `relativeDateRange` parameter may not take effect under the SQL `modelType`; do not rely on it.
|
|
24
|
-
4. Call `list_events` to confirm which events are available in the project (this affects the feasibility of subsequent checks).
|
|
25
|
-
5. **Column existence pre-check**: Run a probe query to obtain the actual column names of the event table, to avoid subsequent SQL failing in bulk because columns do not exist:
|
|
26
|
-
|
|
27
|
-
```sql
|
|
28
|
-
SELECT * FROM ta.v_event_{project_id} WHERE "$part_date" {query_date} LIMIT 1
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
From the returned column names, check whether the following key columns exist, and trim subsequent SQL accordingly:
|
|
32
|
-
|
|
33
|
-
| Missing column | Affected check | Handling |
|
|
34
|
-
|--------|--------|------|
|
|
35
|
-
| `#os` | S1 | Remove `"#os"` from S1's SELECT and GROUP BY |
|
|
36
|
-
| `#lib` | S5, S8 | Remove `"#lib"` from S5/S8 and adjust GROUP BY accordingly |
|
|
37
|
-
| `#ip` | S7 | Skip S7 |
|
|
38
|
-
| `#country`, `#province`, `#city` | S7 | Skip S7 |
|
|
39
|
-
| `#zone_offset` | S4 | Skip S4 |
|
|
40
|
-
| `TRY_CAST` not recognized | S7 | Keep only the `#ip IS NULL` check in S7 and drop the type validation part |
|
|
41
|
-
| `APPROX_PERCENTILE` not recognized | S8 | Keep only MIN/MAX/COUNT in S8 and drop the percentile rows |
|
|
42
|
-
|
|
43
|
-
**Note**: An empty sample does not establish the schema. Prefer one targeted metadata discovery through the verified interface; if schema remains unavailable, skip dependent checks with a concrete reason rather than running guessed SQL or repeatedly probing other tables.
|
|
44
|
-
|
|
45
|
-
### Step 2: Run SQL quality validation
|
|
46
|
-
|
|
47
|
-
Run each validation SQL one by one. The detailed definitions and historical query adaptation notes for all SQL are in `references/data-verification/sql_checks.md`.
|
|
48
|
-
|
|
49
|
-
**Historical SQL constraints (verify against the current CLI contract)**:
|
|
50
|
-
- **CTE (WITH clause) is not supported** — all queries must be rewritten as subqueries or flattened
|
|
51
|
-
- SQL must end with `LIMIT 100`
|
|
52
|
-
- In the QP, `events` is an **object** `{"sql": "..."}`, not an array — `"events": {"sql": "SELECT ..."}`
|
|
53
|
-
- The QP must include `eventView.requiredEvents` (fill in any event name involved)
|
|
54
|
-
- GROUP BY must use numeric positions (`GROUP BY 1,2,3`), not aliases
|
|
55
|
-
- Column names must be wrapped in double quotes (`"#event_name"`)
|
|
56
|
-
- `"$part_date"` and `"$part_event"` are partition fields and must be used in WHERE
|
|
57
|
-
|
|
58
|
-
**Execution method**: Use `query_adhoc` with `modelType: "sql"`, and obtain `zoneOffset` from `get_project_config`.
|
|
59
|
-
|
|
60
|
-
There are 13 available validation items, divided into two phases:
|
|
61
|
-
|
|
62
|
-
**Phase A: System-level validation (S1-S10)**
|
|
63
|
-
|
|
64
|
-
| # | Validation item | Reference SQL | Dependent optional column | Description |
|
|
65
|
-
|---|--------|---------|-----------|------|
|
|
66
|
-
| 0 | Event sample data extraction | `references/data-verification/sql_checks.md#S0` | None | Use query_event_details to fetch 1 sample per event |
|
|
67
|
-
| 1 | Event trigger volume check | `references/data-verification/sql_checks.md#S1` | `#os` (removable) | Count volume by event/data source/OS |
|
|
68
|
-
| 2 | Distinct ID null rate | `references/data-verification/sql_checks.md#S2` | None | Missing `#distinct_id` in server-side events |
|
|
69
|
-
| 3 | No account_id | `references/data-verification/sql_checks.md#S3` | None | Which events do not carry `#account_id` |
|
|
70
|
-
| 4 | No zone_offset | `references/data-verification/sql_checks.md#S4` | `#zone_offset` (skip if missing) | Timezone field missing rate |
|
|
71
|
-
| 5 | ta_app_start/end pairing | `references/data-verification/sql_checks.md#S5` | `#lib` (removable) | Whether the two preset events appear in pairs |
|
|
72
|
-
| 6 | ta_app_install ordering | `references/data-verification/sql_checks.md#S6` | None | Run only when the project has this event |
|
|
73
|
-
| 7 | IP information completeness | `references/data-verification/sql_checks.md#S7` | `#ip`, `#country`, etc. (skip if missing) | IP null / invalid / resolution failed |
|
|
74
|
-
| 8 | Event latency distribution | `references/data-verification/sql_checks.md#S8` | `#lib` (removable) | server_time vs event_time |
|
|
75
|
-
| 9 | Abnormal uid validation | `references/data-verification/sql_checks.md#S9` | None | One aid/did mapping to multiple uids |
|
|
76
|
-
| 10 | ID mapping fragmentation initial check | `references/data-verification/sql_checks.md#S10` | None | **The historical contract does not support CTE; use the simplified version** |
|
|
77
|
-
|
|
78
|
-
**Phase B: Property-level validation (S11-S12)**
|
|
79
|
-
|
|
80
|
-
| # | Validation item | Reference SQL | Dependency | Description |
|
|
81
|
-
|---|--------|---------|------|------|
|
|
82
|
-
| 11 | Event property null rate check | `references/data-verification/sql_checks.md#S11` | `list_properties` | **Core addition**: compute null rate per event per property and flag by threshold |
|
|
83
|
-
| 12 | Data source distribution statistics | `references/data-verification/sql_checks.md#S12` | None (can be extracted from S1) | Report volume, event type count, and user count distribution per data source |
|
|
84
|
-
|
|
85
|
-
**Execution strategy**:
|
|
86
|
-
- **S0** can be launched in parallel with other SQL (uses query_event_details, non-SQL mode)
|
|
87
|
-
- **S1-S5, S7-S9** can be launched in parallel (independent of each other)
|
|
88
|
-
- **S6** first confirm the event exists, then run
|
|
89
|
-
- **S10** use the simplified SQL for an initial screening; if there are anomalies → 🚩 guide the user to call the `te-user-id-debug` skill for deep investigation
|
|
90
|
-
- **S11** depends on S1 results (to obtain the event list) and `list_properties` (to obtain the property list); run after S1 completes
|
|
91
|
-
- **S12** can be extracted directly from S1 results, no additional query needed
|
|
92
|
-
|
|
93
|
-
After each check, record: validation name, whether it succeeded, and the result summary (row count, key values).
|
|
94
|
-
|
|
95
|
-
### Step 3: Tracking plan comparison (conditional)
|
|
96
|
-
|
|
97
|
-
**Run this step only when the user has provided a tracking plan document**. If the user has not provided any plan document, skip this step and note in the report: "No tracking plan provided, comparison skipped."
|
|
98
|
-
|
|
99
|
-
The user may provide:
|
|
100
|
-
- A local Excel/CSV file path
|
|
101
|
-
- A Feishu document/sheet link
|
|
102
|
-
- An online document URL
|
|
103
|
-
|
|
104
|
-
See `references/data-verification/tracking_plan_comparison.md` for the specific parsing and comparison method.
|
|
105
|
-
|
|
106
|
-
### Step 4: Result diagnosis
|
|
107
|
-
|
|
108
|
-
For the anomalous results of each validation item, match diagnostic suggestions from the knowledge base in `references/data-verification/diagnosis_kb.md`.
|
|
109
|
-
|
|
110
|
-
Diagnosis output format:
|
|
111
|
-
```
|
|
112
|
-
Validation item: <name>
|
|
113
|
-
Anomaly found: <specific values>
|
|
114
|
-
Possible cause: <matched from the knowledge base>
|
|
115
|
-
Suggested fix: <matched from the knowledge base>
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
**Special rules for S11 property null rate diagnosis**:
|
|
119
|
-
1. First determine the event's data source (from S1/S12): it is normal for a purely server-side event not to carry client-side properties (`device_id`, `client_type`, `device_model`, etc.), so do not flag it as anomalous.
|
|
120
|
-
2. If the same property is null across multiple events → it may be an overall integration problem (e.g., the server did not pass through `ip`).
|
|
121
|
-
3. If only a specific event's property is null → it may be an omission in that event's reporting logic.
|
|
122
|
-
|
|
123
|
-
**Severity rules**:
|
|
124
|
-
- **Identity prerequisite (S2/S3)**: first confirm whether the product has accounts, which events are post-login, and the expected visitor/account ID assignment. For a no-account / guest-only product (including E1), 100% empty `#account_id` is expected when a valid `#distinct_id` is present; mark S3 not applicable/expected, not High. Unknown identity design is TBC, not an automatic severity verdict. If both IDs are absent, investigate separately as an identification defect.
|
|
125
|
-
- **High**: `#account_id` 100% missing on events confirmed to require a logged-in account; abnormal uid is non-empty; IP entirely null where required; median latency > 1 hour; required event-property null rate > 90%. Apply business applicability before thresholds.
|
|
126
|
-
- **Medium**: distinct_id missing rate > 10%, zone_offset missing rate > 50%, start/end gap > 20%, event property null rate 70-90%
|
|
127
|
-
- **Low**: zone_offset missing rate < 50%, latency percentiles in the minute range, a few events missing the OS field, event property null rate 30-70%
|
|
128
|
-
|
|
129
|
-
**Property null rate thresholds (S11-specific)**:
|
|
130
|
-
- **> 70%**: 🔴 Anomalous — "large-scale missing property"; investigate whether the reporting logic omitted it
|
|
131
|
-
- **30-70%**: ⚠️ Needs confirmation — some events not carrying the property may be a normal business difference (e.g., server-side events have no client-side properties)
|
|
132
|
-
- **< 30%**: Usually normal, not flagged
|
|
133
|
-
- **Special case**: A purely server-side event not carrying client-side properties such as `device_id`, `client_type` is **normal design**, and is not flagged as anomalous even at a 100% null rate.
|
|
134
|
-
|
|
135
|
-
### Step 5: Generate the Feishu document report
|
|
136
|
-
|
|
137
|
-
Use the `lark-doc` skill to create a Feishu document and output a structured validation report.
|
|
138
|
-
|
|
139
|
-
**Note**: Feishu document callout blocks do not support tables, code blocks, or images. Anomaly details involving tables (such as S8 latency distribution) must be converted to list format inside the callout.
|
|
140
|
-
|
|
141
|
-
**Report template**:
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
# <project name> Data Integration Quality Validation Report
|
|
145
|
-
|
|
146
|
-
## Basic Information
|
|
147
|
-
- Project: <project_name> (ID: <project_id>)
|
|
148
|
-
- Validation time: <current time>
|
|
149
|
-
- Data range: <start_date> ~ <end_date>
|
|
150
|
-
- Timezone: UTC+<offset>
|
|
151
|
-
- Total event volume: <total_events> rows (<N> days)
|
|
152
|
-
- Total event types: <event_type_count>
|
|
153
|
-
|
|
154
|
-
## Validation Result Overview
|
|
155
|
-
| Validation item | Status | Key findings |
|
|
156
|
-
|--------|------|---------|
|
|
157
|
-
| S0 Event sample data | ... | ... |
|
|
158
|
-
| S1 Event trigger volume check | ... | ... |
|
|
159
|
-
| S2 Distinct ID null rate | ... | ... |
|
|
160
|
-
| ... one row per item ... |
|
|
161
|
-
| S11 Event property null rate | ... | ... |
|
|
162
|
-
| S12 Data source distribution | ... | ... |
|
|
163
|
-
|
|
164
|
-
## Anomaly Details (sorted by severity)
|
|
165
|
-
|
|
166
|
-
### High
|
|
167
|
-
<list one by one, with diagnostic suggestions>
|
|
168
|
-
|
|
169
|
-
### Medium
|
|
170
|
-
<list one by one, with diagnostic suggestions>
|
|
171
|
-
|
|
172
|
-
### Low
|
|
173
|
-
<list one by one>
|
|
174
|
-
|
|
175
|
-
## Event Property Null Rate Details
|
|
176
|
-
|
|
177
|
-
<Output this section only when S11 finds anomalous properties>
|
|
178
|
-
|
|
179
|
-
Group by event, and list properties with null rate > 70%:
|
|
180
|
-
|
|
181
|
-
### <event name 1> (total event volume: <N>)
|
|
182
|
-
| Property name | Null rate | Verdict |
|
|
183
|
-
|--------|--------|------|
|
|
184
|
-
| property_a | 85% | 🔴 Anomalous |
|
|
185
|
-
| property_b | 72% | 🔴 Anomalous |
|
|
186
|
-
|
|
187
|
-
### <event name 2>
|
|
188
|
-
...
|
|
189
|
-
|
|
190
|
-
Also list a cross-event coverage summary of key properties:
|
|
191
|
-
| Property name | Events with value | Total events | Overall null rate |
|
|
192
|
-
|--------|-----------|---------|-----------|
|
|
193
|
-
| device_id | 3 | 20 | 85% |
|
|
194
|
-
| ip | 5 | 20 | 75% |
|
|
195
|
-
| client_type | 8 | 20 | 60% |
|
|
196
|
-
|
|
197
|
-
## Event Sample Data
|
|
198
|
-
|
|
199
|
-
<1 JSON sample per event, only show the Top 10 events>
|
|
200
|
-
|
|
201
|
-
### <event name 1>
|
|
202
|
-
```json
|
|
203
|
-
{...}
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
## Skipped Items
|
|
207
|
-
- List the checks that were not executed because conditions were not met, and the reasons
|
|
208
|
-
|
|
209
|
-
## Diagnostic Suggestions Summary
|
|
210
|
-
<List all issues that need fixing, sorted by priority>
|
|
211
|
-
|
|
212
|
-
## Notes
|
|
213
|
-
- This report is auto-generated by the TE data integration quality validation tool
|
|
214
|
-
- For deep investigation of ID identification fragmentation, use /te-user-id-debug
|
|
215
|
-
- TE's built-in data acceptance (OriChecker/tracking plan acceptance) must be run by logging into the TE console
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Also suggest to the user:
|
|
219
|
-
- If needed, use the `te-user-id-debug` skill for deep ID fragmentation investigation
|
|
220
|
-
- TE's built-in data acceptance feature requires logging into the TE console → Data Management → Data Validation → New Validation
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
## Notes
|
|
225
|
-
|
|
226
|
-
- **Privacy data**: Do not display specific values of user identifiers such as `#account_id`, `#user_id`, `#ip`; only show statistical aggregates.
|
|
227
|
-
- **Large projects**: When data volume exceeds 10 million/day, remind the user to narrow the date range.
|
|
228
|
-
- **Empty results**: An empty result for a validation item is usually good news (meaning no anomalies); explain this in the report.
|
|
229
|
-
- **SQL errors**: If the CLI SQL query reports an error, first check whether any of the query constraints above were violated; if it is a column-not-exist error (e.g., `column "#os" does not exist`), degrade handling per the column existence pre-check table in Step 1; do not simply abandon that check.
|
|
230
|
-
- **te-user-id-debug**: For ID fragmentation-related issues, only do an initial check; always guide deep investigation to the `te-user-id-debug` skill.
|
|
231
|
-
- **S11 property null rate**: A purely server-side event missing client-side properties (device_id, client_type, etc.) is normal design, not flagged as anomalous. Check the event's data source before judging anomalies.
|
|
232
|
-
- **S0 sample data**: Fields involving user privacy (`#account_id`, `ip`, etc.) must be masked before display.
|