@thinkingai/ae-cli 6.1.19 → 6.1.21

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 (370) hide show
  1. package/README.md +96 -38
  2. package/README.zh.md +96 -38
  3. package/dist/{auth-QPEVVBKT.js → auth-XZNXFRJS.js} +236 -127
  4. package/dist/{capability-ASI62I4A.js → capability-FYTU3X6L.js} +80 -37
  5. package/dist/{chunk-QL6R6TSK.js → chunk-4NRCTUZJ.js} +27045 -477
  6. package/dist/{chunk-JYMGHGCE.js → chunk-57RRFUEZ.js} +42 -15
  7. package/dist/chunk-6ZIQV5GW.js +26 -0
  8. package/dist/{chunk-KZ6ZHF5J.js → chunk-7FTTULED.js} +14 -14
  9. package/dist/chunk-7XGFSUOM.js +623 -0
  10. package/dist/chunk-CCS66K4K.js +155 -0
  11. package/dist/{chunk-B5HMQAOM.js → chunk-DVMLWQD4.js} +8 -186
  12. package/dist/{chunk-KEWVSO64.js → chunk-DX5CDO34.js} +28 -18
  13. package/dist/chunk-EQ255HKO.js +38248 -0
  14. package/dist/{chunk-6QK7SYYY.js → chunk-HBGADCKA.js} +29 -37
  15. package/dist/{chunk-GJXRF7Y6.js → chunk-HFGZGYCG.js} +54 -81
  16. package/dist/chunk-JOCDD4ON.js +15 -0
  17. package/dist/{chunk-TKHSULJT.js → chunk-KPQY44JQ.js} +6 -0
  18. package/dist/{chunk-FR2EDAQM.js → chunk-MAPZ7VB6.js} +90 -2
  19. package/dist/chunk-V2NUHPXF.js +196 -0
  20. package/dist/{chunk-S5PONFBM.js → chunk-VYXXOKYS.js} +9 -9
  21. package/dist/{community-report-client-6OL6GBQW.js → community-report-client-CU22W53K.js} +2 -4
  22. package/dist/{config-XNMACCKX.js → config-XO3LI3SA.js} +8 -9
  23. package/dist/context-IFJI3LIT.js +46 -0
  24. package/dist/{data-integration-4NZGZ45E.js → data-integration-HNGUKFIC.js} +55 -44
  25. package/dist/index.js +122 -112
  26. package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-GTRIT64F.js} +4 -5
  27. package/dist/{memory-HBJQ2GC5.js → memory-QGPSNCQS.js} +4 -6
  28. package/dist/{metadata-62EWBEIG.js → metadata-DI5BMYFU.js} +8 -10
  29. package/dist/{model-BHLJ2QMT.js → model-RNPQXIBI.js} +4 -6
  30. package/dist/{personal-semantic-preference-JBVMAI7L.js → personal-semantic-preference-5C3WUXFI.js} +11 -10
  31. package/dist/{project-semantic-BQ4MPUS5.js → project-semantic-3LF6Q6JZ.js} +29 -25
  32. package/dist/{sync-MUWPRM5I.js → sync-O45NXEQY.js} +7 -8
  33. package/dist/{te-agent-WQZTMEK4.js → te-agent-K5MSPNHJ.js} +393 -90
  34. package/dist/{te-analysis-MNCG65LU.js → te-analysis-AISWCOOZ.js} +1175 -377
  35. package/dist/{te-community-BNE6KREL.js → te-community-4OYU3BDA.js} +10 -33
  36. package/dist/{te-dataops-TXLKM2W6.js → te-dataops-NFIPB6FX.js} +19 -20
  37. package/dist/{te-engage-TPKLRVTL.js → te-engage-BAM3GBFX.js} +13 -15
  38. package/dist/{te-experiment-6BYKTCY7.js → te-experiment-GUTZXZ5Z.js} +132 -16
  39. package/dist/te-kb-3TS73NO6.js +1992 -0
  40. package/dist/{te-system-44LZJDTQ.js → te-system-STMHLS5J.js} +12 -9
  41. package/dist/{te-team-XMP47YXE.js → te-team-3I5AOX3N.js} +6 -8
  42. package/dist/{update-UODFOZ4P.js → update-RZXLPCRH.js} +7 -8
  43. package/package.json +29 -19
  44. package/skills/ae-agent/SKILL.md +30 -13
  45. package/skills/ae-agent/references/agent-distribution.md +94 -0
  46. package/skills/ae-agent/references/approval-request.md +4 -0
  47. package/skills/ae-agent/references/command_index.md +9 -2
  48. package/skills/ae-agent/references/create-automation.md +20 -2
  49. package/skills/ae-agent/references/get-agent-context.md +70 -0
  50. package/skills/ae-agent/references/list-automations.md +18 -3
  51. package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
  52. package/skills/ae-agent/references/mcp-token.md +3 -3
  53. package/skills/ae-agent/references/set-mcp-credential.md +0 -1
  54. package/skills/ae-agent/references/update-automation.md +18 -0
  55. package/skills/ae-analysis/SKILL.md +101 -79
  56. package/skills/ae-analysis/references/adhoc_export.md +11 -18
  57. package/skills/ae-analysis/references/adhoc_run.md +17 -7
  58. package/skills/ae-analysis/references/agent_review_detail.md +11 -0
  59. package/skills/ae-analysis/references/agent_review_evidence.md +46 -0
  60. package/skills/ae-analysis/references/agent_review_list.md +9 -0
  61. package/skills/ae-analysis/references/agent_review_preflight.md +96 -0
  62. package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +76 -0
  63. package/skills/ae-analysis/references/agent_review_records.md +9 -0
  64. package/skills/ae-analysis/references/agent_review_retry.md +12 -0
  65. package/skills/ae-analysis/references/agent_review_review.md +16 -0
  66. package/skills/ae-analysis/references/agent_review_submit_to_page.md +184 -0
  67. package/skills/ae-analysis/references/ai_models/attribution.md +29 -0
  68. package/skills/ae-analysis/references/ai_models/distribution.md +40 -0
  69. package/skills/ae-analysis/references/ai_models/event.md +108 -0
  70. package/skills/ae-analysis/references/ai_models/funnel.md +46 -0
  71. package/skills/ae-analysis/references/ai_models/heat_map.md +26 -0
  72. package/skills/ae-analysis/references/ai_models/interval.md +20 -0
  73. package/skills/ae-analysis/references/ai_models/path.md +38 -0
  74. package/skills/ae-analysis/references/ai_models/prop_analysis.md +39 -0
  75. package/skills/ae-analysis/references/ai_models/rank_list.md +25 -0
  76. package/skills/ae-analysis/references/ai_models/retention.md +70 -0
  77. package/skills/ae-analysis/references/ai_models/revenue.md +28 -0
  78. package/skills/ae-analysis/references/ai_models/sql.md +74 -0
  79. package/skills/ae-analysis/references/ai_models/tag.md +19 -0
  80. package/skills/ae-analysis/references/ai_models.md +32 -453
  81. package/skills/ae-analysis/references/alert_create.md +7 -7
  82. package/skills/ae-analysis/references/alert_delete.md +4 -6
  83. package/skills/ae-analysis/references/alert_detail_list.md +7 -9
  84. package/skills/ae-analysis/references/alert_get.md +5 -7
  85. package/skills/ae-analysis/references/alert_job_list.md +4 -6
  86. package/skills/ae-analysis/references/alert_list.md +6 -8
  87. package/skills/ae-analysis/references/alert_notice_config_list.md +4 -6
  88. package/skills/ae-analysis/references/alert_start.md +5 -7
  89. package/skills/ae-analysis/references/alert_stop.md +5 -7
  90. package/skills/ae-analysis/references/alert_update.md +8 -8
  91. package/skills/ae-analysis/references/analysis_data_export.md +72 -0
  92. package/skills/ae-analysis/references/analysis_data_retrieval.md +32 -196
  93. package/skills/ae-analysis/references/analysis_gateway_assets.md +23 -180
  94. package/skills/ae-analysis/references/analysis_interpretation.md +37 -17
  95. package/skills/ae-analysis/references/asset_abnormal_get.md +0 -1
  96. package/skills/ae-analysis/references/asset_abnormal_list.md +0 -1
  97. package/skills/ae-analysis/references/asset_authentication_export.md +4 -0
  98. package/skills/ae-analysis/references/asset_authentication_list.md +7 -1
  99. package/skills/ae-analysis/references/asset_authentication_update.md +5 -1
  100. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +8 -6
  101. package/skills/ae-analysis/references/asset_batch_delete.md +6 -6
  102. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +4 -5
  103. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +5 -6
  104. package/skills/ae-analysis/references/asset_batch_handover.md +4 -5
  105. package/skills/ae-analysis/references/asset_batch_info_export.md +4 -5
  106. package/skills/ae-analysis/references/asset_batch_sql_export.md +5 -6
  107. package/skills/ae-analysis/references/asset_dependency_list.md +4 -5
  108. package/skills/ae-analysis/references/asset_export.md +4 -5
  109. package/skills/ae-analysis/references/asset_impact_list.md +5 -9
  110. package/skills/ae-analysis/references/asset_lineage_get.md +5 -6
  111. package/skills/ae-analysis/references/asset_list.md +4 -5
  112. package/skills/ae-analysis/references/asset_query_history_list.md +4 -8
  113. package/skills/ae-analysis/references/asset_recent_list.md +0 -1
  114. package/skills/ae-analysis/references/asset_search.md +12 -9
  115. package/skills/ae-analysis/references/asset_url_get.md +3 -4
  116. package/skills/ae-analysis/references/bi_panel_copy.md +2 -2
  117. package/skills/ae-analysis/references/bi_panel_page_data_export.md +4 -12
  118. package/skills/ae-analysis/references/bi_panel_page_data_run.md +2 -0
  119. package/skills/ae-analysis/references/catalog_export.md +4 -17
  120. package/skills/ae-analysis/references/catalog_list.md +4 -4
  121. package/skills/ae-analysis/references/check_delete.md +5 -7
  122. package/skills/ae-analysis/references/check_export.md +11 -11
  123. package/skills/ae-analysis/references/check_get.md +8 -10
  124. package/skills/ae-analysis/references/check_list.md +4 -6
  125. package/skills/ae-analysis/references/check_retry.md +8 -10
  126. package/skills/ae-analysis/references/check_run.md +2 -4
  127. package/skills/ae-analysis/references/command_index.md +46 -28
  128. package/skills/ae-analysis/references/cross_source_config.md +84 -0
  129. package/skills/ae-analysis/references/dashboard_report_data_export.md +5 -13
  130. package/skills/ae-analysis/references/dashboard_report_data_run.md +1 -1
  131. package/skills/ae-analysis/references/dashboard_update.md +15 -4
  132. package/skills/ae-analysis/references/datatable_columns_get.md +0 -1
  133. package/skills/ae-analysis/references/datatable_influence_list.md +0 -1
  134. package/skills/ae-analysis/references/datatable_version_get.md +0 -1
  135. package/skills/ae-analysis/references/datatable_version_list.md +0 -1
  136. package/skills/ae-analysis/references/debug_device_add.md +1 -2
  137. package/skills/ae-analysis/references/drilldown_entities_export.md +3 -3
  138. package/skills/ae-analysis/references/drilldown_events_export.md +3 -2
  139. package/skills/ae-analysis/references/drilldown_user_events_export.md +2 -2
  140. package/skills/ae-analysis/references/entity_detail_export.md +3 -2
  141. package/skills/ae-analysis/references/entity_detail_run.md +1 -0
  142. package/skills/ae-analysis/references/event_blacklist_add.md +5 -7
  143. package/skills/ae-analysis/references/event_blacklist_list.md +4 -6
  144. package/skills/ae-analysis/references/event_blacklist_update.md +6 -8
  145. package/skills/ae-analysis/references/event_changelog_list.md +0 -1
  146. package/skills/ae-analysis/references/event_create.md +0 -1
  147. package/skills/ae-analysis/references/event_detail_export.md +3 -2
  148. package/skills/ae-analysis/references/event_detail_run.md +1 -0
  149. package/skills/ae-analysis/references/event_export.md +0 -1
  150. package/skills/ae-analysis/references/event_get.md +0 -1
  151. package/skills/ae-analysis/references/event_hide_update.md +0 -1
  152. package/skills/ae-analysis/references/event_influence_list.md +0 -1
  153. package/skills/ae-analysis/references/event_list.md +0 -1
  154. package/skills/ae-analysis/references/event_property_bundle_export.md +5 -14
  155. package/skills/ae-analysis/references/event_property_bundle_import.md +2 -6
  156. package/skills/ae-analysis/references/event_relation_update.md +0 -1
  157. package/skills/ae-analysis/references/event_update.md +0 -1
  158. package/skills/ae-analysis/references/exchange_config_update.md +0 -1
  159. package/skills/ae-analysis/references/exchange_rate_refresh.md +0 -1
  160. package/skills/ae-analysis/references/exchange_rule_list.md +0 -1
  161. package/skills/ae-analysis/references/exchange_rule_update.md +0 -1
  162. package/skills/ae-analysis/references/exchange_rule_validate.md +0 -1
  163. package/skills/ae-analysis/references/governance_recommendation_decisions.md +23 -0
  164. package/skills/ae-analysis/references/governance_recommendation_export.md +108 -0
  165. package/skills/ae-analysis/references/governance_recommendation_submit.md +41 -0
  166. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -4
  167. package/skills/ae-analysis/references/history_tag_data_export.md +3 -3
  168. package/skills/ae-analysis/references/ingest_error_list.md +7 -9
  169. package/skills/ae-analysis/references/ingest_summary.md +6 -8
  170. package/skills/ae-analysis/references/live_data_export.md +10 -10
  171. package/skills/ae-analysis/references/live_data_list.md +7 -9
  172. package/skills/ae-analysis/references/metadata_resolution.md +78 -0
  173. package/skills/ae-analysis/references/metric_export.md +0 -1
  174. package/skills/ae-analysis/references/metric_get.md +0 -1
  175. package/skills/ae-analysis/references/metric_list.md +4 -5
  176. package/skills/ae-analysis/references/metric_update.md +0 -1
  177. package/skills/ae-analysis/references/operation_record_export.md +4 -5
  178. package/skills/ae-analysis/references/operation_record_list.md +4 -5
  179. package/skills/ae-analysis/references/personal_semantic_preference_list.md +18 -1
  180. package/skills/ae-analysis/references/plan_change_log_export.md +10 -10
  181. package/skills/ae-analysis/references/plan_change_log_list.md +4 -6
  182. package/skills/ae-analysis/references/plan_delete_items.md +2 -4
  183. package/skills/ae-analysis/references/plan_export.md +9 -9
  184. package/skills/ae-analysis/references/plan_generate.md +2 -4
  185. package/skills/ae-analysis/references/plan_get.md +4 -6
  186. package/skills/ae-analysis/references/plan_import_excel.md +6 -8
  187. package/skills/ae-analysis/references/plan_save_items.md +2 -4
  188. package/skills/ae-analysis/references/plan_sync_from_meta.md +4 -6
  189. package/skills/ae-analysis/references/project_access_detail_get.md +0 -1
  190. package/skills/ae-analysis/references/project_data_power_get.md +0 -1
  191. package/skills/ae-analysis/references/project_data_power_list.md +0 -1
  192. package/skills/ae-analysis/references/project_data_power_upsert.md +0 -1
  193. package/skills/ae-analysis/references/project_entity_create.md +0 -1
  194. package/skills/ae-analysis/references/project_entity_event_list.md +0 -1
  195. package/skills/ae-analysis/references/project_entity_get.md +0 -1
  196. package/skills/ae-analysis/references/project_entity_list.md +0 -1
  197. package/skills/ae-analysis/references/project_entity_update.md +0 -1
  198. package/skills/ae-analysis/references/project_function_list.md +0 -1
  199. package/skills/ae-analysis/references/project_info_get.md +0 -1
  200. package/skills/ae-analysis/references/project_info_list.md +0 -1
  201. package/skills/ae-analysis/references/project_info_update.md +0 -1
  202. package/skills/ae-analysis/references/project_mark_time_create.md +0 -1
  203. package/skills/ae-analysis/references/project_mark_time_list.md +0 -1
  204. package/skills/ae-analysis/references/project_mark_time_update.md +0 -1
  205. package/skills/ae-analysis/references/project_member_add.md +6 -5
  206. package/skills/ae-analysis/references/project_member_batch_update.md +0 -1
  207. package/skills/ae-analysis/references/project_member_candidate_list.md +4 -3
  208. package/skills/ae-analysis/references/project_member_handover_run.md +2 -3
  209. package/skills/ae-analysis/references/project_member_list.md +0 -1
  210. package/skills/ae-analysis/references/project_member_receiver_list.md +0 -1
  211. package/skills/ae-analysis/references/project_member_update.md +0 -1
  212. package/skills/ae-analysis/references/project_owner_update.md +0 -1
  213. package/skills/ae-analysis/references/project_permission_binding_list.md +0 -1
  214. package/skills/ae-analysis/references/project_role_function_list.md +0 -1
  215. package/skills/ae-analysis/references/project_role_get.md +0 -1
  216. package/skills/ae-analysis/references/project_role_list.md +0 -1
  217. package/skills/ae-analysis/references/project_role_upsert.md +32 -2
  218. package/skills/ae-analysis/references/project_role_user_list.md +0 -1
  219. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +214 -0
  220. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +93 -0
  221. package/skills/ae-analysis/references/project_timezone_get.md +0 -1
  222. package/skills/ae-analysis/references/project_timezone_overview.md +0 -1
  223. package/skills/ae-analysis/references/project_timezone_update.md +0 -1
  224. package/skills/ae-analysis/references/project_user_id_items_update.md +0 -1
  225. package/skills/ae-analysis/references/property_changelog_list.md +0 -1
  226. package/skills/ae-analysis/references/property_create.md +0 -1
  227. package/skills/ae-analysis/references/property_export.md +0 -1
  228. package/skills/ae-analysis/references/property_get.md +0 -1
  229. package/skills/ae-analysis/references/property_hide_update.md +0 -1
  230. package/skills/ae-analysis/references/property_influence_list.md +0 -1
  231. package/skills/ae-analysis/references/property_list.md +3 -4
  232. package/skills/ae-analysis/references/property_related_events.md +0 -1
  233. package/skills/ae-analysis/references/property_relation_update.md +0 -1
  234. package/skills/ae-analysis/references/property_update.md +0 -1
  235. package/skills/ae-analysis/references/report_create.md +4 -2
  236. package/skills/ae-analysis/references/report_data_export.md +11 -9
  237. package/skills/ae-analysis/references/report_data_run.md +14 -7
  238. package/skills/ae-analysis/references/report_get.md +5 -3
  239. package/skills/ae-analysis/references/report_list.md +2 -0
  240. package/skills/ae-analysis/references/report_update.md +5 -3
  241. package/skills/ae-analysis/references/rule_create.md +5 -6
  242. package/skills/ae-analysis/references/rule_delete.md +5 -5
  243. package/skills/ae-analysis/references/rule_list.md +3 -4
  244. package/skills/ae-analysis/references/rule_schema.md +3 -4
  245. package/skills/ae-analysis/references/rule_update.md +5 -6
  246. package/skills/ae-analysis/references/sdk_sample_generate.md +2 -4
  247. package/skills/ae-analysis/references/sql_table_columns.md +1 -1
  248. package/skills/ae-analysis/references/super_metadata_batch_create.md +1 -1
  249. package/skills/ae-analysis/references/super_metadata_batch_edit.md +1 -1
  250. package/skills/ae-analysis/references/system_member_add.md +1 -2
  251. package/skills/ae-analysis/references/system_member_status_update.md +1 -1
  252. package/skills/ae-analysis/references/system_ops_alert_contact_list.md +1 -1
  253. package/skills/ae-analysis/references/system_ops_alert_contact_test.md +0 -1
  254. package/skills/ae-analysis/references/system_query_monitor_overview.md +3 -3
  255. package/skills/ae-analysis/references/system_query_task_export.md +4 -14
  256. package/skills/ae-analysis/references/system_query_task_get.md +1 -1
  257. package/skills/ae-analysis/references/system_query_task_list.md +5 -6
  258. package/skills/ae-analysis/references/system_receiver_address_upsert.md +3 -3
  259. package/skills/ae-analysis/references/system_receiver_detection_get.md +1 -1
  260. package/skills/ae-analysis/references/system_third_party_login_disable.md +1 -1
  261. package/skills/ae-analysis/references/system_usage_trend_export.md +3 -12
  262. package/skills/ae-analysis/references/user_cluster_list.md +1 -1
  263. package/skills/ae-analysis/references/user_cluster_member_export.md +4 -4
  264. package/skills/ae-analysis/references/user_tag_create.md +23 -1
  265. package/skills/ae-analysis/references/user_tag_list.md +1 -1
  266. package/skills/ae-analysis/references/user_tag_member_export.md +4 -4
  267. package/skills/ae-analysis/references/user_tag_models.md +9 -1
  268. package/skills/ae-analysis/references/user_tag_update.md +14 -2
  269. package/skills/ae-analysis/references/virtual_event_create.md +10 -5
  270. package/skills/ae-analysis/references/virtual_event_get.md +0 -1
  271. package/skills/ae-analysis/references/virtual_property_create.md +0 -1
  272. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +0 -1
  273. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +1054 -0
  274. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +112 -0
  275. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +30 -0
  276. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +2735 -0
  277. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +376 -0
  278. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +264 -0
  279. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +49 -0
  280. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/upload-kb-sources-concurrently.mjs +200 -0
  281. package/skills/ae-analysis/scripts/read_results.py +197 -0
  282. package/skills/ae-analysis-global/SKILL.md +1 -1
  283. package/skills/ae-capability/SKILL.md +1 -1
  284. package/skills/ae-community/SKILL.md +1 -1
  285. package/skills/ae-current-context/SKILL.md +53 -0
  286. package/skills/ae-data-integration/SKILL.md +6 -4
  287. package/skills/ae-data-integration/references/dimension-routing.md +36 -0
  288. package/skills/ae-data-integration/references/lark-bitable-source.md +288 -0
  289. package/skills/ae-data-integration/references/lark-sheet-source.md +130 -0
  290. package/skills/ae-data-integration/references/local-analysis.md +2 -0
  291. package/skills/ae-data-integration/references/manual-export-source.md +83 -0
  292. package/skills/ae-data-integration/references/reuse.md +2 -0
  293. package/skills/ae-data-integration/references/sink-upload.md +32 -0
  294. package/skills/ae-data-integration/references/source-inspect.md +1 -1
  295. package/skills/ae-data-integration/references/tracking-plan.md +5 -2
  296. package/skills/ae-data-integration/references/transform.md +1 -1
  297. package/skills/ae-data-integration/references/ue-mapping.md +7 -4
  298. package/skills/ae-data-integration/references/ue-routing.md +17 -1
  299. package/skills/ae-data-integration-helper/SKILL.md +5 -5
  300. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +3 -3
  301. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +3 -3
  302. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +1 -1
  303. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +3 -3
  304. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +1 -1
  305. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +3 -3
  306. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +1 -1
  307. package/skills/ae-data-integration-helper/references/logbus2_guide.md +1 -1
  308. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +2 -2
  309. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +2 -2
  310. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +1 -1
  311. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +2 -2
  312. package/skills/ae-data-integration-helper/references/restful_api_notes.md +2 -2
  313. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +3 -3
  314. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +11 -11
  315. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +1 -1
  316. package/skills/ae-dataops/SKILL.md +1 -1
  317. package/skills/ae-engage/SKILL.md +4 -3
  318. package/skills/ae-engage/references/build-task-save-guide.md +3 -0
  319. package/skills/ae-engage/references/flow-metric-update.md +115 -1
  320. package/skills/ae-engage/references/save-flow.md +3 -0
  321. package/skills/ae-engage/references/save-task.md +21 -0
  322. package/skills/ae-engage/references/task-metric-update.md +151 -0
  323. package/skills/ae-experiment/SKILL.md +14 -7
  324. package/skills/ae-experiment/references/save_submit_external_experiment.md +52 -0
  325. package/skills/ae-experiment-design/SKILL.md +3 -3
  326. package/skills/ae-experiment-design/references/platform-operations.md +1 -1
  327. package/skills/ae-experiment-insight/SKILL.md +2 -2
  328. package/skills/ae-experiment-insight/references/platform-operations.md +1 -1
  329. package/skills/ae-generate-tracking-code/SKILL.md +2 -1
  330. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  331. package/skills/ae-generate-tracking-code/references/datax-config.md +1 -1
  332. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  333. package/skills/ae-generate-tracking-code/references/modes.md +1 -1
  334. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +5 -5
  335. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +3 -3
  336. package/skills/ae-generate-tracking-plan/SKILL.md +27 -15
  337. package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +1 -1
  338. package/skills/ae-generate-tracking-plan/references/te-api.md +1 -0
  339. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +3 -2
  340. package/skills/ae-kb/SKILL.md +147 -37
  341. package/skills/ae-kb/references/analysis-workflow.md +292 -0
  342. package/skills/ae-kb/references/query-workflow.md +59 -29
  343. package/skills/ae-kb/references/source-mutations.md +95 -0
  344. package/skills/ae-kb/references/versions.md +46 -0
  345. package/skills/ae-kb-discovery/SKILL.md +5 -1
  346. package/skills/ae-metadata/SKILL.md +1 -1
  347. package/skills/ae-migrate-tracking-code/SKILL.md +195 -0
  348. package/skills/ae-migrate-tracking-code/references/ae-preset-properties.md +76 -0
  349. package/skills/ae-migrate-tracking-code/references/ir.md +167 -0
  350. package/skills/ae-migrate-tracking-code/references/mapping-framework.md +112 -0
  351. package/skills/ae-migrate-tracking-code/references/providers/README.md +58 -0
  352. package/skills/ae-migrate-tracking-code/references/providers/amplitude.md +208 -0
  353. package/skills/ae-migrate-tracking-code/references/providers/firebase.md +160 -0
  354. package/skills/ae-migrate-tracking-code/references/providers/ga4.md +92 -0
  355. package/skills/ae-migrate-tracking-code/references/providers/mixpanel.md +150 -0
  356. package/skills/ae-migrate-tracking-code/references/providers/sensors-data.md +146 -0
  357. package/skills/ae-project-semantic/SKILL.md +1 -1
  358. package/skills/ae-system/SKILL.md +5 -5
  359. package/skills/ae-team/SKILL.md +2 -2
  360. package/skills/ae-use-agent/SKILL.md +42 -0
  361. package/skills/ae-use-agent/references/local-agent.md +114 -0
  362. package/dist/auth-UMJAA72O.js +0 -15
  363. package/dist/chunk-533JK3YX.js +0 -72
  364. package/dist/chunk-DKEXH6Q5.js +0 -72
  365. package/dist/chunk-O6K2ODUE.js +0 -318
  366. package/dist/chunk-RWXIXOZG.js +0 -326
  367. package/dist/client-N7NGZUNI.js +0 -204
  368. package/dist/te-kb-BUD6N3NI.js +0 -1222
  369. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +0 -57
  370. package/skills/ae-analysis/metadata_resolution.md +0 -184
@@ -4,7 +4,7 @@ Run one unified ad-hoc analysis inline query from an AI-facing model definition.
4
4
 
5
5
  Use this command for AI-facing ad-hoc model analysis. Do not use removed ad-hoc QP builder or schema helper commands.
6
6
 
7
- Typical closed loop: express the business question as an AI-facing definition -> let the compiler resolve metadata -> use `analysis filter-value list` only when an exact stored value remains unknown -> optionally resolve a physical route -> run -> verify `resolved`, warnings, and actual scope -> drill down only through the returned query context.
7
+ Submit the requested metrics, windows, filters and groups together in the selected model definition. Reuse verified canonical metadata; resolve unknown metadata with [`metadata_resolution.md`](metadata_resolution.md) before execution. Use `analysis filter-value list` only when a needed stored filter value remains unknown.
8
8
 
9
9
  Routing: read [`analysis_data_retrieval.md`](analysis_data_retrieval.md) before choosing this `run` command instead of `adhoc export`.
10
10
 
@@ -15,6 +15,7 @@ ae-cli analysis adhoc run \
15
15
  --project-id <project_id> \
16
16
  --model-type <model_type> \
17
17
  --definition '<json>' \
18
+ [--intent-snapshot '<snapshot_json>'] \
18
19
  [--resolutions '<confirmed_resolution_json>'] \
19
20
  [--request-id cli_<32 lowercase hex>] \
20
21
  [--use-cache true|false] \
@@ -28,16 +29,17 @@ ae-cli analysis adhoc run \
28
29
 
29
30
  ## AI models
30
31
 
31
- Read [`ai_models.md`](ai_models.md) for the single 12-model `model_type` registry, AI-facing `definition`, and SQL dynamic params contract.
32
+ Read the shared registry and building blocks in [`ai_models.md`](ai_models.md), then open `ai_models/<model_type>.md` directly for the selected model. Do not search for section line numbers or load other model files. For event period totals plus daily trends, use the `day` + `comparison_time_ranges` example in [`ai_models/event.md`](ai_models/event.md). Read [`ai_models/sql.md`](ai_models/sql.md) and its dynamic params contract only for SQL.
32
33
 
33
- For SQL model definitions, do not invent table or column names. If the table reference is known, inspect columns with `analysis-meta datatable columns-get`; if the table is unknown, ask for it instead of guessing.
34
+ For SQL model definitions, use [`sql_table_list.md`](sql_table_list.md) to discover an unknown table, then [`sql_table_columns.md`](sql_table_columns.md) with the exact returned `table_ref` and the same `usage=analysis`. A known authorized table can go directly to column inspection. Ask only when discovered candidates remain ambiguous or the required data source is unavailable; do not invent table or column names.
34
35
 
35
36
  ## Input
36
37
 
37
38
  - `--project-id`: target project ID.
38
39
  - `--model-type`: one of the 12 AI-facing model names from [`ai_models.md`](ai_models.md). Do not pass `scenario`, `history_tag`, or `cluster`; tags and cohorts/clusters are separate capabilities.
39
40
  - `--definition`: model-specific AI-facing definition JSON.
40
- - `--resolutions`: only after user confirmation, pass deterministic bindings keyed by compiler error path. Keep `--definition` unchanged; follow [`../metadata_resolution.md`](../metadata_resolution.md).
41
+ - `--intent-snapshot`: use when the caller supplies an existing snapshot containing `schema_version: 1`, non-empty `requirement`, `definition`, and `model_type`. The CLI checks that its definition and model match the submitted values locally; the snapshot is never sent to Gateway.
42
+ - `--resolutions`: only after user confirmation, pass deterministic bindings keyed by compiler error path. Keep each bound field's path and original wording; fill the other confirmed model parameters in `--definition`. Follow [`metadata_resolution.md`](metadata_resolution.md).
41
43
 
42
44
  Omit `--preview-rows` to use the current model and cluster synchronous row limit. An explicit value must be positive and cannot exceed that runtime limit; agents should normally pass 100 to bound context. `--timeout-seconds` defaults to 120 and has a maximum of 180. The routing rule lives in [`analysis_data_retrieval.md`](analysis_data_retrieval.md).
43
45
 
@@ -58,14 +60,22 @@ The response may include:
58
60
  - `query_context_id`: Redis-backed context for follow-ups from this bounded synchronous preview.
59
61
  - `sources[].drilldown`: compact allowed-action summary. Detailed coordinate options are read lazily with `analysis query-context get`; `preview_rows` remains the selection boundary.
60
62
  - `title` / `rows` / `returned_rows` / `has_more`: tabular preview fields. `total` appears only when the backend supplies an exact total. When `has_more` is true, use `adhoc export`; there is no next-page request.
63
+ - `row_metadata` / `column_metadata`, when returned: align with row/column positions. Event `scope=total` identifies a total row; `period_values` specifies stage aggregates. Time comparisons repeat metric titles in separate column blocks, so preserve indexes. See [event result totals](ai_models/event.md#event-totals-and-comparison-columns).
61
64
  - `result`: direct result for non-tabular models. Path results also return top-level `returned_rows` and `has_more` using the per-level node contract above.
62
65
  - `request_id`: lifecycle request id.
66
+ - `definition`: normalized AI-facing definition used for compilation. Tag/cluster filters expose the effective `cluster_date_policy`; `AUTO` means each analysis date uses its matching computed result, while an omitted policy defaults to `LATEST`.
63
67
  - `actual_cluster_query_scope`, optional `actual_slave_cluster_id`, and `cluster_query_scope_source`: actual physical data route. Verify these before comparing results or following the query context.
64
68
 
65
69
  Execution failures are returned as command failures with `request_id`; only the explicit project-no-data condition is a successful empty result. Do not interpret an empty object as evidence that a failed query succeeded.
66
70
 
67
- The execute, `--validate`, and `--dry-run` paths all compile the AI-facing definition. If metadata resolution needs clarification, the command fails with `AI_QP_COMPILE_FAILED`; inspect `meta.compile_status`, `meta.errors[]`, `meta.resolved`, and `meta.warnings`. Each metadata error retains `path`, `slot_kind`, `raw_value`, `allowed_resource_types`, `search_targets`, and `candidates`. Follow [`../metadata_resolution.md`](../metadata_resolution.md); do not guess from display text.
71
+ Use the inline result directly. See [result handling](analysis_data_retrieval.md#preserve-and-interpret-results) when local processing or a requested file is needed.
68
72
 
69
- For a complex definition, finish the complete user-requested definition first, validate that exact definition once, and then run the same definition once. Never execute a simplified variant that omits requested filters or groups just to obtain a result. If validation rejects fields, inspect this command's model contract or capability schema once, correct all reported fields together, and revalidate the complete definition.
73
+ The execute, `--validate`, and `--dry-run` paths all compile the AI-facing definition. If metadata resolution needs clarification, the command fails with `AI_QP_COMPILE_FAILED`; inspect `meta.compile_status`, `meta.errors[]`, `meta.resolved`, and `meta.warnings`. Each metadata error retains `path`, `slot_kind`, `raw_value`, `allowed_resource_types`, `search_targets`, and `candidates`. Follow [`metadata_resolution.md`](metadata_resolution.md); do not guess from display text.
70
74
 
71
- Read [`analysis_drilldown_contract.md`](analysis_drilldown_contract.md). Use the context only with an action advertised by the selected source, call `analysis query-context get`, and assemble the coordinate only from its returned option fragments. Do not pass raw QP or infer a coordinate from display text.
75
+ For `meta.compile_status=invalid_argument`, correct the reported parameter paths in the current definition and submit that corrected definition. For metadata `need_clarification`, use the returned candidates and [confirmation workflow](metadata_resolution.md). Once the requested meaning and required parameters are ready, execute directly.
76
+
77
+ If a concrete field mismatch remains unexplained by the loaded reference, inspect this command's model contract or capability schema once. A preflight is conditional on that input problem: validate that exact definition once, then run the same definition once. Preserve all requested filters and groups through corrections.
78
+
79
+ For a gateway `oneOf` error, focus on the selected `model_type` branch and shared input fields; other model branches are alternatives, not additional requirements. Apply every relevant correction together (for example, both `event_property_name` and string-valued `values` for funnel step filters). Local `INVALID_ANALYSIS_DEFINITION` is a pre-dispatch input failure, not a query failure. Passing this narrow local check is not proof that the full backend schema or query has passed. Follow the failure-evidence rules in `../SKILL.md` and honor the user's retry limit.
80
+
81
+ When the request needs a drilldown action advertised by the selected source, read [`analysis_drilldown_contract.md`](analysis_drilldown_contract.md), call `analysis query-context get`, and assemble the coordinate from its returned option fragments. Do not pass raw QP or infer a coordinate from display text.
@@ -0,0 +1,11 @@
1
+ # analysis-meta agent-review detail
2
+
3
+ Use this to read current item states and versions. Input requires project scope and a string batch ID. Output is one review batch with its immutable snapshots. Do not use approval state alone as proof of certification.
4
+
5
+ Preserve item-level `reused_batch_id` and `reused_item_id` as strings when present. They link unchanged proposals to their original review while keeping the current batch's complete item coverage and request identity.
6
+
7
+ ```bash
8
+ ae-cli analysis-meta agent-review detail --project-id 1 --batch-id '9007199254740993'
9
+ ```
10
+
11
+ Capability: `metadata.agent_review.detail`. L2 flags validate project scope and preserve the batch ID as a decimal string. Output includes snapshots as objects, `review_url`, notification status and items with `client_item_id`, string `id`, `version`, `review_state`, `execution_state`, and `validity_state`. Do not infer certification from APPROVED alone; inspect successful execution and its audit record. Re-fetch current versions before preparing decisions and after writes; never round IDs through JavaScript numbers.
@@ -0,0 +1,46 @@
1
+ # analysis-meta agent-review evidence
2
+
3
+ Use this to read current Common evidence for one resolved asset before drafting its review explanation. This read does not create a batch, write review records, notify, or certify. It does not run report queries. Do not use it as proof of a submitted proposal or approval. The proposed CERTIFY action selects the same snapshot handler used by creation; it is not executed by this command.
4
+
5
+ L2 admission: owned by Common ta-cli / AgentReviewService. Typed project validation, lossless string target keys and fixed governance defaults avoid constructing a mutation-shaped JSON payload manually. This command is the read-only evidence step of the report-review workflow, not an alternative submission command. It uses `metadata.agent_review.evidence` through the analysis Gateway, CLI-token authentication, `metadata:read`, and the exact project function `assetAuthentication`.
6
+
7
+ ```bash
8
+ ae-cli analysis-meta agent-review evidence \
9
+ --project-id <project_id> --target-type <target_type> --target-key '<exact_target_key>'
10
+ ```
11
+
12
+ Resolve the project and target first; placeholders are not literal values. Target keys remain strings, including report/dashboard IDs above JavaScript's safe-integer limit and nonnumeric metadata names. Common determines which target types it supports; the CLI does not invent new types or coerce keys to numbers.
13
+
14
+ Input contains `project_id`, `review_type:ASSET_GOVERNANCE`, `target_ref:{type,key}`, `action_type:CERTIFY`, and `proposal_payload:{authentication_status:1}`. There are no decision, source, or submission flags. `--validate` and `--dry-run` use their separate nonmutating Gateway endpoints; neither is an evidence fetch unless the returned contract explicitly includes the snapshot. Use normal read execution to obtain current evidence. Permission or unsupported-capability failures stop the dependent proposal; do not use a direct backend call or a dummy submission to obtain evidence.
15
+
16
+ Output `data` contains `schema_version:"1.0"`, `review_type`, `target_ref`, `evidence_snapshot`, `evidence_hash`, and `target_revision`. Preserve the server snapshot and revision/hash as returned; do not compute authoritative hashes from CLI-reformatted JSON. This is a current read, not a lock or submission. Common create stores the submitted snapshot; it does not refresh it or restore omitted fields. Record gap-only evidence responses in the source ledger and follow [independent Agent preflight](agent_review_preflight.md) before declaring a draft ready. Detail readback checks that the submitted evidence and interpretation survived storage, not that Common regenerated them.
17
+
18
+ `evidence_hash` includes collection time and can change across evidence reads even when business facts are unchanged. Do not use the full snapshot hash to detect cross-scan business changes or trigger another submission/notification. `target_revision` identifies the saved definition and can confirm its configuration version; it is not a revision of all sampled usage/signals. Compare material facts and proposal content separately, preserving unknown versus zero/false. Evidence reads do not submit: preserve the chosen source response and compare important stored facts with the exact reviewed draft, rather than relying on full-snapshot hashes from different collection or serialization stages.
19
+
20
+ ## Report Analysis Fields
21
+
22
+ For reports, inspect `data.evidence_snapshot.analysis`. The AI's `evidence_refs` are rooted at `evidence_snapshot.analysis`, without the CLI envelope's `data` prefix. The table describes the current schema, not guaranteed populated facts for every model. Use only paths that actually exist in the response and support the stated fact. A present key with null is unknown, not zero, false, no filter, or an execution default. Empty collections may reflect unavailable extraction, not absence of a business rule. Read `limitations` and parse status before interpreting them.
23
+
24
+ | Field under `evidence_snapshot.analysis` | Meaning and boundary |
25
+ | --- | --- |
26
+ | `schema_version`, `scope`, `kind`, `model`, `model_type` | Analysis version and saved report model. `scope:SAVED_REPORT_ONLY` excludes effective dashboard overrides and runtime execution. |
27
+ | `raw` | Original saved `events`, `event_view`, and `visual_view` configuration. These may be strings, structured values, or null; do not replace them with invented normalized content. |
28
+ | `query_config` | Decoded `events`, `event_view`, and `visual_view`; decoding failure is a limitation, not an empty successful query. |
29
+ | `normalized_definition` | Native converter output when available, including model-specific metrics, time configuration, SQL or `params` only when actually returned. It is not a guarantee of resolved runtime parameters. |
30
+ | `measures` | Ordered model-specific statistical measures. Event measures may expose `aggregation`, `aggregation_code`, `aggregation_name`, `distinct`, `formula`, `formula_dependencies`, and per-measure `filters`. SQL measures are the extracted aggregate projections; they are not all output columns. |
31
+ | `dimensions` | Saved event grouping or SQL grouping syntax, not executed rows or proven complete column lineage. |
32
+ | `filters` | Saved report/common filters or extracted SQL WHERE/HAVING with their scope. Inspect per-measure filters as well. Do not infer absent constraints from a null or empty extraction. |
33
+ | `time_range` | Saved `recent_day`, `start_time`, `end_time`, `time_particle_size`, comparison fields and related period settings. Interpret the actual saved range; do not replace it with asset-usage window days or today's date. |
34
+ | `timezone` | Execution timezone is not established by the current report extractor. Null remains unknown; do not assume a user, project, dashboard, or local-machine default. |
35
+ | `sql` | SQL-only `raw`, `parse_status`, `select_columns`, `select_distinct`, `from`, `where`, `group_by`, `having`, `order_by`, `limit`, and `offset`, subject to parse status and limitations. |
36
+ | `sources`, `limitations` | Source provenance and explicit extraction boundaries. Preserve unsupported models, unexpanded dependencies, dashboard overrides not applied, and unresolved runtime conditions. |
37
+
38
+ `source_path` is provenance, not an automatic replacement for AI `evidence_refs`. For example, a measure's source path can identify the saved configuration blob while the factual explanation cites the actual returned `evidence_snapshot.analysis.measures[0].aggregation_name`. Use that example only if index 0 and the nonnull field really exist and support the statement. Never mechanically copy source paths, generate indexes from expected fields, or claim reference resolution proves the statement's meaning.
39
+
40
+ ## SQL Interpretation Boundaries
41
+
42
+ For `PARSED` output, explain each actual `sql.select_columns` entry in source order, keeping its `index`, alias/name, expression, distinctness and supported aggregation/formula evidence. Duplicate aliases remain separate columns. `columns` contains syntactic references, not verified table lineage or runtime types. `PARTIAL` and wildcard entries require explicit coverage limits; never expand `SELECT *` by guessing.
43
+
44
+ When Common returns `DYNAMIC`, cite `evidence_snapshot.analysis.sql.raw` and, only if present, `evidence_snapshot.analysis.normalized_definition.params` for an explicitly labeled original-text interpretation. Describe visible template text and unresolved parameters, not substituted SQL or effective output. Do not invent `select_columns`, substitute runtime values, or claim an empty projection list proves there are no columns. Do not fill factual query-column sections from a guessed parse. `UNAVAILABLE` or `UNSUPPORTED` similarly retains only what the response actually proves; report the limitation rather than claiming a complete calculation review.
45
+
46
+ None of these reads proves query execution, returned rows, complete business semantics, approval, or certification. Complete the normal sequence in [submit-to-page](agent_review_submit_to_page.md): resolve/export, read every report, fetch evidence, draft supported AI explanations, submit only with authorization, then compare detail readback.
@@ -0,0 +1,9 @@
1
+ # analysis-meta agent-review list
2
+
3
+ Use this to locate recent batches. Input requires project scope and optionally an integer limit. Output is the `batches` array. Do not use this bounded directory as a complete-history export.
4
+
5
+ ```bash
6
+ ae-cli analysis-meta agent-review list --project-id 1 --limit 20
7
+ ```
8
+
9
+ Capability: `metadata.agent_review.list`. Returns `batches`, a bounded list of visible recent batches. The typed project ID and integer limit (default 20, range 1..500) form the L2 directory contract. This is not a paginated complete-history export. Do not treat absence from this recent list as proof no earlier proposal exists; retain task batch IDs and proposal fingerprints. Use detail for item versions and records for execution evidence.
@@ -0,0 +1,96 @@
1
+ # Agent Review Preflight
2
+
3
+ Use for preparing or checking review-page materials, including a local-only rehearsal. This is an Agent workflow, not a Common admission rule. Read alongside [submit-to-page](agent_review_submit_to_page.md). A CLI validation success is not a quality approval.
4
+
5
+ ## Authorization and Isolation
6
+
7
+ Record `LOCAL_ONLY` or `SUBMISSION_AUTHORIZED` from the user's current instructions before starting. `LOCAL_ONLY` prohibits creating batches, notifications, decisions, certification, retries and metric writes, even after a quality PASS. Use only project resolution, recommendation export and necessary evidence/history reads through the project CLI. Keep all drafts and checks local; do not invoke submission commands just to test the review. Existing explicit submission authorization remains valid only while not revoked or narrowed; a newer no-submit request takes precedence over all earlier authorization. Quality PASS or retry exhaustion never creates authorization.
8
+
9
+ Use a fresh-context reviewer subagent that did not author the material. Give it this reference, the raw evidence files, the exact draft and the scope/source ledger; do not give it the author's quality conclusion or ask it to confirm correctness. It has no submission or rewrite authority. Never substitute a second persona in the same conversation for isolation. If independent subagents are unavailable, record `NOT_REVIEWED` with `REVIEWER_UNAVAILABLE` and disclose unchecked scope. Do not self-approve or spend three attempts on the same unavailable reviewer; follow the warning continuation policy below.
10
+
11
+ For an explicit audit-only request, the independent reviewer may run these checks directly without spawning another reviewer. Its findings are the audit result, not self-approval of authored text.
12
+
13
+ ## Prepare Once, Interpret in Batches
14
+
15
+ 1. Resolve the host/project, export the candidate pool, and apply the existing rejection/20 -> 50 -> 100 procedure. Preserve the original export file. Record CLI/source revision, loaded Skill path and file hashes so an installed old Skill cannot silently stand in for the tested one.
16
+ 2. Build a scope ledger accounting for every candidate: retained, existing certified context, same-definition rejection, or an explicit evidence gap. Account separately for metric-creation candidates, which are not CERTIFY proposals. A missing explanation is unfinished work, not a reason to silently remove an asset. Preserve shared asset identity and retained relations.
17
+ 3. Split retained assets into manageable business-domain chunks, with a per-item checklist. Read actual definitions before writing each chunk. Authoring subagents may work on disjoint chunks, but none may approve its own work. Complete and merge every chunk before calling a batch complete; do not stop at representative examples or fill remaining entries with templates.
18
+ 4. Keep narrative entries separately keyed by `client_item_id`. Scripts may join these entries to the packet, never compose their sentences. Deep-copy each original `evidence_snapshot`, including `asset`, `signals`, `definition`, `analysis`, revisions and source provenance when present. Copy candidate source/evidence links too. The abbreviated transport example is not a field allowlist.
19
+ 5. For a gap-only evidence read, preserve the entire original response and record its asset identity and file in the source ledger. The reviewer must verify any replacement/addition against that response. Never replace an existing value merely to agree with prose or recompute server hashes. Common stores the submitted packet; it does not fill omitted statistics or author explanations.
20
+ 6. Complete [per-asset priorities and cross-asset comparisons](agent_review_priorities_comparisons.md) after merging chunks. Supply evidence-backed `recommendation`, classified `comparisons` and explicit `comparison_review` coverage; missing fields are not a default priority or proof of no conflict.
21
+
22
+ ## Required Independent Checks
23
+
24
+ The reviewer performs both passes on the complete retained scope. It may use scripts for deterministic comparisons, but must itself interpret the definitions for the semantic pass.
25
+
26
+ ### A. Evidence and Coverage
27
+
28
+ - Match by full scoped `target_ref` and stable item ID, not name. Reconcile all candidates, all draft items and every displayed relation with the scope ledger. Missing or duplicate coverage cannot PASS.
29
+ - Structurally compare each draft snapshot with its original source, preserving all original fields, array order and values. Check `signals` explicitly: missing, null and zero are different. Available heat/users/impact must not disappear while remaining only in prose. Record exact mismatching paths. Verify any permitted enrichment against its saved evidence response; a draft-authored value is not source evidence.
30
+ - Keep usage provenance. Export ranking fields such as `heat_count90d` can differ from selected `evidence_snapshot.signals` values. Do not overwrite either or call this alone corruption. Explain which source/window a numerical claim uses. The 90-day usage window is not the report's saved query time.
31
+ - Resolve every factual `evidence_refs` path and check the value, not just path existence. Verify revisions, source links, hierarchy and documented exclusions. Save machine-check results with checked item IDs and uncovered IDs.
32
+ - Cross-check counted entities, filter/group fields and formula dependencies in actual definitions against the exported dependency graph. All relation IDs resolving does not prove all dependencies were exported. Record missing dependencies as source gaps; never invent asset IDs or evidence-backed edges. Use the relevant read-only CLI lookup only when it can resolve that gap, and preserve its response before adding a verified relation.
33
+
34
+ ### B. Meaning, Not Filled Fields
35
+
36
+ - Review every retained item's recommendation, and every retained dashboard/report's definition-based explanation. Track checked IDs; sampling cannot establish a whole-batch PASS. If the scope is too large, split the review across fresh reviewers with disjoint ID lists and combine their coverage and findings.
37
+ - Dashboard: explain the business question jointly answered by its actual child reports and why this particular combination merits review. A title plus heat and "stabilize downstream definitions" is insufficient.
38
+ - Report: explain the actual counted entity, unit, aggregation/formula, measure-level and report-level filters, grouping and saved time semantics. Read raw/normalized configuration when the generic extractor loses model-specific meaning; for example a distinct count may count a company property rather than users. Empty generic measures/dimensions do not establish absent measures/grouping.
39
+ - For entity counts, inspect saved entity configuration (such as `measures[].config.quotaEntities` when present), the distinct key and denominator, not only `user_count` or null `identity_scope`. For rank/retention models with empty generic measures, inspect the available `normalized_definition` model section first; do not repeatedly fetch the same evidence just because the generic projection is empty.
40
+ - SQL: inspect saved SQL and parameter definitions, even for DYNAMIC/PARTIAL status. Explain supported aggregation, joins and predicates from the original text, clearly separated from unresolved runtime values. Do not invent projections or lineage, and do not use "see the report definition" as the calculation explanation. State the specific unresolved parameter, branch or wildcard and its decision impact, rather than treating all dynamic SQL as unreadable.
41
+ - Compare summaries, purposes, calculations, limitations and questions after removing asset names (including Chinese corner quotes), IDs, dates and numbers. Repeated shapes flag items for definition-based review, not mechanical paraphrasing. Different strings and correct citation syntax do not prove meaningful explanation; conversely a genuinely shared rule can be valid if each item's evidence supports it.
42
+ - Unknown facts stay unknown. Verify that "no grouping/filter" and distinct-entity claims are actually supported. Risks must be item-specific evidence gaps, not speculative warnings attached to every asset.
43
+ - Apply the priority/comparison reference: verify review urgency separately from certification outcome, examine both definitions and cross-topic peers, distinguish equivalent/different-scope/insufficient evidence from possible conflicts, and require reciprocal conflict links. Record graded/unassessed coverage, classified pair outcomes and unchecked peers. These checks share the same maximum 3 corrections, never a new budget per pair.
44
+
45
+ ## Review Artifact and Repair
46
+
47
+ Write a local `preflight-review.json` with:
48
+
49
+ ```json
50
+ {
51
+ "mode": "LOCAL_ONLY",
52
+ "decision": "NEEDS_REVISION",
53
+ "repair_attempt": 0,
54
+ "max_repair_attempts": 3,
55
+ "reviewer_id": "<independent agent ID>",
56
+ "source_sha256": "<original evidence file hash>",
57
+ "draft_sha256": "<exact reviewed file hash>",
58
+ "expected_item_ids": [],
59
+ "checked_evidence_ids": [],
60
+ "checked_semantic_ids": [],
61
+ "unreviewed_ids": [],
62
+ "findings": [
63
+ {
64
+ "item_id": "<asset ID>",
65
+ "field": "<draft field>",
66
+ "code": "<EVIDENCE_LOSS|UNSUPPORTED_CLAIM|BOILERPLATE|INCOMPLETE|SCOPE_GAP>",
67
+ "source_ref": "<raw file and supporting path>",
68
+ "problem": "<concrete mismatch>",
69
+ "required_action": "<evidence to read or content to repair>"
70
+ }
71
+ ]
72
+ }
73
+ ```
74
+
75
+ The reviewer, not the author or transport script, sets `PASS` only when both passes cover the entire expected scope and no blocking finding remains. Source limitations may remain when honestly explained and the core interpretation is supported; unresolved core meaning cannot PASS. Do not put this local artifact into the Common packet or treat it as authoritative server evidence.
76
+
77
+ On `NEEDS_REVISION`, the author reopens cited definitions, restores evidence or rewrites the actual interpretation. Adding asset names, IDs, numeric details, synonyms or prefixes merely to defeat repeated-text checks is prohibited. Re-review changed narratives independently and rerun full evidence/coverage checks.
78
+
79
+ Allow at most **three correction attempts per logical material packet**. Initial drafting/review is attempt 0 and does not consume a correction. Each subsequent author revision plus independent re-review consumes one attempt (1, 2, 3); stop correcting immediately on PASS. Persist the counter and link each finding to the changed fields and the reviewer's resolved/unresolved result. After review of attempt 3 still returns NEEDS_REVISION, do not start attempt 4: retain the failed quality verdict and continue with warnings under the policy below. Replacing subagents, renaming files, regenerating drafts, changing source run IDs, or resuming the same task must not reset this counter. Do not quietly reduce the batch, skip the reviewer or label unfinished work complete. A new retry budget requires explicit user authorization. This is a ceiling, not a quota: stop correcting earlier when no meaningful repair is possible with available evidence and scope; record why, and do not spend attempts on unchanged retries.
80
+
81
+ ## Continue With Disclosed Quality Issues
82
+
83
+ Quality verdict and submission authorization are separate. A failed quality review must not block an already authorized material-submission workflow after the bounded correction loop. Apply these outcomes without asking for redundant authorization:
84
+
85
+ | Mode | Quality outcome | Next action |
86
+ | --- | --- | --- |
87
+ | `LOCAL_ONLY` | Any, including PASS or attempt-3 failure | `LOCAL_ARTIFACT_ONLY`: return draft, review and unresolved issues; never submit or notify. |
88
+ | `SUBMISSION_AUTHORIZED` | PASS | Submit the reviewed material through the normal CLI path. |
89
+ | `SUBMISSION_AUTHORIZED` | NEEDS_REVISION after attempt 3, or documented no-progress stop | `SUBMIT_WITH_WARNINGS`: submit the latest material and disclose remaining issues; never relabel it PASS. |
90
+ | `SUBMISSION_AUTHORIZED` | NOT_REVIEWED because an independent reviewer is unavailable | `SUBMIT_WITH_WARNINGS`: disclose unavailable review and unchecked scope; do not pretend a review happened. |
91
+
92
+ Before warning-mode dispatch, put a concise Chinese notice in the existing `batch.ai_summary.summary`: actual correction count, unresolved issue categories and affected scope, and that the material is being handed to human review without a quality PASS. Add item-specific `limitations` or `open_questions` for the affected assets where supported, with concrete verification actions; do not duplicate a generic warning on every asset. Keep the full item/field/finding list in the local report and give its location to the user. These are draft annotations, not new Common schema fields or fabricated source facts. Unknown values remain unknown; never invent statistics, definitions or references to make a request valid.
93
+
94
+ Any change to the draft or source invalidates its previous PASS. Bind each independent review to its exact source/draft hashes. Record the final dispatch hash separately from the last reviewed hash and enumerate warning-only additions. Run deterministic structure/evidence comparisons after adding warnings; warning annotation does not start a fourth semantic correction or fabricate a new review. Preserve NEEDS_REVISION/NOT_REVIEWED and the actual coverage.
95
+
96
+ This continuation applies only to Agent quality findings, not missing submission authorization, invalid required fields, broken evidence references, authentication/permission failures, or transport/server errors. Keep ordinary CLI/Common validation and error handling; do not bypass it, silently drop items, switch to a less checked API, or claim success without a returned batch ID. After actual submission, compare stored detail with the final dispatched material, report remaining quality issues and the review-page link, and do not automatically approve or resubmit. In LOCAL_ONLY, these network steps remain forbidden even when warning-mode policy would otherwise apply.
@@ -0,0 +1,76 @@
1
+ # Review Priority and Definition Comparisons
2
+
3
+ Read after interpreting individual assets and before [independent preflight](agent_review_preflight.md). These are Agent assessments inside each item's `ai_summary`, not new Common admission rules, certification decisions or server evidence. Generate them in LOCAL_ONLY rehearsals too, without submitting anything.
4
+
5
+ ## Per-Asset Review Priority
6
+
7
+ Write `recommendation.priority` as `HIGH`, `MEDIUM` or `LOW`, with a concrete Chinese `priority_reason` and `evidence_refs`. This ranks human review attention, not whether certification should pass, fail or be deferred. Do not duplicate `ai_summary.summary` into `recommendation.reason`; the summary remains the single item recommendation reason.
8
+
9
+ - Consider actual business use, distinct users, dependency/reuse scope, decision importance and definition clarity together. State which verified facts make this item more or less urgent within its business domain. A heavily reused foundational field can deserve attention despite little direct viewing.
10
+ - Heat alone, source order, asset type, a copied name or a numeric cutoff is not the decision. Scripts may expose comparable facts, never assign grades or template the rationale. Do not invent business criticality when only usage is known.
11
+ - A consequential suspected conflict can raise review urgency while lowering confidence in certification. LOW means lower review priority, not "defer certification". HIGH is not approval or proof of accuracy. Do not force a distribution or mark everything HIGH to satisfy the priority filter.
12
+ - Preserve usage provenance and windows; missing values are not zero. If evidence cannot support a grade, omit `priority`, explain the specific gap in `priority_reason` and count the item as unassessed in preflight. Never default unassessed assets to MEDIUM or claim full coverage.
13
+
14
+ Local priority `evidence_refs` resolve against that item's unchanged `evidence_snapshot`, including signals, definitions and lineage. Evidence outside that snapshot must be identified in the source ledger rather than silently copied into authoritative fields.
15
+
16
+ ## Cross-Asset Comparison Pass
17
+
18
+ After merging authoring chunks, compare candidate peers across dashboards and business-topic boundaries. Chunk-level review alone is insufficient. Build a local comparison ledger: scoped item identities, common business question, which definition facts were read, outcome, and why potential peers were included or excluded. Do not compare every pair indiscriminately: use same/similar business meaning, shared measure/entity, actual formula/SQL and dependency overlap to shortlist. Names and "copy" suffixes are retrieval hints, never conclusions.
19
+
20
+ Compare the actual counted entity and distinct key, unit, numerator/denominator, aggregation, filter scope, grouping, time semantics, joins and exclusions. For dashboards compare the child-report sets and the meaning of their shared business measures; visual/name similarity alone is not a conflict. Normalize structural syntax only for retrieval; semantic equivalence remains an Agent judgment. Do not execute report queries just to compare saved definitions.
21
+
22
+ Before assigning a priority or comparison outcome, cross-check these common interpretation traps against the raw definition:
23
+
24
+ - Preserve relative/dynamic time selectors alongside saved absolute dates; cached dates alone do not prove a fixed historical window or justify a lower priority. If selector resolution is unavailable, name that uncertainty.
25
+ - Read the actual formula operands and JOIN predicates. A projected/grouped ID is not necessarily a join key; a token denominator is not a message count. Verify claimed grouping differences on both sides.
26
+ - Missing, null, empty, zero and explicit false are distinct evidence states. Do not infer default filter behavior or turn a missing status/environment filter into an intentional business-scope difference without evidence.
27
+ - A field's display name does not prove its timing boundaries or virtual-property formula. Keep unsupported semantic relationships INSUFFICIENT_EVIDENCE rather than asserting equivalence or safe coexistence.
28
+ - After chunk integration, reconcile the comparison ledger and coverage with the actual peer entries. Remove resolved author handoff tasks, retain real evidence gaps, and investigate obvious same-measure peers before claiming the stated scope COMPLETE.
29
+
30
+ Write `comparisons[]` only for meaningful examined peers, each with:
31
+
32
+ | Field | Contract |
33
+ | --- | --- |
34
+ | `other_item_key` | The peer's exact `client_item_id` in this packet, not a report ID or display name. |
35
+ | `target_ref` | The peer's unchanged full scoped target reference; must agree with `other_item_key`. |
36
+ | `classification` | One of the four outcomes below. New materials must supply it. |
37
+ | `similarities` | Chinese explanation of the shared business meaning that justified comparison. |
38
+ | `differences` | Concrete definition differences, or explicit supported equivalence; not just "definitions differ". |
39
+ | `impact` | Business interpretation/decision affected by the difference, not raw evidence paths. |
40
+ | `review_question` | For a possible conflict, what the human should establish about intended scope/authority. For other outcomes, state any remaining question without manufacturing a need to choose one winner. |
41
+ | `evidence_refs` | Two or more scoped evidence references covering both sides, as described below. |
42
+
43
+ Classifications:
44
+
45
+ - `POSSIBLE_CONFLICT`: evidence supports the same intended business concept and overlapping scope, but incompatible entity/formula/filter/time semantics could yield competing answers. State the precise incompatibility and uncertainty; the Agent does not decide which asset is authoritative.
46
+ - `EQUIVALENT`: examined definitions express the same meaning in the reviewed scope. Shared assets appearing under multiple dashboards are one identity, not a self-comparison or conflict. Identical definitions on distinct assets may warrant consolidation discussion, not a conflict badge.
47
+ - `RELATED_DIFFERENT_SCOPE`: related concept with an explicitly supported difference in purpose, population, grain or time scope that explains coexistence. Do not infer intended scope merely to dismiss an unexplained difference.
48
+ - `INSUFFICIENT_EVIDENCE`: a relevant peer was found, but missing definitions or unresolved parameters prevent classification. Name the missing facts. Do not claim a proven conflict or no conflict.
49
+
50
+ Both endpoints of every in-packet `POSSIBLE_CONFLICT` must contain reciprocal comparisons with the same classification, reversed identities and correctly oriented evidence/differences. Keep both assets in their normal groups and keep all human review actions available. Do not remove one or assume an original is authoritative over its copy. Pair comparisons never authorize changing certification status.
51
+
52
+ Comparison references are strings of the form `items[client_item_id=<exact ID>].evidence_snapshot.<actual path>`, resolved by keyed identity, not array position. Include at least one supporting path from each endpoint; verify that the values support the stated difference. Keep these cross-item refs in `comparisons[].evidence_refs`; report `analysis_explanation` retains its existing item-local `evidence_snapshot.analysis...` contract. References are provenance for Agent checks, not fields for Common to interpret or manufacture.
53
+
54
+ In the current page contract, actionable peer links require both assets in the retained packet. Record relevant out-of-pool or rejected peers in the local ledger and disclose the comparison boundary; use only necessary read-only CLI evidence lookups. Do not restore rejected branches or fabricate a peer ID just to create a badge. An unexamined external peer prevents a whole-project no-conflict claim.
55
+
56
+ ## Explicit Coverage, Not Empty-by-Default
57
+
58
+ Every item also carries `comparison_review`:
59
+
60
+ ```json
61
+ {
62
+ "status": "COMPLETE",
63
+ "scope": "<examined candidate pool and relevant peer scope, in Chinese>",
64
+ "compared_item_keys": [],
65
+ "reason": "<what was checked and why no relevant peer exists, or a concise outcome>",
66
+ "missing_evidence": []
67
+ }
68
+ ```
69
+
70
+ `status` is `COMPLETE`, `PARTIAL` or `NOT_REVIEWED`. COMPLETE means the stated comparison scope was examined, not that the whole project has no conflicts. A relevant pair classified INSUFFICIENT_EVIDENCE requires PARTIAL and named missing evidence. An empty `comparisons` array is acceptable after a supported no-peer review; by itself it proves nothing. List the actual compared IDs, not every asset in a topic. This coverage object is stored with AI material for audit; do not assume older pages render it.
71
+
72
+ ## Preflight and Bounded Repair
73
+
74
+ The independent reviewer checks per-item priority coverage and evidence, cross-chunk candidate selection, both definitions for each pair, classifications, reciprocal conflict edges, identity/refs and whether the wording claims more coverage than was checked. It must challenge both false conflict badges and likely missed conflicts. Record counts by priority (including unassessed), comparison outcome, unique unordered conflict pairs, affected items, and incomplete comparisons. Count pair A-B once, not twice because of reciprocal entries.
75
+
76
+ Use the same logical-packet correction budget in preflight: at most 3 corrections total, not 3 for each priority, pair or reviewer. On exhausted quality corrections, preserve the findings and follow authorized warning continuation. LOCAL_ONLY always ends with local files. Missing priority, incomplete comparison, and poor rationale are Agent quality findings, not new CLI/Common rejection rules.
@@ -0,0 +1,9 @@
1
+ # analysis-meta agent-review records
2
+
3
+ Use this to audit a known batch. Input requires project scope and a string batch ID. Output is the `records` array. Do not use audit events as current asset-definition evidence.
4
+
5
+ ```bash
6
+ ae-cli analysis-meta agent-review records --project-id 1 --batch-id '9007199254740993'
7
+ ```
8
+
9
+ Capability: `metadata.agent_review.records`. Returns `records`, immutable batch, review, execution, retry and notification events. L2 flags require the project and a lossless decimal batch ID. Distinguish human approval from execution attempts and successful results. Do not use historical records as current asset evidence or repeatedly poll unchanged records for notifications.
@@ -0,0 +1,12 @@
1
+ # analysis-meta agent-review retry
2
+
3
+ Use this to execute an authorized retry. Input requires project scope, string batch ID, operation key and failed item IDs. Do not use retry to approve pending proposals.
4
+
5
+ ```bash
6
+ ae-cli analysis-meta agent-review retry --project-id 1 --batch-id '9007199254740993' \
7
+ --client-request-id retry_002 --item-ids '["9007199254740994"]' --dry-run
8
+ ```
9
+
10
+ Capability: `metadata.agent_review.retry`. Requires `assetAuthentication` and metadata write scope. L2 provides validated, unique string IDs, bounded selection and an explicit replay key. Retry only selected failed executions under their existing valid approvals after explicit retry intent. Do not retry successful items, manufacture approval for deferred/rejected items, or use retry from an unattended submission-only task. Read current detail first. A manual retry uses a new key; a network replay uses the exact previous key and payload. Validation/dry-run performs no mutation and does not guarantee current domain eligibility.
11
+
12
+ Output includes refreshed detail, `submission_id`, and per-item `results`; inspect failures individually and read records for the linked execution attempts. Do not describe success until the selected executions actually succeeded.
@@ -0,0 +1,16 @@
1
+ # analysis-meta agent-review review
2
+
3
+ Use this only for explicit human decisions. Input requires project scope, string batch ID, operation key and versioned decisions. Do not use submission authorization as approval authorization.
4
+
5
+ Record a human's explicit decisions for existing versioned items. APPROVE executes certification immediately; DEFER and REJECT record opinions without certifying. Do not call this from a submission-only unattended task. Creating a review batch does not authorize this command.
6
+
7
+ ```bash
8
+ ae-cli analysis-meta agent-review review --project-id 1 --batch-id '9007199254740993' \
9
+ --client-request-id decision_001 \
10
+ --decisions '[{"item_id":"9007199254740994","version":1,"decision":"DEFER","reason":"Need refreshed evidence"}]' \
11
+ --dry-run
12
+ ```
13
+
14
+ Capability: `metadata.agent_review.review`. Requires the exact project function `assetAuthentication` and metadata write scope. L2 validates string IDs, nonnegative item versions (initial version 0 is valid), unique targets, APPROVE/DEFER/REJECT and mandatory nonblank reasons for DEFER/REJECT. Read detail first; preserve its versions. A preview invokes no mutations and does not reserve versions. Execute with explicit decision authorization, without changing the reviewed scope.
15
+
16
+ Output is refreshed detail plus `submission_id` and per-item `results`. A successful response can contain failed executions; inspect each result and read detail/records. Same operation key replays the same decisions. A new human decision uses a new key. On stale-version or evidence conflicts, re-read and obtain a fresh decision; never automatically approve changed content.