@thinkingai/ae-cli 6.1.32 → 6.1.34

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 (119) hide show
  1. package/README.md +8 -5
  2. package/README.zh.md +10 -9
  3. package/bin/runtime-capabilities.json +1 -1
  4. package/cli-installation-guide.md +14 -4
  5. package/dist/{ai-monitor-MKMHSSNI.js → ai-monitor-TVRFVZBH.js} +11 -9
  6. package/dist/ai-monitor.js +18 -16
  7. package/dist/{auth-CZHHPZOQ.js → auth-JAXLMPBB.js} +33 -316
  8. package/dist/{automation-FLCPFMN4.js → automation-OQ647CSW.js} +7 -7
  9. package/dist/{capability-64KVJFIA.js → capability-2Z4ZXTPD.js} +19 -16
  10. package/dist/chunk-2H3SFJE3.js +344 -0
  11. package/dist/{chunk-TMQGS4TO.js → chunk-3PZNM5KN.js} +3 -3
  12. package/dist/chunk-3ZQY7SLZ.js +147 -0
  13. package/dist/chunk-6E6HCTP2.js +60 -0
  14. package/dist/{local-data-upload-client-KCMG6J62.js → chunk-6IUTXRAD.js} +32 -4
  15. package/dist/{chunk-5M5LBRR3.js → chunk-CYZV5AXW.js} +18 -9
  16. package/dist/{chunk-3ULDJJTZ.js → chunk-DE5XHQQ6.js} +2 -2
  17. package/dist/{chunk-FCAA7I2D.js → chunk-E5CJI7L3.js} +26 -10
  18. package/dist/{chunk-QVRIDN42.js → chunk-EQMGH32F.js} +2 -2
  19. package/dist/{chunk-DWBYNGSR.js → chunk-FNACCKQR.js} +372 -194
  20. package/dist/{chunk-OAWPT7VP.js → chunk-GD5JSAGV.js} +2 -2
  21. package/dist/{chunk-CF6JTT2U.js → chunk-GYODT7C4.js} +1 -1
  22. package/dist/chunk-HBI7IQH3.js +1207 -0
  23. package/dist/{chunk-4PSTYEG5.js → chunk-IGU3R2JD.js} +9 -5
  24. package/dist/{chunk-IDDWEZ7F.js → chunk-IWMDPHMI.js} +3 -3
  25. package/dist/{chunk-P7QDCWJ6.js → chunk-L7MT53VM.js} +8 -2
  26. package/dist/{chunk-F2VFZUGG.js → chunk-LXRALNNA.js} +2 -2
  27. package/dist/{chunk-6M7ZEDT2.js → chunk-M2OCZRVX.js} +14 -8
  28. package/dist/{chunk-Z3Q2AEIN.js → chunk-MTK4ZE7W.js} +17 -145
  29. package/dist/{chunk-T7WF4HYW.js → chunk-NK5PS5X7.js} +3 -3
  30. package/dist/{chunk-JEUXDY3B.js → chunk-NPH5J65M.js} +1 -1
  31. package/dist/chunk-PUSFEC6B.js +29 -0
  32. package/dist/{chunk-BNBCMCYN.js → chunk-Q764EZND.js} +78 -72
  33. package/dist/chunk-QOJXLXDJ.js +55 -0
  34. package/dist/{chunk-HVMCPKOZ.js → chunk-QPUPWGZ3.js} +1 -1
  35. package/dist/{chunk-72NJKS7O.js → chunk-RLPMXKDQ.js} +8921 -10119
  36. package/dist/{chunk-NLEXY2TM.js → chunk-S74XV3A6.js} +7 -5
  37. package/dist/{chunk-KTJXD27G.js → chunk-SHB7A2JE.js} +3 -3
  38. package/dist/{chunk-HTZ2MLYA.js → chunk-UWQXGF44.js} +25 -11
  39. package/dist/{data-integration-QE37EQ3A.js → chunk-V6UKLIM6.js} +160 -2258
  40. package/dist/{chunk-4XKTRCRK.js → chunk-VPLRZSMY.js} +22 -13
  41. package/dist/{chunk-2F64AZYH.js → chunk-Z6WSCIHM.js} +2 -2
  42. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-5VNT6HCV.js} +4 -2
  43. package/dist/{compat-check-ZJNCMNQV.js → compat-check-E7AQ7UCG.js} +6 -4
  44. package/dist/{config-FSH2NMNZ.js → config-PGSUWIK5.js} +16 -11
  45. package/dist/{context-YAQG6YQC.js → context-Y2A6QIS3.js} +9 -6
  46. package/dist/conversion-4FR3RA45.js +16 -0
  47. package/dist/data-integration-EIF5QHYF.js +2138 -0
  48. package/dist/{evaluation-2JSF4V47.js → evaluation-OZM54MES.js} +6 -5
  49. package/dist/index.js +79 -52
  50. package/dist/local-data-upload-client-2U3LFD7Z.js +16 -0
  51. package/dist/{memory-VEZZVAAP.js → memory-6QMZS4HF.js} +7 -7
  52. package/dist/{metadata-3IWHX3V4.js → metadata-7MZ3CJ2N.js} +11 -9
  53. package/dist/{model-T7H7Q6BG.js → model-LEYRQKOS.js} +8 -8
  54. package/dist/{personal-semantic-preference-YITU23SA.js → personal-semantic-preference-SWOUNDWJ.js} +46 -14
  55. package/dist/{project-semantic-MHEXJF3C.js → project-semantic-M2DDPAMD.js} +10 -8
  56. package/dist/{sync-AQHVCSPI.js → sync-PWC63JCO.js} +17 -16
  57. package/dist/{te-agent-RXI7WOH4.js → te-agent-S7UH657Z.js} +304 -16
  58. package/dist/{te-analysis-CZY74HVF.js → te-analysis-BK6PE333.js} +295 -223
  59. package/dist/{te-community-DKCYUBCM.js → te-community-OLNTKGCW.js} +17 -13
  60. package/dist/{te-dataops-QEH6VE56.js → te-dataops-XUWRIF5R.js} +18 -14
  61. package/dist/{te-engage-WK7WKDKF.js → te-engage-I3I4FJOM.js} +10 -8
  62. package/dist/{te-experiment-LH3RPIOE.js → te-experiment-XSDUL4KH.js} +216 -28
  63. package/dist/{te-kb-UPORIOVN.js → te-kb-QFH3YLFQ.js} +74 -21
  64. package/dist/{te-system-AL4B4XZL.js → te-system-DB5Z3LLF.js} +7 -7
  65. package/dist/{te-team-LLVTO2G4.js → te-team-UADF2HBO.js} +10 -8
  66. package/dist/{things-XLMLBYQR.js → things-G2QFXDK7.js} +10 -8
  67. package/dist/{update-7J5UQHSK.js → update-6I366ICW.js} +10 -9
  68. package/dist/web-runtime-3XFREWRF.js +2367 -0
  69. package/dist/{workspace-FF2HXJGR.js → workspace-RZESYB6T.js} +7 -7
  70. package/package.json +9 -5
  71. package/skills/ae-agent/SKILL.md +19 -5
  72. package/skills/ae-agent/references/a2a.md +103 -0
  73. package/skills/ae-agent/references/command_index.md +11 -0
  74. package/skills/ae-analysis/SKILL.md +35 -23
  75. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  76. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  77. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  78. package/skills/ae-analysis/references/bad_case_review.md +4 -4
  79. package/skills/ae-analysis/references/command_index.md +7 -7
  80. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  81. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  82. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  83. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  84. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  85. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  86. package/skills/ae-analysis/references/project_owner_update.md +5 -1
  87. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  88. package/skills/ae-analysis/references/scenario_list.md +5 -6
  89. package/skills/ae-capability/SKILL.md +8 -4
  90. package/skills/ae-data-integration/references/ue-mapping.md +2 -0
  91. package/skills/ae-experiment/SKILL.md +45 -16
  92. package/skills/ae-experiment/references/experiment_approval.md +87 -29
  93. package/skills/ae-experiment/references/manage_experiment.md +7 -3
  94. package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
  95. package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
  96. package/skills/ae-experiment/references/query_experiment_list.md +6 -0
  97. package/skills/ae-experiment/references/save_experiment.md +39 -13
  98. package/skills/ae-experiment/references/save_metric.md +29 -2
  99. package/skills/ae-experiment/references/save_submit_experiment.md +11 -7
  100. package/skills/ae-experiment/references/save_submit_external_experiment.md +16 -14
  101. package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
  102. package/skills/ae-kb/SKILL.md +4 -2
  103. package/skills/ae-kb/references/publication.md +45 -0
  104. package/skills/ae-onboarding/SKILL.md +64 -0
  105. package/skills/ae-onboarding/references/business-sdk.md +8 -0
  106. package/skills/ae-onboarding/references/demo-operations.md +79 -0
  107. package/skills/ae-onboarding/references/import.md +19 -0
  108. package/skills/ae-onboarding/references/onboarding_experiment_launch.md +12 -0
  109. package/skills/ae-onboarding/references/onboarding_experiment_plan.md +14 -0
  110. package/skills/ae-onboarding/references/onboarding_growth.md +36 -0
  111. package/skills/ae-onboarding/references/onboarding_run.md +11 -0
  112. package/skills/ae-onboarding/references/onboarding_status.md +5 -0
  113. package/skills/ae-onboarding/scripts/experiment-preset.json +252 -0
  114. package/skills/ae-onboarding/scripts/experiment-requests.mjs +120 -0
  115. package/skills/ae-onboarding/scripts/generate.mjs +170 -0
  116. package/skills/ae-onboarding/scripts/resolve-experiment-preset.mjs +26 -0
  117. package/skills/ae-onboarding/scripts/web-journey.mjs +39 -0
  118. package/dist/chunk-6ZIQV5GW.js +0 -26
  119. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -167,7 +167,7 @@ This is the exhaustive command and flag inventory for the analysis skill. Read t
167
167
  | `ae-cli analysis-governance asset list` | governance.asset.list | read | `--project-id` (number; required) — Numeric project ID.<br>`--node-id` (string; optional) — Poseidon asset node ID.<br>`--query` (string; optional) — Optional keyword filter.<br>`--searchs` (json; optional) — Quick filter JSON array.<br>`--rule` (json; optional) — Governance Filter JSON object.<br>`--operation-type` (string; optional) — Batch operation type.<br>`--limit` (number; optional, min=1, max=200) — Directory page size. Default: 50, max: 200. Values outside 1..200 are rejected.<br>`--offset` (number; optional, min=0) — Zero-based directory page offset. Default: 0. Negative values are rejected.<br>`--payload` (json; optional) — Optional snake_case object for complex capability payload fields. | [asset_list.md](asset_list.md) |
168
168
  | `ae-cli analysis-governance asset-authentication export` | governance.asset_authentication.export | read | `--project-id` (number; required) — Numeric project ID.<br>`--asset-types` (json; optional) — Optional JSON array of asset types. Omit for every supported type.<br>`--authentication-status` (number; optional, min=0, max=1) — Authentication status: 1 for authenticated or 0 for unauthenticated.<br>`--queries` (json; optional) — Optional JSON array of 1 to 20 keywords matched against identity and display fields.<br>`--heat-count-gt` (number; optional, min=0) — Strict recent-90-day heat threshold.<br>`--user-count-gt` (number; optional, min=0) — Strict recent-90-day user threshold.<br>`--impact-degree-gt` (number; optional, min=0) — Strict governance impact threshold.<br>`--match` (string; optional, default="all") — Combine multiple numeric thresholds with any or all. Default: all.<br>`--fields` (json; optional) — Optional JSON array of output fields.<br>`--output` (string; required) — Local .jsonl output path. Integrity metadata is written to <output>.meta.json. | [asset_authentication_export.md](asset_authentication_export.md) |
169
169
  | `ae-cli analysis-governance asset-authentication list` | governance.asset_authentication.list | read | `--project-id` (number; required) — Numeric project ID.<br>`--asset-types` (json; optional) — Optional JSON array of asset types. Omit for every supported type.<br>`--authentication-status` (number; optional, min=0, max=1) — Authentication status: 1 for authenticated or 0 for unauthenticated.<br>`--queries` (json; optional) — Optional JSON array of 1 to 20 keywords matched against identity and display fields.<br>`--heat-count-gt` (number; optional, min=0) — Strict recent-90-day heat threshold.<br>`--user-count-gt` (number; optional, min=0) — Strict recent-90-day user threshold.<br>`--impact-degree-gt` (number; optional, min=0) — Strict governance impact threshold.<br>`--match` (string; optional, default="all") — Combine multiple numeric thresholds with any or all. Default: all.<br>`--fields` (json; optional) — Optional JSON array of output fields.<br>`--limit` (number; optional, min=1, max=200) — Directory page size. Default: 50, max: 200. Values outside 1..200 are rejected.<br>`--offset` (number; optional, min=0) — Zero-based directory page offset. Default: 0. Negative values are rejected. | [asset_authentication_list.md](asset_authentication_list.md) |
170
- | `ae-cli analysis-governance asset-authentication update` | governance.asset_authentication.update | write | `--project-id` (number; required) — Numeric project ID.<br>`--authentication-status` (number; required, min=0, max=1) — Target authentication status: 1 authenticates and 0 revokes.<br>`--asset-refs` (json; optional) — Inline JSON array of {resource_type,resource_key} asset references.<br>`--asset-file` (string; optional) — JSONL file whose rows contain resource_type and resource_key.<br>`--asset-type` (string; optional) — Convenience asset type used together with --asset-ids.<br>`--asset-ids` (json; optional) — Convenience JSON array of business keys used together with --asset-type.<br>`--expected-snapshot-hash` (string; optional) — Optional snapshot_hash from the export sidecar. A mismatch rejects the whole update.<br>`--request-id` (string; optional) — Optional caller-supplied cli_<32 lowercase hex> lifecycle ID. ae-cli generates and prints one before dispatch when omitted. | [asset_authentication_update.md](asset_authentication_update.md) |
170
+ | `ae-cli analysis-governance asset-authentication update` | governance.asset_authentication.update | write | `--project-id` (number; required) — Numeric project ID.<br>`--authentication-status` (number; required, min=0, max=1) — Target authentication status: 1 authenticates and 0 revokes.<br>`--asset-refs` (json; optional) — Inline JSON array of {resource_type,resource_key} asset references.<br>`--asset-file` (string; optional) — JSONL file whose rows contain resource_type and resource_key.<br>`--asset-type` (string; optional) — Convenience asset type used together with --asset-ids.<br>`--asset-ids` (json; optional) — Convenience JSON array of business keys used together with --asset-type.<br>`--expected-snapshot-hash` (string; optional) — Deprecated compatibility no-op. Project snapshots are not checked; only specified assets are updated.<br>`--request-id` (string; optional) — Optional caller-supplied cli_<32 lowercase hex> lifecycle ID. ae-cli generates and prints one before dispatch when omitted. | [asset_authentication_update.md](asset_authentication_update.md) |
171
171
  | `ae-cli analysis-governance asset-dependency list` | governance.asset_dependency.list | read | `--project-id` (number; required) — Numeric project ID.<br>`--node-id` (string; optional) — Poseidon asset node ID.<br>`--query` (string; optional) — Optional keyword filter.<br>`--searchs` (json; optional) — Quick filter JSON array.<br>`--rule` (json; optional) — Governance Filter JSON object.<br>`--limit` (number; optional, min=1, max=200) — Directory page size. Default: 50, max: 200. Values outside 1..200 are rejected.<br>`--offset` (number; optional, min=0) — Zero-based directory page offset. Default: 0. Negative values are rejected.<br>`--payload` (json; optional) — Optional snake_case object for complex capability payload fields. | [asset_dependency_list.md](asset_dependency_list.md) |
172
172
  | `ae-cli analysis-governance asset-impact list` | governance.asset_impact.list | read | `--project-id` (number; required) — Numeric project ID.<br>`--node-id` (string; optional) — Poseidon asset node ID.<br>`--limit` (number; optional, min=1, max=200) — Directory page size. Default: 50, max: 200. Values outside 1..200 are rejected.<br>`--offset` (number; optional, min=0) — Zero-based directory page offset. Default: 0. Negative values are rejected.<br>`--payload` (json; optional) — Optional snake_case object for complex capability payload fields. | [asset_impact_list.md](asset_impact_list.md) |
173
173
  | `ae-cli analysis-governance asset-lineage get` | governance.asset_lineage.get | read | `--project-id` (number; required) — Numeric project ID.<br>`--node-id` (string; optional) — Poseidon asset node ID.<br>`--payload` (json; optional) — Optional snake_case object for complex capability payload fields. | [asset_lineage_get.md](asset_lineage_get.md) |
@@ -245,14 +245,14 @@ This is the exhaustive command and flag inventory for the analysis skill. Read t
245
245
  | `ae-cli analysis-meta virtual-property create` | metadata.virtual_property.create | write | `--project-id` (number; required) — Numeric project ID.<br>`--sql-expression` (string; required) — SQL expression used to calculate the virtual property.<br>`--v-prop` (json; optional) — Virtual property JSON object with property.column_name/property.table_type/property.select_type fields.<br>`--property-name` (string; optional) — Virtual property name. Must start with '#vp@'.<br>`--property-desc` (string; optional) — Virtual property display name.<br>`--table-type` (string; optional) — Property table type: event or user.<br>`--select-type` (string; optional) — Property value type: string, number, bool, or datetime.<br>`--property-remark` (string; optional) — Optional virtual property remark.<br>`--properties` (json; optional) — Dependent property JSON array.<br>`--sql-event-relation-type` (string; optional) — relation_default, relation_always, or relation_by_setting.<br>`--related-events` (json; optional) — Related events JSON array when using relation_by_setting.<br>`--tag-date-policies` (json; optional) — Event SQL tag policies: [{tag_name,cluster_date_policy,specified_cluster_date?}]. LATEST or AUTO omit the date; SPECIFIED requires yyyy-MM-dd.<br>`--replace-remark` (string; optional) — Replacement remark.<br>`--replace-suggestion` (string; optional) — Replacement suggestion. | [virtual_property_create.md](virtual_property_create.md) |
246
246
  | `ae-cli analysis-meta virtual-property sql-rule-delete` | metadata.virtual_property.sql_rule_delete | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--v-prop-id` (number; required) — Virtual property ID.<br>`--operation` (string; optional) — Delete operation. Use revoke to revoke instead of delete. | [virtual_property_sql_rule_delete.md](virtual_property_sql_rule_delete.md) |
247
247
  | `ae-cli analysis-meta virtual-property sql-rule-update` | metadata.virtual_property.sql_rule_update | write | `--project-id` (number; required) — Numeric project ID.<br>`--sql-expression` (string; required) — SQL expression used to calculate the virtual property.<br>`--v-prop` (json; required) — Virtual property JSON object with prop_id beside property.<br>`--properties` (json; optional) — Dependent property JSON array.<br>`--sql-event-relation-type` (string; optional) — relation_default, relation_always, or relation_by_setting.<br>`--related-events` (json; optional) — Related events JSON array when using relation_by_setting.<br>`--tag-date-policies` (json; optional) — Event SQL tag policies: [{tag_name,cluster_date_policy,specified_cluster_date?}]. LATEST or AUTO omit the date; SPECIFIED requires yyyy-MM-dd.<br>`--replace-remark` (string; optional) — Replacement remark.<br>`--replace-suggestion` (string; optional) — Replacement suggestion. | [virtual_property_sql_rule_update.md](virtual_property_sql_rule_update.md) |
248
- | `ae-cli personal-semantic-preference add` | business_semantics.personal_context.add | write | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--context-type` (string; required) — preference \| asset_context \| experience \| background.<br>`--title` (string; required, maxLength=255) — Short preference title.<br>`--summary` (string; required, maxLength=1000) — Compact preference summary.<br>`--content` (string; required, maxLength=20000) — Full personal semantic preference content.<br>`--keywords` (json; optional) — Optional JSON array of preference keywords.<br>`--resource-refs` (json; optional) — Ordered JSON asset references; required only for asset_context.<br>`--fresh-until-at` (string; optional) — Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_add.md](personal_semantic_preference_add.md) |
249
- | `ae-cli personal-semantic-preference delete` | business_semantics.personal_context.delete | high-risk-write | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--expected-revision` (number; required, min=1) — Revision returned by the latest read.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_delete.md](personal_semantic_preference_delete.md) |
250
- | `ae-cli personal-semantic-preference get` | business_semantics.personal_context.get | read | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--title` (string; required, minLength=1, maxLength=255) — Preference title copied from list output for telemetry only.<br>`--mark-used` (boolean; optional) — Count this preference as adopted and update its usage heat. | [personal_semantic_preference_get.md](personal_semantic_preference_get.md) |
251
- | `ae-cli personal-semantic-preference list` | business_semantics.personal_context.list | read | `--project-id` (number; required, min=1) — Numeric project ID. | [personal_semantic_preference_list.md](personal_semantic_preference_list.md) |
248
+ | `ae-cli personal-semantic-preference add` | business_semantics.personal_context.add | write | `--project-id` (number; required) — Positive project ID, or -1 for current-user global personal semantics.<br>`--context-type` (string; required) — preference \| asset_context \| experience \| background.<br>`--title` (string; required, maxLength=255) — Short preference title.<br>`--summary` (string; required, maxLength=1000) — Compact preference summary.<br>`--content` (string; required, maxLength=20000) — Full personal semantic preference content.<br>`--keywords` (json; optional) — Optional JSON array of preference keywords.<br>`--resource-refs` (json; optional) — Ordered JSON asset references; required only for asset_context.<br>`--fresh-until-at` (string; optional) — Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_add.md](personal_semantic_preference_add.md) |
249
+ | `ae-cli personal-semantic-preference delete` | business_semantics.personal_context.delete | high-risk-write | `--project-id` (number; required) — Positive project ID, or -1 for current-user global personal semantics.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--expected-revision` (number; required, min=1) — Revision returned by the latest read.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_delete.md](personal_semantic_preference_delete.md) |
250
+ | `ae-cli personal-semantic-preference get` | business_semantics.personal_context.get | read | `--project-id` (number; required) — Positive project ID, or -1 for current-user global personal semantics.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--title` (string; required, minLength=1, maxLength=255) — Preference title copied from list output for telemetry only.<br>`--mark-used` (boolean; optional) — Count this preference as adopted and update its usage heat. | [personal_semantic_preference_get.md](personal_semantic_preference_get.md) |
251
+ | `ae-cli personal-semantic-preference list` | business_semantics.personal_context.list | read | `--project-id` (number; required) — Positive project ID, or -1 for current-user global personal semantics. | [personal_semantic_preference_list.md](personal_semantic_preference_list.md) |
252
252
  | `ae-cli personal-semantic-preference review` | business_semantics.personal_context.review | write | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--ids` (json; required) — JSON array of preference IDs from review-list.<br>`--action` (string; required) — adopt \| reject.<br>`--project-review-note` (string; optional, maxLength=1000) — Optional reviewer note.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_review.md](personal_semantic_preference_review.md) |
253
253
  | `ae-cli personal-semantic-preference review-list` | business_semantics.personal_context.review_list | read | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--project-review-status` (string; optional) — none \| pending \| adopted \| rejected.<br>`--owner` (string; optional) — Owner selector: user name, login name, or user ID. open_id is not accepted.<br>`--context-type` (string; optional) — preference \| asset_context \| experience \| background.<br>`--keyword` (string; optional) — Match title, summary, content, or keywords.<br>`--limit` (number; optional, min=1, max=200) — Page size. Defaults to 50.<br>`--offset` (number; optional, min=0) — Zero-based page offset. | [personal_semantic_preference_review_list.md](personal_semantic_preference_review_list.md) |
254
254
  | `ae-cli personal-semantic-preference submit` | business_semantics.personal_context.submit | write | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--project-review-note` (string; optional, maxLength=1000) — Optional note for the reviewer.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_submit.md](personal_semantic_preference_submit.md) |
255
- | `ae-cli personal-semantic-preference update` | business_semantics.personal_context.update | write | `--project-id` (number; required, min=1) — Numeric project ID.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--expected-revision` (number; required, min=1) — Revision returned by the latest read.<br>`--context-type` (string; required) — preference \| asset_context \| experience \| background.<br>`--title` (string; required, maxLength=255) — Short preference title.<br>`--summary` (string; required, maxLength=1000) — Compact preference summary.<br>`--content` (string; required, maxLength=20000) — Full replacement content.<br>`--keywords` (json; optional) — Optional JSON array of preference keywords.<br>`--resource-refs` (json; optional) — Ordered JSON asset references; required only for asset_context.<br>`--fresh-until-at` (string; optional) — Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_update.md](personal_semantic_preference_update.md) |
255
+ | `ae-cli personal-semantic-preference update` | business_semantics.personal_context.update | write | `--project-id` (number; required) — Positive project ID, or -1 for current-user global personal semantics.<br>`--id` (string; required) — Preference ID returned by list/add.<br>`--expected-revision` (number; required, min=1) — Revision returned by the latest read.<br>`--context-type` (string; required) — preference \| asset_context \| experience \| background.<br>`--title` (string; required, maxLength=255) — Short preference title.<br>`--summary` (string; required, maxLength=1000) — Compact preference summary.<br>`--content` (string; required, maxLength=20000) — Full replacement content.<br>`--keywords` (json; optional) — Optional JSON array of preference keywords.<br>`--resource-refs` (json; optional) — Ordered JSON asset references; required only for asset_context.<br>`--fresh-until-at` (string; optional) — Optional freshness expiration timestamp: yyyy-MM-dd HH:mm:ss.<br>`--request-id` (string; optional, maxLength=128) — Optional idempotency key; generated when omitted. | [personal_semantic_preference_update.md](personal_semantic_preference_update.md) |
256
256
  | `ae-cli project access-detail get` | project.access_detail.get | read | `--company-id` (number; required) — Company ID. | [project_access_detail_get.md](project_access_detail_get.md) |
257
257
  | `ae-cli project data-power delete` | project.data_power.delete | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--data-power-id` (number; required) — Data power ID to delete.<br>`--new-data-power-id` (number; optional) — Optional replacement data power ID for affected users. | [project_data_power_delete.md](project_data_power_delete.md) |
258
258
  | `ae-cli project data-power get` | project.data_power.get | read | `--project-id` (number; required) — Numeric project ID.<br>`--data-power-id` (number; required) — Data power ID. | [project_data_power_get.md](project_data_power_get.md) |
@@ -291,7 +291,7 @@ This is the exhaustive command and flag inventory for the analysis skill. Read t
291
291
  | `ae-cli project member-handover export` | project.member_handover.export | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--payload` (json; required) — Required snake_case capability payload. Read the dedicated command reference for its semantic shape; an empty object is not a generic valid payload.<br>`--request-id` (string; optional) — Optional caller-supplied cli_<32 lowercase hex> lifecycle ID. ae-cli generates and prints one before dispatch when omitted.<br>`--wait` (boolean; optional) — Wait for the remote run and artifact to reach a terminal state. Polling uses short inspect requests; interrupting does not cancel the remote run.<br>`--wait-timeout-seconds` (number; optional, min=1, max=21600) — Maximum time this CLI process waits. Default: 600 seconds; expiry never cancels the remote run.<br>`--output` (string; optional) — Wait, then stream the completed artifact to this local file. Implies --wait.<br>`--force` (boolean; optional) — Allow --output to atomically replace an existing file. Without this flag, existing paths are refused. | [project_member_handover_export.md](project_member_handover_export.md) |
292
292
  | `ae-cli project member-handover run` | project.member_handover.run | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--payload` (json; required) — Required snake_case capability payload. Read the dedicated command reference for its semantic shape; an empty object is not a generic valid payload. | [project_member_handover_run.md](project_member_handover_run.md) |
293
293
  | `ae-cli project member-receiver list` | project.member_receiver.list | read | `--project-id` (number; required) — Numeric project ID. | [project_member_receiver_list.md](project_member_receiver_list.md) |
294
- | `ae-cli project owner update` | project.owner.update | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--company-id` (number; required) — Company ID.<br>`--owner-user-id` (number; optional) — New owner user ID. Omit to only downgrade existing owner.<br>`--project-name` (string; optional) — Optional project name update.<br>`--project-remark` (string; optional) — Optional project remark update. | [project_owner_update.md](project_owner_update.md) |
294
+ | `ae-cli project owner update` | project.owner.update | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--company-id` (number; required) — Company ID.<br>`--owner-user-id` (number; optional) — New owner user ID. Common treats a company root as company-admin management. Omit for the same behavior; the existing owner is downgraded.<br>`--project-name` (string; optional) — Optional project name update.<br>`--project-remark` (string; optional) — Optional project remark update. | [project_owner_update.md](project_owner_update.md) |
295
295
  | `ae-cli project permission-binding list` | project.permission_binding.list | read | `--project-id` (number; required) — Numeric project ID.<br>`--company-id` (number; required) — Company ID.<br>`--project-ids` (json; required) — Project IDs JSON array. | [project_permission_binding_list.md](project_permission_binding_list.md) |
296
296
  | `ae-cli project receive-status update` | project.receive_status.update | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--receive-status` (string; required) — Receive status: NORMAL or STOP_RECEIVE. | [project_receive_status_update.md](project_receive_status_update.md) |
297
297
  | `ae-cli project role delete` | project.role.delete | high-risk-write | `--project-id` (number; required) — Numeric project ID.<br>`--role-name` (string; required) — Role name to delete.<br>`--new-role-name` (string; optional) — Role name to migrate users to before deletion. | [project_role_delete.md](project_role_delete.md) |
@@ -7,7 +7,7 @@ Use this as the required entry point for CLI Agent asset-authentication and metr
7
7
  This command returns one evidence packet seeded from eligible shared dashboards and their reports, ordered by available heat and then recent activity. For normal page-review submission, `--limit 20` is the initial candidate pool; use the bounded expansion procedure below when filtering leaves insufficient candidates. After the command returns, the Agent must transform the returned `work_units` into business-domain review groups before answering. `work_units` are evidence containers, not final answer sections and not an excuse to drop eligible dashboards.
8
8
 
9
9
  Do not use certification-state management commands as a substitute for this recommendation evidence packet.
10
- Do not load project semantics, project KB, or personal semantic preferences before this command. The recommendation packet is the prerequisite evidence for this review workflow.
10
+ Complete global/project personal-semantic initialization before this workflow; personal preferences never replace independent governance evidence. Do not load project semantics or project KB as prerequisites. The recommendation packet is the prerequisite evidence for this review workflow.
11
11
 
12
12
  Hard output gate: a final answer is invalid if it is grouped by asset type, backend array order, raw `work_units`, source dashboard, source report, or separate top-level asset and metric sections. The final answer must follow the fixed business-domain review display below.
13
13
 
@@ -81,7 +81,7 @@ Report the final requested limit, actual dashboards returned, dashboards represe
81
81
  - For real review-page submission, apply Current Candidates and Bounded Expansion before grouping. Include eligible assets across the retained dashboard branches; do not compress them into a few representative themes or submit only the first hot dashboard or first `work_unit`. A smaller batch is valid when the evidence supports fewer eligible candidates or the user explicitly requests a sample or diagnostic batch. Explain the actual scope and omissions.
82
82
  - For recurring recommendation jobs, the default reviewer workspace is pending-first: only business domains with pending review assets are visible. Authenticated/completed assets remain available as relation/context rows under those domains, but they must not create a visible topic by themselves.
83
83
  - Treat `业务主题域` as a semantic cluster over the selected dashboards, not a copy of the dashboard list. Do not create one topic per hot dashboard just because `--limit 20` returned 20 work units. Merge dashboards into the same topic when their child reports, referenced metadata, metrics, folder context, or authored notes describe the same business process. Split only when the business meaning or review decision is materially different. A result where `topic_count == selected_dashboard_count` requires explicit evidence that every selected dashboard has a distinct business domain.
84
- - Do not call project-semantic, project-KB, or personal-semantic-preference commands as prerequisite context for this workflow.
84
+ - Complete mandatory personal-semantic initialization. Do not call project-semantic or project-KB commands as prerequisite governance evidence.
85
85
  - Treat `work_units` as deterministic Common evidence. The CLI Agent owns business-domain grouping, Chinese explanations, and approval interaction.
86
86
  - Agent display is mandatory whenever the user asks to see or review recommended certification assets or recommended metrics. Do not hand back raw JSON as the final answer.
87
87
  - Show recommendations by business theme/domain, not by flat asset type, backend array order, raw dashboard title, or workflow/test label.
@@ -1,6 +1,8 @@
1
1
  # personal-semantic-preference add
2
2
 
3
- Add one personal semantic preference for the authenticated user in one project.
3
+
4
+ Scope: use a positive project ID for project personal semantics, or `--project-id -1` for private global analysis semantics. The CLI routes global CRUD to `business_semantics.global_personal_context.*`; existing positive-project capability IDs are unchanged. Zero and other negative IDs are invalid. Global scope is isolated by authenticated company and owner. A missing global capability is a deployment prerequisite, not an empty directory or permission to fall back to a project write.
5
+ Add one personal semantic preference for the authenticated user in one project or global scope (`project_id=-1`).
4
6
 
5
7
  Use this when the user explicitly asks to save a personal semantic preference, or when the current project task contains an explicit stable statement, correction, reusable workflow, or confirmation that should become a reusable current-user preference. When a project scope is active, requests such as "remember the above workflow", "save this process for this project", or "以后按这个流程" are project-scoped personal semantics, not global memory; store reusable workflows with `context_type=experience`. A current-user working definition remains eligible even when the same content may benefit other users. A second "save" confirmation is not required after that evidence gate is met, unless the target meaning is ambiguous.
6
8
 
@@ -21,3 +23,9 @@ This command creates only a current-user preference; it never creates or approve
21
23
  Store only the present working preference. Do not append future governance or lifecycle instructions. Do not use this command for company knowledge, standalone metadata facts, reports, dashboards, transient task details, one-off analysis results, or automatic stale/expired preference handling.
22
24
 
23
25
  Output is the gateway envelope. `data.preference` contains the full created preference, current revision, and complete ordered `resource_refs`. A separate readback is unnecessary unless a later step needs to refresh the record.
26
+
27
+ ## Calculation definitions and acknowledgment
28
+
29
+ A clear user-defined calculation meaning or correction (for example, active users mean login users rather than registered users) must be actively captured when its scope and applicability are clear, without requiring a separate request to remember it. Resolve and bind the canonical event/property identity. If persistence intent or scope is uncertain, ask a focused save question; do not store one-off dates/results. Tell the user what was saved or updated and its scope only after success.
30
+
31
+ Always discover asset references rather than guessing them: `analysis-meta catalog list` returns the exact `resource_type`/`resource_key`. Virtual properties use `event_property` or `user_property` with canonical `prop_name`, not `virtual_property` or a numeric property ID. Global asset contexts may reference verified same-company projects only: `{"resource_type":"project","resource_key":"195","display_name":"System usage data"}`. A default query-project record describes that default in title/summary/content; a temporary project switch must not overwrite it.
@@ -1,5 +1,7 @@
1
1
  # personal-semantic-preference delete
2
2
 
3
+
4
+ Scope: use a positive project ID for project personal semantics, or `--project-id -1` for private global analysis semantics. The CLI routes global CRUD to `business_semantics.global_personal_context.*`; existing positive-project capability IDs are unchanged. Zero and other negative IDs are invalid. Global scope is isolated by authenticated company and owner. A missing global capability is a deployment prerequisite, not an empty directory or permission to fall back to a project write.
3
5
  Soft-delete one personal semantic preference using optimistic locking.
4
6
 
5
7
  Use this only after explicit user confirmation to remove a saved personal preference.
@@ -1,5 +1,7 @@
1
1
  # personal-semantic-preference get
2
2
 
3
+
4
+ Scope: use a positive project ID for project personal semantics, or `--project-id -1` for private global analysis semantics. The CLI routes global CRUD to `business_semantics.global_personal_context.*`; existing positive-project capability IDs are unchanged. Zero and other negative IDs are invalid. Global scope is isolated by authenticated company and owner. A missing global capability is a deployment prerequisite, not an empty directory or permission to fall back to a project write.
3
5
  Get one personal semantic preference by ID.
4
6
 
5
7
  Use this command after `personal-semantic-preference list` identifies a likely current-user preference. Pass the returned directory title with `--title`; it is telemetry context only, and the lookup still uses `id`. Pass `--mark-used` when the preference is adopted for the answer, query path, or as the matched target for an update.
@@ -1,8 +1,10 @@
1
1
  # personal-semantic-preference list
2
2
 
3
- List the authenticated user's active personal semantic preference catalog for one project.
4
3
 
5
- When the request involves personal business wording, asset preferences, or explicit personalization, use this command once per host, authenticated user, project, and conversation after resolving the project. Keep the returned directory in conversation context for later questions where user-specific wording or preferences may change interpretation.
4
+ Scope: use a positive project ID for project personal semantics, or `--project-id -1` for private global analysis semantics. The CLI routes global CRUD to `business_semantics.global_personal_context.*`; existing positive-project capability IDs are unchanged. Zero and other negative IDs are invalid. Global scope is isolated by authenticated company and owner. A missing global capability is a deployment prerequisite, not an empty directory or permission to fall back to a project write.
5
+ List the authenticated user's active personal semantic preference catalog for one project or global scope (`project_id=-1`).
6
+
7
+ Load the global catalog before project selection in every new analysis conversation; after resolving the project, load its catalog before asset discovery or a query. Read relevant full entries with get before applying them, including the default project. Cache once per host/account/company/project/conversation; refresh on scope change or update the cache from write results. Never treat a failed initialization as an empty catalog.
6
8
 
7
9
  Command:
8
10
 
@@ -36,3 +38,9 @@ An explicit stable statement, correction, or confirmation that passes that evide
36
38
  After a successful add, update, or delete, merge that response into the conversation's cached directory locally. Do not call list again merely to observe the write.
37
39
 
38
40
  Stale or expired preferences are automatically hidden by list filtering and backend maintenance. Do not look for or invent a separate command for that behavior.
41
+
42
+ ## Calculation definitions and acknowledgment
43
+
44
+ A clear user-defined calculation meaning or correction (for example, active users mean login users rather than registered users) must be actively captured when its scope and applicability are clear, without requiring a separate request to remember it. Resolve and bind the canonical event/property identity. If persistence intent or scope is uncertain, ask a focused save question; do not store one-off dates/results. Tell the user what was saved or updated and its scope only after success.
45
+
46
+ Always discover asset references rather than guessing them: `analysis-meta catalog list` returns the exact `resource_type`/`resource_key`. Virtual properties use `event_property` or `user_property` with canonical `prop_name`, not `virtual_property` or a numeric property ID. Global asset contexts may reference verified same-company projects only: `{"resource_type":"project","resource_key":"195","display_name":"System usage data"}`. A default query-project record describes that default in title/summary/content; a temporary project switch must not overwrite it.
@@ -1,5 +1,7 @@
1
1
  # personal-semantic-preference update
2
2
 
3
+
4
+ Scope: use a positive project ID for project personal semantics, or `--project-id -1` for private global analysis semantics. The CLI routes global CRUD to `business_semantics.global_personal_context.*`; existing positive-project capability IDs are unchanged. Zero and other negative IDs are invalid. Global scope is isolated by authenticated company and owner. A missing global capability is a deployment prerequisite, not an empty directory or permission to fall back to a project write.
3
5
  Update one personal semantic preference using optimistic locking.
4
6
 
5
7
  Use this when the user explicitly asks to change an existing personal preference, or when the current project task provides an explicit stable correction or confirmation that should replace a matching saved current-user preference. A current-user working definition remains eligible even when the same content may benefit other users. First read the matched current item with `personal-semantic-preference get --mark-used` and pass the returned revision as `--expected-revision`.
@@ -17,3 +19,9 @@ This command updates only the current-user preference; it does not update, appro
17
19
  Keep future governance and lifecycle handling out of the stored content. Do not use this command for shared knowledge, standalone metadata facts, reports, dashboards, transient task details, one-off analysis results, or automatic stale/expired preference handling.
18
20
 
19
21
  Output is the gateway envelope. `data.preference` contains the full updated preference and new revision. If the revision is stale, read the latest record and ask the user how to merge rather than overwriting silently.
22
+
23
+ ## Calculation definitions and acknowledgment
24
+
25
+ A clear user-defined calculation meaning or correction (for example, active users mean login users rather than registered users) must be actively captured when its scope and applicability are clear, without requiring a separate request to remember it. Resolve and bind the canonical event/property identity. If persistence intent or scope is uncertain, ask a focused save question; do not store one-off dates/results. Tell the user what was saved or updated and its scope only after success.
26
+
27
+ Always discover asset references rather than guessing them: `analysis-meta catalog list` returns the exact `resource_type`/`resource_key`. Virtual properties use `event_property` or `user_property` with canonical `prop_name`, not `virtual_property` or a numeric property ID. Global asset contexts may reference verified same-company projects only: `{"resource_type":"project","resource_key":"195","display_name":"System usage data"}`. A default query-project record describes that default in title/summary/content; a temporary project switch must not overwrite it.
@@ -4,6 +4,10 @@ This is a `high-risk-write` operation because it changes access, ownership, or a
4
4
 
5
5
  Use when the user needs to update project owner.
6
6
 
7
+ Omit `--owner-user-id` to use company-admin management without an explicit project owner. This downgrades the existing project owner. The CLI always forwards a supplied user ID unchanged; the fixed Common backend treats a target-company root ID exactly like a null owner and returns success while preserving all root roles. This behavior is shared by the page, CLI, and direct API callers. No company-member lookup or additional member-read permission is required in the CLI.
8
+
9
+ Deploy the paired Common protection before assigning a root user ID. Older Common versions may still replace privileged roles incorrectly; client upgrades alone cannot repair that backend defect.
10
+
7
11
  Do not use it for unrelated project-management actions or for fields not present in the common-service capability schema. Do not send camelCase aliases.
8
12
 
9
13
  Command:
@@ -23,6 +27,6 @@ Output uses the gateway envelope: success is `ok=true,data,meta`; failure is `ok
23
27
  |---|---|---|
24
28
  | `--project-id` | Yes | Numeric project ID. |
25
29
  | `--company-id` | Yes | Company ID. |
26
- | `--owner-user-id` | No | New owner user ID. Omit to only downgrade existing owner. |
30
+ | `--owner-user-id` | No | New owner user ID. Common treats a company root as company-admin management. Omit for the same behavior; the existing owner is downgraded. |
27
31
  | `--project-name` | No | Optional project name update. |
28
32
  | `--project-remark` | No | Optional project remark update. |
@@ -10,7 +10,23 @@ Check whether the path addresses the requested subquestions and whether the answ
10
10
 
11
11
  Assess answers as correct, incomplete, wrong, or unverifiable internally. A wrong answer requires a demonstrable defect relevant to the scenario. An incomplete answer has a demonstrable substantive omission or unresolved subquestion, even when honestly acknowledged. A correct answer requires adequate support for the actual requested outcome; a plausible path alone cannot establish a numeric analysis answer as correct. Unverifiable means the available path/answer/feedback cannot establish correctness. Do not turn path compliance into an overall success label. A later revision never erases an earlier defect or the original goal. Judge each answer against the confirmed requirements at that point; a newly added requirement is not retroactively an omission.
12
12
 
13
- For project archive review, follow [scenario list](scenario_list.md) for pagination, semantic deduplication and compact output. Include wrong and substantively incomplete answers as badcases. For Chinese output, label them "回答有误" and "回答不完整". Every badcase needs a concrete reason integrating the necessary source evidence, such as the contradictory numbers or the requested-but-missing subquestion. Keep answer/entry IDs and feedback-support checks internally for traceability, rather than dumping them into the final answer. Do not output internal verdict codes, a separate evidence list, raw JSON, or the latest/fixed status. Group repeated questions/defects with distinct-scenario occurrence counts. Briefly count unverifiable scenarios separately; never treat them as confirmed badcases or proven correct answers.
13
+ ## Select useful regression cases
14
+
15
+ Keep answer-quality assessment separate from recommendation. Select Bad Cases where missing, misunderstood or inconsistently understood project business semantics caused the answer defect, and adding or clarifying those semantics could improve it. A knowledge base is only one possible carrier, alongside metric configuration, asset descriptions or confirmed business rules; its existence, absence or publication plan is not a selection criterion. Recommend only when the supplied evidence supports all three:
16
+
17
+ - A specific failure against the user's requirement at that point, with evidence linking it to business meaning: a metric/population/time definition, asset meaning or mapping, join relationship, attribution rule or business scope. A wrong result, contradiction or omission alone does not establish a semantic cause.
18
+ - The business semantics to add or clarify and why they address this defect. Existing project definitions that the Agent demonstrably misinterpreted or never acquired can qualify; definitions already correctly understood followed by arithmetic, execution or writing errors do not. Do not invent a rule, available asset or correct numeric result. If the authoritative definition is unknown, name the ambiguity to resolve without asserting a preferred rule as truth.
19
+ - An observable improvement criterion after that clarification, not merely a more fluent answer. For conflicting answers, verify the disputed semantic rule and its consistent application; neither the earlier nor the later answer is ground truth by default. Repeating an instruction to be complete or double-check calculations is not a business-semantic clarification.
20
+
21
+ Reserve needing verification for a specific suspected semantic mismatch whose disposition depends on an identifiable missing fact, such as what a queried status/date field means for the requested metric. State that evidence question; do not submit it as a recommended candidate. Do not put every unverifiable number or unfilled requirement in this queue: without a concrete suspected semantic mismatch, exclude it from recommendations with its evidence limitation. The possibility of an undiscovered source alone does not justify further verification. If the only demonstrated limitation is missing source data, unavailable permissions, or infrastructure failure, exclude it from this business-semantic regression set. Honest disclosure of a limitation is not itself an answer defect; missing evidence does not prove that data is absent everywhere. A proxy explicitly distinguished from the requested metric is not a proven substitution. A false claim of completion or a scope substitution can qualify despite data gaps only when evidence links the defect to business semantics.
22
+
23
+ A broader quality audit may report operational failures or incomplete service separately when requested; do not relabel them as business-semantic defects. Zero recommendations is valid. Preserve historical defects and semantic deduplication, but do not fill a quota or weaken evidence requirements to produce candidates.
24
+
25
+ ## Write the finding
26
+
27
+ For project archive review, follow [scenario list](scenario_list.md) for pagination, semantic deduplication and compact output. For recommended cases, use "回答有误" or "回答不完整" as appropriate. Describe one primary defect in at most two short sentences: what the user required versus what the answer did, including only the decisive evidence (for example a contradictory pair of counts). Name the business semantics to add or clarify in one short sentence, then give one short, testable improvement sentence. For Chinese output, keep the finding within 80 characters and each of the semantic clarification and improvement within 60 characters, including punctuation; use similarly compact wording in other languages. Prefer one decisive comparison over several counts and business terms over raw field names. These limits apply to both the displayed finding and its persisted reason parts, not the original answer or evidence. Avoid investigation chronology, call inventories and abstract conclusions such as "the answer did not fully meet the need" without the concrete mismatch.
28
+
29
+ Keep answer/entry IDs, necessary prior-turn context, dates, feedback support and query evidence internally for reproducibility; concise wording must not discard that evidence or rewrite the archived question/answer. Group repeated questions/defects with distinct-scenario occurrence counts. Briefly separate cases needing verification and excluded cases from recommendations. These are discovery dispositions, not new API review states. The finding, semantic clarification and improvement criterion are review proposals, never certified ground truth.
14
30
 
15
31
  These are independent model judgments, not certified ground truth. Keep evaluations separate from immutable collection; human review can calibrate them. When samples are supplied as local files, read only those files, supplied call records and this guide, never hidden fixtures, test expectations or the collector's private reasoning.
16
32
 
@@ -33,18 +33,17 @@ The service removes exact retry identities. The Agent performs semantic deduplic
33
33
 
34
34
  Do not assume relative time windows are equivalent: this calendar week and the trailing seven days can have different boundaries. Merge their questions only when the archive explicitly confirms the same dates; otherwise keep them separate. Conversely, equivalent phrasing with the same explicit dates, metric and defect should be grouped and counted together.
35
35
 
36
- For an ordinary question inventory, return a concise question summary, the initial answer duration and occurrence count; do not assess quality unless requested. For badcases, include demonstrated wrong answers and substantive omissions, including historical defects preserved in later-revised scenarios. Unsupported objections or unavailable numeric proof alone are not confirmed badcases. Judge revisions against the user's confirmed scope at that point, rather than treating a new requirement as an earlier omission.
36
+ For an ordinary question inventory, return a concise question summary, the initial answer duration and occurrence count; do not assess quality unless requested. For badcases, apply the recommendation gate in the independent evaluation guide, including to historical defects preserved in later-revised scenarios. An incomplete or wrong answer alone does not establish a business-semantic defect; apply the evidence-based causal test regardless of how semantics are stored. Keep cases needing verification and operational/data limitations separate from recommendations. Unsupported objections or unavailable numeric proof alone are not confirmed badcases. Judge revisions against the user's confirmed scope at that point, rather than treating a new requirement as an earlier omission.
37
37
 
38
38
  ## Final response
39
39
 
40
40
  Use the user's language. For Chinese badcase requests, use this compact table:
41
41
 
42
- | 问题 | 回答耗时 | 评估结论 | 原因说明 | 出现次数 |
43
- | --- | --- | --- | --- | --- |
44
- | 查询付费人数变化 | 42.3秒 | 回答有误 | 回答写明人数从100降至80,却说下降10%;按其给出的数值应为20%。 | 1 |
45
- | 分析收入下降的原因 | 未采集 | 回答不完整 | 用户要求分析下降原因,回答只列收入变化,没有分析原因。 | 1 |
42
+ | 问题 | 回答耗时 | 评估结论 | 发现原因 | 待补充业务语义 | 改善标准 | 出现次数 |
43
+ | --- | --- | --- | --- | --- | --- | --- |
44
+ | 查询新增付费客户 | 42.3秒 | 回答有误 | 回答把新增付费客户理解成支付记录,计入了续费。 | 新增付费客户按首次付费客户去重,排除续费。 | 按首次付费时间限定范围,去重统计客户数。 | 1 |
46
45
 
47
- These are examples, never presumed findings. The reason is mandatory and must integrate the minimum quoted evidence needed to explain the specific defect. Do not output verdict codes, raw JSON, a separate evidence dump, internal IDs, full query paths, all answer versions, or a latest/fixed status by default. Retain provenance internally for a requested drilldown. If evidence is insufficient, exclude that scenario from confirmed badcases and briefly state the number of scenarios that could not be judged. State the actual project/window and review coverage once. A finding is an Agent assessment, not certified ground truth.
46
+ These are examples, never presumed findings. The reason is mandatory: at most two short sentences explaining one primary defect with decisive evidence. Name the business semantics to add or clarify and give one short, testable improvement criterion. A fluent restatement, a generic completeness instruction or an unsupported preferred number is not a semantic repair. Briefly list cases needing verification with the missing evidence, and group exclusions by cause; neither belongs in the recommended table. A compact list with the same finding/semantic-clarification/criterion fields is also suitable when comparing a few supplied cases. Do not output verdict codes, raw JSON, a separate evidence dump, internal IDs, full query paths, all answer versions, or a latest/fixed status by default. Retain provenance internally for a requested drilldown. If evidence is insufficient, exclude that scenario from confirmed badcases and briefly state the number of scenarios that could not be judged. State the actual project/window and review coverage once. A finding is an Agent assessment, not certified ground truth.
48
47
 
49
48
  ## Answer duration and CLI execution detail
50
49
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-capability
3
- version: 1.3.16
3
+ version: 1.3.17
4
4
  description: "AE capability gateway discovery and generic invocation with ae-cli. Use when the user needs to list or search available capabilities, inspect an unknown capability schema/risk/auth contract, optionally validate complex input or dry-run before execute, or invoke a long-tail capability that has no curated ae-cli command. Always discover and inspect before composing input; never guess capability IDs or input fields. Prefer on-demand validate OR dry-run — do not stack both by default."
5
5
  ---
6
6
 
@@ -31,16 +31,20 @@ Hard rule: before running gateway-backed `ae-cli` commands, maintain the current
31
31
  Create or update the context file when starting a CLI-backed task and whenever the user's CLI purpose changes. Reuse it while the purpose and model remain unchanged. Use the user's original language for `session_initial_intent`, `user_intent`, and `session_goal`; for example, use Chinese text for a Chinese user request. At minimum, include:
32
32
 
33
33
  - `agent_client`
34
- - `agent_model` whenever the current model can be confirmed
34
+ - `agent_model` (required by this Skill; follow the preflight below)
35
35
  - stable `agent_session_id`
36
36
  - `agent_turn_id` when available
37
37
  - `intent_source: "agent_context_file"`
38
38
  - concise `user_intent` for the current CLI-triggering purpose
39
39
  - current `session_goal`
40
40
 
41
- The Agent must actively obtain the current model identifier and write it explicitly as `agent_model` in the context file. Use trusted runtime context or bounded metadata for the exact current session and turn; for example, Codex's current-session `turn_context.model`. Do not rely solely on a model environment variable being present. Never infer the model from the Agent/product name, a configured default, or another session. This requirement applies to every Agent client. Update the file when the model changes, even if the CLI purpose stays the same.
41
+ **Required Agent preflight:** the Agent must report `agent_model` before every gateway-backed CLI call. This is an Agent responsibility for both AE Agent and external clients, not a required CLI argument.
42
42
 
43
- If the model cannot be confirmed, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
43
+ 1. Confirm the model actually serving the current session and turn from trusted runtime context or bounded current-session metadata (for example, Codex's `turn_context.model`). Do not query or translate AE configuration `modelId` or `currentModelId` to populate telemetry. Never infer the model from the Agent/product name, a configured default, or another session. A missing model environment variable does not waive this step.
44
+ 2. Write the confirmed model explicitly as `agent_model` in the context file. Update the file when the model changes, even if the CLI purpose stays the same. Do not leave the example placeholder in the file.
45
+ 3. Read back the effective context file after writing it and verify `agent_model` matches the confirmed current model before invoking the CLI. Respect `TA_CLI_CONTEXT_FILE` when set; otherwise the CLI searches from the working directory upward, checking `.ta/cli-agent-context.json` before `.ae/cli-agent-context.json` in each directory. Update the file that actually wins, not a shadowed copy. Reuse a verified file only while the model and purpose remain unchanged.
46
+
47
+ Only if trusted current-session information cannot confirm the model after this check, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Do not fabricate a model to satisfy this Skill. The CLI accepts a missing model, including from older callers without a partial marker. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
44
48
 
45
49
  Write this JSON object to `.ae/cli-agent-context.json`:
46
50
 
@@ -29,6 +29,8 @@ Required structure:
29
29
 
30
30
  Use `distinct_id_field` when no account field exists. `mixed` requires `record_type_field`. Track requires `event_name_field` or a reviewed `default_event_name`. `source.format` is one of `csv`, `tsv`, `json`, `jsonl`, `xls`, `xlsx`, `parquet`. For a multi-file template mapping, `source.sha256` may be the wildcard `*`.
31
31
 
32
+ For Atlas exposure data, use a `track` mapping with `default_event_name: "te_experiment_exposure"` or an `event_name_field` when the file contains several event names. The mapping accepts the receiver-defined targets `#experiment_id` and `#experiment_group_id` as strings and `#is_control_group` as a boolean. Conversion emits these fields under `properties` only for rows resolved to `te_experiment_exposure`. Plan generation excludes them from custom property definitions.
33
+
32
34
  ## Record types
33
35
 
34
36
  Every record carries a `#type`. `mode: 'mixed'` resolves the type per row via `record_type_field`; otherwise the mode fixes it (`track` or `user_set`). The `record_type_field` values are normalized case- and underscore-insensitively, with `event`→`track` and `user`/`userset`→`user_set` aliases.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ae-experiment
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"
3
+ version: 1.0.11
4
+ description: "Use when managing Atlas AB or external experiments, experiment approvals and approvers, traffic domains and layers, Features, metrics, buckets, and experiment reports through ae-cli"
5
5
  ---
6
6
 
7
7
  # ae-experiment
@@ -13,10 +13,10 @@ AE CLI (`ae-cli`) exposes Atlas AB Experiment capabilities through the `experime
13
13
  - Prefer `ae-cli experiment <command>` for Atlas AB Experiment work.
14
14
  - Use `--project-id` / `-p` for project-scoped commands.
15
15
  - Use `--req` JSON for complex save, status, and delete DTOs.
16
- - Do not invent experiment IDs, traffic layer IDs, bucket IDs, Feature keys, metric IDs, or payload field names.
16
+ - Do not invent experiment IDs, traffic domain IDs, traffic layer IDs, bucket IDs, Feature keys, metric IDs, or payload field names.
17
17
  - Bind only metric IDs returned by `experiment metric list`; create and verify a missing metric before saving the experiment.
18
18
  - Read commands can run directly after IDs are verified.
19
- - Write commands require user intent. Only `high-risk-write` commands prompt for confirmation; use `--yes` only after authorization. Use `--dry-run` before write calls when composing JSON.
19
+ - Write commands require user intent. Only `high-risk-write` commands (including domain deletion) prompt for confirmation; use `--yes` only after authorization. Use `--dry-run` before write calls when composing JSON.
20
20
 
21
21
  Naming and response boundary:
22
22
 
@@ -33,6 +33,9 @@ Naming and response boundary:
33
33
  `targeting.definition_request`. Never generate or submit `targetConfig`.
34
34
  - Metric QP is semantic at the CLI boundary: write `metricDefinition`; read
35
35
  `metric_definition`. Never generate or submit `metricConfig`, `calcType`, or `Axxx` codes.
36
+ - Metric save supports event, formula, retention, and funnel definitions. Check
37
+ `experiment.metric.save` in the target server's capability schema and use the
38
+ [metric save contract](references/save_metric.md) to compose the request.
36
39
  - Event-property comparisons belong in `metricDefinition.filters`, using
37
40
  `{relation,items:[{field,operator,values}]}`. Never put comparison fields directly on
38
41
  `metricDefinition`, and never submit raw `filts`, `calcuSymbol`, or `ftv` fields.
@@ -50,6 +53,7 @@ Naming and response boundary:
50
53
 
51
54
  1. Discover reusable assets:
52
55
  - `experiment bucket list`
56
+ - `experiment traffic-domain list` for Space quotas, current versions and domain permissions
53
57
  - `experiment traffic-layer list`
54
58
  - `experiment feature list`
55
59
  - `experiment metric list`
@@ -62,10 +66,11 @@ Naming and response boundary:
62
66
  3. Create or patch the experiment draft with `experiment experiment save`.
63
67
  Use `experiment experiment update-metrics` when replacing metric bindings or assigning guardrail roles.
64
68
  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
+ Updated servers submit external experiments without approval, regardless of
70
+ the approver roster. They do not use Features, traffic layers, allocation,
71
+ targeting, or experiment cycles. Skip the Feature readiness/conflict/submission
72
+ steps and read experiment detail to verify the result. Older approval-capable
73
+ servers may still queue review; read [server compatibility](references/experiment_approval.md#server-compatibility).
69
74
  On servers exposing `req.clearEndTime`, omitting `--end-time` on updates retains
70
75
  the saved deadline. Cancel it explicitly with `--clear-end-time true`; read
71
76
  [external deadline compatibility](references/save_submit_external_experiment.md#deadline-updates-and-server-compatibility)
@@ -77,14 +82,16 @@ Naming and response boundary:
77
82
  `experiment approval submit` is an alternative after verifying capability support;
78
83
  submit once, never through both commands. Before choosing approval commands,
79
84
  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.
85
+ On updated servers, a non-empty project approver roster enables Feature
86
+ approval; an empty roster submits directly using the existing manual or
87
+ scheduled start. Read `experiment experiment get` after submission. When
88
+ review is pending, read `experiment approval get` and process the exact
89
+ `approval_id` only for the user-requested action. Approval can start a due
90
+ Feature experiment; verify approval and runtime status independently.
84
91
  For a scheduled Feature start, save `startTime` (or use `--start-time`) before
85
92
  submission. Read [Feature timing](references/save_experiment.md#feature-timing).
86
93
  Use `experiment experiment manage` for existing lifecycle actions. Its
87
- `draft → pending` call submits for approval on approval-enabled servers.
94
+ `draft → pending` call uses the same server approval policy as other submission paths.
88
95
  To resume `paused` to `running`, call `manage` directly and verify the status
89
96
  with `get`; do not use the pre-launch `ready-check` as a resume prerequisite.
90
97
  8. Query reports with `experiment report summary`, `experiment report sample-size`, and `experiment report metric-trend`.
@@ -94,12 +101,15 @@ If an experiment save returns `error_code: METRIC_NOT_FOUND`, list metrics for t
94
101
  ## Parameter Conventions
95
102
 
96
103
  - Experiment save payloads distinguish two allocation fields: experiment-level `req.allocation` (**integer only; no decimals**) and group-level `req.groups[].allocation` (**integer only; sum must equal `100` exactly**).
104
+ - Shared traffic uses `req.isExpSharing=1` with `req.trafficLayerId` and must not pass `req.layerType`.
105
+ - Exclusive traffic uses `req.isExpSharing=0` with `req.bucketId`. Set `req.layerType` to `remote` or `local`; omitted mode defaults to `remote`. Local routing does not support `#user_id`.
97
106
  - Public experiment metric roles are `primary`, `secondary`, and `guardrail`. The internal `observation` role is currently unavailable for saves. Guardrail is a binding role; updating metrics replaces the full binding list.
98
107
 
99
108
  ```bash
100
109
  ae-cli experiment experiment get --project-id 1 --exp-id exp_123
101
110
  ae-cli experiment experiment save --project-id 1 --req '{"expName":"Demo"}' --dry-run
102
- ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_gold_sum","metricName":"Payment gold sum","createType":"event","goalDirection":"up","metricDesc":"Gold sum for payments above 10","metricDefinition":{"type":"event","event":"payment","aggregation":"sum","property":"gold","filters":{"relation":"and","items":[{"field":"gold","operator":"gt","values":[10]}]}}}' --dry-run
111
+ ae-cli experiment experiment save --project-id 1 --req '{"expName":"Local routing draft","isExpSharing":0,"layerType":"local","bucketId":"#account_id"}' --dry-run
112
+ ae-cli experiment metric save --project-id 1 --req '{"metricId":"payment_gold_sum","metricName":"Payment gold sum","createType":"event","goalDirection":"up","metricPurpose":"confidence_statistics","metricDesc":"Gold sum for payments above 10","format":"float2","metricDefinition":{"type":"event","event":"payment","aggregation":"sum","property":"gold","filters":{"relation":"and","items":[{"field":"gold","operator":"gt","values":[10]}]}}}' --dry-run
103
113
  ae-cli experiment report metric-trend --project-id 1 --exp-id exp_123 --metric-id metric_1 --start-time 2026-07-01 --end-time 2026-07-07
104
114
  ```
105
115
 
@@ -139,8 +149,27 @@ Read [`save_submit_external_experiment.md`](references/save_submit_external_expe
139
149
 
140
150
  Read [`experiment_approval.md`](references/experiment_approval.md) for the approval workflow,
141
151
  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.
152
+ Approver list requires experiment settings view permission (`experimentViewSetting`);
153
+ approver add/delete require experiment settings edit permission (`experimentEditSetting`).
154
+ Approval actions use the separate experiment permissions described in the reference.
155
+ On updated servers, only Feature experiments with a non-empty approver roster
156
+ queue delivery changes for approval; a save returning `true` does not prove
157
+ the change is effective. Read experiment detail and any pending proposal.
158
+ Removing the last approver preserves existing pending reviews; withdraw and
159
+ resubmit when authorized. Adding approvers does not require retrospective
160
+ approval of effective configurations. Ineligible members do not make a
161
+ non-empty roster empty, and a failed roster read never proves approval is off.
162
+
163
+ ### Traffic Domains
164
+
165
+ `experiment traffic-domain list`, `experiment traffic-domain create`, `experiment traffic-domain update`, `experiment traffic-domain delete`
166
+
167
+ Read [`manage_traffic_domains.md`](references/manage_traffic_domains.md) before quota changes,
168
+ deletion, or binding domains to traffic layers and exclusive experiments. Domain quotas use
169
+ integer basis points (10000 = 100%) and current Space `allocation_version`. Do not auto-refresh
170
+ and retry a rejected write. Domain commands use typed flags and snake_case allocation rows.
171
+ List, create and delete return Space snapshots in `data.items`; `data.total` counts Spaces.
172
+ Update returns Boolean `data.result`; list again to obtain the new version.
144
173
 
145
174
  ### Traffic Layer and Buckets
146
175