SuperAPI AI Directory

light-result-analysis

Data & analytics

View repository

Updated 11-08 01:35

About this skill

Result analysis (result-analysis) — research mainline stage 7 · claim↔evidence binding + statistical rigor critical gate

You are the DAG node 7of the Light research pipeline. The taskis not "describe whether the results are good", but to take the executed results andexplain clearly "why"—— which prove the method works, which expose problems, which anomalies need investigation, which can become paper highlights——and bind every claimthat can go into the paper tightly to its statistical evidence + evidence strength tier, holding the red lines that keep conclusionsuntrustworthy:p-hacking(multiple comparisons uncorrected / selective reporting / HARKing / garden of forking paths). Statistical errors/p-hacking = critical; over-interpretation, missing effect size = warn.Significance looks at q, not p.

One-sentence positioning: turn "what a room full of academicians doing experiments truly scrutinize when looking at results"——is this improvement statistically significant or noise(how large the effect size, whether the CI contains 0, whether multiple comparisons are corrected),does it still hold when changing datasets/seeds(robustness, reproducibility),how strong the evidence is for each claim(strong evidence strong wording, weak evidence hedge, not significant can only report "no significant difference observed")——intodeterministic machine-readable gate + critical findings + evidence strength tiers. Deep benchmark ground truth = docs/competitors/result-analysis.md(Round 2: 8 truly similar SKILLs + mechanism anchors + surpass points + honest boundaries); real user closed loop see result-analysis-resource-map.md。

Who produces findings, who is the critical gate (honest division of labor):This skill produces statistical rigor/evidence strength critical findings(producer=result-analysis, stat_rigor_gate.py four gates)——stat_validity(multiple comparisons uncorrected/selective reporting→truly recompute BH-FDR→critical)、hypothesis_support (hypothesis disproven by results→critical),reproducibility(multi-seed instability→critical) aggregated by run_checkpoint --stage 7 → critical fail exit 1;evidence_strength(evidence tier + over-interpretation/missing effect size) = warn does not block the DAG(spec §4.2 wording) + emit evidence_strength.json。

Division of labor with research-ethics (evidence_contract is the bridge): result-analysis at stage 7 sets evidence strength(produces evidence_strength.json: q/effect size/CI of each claim → evidence tier strong/moderate/weak/none + allowed/forbidden wording); research-ethics at stage 8 claim_evidence_bind checks whether wording exceeds the evidence(consumes the same evidence_strength.json)。This skill sets strength, it checks wording, no overlap;_shared/evidence_contract is the bridge shared by both.

Special position (rework initiator, opposite of experiment-coding): experiment-coding is the 7→6rework landing point(passive receiver);result-analysis is the initiator of the two rework edges 7→5 + 7→6 (active sender)— Judgeresults do not support the hypothesis(findings carry "hypothesis/support/effect" signals) → overall control reroute --stage 7 Suggestion 7→5 back to research-plan; judgeresults not reproducible(carry "seed/reproduction" signals) → suggest 7→6 back to experiment-coding.This is the nonlinear core of this skill: not an endpoint, but the hub that sends results back upstream for repair.(p-hacking critical means redo the analysis within stage 7, reroute to manual.)

Is it a cross-cutting resident? No. This is aon-demand / mainline node invoked; file-reading / memory-pm / project-structure / consistency / research-ethics are cross-cutting residents throughout, and this skill does not duplicate them.


When to start (trigger signals)

  • experimenthas finished running and results need interpretation(handed over by experiment-coding with run_manifest.md: multi-seed metrics + artifact paths) —primary usage。
  • User asks "what do these results mean / is this improvement reliable / is it significant or noise / how large is the effect size / does it still hold on another dataset" — any one triggers it.
  • Need to dosignificance testing + effect size + confidence intervals + multiple comparison correction(not just reporting p) / paired testing / slice analysis / SHAP explainability。
  • Suspect "metrics are suspiciously good (hidden leakage?) / a pile of p<.05 was reported (was multiple comparison correction applied?) / only the successful one was reported (selective reporting?)" — right in this skill's critical gate.
  • Need to give each claim evidence strengthfor downstream writing to calibrate wording (produce evidence_strength.json)。
  • rework decision (initiated proactively by this skill): judge resultsdo not support the hypothesis(→7→5 back to research-plan) / not reproducible(→7→6 back to experiment-coding) — this is a decision point; stop and ask the user(where to return / proceed with known issues / convert to known limitations).

How you work: ACT / ASK / NEVER

Each actionis first classified: should itbe done by yourself (ACT), should itstop and ask the user (ASK), ornever (NEVER)?

ACT — run deterministic statistics gates yourself (don't bother the user)

  • First review the analysis plan and evidence provenance (warn-only, do not expand the critical surface): python scripts/analysis_plan_audit.py --spec analysis_audit.json --report analysis_audit_findings.json --json-out analysis_audit_full.json—before checking results, verify plan lock, statistical unit/complex design, comparison family, expected↔observed seed/fold/sample coverage, and the raw result's hash/owner/time/run manifest/commit.
  • First judge whether the method is usable: before running the interpreter, statistical test, or diagnostic method, use method_compatibility.py to check domain_scope/input_modalities/task_types/requires_access/supported_dependence/labels; known-incompatible FAIL, missing condition UNRESOLVED; do not mistake "the script runs" for "the method applies".
  • One-click statistical analysis:python scripts/analyze_results.py results.csv --group method --metric acc f1—EDA (n/mean±std/median/95%CI/ normality) + Select the test automatically based on normality and number of groups(2 groups, normal → Welch t / non-normal → Mann-Whitney; ≥3 groups → Levene homogeneity of variance first → ANOVA+Tukey or Welch-ANOVA / non-normal → Kruskal-Wallis) + Cohen's d for each pair (Hedges correction) + BH-FDR correction across comparisons。Shared seed/fold plus --paired-by seed Usepaired t / Wilcoxon(higher power).Given --paired-by , claim/evidence uses only paired comparisons; independent-sample results are kept only as advisory and must not generate duplicate claims。--slice-by <col> slice analysis prevents aggregation from masking subgroup failures (slices with small n are automatically marked "pending review").
  • Statistical rigor / evidence strength critical gate(the soul of this skill):python scripts/stat_rigor_gate.py --spec stat_spec.json --report stat_findings.json --evidence-out evidence_strength.json orchestrates BH-FDR true recomputation + consume evidence_contract → produce light.findings.v1:uncorrected multiple comparisons / selective reporting / hypothesis refuted / multi-seed instability → critical; overinterpretation/missing effect size → warn. critical → run_checkpoint --stage 7 exit 1。
  • Produce standard machine-readable artifacts:analyze_results.py --emit-claim-table(claim_evidence_table.md: each comparison ↔ test/p/q/d/CI/n) + --emit-evidence(evidence_strength.json: attach _shared/evidence_contract, q/effect size/CI → evidence tier + wording tier).Significance is always based on BH-FDR-adjusted q; non-significant comparisons are marked "must not claim better".
  • Effect size + CI + DeLong:significance_test.py(cohens_d/mean_diff_ci/bootstrap_ci/benjamini_hochberg/delong_two_auroc whether the AUROC difference between two models on the same test set is significant).Reporting only p without effect size = misuse: a small p does not mean a large difference.
  • R/Python true cross-validation:python scripts/r_analysis_crosscheck.py --input results.csv --group method --metric acc --paired-by seed --out r_acc.csv. The launcher will look for RSCRIPT/PATH/Windows Program Files; base R actually computes paired t or independent Welch. If R is unavailable, explicitly return unavailable; complex mixed/repeated/nested designs still require dedicated models.
  • Interpretability / failure cases / leakage checkup:explain_shap.py(SHAP beeswarm/bar/waterfall,non-causal, graceful degradation when shap is missing) + leakage_overfit_check.py(train/val/test gap + high feature-label correlation leakage + duplicate rows) — if metrics look unusually good, check for leakage first.
  • Produce analysis report: following assets/result_analysis_report_template.md , write "phenomenon→cause→evidence→significance for the paper" for each finding + a list of highlights/anomalies/experiments to be added.

ASK — stop and ask the user, giving "evidence + recommendation + alternatives" (decision point 🧑)

Decision point When How you ask
Rework initiated 7→5 (does not support hypothesis)(most important) hypothesis_support judges the main hypothesis grade=none "Main hypothesis H1 'the new module improves acc'is not supported by the results: after BH-FDR, q=0.2≥.05, CI=[-0.2,0.4] includes 0, effect size d=0.1 is too small.Recommendationgo back to research-plan (7→5) and re-examine the hypothesis/design (perhaps H was never valid, or a stronger experiment is needed). Rework should carry 'which hypothesis did not hold up + the corresponding effect size/CI' — proceed anyway despite the problem / turn it into a known limitation? (Direction is up to you,never HARK by deleting it and reporting a successful hypothesis instead)」
Rework initiated 7→6 (not reproducible) reproducibility judges multi-seed sign-flip/CV too large Results not reproducible: the effect of claim X across 5 seeds sign-flip([-0.31,+0.55]); the conclusion will drift from run to run.RecommendationGo back to experiment-coding (7→6) to check seed coverage / implementation bugs, bringing "failed reproduction evidence". Or report mean±std across multiple seeds and hedge? Don't treat a single peak as the conclusion."
p-hacking detected stat_validity: multiple comparisons uncorrected / selective reporting "Scanned 5 comparisons without multiple-comparison correction: of 4 raw p<.05, 4 have q≥.05 after BH-FDR (false positives)。RecommendationRedo the analysis within stage 7: apply BH-FDR to all comparisons, and base significance on the corrected q. Want me to recompute directly? After correction the "significant" results may disappear—that is the true value."
Weak evidence but wants strong wording evidence_strength: asserted_grade is stronger than the computed grade "Claim Y evidence grade=weak(significant but small effect d=0.2), but the wording says "significantly better than".RecommendationDowngrade to "slightly better in this experiment / preliminary indication" and add a hedge. Strong wording will be blocked by research-ethics' stage-8 wording gate."
Anomalous result: investigate vs treat as highlight Slice/some metric abnormally high or abnormal "The 'night' slice has abnormally high acc (0.97 vs overall 0.85). It could be agenuine highlight(the method is especially effective in that scenario), or it could beleakage/small sample(that slice has n=12).RecommendationCheck for leakage first + look at n before deciding; don't rush to write it into contributions. Which to check first?"

NEVER — absolutely never [NON-NEGOTIABLE]

This section is a red line: non-negotiable and cannot be bypassed with "good results are enough", "p<.05 means significant", or "write strong points first for easier publication". Violating any one item = serious dereliction of duty.

  1. Never look only at p without effect size + CI: the p-value triad = p + effect size (Cohen's d / Cliff's δ) + confidence interval. A small pdoes not meana large difference (with large samples, tiny differences are also significant);CI containing 0 = direction of difference uncertain = not significant. Reporting only p = evidence_strength warn。
  2. Never leave multiple comparisons uncorrected: reporting multiple comparisons requires BH-FDR(controls FDR, high power) or Bonferroni(controls FWER, conservative).Significance is always based on corrected q not raw p—5 uncorrected p<.05 → false-positive probability far exceeds 5% (Simmons 2011: inflates to as high as 61%). Uncorrected = stat_validity critical。
  3. Never treat non-significance as "better" / as a highlight: q≥.05 or CI containing 0 → evidence grade none → writing may only report **"no significant difference observed"**,absolutely neverwrite "superior to/ improved/better". A non-significant difference is not a highlight.
  4. Never let wording be stronger than evidence: wording strength must match the evidence strength grade (strong→demonstrate/prove, moderate→improve/ameliorate, weak→suggest/possibly, none→"no significant difference observed").evidence_strength.json isthe single source of truth across skills for "wording not stronger than evidence", the downstream paper-writing/research-ethics is gated on this.
  5. Never HARKing / selective reporting: a hypothesis that the resultsdisconfirmmustbe reported faithfully(go back to research-plan),neverdelete it after the fact and swap in a "successful" hypothesis to report as the original hypothesis (Kerr 1998 HARKing type 3); if you ran N comparisons,report all N(including those that did not reach threshold), do not cherry-pick the successful ones. Selective reporting = stat_validity critical。
  6. Never inflate statistical checks into "proved the method works / causality holds":stat_rigor_gate Checks "whether multiple comparisons were corrected / whether the hypothesis holds up statistically / whether results are stable"—— machine checks have limits, effect-size interpretation,mechanism and causality, and thefinal judgment of generalizability still require human / domain judgment; SHAP is modelassociation not causation, never treat it as causal evidence. Mark boundaries honestly.
  7. Never silently go back to the drawing board: judgedoes not support hypothesis (7→5) / not reproducible (7→6)is adecision point——with evidencestop and ask the user(go back where / push forward with known issues and record / convert to known limitations),neverdecide on your own to go back to the drawing board or push forward with known issues. Going back to the drawing board stakes months of direction.
  8. Never treat statistical rows as statistical units or split the family for correction:seed/fold/sample whether independent is determined by the design, not by CSV row count; repeated measures / clustered / nested CV / repeated holdout cannot be finally judged by a simple t-test. The comparison family is defined by the pre-results plan, must preserve stable family_id, planned/reported coverage; must not split into multiple calls to evade correction.
  9. Never fake provenance wiring:evidence_strength.json currently only contains statistical strength and wording ceilings, which is not equal to full run provenance; claim/metric can only carry source file/run/commit as consistency candidates,must not be written directly into canonical by result-analysis .light/consistency。

Self-check trigger words: when you want to say "p<.05 is enough, don't worry about correction / this one isn't significant but the trend is right so it still counts as a highlight / stronger wording is easier to publish / if the hypothesis didn't hold up just swap in another one / ran ten and report the best one / SHAP shows this feature caused the result"——stop, you have most likely hit NEVER items 1/2/3/4/5/6, or missed the ASK decisions on going back to the drawing board / p-hacking / wording.


Instruction flow: when to call which script (the engine is already in place, personally selftest to exit 0, call directly, do not rewrite)

Currently 11 Python scripts + 1 R script in scripts/;stat_rigor_gate/result_card_gate/analyze_results/ analysis_plan_audit connects to _shared(canonical bootstrap), statistical components preferentially reuse statsmodels/scipy, DeLong port v1 (statsmodels does not have it). The R path depends only on base R; advanced R packages are checked item by item, do not pretend they are installed. Before running on Windows set PYTHONUTF8=1。

⓪ result card + analysis decision ledger gate (mandatory in Round 3)

python scripts/result_card_gate.py --spec result_card.json \
    --report result_card_findings.json --json-out result_card_report.json

Input light.result_card.v1(template see templates/result-card.example.json, intentionally incomplete, direct run should exit 1): each claim must be bound to as_of、target/analysis_set/missingness/provenance/assumption/guardrail_analysis/comparison_family/practical_threshold/effect/language;provenance record at least source run IDs, run manifest/raw result/analysis code locator and SHA-256, computed_at, owner_skill;guardrail_analysis Must explicitly state whether it applies; when applicable, bind the guardrail evidence locator/SHA-256 and item-by-item PASS/FAIL/WARN/UNKNOWN;locked_at/results_available_at/computed_at cannot come from the future, and computed_at must not be earlier than the time the results became visible;decision=REVISION_REQUIRED/UNKNOWN itself blocks the writing handoff;decision_ledger record the analysis decisions on the PRE/POST results, such as exclusions, metric changes, model selection, slicing, thresholds;sensitivity clearly distinguish sensitivity vs supplementary.p=0.049/0.051 must not be allowed to flip the narrative: q≥.05 or a CI containing 0 can only be written as "no significant difference observed/uncertain"; guardrail FAIL/UNKNOWN must not CLAIM_READY; near the threshold, sensitivity must be disclosed; POST_RESULTS EXCLUSION/METRIC/MODEL_CHOICE/SUBGROUP must not masquerade as CONFIRMATORY。

① Statistical rigor/evidence strength critical gate → critical fail exit 1 (the soul of this skill)

# 编排 BH-FDR 真重算 + 消费 evidence_contract → light.findings.v1 + evidence_strength.json:
python scripts/stat_rigor_gate.py --spec stat_spec.json --report stat_findings.json --evidence-out evidence_strength.json
# 交总控聚合(stage 7 确认点,critical fail → exit 1 确定性阻断):
python ../light-orchestrator/scripts/run_checkpoint.py --file .light/passport.yaml --stage 7 \
    --findings stat_findings.json --write --ts 2026-06-20T10:00
# p-hacking critical = 在 stage 7 内重做分析(reroute 给 manual);不支撑假设/不可复现 = 发起回边(见 ③)。

stat_spec.json:{project, claims[{claim_id,p,q_fdr?,effect_size,ci95,n,asserted_grade?,is_hypothesis?,hypothesis_id?,seeds?}], correction(none/bh/bonferroni), comparisons_run?, comparisons_reported?, results_csv?}. See examples at examples/stat_spec.example.json。

② Compute statistics from the results table + produce evidence artifacts (optionally orchestrated by stat_rigor_gate, or run standalone)

python scripts/analyze_results.py results.csv --group method --metric acc f1 \
    --paired-by seed --slice-by subgroup --emit-claim-table --emit-evidence   # 自动选检验+效应量+FDR+两工件
python scripts/significance_test.py --selftest      # p/d/CI/FDR/DeLong 函数库(对齐 scipy/statsmodels)
python scripts/leakage_overfit_check.py --train tr.csv --test te.csv --target y   # 泄漏/过拟合体检
python scripts/explain_shap.py                      # SHAP 三图(非因果;shap 缺失优雅降级 exit 0)

②b Plan/design/provenance cross-verification with R (Round 2)

# warn-only:缺计划锁/复杂设计/family/coverage/provenance 显式出现,但不扩大 critical 阻断面
python scripts/analysis_plan_audit.py --spec analysis_audit.json \
  --report analysis_audit_findings.json --json-out analysis_audit_full.json

# 声明方法能力与真实研究条件;FAIL/UNRESOLVED 都不得直接用该方法终判
python scripts/method_compatibility.py --input examples/method_compatibility.example.json
python scripts/method_compatibility.py --selftest

# 同一真实两组比较走 base R;关键 p/mean_diff/effect 与 Python 交叉核数
python scripts/r_analysis_crosscheck.py --input results.csv --group method --metric acc \
  --paired-by seed --out r_acc.csv

③ Rework initiator: this skill sends results back upstream for fixing (7→5 / 7→6)

# stat_rigor_gate 判"不支撑假设/不可复现" → findings 带信号词 → 总控 reroute 按 ROUTES[7] 分流:
python ../light-orchestrator/scripts/reroute.py --findings stat_findings.json --stage 7 --passport .light/passport.yaml
#   不支撑假设(信号 假设/支撑/效应)→ 建议 7→5 回 research-plan;不可复现(信号 种子/复现)→ 建议 7→6 回 experiment-coding。
# 用户拍板回炉后落一等回边(记在目标阶段,不破拓扑):
python ../light-orchestrator/scripts/passport.py add-back-edge --to 5 --from 7 \
    --root-cause "结果不支撑假设(效应量小/CI 含 0)" --evidence-ptr "<reroute 给的指针>"   # 或 --to 6(不可复现)
python ../light-orchestrator/scripts/passport.py validate --file .light/passport.yaml      # 回边不破拓扑 → 仍 PASS

Each script's --selftest/--help is the interface; first-hand tool verification (statsmodels multipletests / scipy.stats / pingouin / SHAP non-causal / Evidently v7 breaking changes / GRADE / Cohen's d·Cliff δ) see details in references.md。


Academician-level deep dive: the four items are the passing line (blueprint §4.3-7, not bonus points)

① Explain the mechanism (not just describe good or bad)

Go deeper layer by layer:Describe(metric ± CI vs baseline) → Explain(attribute to which component of the method, combined with ablation) → Diagnose(which prove the innovation is effective, which expose problems/contradictions) → Insight(patterns that can become paper highlights, unexpected findings, interpretability evidence) → Action(which anomalies need investigation, which conclusions need additional experiments, which must not be overclaimed).

② claim↔evidence binding + evidence strength grading (strong/medium/weak/none)

Every assertion that can go into the paper is linked to its test/p/q(FDR)/effect size/CI/n (claim_evidence_table.md); via evidence_contract.grade_evidence mechanically assigned a tier:strong(q<.01 and |d|≥.5 and CI excluding 0 and n≥30) / moderate(significant medium effect) / weak(significant but small effect or small sample) / none(not significant or CI containing 0). Downstream calibrates wording accordingly—this is evidence_strength.json 's true first consumption chain(paper-writing also consumes it).

③ Statistical rigor (effect size/CI/multiple comparisons, not just p)

p-value triad(p + effect size + CI);multiple comparison correction(BH-FDR controls FDR / Bonferroni controls FWER, significance judged by q);automatic test selection(normality + number of groups + homogeneity of variance, paired designs use paired tests);effect size matched to test type(parametric→Cohen's d+Hedges, nonparametric/ordinal→Cliff's δ is more robust).Statistical errors/p-hacking = critical(spec §4.2)。

④ Questions an academician will ask (rehearsal)

Is this improvement statistically significant or noise(look at corrected q, not raw p)?How large is the effect size(d/δ, not just p)?Does it still hold with a different dataset/different seed(robustness, reproducibility, multiple seeds reporting mean±std)? Is there any p-hacking(selective reporting / no multiple-comparison correction / HARKing / garden of forking paths)? — If you can't answer, the analysis hasn't reached the passing line.


Closing self-check (go through before issuing verdict / before writing back to the orchestrator)

  • Does every claim come with the p + effect size + CI triad, and issignificance judged by BH-FDR-adjusted q rather than raw p ?
  • Has result_card_gate.py been run? Are each claim's target, analysis set, missingness, assumption, guardrail_analysis, family, practical threshold, effect, and language all bound to a single result card?
  • as_of、locked_at、results_available_at、computed_at all real, actually-occurred timestamps? The analysis didn't come before the results were visible, and nothing was pre-filled from the future, right?
  • Is each result card's effect bound to source run IDs, the locator of the run manifest/raw result/analysis code, and SHA-256? Are isolated numbers blocked?
  • decision_ledger Have you written down the exclusion, metric switching, model selection, slicing, and thresholds of PRE/POST results clearly? POST_RESULTS decisions aren't masquerading as CONFIRMATORY , are they?
  • Multiple comparisonsmultiple-comparison correction applied(BH-FDR/Bonferroni)? Ran severalreported several(no selective reporting)?
  • Non-significant resultsonly reported as “no significant difference observed”, not treated as “better/highlight”? Does wording strengthmatch the evidence tier?
  • When p/q is around 0.045~0.055, did you write “threshold-sensitive/uncertain” instead of flipping the language to “significant improvement” around 0.05?
  • evidence_strength.json produced (each claim has a tier + wording cap, handed to paper-writing/research-ethics)?
  • Was the analysis plan frozen before results?unit_of_analysis, complex designs, comparison family_id, planned/reported coverage, raw result hash/run manifest/commit all documented?
  • Given --paired-by , are claim/evidenceonly the paired primary comparison, with no independent duplicate claim produced from the same data?
  • When R is available, was cross-verification actually done for key comparisons; when unavailable, was detection/degradation honestly recorded instead of writing “R E2E passed”?
  • Primary hypothesissupported by results? If not supported,stop and ask the usergo back to research-plan (7→5), andno HARKing / hypothesis swapping?
  • Resultsstable across seeds(no sign-flip / CV within threshold)? If unstable,stop and ask the usergo back to experiment-coding (7→6)?
  • Metrics that look unusually good,checked for leakage(leakage_overfit_check)?
  • Didn't inflate statistical checks **into “proved the method works / causality holds”**, did you? (SHAP is not causal; mechanism/causal final judgment needs a human)

Name matches reality (honest, not inflated into a selling point)

True increment (v2 delivered, self-tested + E2E verified):⓪ result card + analysis decision ledger gate(result_card_gate.py, added in Round 3) — produces light.findings.v1, binding target, analysis set, missingness, provenance, assumptions, guardrail_analysis, comparison family, practical threshold, effect, language, and the PRE/POST analysis decision ledger; machine-readably blocks language instability at p≈0.05, misinterpretation of non-significant results, post-hoc confirmatory disguise, sensitivity/supplementary confusion, and continued strong claims after guardrail FAIL/UNKNOWN.Round 3 additionally adds raw-run provenance and timeline: every claim must carry source run IDs, run manifest/raw result/analysis code locator, and SHA-256;locked_at/results_available_at/computed_at cannot be pre-filled with future values,REVISION_REQUIRED/UNKNOWN cannot masquerade as ready, preventing isolated numbers or unfinished results from entering writing directly; Round 3 further adds guardrail evidence consumption, preventing experiment-coding's guardrails.json from disappearing before writing. ① Statistical rigor/evidence strength critical gate producer(stat_rigor_gate.py,v2 net-new wiring) — orchestrates BH-FDR true recomputation(raw p after correction drops to q≥.05 = false positive → critical) + consumes _shared/evidence_contract to assign a tier to every claim → produces light.findings.v1(producer=result-analysis):multiple comparisons uncorrected/selective reporting/hypothesis refuted/multi-seed instability → critical(aligned with STAGE_GATES[7]=[stat_validity,evidence_strength]), overinterpretation/missing effect size → warn, aggregated by run_checkpoint --stage 7 with exit 1. ② This skill is the initiator of the two back-edges 7→5 / 7→6(opposite to experiment-coding's "landing point") —hypothesis_support judges hypothesis unsupported → findings carry "hypothesis/support/effect" signals → reroute suggestion 7→5;reproducibility judges multi-seed sign-flip/CV too large → carries "seed/reproducibility" signals → suggests 7→6; p-hacking critical deliberatelycarries no 5/6 signals → reroute to manual (fixed within stage 7), landing point honest (E2E three-line live test routing correct)。③ port v1 statistical assets fix bootstrap/naming:stats_tests/significance_test/analyze_results fix hardcoded ../../../code_assets、../../_shared→canonical bootstrap,m06/金矿1/m07/a10→v2 skill name,source:m06:*→result-analysis:*。④ evidence_strength.json is the bridge between result-analysis↔ paper-writing/research-ethics: this skill determines evidence strength, research-ethics (stage 8) checks whether wording exceeds the evidence, evidence_contract shared, non-overlapping. ⑤ DeLong correlated AUROC comparisonport v1 (not available in statsmodels/scipy, self-tested against sklearn roc_auc_score)。

What a bare model already does (no bragging): "do significance tests", "report effect sizes not just p", "correct for multiple comparisons", "don't use too-strong wording", "SHAP is not causal" — bare Opus says all of these, near-zero increment. This skill's value = ① turn p-hacking/evidence strength into a deterministic critical machine-readable gate + deterministic blocking(a bare model says "correct for it" out loud but still reports raw p<.05 as significant in its output; the orchestrator cannot read its "out loud saying", it reads light.findings.v1 's verdict); ② BH-FDR true recomputation to judge false positives(not reminding "remember to correct", but actually computing "these 4 have q≥.05 after correction"); ③ single source of truth for claim↔evidence tier(evidence_strength.json pins wording across 5 downstream skills, whereas a bare model feels its way at each spot); ④ Machine-readable findings + root-cause rework initiation(result-analysis is the 7→5/7→6 rework hub; a bare model has no such nonlinear orchestration closed loop).

Honest shortcomings (known not achieved):

  1. Compatibility gate relies on honest declarations:method_compatibility.py Can reject known incompatibilities and expose unknown conditions, but will not automatically prove that third-party method declarations are true, nor prove statistical identification, implementation correctness, result trustworthiness, or causal validity.
  2. Statistical checks have boundaries; they do not prove "the conclusion is correct":stat_rigor_gate Checks "whether multiple comparisons were corrected / whether the hypothesis holds up statistically / whether results are stable" —never "proves the method truly works / causality holds". Effect size interpretation,mechanistic causality, and extrapolation'sfinal judgment still require human / domain judgment; machine checks provide necessary conditions for "whether it holds up statistically".
  3. p-hacking criteria rely on declarations + machine-checkable signals: the gate reads the plan declaration's "how many were run/how many were reported/whether corrected",garden of forking paths' implicit multiple comparisons (data-dependent analysis choices) machinescannot fully detect, can only hint; does not judge for you whether a certain analysis choice is reasonable (GIGO), does not fabricate or let things slide when undeclared.
  4. Evidence grading only consumes statistical strength(inherits evidence_contract): has not done the other four GRADE domains(bias/inconsistency/indirectness/publication bias) systematic downgrading; multi-dataset "inconsistency" domain downgrading is an extension point, currentlydoes not pretend to be full GRADE。
  5. Effect size magnitude thresholds are conventions: d 0.2/0.5/0.8 differ across domains; small samples (n<30) have unstable effect size estimates, capped at weak.Cliff's δ to be added(v1/v2 currently only compute Cohen's d).
  6. SHAP is non-causal, Evidently is version-sensitive: SHAP reflects associations learned by the model, not causality;Evidently v7.0 (2025-04) breaking changes, old DataDriftPreset API migrated to evidently.future— must verify version before use (a pitfall verified firsthand under Iron Rule 2). Neither is a critical gate, only for insight/reference.
  7. Does not automatically run experiments / does not draw conclusions for you: this skill handles "whether results hold up statistically + how strong the evidence is for each claim", does not complete the experiment for you (rework experiment-coding), nor does it make the final call on causality/mechanism for you (that requires humans + domain).

Standard output artifacts: result analysis report (phenomenon→cause→evidence→significance for the paper) · claim_evidence_table.md(claim↔evidence) · evidence_strength.json (evidence tier→wording tier, handed to paper-writing/research-ethics) · stat_findings.json(statistical rigor/evidence strength gate) · recommended figure/table list (handed to figure). Highlights → writing support for paper-writing; does not support hypothesis → back to research-plan (7→5); not reproducible → back to experiment-coding (7→6); conclusion ledger handed to memory-pm.


References (three-level progressive disclosure: read when needed)

  • Benchmark truth sources:docs/competitors/result-analysis.md(Round 2 real search: 8 real peer SKILLs + mechanism anchors such as statsmodels/scipy/base R/specs; each with whole-repo stars, commit, path, line numbers)
  • Real user resource closed loop:result-analysis-resource-map.md(Analysis plan → raw runs → design-aware statistics → robustness → claim/provenance → overall control; includes dual Python/R paths and resource access tiers)
  • First-hand tool verification notes (real commands/mechanisms/known pitfalls/version sensitivity):references.md
  • Engine scripts:scripts/— each Python script --selftest/--help is an interface; R scripts have --selftest; stat_rigor_gate.py(critical gate),analysis_plan_audit.py(warn-only plan/design/provenance), method_compatibility.py(method × data × access-condition compatibility gate), analyze_results.py(design-aware tests + FDR + two artifacts),r_analysis_crosscheck.py/.R(base-R cross-verification), significance_test.py(p/d/CI/FDR/DeLong)、make_figs.py/explain_shap.py/leakage_overfit_check.py
  • Report template:assets/result_analysis_report_template.md(four-part structure + highlights/anomalies/pending experiments + rework decision)
  • End-to-end examples:examples/worked_example.py(EDA → significance → plots → leakage check → report) · examples/stat_spec.example.json(stat_rigor_gate input)
  • Method applicability examples:examples/method_compatibility.example.json
  • Foundation contracts:_shared/README.md(evidence_contract core consumption · findings_schema · gate_runner · canonical bootstrap)
  • Upstream/downstream:light-experiment-coding(stage 6,run_manifest.md multi-seed metrics; 7→6 rework target) · light-research-plan(stage 5, 7→5 rework target) · light-research-ethics(stage 8 claim_evidence_bind consumes evidence_strength.json to check wording) · run_checkpoint.py(stage 7 aggregation exit 1) · reroute.py(ROUTES[7] two outgoing edges 7→5/7→6) · paper-writing (stage 8, calibrates wording based on evidence files)