@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
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+ import { setTimeout as delay } from 'node:timers/promises';
3
+ import { parseArgs } from 'node:util';
4
+ import { realpathSync } from 'node:fs';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { invokeCompanyKbCli, runCompanyKb } from './company-kb.mjs';
7
+
8
+ function failure(code, message) {
9
+ return Object.assign(new Error(message), { code });
10
+ }
11
+
12
+ // Run lifecycle only: successful compilation still requires publication and content readback.
13
+ export async function waitForCompileRun(
14
+ { name, runId, host, timeoutMs = 1_800_000, pollIntervalMs = 5_000 },
15
+ invoke = invokeCompanyKbCli,
16
+ { now = () => performance.now(), sleep = delay } = {},
17
+ ) {
18
+ if (![name, runId, host].every(value => typeof value === 'string' && value.trim())) {
19
+ throw new Error('--name, --run-id and --host are required.');
20
+ }
21
+ if (![timeoutMs, pollIntervalMs].every(value => Number.isSafeInteger(value) && value > 0)) {
22
+ throw new Error('--timeout-ms and --poll-interval-ms must be positive integers.');
23
+ }
24
+ const deadline = now() + timeoutMs;
25
+ let knowledgeBaseId;
26
+ for (;;) {
27
+ const remaining = Math.floor(deadline - now());
28
+ if (remaining <= 0) throw failure('KB_COMPILE_WAIT_TIMEOUT', `Timed out waiting for compile run ${runId}.`);
29
+ const result = await runCompanyKb('+status', ['--name', name, '--run-id', runId, '--host', host],
30
+ flags => invoke(flags, { timeoutMs: Math.min(30_000, remaining) }));
31
+ const { knowledgeBase, compileRun } = result.data ?? {};
32
+ if (!compileRun || compileRun.id !== runId || knowledgeBase?.scope !== 'company' || !knowledgeBase.id
33
+ || (knowledgeBaseId && knowledgeBase.id !== knowledgeBaseId)) {
34
+ throw failure('KB_COMPILE_RUN_STATUS_UNSUPPORTED', 'Missing or mismatched compileRun identity; exact-run status support is required.');
35
+ }
36
+ knowledgeBaseId = knowledgeBase.id;
37
+ if (result.data.publicationReview) {
38
+ throw failure(result.data.publicationReview.code || 'KB_PUBLICATION_REVIEW_REQUIRED',
39
+ `Compile run ${runId} requires administrator review; stop polling without cancelling or restarting the run.`);
40
+ }
41
+ if (compileRun.status === 'succeeded') return result;
42
+ if (['failed', 'cancelled'].includes(compileRun.status)) {
43
+ throw failure(`KB_COMPILE_${compileRun.status.toUpperCase()}`,
44
+ `Compile run ${runId} ${compileRun.status}: ${compileRun.errorMessage || 'No error details returned.'}`);
45
+ }
46
+ if (!['queued', 'running'].includes(compileRun.status)) {
47
+ throw failure('KB_COMPILE_RUN_STATUS_UNSUPPORTED', `Unexpected compile run status: ${compileRun.status}`);
48
+ }
49
+ const wait = Math.min(pollIntervalMs, deadline - now());
50
+ if (wait > 0) await sleep(wait);
51
+ }
52
+ }
53
+
54
+ // Installed Skills may be reached through a symlink; compare their resolved entry files.
55
+ function isCliEntry() {
56
+ try {
57
+ return process.argv[1] && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url));
58
+ } catch {
59
+ // stdin/eval launchers need not provide a real entry file when importing this module.
60
+ return false;
61
+ }
62
+ }
63
+ if (isCliEntry()) {
64
+ try {
65
+ const { values } = parseArgs({ options: {
66
+ name: { type: 'string' }, 'run-id': { type: 'string' }, host: { type: 'string' },
67
+ 'timeout-ms': { type: 'string' }, 'poll-interval-ms': { type: 'string' },
68
+ } });
69
+ const result = await waitForCompileRun({
70
+ name: values.name, runId: values['run-id'], host: values.host,
71
+ ...(values['timeout-ms'] === undefined ? {} : { timeoutMs: Number(values['timeout-ms']) }),
72
+ ...(values['poll-interval-ms'] === undefined ? {} : { pollIntervalMs: Number(values['poll-interval-ms']) }),
73
+ });
74
+ console.log(JSON.stringify(result, null, 2));
75
+ } catch (error) {
76
+ console.error(JSON.stringify({ ok: false, error: { code: error.code ?? 'KB_COMPILE_WAIT_FAILED', message: error.message } }, null, 2));
77
+ process.exitCode = 1;
78
+ }
79
+ }
@@ -1,16 +1,18 @@
1
1
  ---
2
2
  name: ae-automation
3
- description: "Manage AE Agent and Agent team automations with ae-cli: create and edit schedules, enable or disable, run now, stop or retry executions, delete, inspect history and read execution results. Use for scheduled tasks and unattended recurring Agent work, from a local computer or an AE sandbox."
3
+ description: "Schedule AE platform automations: every day/week, daily reports, recurring reminders, monitoring, or repeat this task. Use ae-cli automation for persistent Agent/Agent Team tasks in the current space, instead of session-local CronCreate or /loop. Also manage schedules, runs, and results."
4
4
  ---
5
5
 
6
6
  # AE Automation
7
7
 
8
+ Create recurring Agent work as a platform automation through `ae-cli automation`. If any prerequisite or write command returns `error.type: auth` or `error.type: config`, or reports a permission denial or unsupported configuration, report the blocker and stop the automation workflow. Leave credential and environment diagnosis or repair to a separate user request. Do not substitute session-local `CronCreate`, `/loop`, or `scheduled_tasks.json` for the requested platform automation.
9
+
8
10
  See [command risks](references/command_index.md). Read [the command contract](references/cli.md) before writing or executing an automation. Use `ae-cli automation --help` and leaf help to discover flags.
9
11
 
10
12
  1. Resolve the host and space. A local user signs in with `ae-cli auth login`; a sandbox uses the current conversation user's injected CLI token, never a shared sandbox's user binding. Pass `--agent-space-id` when the user identifies a space. Without an explicit space, the CLI inherits the current AgentSpace from its runtime context, working directory or verified current conversation; only a local invocation without space context uses the personal default. Show the resolved space when it matters.
11
13
  2. Discover the automation with `automation list` and inspect `automation get`. Use the returned IDs; names are not unique.
12
14
  3. For creation, select an Agent or team through the corresponding discovery commands. Match configuration to the target type. Use `--weekdays` or `--days-of-month` JSON arrays for multiple days with one time; skip dates absent in a month. For the actual last day of every month use `--days-of-month '["L"]'`, or combine it with dates, e.g. `'[1,15,"L"]'`; overlapping selections execute only once. Both Agent and Agent Team accept result notifications. Confirm the complete configuration before creation; save only the recurring task instructions as `--message`, never the automation-creation guide. Preview writes with `--dry-run` when useful; the CLI shows a redacted request and asks the server to validate authentication, space, permissions, target state, fields, and idempotency without applying the operation.
13
- 4. Execute the requested operation. Deleting an automation or stopping an execution requires confirmation; use `--yes` only when the user already authorized that action. In a non-interactive shell, these operations fail immediately unless global `--yes` is present.
15
+ 4. Execute the requested operation. After creation, read back the returned automation ID with `automation get` and verify the saved space and configuration before reporting success; a local schedule or a promise to run later is not a platform creation receipt. Deleting an automation or stopping an execution requires confirmation; use `--yes` only when the user already authorized that action. In a non-interactive shell, these operations fail immediately unless global `--yes` is present.
14
16
  5. Read the returned run ID, then `automation runs result`. Report acceptance separately from completion. Use `--wait` only when the user needs the final outcome now.
15
17
 
16
18
  Results are read from the server and work outside the sandbox. This skill does not read complete conversations or continue a chat. Never infer an output from a different execution sharing the same conversation.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-capability
3
- version: 1.3.15
3
+ version: 1.3.17
4
4
  description: "AE capability gateway discovery and generic invocation with ae-cli. Use when the user needs to list or search available capabilities, inspect an unknown capability schema/risk/auth contract, optionally validate complex input or dry-run before execute, or invoke a long-tail capability that has no curated ae-cli command. Always discover and inspect before composing input; never guess capability IDs or input fields. Prefer on-demand validate OR dry-run — do not stack both by default."
5
5
  ---
6
6
 
@@ -18,7 +18,7 @@ Use this skill for progressive capability discovery and generic gateway invocati
18
18
  2. Otherwise search the capability catalog.
19
19
  3. Inspect the selected capability before constructing input.
20
20
  4. **Optionally** pre-check — pick **at most one** path from the table below (do not stack validate + dry-run by default).
21
- 5. Execute (`capability run` / curated command). Chat confirmation only for delete (`high-risk-write`).
21
+ 5. Execute (`capability run` / curated command). Obtain explicit user confirmation for `high-risk-write`, including deletion, cancellation, sharing, ownership, permission, and authentication-policy changes.
22
22
 
23
23
  Never guess a capability ID, input field, enum value, resource ID, or project ID.
24
24
 
@@ -31,16 +31,20 @@ Hard rule: before running gateway-backed `ae-cli` commands, maintain the current
31
31
  Create or update the context file when starting a CLI-backed task and whenever the user's CLI purpose changes. Reuse it while the purpose and model remain unchanged. Use the user's original language for `session_initial_intent`, `user_intent`, and `session_goal`; for example, use Chinese text for a Chinese user request. At minimum, include:
32
32
 
33
33
  - `agent_client`
34
- - `agent_model` whenever the current model can be confirmed
34
+ - `agent_model` (required by this Skill; follow the preflight below)
35
35
  - stable `agent_session_id`
36
36
  - `agent_turn_id` when available
37
37
  - `intent_source: "agent_context_file"`
38
38
  - concise `user_intent` for the current CLI-triggering purpose
39
39
  - current `session_goal`
40
40
 
41
- The Agent must actively obtain the current model identifier and write it explicitly as `agent_model` in the context file. Use trusted runtime context or bounded metadata for the exact current session and turn; for example, Codex's current-session `turn_context.model`. Do not rely solely on a model environment variable being present. Never infer the model from the Agent/product name, a configured default, or another session. This requirement applies to every Agent client. Update the file when the model changes, even if the CLI purpose stays the same.
41
+ **Required Agent preflight:** the Agent must report `agent_model` before every gateway-backed CLI call. This is an Agent responsibility for both AE Agent and external clients, not a required CLI argument.
42
42
 
43
- If the model cannot be confirmed, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
43
+ 1. Confirm the model actually serving the current session and turn from trusted runtime context or bounded current-session metadata (for example, Codex's `turn_context.model`). Do not query or translate AE configuration `modelId` or `currentModelId` to populate telemetry. Never infer the model from the Agent/product name, a configured default, or another session. A missing model environment variable does not waive this step.
44
+ 2. Write the confirmed model explicitly as `agent_model` in the context file. Update the file when the model changes, even if the CLI purpose stays the same. Do not leave the example placeholder in the file.
45
+ 3. Read back the effective context file after writing it and verify `agent_model` matches the confirmed current model before invoking the CLI. Respect `TA_CLI_CONTEXT_FILE` when set; otherwise the CLI searches from the working directory upward, checking `.ta/cli-agent-context.json` before `.ae/cli-agent-context.json` in each directory. Update the file that actually wins, not a shadowed copy. Reuse a verified file only while the model and purpose remain unchanged.
46
+
47
+ Only if trusted current-session information cannot confirm the model after this check, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Do not fabricate a model to satisfy this Skill. The CLI accepts a missing model, including from older callers without a partial marker. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
44
48
 
45
49
  Write this JSON object to `.ae/cli-agent-context.json`:
46
50
 
@@ -102,9 +106,9 @@ Hard rule: **for the same final input, do not run both validate and dry-run by d
102
106
  | Situation | What to call | Then |
103
107
  | --- | --- | --- |
104
108
  | Simple / familiar input (typical `read`, few scalar fields) | **Neither** — skip pre-check | `run` directly |
105
- | Complex `qp` / nested `payload` / share maps; still iterating shape | **`--validate` / `capability validate` only** (may repeat while fixing) | After `valid=true`, **`run` directly** — skip dry-run unless below applies |
106
- | Need risk / `output_mode` / `supports_cancel`, or `high-risk-write` delete gate | **`--dry-run` / `capability dry-run` only** (once on final input) | Then confirm (delete) / `run`. Do **not** validate first on the same final payload |
107
- | Rare exception: many validate iterations, then still need delete confirmation | validate while drafting → **one** dry-run on the **final** input | Then chat confirm → `run --yes` |
109
+ | Complex `qp` / nested `payload` / share maps; still iterating shape | **`--validate` / `capability validate` only** (may repeat while fixing) | After `valid=true`, run following the inspected risk and authorization requirements; skip dry-run unless below applies |
110
+ | Need risk / `output_mode` / `supports_cancel`, or `high-risk-write` gate | **`--dry-run` / `capability dry-run` only** (once on final input) | Then confirm the high-risk change / `run`. Do **not** validate first on the same final payload |
111
+ | Rare exception: many validate iterations, then still need high-risk confirmation | validate while drafting → **one** dry-run on the **final** input | Then chat confirm → `run --yes` |
108
112
 
109
113
  Do **not** treat `validate → dry-run → run` as the normal path. That stack is the rare exception in the last row only.
110
114
 
@@ -149,6 +153,8 @@ The capability namespace is inferred from `<capability-id>` for `inspect`, `vali
149
153
 
150
154
  ## validate vs dry-run
151
155
 
156
+ The built-in `--jq`/`capability ... --jq` filter receives the command payload before the outer `{ok,data,meta}` envelope. For example, `capability list` uses `.capabilities[]`; only external jq over saved final JSON uses `.data.capabilities[]`.
157
+
152
158
  | | `validate` / `--validate` | `dry-run` / `--dry-run` |
153
159
  | --- | --- | --- |
154
160
  | Purpose | Check **input shape** while composing complex payloads | **Pre-execution confirmation** (params + risk/output/cancel) |
@@ -231,3 +237,5 @@ ae-cli capability validate metadata.data_table.sql_write --input input.json
231
237
  ae-cli capability dry-run analysis.folder.delete --input '{"project_id":1,"folder_ids":[1001]}'
232
238
  ae-cli capability run analysis.dashboard.list --input input.json
233
239
  ```
240
+
241
+ For non-interactive high-risk execution, obtain explicit authorization and pass global `--yes`. Piped answers do not replace this flag. An interactive prompt ending at EOF aborts cleanly. Gateway permission errors retain `meta.request_id` and `meta.invocation_id` for diagnosis.
@@ -40,6 +40,7 @@ Global parameters:
40
40
  | `--host <url>` | Override the active AE host for analysis-side commands and place it after the subcommand, e.g. `ae-cli community +<command> --host <url>`. It is intentionally unavailable for `community data report`; use `--endpoint` there. |
41
41
 
42
42
  Output and errors:
43
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use `.items`/`.page` (or the command's documented payload fields); use `.data...` only with external jq over saved final JSON.
43
44
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
44
45
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
45
46
  - **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.
@@ -33,6 +33,7 @@ Global parameters:
33
33
  | `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli dataops_ide +<command> --host <url>`. |
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
  - JSON results use an outer `ok` and `data`; command errors use `ok:false` with `error.type/message/hint` on stderr and exit non-zero. Inspect both streams.
37
38
  - **`ok:true` is not a business completion check.** Legacy commands can return `REJECTED`, `FAILED`, or `CHECK_FAILED` inside `data`. Check the specific result fields described by the reference before proceeding. Reading a failed task's status successfully is different from successfully executing that task.
38
39
  - For asynchronous work, preserve the returned ID and query that same operation. Submission is not completion; do not submit again because it is still running. Use bounded polling with backoff; when the wait budget is exhausted, report the ID and current state rather than claiming success or restarting work.
@@ -33,6 +33,7 @@ Global parameters:
33
33
  | `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli engage-flow flow list --host <url>`. |
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
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
37
38
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
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,6 +1,6 @@
1
1
  ---
2
2
  name: ae-evaluation
3
- version: 2.4.5
3
+ version: 2.4.7
4
4
  description: "Operate the Agent Evaluation (agent-test) platform through ae-cli: manage evaluation assets, configure and run Agent or preset-output evaluations, and analyze results. Use for platform evaluation tasks and their model, credential, integration, or schedule setup."
5
5
  ---
6
6
 
@@ -33,9 +33,24 @@ References contain command inputs, JSON contracts, and task-specific workflows;
33
33
  - Use the online platform. Do not suggest localhost/loopback endpoints or obtain tokens from a local `agent-test/.env`.
34
34
  - Authentication uses `AE_EVAL_ACCESS_TOKEN` when explicitly set; it is sent only as `Authorization: Bearer` and must never appear in command arguments or output.
35
35
  - In an AE sandbox, when `AE_EVAL_ACCESS_TOKEN` is unset, ae-cli automatically exchanges the sandbox-provisioned `cli-token` through te-claude for a short-lived evaluation session. The CLI token is never sent to Agent Evaluation. If the token can access multiple TE projects, set `AE_EVAL_TE_PROJECT_ID` to the authorized TE project id.
36
- - Outside a sandbox, obtain a session token through the platform web console (`sessionStorage.getItem('agent.evaluation.session-token')`) or `POST /agenteval/api/v1/auth/session`. An unset token produces `EVAL_ACCESS_TOKEN_MISSING`.
36
+ - Outside a sandbox, when the token is unset, the CLI immediately returns `EVAL_ACCESS_TOKEN_MISSING` with `token_missing` onboarding guidance and sends no network request. Module availability and service health remain unchecked. Direct the user to obtain a session token through the platform web console (`sessionStorage.getItem('agent.evaluation.session-token')`) or `POST /agenteval/api/v1/auth/session`. Never request tokens in chat.
37
37
  - Successful commands return JSON by default; use the actual error envelope to diagnose failures.
38
38
 
39
+ ### Evaluation availability and onboarding
40
+
41
+ AI Evaluation Center is an optional deployment module. CLI command/Skill availability does not establish that the server module is installed or that the user has access.
42
+
43
+ - When an error includes `error.details.onboarding`, follow the status-specific scope below. Do not blindly repeat the failed operation, change flags, refresh tokens, or use direct HTTP calls to bypass a denial. This is a host-Agent instruction, not a persistent CLI circuit breaker. Independent local work can continue.
44
+ - First preserve local work: when asked to organize and upload a dataset, finish and save the local CSV/JSON if possible. Confirm its actual file path. If a write times out, loses its response, or receives a gateway/server failure, explain that the write result is unconfirmed: the server may already have accepted it. Do not claim either success or failure and do not resubmit blindly. Once connectivity is restored, use authorized read-only status checks with any known resource/import ID to reconcile the result. If no reliable identifier or lookup exists, ask the administrator/support to verify before another write.
45
+ - Read `onboarding.status`, explain the evidence in the user's language, and follow its `next_steps`:
46
+ - `module_not_detected`: stop further evaluation commands on the affected host until deployment/routing is verified. The API route was not detected (generic route 404 or HTML fallback). The optional module may be missing or its routing may be wrong. Contact the ThinkingData service representative (CSM or Technical Support) to verify deployment/routing, install the module if needed, and grant access. Do not assert that installation is certainly absent.
47
+ - `access_not_granted`: stop only the denied operation. Independent authorized operations may continue; for example, a denied delete does not prohibit an authorized dataset read. Do not run other commands just to probe or bypass the denial. Stop a whole project or module only when that access scope is confirmed. Ask the administrator or ThinkingData support to check the required permission (READER / EDITOR / ADMIN as appropriate). A 403 alone proves neither cluster-wide denial nor module installation; do not recommend reinstallation or token rotation.
48
+ - `token_missing`: stop remote evaluation operations on this host until a token is configured. The external terminal has no token; no request was sent and endpoint availability was not checked. Follow the conditional web-console instructions; if the app launcher entry is missing, request administrator/support verification instead of sending the user to a nonexistent page. This status does not establish the health of every evaluation service.
49
+ - `availability_unknown`: stop blind retries of the failed operation. Network errors, timeouts, server failures, invalid responses, and missing sandbox session routes cannot establish installation state. Ask for host/network/service/routing verification; do not present an outage as an installation requirement. After connectivity is restored, authorized read-only status checks may reconcile an unconfirmed write; they must not resubmit it.
50
+ - Briefly relate the three capabilities to the user's task: **Datasets** manage single/multi-turn test cases and versions, with CSV/JSON imports and AI Monitor traces; **Evaluators** provide templates/custom LLM judges, human calibration, and prompt optimization; **Evaluation Runs** test live Agents or score preset outputs, schedule regressions, and inspect low-score cases and traces. Translate this explanation naturally for Chinese or English users; CLI envelopes remain English.
51
+ - If the user asks only about capabilities, explain them without a network call. If they also request current datasets/runs, apply the status-specific stop scope above when the first call reports onboarding; do not make another call just to demonstrate another capability.
52
+ - Existing business error codes, error type (`api`), and exit code remain unchanged. Onboarding is additive; ordinary business 404 errors (such as `DATASET_NOT_FOUND`) do not indicate a missing module. Older CLIs may omit onboarding; use their diagnostic evidence cautiously and do not infer installation from a bare 404/5xx.
53
+
39
54
  ## IDs, versions, and mutations
40
55
 
41
56
  - Discover real IDs with list/get commands. UUIDs are version-7 strings; never guess IDs, JSON payload shapes, frequency fields, or `lock_version` values.
@@ -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.11
4
+ description: "Use when managing Atlas AB or external experiments, experiment approvals and approvers, traffic domains and layers, Features, metrics, buckets, and experiment reports through ae-cli"
5
5
  ---
6
6
 
7
7
  # ae-experiment
@@ -13,10 +13,10 @@ AE CLI (`ae-cli`) exposes Atlas AB Experiment capabilities through the `experime
13
13
  - Prefer `ae-cli experiment <command>` for Atlas AB Experiment work.
14
14
  - Use `--project-id` / `-p` for project-scoped commands.
15
15
  - Use `--req` JSON for complex save, status, and delete DTOs.
16
- - Do not invent experiment IDs, traffic layer IDs, bucket IDs, Feature keys, metric IDs, or payload field names.
16
+ - Do not invent experiment IDs, traffic domain 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 (including domain deletion) 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
 
@@ -33,6 +33,9 @@ Naming and response boundary:
33
33
  `targeting.definition_request`. Never generate or submit `targetConfig`.
34
34
  - Metric QP is semantic at the CLI boundary: write `metricDefinition`; read
35
35
  `metric_definition`. Never generate or submit `metricConfig`, `calcType`, or `Axxx` codes.
36
+ - Metric save supports event, formula, retention, and funnel definitions. Check
37
+ `experiment.metric.save` in the target server's capability schema and use the
38
+ [metric save contract](references/save_metric.md) to compose the request.
36
39
  - Event-property comparisons belong in `metricDefinition.filters`, using
37
40
  `{relation,items:[{field,operator,values}]}`. Never put comparison fields directly on
38
41
  `metricDefinition`, and never submit raw `filts`, `calcuSymbol`, or `ftv` fields.
@@ -50,6 +53,7 @@ Naming and response boundary:
50
53
 
51
54
  1. Discover reusable assets:
52
55
  - `experiment bucket list`
56
+ - `experiment traffic-domain list` for Space quotas, current versions and domain permissions
53
57
  - `experiment traffic-layer list`
54
58
  - `experiment feature list`
55
59
  - `experiment metric list`
@@ -61,14 +65,33 @@ Naming and response boundary:
61
65
  - `experiment metric save`
62
66
  3. Create or patch the experiment draft with `experiment experiment save`.
63
67
  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.
68
+ 4. For an external experiment, use `experiment external-experiment save-submit` instead.
69
+ Updated servers submit external experiments without approval, regardless of
70
+ the approver roster. They do not use Features, traffic layers, allocation,
71
+ targeting, or experiment cycles. Skip the Feature readiness/conflict/submission
72
+ steps and read experiment detail to verify the result. Older approval-capable
73
+ servers may still queue review; read [server compatibility](references/experiment_approval.md#server-compatibility).
74
+ On servers exposing `req.clearEndTime`, omitting `--end-time` on updates retains
75
+ the saved deadline. Cancel it explicitly with `--clear-end-time true`; read
76
+ [external deadline compatibility](references/save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
77
+ before changing a deadline on older servers.
78
+ 5. For a Feature draft, check readiness with `experiment experiment ready-check`.
79
+ 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`).
80
+ 7. Submit the saved Feature draft with `experiment experiment manage --target-status pending`.
81
+ This submission path works on both older and approval-enabled servers.
82
+ `experiment approval submit` is an alternative after verifying capability support;
83
+ submit once, never through both commands. Before choosing approval commands,
84
+ read [server compatibility](references/experiment_approval.md#server-compatibility).
85
+ On updated servers, a non-empty project approver roster enables Feature
86
+ approval; an empty roster submits directly using the existing manual or
87
+ scheduled start. Read `experiment experiment get` after submission. When
88
+ review is pending, read `experiment approval get` and process the exact
89
+ `approval_id` only for the user-requested action. Approval can start a due
90
+ Feature experiment; verify approval and runtime status independently.
91
+ For a scheduled Feature start, save `startTime` (or use `--start-time`) before
92
+ submission. Read [Feature timing](references/save_experiment.md#feature-timing).
93
+ Use `experiment experiment manage` for existing lifecycle actions. Its
94
+ `draft → pending` call uses the same server approval policy as other submission paths.
72
95
  To resume `paused` to `running`, call `manage` directly and verify the status
73
96
  with `get`; do not use the pre-launch `ready-check` as a resume prerequisite.
74
97
  8. Query reports with `experiment report summary`, `experiment report sample-size`, and `experiment report metric-trend`.
@@ -78,12 +101,15 @@ If an experiment save returns `error_code: METRIC_NOT_FOUND`, list metrics for t
78
101
  ## Parameter Conventions
79
102
 
80
103
  - Experiment save payloads distinguish two allocation fields: experiment-level `req.allocation` (**integer only; no decimals**) and group-level `req.groups[].allocation` (**integer only; sum must equal `100` exactly**).
104
+ - Shared traffic uses `req.isExpSharing=1` with `req.trafficLayerId` and must not pass `req.layerType`.
105
+ - Exclusive traffic uses `req.isExpSharing=0` with `req.bucketId`. Set `req.layerType` to `remote` or `local`; omitted mode defaults to `remote`. Local routing does not support `#user_id`.
81
106
  - Public experiment metric roles are `primary`, `secondary`, and `guardrail`. The internal `observation` role is currently unavailable for saves. Guardrail is a binding role; updating metrics replaces the full binding list.
82
107
 
83
108
  ```bash
84
109
  ae-cli experiment experiment get --project-id 1 --exp-id exp_123
85
110
  ae-cli experiment experiment save --project-id 1 --req '{"expName":"Demo"}' --dry-run
86
- ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_gold_sum","metricName":"Payment gold sum","createType":"event","goalDirection":"up","metricDesc":"Gold sum for payments above 10","metricDefinition":{"type":"event","event":"payment","aggregation":"sum","property":"gold","filters":{"relation":"and","items":[{"field":"gold","operator":"gt","values":[10]}]}}}' --dry-run
111
+ ae-cli experiment experiment save --project-id 1 --req '{"expName":"Local routing draft","isExpSharing":0,"layerType":"local","bucketId":"#account_id"}' --dry-run
112
+ ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_gold_sum","metricName":"Payment gold sum","createType":"event","goalDirection":"up","metricPurpose":"confidence_statistics","metricDesc":"Gold sum for payments above 10","format":"float2","metricDefinition":{"type":"event","event":"payment","aggregation":"sum","property":"gold","filters":{"relation":"and","items":[{"field":"gold","operator":"gt","values":[10]}]}}}' --dry-run
87
113
  ae-cli experiment report metric-trend --project-id 1 --exp-id exp_123 --metric-id metric_1 --start-time 2026-07-01 --end-time 2026-07-07
88
114
  ```
89
115
 
@@ -115,6 +141,36 @@ Read [`manage_guardrail_metrics.md`](references/manage_guardrail_metrics.md) bef
115
141
 
116
142
  Read [`save_submit_external_experiment.md`](references/save_submit_external_experiment.md) before creating or updating an external experiment.
117
143
 
144
+ ### Experiment Approval and Approvers
145
+
146
+ `experiment approval get`, `experiment approval submit`, `experiment approval approve`,
147
+ `experiment approval reject`, `experiment approval withdraw`, `experiment approver list`,
148
+ `experiment approver add`, `experiment approver delete`
149
+
150
+ Read [`experiment_approval.md`](references/experiment_approval.md) for the approval workflow,
151
+ exact round IDs, proposed versus effective configuration, and the separate experiment approver list.
152
+ Approver list requires experiment settings view permission (`experimentViewSetting`);
153
+ approver add/delete require experiment settings edit permission (`experimentEditSetting`).
154
+ Approval actions use the separate experiment permissions described in the reference.
155
+ On updated servers, only Feature experiments with a non-empty approver roster
156
+ queue delivery changes for approval; a save returning `true` does not prove
157
+ the change is effective. Read experiment detail and any pending proposal.
158
+ Removing the last approver preserves existing pending reviews; withdraw and
159
+ resubmit when authorized. Adding approvers does not require retrospective
160
+ approval of effective configurations. Ineligible members do not make a
161
+ non-empty roster empty, and a failed roster read never proves approval is off.
162
+
163
+ ### Traffic Domains
164
+
165
+ `experiment traffic-domain list`, `experiment traffic-domain create`, `experiment traffic-domain update`, `experiment traffic-domain delete`
166
+
167
+ Read [`manage_traffic_domains.md`](references/manage_traffic_domains.md) before quota changes,
168
+ deletion, or binding domains to traffic layers and exclusive experiments. Domain quotas use
169
+ integer basis points (10000 = 100%) and current Space `allocation_version`. Do not auto-refresh
170
+ and retry a rejected write. Domain commands use typed flags and snake_case allocation rows.
171
+ List, create and delete return Space snapshots in `data.items`; `data.total` counts Spaces.
172
+ Update returns Boolean `data.result`; list again to obtain the new version.
173
+
118
174
  ### Traffic Layer and Buckets
119
175
 
120
176
  `experiment traffic-layer save`, `experiment traffic-layer get`, `experiment traffic-layer list`, `experiment traffic-layer batch-delete`, `experiment bucket list`
@@ -0,0 +1,229 @@
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
+ ## Current approval policy
34
+
35
+ These rules require the backend with the updated approval policy:
36
+
37
+ | Experiment / project roster | First submission and delivery changes |
38
+ | --- | --- |
39
+ | External experiment, any roster | Apply through the existing submission/save path without a new approval |
40
+ | Feature experiment, empty roster | Apply through the existing submission/save path without a new approval |
41
+ | Feature experiment, non-empty roster | Queue approval; keep effective configuration until approval |
42
+
43
+ A non-empty roster enables Feature approval even when all listed members have
44
+ lost eligibility. Only an empty roster disables it; a failed list request is
45
+ not an empty roster. Draft saves and display-only edits retain their existing
46
+ rules. Pause, resume, end, manual start, scheduling, and lifecycle validation
47
+ remain unchanged. Exempt Feature first submissions enter pending and use the
48
+ existing manual or future scheduled start; exemption does not grant the
49
+ approval-specific automatic startup or subscription continuation.
50
+
51
+ Deleting the last approver disables approval for subsequent submissions and
52
+ delivery changes. Adding an approver enables it without requiring retrospective
53
+ approval of effective configurations. Existing pending reviews and history are
54
+ preserved, including legacy external proposals. They are not applied automatically;
55
+ an authorized editor can withdraw and resubmit under the current policy. Do not
56
+ change the roster merely to work around an outstanding review.
57
+
58
+ ## Server compatibility
59
+
60
+ Before selecting approval commands for the active host, inspect metadata without
61
+ the project filter so project availability is not mistaken for an older server:
62
+
63
+ ```bash
64
+ ae-cli capability inspect experiment.approval.submit
65
+ ```
66
+
67
+ - Metadata returned: approval commands are available, but this alone does not
68
+ identify the policy version or enable approval for a project. Older
69
+ approval-capable servers may still review external experiments and empty-roster
70
+ submissions. Verify the deployed policy and read actual results. For saved
71
+ Feature drafts,
72
+ either `approval submit` or the compatible `experiment experiment manage
73
+ --target-status pending` submits once; do not execute both.
74
+ - An explicit `CAPABILITY_NOT_FOUND`, or a verified deployed release without
75
+ approval support: keep the existing submission workflow below, and verify
76
+ runtime status with experiment detail. Do not call approval commands.
77
+ - Authentication, permission, project, network, or business errors, an empty
78
+ filtered catalog, and a generic HTTP 404 do not establish missing approval
79
+ support. Resolve the error; do not switch write paths or infer approval is off.
80
+
81
+ Compatible saved Feature draft submission on older servers:
82
+
83
+ ```bash
84
+ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-status pending
85
+ ae-cli experiment experiment get --project-id 1 --exp-id exp_123
86
+ ```
87
+
88
+ The same `manage` call uses the server policy and cannot bypass required
89
+ approval. Read experiment detail after this call, and inspect any pending
90
+ proposal instead of submitting again. External-experiment `save-submit` and
91
+ L3 `experiment.experiment.save-submit` retain their existing calls and use the
92
+ same policy. Read runtime detail on every server and approval details when
93
+ supported and relevant. New approval/settings operations themselves require a
94
+ backend upgrade when their capability is absent.
95
+ The CLI never automatically retries a failed approval write through `manage`
96
+ or direct REST, including capability-not-found, permission, and stale-round errors.
97
+
98
+ ## Submit and review
99
+
100
+ 1. Save the draft, complete readiness checks, and check traffic conflicts for a
101
+ non-mutex traffic layer. A draft-only request ends after saving and verification.
102
+ 2. When submission is requested, submit the saved draft:
103
+
104
+ ```bash
105
+ ae-cli experiment approval submit --project-id 1 --exp-id exp_123 --dry-run
106
+ ae-cli experiment approval submit --project-id 1 --exp-id exp_123
107
+ ae-cli experiment experiment get --project-id 1 --exp-id exp_123
108
+ ```
109
+
110
+ The external-experiment `save-submit` command and L3
111
+ `experiment.experiment.save-submit` already submit complete configuration;
112
+ read experiment detail afterward instead of submitting a second time.
113
+ 3. Check runtime `status`, effective configuration, and the `approval` summary.
114
+ For a pending review, read `experiment approval get --project-id 1 --exp-id exp_123`
115
+ and inspect `data.item.approval_id`, `state`, `configuration`, and available
116
+ actions `can_approve`, `can_reject`, `can_cancel`. `item=null` means no approval
117
+ history and is valid for exempt submissions. An older rejected or withdrawn
118
+ record can also remain after a direct submission; it is not a new pending review.
119
+ 4. Review the actual proposed configuration before approval. Apply only the
120
+ user-requested action to that exact round. The commands never discover and
121
+ substitute another approval ID automatically.
122
+
123
+ For example, after discovering and reviewing approval ID `42`:
124
+
125
+ ```bash
126
+ ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42 --dry-run
127
+ ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42
128
+ ```
129
+
130
+ Alternative actions on a verified pending round:
131
+
132
+ ```bash
133
+ ae-cli experiment approval reject --project-id 1 --exp-id exp_123 --approval-id 42 --reason 'Reduce traffic before launch'
134
+ ae-cli experiment approval withdraw --project-id 1 --exp-id exp_123 --approval-id 42
135
+ ```
136
+
137
+ Run only the selected action, then re-read approval and experiment detail. A
138
+ dry-run checks the input contract without applying configuration; it does not
139
+ prove current approver eligibility, an unchanged baseline, resource readiness,
140
+ or that the real approval will succeed.
141
+
142
+ ## State and configuration boundaries
143
+
144
+ - When approval is required, first submission remains `status=draft` with
145
+ `approval.state=pending_review`.
146
+ `mapping_status` is a display status; it does not replace the runtime `status`.
147
+ - When approval is required, submitted delivery changes queue an immutable
148
+ proposal while the current configuration and runtime state continue to apply. This includes changes
149
+ submitted through existing save commands; a successful boolean save is not
150
+ proof that the new delivery configuration is effective.
151
+ - Name, hypothesis, and other display-only changes normally save directly.
152
+ A pending review freezes editing and deletion; withdraw it before editing.
153
+ - Rejection or withdrawal preserves the effective configuration. If revising
154
+ a rejected/withdrawn proposal, read its `configuration` as well as experiment
155
+ detail. Rebuild a valid camelCase write request from the save contract;
156
+ never send the read-only snake_case snapshot directly as `--req`.
157
+ - Approval applies the stored snapshot and rechecks project access, submitter
158
+ access, approver eligibility, configuration baseline, resources, and time.
159
+ It can start a due Feature experiment and synchronize Feature/RCC. A future
160
+ start remains pending; audience subscription can also delay startup. A running
161
+ or paused experiment keeps its lifecycle and original start time.
162
+ - External experiments are exempt under the current policy. Their time range
163
+ determines pending/running/ended through the existing lifecycle; they do not
164
+ synchronize Feature/RCC. Existing pending external reviews still require
165
+ explicit withdrawal before resubmission.
166
+
167
+ ## Approver settings and permissions
168
+
169
+ Experiment approvers are project-scoped and independent of Engage approvers.
170
+ List responses include `approver`, `approver_name`, `creator_name`, `create_time`,
171
+ and `eligible`. Use verified project member open IDs for additions.
172
+
173
+ ```bash
174
+ ae-cli experiment approver list --project-id 1
175
+ ae-cli experiment approver add --project-id 1 --approvers '["open_id_1","open_id_2"]' --dry-run
176
+ ae-cli experiment approver delete --project-id 1 --approver open_id_1 --dry-run
177
+ ```
178
+
179
+ List before and after a requested settings change. Removing the last member
180
+ turns off subsequent Feature approval under the current policy, while
181
+ existing pending records remain pending. Deletion requires confirmation;
182
+ non-interactive execution requires `--yes` after authorization. Ordinary
183
+ writes do not prompt.
184
+
185
+ For an initial draft review that the user asks to withdraw and resubmit after
186
+ approval is disabled, first read and verify the pending round and `can_cancel`.
187
+ Withdrawal preserves the saved configuration. If the intended proposal differs
188
+ from that configuration, withdraw, rebuild and save the authorized changes, then
189
+ resubmit. When the saved configuration already matches the requested proposal,
190
+ for example for verified round `42`:
191
+
192
+ ```bash
193
+ ae-cli experiment approval withdraw --project-id 1 --exp-id exp_123 --approval-id 42
194
+ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-status pending
195
+ ae-cli experiment experiment get --project-id 1 --exp-id exp_123
196
+ ```
197
+
198
+ For changes to an already submitted experiment, use its original save or save-submit
199
+ path after withdrawal; `approval submit` only submits saved drafts.
200
+
201
+ Each command requires the following CLI token scope and operator permissions:
202
+
203
+ | Command | CLI token scope | Operator permissions |
204
+ | --- | --- | --- |
205
+ | `experiment approver list` | `engage:read` | Experiment settings view (`experimentViewSetting`) |
206
+ | `experiment approver add/delete` | `engage:write` | Experiment settings edit (`experimentEditSetting`) |
207
+ | `experiment approval get` | `engage:read` | Experiment view (`experimentViewExperiment`) |
208
+ | `experiment approval submit/withdraw` | `engage:write` | Experiment edit (`experimentEditExperiment`) as the experiment creator, or experiment management (`experimentManageExperiment`) |
209
+ | `experiment approval approve/reject` | `engage:write` | Experiment view (`experimentViewExperiment`) and current experiment approver eligibility; experiment edit permission is not required |
210
+
211
+ Experiment settings permissions are independent of experiment view, edit, and
212
+ management permissions. Settings permissions do not grant approval eligibility;
213
+ approvers must belong to the project roster and retain experiment view permission.
214
+ The server enforces permissions and project/resource ownership.
215
+
216
+ ## Failures and older servers
217
+
218
+ - `EXPERIMENT_APPROVAL_STALE`: re-read the latest round; do not silently approve
219
+ a replacement proposal or retry a finished action.
220
+ - `EXPERIMENT_APPROVAL_BASELINE_CHANGED`: re-read approval and effective detail.
221
+ Withdraw and submit a corrected proposal when authorized.
222
+ - Invalid/ineligible approvers or permission errors: correct the roster or
223
+ permissions through the requested settings workflow; do not retry blindly.
224
+ - After a timeout or uncertain write result, read both records before deciding
225
+ whether another write is needed.
226
+ - Existing `experiment experiment manage --target-status pending` remains
227
+ supported on older and approval-enabled servers. Select the workflow using
228
+ [server compatibility](#server-compatibility), before writing. An approval
229
+ failure never authorizes bypassing it through direct REST or a status change.