Skip to content

P0: block Longbridge SG next-session SOXL signals from same-day routing #359

Description

@Pigbibi

Confirmed evidence

The live SG reports show broker order events on a run whose strategy signal is only effective on the next trading day:

  • 2026-07-10 19:45 UTC: signal_date=2026-07-10, effective_date=2026-07-13, action_done=true, order_events_count=2.
  • 2026-07-17 19:45 UTC: signal_date=2026-07-17, effective_date=2026-07-20, action_done=true, order_events_count=1.

This is a timing/routing defect, not a claim about broker fill status or a stop-loss failure. The current direct cycle can route a next-session decision during the signal-day invocation.

Immediate containment completed

  • Cloud Run longbridge-quant-sg-service is fail-closed: RUNTIME_TARGET_ENABLED=false on revision longbridge-quant-sg-service-00753-446.
  • The matching CLOUD_RUN_SERVICE_TARGETS_JSON deployment target is also disabled, preventing a later configuration sync from reopening it.
  • No position was closed, no open order was cancelled, and no allocation/strategy parameter was changed.

Required recovery path

  1. Add a paper-only Longbridge adapter for QPK durable execution commands (fix: harden runtime scheduling and notifications #342): persist immutable signal-day command, claim only on its effective trading day, and reconcile through broker evidence.
  2. Add deterministic tests for Friday-to-Monday, concurrent invocations, crash after claim, missing command store, and mismatched input/config digests.
  3. Demonstrate paper forward observations and reconciliation evidence.
  4. Require explicit approval before any live consumer is enabled.

Strict guardrails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions