Communitygithub.com

austin-starks/Public-Portfolio-Challenge

El protocolo de "declaración en voz alta" para fallos de plataforma, motor o datos durante una campaña de certificación de NexusTrade: los errores son un entregable de primera clase, no algo que deba ocultarse. Úsalo cuando una herramienta de NexusTrade falle, se cuelgue o devuelva números que contradigan la configuración; cuando tengas tentación de escribir "probablemente una rareza del motor"; o cuando un error descubierto invalide backtests anteriores y los resultados deban ponerse en cuarentena.

¿Qué es Public-Portfolio-Challenge?

Este protocolo de gestión de errores está diseñado para campañas de certificación de NexusTrade, donde la pila de cómputo y motor es nueva y propensa a fallos. Su objetivo es garantizar que cada error —ya sea de plataforma, motor o datos— se declare de forma explícita y documentada, en lugar de ocultarse o minimizarse. El protocolo consta de cinco pasos clave: caracterizar el error, registrarlo en el registro de campaña, redactar un documento de transferencia si es un error real del motor o los datos, poner en cuarentena los resultados afectados y notificar al humano de manera prominente. Además, distingue claramente los errores genuinos de las señales honestas (como un pliegue que devuelve 'NoEligibleCandidate' o la ausencia de un valor no cotizado). La lección principal es que ignorar un error puede invalidar semanas de resultados, como ocurrió con un error de sobre-despliegue de presupuesto que infló el 40% del presupuesto al 96% del valor neto de los activos. El protocolo se aplica en cualquier herramienta de NexusTrade y sus plataformas asociadas, y promueve la verificación directa (con consultas o reproducciones mínimas) en lugar de suposiciones sobre el comportamiento del motor.

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

Preguntar en tu IA favorita

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

Documentación

Protocolo de Errores — "Declarar en Voz Alta"

La pila de cómputo + motor es nueva y se mueve. Cada fallo recibe este protocolo. Nunca encubras un error para mantener una campaña en marcha: un error tragado es peor que una etapa bloqueada. Un mecanismo confabulado (inventar por qué el motor hizo algo) es el peor modo de fallo: los peores momentos de la campaña han sido eventos de conciliación, comportamiento de precios y comportamiento de presupuesto confabulados. Verifica, no asumas.

Precedente: un error de sobre-despliegue de totalBudget (un libro con un presupuesto del 40% desplegó ~96% del NAV en el arranque en frío) se detectó exactamente de esta manera e invalidó semanas de resultados. La lección general es poner en cuarentena todos los resultados afectados por un defecto del motor y volver a ejecutar solo después de corregir el comportamiento.

Los cinco pasos (aplicar en cada fallo)

  1. Detente y caracteriza — ¿es configuración (mía), datos (del lado de la fuente) o motor (NexusTrade)? Reproduce mínimamente — el trabajo/backtest más pequeño que aún lo muestre.
  2. Regístralo inmediatamente en el CAMPAIGN_LOG.md de la ejecución bajo un encabezado ⚠️ BUG/ISSUE: síntoma, IDs de reproducción, esperado vs observado, hipótesis actual (etiquetada hipótesis), qué bloquea.
  3. Si es un error real de motor/datos, redacta un documento de transferencia <NOMBRE>_BUG.md en el directorio de la ejecución, siguiendo el modelo de la plantilla en references/BUG_TEMPLATE.md (resumen de una línea, esperado vs observado, reproducción con IDs, hipótesis principal, alternativas a descartar, dónde mirar, impacto en los resultados).
  4. Pon en cuarentena los resultados afectados — marca cada backtest/estudio que se ejecutó antes de la corrección como sospechoso/inválido. Vuelve a ejecutar después de la corrección. Si el error infló el apalancamiento, tanto los rendimientos como las reducciones están inflados y cualquier gen de barrido que haya tocado puede no ser diferenciador — revalida todo.
  5. Díselo al humano, de manera prominente, en el chat. Los errores son un entregable al mismo nivel que el resultado comercial del episodio, no una vergüenza que ocultar.

Qué NO es un error (fallos de señal honesta — no los registres)

  • Un pliegue que devuelve NoEligibleCandidate = una señal honesta, no un error. Amplía la validación; no elimines los pisos de certificación.
  • Un nombre muerto / aún no listado (por ejemplo, SNDK en 2022) que está ausente o en una lista de rechazo sin valores inventados = comportamiento correcto. Que el motor invente un valor de precio/indicador para un nombre que no cotizó SÍ es un error (ver engine-sanity).
  • Un objetivo de conciliación de un solo tick = la estrategia en vivo acumula el resto durante los rebalances diarios — dilo, no lo rediagnostiques como un error (ver deploy-gate).

Lista de verificación "Verifica, no asumas"

Antes de escribir cualquier afirmación sobre el comportamiento del motor en un entregable, respáldala con uno de: query_backtest_events / query_portfolio_events, una conditionFieldAudit, o una reproducción mínima. "El motor probablemente…" no es evidencia.

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.

Skills relacionados