@thinkingai/ae-cli 6.1.29 → 6.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -5
- package/README.zh.md +11 -5
- package/bin/ai-monitor.js +2 -0
- package/dist/ai-monitor-MKMHSSNI.js +32 -0
- package/dist/ai-monitor.js +135 -0
- package/dist/{auth-OBQ5KVQM.js → auth-CZHHPZOQ.js} +12 -11
- package/dist/{automation-NAR5DDGL.js → automation-FLCPFMN4.js} +5 -5
- package/dist/{capability-LFSVNI5B.js → capability-64KVJFIA.js} +28 -32
- package/dist/{chunk-IN7KKL6K.js → chunk-2F64AZYH.js} +1 -1
- package/dist/{chunk-QZLRHGVH.js → chunk-3ULDJJTZ.js} +1 -1
- package/dist/{chunk-JNVVJ273.js → chunk-4PSTYEG5.js} +5 -10
- package/dist/{chunk-3SDHJOCR.js → chunk-4XKTRCRK.js} +16 -16
- package/dist/{chunk-RJHGDWSC.js → chunk-5M5LBRR3.js} +2 -2
- package/dist/chunk-6M7ZEDT2.js +182 -0
- package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
- package/dist/chunk-BNBCMCYN.js +563 -0
- package/dist/chunk-CF6JTT2U.js +64 -0
- package/dist/{chunk-2UW3Y463.js → chunk-DWBYNGSR.js} +565 -315
- package/dist/{chunk-N6XBLRB7.js → chunk-F2VFZUGG.js} +2 -2
- package/dist/{chunk-CVCTFLSO.js → chunk-FCAA7I2D.js} +3 -3
- package/dist/{chunk-H3K5UGYC.js → chunk-HTZ2MLYA.js} +48 -22
- package/dist/{chunk-QZUVLFNR.js → chunk-HVMCPKOZ.js} +1 -1
- package/dist/chunk-IDDWEZ7F.js +1285 -0
- package/dist/{chunk-7JAVT5TK.js → chunk-KTJXD27G.js} +2 -2
- package/dist/{chunk-6HAUVWOQ.js → chunk-NLEXY2TM.js} +48 -13
- package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
- package/dist/{chunk-PWXDWMCW.js → chunk-T7WF4HYW.js} +84 -32
- package/dist/{chunk-VCZE3IWO.js → chunk-TMQGS4TO.js} +15 -10
- package/dist/{compat-check-CII6B74E.js → compat-check-ZJNCMNQV.js} +3 -3
- package/dist/{config-YZ6O2UQ2.js → config-FSH2NMNZ.js} +26 -13
- package/dist/{context-F6FCGTF3.js → context-YAQG6YQC.js} +3 -3
- package/dist/{data-integration-6UAZO4GG.js → data-integration-QE37EQ3A.js} +1 -1
- package/dist/{evaluation-4LO2O4AF.js → evaluation-2JSF4V47.js} +13 -158
- package/dist/index.js +84 -586
- package/dist/{memory-HHPX3NF2.js → memory-VEZZVAAP.js} +5 -5
- package/dist/{metadata-TIFY24LW.js → metadata-3IWHX3V4.js} +8 -8
- package/dist/{model-7UHGWYVR.js → model-T7H7Q6BG.js} +3 -3
- package/dist/{personal-semantic-preference-WKJEGPTM.js → personal-semantic-preference-YITU23SA.js} +7 -7
- package/dist/{project-semantic-EIQVZNHW.js → project-semantic-MHEXJF3C.js} +16 -14
- package/dist/{sync-RV3OPCTI.js → sync-AQHVCSPI.js} +5 -5
- package/dist/{te-agent-5ENVZJUH.js → te-agent-RXI7WOH4.js} +6 -6
- package/dist/{te-analysis-USIK6ZZG.js → te-analysis-CZY74HVF.js} +381 -192
- package/dist/{te-community-WE2UU4XV.js → te-community-DKCYUBCM.js} +7 -7
- package/dist/{te-dataops-XNMO7MBF.js → te-dataops-QEH6VE56.js} +5 -5
- package/dist/{te-engage-6C3HCFQR.js → te-engage-WK7WKDKF.js} +7 -7
- package/dist/{te-experiment-LVTRI3QK.js → te-experiment-LH3RPIOE.js} +275 -30
- package/dist/{te-kb-TUPGMVBY.js → te-kb-UPORIOVN.js} +17 -8
- package/dist/{te-system-YM657FKO.js → te-system-AL4B4XZL.js} +3 -3
- package/dist/{te-team-G4VEJJNL.js → te-team-LLVTO2G4.js} +6 -6
- package/dist/{things-22KQWC23.js → things-XLMLBYQR.js} +6 -6
- package/dist/{update-XX4ILU7X.js → update-7J5UQHSK.js} +4 -4
- package/dist/{workspace-LYDAP647.js → workspace-FF2HXJGR.js} +5 -5
- package/package.json +9 -7
- package/skills/ae-ai-monitor/SKILL.md +179 -0
- package/skills/ae-ai-monitor/references/read-commands.md +866 -0
- package/skills/ae-analysis/SKILL.md +10 -4
- package/skills/ae-analysis/references/adhoc_export.md +3 -1
- package/skills/ae-analysis/references/ai_models/path.md +5 -6
- package/skills/ae-analysis/references/ai_models.md +1 -0
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
- package/skills/ae-analysis/references/asset_search.md +1 -1
- package/skills/ae-analysis/references/bad_case_begin.md +12 -0
- package/skills/ae-analysis/references/bad_case_get.md +12 -0
- package/skills/ae-analysis/references/bad_case_history.md +12 -0
- package/skills/ae-analysis/references/bad_case_list.md +12 -0
- package/skills/ae-analysis/references/bad_case_review.md +51 -0
- package/skills/ae-analysis/references/bad_case_run.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit.md +12 -0
- package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
- package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/bi_panel_share.md +3 -1
- package/skills/ae-analysis/references/catalog_list.md +2 -0
- package/skills/ae-analysis/references/command_index.md +38 -29
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
- package/skills/ae-analysis/references/dashboard_handover.md +3 -1
- package/skills/ae-analysis/references/dashboard_list.md +3 -3
- package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
- package/skills/ae-analysis/references/dashboard_share.md +3 -1
- package/skills/ae-analysis/references/dashboard_update.md +3 -2
- package/skills/ae-analysis/references/filter_value_list.md +2 -0
- package/skills/ae-analysis/references/folder_share.md +8 -2
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
- package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
- package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
- package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
- package/skills/ae-analysis/references/project_member_add.md +3 -1
- package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
- package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
- package/skills/ae-analysis/references/project_member_update.md +3 -1
- package/skills/ae-analysis/references/project_owner_update.md +3 -1
- package/skills/ae-analysis/references/project_role_upsert.md +5 -3
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
- package/skills/ae-analysis/references/project_space_share.md +8 -2
- package/skills/ae-analysis/references/property_get.md +2 -0
- package/skills/ae-analysis/references/public_link_list.md +3 -1
- package/skills/ae-analysis/references/query_cancel.md +4 -1
- package/skills/ae-analysis/references/report_data_run.md +1 -1
- package/skills/ae-analysis/references/report_list.md +3 -3
- package/skills/ae-analysis/references/scenario_append.md +2 -2
- package/skills/ae-analysis/references/scenario_collect.md +15 -4
- package/skills/ae-analysis/references/scenario_list.md +2 -1
- package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
- package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
- package/skills/ae-analysis/references/user_tag_create.md +4 -1
- package/skills/ae-analysis/references/user_tag_get.md +2 -0
- package/skills/ae-analysis/references/user_tag_models.md +8 -2
- package/skills/ae-analysis/references/user_tag_update.md +5 -2
- package/skills/ae-analysis/references/virtual_property_create.md +12 -1
- package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
- package/skills/ae-automation/SKILL.md +4 -2
- package/skills/ae-capability/SKILL.md +9 -5
- package/skills/ae-community/SKILL.md +1 -0
- package/skills/ae-dataops/SKILL.md +1 -0
- package/skills/ae-engage/SKILL.md +1 -0
- package/skills/ae-evaluation/SKILL.md +17 -2
- package/skills/ae-experiment/SKILL.md +38 -11
- package/skills/ae-experiment/references/experiment_approval.md +171 -0
- package/skills/ae-experiment/references/manage_experiment.md +11 -2
- package/skills/ae-experiment/references/save_experiment.md +28 -8
- package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
- package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
- package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
- package/skills/ae-kb/SKILL.md +9 -5
- package/skills/ae-kb/references/analysis-workflow.md +11 -2
- package/skills/ae-kb/references/query-workflow.md +9 -6
- package/skills/ae-kb/references/versions.md +1 -1
- package/skills/ae-kb-discovery/SKILL.md +15 -6
- package/skills/ae-metadata/SKILL.md +1 -0
- package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
- package/skills/ae-team/SKILL.md +1 -1
- package/skills/ae-tracking-matrix/SKILL.md +170 -0
- package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
- package/skills/ae-tracking-matrix/i18n.yaml +12 -0
- package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
- package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
- package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
- package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
- package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
- package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
- package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
- package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
- package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
- package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
- package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
- package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
- package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
- package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
- package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
- package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
- package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
- package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
- package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
- package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
- package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
- package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
- package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
- package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
- package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
- package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
- package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
- package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
- package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
- package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
- package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
- package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
- package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
- package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
- package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
- package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
- package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
- package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
- package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
- package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
- package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
- package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
- package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
- package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
- package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
- package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
- package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
- package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
- package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
- package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
- package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
- package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
- package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
- package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
- package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
- package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
- package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
- package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
- package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
- package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
- package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
- package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
- package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
- package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
- package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
- package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
- package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
- package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
- package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
- package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
- package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
- package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
- package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
- package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
- package/dist/chunk-AMBFK2K3.js +0 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-experiment
|
|
3
|
-
version: 1.0.
|
|
4
|
-
description: "Use when managing Atlas AB or external experiments, traffic layers, Features, metrics, buckets, and experiment reports through ae-cli"
|
|
3
|
+
version: 1.0.7
|
|
4
|
+
description: "Use when managing Atlas AB or external experiments, experiment approvals and approvers, traffic layers, Features, metrics, buckets, and experiment reports through ae-cli"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# ae-experiment
|
|
@@ -16,7 +16,7 @@ AE CLI (`ae-cli`) exposes Atlas AB Experiment capabilities through the `experime
|
|
|
16
16
|
- Do not invent experiment IDs, traffic layer IDs, bucket IDs, Feature keys, metric IDs, or payload field names.
|
|
17
17
|
- Bind only metric IDs returned by `experiment metric list`; create and verify a missing metric before saving the experiment.
|
|
18
18
|
- Read commands can run directly after IDs are verified.
|
|
19
|
-
- Write commands require
|
|
19
|
+
- Write commands require user intent. Only `high-risk-write` commands prompt for confirmation; use `--yes` only after authorization. Use `--dry-run` before write calls when composing JSON.
|
|
20
20
|
|
|
21
21
|
Naming and response boundary:
|
|
22
22
|
|
|
@@ -61,14 +61,30 @@ Naming and response boundary:
|
|
|
61
61
|
- `experiment metric save`
|
|
62
62
|
3. Create or patch the experiment draft with `experiment experiment save`.
|
|
63
63
|
Use `experiment experiment update-metrics` when replacing metric bindings or assigning guardrail roles.
|
|
64
|
-
4. For an external experiment, use `experiment external-experiment save-submit` instead.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
4. For an external experiment, use `experiment external-experiment save-submit` instead.
|
|
65
|
+
It submits for approval on approval-enabled servers and does not use Features,
|
|
66
|
+
traffic layers, allocation, targeting, or experiment cycles. Skip the Feature
|
|
67
|
+
readiness/conflict/submission steps. Read its approval only after verifying
|
|
68
|
+
approval support; on an older server, verify experiment detail instead.
|
|
69
|
+
On servers exposing `req.clearEndTime`, omitting `--end-time` on updates retains
|
|
70
|
+
the saved deadline. Cancel it explicitly with `--clear-end-time true`; read
|
|
71
|
+
[external deadline compatibility](references/save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
|
|
72
|
+
before changing a deadline on older servers.
|
|
73
|
+
5. For a Feature draft, check readiness with `experiment experiment ready-check`.
|
|
74
|
+
6. For a Feature on a non-mutex traffic layer, run `experiment experiment conflict-check` before submit (needs `feature_key_list` from context or `experiment get`).
|
|
75
|
+
7. Submit the saved Feature draft with `experiment experiment manage --target-status pending`.
|
|
76
|
+
This submission path works on both older and approval-enabled servers.
|
|
77
|
+
`experiment approval submit` is an alternative after verifying capability support;
|
|
78
|
+
submit once, never through both commands. Before choosing approval commands,
|
|
79
|
+
read [server compatibility](references/experiment_approval.md#server-compatibility).
|
|
80
|
+
On an approval-enabled server, read `experiment approval get` and review/process
|
|
81
|
+
the exact `approval_id` only for the user-requested action. Approval can start
|
|
82
|
+
a due Feature experiment; verify approval and runtime status independently.
|
|
83
|
+
On older servers, read `experiment experiment get` to verify submission.
|
|
84
|
+
For a scheduled Feature start, save `startTime` (or use `--start-time`) before
|
|
85
|
+
submission. Read [Feature timing](references/save_experiment.md#feature-timing).
|
|
86
|
+
Use `experiment experiment manage` for existing lifecycle actions. Its
|
|
87
|
+
`draft → pending` call submits for approval on approval-enabled servers.
|
|
72
88
|
To resume `paused` to `running`, call `manage` directly and verify the status
|
|
73
89
|
with `get`; do not use the pre-launch `ready-check` as a resume prerequisite.
|
|
74
90
|
8. Query reports with `experiment report summary`, `experiment report sample-size`, and `experiment report metric-trend`.
|
|
@@ -115,6 +131,17 @@ Read [`manage_guardrail_metrics.md`](references/manage_guardrail_metrics.md) bef
|
|
|
115
131
|
|
|
116
132
|
Read [`save_submit_external_experiment.md`](references/save_submit_external_experiment.md) before creating or updating an external experiment.
|
|
117
133
|
|
|
134
|
+
### Experiment Approval and Approvers
|
|
135
|
+
|
|
136
|
+
`experiment approval get`, `experiment approval submit`, `experiment approval approve`,
|
|
137
|
+
`experiment approval reject`, `experiment approval withdraw`, `experiment approver list`,
|
|
138
|
+
`experiment approver add`, `experiment approver delete`
|
|
139
|
+
|
|
140
|
+
Read [`experiment_approval.md`](references/experiment_approval.md) for the approval workflow,
|
|
141
|
+
exact round IDs, proposed versus effective configuration, and the separate experiment approver list.
|
|
142
|
+
Delivery changes to submitted experiments can queue approval even when a save returns `true`.
|
|
143
|
+
Read the approval before claiming that the requested configuration is effective.
|
|
144
|
+
|
|
118
145
|
### Traffic Layer and Buckets
|
|
119
146
|
|
|
120
147
|
`experiment traffic-layer save`, `experiment traffic-layer get`, `experiment traffic-layer list`, `experiment traffic-layer batch-delete`, `experiment bucket list`
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Experiment approval and approvers
|
|
2
|
+
|
|
3
|
+
Use these commands on servers exposing `experiment.approval.*` and
|
|
4
|
+
`experiment.approver.*`. All commands require a verified positive integer
|
|
5
|
+
`--project-id` (`-p`). Requests use the existing `engage` Capability Gateway route
|
|
6
|
+
and CLI token authentication; no direct Atlas REST calls are needed.
|
|
7
|
+
|
|
8
|
+
## Commands
|
|
9
|
+
|
|
10
|
+
| Command | Additional required flags | Risk | Response data |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| `ae-cli experiment approval get` | `--exp-id` | read | `item`: latest approval or `null` |
|
|
13
|
+
| `ae-cli experiment approval submit` | `--exp-id` | write | `result`: saved draft's experiment ID |
|
|
14
|
+
| `ae-cli experiment approval approve` | `--exp-id`, `--approval-id` | write | `result`: boolean |
|
|
15
|
+
| `ae-cli experiment approval reject` | `--exp-id`, `--approval-id`, `--reason` | write | `result`: boolean |
|
|
16
|
+
| `ae-cli experiment approval withdraw` | `--exp-id`, `--approval-id` | write | `result`: boolean |
|
|
17
|
+
| `ae-cli experiment approver list` | None | read | `items`, `total` |
|
|
18
|
+
| `ae-cli experiment approver add` | `--approvers` | write | `result`: boolean |
|
|
19
|
+
| `ae-cli experiment approver delete` | `--approver` | high-risk-write | `result`: boolean |
|
|
20
|
+
|
|
21
|
+
CLI segments map directly to the corresponding capability IDs, for example
|
|
22
|
+
`experiment approval approve` calls `experiment.approval.approve`.
|
|
23
|
+
Flags map to snake_case input fields. `--approval-id` must be a positive safe
|
|
24
|
+
integer from the exact reviewed proposal. Write `--project-id` and `--approval-id`
|
|
25
|
+
as decimal digits; fractions, exponent/hex notation, and unsafe integers are
|
|
26
|
+
rejected locally before numeric conversion can silently change a target ID.
|
|
27
|
+
`--reason` is trimmed, required for rejection, and limited to 72 UTF-16 code units
|
|
28
|
+
as in the backend. The Gateway does not expose optional approval/withdrawal remarks.
|
|
29
|
+
`--approvers` is a JSON array of 1 to 10 non-empty project member open IDs;
|
|
30
|
+
`--approver` removes one existing open ID. Do not invent IDs or infer eligibility
|
|
31
|
+
from membership in the Engage task approver list.
|
|
32
|
+
|
|
33
|
+
## Server compatibility
|
|
34
|
+
|
|
35
|
+
Before selecting approval commands for the active host, inspect metadata without
|
|
36
|
+
the project filter so project availability is not mistaken for an older server:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
ae-cli capability inspect experiment.approval.submit
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- Metadata returned: use the approval workflow below. For saved Feature drafts,
|
|
43
|
+
either `approval submit` or the compatible `experiment experiment manage
|
|
44
|
+
--target-status pending` submits once; do not execute both.
|
|
45
|
+
- An explicit `CAPABILITY_NOT_FOUND`, or a verified deployed release without
|
|
46
|
+
approval support: keep the existing submission workflow below, and verify
|
|
47
|
+
runtime status with experiment detail. Do not call approval commands.
|
|
48
|
+
- Authentication, permission, project, network, or business errors, an empty
|
|
49
|
+
filtered catalog, and a generic HTTP 404 do not establish missing approval
|
|
50
|
+
support. Resolve the error; do not switch write paths or infer approval is off.
|
|
51
|
+
|
|
52
|
+
Compatible saved Feature draft submission on older servers:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-status pending
|
|
56
|
+
ae-cli experiment experiment get --project-id 1 --exp-id exp_123
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The same `manage` call still queues approval on approval-enabled servers; it
|
|
60
|
+
cannot bypass approval. When approval support is known, read the proposal after
|
|
61
|
+
this call instead of submitting again. External-experiment `save-submit` and
|
|
62
|
+
L3 `experiment.experiment.save-submit` retain their existing calls: read approval
|
|
63
|
+
on supported servers and runtime detail on older ones. New approval/settings
|
|
64
|
+
operations themselves require a backend upgrade when their capability is absent.
|
|
65
|
+
The CLI never automatically retries a failed approval write through `manage`
|
|
66
|
+
or direct REST, including capability-not-found, permission, and stale-round errors.
|
|
67
|
+
|
|
68
|
+
## Submit and review
|
|
69
|
+
|
|
70
|
+
1. Save the draft, complete readiness checks, and check traffic conflicts for a
|
|
71
|
+
non-mutex traffic layer. A draft-only request ends after saving and verification.
|
|
72
|
+
2. When submission is requested, submit the saved draft:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
ae-cli experiment approval submit --project-id 1 --exp-id exp_123 --dry-run
|
|
76
|
+
ae-cli experiment approval submit --project-id 1 --exp-id exp_123
|
|
77
|
+
ae-cli experiment approval get --project-id 1 --exp-id exp_123
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
The external-experiment `save-submit` command and L3
|
|
81
|
+
`experiment.experiment.save-submit` already submit complete configuration;
|
|
82
|
+
read approval afterward instead of submitting a second time.
|
|
83
|
+
3. Read `data.item.approval_id`, `state`, `configuration`, and available actions
|
|
84
|
+
`can_approve`, `can_reject`, `can_cancel`. `item=null` means no approval history,
|
|
85
|
+
not an approved experiment. Read `experiment experiment get` separately for
|
|
86
|
+
the runtime status and current effective configuration.
|
|
87
|
+
4. Review the actual proposed configuration before approval. Apply only the
|
|
88
|
+
user-requested action to that exact round. The commands never discover and
|
|
89
|
+
substitute another approval ID automatically.
|
|
90
|
+
|
|
91
|
+
For example, after discovering and reviewing approval ID `42`:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42 --dry-run
|
|
95
|
+
ae-cli experiment approval approve --project-id 1 --exp-id exp_123 --approval-id 42
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Alternative actions on a verified pending round:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
ae-cli experiment approval reject --project-id 1 --exp-id exp_123 --approval-id 42 --reason 'Reduce traffic before launch'
|
|
102
|
+
ae-cli experiment approval withdraw --project-id 1 --exp-id exp_123 --approval-id 42
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Run only the selected action, then re-read approval and experiment detail. A
|
|
106
|
+
dry-run checks the input contract without applying configuration; it does not
|
|
107
|
+
prove current approver eligibility, an unchanged baseline, resource readiness,
|
|
108
|
+
or that the real approval will succeed.
|
|
109
|
+
|
|
110
|
+
## State and configuration boundaries
|
|
111
|
+
|
|
112
|
+
- First submission remains `status=draft` with `approval.state=pending_review`.
|
|
113
|
+
`mapping_status` is a display status; it does not replace the runtime `status`.
|
|
114
|
+
- Submitted delivery changes queue an immutable proposal while the current
|
|
115
|
+
configuration and runtime state continue to apply. This includes changes
|
|
116
|
+
submitted through existing save commands; a successful boolean save is not
|
|
117
|
+
proof that the new delivery configuration is effective.
|
|
118
|
+
- Name, hypothesis, and other display-only changes normally save directly.
|
|
119
|
+
A pending review freezes editing and deletion; withdraw it before editing.
|
|
120
|
+
- Rejection or withdrawal preserves the effective configuration. If revising
|
|
121
|
+
a rejected/withdrawn proposal, read its `configuration` as well as experiment
|
|
122
|
+
detail. Rebuild a valid camelCase write request from the save contract;
|
|
123
|
+
never send the read-only snake_case snapshot directly as `--req`.
|
|
124
|
+
- Approval applies the stored snapshot and rechecks project access, submitter
|
|
125
|
+
access, approver eligibility, configuration baseline, resources, and time.
|
|
126
|
+
It can start a due Feature experiment and synchronize Feature/RCC. A future
|
|
127
|
+
start remains pending; audience subscription can also delay startup. A running
|
|
128
|
+
or paused experiment keeps its lifecycle and original start time.
|
|
129
|
+
- No configured eligible approver does not skip approval: submission stays
|
|
130
|
+
pending until a valid approver is added and processes the existing round.
|
|
131
|
+
Never add the caller as an approver just to bypass a pending review.
|
|
132
|
+
- External experiments also use approval; after approval their time range
|
|
133
|
+
determines pending/running/ended. They do not synchronize Feature/RCC.
|
|
134
|
+
|
|
135
|
+
## Approver settings and permissions
|
|
136
|
+
|
|
137
|
+
Experiment approvers are project-scoped and independent of Engage approvers.
|
|
138
|
+
List responses include `approver`, `approver_name`, `creator_name`, `create_time`,
|
|
139
|
+
and `eligible`. Use verified project member open IDs for additions.
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
ae-cli experiment approver list --project-id 1
|
|
143
|
+
ae-cli experiment approver add --project-id 1 --approvers '["open_id_1","open_id_2"]' --dry-run
|
|
144
|
+
ae-cli experiment approver delete --project-id 1 --approver open_id_1 --dry-run
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
List before and after a requested settings change. Deletion keeps historical
|
|
148
|
+
approval records and requires confirmation; non-interactive execution requires
|
|
149
|
+
`--yes` after authorization. Ordinary writes do not prompt.
|
|
150
|
+
|
|
151
|
+
Reads require `engage:read` and experiment view permission. Writes require
|
|
152
|
+
`engage:write`. Approve/reject additionally require current experiment approver
|
|
153
|
+
eligibility, but do not require experiment edit permission. Submit/withdraw
|
|
154
|
+
require the creator's experiment edit permission or experiment management
|
|
155
|
+
permission; approver settings changes require experiment management permission.
|
|
156
|
+
The server enforces permissions and project/resource ownership.
|
|
157
|
+
|
|
158
|
+
## Failures and older servers
|
|
159
|
+
|
|
160
|
+
- `EXPERIMENT_APPROVAL_STALE`: re-read the latest round; do not silently approve
|
|
161
|
+
a replacement proposal or retry a finished action.
|
|
162
|
+
- `EXPERIMENT_APPROVAL_BASELINE_CHANGED`: re-read approval and effective detail.
|
|
163
|
+
Withdraw and submit a corrected proposal when authorized.
|
|
164
|
+
- Invalid/ineligible approvers or permission errors: correct the roster or
|
|
165
|
+
permissions through the requested settings workflow; do not retry blindly.
|
|
166
|
+
- After a timeout or uncertain write result, read both records before deciding
|
|
167
|
+
whether another write is needed.
|
|
168
|
+
- Existing `experiment experiment manage --target-status pending` remains
|
|
169
|
+
supported on older and approval-enabled servers. Select the workflow using
|
|
170
|
+
[server compatibility](#server-compatibility), before writing. An approval
|
|
171
|
+
failure never authorizes bypassing it through direct REST or a status change.
|
|
@@ -20,8 +20,17 @@ It preserves the first start time and the existing day-based or fixed deadline.
|
|
|
20
20
|
Do not run the standalone `ready-check` as a prerequisite for resuming a paused
|
|
21
21
|
experiment; that command accepts only pre-launch states.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
On approval-enabled servers, `draft → pending` submits the saved draft for
|
|
24
|
+
approval while its runtime status remains draft. This command also remains the
|
|
25
|
+
submission path for older servers. Read
|
|
26
|
+
[server compatibility](experiment_approval.md#server-compatibility) before using
|
|
27
|
+
dedicated approval commands; do not submit a second time or use `running` to
|
|
28
|
+
bypass approval. Existing command flags and response shapes remain supported.
|
|
29
|
+
|
|
30
|
+
For Feature scheduling, save `startTime` before submission. The server checks
|
|
31
|
+
eligible scheduled experiments every half hour, after approval where required.
|
|
32
|
+
For experiments eligible to start,
|
|
33
|
+
`running` starts immediately;
|
|
25
34
|
read fresh detail and disclose `start_time_adjustment_required=true` before an
|
|
26
35
|
early manual start. No extra confirmation field is required. See
|
|
27
36
|
[Feature timing](save_experiment.md#feature-timing) for lifecycle and deadline rules.
|
|
@@ -27,6 +27,13 @@ Flags:
|
|
|
27
27
|
|
|
28
28
|
Response shape is `data.result`. Object keys inside the result are recursively snake_case. A create commonly returns the new experiment ID as `data.result`; a patch commonly returns `true`.
|
|
29
29
|
|
|
30
|
+
On approval-enabled servers, drafts save directly, while actual delivery changes
|
|
31
|
+
to already submitted experiments queue approval without changing effective
|
|
32
|
+
configuration. Display-only changes save directly unless a review is pending.
|
|
33
|
+
Read [experiment approval](experiment_approval.md) and check `approval get` after
|
|
34
|
+
updating a submitted experiment; `result=true` alone does not prove the new
|
|
35
|
+
configuration is effective.
|
|
36
|
+
|
|
30
37
|
## Payload Type Contract
|
|
31
38
|
|
|
32
39
|
Nested payload fields must match the server DTO types, not just the visible CLI dry-run body shape.
|
|
@@ -165,7 +172,7 @@ The second command produces the same native request as:
|
|
|
165
172
|
{"expId":"exp_123","startTime":"2026-11-01T16:00:00+08:00","expCycle":{"cycleType":"time","fixedEndTime":"2026-11-08T16:00:00+08:00"}}
|
|
166
173
|
```
|
|
167
174
|
|
|
168
|
-
Saving does not submit or start
|
|
175
|
+
Saving a draft does not submit or start it. Complete the remaining Feature,
|
|
169
176
|
group, traffic, and metric configuration, check readiness, and check traffic
|
|
170
177
|
conflicts for a non-mutex layer before submitting:
|
|
171
178
|
|
|
@@ -175,11 +182,21 @@ ae-cli experiment experiment manage --project-id 1 --exp-id exp_123 --target-sta
|
|
|
175
182
|
ae-cli experiment experiment get --project-id 1 --exp-id exp_123
|
|
176
183
|
```
|
|
177
184
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
This submission path works on older and approval-enabled servers. Before using
|
|
186
|
+
the dedicated `approval submit` alternative or reading/processing approvals,
|
|
187
|
+
follow [server compatibility](experiment_approval.md#server-compatibility).
|
|
188
|
+
Submit once; do not call `approval submit` after `manage` has already submitted.
|
|
189
|
+
On approval-enabled servers, also read `experiment approval get`; submission
|
|
190
|
+
keeps runtime `status=draft` with `approval.state=pending_review`.
|
|
191
|
+
An authorized approver must review and approve the exact proposal. Approval can
|
|
192
|
+
start a due Feature experiment immediately; future starts stay pending, and
|
|
193
|
+
audience subscription may delay startup. Approved experiments waiting for
|
|
194
|
+
subscription can resume automatically after readiness is restored. Scheduled
|
|
195
|
+
experiments are checked every half hour. A draft never starts automatically.
|
|
196
|
+
Older servers without approval capabilities retain their existing submission
|
|
197
|
+
behavior; verify their runtime detail instead of calling approval endpoints.
|
|
198
|
+
On those servers, a pending Feature without a start time requires manual start.
|
|
199
|
+
Verify `data.item.status`, `start_time`, and
|
|
183
200
|
`scheduled_start_error` with `get` (or `list`). An expired pending window remains
|
|
184
201
|
pending and reports an error; fix the timing instead of reporting a start.
|
|
185
202
|
|
|
@@ -275,10 +292,13 @@ After a successful save, output the experiment detail link in this form, substit
|
|
|
275
292
|
[View experiment](/#/atlas/experiment/detail?expId=<expId>¤tProjectId=<projectId>)
|
|
276
293
|
```
|
|
277
294
|
|
|
278
|
-
After
|
|
295
|
+
After a draft save, check readiness to identify missing configuration:
|
|
279
296
|
|
|
280
297
|
```bash
|
|
281
298
|
ae-cli experiment experiment ready-check --project-id <id> --exp-id <expId>
|
|
282
299
|
```
|
|
283
300
|
|
|
284
|
-
Use readiness failures to decide the next patch.
|
|
301
|
+
Use readiness failures to decide the next patch. For submitted experiments,
|
|
302
|
+
read approval and effective experiment detail instead of applying a pre-launch
|
|
303
|
+
readiness check to a running or paused experiment. Report a queued change as
|
|
304
|
+
awaiting approval until the stored proposal is approved and its effect verified.
|
|
@@ -17,7 +17,22 @@ Prefer `experiment experiment save` for progressive draft construction.
|
|
|
17
17
|
|
|
18
18
|
Feature requests may include optional `req.startTime` and
|
|
19
19
|
`req.expCycle={"cycleType":"time","fixedEndTime":"2026-11-08T16:00:00+08:00"}`.
|
|
20
|
-
Use ISO-8601 timestamps with timezone offsets.
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
Use ISO-8601 timestamps with timezone offsets. On approval-enabled servers,
|
|
21
|
+
initial submission and actual delivery changes create a pending approval;
|
|
22
|
+
read [server compatibility](experiment_approval.md#server-compatibility) before
|
|
23
|
+
using `experiment approval get`. On older servers, retain this save-submit call
|
|
24
|
+
and verify runtime detail without calling approval endpoints.
|
|
25
|
+
Do not submit the same saved draft again after this call. Approval can start a
|
|
26
|
+
due Feature experiment; a future start waits for the server's half-hour checks.
|
|
27
|
+
See [Feature timing](save_experiment.md#feature-timing) for
|
|
23
28
|
the draft, submission, manual-start, and deadline boundaries.
|
|
29
|
+
|
|
30
|
+
For external experiments on servers exposing `req.clearEndTime`, omitted or null
|
|
31
|
+
`req.endTime` preserves a saved deadline. Cancel it with `req.clearEndTime=true`
|
|
32
|
+
and no non-null `req.endTime`; this remains subject to approval for submitted
|
|
33
|
+
experiments. Copy an existing `req.startTime` exactly when retaining it; the
|
|
34
|
+
backend preserves that saved instant through review and application, including
|
|
35
|
+
seconds and milliseconds from manual activation. Other than adding this optional field, the native request is
|
|
36
|
+
unchanged. See [external deadline compatibility](save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
|
|
37
|
+
before calling an older server. Never silently translate an unsupported clear
|
|
38
|
+
request into omission or retry a failed write through another path.
|
|
@@ -27,7 +27,14 @@ Choose an existing `bucket_id` whose property is available in the events used by
|
|
|
27
27
|
bound metric. The server requires at least two named groups, exactly one control group,
|
|
28
28
|
and at least one existing primary metric.
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
On approval-enabled servers, first submission and actual delivery changes enter
|
|
31
|
+
approval. Follow [server compatibility](experiment_approval.md#server-compatibility)
|
|
32
|
+
before reading `experiment approval get` after saving. On older servers, retain
|
|
33
|
+
this save-submit call and verify runtime detail without calling approval endpoints.
|
|
34
|
+
A successful submit is not evidence
|
|
35
|
+
that the experiment is running; do not submit it again with `approval submit`.
|
|
36
|
+
|
|
37
|
+
Once submitted configuration is effective, status is calculated from its time range: a future start time becomes
|
|
31
38
|
`pending`, a current range becomes `running`, and an elapsed end time becomes `ended`.
|
|
32
39
|
No `end_time` creates a long-running experiment. When the scheduled job is active, a
|
|
33
40
|
pending experiment enters `running` at its start time and a running experiment enters
|
|
@@ -41,8 +48,55 @@ range may change, and group descriptions may change. Keep its name, business gro
|
|
|
41
48
|
description, bucket, metric bindings, group count, group names, control markers,
|
|
42
49
|
allocations, and group values unchanged. Include every returned group unchanged,
|
|
43
50
|
including its `expGroupId`, `allocation`, and `expGroupValue`; the CLI rejects an
|
|
44
|
-
update that omits a group ID.
|
|
45
|
-
|
|
51
|
+
update that omits a group ID.
|
|
52
|
+
|
|
53
|
+
## Deadline updates and server compatibility
|
|
54
|
+
|
|
55
|
+
Before changing a deadline, inspect `experiment.experiment.save-submit` and check
|
|
56
|
+
`input_schema.properties.req.properties.clearEndTime`:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
ae-cli capability inspect experiment.experiment.save-submit
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
On servers exposing `req.clearEndTime`:
|
|
63
|
+
|
|
64
|
+
- Creating an experiment without `--end-time` creates a long-running experiment.
|
|
65
|
+
- Updating an experiment without `--end-time` preserves its saved deadline.
|
|
66
|
+
Native `req.endTime=null` also preserves it; neither expresses cancellation.
|
|
67
|
+
- Use `--clear-end-time true` with `--exp-id` to cancel a saved deadline. Do not
|
|
68
|
+
combine it with `--end-time`. `--clear-end-time false` sends no clear field.
|
|
69
|
+
- On approval-enabled servers, cancelling a submitted experiment's deadline
|
|
70
|
+
queues approval. The effective deadline remains until approval; rejection or
|
|
71
|
+
withdrawal keeps it, and the historical proposal remains unchanged.
|
|
72
|
+
|
|
73
|
+
For an existing experiment, reuse its verified name, bucket, start, complete
|
|
74
|
+
groups and metric bindings when constructing the cancellation request:
|
|
75
|
+
|
|
76
|
+
Copy the saved start timestamp verbatim, including seconds and milliseconds;
|
|
77
|
+
do not round it in the client. The matching backend preserves an unchanged saved
|
|
78
|
+
start through submission and approval. Only new or actually changed start times
|
|
79
|
+
round up to a half-hour boundary. An unchanged update must not create an approval
|
|
80
|
+
merely because a manually recorded start is not aligned to that boundary.
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
ae-cli experiment external-experiment save-submit \
|
|
84
|
+
--project-id <verified-project-id> --exp-id <verified-exp-id> \
|
|
85
|
+
--exp-name '<current-name>' --bucket-id '<current-bucket-id>' \
|
|
86
|
+
--start-time '<current-start-time-with-offset>' \
|
|
87
|
+
--groups '<complete-current-groups-json>' --metrics '<current-metric-bindings-json>' \
|
|
88
|
+
--clear-end-time true --dry-run
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
After submitting the selected change, read both approval and experiment detail;
|
|
92
|
+
do not report the deadline as cancelled while the proposal is pending.
|
|
93
|
+
|
|
94
|
+
Older servers without this field may still clear a deadline when `endTime` is
|
|
95
|
+
omitted or null. Pass the saved `--end-time` to retain it across server versions.
|
|
96
|
+
Explicit cancellation with `--clear-end-time` requires an upgraded backend;
|
|
97
|
+
schema rejection never authorizes an automatic retry without the clear flag or
|
|
98
|
+
through direct REST. If metadata omits the field while deployed backend behavior
|
|
99
|
+
is uncertain, resolve the contract before writing.
|
|
46
100
|
|
|
47
101
|
Transition status: L2
|
|
48
102
|
Owning module: Hermes Atlas experiment capability gateway
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-generate-tracking-plan
|
|
3
|
+
version: 1.0.1
|
|
3
4
|
description: "Interactive generation of an AE tracking plan and upload. Trigger words: 埋点方案、埋点模板、tracking plan、AE 方案生成、create tracking plan、トラッキングプラン、트래킹 플랜. Follows anchor → draft → refine → token → upload five-phase workflow. Deliverable is a real tracking plan created in the AE platform."
|
|
4
5
|
---
|
|
5
6
|
|
|
@@ -1305,6 +1306,10 @@ Decide based on conflict detection results:
|
|
|
1305
1306
|
| Advisory only (Type B) | Upload after user confirmation |
|
|
1306
1307
|
| Severe conflict (Type A) | User fixes or switches to replace |
|
|
1307
1308
|
|
|
1309
|
+
Before previewing an upload or an entire-plan deletion, check the installed subcommand with `AE_LANG=<user_lang> ae-cli tracking plan upload --help` or `AE_LANG=<user_lang> ae-cli tracking plan delete --help`. Its help must explicitly say **Local --dry-run preview**. Older clients accept the global flag but can execute the write. If the marker is missing, describe the intended changes from the local draft and stop before invoking the write command.
|
|
1310
|
+
|
|
1311
|
+
For replacement or entire-plan deletion, run the selected command with `--dry-run`, show the target host, project and operations, and wait for explicit confirmation before executing the same command without `--dry-run`. Replacement deletes the old plan before uploading the XLSX. For a preview-only request, stop after showing the preview, including in append mode.
|
|
1312
|
+
|
|
1308
1313
|
Upload command:
|
|
1309
1314
|
```bash
|
|
1310
1315
|
AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
|
package/skills/ae-kb/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-kb
|
|
3
|
-
version: 1.0.
|
|
3
|
+
version: 1.0.12
|
|
4
4
|
description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ Read [Publication and read contexts](references/publication.md) for company appr
|
|
|
29
29
|
- Read operations can run directly after required inputs are known. Write operations require explicit user intent. Only `high-risk-write` commands require the CLI confirmation prompt; use `--yes` after explicit authorization.
|
|
30
30
|
- Prefer `--dry-run` before destructive or broad writes when the user has not already validated the target.
|
|
31
31
|
- Do not invent knowledge base names, scopes, source IDs, source display names, or JSON payloads. Ask the user or query known context when values are missing.
|
|
32
|
-
- When building a `--sources` ref (or `+read --source`), copy the exact `scope` and `name` from `+list` output
|
|
32
|
+
- When building a `--sources` ref (or `+read --source`), copy the exact `scope` and display `name` from trusted active-source context or `+list` output. Run `ae-cli kb +list` when neither supplies the exact scope and name; never use a slug as the display name.
|
|
33
33
|
- JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
|
|
34
34
|
- Successful commands return JSON by default. Use `--format table` only when a table is easier for a human to scan. Envelope may include optional `_notice.host_compat`.
|
|
35
35
|
- `--host <url>` overrides the active AE host. It is available on every command and may be placed after the subcommand, e.g. `ae-cli kb +<command> --host <url>`.
|
|
@@ -169,7 +169,7 @@ ae-cli kb +compile --name handbook --mode incremental
|
|
|
169
169
|
- `--expected-revision` is mandatory for writes. A 409 conflict is returned with its server error code; the command never refreshes and retries the write automatically.
|
|
170
170
|
- `+source-rm` keeps the parent source. Nonempty directory removal requires `--recursive`; deletion follows the CLI confirmation gate. Use `--yes` only when automated deletion of the exact target is already authorized. `+rm-source --id` deletes the entire parent.
|
|
171
171
|
- A mutation marks the parent changed but does not start compilation or regenerate Schema. Run incremental compilation explicitly; wait for successful publication before the next test stage.
|
|
172
|
-
- `+status` is the existing aggregate status query;
|
|
172
|
+
- `+status` without `--run-id` is the existing aggregate status query; `--run-id` selects an exact compile run lifecycle result. It is not a per-run event or ZIP Diff reader. Do not interpret its compilation submission response as successful publication.
|
|
173
173
|
- No Gateway equivalent is registered in the current KB implementation. These commands reuse the typed External source APIs.
|
|
174
174
|
|
|
175
175
|
Transition status: transitional
|
|
@@ -348,7 +348,9 @@ Use the deterministic retrieval primitives when an agent needs to explore knowle
|
|
|
348
348
|
|
|
349
349
|
**Before running a real query, read [`references/query-workflow.md`](references/query-workflow.md)** — it selects the next useful retrieval step without crawling. It covers candidate indexing, copied-path grep, direct bounded reads of linked short pages, same-page read windows, linked-page re-grep when needed, optional outline-derived ranges, and coverage assessment. This section below is the per-command reference the workflow draws on.
|
|
350
350
|
|
|
351
|
-
Start with `+list` or `+
|
|
351
|
+
Start with the trusted active sources described by `ae-kb-discovery`. Explicit references go straight to scoped retrieval without `+list`; relevant preferred candidates go first, with `+list` only if unrelated or insufficient. When no trusted active sources exist, use `+list` to discover accessible knowledge bases. Use `+index` when you also need navigation maps:
|
|
352
|
+
|
|
353
|
+
When discovery is needed:
|
|
352
354
|
|
|
353
355
|
```bash
|
|
354
356
|
ae-cli kb +list
|
|
@@ -579,9 +581,11 @@ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incrementa
|
|
|
579
581
|
### `+status`
|
|
580
582
|
|
|
581
583
|
```bash
|
|
582
|
-
ae-cli kb +status --name "<name>" [--scope personal|company]
|
|
584
|
+
ae-cli kb +status --name "<name>" [--scope personal|company] [--run-id <compile-run-id>]
|
|
583
585
|
```
|
|
584
586
|
|
|
587
|
+
With `--run-id`, output contains `knowledgeBase` and `compileRun` (`id`, `status`, `errorMessage`, `startedAt`, `finishedAt`) instead of the aggregate lifecycle fields. Copy the ID from `+compile`; wait only for `queued`/`running`, and stop on `succeeded`/`failed`/`cancelled`. A failed run remains failed even when an older published version is available. Exact-run diagnostics require the same compile-run permission as the KB run-detail view, and error text is redacted. The run must belong to the resolved, authorized KB; unknown and cross-KB IDs return `KB_COMPILE_RUN_NOT_FOUND`. Existing calls without `--run-id` are unchanged. Older servers may reject the optional field; do not fall back to aggregate polling for exact-run completion. Run success is separate from publication completeness and content acceptance.
|
|
588
|
+
|
|
585
589
|
### `+list-sources`
|
|
586
590
|
|
|
587
591
|
```bash
|
|
@@ -70,8 +70,9 @@ Rank candidates by semantic coverage, not by primary/backup position alone:
|
|
|
70
70
|
|
|
71
71
|
If two candidates encode materially different meanings of the same phrase,
|
|
72
72
|
such as one-way events versus combined inbound and outbound events, do not
|
|
73
|
-
blend them.
|
|
74
|
-
|
|
73
|
+
blend them. When the request resolves the meaning, select the matching definition
|
|
74
|
+
and disclose it. When both meanings remain plausible and change the answer,
|
|
75
|
+
ask for the distinguishing choice or present the supported alternatives separately.
|
|
75
76
|
|
|
76
77
|
## Build the analysis execution contract
|
|
77
78
|
|
|
@@ -89,6 +90,10 @@ pages actually read:
|
|
|
89
90
|
| Decision boundaries | Case-only, frontend-only, adoption-only, not revenue, non-generalizable, expired, conflicting, or human-decision-required constraints |
|
|
90
91
|
| KB evidence | Exact KB name, page path, and section actually read |
|
|
91
92
|
|
|
93
|
+
Bind the matching recall-card branch to the **requested output**, including what one source row measures and what one answer item represents. Resolve a display alias against the actual event, aggregation, distinct key and unit. If meanings still differ materially, clarify the choice. A direct route needs matching object, grain, window and measure. On a transform route, verify the mapping, grouping or time alignment, overlap, excluded rows and additivity required by that operation. Join labels alone do not aggregate measures. A distinct count across overlapping groups needs a shared identity, proven disjointness or an equivalent supported aggregation. Apply the same checks from the live definition on older cards that omit the branch contract.
|
|
94
|
+
|
|
95
|
+
A clarify or unsupported branch does not authorize executing its evidence links as an answer. Retain the concrete gap and apply the ordinary discovery rules below to any unresolved requirement. Where a proxy is useful, label its actual computation and scope separately from the requested exact result.
|
|
96
|
+
|
|
92
97
|
Classify each candidate's coverage before querying. These states classify the
|
|
93
98
|
asset, not completion of the original task:
|
|
94
99
|
|
|
@@ -301,6 +306,10 @@ the audit record even when the fallback succeeds.
|
|
|
301
306
|
|
|
302
307
|
## Check task completion
|
|
303
308
|
|
|
309
|
+
Run the selected branch's checks on the actual returned data before drawing its conclusion. Complete any required regrouping, deduplication or recomputation on the covered population **before** comparisons, ranking or limits. Read back effective dates, coverage and state as-of time rather than inferring them from bucket labels. Check raw values, units, denominators and rounding before interpreting zero or absence. After changing exclusions, recompute both windows and verify the direction from the resulting values. If a necessary check fails or cannot be performed, report only the supported result and the missing evidence.
|
|
310
|
+
|
|
311
|
+
Match the strength of the conclusion to the evidence. An observed change can support a descriptive finding. A causal explanation requires independent support; a forecast requires an applicable rule or model for the proposed event, population and horizon. Preserve an unknown when the returned data only provides a signal.
|
|
312
|
+
|
|
304
313
|
Before answering, check each requirement of the original question against the
|
|
305
314
|
actual definition and returned data. Finish when it is answered, or when bounded
|
|
306
315
|
discovery establishes a concrete unavailable prerequisite, authorization
|
|
@@ -11,11 +11,12 @@ Everything below is server-side LLM-free.
|
|
|
11
11
|
|
|
12
12
|
## The loop
|
|
13
13
|
|
|
14
|
-
This picks up **after** `ae-kb-discovery` has
|
|
15
|
-
and
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
candidate rather than searching everything blindly.
|
|
14
|
+
This picks up **after** `ae-kb-discovery` has chosen a candidate from trusted active sources or `+list`.
|
|
15
|
+
An explicit reference skips `+list` and stays within the referenced list, even when page evidence is insufficient.
|
|
16
|
+
Preferred candidates are searched only when relevant; clearly unrelated candidates or evidence gaps can lead to `+list`.
|
|
17
|
+
After `+list`, retrieve from at most three distinct newly discovered knowledge bases; count every new source in a multi-source `+ask` separately. Explicit references and preferred candidates do not consume that budget.
|
|
18
|
+
Start here with a chosen candidate; scope every `+index` / `+grep` / `+read` call to it with `--sources` / `--source`. If the candidate turns out not to cover the question, go back to `ae-kb-discovery` for the next allowed candidate rather than searching everything blindly.
|
|
19
|
+
When using `+ask` with explicit references or preferred candidates, always pass `--sources` containing only the relevant authorized sources from that active list; never omit it or include unrelated sources. For an explicit reference, insufficient evidence does not authorize expansion to another knowledge base.
|
|
19
20
|
|
|
20
21
|
**Known-page fast path:** within the same host, identity, KB and published revision,
|
|
21
22
|
reuse navigation and read evidence already obtained in this task. Copy exact
|
|
@@ -133,7 +134,9 @@ A revision or access-context change requires revalidation, not silent reuse.
|
|
|
133
134
|
until every answered subquestion is backed by sections actually read — not
|
|
134
135
|
until a page "looks like the answer". For business data analysis, read the
|
|
135
136
|
relevant definitions and boundaries, then hand off verified coverage and
|
|
136
|
-
remaining gaps in step 5
|
|
137
|
+
remaining gaps in step 5. Carry the matched branch outcome, source and answer
|
|
138
|
+
grains, required operation, checks and reason to stop together with its evidence.
|
|
139
|
+
When a legacy card omits these, read the linked definition before claiming coverage; live values do not need KB text as their source.
|
|
137
140
|
Do not pick a single page by surface similarity between the question wording
|
|
138
141
|
and the page/module name or hit line.
|
|
139
142
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Versions are immutable successful publications. No historical version is created until the first successful compile. Failed or cancelled compiles do not consume a version number. Existing `+compile`, `+status` and `+list-sources` responses pass through server version labels and draft state; `+index`, `+grep`, `+read` and `+ask` always address current content.
|
|
4
4
|
|
|
5
|
-
When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart.
|
|
5
|
+
When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart. Exact-run `+status --run-id` returns the same `publicationReview` marker; stop even when `compileRun.status` remains `running`.
|
|
6
6
|
|
|
7
7
|
Discover exact names/scopes via `kb +list`, then inspect history:
|
|
8
8
|
|