Skip to content

Fix SG durable next-session execution and reconciliation - #469

Merged
Pigbibi merged 1 commit into
mainfrom
fix/sg-next-session-execution-20260910
Sep 9, 2026
Merged

Fix SG durable next-session execution and reconciliation#469
Pigbibi merged 1 commit into
mainfrom
fix/sg-next-session-execution-20260910

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

SG emits next-session strategy decisions, but its live cycle previously rejected them without a durable consumer. Add a default-off SOXL live path that saves each daily signal, executes the prior immutable target only in its effective exchange session, and continues saving the next daily signal.

The consumer uses fresh account capital and the original loss/consecutive-loss diagnostics, RiskEngine limits, account-owner fence and atomic execution claim. Old unresolved orders block newer commands; known order IDs are reconciled through LongPort order_detail, including actual SDK enum normalization. Unknown outcomes are never resubmitted. Normal queued signals are reported as waiting rather than as a missing execution path.

Validation: confirmed failing regressions before correction; related suite 129 passed and 22 subtests passed, focused report-summary regression passed, Ruff and diff checks passed. Coverage includes three trading sessions, prior-order blocking, immutable targets and SDK order identity/status handling. No broker orders were sent during validation. The live flag remains off by default; production business recovery still requires the original scheduled signal/consumption cycle.

@Pigbibi
Pigbibi merged commit abf8e8e into main Sep 9, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/sg-next-session-execution-20260910 branch September 9, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant