Communitygithub.com

austin-starks/Public-Portfolio-Challenge

マルチファミリー戦略のベイクオフを実行します。SEARCH→CERTIFYファネルを使用して、多数の候補メカニズムをスクリーニングし、認定されたデプロイ勝者を決定します。

Public-Portfolio-Challenge とは?

このスキルは、AIエージェント(Claude Code、Cursor、Codexなど)が、複数の戦略ファミリーを体系的に探索・評価し、最終的に「デプロイ可能な勝者」を認定するための二層構造(SEARCH→CERTIFY)を提供します。SEARCH層(軽量)は、バックテスト、バリアント作成、最適化、系統的スイープを通じてアイデアを「KILL」または「PROMOTE」しますが、最終判定は絶対に行いません。CERTIFY層(本格)は、PROMOTEされたシードに対してウォークフォワード認定を実行し、PASS/FAILまたは「デプロイ可能な勝者なし」という最終判定を下します。最低限の作業として、3つ以上の異なるメカニズムファミリーの認定が必要であり、各ファミリーにつき最大3回の認定試行が可能です。このスキルは、判定の完全性を強制し、KILLの理由には具体的なゲート違反の証拠を要求します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/austin-starks/Public-Portfolio-Challenge/tree/HEAD/skills/strategy-bakeoff

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

マルチファミリー戦略のベイクオフ

二層構造の SEARCH → CERTIFY ファネル。最低限の作業範囲が義務付けられています。中心的なルール: 判定はSEARCH層からは禁止されています。 ウォークフォワード認定(walk-forward-oos)のみが キャンペーンを終了できます。

2つのツール、2つの役割

  • SEARCH層(軽量):backtest_portfolio、create_portfolio_variant、optimize_portfolio、 systematic_sweep。この層はアイデアを KILL するか、認定に PROMOTE することのみ許可されます。「ランク付けされたSEEDのセット」を出力し、決して判定を下すことはできません。
  • CERTIFY層(本格):PROMOTEされたシードに対するウォークフォワードスイープ認定。この層のみが PASS / FAIL または「デプロイ可能な勝者なし」を結論付けることができます。

どの近隣領域も死んだと宣言される前に、デプロイメント × 構造 × DTE × デルタ グリッドに対する systematic_sweep がSEARCH層で 必須 です。

最低限の作業範囲

  • いかなる「勝者なし」の判定の前に、3つ以上の異なるメカニズムファミリーを認定 すること。真に異なるメカニズムであり、同じファミリーの3つの微調整ではありません。ファミリーメニュー(3つ以上選択):(a) モメンタム・ロングコール/バーティカル;(b) レジームスイッチ・ロング/フラット;(c) 定義済みクレジット/ショートプレミアム(フラット/下落相場で収益);(d) カレンダー/ダイアゴナル・タイムスプレッド;(e) プロテクティブカラーまたはプットスプレッドで資金調達したロング。
  • ファミリーごとに 最大3回の認定試行(洗練された gene_intents、より深いグリッド、またはより広い検証でクリーンなシードから再スイープ)まで。その後、そのファミリーは「枯渇」します。
  • 現実的な総数:約3~9回のスイープ認定、さらに既存の認定済みをシードとして含む。
  • 各スイープは非自明:3つ以上の gene_intents 軸 × それぞれ3つ以上の値(正確なフィールドマッピングについては sweep-reoptimization を参照)。1軸または2値のスイープは適格ではありません。

ファミリー別認定台帳(必須)

この表を実行ログに記録してください — 台帳行がないファミリーは探索されていません。

| ファミリー | シードID | get_sweep_surface ✓ | gene_intents軸 | スタディID | crossFoldRobustSelectionキー | アセンブルされたブックID | フォールド別OOSゲート結果 | PROMOTE / KILL(理由) |

シード別認定ループ

get_sweep_surface → run_walk_forward_study(最初に preview_only)→ aggregate.crossFoldRobustSelection を読み取る → デプロイ形状のブックをアセンブル → アセンブルされた オブジェクトでゲート判定 → 台帳行を書き込む。認定フロア(certification:true):参加率 ≥ 0.35、個別銘柄数 ≥ 9、検証リターン ≥ 0、検証ソルティノレシオ ≥ 0.5。

判定完全性ルール(キャンペーンの中心的な規律)

  • 認定をゼロ回最適化 = 無効であり、「正直なデプロイなし」ではない。 候補シードが認定最適化を実行していない状態で判定を下すことは — 特に 「デプロイ可能な勝者なし」/「構造的不可能性」 — キャンペーンを無効にします。(以前の実行では、最適化認定をゼロ回実行して不可能性を宣言していました。)
  • N個の手作りポイントからの不可能性主張は禁止 — systematic_sweep + 3ファミリー以上の作業範囲を引用し、ファミリーごとに1つの結合ゲートをスタディIDの証拠とともに明示すること。
  • 自身のデータ内の1つの反例が、包括的な不可能性主張を禁止する — 結合制約を特定し、一般化しないこと。
  • 結合制約の帰属: すべてのKILLは、唯一の不合格ゲートと認定された証拠を明示すること。「概してパフォーマンスが悪かった」はKILLの理由になりません。
  • 候補あたり1つのメカニズム変更 — これによりKILL/PROMOTEが明確に帰属します。
  • 是正策の一貫性: 提案された是正策は、KILLされた候補の測定された状態と矛盾してはなりません(ポスチャーキャップの下で不合格になったブックに「デプロイメントを上げる」と提案しないこと;ドローダウンで不合格になったブックに「凸性を追加する」と提案しないこと)。

options-structure-rules を参照して、アフォーダビリティラダーのKILLパスと既知の敗者を確認し、lockbox-holdout を参照してベースライン(A/B/C)と最終的なシングルタッチ確認を確認してください。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

austin-starks/Public-Portfolio-Challenge

Build alternative-data custom indicators on NexusTrade (Reddit/WSB mentions, congressional disclosures, insider filings, news-flow) and wire them into a certified book as a rank/tilt/filter signal. Use when adding alt-data to a strategy, building a CustomIndicator via compute sessions, auditing lookahead safety or per-ticker coverage, or deciding whether a data series is dense enough to drive a rank. Covers the compute-session workflow, the sparse-series rule, and source recipes (see references/). Invoke with the NexusTrade MCP connected.

austin-starks/Public-Portfolio-Challenge

Measure a NexusTrade options book's TRUE participation at a fixed cold-start capital base, defeating the compounded-NAV breadth illusion. Use whenever a book's headline \"holds N/21 names\" needs validating, when a live book collapses to a single name (the OSCR trap), when checking whether a SelectTop / per-name-allocation / total-budget change degraded simultaneous participation, or when a certification needs a breadth gate. Uses audit_backtest_breadth at held-fixed $25k.

austin-starks/Public-Portfolio-Challenge

The \"loudly declare\" protocol for platform, engine, or data bugs during a NexusTrade certification campaign — bugs are a first-class deliverable, not something to route around. Use whenever a NexusTrade tool errors, hangs, or returns numbers that contradict the config; whenever you're tempted to write \"probably an engine quirk\"; or when a discovered bug invalidates prior backtests and results must be quarantined. Includes the bug hand-off doc template (see references/BUG_TEMPLATE.md).

austin-starks/Public-Portfolio-Challenge

The GATED deploy + cleanup flow for a NexusTrade live book — clone the finalist, preview a delta reconcile, stage UNAPPROVED orders, verify fills. Use ONLY after the human explicitly says \"deploy + clean up\" and names a finalist. Covers the clone-before-reconcile ordering, the single-tick reconcile expectation, stale-pending-order hygiene, the signal-freshness gate, and why you can never approve orders yourself. Nothing here runs during certification.

austin-starks/Public-Portfolio-Challenge

The mandatory pre-flight contract checks (Stage S0) that must pass before trusting NexusTrade's certification engine for any strategy work. Use at the start of a bakeoff or certification campaign to prove the walk-forward engine runs end-to-end, windows don't leak, fold winners persist, and the engine doesn't fabricate values for dead/not-yet-listed names. Each check has a STOP-and-report failure mode; these runs do NOT count toward any certification minimum.

austin-starks/Public-Portfolio-Challenge

The single-touch lockbox — a final anti-overfitting holdout run once, after design freeze, on a window held out from every fold, sweep, and search. Use when finalizing a bakeoff winner before deploy, setting up the A/B/C baselines as OOS bars, or running the S1.5 gate-coherence auto-relax. Covers why looking at the lockbox twice burns it, the lockbox pass conditions, and the three baselines. The lockbox is distinct from the walk-forward OOS folds.

austin-starks/Public-Portfolio-Challenge

The hard structural constraints for the Public Portfolio Challenge momentum-LEAP options book — the spread-shape rule, the take-profit convexity-cap footgun, the affordability ladder, and the known losers not to re-test. Use whenever building or auditing an options strategy structure, checking spread-shape compliance before a certification, choosing DTE/strike rungs, or deciding whether a proposed structure change is even allowed. A violation is an automatic certification FAIL.

austin-starks/Public-Portfolio-Challenge

Orchestrate an out-of-sample certification of a NexusTrade trading strategy or live book — the master discipline behind the Public Portfolio Challenge. Use whenever you must decide PASS/FAIL on whether a portfolio holds up out of sample before deploying real money, replaying the Episode 10 runbooks, or running a \"certify my book\" / \"prove it out of sample\" / \"re-certify the fix\" task with the NexusTrade MCP connected. Pulls in walk-forward-oos, breadth-audit, sweep-reoptimization, options-structure-rules, bug-protocol, and deploy-gate.

austin-starks/Public-Portfolio-Challenge

The single entry point that executes a Public Portfolio Challenge episode or addendum runbook end-to-end, delegating each stage to the functional skills. Use when asked to run/execute/replay Episode 10, its bakeoff, or its addendum with the NexusTrade MCP connected. Reads the target runbook, pins its real artifacts (IDs, the incumbent bar), sequences the stages, and stops at the gated deploy. It orchestrates; the functional skills do the work.

austin-starks/Public-Portfolio-Challenge

Re-optimize a NexusTrade strategy with a walk-forward SWEEP and label parameter provenance — the discipline that prevents deploying inherited knobs. Use whenever a structural change (sizing, rung depth, universe membership, DTE family, adding a rank signal) forces a re-sweep, when authoring gene_intents from get_sweep_surface, when choosing sweep over GA for a deploy cert, or when selecting the cross-fold-robust winner instead of the per-fold argmax. Invoke with the NexusTrade MCP connected.

austin-starks/Public-Portfolio-Challenge

Run and read a NexusTrade walk-forward out-of-sample study — the certification engine behind the Public Portfolio Challenge. Use when certifying a fixed portfolio (backtest_only) or re-optimizing one (sweep), when setting fold_count / anchored / validation / embargo params, when monitoring a run_walk_forward_study to completion, when reading per-fold OOS returns/Sortino/drawdown, or when a variant's fold calendar needs calendar-alignment against a base control. Invoke with the NexusTrade MCP connected.

関連スキル