@thinkingai/ae-cli 6.1.30 → 6.1.33

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 (294) hide show
  1. package/README.md +16 -7
  2. package/README.zh.md +18 -7
  3. package/bin/ai-monitor.js +2 -0
  4. package/bin/runtime-capabilities.json +1 -1
  5. package/dist/ai-monitor-OHTSU6SV.js +33 -0
  6. package/dist/ai-monitor.js +136 -0
  7. package/dist/{auth-ADZHUIJR.js → auth-2MOK4OI6.js} +24 -14
  8. package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
  9. package/dist/{capability-QXFRJYZD.js → capability-EMIHQJA3.js} +31 -34
  10. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  11. package/dist/{chunk-HRUOV6EQ.js → chunk-4IQYPWCX.js} +22 -21
  12. package/dist/{chunk-EUFP4M2A.js → chunk-7DHSB3FL.js} +85 -33
  13. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  14. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  15. package/dist/chunk-BQFLABJQ.js +186 -0
  16. package/dist/{chunk-E25OSZLJ.js → chunk-COOMXFUG.js} +3 -3
  17. package/dist/{chunk-AVXDJAFC.js → chunk-DWAG2QJM.js} +52 -15
  18. package/dist/{chunk-CG773QXN.js → chunk-E3ONSFUN.js} +528 -299
  19. package/dist/chunk-EFGUBGA6.js +64 -0
  20. package/dist/chunk-EWVEAERM.js +563 -0
  21. package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
  22. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  23. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  24. package/dist/{chunk-TFORY6WY.js → chunk-KD5UC33N.js} +23 -9
  25. package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
  26. package/dist/chunk-NNK3JBH4.js +60 -0
  27. package/dist/{chunk-YULUBP3R.js → chunk-O45NOIWR.js} +2 -2
  28. package/dist/{chunk-SOSFRU3O.js → chunk-PLNS5J33.js} +58 -26
  29. package/dist/chunk-PUSFEC6B.js +29 -0
  30. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  31. package/dist/{chunk-Y3AM6LIO.js → chunk-RC3PPCYD.js} +16 -11
  32. package/dist/{chunk-AWVZTN2B.js → chunk-THTROEGD.js} +1 -1
  33. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  34. package/dist/{chunk-JSBLCLFE.js → chunk-VLOGOM7N.js} +13 -7
  35. package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  36. package/dist/chunk-YE6MJB5V.js +1285 -0
  37. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  38. package/dist/{compat-check-HERBTQZN.js → compat-check-CADG7GND.js} +5 -4
  39. package/dist/{config-E3KANXMK.js → config-PFD3KWQG.js} +28 -14
  40. package/dist/{context-CDB5H5PD.js → context-SOQDFZIB.js} +8 -6
  41. package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
  42. package/dist/{evaluation-LR4YDYWL.js → evaluation-Q3AIGFOG.js} +14 -159
  43. package/dist/index.js +95 -593
  44. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  45. package/dist/{memory-SNFR5M23.js → memory-HKNGUIPK.js} +6 -7
  46. package/dist/{metadata-EXQYDZTH.js → metadata-GFWR5ZHC.js} +11 -10
  47. package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
  48. package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-JCTKXLC3.js} +46 -15
  49. package/dist/{project-semantic-UHRMVOJF.js → project-semantic-B2NWQOKK.js} +19 -16
  50. package/dist/{sync-XKEBXESC.js → sync-UQH4J4BD.js} +9 -9
  51. package/dist/{te-agent-S6UQR4IE.js → te-agent-L6EYFQCC.js} +303 -17
  52. package/dist/{te-analysis-WOFFCIBC.js → te-analysis-U7NNOY66.js} +397 -203
  53. package/dist/{te-community-R7B6QYOO.js → te-community-3UQEW3KD.js} +14 -12
  54. package/dist/{te-dataops-KPILYVHA.js → te-dataops-SUNYXF5G.js} +13 -11
  55. package/dist/{te-engage-IAUM6ONX.js → te-engage-KMXZJ2KN.js} +10 -9
  56. package/dist/{te-experiment-TMLRA7B3.js → te-experiment-IEYKP6VC.js} +477 -45
  57. package/dist/{te-kb-GKWPSLSY.js → te-kb-MT3V5ZMH.js} +78 -18
  58. package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
  59. package/dist/{te-team-ISN52YNG.js → te-team-M6E6XQ5H.js} +9 -8
  60. package/dist/{things-DDQ52Z3Q.js → things-FRLBZV2Z.js} +9 -8
  61. package/dist/{update-CTLNTX35.js → update-NULYHVE6.js} +8 -6
  62. package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
  63. package/package.json +13 -8
  64. package/skills/ae-agent/SKILL.md +19 -5
  65. package/skills/ae-agent/references/a2a.md +103 -0
  66. package/skills/ae-agent/references/command_index.md +11 -0
  67. package/skills/ae-ai-monitor/SKILL.md +179 -0
  68. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  69. package/skills/ae-analysis/SKILL.md +43 -25
  70. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  71. package/skills/ae-analysis/references/ai_models/path.md +5 -6
  72. package/skills/ae-analysis/references/ai_models.md +1 -0
  73. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  74. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  75. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  76. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  77. package/skills/ae-analysis/references/asset_search.md +1 -1
  78. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  79. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  80. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  81. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  82. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  83. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  84. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  85. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  86. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  87. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  88. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  89. package/skills/ae-analysis/references/catalog_list.md +2 -0
  90. package/skills/ae-analysis/references/command_index.md +44 -35
  91. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  92. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  93. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  94. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  95. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  96. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  97. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  98. package/skills/ae-analysis/references/folder_share.md +8 -2
  99. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  100. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  101. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  102. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  103. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  104. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  105. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  106. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  107. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  108. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  109. package/skills/ae-analysis/references/project_member_add.md +3 -1
  110. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  111. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  112. package/skills/ae-analysis/references/project_member_update.md +3 -1
  113. package/skills/ae-analysis/references/project_owner_update.md +8 -2
  114. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  115. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  116. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  117. package/skills/ae-analysis/references/project_space_share.md +8 -2
  118. package/skills/ae-analysis/references/property_get.md +2 -0
  119. package/skills/ae-analysis/references/public_link_list.md +3 -1
  120. package/skills/ae-analysis/references/query_cancel.md +4 -1
  121. package/skills/ae-analysis/references/report_data_run.md +1 -1
  122. package/skills/ae-analysis/references/report_list.md +3 -3
  123. package/skills/ae-analysis/references/scenario_append.md +2 -2
  124. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  125. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  126. package/skills/ae-analysis/references/scenario_list.md +7 -7
  127. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  128. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  129. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  130. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  131. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  132. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  133. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  134. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  135. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  136. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  137. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  138. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  139. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  140. package/skills/ae-automation/SKILL.md +4 -2
  141. package/skills/ae-capability/SKILL.md +16 -8
  142. package/skills/ae-community/SKILL.md +1 -0
  143. package/skills/ae-dataops/SKILL.md +1 -0
  144. package/skills/ae-engage/SKILL.md +1 -0
  145. package/skills/ae-evaluation/SKILL.md +17 -2
  146. package/skills/ae-experiment/SKILL.md +69 -13
  147. package/skills/ae-experiment/references/experiment_approval.md +229 -0
  148. package/skills/ae-experiment/references/manage_experiment.md +15 -2
  149. package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
  150. package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
  151. package/skills/ae-experiment/references/query_experiment_list.md +6 -0
  152. package/skills/ae-experiment/references/save_experiment.md +56 -10
  153. package/skills/ae-experiment/references/save_metric.md +29 -2
  154. package/skills/ae-experiment/references/save_submit_experiment.md +22 -3
  155. package/skills/ae-experiment/references/save_submit_external_experiment.md +59 -3
  156. package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
  157. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  158. package/skills/ae-kb/SKILL.md +8 -4
  159. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  160. package/skills/ae-kb/references/publication.md +45 -0
  161. package/skills/ae-kb/references/query-workflow.md +3 -1
  162. package/skills/ae-kb/references/versions.md +1 -1
  163. package/skills/ae-metadata/SKILL.md +1 -0
  164. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  165. package/skills/ae-team/SKILL.md +1 -1
  166. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  167. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  168. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  169. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  170. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  171. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  172. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  173. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  174. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  175. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  176. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  177. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  178. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  179. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  180. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  181. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  182. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  183. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  184. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  185. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  186. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  187. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  188. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  189. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  190. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  191. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  192. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  193. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  194. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  195. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  196. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  197. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  198. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  199. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  200. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  201. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  202. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  203. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  204. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  205. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  206. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  207. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  208. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  209. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  210. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  211. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  212. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  213. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  214. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  215. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  216. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  217. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  218. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  219. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  220. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  221. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  222. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  223. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  224. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  225. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  226. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  227. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  228. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  229. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  230. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  231. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  232. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  233. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  234. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  235. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  236. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  237. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  238. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  239. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  240. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  241. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  242. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  243. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  244. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  245. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  246. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  247. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  248. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  249. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  250. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  251. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  252. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  253. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  254. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  255. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  256. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  257. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  258. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  259. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  260. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  261. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  262. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  263. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  264. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  265. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  266. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  267. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  268. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  269. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  270. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  271. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  272. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  273. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  274. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  275. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  276. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  277. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  278. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  279. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  280. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  281. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  282. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  283. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  284. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  285. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  286. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  287. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  288. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  289. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  290. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  291. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  292. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  293. package/dist/chunk-AMBFK2K3.js +0 -28
  294. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -20,8 +20,21 @@ It preserves the first start time and the existing day-based or fixed deadline.
20
20
  Do not run the standalone `ready-check` as a prerequisite for resuming a paused
21
21
  experiment; that command accepts only pre-launch states.
22
22
 
23
- For Feature scheduling, save `startTime` first and use `pending` to submit. The
24
- server checks submitted experiments every half hour. `running` starts immediately;
23
+ On updated servers, `draft → pending` submits the saved draft for approval
24
+ only for a Feature experiment with configured approvers; its runtime status
25
+ then remains draft. Exempt Feature submissions enter pending and retain the
26
+ existing manual or scheduled start. External experiments are exempt and use
27
+ their existing time-based state rules. Existing pending reviews still block
28
+ resubmission until withdrawn. This command also remains the submission path
29
+ for older servers. Read
30
+ [server compatibility](experiment_approval.md#server-compatibility) before using
31
+ dedicated approval commands; do not submit a second time or use `running` to
32
+ bypass approval. Existing command flags and response shapes remain supported.
33
+
34
+ For Feature scheduling, save `startTime` before submission. The server checks
35
+ eligible scheduled experiments every half hour, after approval where required.
36
+ For experiments eligible to start,
37
+ `running` starts immediately;
25
38
  read fresh detail and disclose `start_time_adjustment_required=true` before an
26
39
  early manual start. No extra confirmation field is required. See
27
40
  [Feature timing](save_experiment.md#feature-timing) for lifecycle and deadline rules.
@@ -0,0 +1,131 @@
1
+ # Manage traffic domains
2
+
3
+ Use `ae-cli experiment traffic-domain list|create|update|delete` to manage root domains.
4
+ These commands use the engage Capability Gateway with CLI token authentication:
5
+ `experiment.traffic_domain.list|create|update|delete`. They require the matching Hermes
6
+ capabilities to be deployed; a local CLI upgrade alone does not add server support.
7
+
8
+ ## Discover and interpret the current state
9
+
10
+ ```bash
11
+ ae-cli experiment bucket list --project-id 1
12
+ ae-cli experiment traffic-domain list --project-id 1 --bucket-id '#account_id'
13
+ ```
14
+
15
+ Omit `--bucket-id` to list all configured subjects. Supported subjects are `#user_id`,
16
+ `#account_id`, `#distinct_id`, and `#device_id`. Each returned `data.items[]` is a Space:
17
+ `space_id` equals `bucket_id`, `allocation_version` is the quota concurrency token, and
18
+ `domains[]` contains `domain_id`, `domain_name`, `domain_desc`, `allocation_bps`,
19
+ `bucket_start`, `bucket_end`, `can_edit_metadata`, `can_adjust_allocation`,
20
+ `has_experiments`, and `can_delete`. `data.total` counts Spaces, not domains.
21
+ An empty list means there are no domains matching this query; it does not create a Space.
22
+
23
+ One Space is scoped to the project and bucket subject. Domains split its 10000 buckets
24
+ into mutually exclusive ranges. Layers within a domain split traffic independently.
25
+ Quotas are integers from 1 to 10000 basis points: 3000 means 30%, not 3000%.
26
+ Total quotas may be less than 10000; the remaining traffic is unallocated.
27
+ Domain basis points differ from the integer percentages used by experiment/group allocation.
28
+ Do not pass RCC publication versions as `--expected-version`.
29
+
30
+ ## Create and edit quotas
31
+
32
+ First domain for a subject (no existing Space):
33
+
34
+ ```bash
35
+ ae-cli experiment traffic-domain create --project-id 1 --bucket-id '#account_id' \
36
+ --name 'Checkout' --description 'Checkout experiments' \
37
+ --allocation-bps 3000 --expected-version 0 --dry-run
38
+ ```
39
+
40
+ Creating another domain requires **all existing domains** in `--allocations` and the
41
+ Space version returned by list. The following assumes list returned `d1` and version 1:
42
+
43
+ ```bash
44
+ ae-cli experiment traffic-domain create --project-id 1 --bucket-id '#account_id' \
45
+ --name 'Acquisition' --allocation-bps 2000 --expected-version 1 \
46
+ --allocations '[{"domain_id":"d1","allocation_bps":3000}]' --dry-run
47
+ ```
48
+
49
+ Metadata update requires the current or new name. Omitted `--description` clears the
50
+ saved description; pass the existing description to preserve it. No version is required
51
+ for metadata-only changes, and they do not increment the quota version.
52
+
53
+ ```bash
54
+ ae-cli experiment traffic-domain update --project-id 1 --domain-id d1 \
55
+ --name 'Checkout' --description 'Revised description' --dry-run
56
+ ```
57
+
58
+ For a quota update, supply `--allocation-bps`, `--expected-version`, and `--allocations`
59
+ together. The allocation array must contain every **other** domain of the same subject,
60
+ without duplicates or the domain being updated. Pass `[]` when there are no other domains.
61
+ For example, after list confirms version 2 and the two IDs:
62
+
63
+ ```bash
64
+ ae-cli experiment traffic-domain update --project-id 1 --domain-id d1 \
65
+ --name 'Checkout' --allocation-bps 4000 --expected-version 2 \
66
+ --allocations '[{"domain_id":"d2","allocation_bps":2000}]' --dry-run
67
+ ```
68
+
69
+ The subject is immutable. `--bucket-id` on update is optional and must match the saved
70
+ subject. The backend checks completeness, ownership, current experiment states and
71
+ contiguous bucket availability under its transaction locks. `testing`, `pending`,
72
+ `running`, `paused`, and unknown experiment states protect domain quota and bucket ranges.
73
+ Domains with only `draft`, `ended`, or `archive` experiments may be adjusted with permission.
74
+ An unchanged protected domain can remain in the complete allocation array while another
75
+ domain uses remaining capacity. A Space-level `can_adjust_allocation=false` does not
76
+ by itself prohibit creating a domain from unallocated traffic.
77
+
78
+ `--validate` and `--dry-run` are mutually exclusive, non-writing contract checks; they do
79
+ not reserve versions or guarantee that execution will pass current business checks.
80
+ After review, execute by omitting `--dry-run`. After a successful quota write, list again.
81
+ On `TRAFFIC_DOMAIN_VERSION_CONFLICT`, re-list, compare the changed quotas with the user's
82
+ intent, and rebuild the request. Do not silently replace the version or retry the write.
83
+ For locked quotas, permission failures or fragmented capacity, report the reason without
84
+ changing experiment states or other domains automatically.
85
+
86
+ ## Bind layers and exclusive experiment drafts
87
+
88
+ Use existing `traffic-layer save --req` and `experiment save --req` commands. Their nested
89
+ DTO fields remain camelCase; use `domainId`, not `domain_id`, inside `--req`.
90
+
91
+ ```bash
92
+ ae-cli experiment traffic-layer save --project-id 1 \
93
+ --req '{"layerName":"Checkout layer","layerType":"remote","bucketId":"#account_id","domainId":"d1"}' --dry-run
94
+ ae-cli experiment traffic-layer save --project-id 1 \
95
+ --req '{"layerId":"layer1","domainId":"d1"}' --dry-run
96
+ ae-cli experiment experiment save --project-id 1 \
97
+ --req '{"expName":"Checkout draft","isExpSharing":0,"bucketId":"#account_id","layerType":"remote","domainId":"d1"}' --dry-run
98
+ ```
99
+
100
+ Domain and resource must belong to the same project and bucket subject. Layer-only
101
+ patches can bind or clear (`domainId:""`) membership when all related experiments are
102
+ `draft`, `ended`, or `archive`; omitted/null `domainId` retains existing membership.
103
+ Changing a layer's domain preserves its ID and salt. Exclusive experiment drafts may
104
+ select/change/clear their domain; shared experiments use their selected layer's domain
105
+ and ignore the exclusive `domainId` input. Changing an exclusive draft's domain may
106
+ recreate its private layer while preserving experiment ID, salt and group identities.
107
+ Layer and experiment list/get results expose nullable `domain_id` and `domain_name`;
108
+ historical unbound layers remain unbound. Legacy CLI layer creation without `domainId`
109
+ remains supported. Prefer explicit domain selection for new domain-based traffic.
110
+ Remote routing applies domain isolation after the Hermes/RCC upgrade; complete SDK local
111
+ Space/Domain evaluation is a later stage. Do not promise local domain isolation from
112
+ `layerType:"local"` alone.
113
+
114
+ ## Delete a domain
115
+
116
+ Read current state, verify `can_delete`, and confirm the target domain with the user.
117
+ Preview using the latest Space version:
118
+
119
+ ```bash
120
+ ae-cli experiment traffic-domain delete --project-id 1 --domain-id d1 \
121
+ --expected-version 3 --dry-run
122
+ ```
123
+
124
+ Only after user confirmation, remove `--dry-run` and add `--yes` for non-interactive use.
125
+ Deletion is `high-risk-write`. It soft-deletes the domain and unbinds every linked layer,
126
+ including historical layers, while retaining layers and experiments, layer IDs, salts,
127
+ and subjects. It requires resource permission on the domain and all linked layers;
128
+ active or unknown experiment states block deletion. Released quota becomes unallocated;
129
+ other domains' quotas and ranges remain unchanged, and their quota version increments.
130
+ Deleting the final domain returns `data.items: []`. Creation after the final deletion
131
+ uses version 0 from the now-empty quota API state, not an RCC publication revision.
@@ -11,6 +11,14 @@ Flags:
11
11
  - `--exp-id`: Experiment ID.
12
12
 
13
13
  Response shape: the experiment is in `data.item`, with recursively snake_case keys such as `exp_id` and `feature_key_list`.
14
+ The effective traffic-layer routing mode is returned as `data.item.layer_type`
15
+ (`remote` or `local`).
16
+
17
+ On approval-capable servers, `status` remains the runtime state;
18
+ `mapping_status` is for display and `approval` describes the latest review.
19
+ An absent or null approval is valid for exempt experiments. Historical
20
+ rejected/withdrawn records can remain after a direct submission; read the
21
+ actual configuration and status rather than treating history as a new review.
14
22
 
15
23
  Feature timing is exposed as `start_time`, `end_time`, and `exp_cycle` (including
16
24
  `cycle_type`, `fixed_end_time`, and planned `end_time`). The top-level `end_time`
@@ -17,6 +17,12 @@ Flags:
17
17
 
18
18
  Response shape: `data.items` contains the experiments, `data.total` contains the count, and item keys are recursively snake_case.
19
19
 
20
+ On approval-capable servers, `status` remains the runtime state;
21
+ `mapping_status` is for display and `approval` describes the latest review.
22
+ An absent or null approval is valid for exempt experiments. Historical
23
+ rejected/withdrawn records can remain after a direct submission; read the
24
+ actual configuration and status rather than treating history as a new review.
25
+
20
26
  Targeting follows the same semantic projection as detail:
21
27
  `targeting.definition_request` plus `targeting.definition_status`; internal
22
28
  `target_config` is not returned.
@@ -27,6 +27,16 @@ Flags:
27
27
 
28
28
  Response shape is `data.result`. Object keys inside the result are recursively snake_case. A create commonly returns the new experiment ID as `data.result`; a patch commonly returns `true`.
29
29
 
30
+ On updated servers, drafts save directly. Actual delivery changes to submitted
31
+ Feature experiments queue approval only when the project approver roster is
32
+ non-empty; effective configuration remains unchanged until approval. External
33
+ experiments and Feature experiments with an empty roster save directly.
34
+ Display-only changes save directly unless a review is pending. Existing
35
+ pending reviews still block editing after approval is disabled. Read
36
+ [experiment approval](experiment_approval.md), verify experiment detail after
37
+ saving, and inspect any pending review; `result=true` alone does not prove
38
+ the new configuration is effective.
39
+
30
40
  ## Payload Type Contract
31
41
 
32
42
  Nested payload fields must match the server DTO types, not just the visible CLI dry-run body shape.
@@ -34,6 +44,7 @@ Nested payload fields must match the server DTO types, not just the visible CLI
34
44
  | Field | Correct shape | Incorrect shape |
35
45
  | --- | --- | --- |
36
46
  | `featureKeyList` | `["payment_color"]` | `[{"featureKey":"payment_color"}]` |
47
+ | `layerType` | `"remote"` or `"local"` with `isExpSharing=0` | any other value, or missing/nonzero `isExpSharing` |
37
48
  | `allocation` | integer (e.g. `20`) | `20.5`, `33.33` |
38
49
  | `groups[].allocation` | integer; all groups sum to `100` (e.g. `34+33+33`) | `33.33`, or sum `99`/`101` |
39
50
  | `groups[].expGroupValue` | `"[\"green\"]"` | `["green"]` |
@@ -59,6 +70,7 @@ Optional while drafting:
59
70
  - `expType` (blank defaults to `feature`)
60
71
  - `groupId`
61
72
  - `trafficLayerId`
73
+ - `layerType`
62
74
  - `allocation`
63
75
  - `expSalt`
64
76
  - `expSupposition`
@@ -100,8 +112,9 @@ ae-cli experiment experiment save --project-id 1 --req '{"expId":"exp_123","allo
100
112
 
101
113
  ## Field Notes
102
114
 
103
- - `isExpSharing=1` uses a shared traffic layer from `experiment traffic-layer list`; pick a `trafficLayerId` whose available idle traffic can cover `allocation`.
104
- - `isExpSharing=0` uses exclusive traffic with `bucketId`; select the bucket with `experiment bucket list`.
115
+ - `isExpSharing=1` uses a shared traffic layer from `experiment traffic-layer list`; pick a `trafficLayerId` whose available idle traffic can cover `allocation`. Do not pass `layerType` because the selected layer already defines its routing mode.
116
+ - `isExpSharing=0` uses exclusive traffic with `bucketId`; select the bucket with `experiment bucket list`. Set `layerType` to `remote` or `local`; omitted mode defaults to `remote`.
117
+ - Local routing (`layerType="local"`) does not support `bucketId="#user_id"`. Use another bucket returned by `experiment bucket list`, such as `#account_id` or `#distinct_id` when available.
105
118
  - `allocation` (experiment-level) is the experiment's share of the traffic layer. It is optional during draft construction, but before readiness it must be greater than `0` and no more than `100`. **Integer only** (for example `20`); decimals such as `20.5` are rejected at the CLI interface.
106
119
  - `groups[].allocation` (group-level): **integer only; sum must equal `100` exactly**. Example for 3 groups: `34 + 33 + 33 = 100`. Decimals such as `33.33` are rejected at the CLI interface before save.
107
120
  - `expCycle.cycleType` can be `day`, `sample`, or `time`; when `cycleType=day`, `dayNum` is `1..90`. `time` requires `fixedEndTime`. Blank cycle defaults to day + 30.
@@ -165,7 +178,7 @@ The second command produces the same native request as:
165
178
  {"expId":"exp_123","startTime":"2026-11-01T16:00:00+08:00","expCycle":{"cycleType":"time","fixedEndTime":"2026-11-08T16:00:00+08:00"}}
166
179
  ```
167
180
 
168
- Saving does not submit or start the experiment. Complete the remaining Feature,
181
+ Saving a draft does not submit or start it. Complete the remaining Feature,
169
182
  group, traffic, and metric configuration, check readiness, and check traffic
170
183
  conflicts for a non-mutex layer before submitting:
171
184
 
@@ -175,11 +188,25 @@ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-sta
175
188
  ae-cli experiment experiment get --project-id 1 --exp-id exp_123
176
189
  ```
177
190
 
178
- Only submitted `pending` Feature experiments with a configured start time are
179
- eligible for automatic start. A draft never starts automatically; a pending
180
- experiment without a start time waits for manual start. The server checks every
181
- half hour, so a successful submission is not evidence that the experiment is
182
- already running. Verify `data.item.status`, `start_time`, and
191
+ This submission path works on older and approval-enabled servers. Before using
192
+ the dedicated `approval submit` alternative or reading/processing approvals,
193
+ follow [server compatibility](experiment_approval.md#server-compatibility).
194
+ Submit once; do not call `approval submit` after `manage` has already submitted.
195
+ On updated servers, a Feature experiment with a non-empty approver roster
196
+ keeps runtime `status=draft` with `approval.state=pending_review`; read
197
+ `experiment approval get` for that proposal.
198
+ An authorized approver must review and approve the exact proposal. Approval can
199
+ start a due Feature experiment immediately; future starts stay pending, and
200
+ audience subscription may delay startup. Approved experiments waiting for
201
+ subscription can resume automatically after readiness is restored. Scheduled
202
+ experiments are checked every half hour. A draft never starts automatically.
203
+ With an empty roster on an updated server, Feature submission enters pending
204
+ without creating an approval. A future start follows the existing schedule;
205
+ a missing or already elapsed start time requires manual start. Exemption
206
+ does not invoke the approval-specific automatic startup or subscription
207
+ continuation. Older servers retain their deployed policy; verify runtime
208
+ detail and call approval endpoints only when supported.
209
+ Verify `data.item.status`, `start_time`, and
183
210
  `scheduled_start_error` with `get` (or `list`). An expired pending window remains
184
211
  pending and reports an error; fix the timing instead of reporting a start.
185
212
 
@@ -202,6 +229,14 @@ Timing changes follow server lifecycle rules:
202
229
 
203
230
  ## Payload Examples
204
231
 
232
+ Create an exclusive local-routing draft:
233
+
234
+ ```bash
235
+ ae-cli experiment experiment save --project-id 1 --req '{"expName":"Local routing draft","isExpSharing":0,"layerType":"local","bucketId":"#account_id"}'
236
+ ```
237
+
238
+ After creation, `experiment experiment get` returns the effective mode as `data.item.layer_type`.
239
+
205
240
  Patch a Feature binding. `featureKeyList` is a string array:
206
241
 
207
242
  ```bash
@@ -275,10 +310,21 @@ After a successful save, output the experiment detail link in this form, substit
275
310
  [View experiment](/#/atlas/experiment/detail?expId=<expId>&currentProjectId=<projectId>)
276
311
  ```
277
312
 
278
- After every successful save, call:
313
+ After a draft save, check readiness to identify missing configuration:
279
314
 
280
315
  ```bash
281
316
  ae-cli experiment experiment ready-check --project-id <id> --exp-id <expId>
282
317
  ```
283
318
 
284
- Use readiness failures to decide the next patch. Do not report the experiment save work as complete until readiness has been checked.
319
+ Use readiness failures to decide the next patch. For submitted experiments,
320
+ read approval and effective experiment detail instead of applying a pre-launch
321
+ readiness check to a running or paused experiment. Report a queued change as
322
+ awaiting approval until the stored proposal is approved and its effect verified.
323
+
324
+ ## Exclusive traffic domain
325
+
326
+ `req.domainId` selects a root domain for an exclusive draft (`isExpSharing=0`). The domain
327
+ must match the project and bucket subject. Omitted/null domain retains existing membership;
328
+ an empty string clears it on a draft. Shared experiments use their traffic layer's domain.
329
+ List/get return nullable `domain_id` and `domain_name`. Read
330
+ [`manage_traffic_domains.md`](manage_traffic_domains.md) before binding or changing domains.
@@ -12,6 +12,13 @@ Flags:
12
12
 
13
13
  Create mode requires metric identifiers and metric configuration. Modify mode uses `update=true`.
14
14
 
15
+ For event metrics using `user_count`, `total_count`, or `active_days`, the
16
+ dedicated CLI save and `save validate --operation-mode save_metric` commands
17
+ default omitted create fields to `metricPurpose: "confidence_statistics"` and
18
+ `format: "integer"`. Explicit values take precedence. For updates, omitted
19
+ fields are left out of the request. Send both fields explicitly when calling
20
+ the gateway directly or using an older CLI.
21
+
15
22
  Do not paste `save build-guide` / `save validate` `example_args.req` keys (`metric_id`, …) into
16
23
  `--req`. Those responses snake_case nested placeholders; final save requires camelCase.
17
24
  See [`save_build_guide.md`](save_build_guide.md) / [`save_validate.md`](save_validate.md).
@@ -19,8 +26,10 @@ See [`save_build_guide.md`](save_build_guide.md) / [`save_validate.md`](save_val
19
26
  ## Semantic Metric Contract
20
27
 
21
28
  - Supply metric QP as `req.metricDefinition`.
29
+ - To set a display format, pass `req.format` alongside `req.metricDefinition`. Use `integer` for counts, `float2` for two decimal places, or `percent` for rates. Provide it explicitly when creating metrics outside the defaults above. When updating, omit it to keep the saved format.
22
30
  - Never submit internal `metricConfig`, `calcType`, or an `Axxx` calculation code.
23
- - Experiment metrics currently accept event definitions only.
31
+ - Set `metricDefinition.type` to `event`, `formula`, `retention`, or `funnel` as supported by the target server's `experiment.metric.save` schema. Formula uses `createType: "event"`. Event definitions accept optional `display_name`.
32
+ - On updates, read the existing metric first and keep its saved `createType`. Event and formula share the event type. To switch between event, retention, and funnel, create a separate metric.
24
33
  - Event-property comparisons belong in `metricDefinition.filters`. Each item uses
25
34
  `field`, `operator`, and `values`; do not place `operator` or `value` directly on
26
35
  `metricDefinition`.
@@ -42,10 +51,20 @@ When `aggregation` is `sum`, `avg`, `max`, or `distinct_count`:
42
51
 
43
52
  When `aggregation` is `total_count`, `user_count`, or `active_days`, omit `property`.
44
53
 
54
+ ### Formula, retention, and funnel definitions
55
+
56
+ Inspect `input_schema.properties.req.properties.metricDefinition` on the target server for the full schema. Use camelCase for the fields of `req` and keep the schema's field names inside `metricDefinition`.
57
+
58
+ | Definition type | Key fields |
59
+ | --- | --- |
60
+ | `formula` | `expression` uses the bare keys of its event `dependencies`. Each dependency needs a unique `key`. |
61
+ | `retention` | Set `analysis_subject`, `initial_event`, `return_event`, `time_granularity`, `retention_type`, and `display_mode`. Use `metricPurpose: "observation"` for retention count, churn count, and simultaneous display. |
62
+ | `funnel` | Set `analysis_subject`, at least two ordered `steps`, `relation_property`, and a `window` with `value` and `unit`. |
63
+
45
64
  ### Preset event metric example (no property)
46
65
 
47
66
  ```bash
48
- ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_users","metricName":"Payment users","createType":"event","goalDirection":"up","metricDesc":"Users who triggered payment","metricDefinition":{"type":"event","event":"payment","aggregation":"user_count"}}'
67
+ ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_users","metricName":"Payment users","createType":"event","goalDirection":"up","metricPurpose":"confidence_statistics","metricDesc":"Users who triggered payment","format":"integer","metricDefinition":{"type":"event","event":"payment","aggregation":"user_count"}}'
49
68
  ```
50
69
 
51
70
  ### Correct example (avg with property)
@@ -56,7 +75,9 @@ ae-cli experiment metric save --project-id 1 --req '{
56
75
  "metricName":"Startup style payment avg",
57
76
  "createType":"event",
58
77
  "goalDirection":"up",
78
+ "metricPurpose":"confidence_statistics",
59
79
  "metricDesc":"Average payment amount",
80
+ "format":"float2",
60
81
  "metricDefinition":{
61
82
  "type":"event",
62
83
  "event":"payment",
@@ -70,6 +91,12 @@ ae-cli experiment metric save --project-id 1 --req '{
70
91
  }'
71
92
  ```
72
93
 
94
+ ### Change the display format only
95
+
96
+ ```bash
97
+ ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_users","update":true,"format":"integer"}'
98
+ ```
99
+
73
100
  ### Wrong example (avg without property — rejected)
74
101
 
75
102
  ```json
@@ -17,7 +17,26 @@ Prefer `experiment experiment save` for progressive draft construction.
17
17
 
18
18
  Feature requests may include optional `req.startTime` and
19
19
  `req.expCycle={"cycleType":"time","fixedEndTime":"2026-11-08T16:00:00+08:00"}`.
20
- Use ISO-8601 timestamps with timezone offsets. Submitting a Feature draft
21
- places it in `pending`; with a start time, the server checks it every half hour
22
- for automatic start. See [Feature timing](save_experiment.md#feature-timing) for
20
+ Use ISO-8601 timestamps with timezone offsets. On updated servers, only
21
+ Feature experiments with a non-empty approver roster create a pending approval
22
+ for initial submission or actual delivery changes. An empty roster submits
23
+ directly; exempt Feature drafts enter pending for the existing manual or
24
+ scheduled start. Verify experiment detail after submitting, and
25
+ read [server compatibility](experiment_approval.md#server-compatibility) before
26
+ using `experiment approval get`. On servers without approval support, retain
27
+ this save-submit call and verify runtime detail without calling approval endpoints.
28
+ Do not submit the same saved draft again after this call. Approval can start a
29
+ due Feature experiment; a future start waits for the server's half-hour checks.
30
+ See [Feature timing](save_experiment.md#feature-timing) for
23
31
  the draft, submission, manual-start, and deadline boundaries.
32
+
33
+ For external experiments on servers exposing `req.clearEndTime`, omitted or null
34
+ `req.endTime` preserves a saved deadline. Cancel it with `req.clearEndTime=true`
35
+ and no non-null `req.endTime`. Updated servers apply external experiment
36
+ changes without approval; any existing pending review must first be withdrawn.
37
+ Copy an existing `req.startTime` exactly when retaining it; the backend
38
+ preserves that saved instant when applying the change, including
39
+ seconds and milliseconds from manual activation. Other than adding this optional field, the native request is
40
+ unchanged. See [external deadline compatibility](save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
41
+ before calling an older server. Never silently translate an unsupported clear
42
+ request into omission or retry a failed write through another path.
@@ -27,7 +27,16 @@ Choose an existing `bucket_id` whose property is available in the events used by
27
27
  bound metric. The server requires at least two named groups, exactly one control group,
28
28
  and at least one existing primary metric.
29
29
 
30
- Status is calculated from the submitted time range: a future start time becomes
30
+ On updated servers, external experiments submit and save delivery changes
31
+ without approval, regardless of the project approver roster. Existing pending
32
+ reviews from older policies remain pending and must be withdrawn before
33
+ resubmission. Follow [server compatibility](experiment_approval.md#server-compatibility):
34
+ older approval-capable servers may still queue review. Read experiment detail
35
+ after saving, and inspect a pending review only when supported. A successful
36
+ submit is not evidence that the experiment is running; do not submit it again
37
+ with `approval submit`.
38
+
39
+ Once submitted configuration is effective, status is calculated from its time range: a future start time becomes
31
40
  `pending`, a current range becomes `running`, and an elapsed end time becomes `ended`.
32
41
  No `end_time` creates a long-running experiment. When the scheduled job is active, a
33
42
  pending experiment enters `running` at its start time and a running experiment enters
@@ -41,8 +50,55 @@ range may change, and group descriptions may change. Keep its name, business gro
41
50
  description, bucket, metric bindings, group count, group names, control markers,
42
51
  allocations, and group values unchanged. Include every returned group unchanged,
43
52
  including its `expGroupId`, `allocation`, and `expGroupValue`; the CLI rejects an
44
- update that omits a group ID. Omitting `--end-time` represents a long-running
45
- experiment, so preserve the current end time whenever it should remain scheduled.
53
+ update that omits a group ID.
54
+
55
+ ## Deadline updates and server compatibility
56
+
57
+ Before changing a deadline, inspect `experiment.experiment.save-submit` and check
58
+ `input_schema.properties.req.properties.clearEndTime`:
59
+
60
+ ```bash
61
+ ae-cli capability inspect experiment.experiment.save-submit
62
+ ```
63
+
64
+ On servers exposing `req.clearEndTime`:
65
+
66
+ - Creating an experiment without `--end-time` creates a long-running experiment.
67
+ - Updating an experiment without `--end-time` preserves its saved deadline.
68
+ Native `req.endTime=null` also preserves it; neither expresses cancellation.
69
+ - Use `--clear-end-time true` with `--exp-id` to cancel a saved deadline. Do not
70
+ combine it with `--end-time`. `--clear-end-time false` sends no clear field.
71
+ - Under the current approval policy, cancelling an external experiment's
72
+ deadline applies directly. Existing pending reviews must first be withdrawn;
73
+ disabling approval does not apply their proposed deadline automatically.
74
+
75
+ For an existing experiment, reuse its verified name, bucket, start, complete
76
+ groups and metric bindings when constructing the cancellation request:
77
+
78
+ Copy the saved start timestamp verbatim, including seconds and milliseconds;
79
+ do not round it in the client. The matching backend preserves an unchanged saved
80
+ start through submission. Only new or actually changed start times round up
81
+ to a half-hour boundary; retaining a manually recorded start preserves its precision.
82
+
83
+ ```bash
84
+ ae-cli experiment external-experiment save-submit \
85
+ --project-id <verified-project-id> --exp-id <verified-exp-id> \
86
+ --exp-name '<current-name>' --bucket-id '<current-bucket-id>' \
87
+ --start-time '<current-start-time-with-offset>' \
88
+ --groups '<complete-current-groups-json>' --metrics '<current-metric-bindings-json>' \
89
+ --clear-end-time true --dry-run
90
+ ```
91
+
92
+ After submitting the selected change, read experiment detail and verify the
93
+ saved deadline. If an older server queues approval, read the pending proposal
94
+ and do not report the deadline as cancelled before its effect is verified.
95
+
96
+ Older servers without this field may still clear a deadline when `endTime` is
97
+ omitted or null. Pass the saved `--end-time` to retain it across server versions.
98
+ Explicit cancellation with `--clear-end-time` requires an upgraded backend;
99
+ schema rejection never authorizes an automatic retry without the clear flag or
100
+ through direct REST. If metadata omits the field while deployed backend behavior
101
+ is uncertain, resolve the contract before writing.
46
102
 
47
103
  Transition status: L2
48
104
  Owning module: Hermes Atlas experiment capability gateway
@@ -10,4 +10,20 @@ Flags:
10
10
  - `--project-id`, `-p`: Project ID.
11
11
  - `--req`: Traffic layer save request JSON object.
12
12
 
13
- Create mode requires `bucketId`, `layerName`, and `layerType` in the request. Modify mode requires `layerId`.
13
+ Create mode requires `bucketId`, `layerName`, and `layerType` in the request. `layerType`
14
+ must be `remote` or `local`; local routing does not support `bucketId="#user_id"`.
15
+ Modify mode requires `layerId`.
16
+
17
+ ```bash
18
+ ae-cli experiment traffic-layer save --project-id 1 --req '{"layerName":"Local account layer","layerType":"local","bucketId":"#account_id"}' --dry-run
19
+ ```
20
+
21
+
22
+ ## Traffic domain membership
23
+
24
+ Optional `req.domainId` binds the layer to a root traffic domain in the same project and
25
+ bucket subject. For an existing layer, omit/null to retain membership or pass an empty
26
+ string to clear it. A membership-only patch is supported. Related experiments must all
27
+ be draft, ended, or archive before changing membership. Layer ID and salt remain stable.
28
+ List/get return nullable `domain_id` and `domain_name`. Read
29
+ [`manage_traffic_domains.md`](manage_traffic_domains.md) for versioned quota management.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-generate-tracking-plan
3
+ version: 1.0.1
3
4
  description: "Interactive generation of an AE tracking plan and upload. Trigger words: 埋点方案、埋点模板、tracking plan、AE 方案生成、create tracking plan、トラッキングプラン、트래킹 플랜. Follows anchor → draft → refine → token → upload five-phase workflow. Deliverable is a real tracking plan created in the AE platform."
4
5
  ---
5
6
 
@@ -1305,6 +1306,10 @@ Decide based on conflict detection results:
1305
1306
  | Advisory only (Type B) | Upload after user confirmation |
1306
1307
  | Severe conflict (Type A) | User fixes or switches to replace |
1307
1308
 
1309
+ Before previewing an upload or an entire-plan deletion, check the installed subcommand with `AE_LANG=<user_lang> ae-cli tracking plan upload --help` or `AE_LANG=<user_lang> ae-cli tracking plan delete --help`. Its help must explicitly say **Local --dry-run preview**. Older clients accept the global flag but can execute the write. If the marker is missing, describe the intended changes from the local draft and stop before invoking the write command.
1310
+
1311
+ For replacement or entire-plan deletion, run the selected command with `--dry-run`, show the target host, project and operations, and wait for explicit confirmation before executing the same command without `--dry-run`. Replacement deletes the old plan before uploading the XLSX. For a preview-only request, stop after showing the preview, including in append mode.
1312
+
1308
1313
  Upload command:
1309
1314
  ```bash
1310
1315
  AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.9
3
+ version: 1.0.13
4
4
  description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
5
5
  ---
6
6
 
@@ -169,7 +169,7 @@ ae-cli kb +compile --name handbook --mode incremental
169
169
  - `--expected-revision` is mandatory for writes. A 409 conflict is returned with its server error code; the command never refreshes and retries the write automatically.
170
170
  - `+source-rm` keeps the parent source. Nonempty directory removal requires `--recursive`; deletion follows the CLI confirmation gate. Use `--yes` only when automated deletion of the exact target is already authorized. `+rm-source --id` deletes the entire parent.
171
171
  - A mutation marks the parent changed but does not start compilation or regenerate Schema. Run incremental compilation explicitly; wait for successful publication before the next test stage.
172
- - `+status` is the existing aggregate status query; it is not a per-run event or ZIP Diff reader. Do not interpret its compilation submission response as successful publication.
172
+ - `+status` without `--run-id` is the existing aggregate status query; `--run-id` selects an exact compile run lifecycle result. It is not a per-run event or ZIP Diff reader. Do not interpret its compilation submission response as successful publication.
173
173
  - No Gateway equivalent is registered in the current KB implementation. These commands reuse the typed External source APIs.
174
174
 
175
175
  Transition status: transitional
@@ -448,7 +448,7 @@ ae-cli kb +remove --name engineering-handbook --scope company
448
448
  ### `+ask`
449
449
 
450
450
  ```bash
451
- ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait]
451
+ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait] [--read-context <id>]
452
452
  ```
453
453
 
454
454
  - `--question`, alias `-q`: required natural-language question (1-2000 characters).
@@ -459,6 +459,8 @@ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"k
459
459
  - When to use: multi-page synthesis or multi-hop questions. For simple factual lookups, prefer `+index` / `+grep` / `+read`.
460
460
  - Output: By default, polls and returns `{executionId, answer, sources, modelUsage, toolCallCount, modelId}`. With `--no-wait`, returns `{executionId, status}` immediately. On failure, exits non-zero with the unified stderr envelope containing `error.type="api"`, the server `error.code` (`model_unavailable`, `sandbox_unavailable`, `agent_skill_unavailable`, `dispatch_auth_unavailable`, `provider_failed`, `retrieval_error`, `timeout`, or `process_restart`), and `error.message`.
461
461
 
462
+ With `--read-context`, Ask reads the selected immutable formal snapshot or pending company candidate. Without it, existing published Ask behavior is unchanged. Read [the evaluation contract](references/publication.md#server-side-ask-evaluation) before comparing versions. Explicit-context responses include `readViews`, including no-hit and failed executions. Pending candidate citations cannot be revisited with `--source-index`.
463
+
462
464
  ### `+ask-status`
463
465
 
464
466
  ```bash
@@ -581,9 +583,11 @@ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incrementa
581
583
  ### `+status`
582
584
 
583
585
  ```bash
584
- ae-cli kb +status --name "<name>" [--scope personal|company]
586
+ ae-cli kb +status --name "<name>" [--scope personal|company] [--run-id <compile-run-id>]
585
587
  ```
586
588
 
589
+ With `--run-id`, output contains `knowledgeBase` and `compileRun` (`id`, `status`, `errorMessage`, `startedAt`, `finishedAt`) instead of the aggregate lifecycle fields. Copy the ID from `+compile`; wait only for `queued`/`running`, and stop on `succeeded`/`failed`/`cancelled`. A failed run remains failed even when an older published version is available. Exact-run diagnostics require the same compile-run permission as the KB run-detail view, and error text is redacted. The run must belong to the resolved, authorized KB; unknown and cross-KB IDs return `KB_COMPILE_RUN_NOT_FOUND`. Existing calls without `--run-id` are unchanged. Older servers may reject the optional field; do not fall back to aggregate polling for exact-run completion. Run success is separate from publication completeness and content acceptance.
590
+
587
591
  ### `+list-sources`
588
592
 
589
593
  ```bash
@@ -70,8 +70,9 @@ Rank candidates by semantic coverage, not by primary/backup position alone:
70
70
 
71
71
  If two candidates encode materially different meanings of the same phrase,
72
72
  such as one-way events versus combined inbound and outbound events, do not
73
- blend them. Select the candidate whose stated question, output shape, and grain
74
- best match the request, and disclose the chosen definition.
73
+ blend them. When the request resolves the meaning, select the matching definition
74
+ and disclose it. When both meanings remain plausible and change the answer,
75
+ ask for the distinguishing choice or present the supported alternatives separately.
75
76
 
76
77
  ## Build the analysis execution contract
77
78
 
@@ -89,6 +90,10 @@ pages actually read:
89
90
  | Decision boundaries | Case-only, frontend-only, adoption-only, not revenue, non-generalizable, expired, conflicting, or human-decision-required constraints |
90
91
  | KB evidence | Exact KB name, page path, and section actually read |
91
92
 
93
+ Bind the matching recall-card branch to the **requested output**, including what one source row measures and what one answer item represents. Resolve a display alias against the actual event, aggregation, distinct key and unit. If meanings still differ materially, clarify the choice. A direct route needs matching object, grain, window and measure. On a transform route, verify the mapping, grouping or time alignment, overlap, excluded rows and additivity required by that operation. Join labels alone do not aggregate measures. A distinct count across overlapping groups needs a shared identity, proven disjointness or an equivalent supported aggregation. Apply the same checks from the live definition on older cards that omit the branch contract.
94
+
95
+ A clarify or unsupported branch does not authorize executing its evidence links as an answer. Retain the concrete gap and apply the ordinary discovery rules below to any unresolved requirement. Where a proxy is useful, label its actual computation and scope separately from the requested exact result.
96
+
92
97
  Classify each candidate's coverage before querying. These states classify the
93
98
  asset, not completion of the original task:
94
99
 
@@ -301,6 +306,10 @@ the audit record even when the fallback succeeds.
301
306
 
302
307
  ## Check task completion
303
308
 
309
+ Run the selected branch's checks on the actual returned data before drawing its conclusion. Complete any required regrouping, deduplication or recomputation on the covered population **before** comparisons, ranking or limits. Read back effective dates, coverage and state as-of time rather than inferring them from bucket labels. Check raw values, units, denominators and rounding before interpreting zero or absence. After changing exclusions, recompute both windows and verify the direction from the resulting values. If a necessary check fails or cannot be performed, report only the supported result and the missing evidence.
310
+
311
+ Match the strength of the conclusion to the evidence. An observed change can support a descriptive finding. A causal explanation requires independent support; a forecast requires an applicable rule or model for the proposed event, population and horizon. Preserve an unknown when the returned data only provides a signal.
312
+
304
313
  Before answering, check each requirement of the original question against the
305
314
  actual definition and returned data. Finish when it is answered, or when bounded
306
315
  discovery establishes a concrete unavailable prerequisite, authorization