Communitygithub.com

austin-starks/Public-Portfolio-Challenge

NexusTradeの認定キャンペーン中にプラットフォーム、エンジン、データのバグを「大声で宣言」するプロトコル。バグは回避すべきものではなく、第一級の成果物として扱います。NexusTradeツールがエラーを起こしたり、ハングしたり、設定と矛盾する数値を返したとき、または「おそらくエンジンの癖」とごまかしそうになったときに使用します。発見したバグが以前のバックテストを無効化し、結果を隔離する必要がある場合も対象です。バグ引き継ぎドキュメントテンプレート(references/BUG_TEMPLATE.md)を含みます。

Public-Portfolio-Challenge とは?

このスキルは、NexusTradeの認定キャンペーン中に発生するバグを体系的に管理するためのプロトコルを提供します。主な目的は、バグを「隠す」のではなく「大声で宣言」することで、エンジンやデータの不具合を迅速に特定・記録・隔離し、キャンペーンの質を維持することです。このプロトコルは、Claude CodeなどのAIエージェントがキャンペーン実行中にエラーや矛盾に遭遇した際に自動的に適用されます。5つのステップ(停止して特性評価、即時ログ記録、引き継ぎドキュメント作成、結果の隔離、人間への通知)から構成され、バグを隠蔽した場合に生じる致命的な結果(例:総予算超過バグによる数週間の無効化)を防ぎます。また、真のバグと「正直なシグナル」の失敗(例:該当候補なし)を区別する基準も提供し、確認せずに断言することを禁止します。

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

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

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

ドキュメント

バグプロトコル — 「大声で宣言」

コンピュート + エンジンスタックは新しく、動いています。すべての障害はこのプロトコルに従います。 キャンペーンを進行させるためにエラーを隠蔽してはいけません — 飲み込んだバグは、ステージがブロックされるよりも悪質です。捏造されたメカニズム(エンジンがなぜその動作をしたかを作り上げること)は最悪の障害モードです。キャンペーンの最悪の瞬間は、調整イベント、価格動作、予算動作を捏造したことによって生じました。確認し、断言しないでください。

前例: totalBudget の過剰配備バグ(コールドスタート時に40%の予算を配備するブックがNAVの約96%を配備)はまさにこの方法で発見され、数週間の結果を無効化しました。一般的な教訓は、エンジンの欠陥によって影響を受けたすべての結果を隔離し、動作が修正された後にのみ再実行することです。

5つのステップ(すべての障害に適用)

  1. 停止して特性評価 — 設定(自分の責任)、データ(ソース側)、エンジン(NexusTrade)のいずれか? 最小限で再現 — 問題を示す最小のジョブ/バックテスト。
  2. 即座にログに記録 — 実行の CAMPAIGN_LOG.md に「⚠️ BUG/ISSUE」見出しの下に記録:症状、再現ID、期待値と観測値、現在の仮説(hypothesis とラベル付け)、ブロックする内容。
  3. 実際のエンジン/データバグの場合、実行ディレクトリに <NAME>_BUG.md という引き継ぎドキュメントを作成。references/BUG_TEMPLATE.md のテンプレートに従う(一行サマリー、期待値 vs 観測値、ID付き再現、主要仮説、除外すべき代替案、調査場所、結果への影響)。
  4. 影響を受けた結果を隔離 — 修正前に実行されたすべてのバックテスト/スタディを疑わしい/無効としてマーク。修正後に再実行。バグがレバレッジを過大にした場合、リターンとドローダウンの両方が過大評価され、触れたスイープ遺伝子は非差別化されている可能性がある — すべてを再検証する。
  5. チャットで人間に目立つように伝える。 バグは、トレーディング結果と同等のエピソードの成果物であり、回避すべき恥ずかしいものではありません。

バグではないもの(正直なシグナルの失敗 — これらはファイルしない)

  • フォールドが NoEligibleCandidate を返す = 正直なシグナルであり、バグではない。バリデーションを拡大し、認証フロアを削減しない。
  • 死んでいる/まだ上場していない銘柄(例:2022年のSNDK)が存在しない、または拒否リストにあり、偽の値がない = 正しい動作。エンジンが取引されていない銘柄に対して価格/インジケーター値を捏造することはバグです(engine-sanity 参照)。
  • 単一ティックの調整目標 = ライブ戦略は日次リバランスで残りを蓄積する — そのように説明し、バグとして再診断しない(deploy-gate 参照)。

確認し断言しないチェックリスト

エンジンの動作に関する主張を成果物に書く前に、次のいずれかで裏付ける:query_backend_events / query_portfolio_events、conditionFieldAudit、または最小限の再現。「エンジンはおそらく…」は証拠ではありません。

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

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.

関連スキル