Communitygithub.com

austin-starks/Public-Portfolio-Challenge

シングルタッチ・ロックボックス — 設計凍結後、すべてのフォールド、スイープ、サーチから除外されたウィンドウ上で一度だけ実行される、最終的なオーバーフィッティング防止用ホールドアウトです。ベイクオフ勝者をデプロイ前に確定する際、A/B/CベースラインをOOS基準として設定する際、またはS1.5ゲートコヒーレンス自動緩和を実行する際に使用します。ロックボックスを2度見ると無効になる理由、ロックボックス通過条件、および3つのベースラインについて説明します。ロックボックスはウォークフォワードOOSフォールドとは異なります。

Public-Portfolio-Challenge とは?

このスキルは、金融ポートフォリオのバックテストにおける最終的なオーバーフィッティング防止策として、シングルタッチ・ロックボックスを実装します。ロックボックスは、すべてのフォールド、スイープ、サーチから完全に隔離された126日間(約6ヶ月)の最終ホールドアウトウィンドウです。設計凍結後に一度だけ実行され、その結果を見た後に設計を繰り返すとロックボックスは無効になります。 また、このスキルは3つのベースライン(A: 株式バイ&ホールド、B: ナイーブLEAPラダー、C: frozen incumbent bar)をOBS基準として定義し、S1.5フェーズではゲートコヒーレンス自動緩和を実行します。これは、ベースラインBがポスチャーキャップ(55%以下)と同時に満たせない場合に、Bの総予算を自動的に引き下げて比較可能にするものです。 このスキルは、Claude CodeやCodexなどのAIエージェントがポートフォリオ構築パイプライン内で使用することを想定しており、create_portfolioやaudit_backtest_posture、audit_backtest_breadthなどのコマンドと連携します。ロックボックスの通過条件はS0で固定され、後から変更することはできません。

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

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

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

ドキュメント

シングルタッチ・ロックボックスとベースライン

ロックボックスは、どのフォールド、スイープ、サーチも決して触れることのない最終ホールドアウトです — カレンダーフィット選択圧に対する最後の防御線です。これは、サーチ中に繰り返し使用されるウォークフォワードOOSフォールド(walk-forward-oos)とは異なり、ロックボックスは正確に一度だけ触れられます。

ロックボックス

  • 内容: ウォークフォワードスパンは、実行日のlockbox_width_days = 126(約6ヶ月)前で停止します。その最終ウィンドウ(実行日 − 126d) → 実行日がロックボックスです — すべてのフォールド、すべてのスイープ、すべてのサーチからホールドアウトされます。
  • 方法: ウォークフォワード集計ですべてのゲートにすでに合格した、組み立てられたデプロイシェイプのブックのみが、ロックボックス上で正確に一度、設計凍結後(ステージS2)に実行されます。
  • 通過条件(S0で凍結、結果を見た後に移動しないこと):
    • ロックボックスOOSリターン ≥ 最悪の単一フォールドウォークフォワードOOSリターン;
    • ロックボックス最大ドローダウン ≤ 55%;
    • ポスチャーがクリーン(audit_backtest_posture、全4条件);
    • ブレッドス ≥ 9の適格銘柄(audit_backtest_breadth — breadth-audit参照)。

シングルタッチは絶対

ロックボックスを見てから設計を繰り返すと、ロックボックスは無効になります — デプロイ前にウォークフォワードスパンを戻し、新しい末尾をホールドアウトしてください。ロックボックスの失敗はカレンダーフィット選択圧として扱われ、デプロイ不可を意味します。ただし、ロックボックスを明示的に指定した記録済みオーナーオーバーライドは例外です。

3つのベースライン(A/B/C)をOOS基準として(ステージS1)

コミットされたsnapshots/*.jsonからcreate_portfolioを介して読み込まれます。現在のエンジンでAとBをスコアリングし、Cの凍結された公開数値を打ち負かすべき基準としてコピーします。

  • A — 株式バイ&ホールド(完全なユニバース)。リターン基準のみ、ソルティーノ基準は決してなし — そのソルティーノは、レバレッジのかかったロングプレミアムブックが一致できない株式上昇相場の滑らかさを反映しています。
  • B — ナイーブLEAPラダー(標準仕様: すべての銘柄、ランク/フィルターなし、14日周期、95%予算下で銘柄あたりポートフォリオの8%、構造 = [Δ0.50コール → Δ0.55/0.25 → Δ0.55/0.40 → Δ0.50/0.42 vertical]の最初に購入可能なラング、すべて180–365 DTE、DTE ≤ 45でシングルイグジット)。ブレッドス ≥ 9/20のフォールドでのみソルティーノ基準。
  • C — 凍結された既存の基準 公開されたフォールドごとのOBS数値が付属し、そのままコピーされます(「改善」するために再実行しないこと)。

S1.5 — ゲートコヒーレンス自動緩和(決定論的、オーナーの往復不要)

設計前に、「ベースラインBを打ち破る」ことと55%以下のポスチャーキャップが同時に満たせるかを確認します — Bは約95%配備されたブックであるため、ポスチャーキャップが課された最終候補はそれを超えて配備できません。満たせない場合、ベースラインBを自動緩和: BのtotalBudgetを、自身の中央値の日次配備率が55%以下になるまで減らし、そのS1スコアリングを再実行し、元のBとポスチャー調整後のBをログに記録します。これはゲート緩和ではなく、オーナーの決定でもありません — ベンチマークのみが比較可能にされるだけです。しきい値は凍結されたままです。

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 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

Run a multi-family strategy bakeoff — the SEARCH→CERTIFY funnel that screens many candidate mechanisms down to a certified deploy winner without letting the cheap search layer issue a verdict. Use when replaying the Episode 10 bakeoff, when exploring several distinct strategy families before certifying, when deciding whether \"no deployable winner\" is even a legal conclusion, or when building the per-family certification ledger. Enforces verdict-integrity: only certification can end a campaign.

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.

関連スキル