Communitygithub.com

austin-starks/Public-Portfolio-Challenge

Mide la participación real de un libro de opciones de NexusTrade con un capital inicial fijo, eliminando la ilusión de amplitud por NAV compuesto. Útil para validar afirmaciones como "mantiene N/21 nombres", detectar colapsos a un solo nombre (trampa OSCR), evaluar cambios en SelectTop/asignación por nombre/presupuesto total, o como puerta de amplitud en certificaciones. Utiliza audit_backtest_breadth con $25k fijos.

¿Qué es Public-Portfolio-Challenge?

Esta skill, diseñada para auditores de carteras de opciones en NexusTrade, expone la ilusión de amplitud provocada por el crecimiento del NAV compuesto. Cuando un libro afirma mantener "19 de 21 nombres", la realidad es que, con un capital inicial fijo de $25k (como en una cuenta real), solo puede financiar uno o dos nombres, colapsando la diversidad. La skill utiliza la función `audit_backtest_breadth` con un capital fijo para medir la participación simultánea real, el número de nombres distintos financiados, y los rechazos por falta de fondos. Es crucial para certificar que una configuración no degrade la amplitud inicial, detectar el error de SelectTop que trunca antes de verificar asequibilidad, y validar que cambios en la asignación por nombre, presupuesto total o profundidad de escalones mantengan una participación amplia y realista. Compatible con la plataforma NexusTrade, esta skill guía la auditoría tanto en backtests como en carteras en vivo, proporcionando evidencia concreta de la verdadera capacidad de diversificación.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/austin-starks/Public-Portfolio-Challenge/tree/HEAD/skills/breadth-audit

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Auditoría de Amplitud con Capital Fijo

La amplitud se mide con $25k FIJOS, nunca inferida de un backtest compuesto. Este es el punto central de la lección de participación: un titular como "19/21 nombres" es casi siempre un artefacto.

La ilusión de amplitud

"19/21 nombres" en una ejecución de ciclo completo no significa nada — es la combinación de NAV compuesto + nombres distintos a lo largo del tiempo. Un libro que se compone hasta $300k de nocional tocará muchos nombres durante la ejecución, mientras que con $25k iniciales solo financia el más barato o dos y deja varados al resto. La prueba en vivo: un libro certificado que "mantuvo 19/21" se desplegó en vivo y solo compró OSCR, porque con $25k un presupuesto del 5% por nombre ($1.200–1.450) solo alcanzó para el LEAP del subyacente más barato.

Patrón de causa raíz: con NAV bajo, un presupuesto por nombre solo alcanza para el contrato del nombre más barato, y la política de tamaño deja varado el presupuesto en nombres con mayor ponderación no asequibles en lugar de dirigirlo al siguiente asequible → el libro colapsa a un solo nombre.

Cómo medir

Utiliza mcp__nexustrade__audit_backtest_breadth con una base de capital fija (no dejes que la ejecución se componga). Captura, según la configuración actual:

  • nombres distintos mantenidos simultáneamente (el número principal — comienza con él),
  • participation,
  • distinctNamesFilled,
  • recuentos de cannotAfford por nombre.

Ejecútalo en la ventana de 12 meses y por separado en el ciclo completo. Para un colapso en vivo, también extrae query_portfolio_events (OptionResolutionAttempt) para ver los rechazos de "No se puede permitir ni 1 contrato" y qué nombres se liquidaron — esa es la evidencia en vivo.

SelectTop trunca ANTES de la asequibilidad

SelectTop N trunca el grupo de candidatos antes de que se ejecute el relleno de asequibilidad. Un top-N estrecho recrea el colapso de un solo nombre — que es exactamente por qué el titular certificado es top-21 (21 de 21 nunca trunca, por lo que el ORDEN de clasificación solo decide la prioridad de financiación, nunca la membresía). Si estrechas SelectTop, vuelve a ejecutar esta auditoría.

La puerta de amplitud (en certificación)

Una variante no debe degradar la participación inicial en comparación con la actual. Concretamente para una campaña de reparación de participación: nombres distintos simultáneos ≥ objetivo, participation ≥ ~0.5, cannotAfford fuertemente reducido respecto al estado anterior. Una configuración que certifica pero aún financia un solo nombre es una no-respuesta — amplitud sin ganancia y ganancia sin amplitud AMBAS fallan un intento de participación.

Los filtros de entrada (filtros de datos alternativos estilo S3) son el principal riesgo de amplitud — el subconjunto filtrado debe mantenerse asequible y amplio, por lo que siempre vuelve a verificar la amplitud inicial después de agregar uno.

Palancas que mueven la amplitud (todas mantienen solo calls directos)

  • Aumentar la asignación por nombre — financia ≥1 contrato en más nombres, pero menos espacios simultáneos.
  • Relleno consciente de asequibilidad / garantizar 1 contrato a los top-N — la palanca más directa para NAV bajo; verifica que el motor realmente realice el relleno (históricamente no lo ha hecho). Nota: el bucle de relleno también es donde existía el error de sobregiro de totalBudget — ver protocolo de errores.
  • Profundidad / recuento de escalones — escalones OTM más profundos y baratos permiten que entren nombres premium; vigila la erosión de convexidad.
  • Presupuesto total — más espacios se pueden llenar; interactúa con la asignación por nombre.

Cambiar cualquier palanca de tamaño es un cambio estructural → vuelve a barrer, no heredes perillas (barrido-reoptimización).

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

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

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.

Skills relacionados