@thinkingai/ae-cli 6.1.30 → 6.1.32

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 (261) hide show
  1. package/README.md +11 -5
  2. package/README.zh.md +11 -5
  3. package/bin/ai-monitor.js +2 -0
  4. package/dist/ai-monitor-MKMHSSNI.js +32 -0
  5. package/dist/ai-monitor.js +135 -0
  6. package/dist/{auth-ADZHUIJR.js → auth-CZHHPZOQ.js} +10 -9
  7. package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
  8. package/dist/{capability-QXFRJYZD.js → capability-64KVJFIA.js} +27 -31
  9. package/dist/{chunk-YULUBP3R.js → chunk-3ULDJJTZ.js} +1 -1
  10. package/dist/{chunk-HRUOV6EQ.js → chunk-4XKTRCRK.js} +15 -15
  11. package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
  12. package/dist/chunk-6M7ZEDT2.js +182 -0
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-BNBCMCYN.js +563 -0
  15. package/dist/chunk-CF6JTT2U.js +64 -0
  16. package/dist/{chunk-CG773QXN.js → chunk-DWBYNGSR.js} +564 -314
  17. package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
  18. package/dist/{chunk-TFORY6WY.js → chunk-FCAA7I2D.js} +2 -2
  19. package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
  20. package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
  21. package/dist/chunk-IDDWEZ7F.js +1285 -0
  22. package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
  23. package/dist/{chunk-AVXDJAFC.js → chunk-NLEXY2TM.js} +47 -12
  24. package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
  25. package/dist/{chunk-EUFP4M2A.js → chunk-T7WF4HYW.js} +84 -32
  26. package/dist/{chunk-Y3AM6LIO.js → chunk-TMQGS4TO.js} +15 -10
  27. package/dist/{compat-check-HERBTQZN.js → compat-check-ZJNCMNQV.js} +2 -2
  28. package/dist/{config-E3KANXMK.js → config-FSH2NMNZ.js} +25 -12
  29. package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
  30. package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
  31. package/dist/index.js +81 -583
  32. package/dist/{memory-SNFR5M23.js → memory-VEZZVAAP.js} +4 -4
  33. package/dist/{metadata-EXQYDZTH.js → metadata-3IWHX3V4.js} +7 -7
  34. package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
  35. package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-YITU23SA.js} +6 -6
  36. package/dist/{project-semantic-UHRMVOJF.js → project-semantic-MHEXJF3C.js} +15 -13
  37. package/dist/{sync-XKEBXESC.js → sync-AQHVCSPI.js} +4 -4
  38. package/dist/{te-agent-S6UQR4IE.js → te-agent-RXI7WOH4.js} +5 -5
  39. package/dist/{te-analysis-WOFFCIBC.js → te-analysis-CZY74HVF.js} +380 -191
  40. package/dist/{te-community-R7B6QYOO.js → te-community-DKCYUBCM.js} +6 -6
  41. package/dist/{te-dataops-KPILYVHA.js → te-dataops-QEH6VE56.js} +3 -3
  42. package/dist/{te-engage-IAUM6ONX.js → te-engage-WK7WKDKF.js} +6 -6
  43. package/dist/{te-experiment-TMLRA7B3.js → te-experiment-LH3RPIOE.js} +274 -29
  44. package/dist/{te-kb-GKWPSLSY.js → te-kb-UPORIOVN.js} +16 -7
  45. package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
  46. package/dist/{te-team-ISN52YNG.js → te-team-LLVTO2G4.js} +5 -5
  47. package/dist/{things-DDQ52Z3Q.js → things-XLMLBYQR.js} +5 -5
  48. package/dist/{update-CTLNTX35.js → update-7J5UQHSK.js} +3 -3
  49. package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
  50. package/package.json +9 -7
  51. package/skills/ae-ai-monitor/SKILL.md +179 -0
  52. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  53. package/skills/ae-analysis/SKILL.md +10 -4
  54. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  55. package/skills/ae-analysis/references/ai_models/path.md +5 -6
  56. package/skills/ae-analysis/references/ai_models.md +1 -0
  57. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  58. package/skills/ae-analysis/references/asset_search.md +1 -1
  59. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  60. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  61. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  62. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  63. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  64. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  65. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  66. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  67. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  68. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  69. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  70. package/skills/ae-analysis/references/catalog_list.md +2 -0
  71. package/skills/ae-analysis/references/command_index.md +38 -29
  72. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  73. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  74. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  75. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  76. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  77. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  78. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  79. package/skills/ae-analysis/references/folder_share.md +8 -2
  80. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  81. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  82. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  83. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  84. package/skills/ae-analysis/references/project_member_add.md +3 -1
  85. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  86. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  87. package/skills/ae-analysis/references/project_member_update.md +3 -1
  88. package/skills/ae-analysis/references/project_owner_update.md +3 -1
  89. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  90. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  91. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  92. package/skills/ae-analysis/references/project_space_share.md +8 -2
  93. package/skills/ae-analysis/references/property_get.md +2 -0
  94. package/skills/ae-analysis/references/public_link_list.md +3 -1
  95. package/skills/ae-analysis/references/query_cancel.md +4 -1
  96. package/skills/ae-analysis/references/report_data_run.md +1 -1
  97. package/skills/ae-analysis/references/report_list.md +3 -3
  98. package/skills/ae-analysis/references/scenario_append.md +2 -2
  99. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  100. package/skills/ae-analysis/references/scenario_list.md +2 -1
  101. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  102. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  103. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  104. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  105. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  106. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  107. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  108. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  109. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  110. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  111. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  112. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  113. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  114. package/skills/ae-automation/SKILL.md +4 -2
  115. package/skills/ae-capability/SKILL.md +9 -5
  116. package/skills/ae-community/SKILL.md +1 -0
  117. package/skills/ae-dataops/SKILL.md +1 -0
  118. package/skills/ae-engage/SKILL.md +1 -0
  119. package/skills/ae-evaluation/SKILL.md +17 -2
  120. package/skills/ae-experiment/SKILL.md +38 -11
  121. package/skills/ae-experiment/references/experiment_approval.md +171 -0
  122. package/skills/ae-experiment/references/manage_experiment.md +11 -2
  123. package/skills/ae-experiment/references/save_experiment.md +28 -8
  124. package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
  125. package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
  126. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  127. package/skills/ae-kb/SKILL.md +5 -3
  128. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  129. package/skills/ae-kb/references/query-workflow.md +3 -1
  130. package/skills/ae-kb/references/versions.md +1 -1
  131. package/skills/ae-metadata/SKILL.md +1 -0
  132. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  133. package/skills/ae-team/SKILL.md +1 -1
  134. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  135. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  136. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  137. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  138. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  139. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  140. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  141. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  142. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  143. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  144. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  145. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  146. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  147. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  148. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  149. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  150. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  151. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  152. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  153. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  154. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  155. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  156. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  157. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  158. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  159. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  160. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  161. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  162. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  163. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  164. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  165. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  166. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  167. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  168. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  169. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  170. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  171. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  172. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  173. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  174. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  175. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  176. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  177. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  178. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  179. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  180. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  181. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  182. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  183. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  184. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  185. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  186. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  187. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  188. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  189. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  190. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  191. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  192. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  193. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  194. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  195. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  196. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  197. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  198. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  199. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  200. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  201. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  202. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  203. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  204. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  205. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  206. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  207. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  208. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  209. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  210. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  211. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  212. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  213. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  214. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  215. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  216. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  217. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  218. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  219. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  220. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  221. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  222. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  223. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  224. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  225. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  226. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  227. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  228. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  229. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  230. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  231. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  232. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  233. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  234. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  235. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  236. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  237. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  238. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  239. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  240. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  241. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  242. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  243. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  244. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  245. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  246. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  247. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  248. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  249. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  250. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  251. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  252. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  253. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  254. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  255. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  256. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  257. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  258. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  259. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  260. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  261. package/dist/chunk-AMBFK2K3.js +0 -28
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ae-experiment
3
- version: 1.0.5
4
- description: "Use when managing Atlas AB or external experiments, traffic layers, Features, metrics, buckets, and experiment reports through ae-cli"
3
+ version: 1.0.7
4
+ description: "Use when managing Atlas AB or external experiments, experiment approvals and approvers, traffic layers, Features, metrics, buckets, and experiment reports through ae-cli"
5
5
  ---
6
6
 
7
7
  # ae-experiment
@@ -16,7 +16,7 @@ AE CLI (`ae-cli`) exposes Atlas AB Experiment capabilities through the `experime
16
16
  - Do not invent experiment IDs, traffic layer IDs, bucket IDs, Feature keys, metric IDs, or payload field names.
17
17
  - Bind only metric IDs returned by `experiment metric list`; create and verify a missing metric before saving the experiment.
18
18
  - Read commands can run directly after IDs are verified.
19
- - Write commands require explicit user intent and normally keep the confirmation prompt. Use `--dry-run` before write calls when composing JSON.
19
+ - Write commands require user intent. Only `high-risk-write` commands prompt for confirmation; use `--yes` only after authorization. Use `--dry-run` before write calls when composing JSON.
20
20
 
21
21
  Naming and response boundary:
22
22
 
@@ -61,14 +61,30 @@ Naming and response boundary:
61
61
  - `experiment metric save`
62
62
  3. Create or patch the experiment draft with `experiment experiment save`.
63
63
  Use `experiment experiment update-metrics` when replacing metric bindings or assigning guardrail roles.
64
- 4. For an external experiment, use `experiment external-experiment save-submit` instead. It submits directly and does not use Features, traffic layers, allocation, targeting, or experiment cycles.
65
- 5. Check readiness with `experiment experiment ready-check`.
66
- 6. For a non-mutex traffic layer, run `experiment experiment conflict-check` before submit (needs `feature_key_list` from context or `experiment get`).
67
- 7. Move status with `experiment experiment manage`.
68
- For a scheduled Feature start, save `startTime` (or use `--start-time`), then
69
- submit with `--target-status pending`. Saving a draft does not submit it; `running`
70
- starts immediately. Read [Feature timing](references/save_experiment.md#feature-timing)
71
- before configuring a schedule or starting it early.
64
+ 4. For an external experiment, use `experiment external-experiment save-submit` instead.
65
+ It submits for approval on approval-enabled servers and does not use Features,
66
+ traffic layers, allocation, targeting, or experiment cycles. Skip the Feature
67
+ readiness/conflict/submission steps. Read its approval only after verifying
68
+ approval support; on an older server, verify experiment detail instead.
69
+ On servers exposing `req.clearEndTime`, omitting `--end-time` on updates retains
70
+ the saved deadline. Cancel it explicitly with `--clear-end-time true`; read
71
+ [external deadline compatibility](references/save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
72
+ before changing a deadline on older servers.
73
+ 5. For a Feature draft, check readiness with `experiment experiment ready-check`.
74
+ 6. For a Feature on a non-mutex traffic layer, run `experiment experiment conflict-check` before submit (needs `feature_key_list` from context or `experiment get`).
75
+ 7. Submit the saved Feature draft with `experiment experiment manage --target-status pending`.
76
+ This submission path works on both older and approval-enabled servers.
77
+ `experiment approval submit` is an alternative after verifying capability support;
78
+ submit once, never through both commands. Before choosing approval commands,
79
+ read [server compatibility](references/experiment_approval.md#server-compatibility).
80
+ On an approval-enabled server, read `experiment approval get` and review/process
81
+ the exact `approval_id` only for the user-requested action. Approval can start
82
+ a due Feature experiment; verify approval and runtime status independently.
83
+ On older servers, read `experiment experiment get` to verify submission.
84
+ For a scheduled Feature start, save `startTime` (or use `--start-time`) before
85
+ submission. Read [Feature timing](references/save_experiment.md#feature-timing).
86
+ Use `experiment experiment manage` for existing lifecycle actions. Its
87
+ `draft → pending` call submits for approval on approval-enabled servers.
72
88
  To resume `paused` to `running`, call `manage` directly and verify the status
73
89
  with `get`; do not use the pre-launch `ready-check` as a resume prerequisite.
74
90
  8. Query reports with `experiment report summary`, `experiment report sample-size`, and `experiment report metric-trend`.
@@ -115,6 +131,17 @@ Read [`manage_guardrail_metrics.md`](references/manage_guardrail_metrics.md) bef
115
131
 
116
132
  Read [`save_submit_external_experiment.md`](references/save_submit_external_experiment.md) before creating or updating an external experiment.
117
133
 
134
+ ### Experiment Approval and Approvers
135
+
136
+ `experiment approval get`, `experiment approval submit`, `experiment approval approve`,
137
+ `experiment approval reject`, `experiment approval withdraw`, `experiment approver list`,
138
+ `experiment approver add`, `experiment approver delete`
139
+
140
+ Read [`experiment_approval.md`](references/experiment_approval.md) for the approval workflow,
141
+ exact round IDs, proposed versus effective configuration, and the separate experiment approver list.
142
+ Delivery changes to submitted experiments can queue approval even when a save returns `true`.
143
+ Read the approval before claiming that the requested configuration is effective.
144
+
118
145
  ### Traffic Layer and Buckets
119
146
 
120
147
  `experiment traffic-layer save`, `experiment traffic-layer get`, `experiment traffic-layer list`, `experiment traffic-layer batch-delete`, `experiment bucket list`
@@ -0,0 +1,171 @@
1
+ # Experiment approval and approvers
2
+
3
+ Use these commands on servers exposing `experiment.approval.*` and
4
+ `experiment.approver.*`. All commands require a verified positive integer
5
+ `--project-id` (`-p`). Requests use the existing `engage` Capability Gateway route
6
+ and CLI token authentication; no direct Atlas REST calls are needed.
7
+
8
+ ## Commands
9
+
10
+ | Command | Additional required flags | Risk | Response data |
11
+ | --- | --- | --- | --- |
12
+ | `ae-cli experiment approval get` | `--exp-id` | read | `item`: latest approval or `null` |
13
+ | `ae-cli experiment approval submit` | `--exp-id` | write | `result`: saved draft's experiment ID |
14
+ | `ae-cli experiment approval approve` | `--exp-id`, `--approval-id` | write | `result`: boolean |
15
+ | `ae-cli experiment approval reject` | `--exp-id`, `--approval-id`, `--reason` | write | `result`: boolean |
16
+ | `ae-cli experiment approval withdraw` | `--exp-id`, `--approval-id` | write | `result`: boolean |
17
+ | `ae-cli experiment approver list` | None | read | `items`, `total` |
18
+ | `ae-cli experiment approver add` | `--approvers` | write | `result`: boolean |
19
+ | `ae-cli experiment approver delete` | `--approver` | high-risk-write | `result`: boolean |
20
+
21
+ CLI segments map directly to the corresponding capability IDs, for example
22
+ `experiment approval approve` calls `experiment.approval.approve`.
23
+ Flags map to snake_case input fields. `--approval-id` must be a positive safe
24
+ integer from the exact reviewed proposal. Write `--project-id` and `--approval-id`
25
+ as decimal digits; fractions, exponent/hex notation, and unsafe integers are
26
+ rejected locally before numeric conversion can silently change a target ID.
27
+ `--reason` is trimmed, required for rejection, and limited to 72 UTF-16 code units
28
+ as in the backend. The Gateway does not expose optional approval/withdrawal remarks.
29
+ `--approvers` is a JSON array of 1 to 10 non-empty project member open IDs;
30
+ `--approver` removes one existing open ID. Do not invent IDs or infer eligibility
31
+ from membership in the Engage task approver list.
32
+
33
+ ## Server compatibility
34
+
35
+ Before selecting approval commands for the active host, inspect metadata without
36
+ the project filter so project availability is not mistaken for an older server:
37
+
38
+ ```bash
39
+ ae-cli capability inspect experiment.approval.submit
40
+ ```
41
+
42
+ - Metadata returned: use the approval workflow below. For saved Feature drafts,
43
+ either `approval submit` or the compatible `experiment experiment manage
44
+ --target-status pending` submits once; do not execute both.
45
+ - An explicit `CAPABILITY_NOT_FOUND`, or a verified deployed release without
46
+ approval support: keep the existing submission workflow below, and verify
47
+ runtime status with experiment detail. Do not call approval commands.
48
+ - Authentication, permission, project, network, or business errors, an empty
49
+ filtered catalog, and a generic HTTP 404 do not establish missing approval
50
+ support. Resolve the error; do not switch write paths or infer approval is off.
51
+
52
+ Compatible saved Feature draft submission on older servers:
53
+
54
+ ```bash
55
+ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-status pending
56
+ ae-cli experiment experiment get --project-id 1 --exp-id exp_123
57
+ ```
58
+
59
+ The same `manage` call still queues approval on approval-enabled servers; it
60
+ cannot bypass approval. When approval support is known, read the proposal after
61
+ this call instead of submitting again. External-experiment `save-submit` and
62
+ L3 `experiment.experiment.save-submit` retain their existing calls: read approval
63
+ on supported servers and runtime detail on older ones. New approval/settings
64
+ operations themselves require a backend upgrade when their capability is absent.
65
+ The CLI never automatically retries a failed approval write through `manage`
66
+ or direct REST, including capability-not-found, permission, and stale-round errors.
67
+
68
+ ## Submit and review
69
+
70
+ 1. Save the draft, complete readiness checks, and check traffic conflicts for a
71
+ non-mutex traffic layer. A draft-only request ends after saving and verification.
72
+ 2. When submission is requested, submit the saved draft:
73
+
74
+ ```bash
75
+ ae-cli experiment approval submit --project-id 1 --exp-id exp_123 --dry-run
76
+ ae-cli experiment approval submit --project-id 1 --exp-id exp_123
77
+ ae-cli experiment approval get --project-id 1 --exp-id exp_123
78
+ ```
79
+
80
+ The external-experiment `save-submit` command and L3
81
+ `experiment.experiment.save-submit` already submit complete configuration;
82
+ read approval afterward instead of submitting a second time.
83
+ 3. Read `data.item.approval_id`, `state`, `configuration`, and available actions
84
+ `can_approve`, `can_reject`, `can_cancel`. `item=null` means no approval history,
85
+ not an approved experiment. Read `experiment experiment get` separately for
86
+ the runtime status and current effective configuration.
87
+ 4. Review the actual proposed configuration before approval. Apply only the
88
+ user-requested action to that exact round. The commands never discover and
89
+ substitute another approval ID automatically.
90
+
91
+ For example, after discovering and reviewing approval ID `42`:
92
+
93
+ ```bash
94
+ ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42 --dry-run
95
+ ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42
96
+ ```
97
+
98
+ Alternative actions on a verified pending round:
99
+
100
+ ```bash
101
+ ae-cli experiment approval reject --project-id 1 --exp-id exp_123 --approval-id 42 --reason 'Reduce traffic before launch'
102
+ ae-cli experiment approval withdraw --project-id 1 --exp-id exp_123 --approval-id 42
103
+ ```
104
+
105
+ Run only the selected action, then re-read approval and experiment detail. A
106
+ dry-run checks the input contract without applying configuration; it does not
107
+ prove current approver eligibility, an unchanged baseline, resource readiness,
108
+ or that the real approval will succeed.
109
+
110
+ ## State and configuration boundaries
111
+
112
+ - First submission remains `status=draft` with `approval.state=pending_review`.
113
+ `mapping_status` is a display status; it does not replace the runtime `status`.
114
+ - Submitted delivery changes queue an immutable proposal while the current
115
+ configuration and runtime state continue to apply. This includes changes
116
+ submitted through existing save commands; a successful boolean save is not
117
+ proof that the new delivery configuration is effective.
118
+ - Name, hypothesis, and other display-only changes normally save directly.
119
+ A pending review freezes editing and deletion; withdraw it before editing.
120
+ - Rejection or withdrawal preserves the effective configuration. If revising
121
+ a rejected/withdrawn proposal, read its `configuration` as well as experiment
122
+ detail. Rebuild a valid camelCase write request from the save contract;
123
+ never send the read-only snake_case snapshot directly as `--req`.
124
+ - Approval applies the stored snapshot and rechecks project access, submitter
125
+ access, approver eligibility, configuration baseline, resources, and time.
126
+ It can start a due Feature experiment and synchronize Feature/RCC. A future
127
+ start remains pending; audience subscription can also delay startup. A running
128
+ or paused experiment keeps its lifecycle and original start time.
129
+ - No configured eligible approver does not skip approval: submission stays
130
+ pending until a valid approver is added and processes the existing round.
131
+ Never add the caller as an approver just to bypass a pending review.
132
+ - External experiments also use approval; after approval their time range
133
+ determines pending/running/ended. They do not synchronize Feature/RCC.
134
+
135
+ ## Approver settings and permissions
136
+
137
+ Experiment approvers are project-scoped and independent of Engage approvers.
138
+ List responses include `approver`, `approver_name`, `creator_name`, `create_time`,
139
+ and `eligible`. Use verified project member open IDs for additions.
140
+
141
+ ```bash
142
+ ae-cli experiment approver list --project-id 1
143
+ ae-cli experiment approver add --project-id 1 --approvers '["open_id_1","open_id_2"]' --dry-run
144
+ ae-cli experiment approver delete --project-id 1 --approver open_id_1 --dry-run
145
+ ```
146
+
147
+ List before and after a requested settings change. Deletion keeps historical
148
+ approval records and requires confirmation; non-interactive execution requires
149
+ `--yes` after authorization. Ordinary writes do not prompt.
150
+
151
+ Reads require `engage:read` and experiment view permission. Writes require
152
+ `engage:write`. Approve/reject additionally require current experiment approver
153
+ eligibility, but do not require experiment edit permission. Submit/withdraw
154
+ require the creator's experiment edit permission or experiment management
155
+ permission; approver settings changes require experiment management permission.
156
+ The server enforces permissions and project/resource ownership.
157
+
158
+ ## Failures and older servers
159
+
160
+ - `EXPERIMENT_APPROVAL_STALE`: re-read the latest round; do not silently approve
161
+ a replacement proposal or retry a finished action.
162
+ - `EXPERIMENT_APPROVAL_BASELINE_CHANGED`: re-read approval and effective detail.
163
+ Withdraw and submit a corrected proposal when authorized.
164
+ - Invalid/ineligible approvers or permission errors: correct the roster or
165
+ permissions through the requested settings workflow; do not retry blindly.
166
+ - After a timeout or uncertain write result, read both records before deciding
167
+ whether another write is needed.
168
+ - Existing `experiment experiment manage --target-status pending` remains
169
+ supported on older and approval-enabled servers. Select the workflow using
170
+ [server compatibility](#server-compatibility), before writing. An approval
171
+ failure never authorizes bypassing it through direct REST or a status change.
@@ -20,8 +20,17 @@ 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 approval-enabled servers, `draft → pending` submits the saved draft for
24
+ approval while its runtime status remains draft. This command also remains the
25
+ submission path for older servers. Read
26
+ [server compatibility](experiment_approval.md#server-compatibility) before using
27
+ dedicated approval commands; do not submit a second time or use `running` to
28
+ bypass approval. Existing command flags and response shapes remain supported.
29
+
30
+ For Feature scheduling, save `startTime` before submission. The server checks
31
+ eligible scheduled experiments every half hour, after approval where required.
32
+ For experiments eligible to start,
33
+ `running` starts immediately;
25
34
  read fresh detail and disclose `start_time_adjustment_required=true` before an
26
35
  early manual start. No extra confirmation field is required. See
27
36
  [Feature timing](save_experiment.md#feature-timing) for lifecycle and deadline rules.
@@ -27,6 +27,13 @@ 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 approval-enabled servers, drafts save directly, while actual delivery changes
31
+ to already submitted experiments queue approval without changing effective
32
+ configuration. Display-only changes save directly unless a review is pending.
33
+ Read [experiment approval](experiment_approval.md) and check `approval get` after
34
+ updating a submitted experiment; `result=true` alone does not prove the new
35
+ configuration is effective.
36
+
30
37
  ## Payload Type Contract
31
38
 
32
39
  Nested payload fields must match the server DTO types, not just the visible CLI dry-run body shape.
@@ -165,7 +172,7 @@ The second command produces the same native request as:
165
172
  {"expId":"exp_123","startTime":"2026-11-01T16:00:00+08:00","expCycle":{"cycleType":"time","fixedEndTime":"2026-11-08T16:00:00+08:00"}}
166
173
  ```
167
174
 
168
- Saving does not submit or start the experiment. Complete the remaining Feature,
175
+ Saving a draft does not submit or start it. Complete the remaining Feature,
169
176
  group, traffic, and metric configuration, check readiness, and check traffic
170
177
  conflicts for a non-mutex layer before submitting:
171
178
 
@@ -175,11 +182,21 @@ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-sta
175
182
  ae-cli experiment experiment get --project-id 1 --exp-id exp_123
176
183
  ```
177
184
 
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
185
+ This submission path works on older and approval-enabled servers. Before using
186
+ the dedicated `approval submit` alternative or reading/processing approvals,
187
+ follow [server compatibility](experiment_approval.md#server-compatibility).
188
+ Submit once; do not call `approval submit` after `manage` has already submitted.
189
+ On approval-enabled servers, also read `experiment approval get`; submission
190
+ keeps runtime `status=draft` with `approval.state=pending_review`.
191
+ An authorized approver must review and approve the exact proposal. Approval can
192
+ start a due Feature experiment immediately; future starts stay pending, and
193
+ audience subscription may delay startup. Approved experiments waiting for
194
+ subscription can resume automatically after readiness is restored. Scheduled
195
+ experiments are checked every half hour. A draft never starts automatically.
196
+ Older servers without approval capabilities retain their existing submission
197
+ behavior; verify their runtime detail instead of calling approval endpoints.
198
+ On those servers, a pending Feature without a start time requires manual start.
199
+ Verify `data.item.status`, `start_time`, and
183
200
  `scheduled_start_error` with `get` (or `list`). An expired pending window remains
184
201
  pending and reports an error; fix the timing instead of reporting a start.
185
202
 
@@ -275,10 +292,13 @@ After a successful save, output the experiment detail link in this form, substit
275
292
  [View experiment](/#/atlas/experiment/detail?expId=<expId>&currentProjectId=<projectId>)
276
293
  ```
277
294
 
278
- After every successful save, call:
295
+ After a draft save, check readiness to identify missing configuration:
279
296
 
280
297
  ```bash
281
298
  ae-cli experiment experiment ready-check --project-id <id> --exp-id <expId>
282
299
  ```
283
300
 
284
- Use readiness failures to decide the next patch. Do not report the experiment save work as complete until readiness has been checked.
301
+ Use readiness failures to decide the next patch. For submitted experiments,
302
+ read approval and effective experiment detail instead of applying a pre-launch
303
+ readiness check to a running or paused experiment. Report a queued change as
304
+ awaiting approval until the stored proposal is approved and its effect verified.
@@ -17,7 +17,22 @@ 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 approval-enabled servers,
21
+ initial submission and actual delivery changes create a pending approval;
22
+ read [server compatibility](experiment_approval.md#server-compatibility) before
23
+ using `experiment approval get`. On older servers, retain this save-submit call
24
+ and verify runtime detail without calling approval endpoints.
25
+ Do not submit the same saved draft again after this call. Approval can start a
26
+ due Feature experiment; a future start waits for the server's half-hour checks.
27
+ See [Feature timing](save_experiment.md#feature-timing) for
23
28
  the draft, submission, manual-start, and deadline boundaries.
29
+
30
+ For external experiments on servers exposing `req.clearEndTime`, omitted or null
31
+ `req.endTime` preserves a saved deadline. Cancel it with `req.clearEndTime=true`
32
+ and no non-null `req.endTime`; this remains subject to approval for submitted
33
+ experiments. Copy an existing `req.startTime` exactly when retaining it; the
34
+ backend preserves that saved instant through review and application, including
35
+ seconds and milliseconds from manual activation. Other than adding this optional field, the native request is
36
+ unchanged. See [external deadline compatibility](save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
37
+ before calling an older server. Never silently translate an unsupported clear
38
+ request into omission or retry a failed write through another path.
@@ -27,7 +27,14 @@ 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 approval-enabled servers, first submission and actual delivery changes enter
31
+ approval. Follow [server compatibility](experiment_approval.md#server-compatibility)
32
+ before reading `experiment approval get` after saving. On older servers, retain
33
+ this save-submit call and verify runtime detail without calling approval endpoints.
34
+ A successful submit is not evidence
35
+ that the experiment is running; do not submit it again with `approval submit`.
36
+
37
+ Once submitted configuration is effective, status is calculated from its time range: a future start time becomes
31
38
  `pending`, a current range becomes `running`, and an elapsed end time becomes `ended`.
32
39
  No `end_time` creates a long-running experiment. When the scheduled job is active, a
33
40
  pending experiment enters `running` at its start time and a running experiment enters
@@ -41,8 +48,55 @@ range may change, and group descriptions may change. Keep its name, business gro
41
48
  description, bucket, metric bindings, group count, group names, control markers,
42
49
  allocations, and group values unchanged. Include every returned group unchanged,
43
50
  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.
51
+ update that omits a group ID.
52
+
53
+ ## Deadline updates and server compatibility
54
+
55
+ Before changing a deadline, inspect `experiment.experiment.save-submit` and check
56
+ `input_schema.properties.req.properties.clearEndTime`:
57
+
58
+ ```bash
59
+ ae-cli capability inspect experiment.experiment.save-submit
60
+ ```
61
+
62
+ On servers exposing `req.clearEndTime`:
63
+
64
+ - Creating an experiment without `--end-time` creates a long-running experiment.
65
+ - Updating an experiment without `--end-time` preserves its saved deadline.
66
+ Native `req.endTime=null` also preserves it; neither expresses cancellation.
67
+ - Use `--clear-end-time true` with `--exp-id` to cancel a saved deadline. Do not
68
+ combine it with `--end-time`. `--clear-end-time false` sends no clear field.
69
+ - On approval-enabled servers, cancelling a submitted experiment's deadline
70
+ queues approval. The effective deadline remains until approval; rejection or
71
+ withdrawal keeps it, and the historical proposal remains unchanged.
72
+
73
+ For an existing experiment, reuse its verified name, bucket, start, complete
74
+ groups and metric bindings when constructing the cancellation request:
75
+
76
+ Copy the saved start timestamp verbatim, including seconds and milliseconds;
77
+ do not round it in the client. The matching backend preserves an unchanged saved
78
+ start through submission and approval. Only new or actually changed start times
79
+ round up to a half-hour boundary. An unchanged update must not create an approval
80
+ merely because a manually recorded start is not aligned to that boundary.
81
+
82
+ ```bash
83
+ ae-cli experiment external-experiment save-submit \
84
+ --project-id <verified-project-id> --exp-id <verified-exp-id> \
85
+ --exp-name '<current-name>' --bucket-id '<current-bucket-id>' \
86
+ --start-time '<current-start-time-with-offset>' \
87
+ --groups '<complete-current-groups-json>' --metrics '<current-metric-bindings-json>' \
88
+ --clear-end-time true --dry-run
89
+ ```
90
+
91
+ After submitting the selected change, read both approval and experiment detail;
92
+ do not report the deadline as cancelled while the proposal is pending.
93
+
94
+ Older servers without this field may still clear a deadline when `endTime` is
95
+ omitted or null. Pass the saved `--end-time` to retain it across server versions.
96
+ Explicit cancellation with `--clear-end-time` requires an upgraded backend;
97
+ schema rejection never authorizes an automatic retry without the clear flag or
98
+ through direct REST. If metadata omits the field while deployed backend behavior
99
+ is uncertain, resolve the contract before writing.
46
100
 
47
101
  Transition status: L2
48
102
  Owning module: Hermes Atlas experiment capability gateway
@@ -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.12
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
@@ -581,9 +581,11 @@ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incrementa
581
581
  ### `+status`
582
582
 
583
583
  ```bash
584
- ae-cli kb +status --name "<name>" [--scope personal|company]
584
+ ae-cli kb +status --name "<name>" [--scope personal|company] [--run-id <compile-run-id>]
585
585
  ```
586
586
 
587
+ 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.
588
+
587
589
  ### `+list-sources`
588
590
 
589
591
  ```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
@@ -134,7 +134,9 @@ A revision or access-context change requires revalidation, not silent reuse.
134
134
  until every answered subquestion is backed by sections actually read — not
135
135
  until a page "looks like the answer". For business data analysis, read the
136
136
  relevant definitions and boundaries, then hand off verified coverage and
137
- remaining gaps in step 5; live values do not need KB text as their source.
137
+ remaining gaps in step 5. Carry the matched branch outcome, source and answer
138
+ grains, required operation, checks and reason to stop together with its evidence.
139
+ When a legacy card omits these, read the linked definition before claiming coverage; live values do not need KB text as their source.
138
140
  Do not pick a single page by surface similarity between the question wording
139
141
  and the page/module name or hit line.
140
142
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Versions are immutable successful publications. No historical version is created until the first successful compile. Failed or cancelled compiles do not consume a version number. Existing `+compile`, `+status` and `+list-sources` responses pass through server version labels and draft state; `+index`, `+grep`, `+read` and `+ask` always address current content.
4
4
 
5
- When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart.
5
+ When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart. Exact-run `+status --run-id` returns the same `publicationReview` marker; stop even when `compileRun.status` remains `running`.
6
6
 
7
7
  Discover exact names/scopes via `kb +list`, then inspect history:
8
8
 
@@ -33,6 +33,7 @@ When remaining work is outside this skill's scope, or a necessary prerequisite n
33
33
  | `--dry-run` | Optional: confirm ready to run (`/dry-run`). Alone for risk/output preview. Do not stack with `--validate`. |
34
34
 
35
35
  Output and errors:
36
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
36
37
  - Success: JSON envelope (default). May include optional `_notice.host_compat`.
37
38
  - Failure: `{ "ok": false, "error": { "type", "message", "hint" } }`, non-zero exit.
38
39
  - **CRITICAL — Host compat (do this first):** After each `ae-cli` run, check stderr and `_notice.host_compat`. If either is present, open the user reply with a short ⚠️ version warning and **quote the `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then present the business result. Soft tip; `ok: true` can still carry the notice.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-migrate-tracking-code
3
+ version: 1.0.1
3
4
  description: "Migrate existing third-party SDK tracking code (Firebase, Amplitude, Sensors Data, Mixpanel, GA4) to the AE SDK (数数 / ThinkingAI / Agentic Engine / AE SDK) — switch (replace) or add alongside existing tracking (dual-write). Trigger words: 埋点迁移、埋点切换、第三方埋点迁移、第三方埋点切换、迁移埋点到数数、把 xx SDK 切换到数数、把已有埋点用数数实现一遍、用数数替换 xx SDK、集成数数并参考已有 xx SDK 埋点、Firebase 迁移、Amplitude 迁移、Mixpanel 迁移、神策迁移、Sensors Data 迁移、GA4 迁移、gtag 迁移、双写、tracking migration、migrate Firebase/Amplitude/Mixpanel/Sensors Data/GA4 to AE、switch xx SDK to ThinkingAI、replace xx SDK with AE、replace logEvent with track、re-implement existing tracking with ThinkingAI、add AE tracking alongside existing analytics、dual-write. Provider-agnostic core with per-provider adapters; reuses ae-generate-tracking-plan and ae-generate-tracking-code."
4
5
  ---
5
6
 
@@ -108,7 +109,7 @@ Hand off to `ae-generate-tracking-plan` using the codebase/draft already produce
108
109
 
109
110
  1. `ae-cli tracking plan draft --in .ae-cli/draft.json --out .ae-cli/draft.xlsx`
110
111
  2. `ae-cli tracking plan validate --in .ae-cli/draft.json --fix`
111
- 3. Resolve AE host/login/projectId per the plan skill, then `ae-cli tracking plan upload ...` (ask the user before uploading; append vs replace per that skill's conflict detection).
112
+ 3. Resolve AE host/login/projectId per the plan skill, then `ae-cli tracking plan upload ...` (choose append or replace after conflict detection and ask before uploading. For replacement or a preview-only request, follow the CLI help check and confirmation steps in Phase 4.3 of the plan skill).
112
113
 
113
114
  ## Phase 4 — Insert AE SDK code (switch or add)
114
115
 
@@ -25,7 +25,7 @@ Global parameters:
25
25
  | `--dry-run` | Show request details without executing. |
26
26
 
27
27
  Output and errors:
28
-
28
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
29
29
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
30
30
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
31
31
  - **CRITICAL — Host compat (do this first):** If stderr or `_notice.host_compat` has a version warning, open the user reply with ⚠️ and **quote `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then list projects/results. Never omit when summarizing. Soft tip; `ok: true` may still include the notice.