agentsclimarketplace

Brain check

Skill zl3311/alpha-mining/.cursor/skills/brain-check

LLM-agent pipeline for formulaic alpha discovery on WorldQuant BRAIN, published with the full research archive it produced (archived)

Install
npx -y skills add zl3311/alpha-mining --skill brain-check

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 12 days oldThe repository was created 12 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

How to check BRAIN alpha details and all 8 submission checks. Use after simulation to verify submission viability. Trigger on: check, BRAIN check, submission check, alpha check, IS check, all pass.

SKILL.md

4.0 KB, as published. Nobody here has run it

BRAIN Alpha Check

Usage

uv run python3 scripts/brain_check.py --alpha-ids ABC123 DEF456
uv run python3 scripts/brain_check.py --top 20
uv run python3 scripts/brain_check.py --top 20 --json  # Machine-readable

CRITICAL: "ALL PASS" from brain_check.py is not self-corr clearance

scripts/brain_check.py reads GET /alphas/{id} (alpha detail). On that payload, SELF_CORRELATION is often stuck at PENDING even after the dedicated check endpoint has already resolved. brain_check.py only counts explicit FAILs, so its "ALL PASS" / f=0 summary can report success while self-corr is still unverified. NEVER read "ALL PASS" as "self-corr is fine."

For authoritative self-corr, poll GET /alphas/{id}/check via:

uv run python3 scripts/pnl_correlation.py --alphas <id> --brain-check

That path waits for a terminal PASS / FAIL / ERROR (not PENDING). See the pnl-correlation skill and data/knowledge/rules/self-corr-check-long-poll.md.

The /check Endpoint

Endpoint: GET /alphas/{id}/check (GET only — POST returns 405)

Returns the authoritative PASS/FAIL for all 8 submission checks once ready. Each check includes:

  • result: PASS, FAIL, PENDING, or ERROR
  • value: the measured value (e.g. correlation coefficient for SELF_CORRELATION)
  • limit: the threshold (e.g. 0.7 for SELF_CORRELATION)

While computing, BRAIN may return empty 200 + Retry-After (long-poll). Under peak load this can take many minutes; also expect transient 502/429. Submitted alphas typically return only ALREADY_SUBMITTED here (no SELF_CORRELATION row) — peer corr still comes from /correlations/self.

Important: For SELF_CORRELATION, result: PASS can coexist with value > limit when the Sharpe premium escape is met (candidate Sharpe

= 1.10x the max Sharpe among correlated peers). The result field is authoritative — trust it over comparing value vs limit manually.

Related Endpoints

EndpointPurposeFree-tier
/alphas/{id}/checkAuthoritative 8-check PASS/FAILYes
/alphas/{id}/correlations/selfFull self-corr breakdown vs bookYes
/alphas/{id}/correlations/prodCorrelation vs production alphas403

The 8 Submission Checks

All must show PASS for a successful submission.

CheckWhat it meansLimitIf it FAILS
LOW_SHARPESharpe ratio too lowmin 1.25Expression is too weak. Try different factors.
LOW_FITNESSFitness too lowmin 1.0Usually turnover too high. Add ts_decay_linear or increase decay.
LOW_TURNOVERTurnover too lowmin 0.01Signal too stable (e.g., slow fundamental). Rare problem.
HIGH_TURNOVERTurnover too highmax 0.70Signal changes too fast. Add ts_decay_linear, increase decay, use ts_mean.
CONCENTRATED_WEIGHTWeights too concentratedmax 0.10Sparse data creates heavy bets. Simplify blend, add high-coverage factor, or switch universe.
LOW_SUB_UNIVERSE_SHARPESub-universe Sharpe too low~43% of overallSignal doesn't work in sub-groups. Add scl12_buzz stabilizer (100% coverage).
SELF_CORRELATIONToo correlated with existing alphas0.7 (+ 1.10x Sharpe premium escape)Change signal family entirely. Try MARKET neut. Even above 0.7, can PASS if Sharpe >= 1.10x peer. See pnl-correlation skill.
MATCHES_COMPETITIONmust passRarely fails. Expression too similar to public examples.

Yearly Breakdown

Always check the yearly breakdown on the platform after simulation. A signal can pass aggregate checks but have one terrible year. Look at the yearly stats on the platform URL.

Platform URL Format

https://platform.worldquantbrain.com/alpha/{alpha_id}

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.