AE Experiment Insight and Diagnosis
Validate the evidence before interpreting the effect. Produce a decision only when the experiment is trustworthy enough to support one.
Platform and reference routing
Use ae-cli for every AE/TE platform interaction and follow
references/platform-operations.md;
never substitute another platform access path.
For diagnosis, read
references/diagnostic-playbook.md.
Before a rollout decision, read
references/decision-framework.md.
Workflow
1. Restore experiment context
Resolve the exact project and experiment. Collect:
- hypothesis and intended decision;
- control and treatment definitions;
- assignment unit, layer, targeting, traffic, and group allocation;
- Feature and group values;
- primary, secondary, and diagnostic metrics;
- planned MDE, alpha, power, duration, and stopping rule;
- actual start/end time and material configuration changes.
Without the original hypothesis or success rule, explain observed effects but do not retroactively invent success criteria.
2. Check run integrity
Establish the experiment's actual state, complete runtime periods, and material
mid-run Feature, traffic, audience, metric, or identity changes. Treat
configuration history as evidence. Evaluate allocation, exposure, sample
sufficiency, and design quality through the diagnostic playbook rather than
duplicating its rules here.
3. Run data diagnostics
Apply diagnostic-playbook.md in causal order and complete its diagnostic
checklist. Use
scripts/analyze_experiment.py for SRM and
group comparisons; do not calculate p-values or confidence intervals mentally.
4. Interpret effects
For each pre-registered metric, interpret the verified metric contract from
the diagnostic playbook and report:
- verified source event, aggregation, analysis unit, denominator or population,
filters, and attribution window;
- control and treatment values;
- absolute and relative difference;
- confidence interval and p-value from deterministic calculation or the verified platform report;
- achieved sample versus planned sample;
- relation to MDE and business threshold;
- statistical and practical significance.
Distinguish:
- statistically significant and practically valuable;
- statistically significant but too small to matter;
- directionally positive but underpowered;
- no detectable effect within the current precision;
- significantly negative;
- invalid or inconclusive because of data quality.
Do not translate p > alpha into “no effect.” State that the current data did not establish an effect and describe the compatible interval.
5. Analyze trends and segments
Check trend stability and abnormal dates using complete comparable periods.
Apply the trend and segment rules in decision-framework.md.
6. Diagnose causes
For every suspected cause, provide:
- observed evidence;
- inference and uncertainty;
- competing explanation;
- the exact platform query or product check that would distinguish them;
- remediation if confirmed.
Do not produce a list of generic causes detached from evidence.
In the final report, express the distinguishing check as a concise user-facing
verification action. Include the raw ae-cli command only when the user
explicitly asks for commands, an audit trail, or debugging details.
7. Make the decision
Apply decision-framework.md and return one decision supported by the trust
assessment, primary effect, duration, trends, segments, and diagnostic results.
Never start, pause, end, change traffic, delete, or roll out an experiment unless the user separately asks for that platform action. Those actions are outside interpretation and require explicit target-and-impact confirmation.
Output requirements
- Use the explicitly requested language, otherwise the language of the user's latest substantive message. Localize all user-facing prose, headings, labels, statuses, conclusions, warnings, limitations, and next actions; treat section names in this Skill as semantic guidance and remove unintended mixed-language output.
- Keep code, commands, raw IDs, event/property/metric names, Feature keys, SDK/API names, and official enum values unchanged when translation would alter their technical meaning.
- Lead with the decision status.
- Use an adaptive report, not a fixed numbered template. Organize the default
user-facing hierarchy as: conclusion, core impact, experiment decision, and
product optimization or next action.
- Keep data reliability, core metrics, and attention metrics inside the
core impact section:
- Data reliability validation: summarize the diagnostic checklist and
state the overall result as reliable, limited, or unreliable. Keep normal
checks compact and expand only warnings, failures, or unverified checks.
- Core metrics: present the primary metric's control and treatment
values, absolute and relative effect, interval and p-value, relation to MDE
or the business threshold, and business meaning. Use causal wording only
when the trust assessment supports it.
- Attention metrics: present secondary and diagnostic metrics only when
they affect the decision, explain the mechanism, or reveal material risk.
Do not promote a post-hoc metric into the success criterion.
- For a brief answer, collapse these subsections into compact paragraphs under
core impact; do not promote them into unrelated top-level sections.
- Treat labels such as
material blockers, trust blockers, diagnostic
severity names, and framework labels such as Gate 1 or Gate 2 as
internal taxonomy. Never expose them as report headings or append their
English forms after localized headings. Use natural
user-facing wording such as “数据可靠性验证” or “当前为什么不能下结论” when
those concepts need a heading.
- Place metric trends and metric-related segments under the relevant core or
attention metric. Add broader context, cause diagnosis, assumptions, or
limitations only when they materially change interpretation.
- Use a product-optimization section only when trustworthy evidence supports a
specific product change. Otherwise use a next-validation or next-action
section.
- Include only content supported by the request and evidence. Do not add a section merely because it appeared in a previous report.
- Separate platform observations, deterministic calculations, and inferred causes. State uncertainty and evidence gaps explicitly.
- Do not return an unexplained raw table.
Failure behavior
- Ambiguous project or experiment: show resolved candidates and ask; do not guess.
- Missing report capability: preserve the
ae-cli gap and request a platform export with required fields.
- Permission failure: stop dependent queries and report the missing permission.
- Empty successful report: say no matching data; do not relabel it as a transport failure.
- Partial success: use available evidence and enumerate failures.
- Conflicting sources: prefer raw assignment/exposure evidence for data-quality diagnosis and explain the discrepancy.
1---2name: ae-experiment-insight3description: Diagnose and interpret AE/TE A/B experiments from configuration and report evidence through a defensible decision. Use when the user asks what an experiment means, whether it can roll out, why a result is not significant, why group sizes or exposure are wrong, why treatment results conflict, whether the report is trustworthy, or what to do next. Covers SRM, duration sufficiency, novelty effects, metric conflicts, missing or anomalous data, design reasonableness, data reliability, metric interpretation, trend and segment analysis, root-cause hypotheses, and rollout recommendations. All platform discovery and reads must use ae-cli.4---56# AE Experiment Insight and Diagnosis78Validate the evidence before interpreting the effect. Produce a decision only when the experiment is trustworthy enough to support one.910## Platform and reference routing1112Use `ae-cli` for every AE/TE platform interaction and follow13[`references/platform-operations.md`](references/platform-operations.md);14never substitute another platform access path.1516For diagnosis, read17[`references/diagnostic-playbook.md`](references/diagnostic-playbook.md).18Before a rollout decision, read19[`references/decision-framework.md`](references/decision-framework.md).2021## Workflow2223### 1. Restore experiment context2425Resolve the exact project and experiment. Collect:2627- hypothesis and intended decision;28- control and treatment definitions;29- assignment unit, layer, targeting, traffic, and group allocation;30- Feature and group values;31- primary, secondary, and diagnostic metrics;32- planned MDE, alpha, power, duration, and stopping rule;33- actual start/end time and material configuration changes.3435Without the original hypothesis or success rule, explain observed effects but do not retroactively invent success criteria.3637### 2. Check run integrity3839Establish the experiment's actual state, complete runtime periods, and material40mid-run Feature, traffic, audience, metric, or identity changes. Treat41configuration history as evidence. Evaluate allocation, exposure, sample42sufficiency, and design quality through the diagnostic playbook rather than43duplicating its rules here.4445### 3. Run data diagnostics4647Apply `diagnostic-playbook.md` in causal order and complete its diagnostic48checklist. Use49[`scripts/analyze_experiment.py`](scripts/analyze_experiment.py) for SRM and50group comparisons; do not calculate p-values or confidence intervals mentally.5152### 4. Interpret effects5354For each pre-registered metric, interpret the verified metric contract from55the diagnostic playbook and report:5657- verified source event, aggregation, analysis unit, denominator or population,58 filters, and attribution window;59- control and treatment values;60- absolute and relative difference;61- confidence interval and p-value from deterministic calculation or the verified platform report;62- achieved sample versus planned sample;63- relation to MDE and business threshold;64- statistical and practical significance.6566Distinguish:6768- statistically significant and practically valuable;69- statistically significant but too small to matter;70- directionally positive but underpowered;71- no detectable effect within the current precision;72- significantly negative;73- invalid or inconclusive because of data quality.7475Do not translate `p > alpha` into “no effect.” State that the current data did not establish an effect and describe the compatible interval.7677### 5. Analyze trends and segments7879Check trend stability and abnormal dates using complete comparable periods.80Apply the trend and segment rules in `decision-framework.md`.8182### 6. Diagnose causes8384For every suspected cause, provide:8586- observed evidence;87- inference and uncertainty;88- competing explanation;89- the exact platform query or product check that would distinguish them;90- remediation if confirmed.9192Do not produce a list of generic causes detached from evidence.93In the final report, express the distinguishing check as a concise user-facing94verification action. Include the raw `ae-cli` command only when the user95explicitly asks for commands, an audit trail, or debugging details.9697### 7. Make the decision9899Apply `decision-framework.md` and return one decision supported by the trust100assessment, primary effect, duration, trends, segments, and diagnostic results.101102Never start, pause, end, change traffic, delete, or roll out an experiment unless the user separately asks for that platform action. Those actions are outside interpretation and require explicit target-and-impact confirmation.103104## Output requirements105106- Use the explicitly requested language, otherwise the language of the user's latest substantive message. Localize all user-facing prose, headings, labels, statuses, conclusions, warnings, limitations, and next actions; treat section names in this Skill as semantic guidance and remove unintended mixed-language output.107- Keep code, commands, raw IDs, event/property/metric names, Feature keys, SDK/API names, and official enum values unchanged when translation would alter their technical meaning.108- Lead with the decision status.109- Use an adaptive report, not a fixed numbered template. Organize the default110 user-facing hierarchy as: conclusion, core impact, experiment decision, and111 product optimization or next action.112- Keep data reliability, core metrics, and attention metrics inside the113 **core impact** section:114 - **Data reliability validation**: summarize the diagnostic checklist and115 state the overall result as reliable, limited, or unreliable. Keep normal116 checks compact and expand only warnings, failures, or unverified checks.117 - **Core metrics**: present the primary metric's control and treatment118 values, absolute and relative effect, interval and p-value, relation to MDE119 or the business threshold, and business meaning. Use causal wording only120 when the trust assessment supports it.121 - **Attention metrics**: present secondary and diagnostic metrics only when122 they affect the decision, explain the mechanism, or reveal material risk.123 Do not promote a post-hoc metric into the success criterion.124- For a brief answer, collapse these subsections into compact paragraphs under125 core impact; do not promote them into unrelated top-level sections.126- Treat labels such as `material blockers`, `trust blockers`, diagnostic127 severity names, and framework labels such as `Gate 1` or `Gate 2` as128 internal taxonomy. Never expose them as report headings or append their129 English forms after localized headings. Use natural130 user-facing wording such as “数据可靠性验证” or “当前为什么不能下结论” when131 those concepts need a heading.132- Place metric trends and metric-related segments under the relevant core or133 attention metric. Add broader context, cause diagnosis, assumptions, or134 limitations only when they materially change interpretation.135- Use a product-optimization section only when trustworthy evidence supports a136 specific product change. Otherwise use a next-validation or next-action137 section.138- Include only content supported by the request and evidence. Do not add a section merely because it appeared in a previous report.139- Separate platform observations, deterministic calculations, and inferred causes. State uncertainty and evidence gaps explicitly.140- Do not return an unexplained raw table.141142## Failure behavior143144- Ambiguous project or experiment: show resolved candidates and ask; do not guess.145- Missing report capability: preserve the `ae-cli` gap and request a platform export with required fields.146- Permission failure: stop dependent queries and report the missing permission.147- Empty successful report: say no matching data; do not relabel it as a transport failure.148- Partial success: use available evidence and enumerate failures.149- Conflicting sources: prefer raw assignment/exposure evidence for data-quality diagnosis and explain the discrepancy.