Skip to content

fix: preserve legacy execution reports and dry-run mode consistency - #320

Merged
Pigbibi merged 1 commit into
mainfrom
fix/legacy-execution-receipt-20260908
Sep 8, 2026
Merged

fix: preserve legacy execution reports and dry-run mode consistency#320
Pigbibi merged 1 commit into
mainfrom
fix/legacy-execution-receipt-20260908

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Legacy deployments without a strategy revision could fail after a completed cycle, then fail again while recording the exception, losing the final report and obscuring the original error. Skip the optional execution receipt only for an explicit legacy_unattested release without strategy_release; invalid attested revisions remain rejected.

The real cycle regression also exposed a dry-run override retaining execution_environment=live. Keep the requested dry-run flag and execution environment consistent while disabling live trading for that request.

Validation: reproduced the legacy receipt and dry-run failures before patching; 419 tests pass, including real report construction and cycle finalization for submitted, blocked and exception outcomes in both modes. Ruff, lock and diff checks pass. No credentials, strategy parameters, order limits or schedules are changed.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 4f8d786 into main Sep 8, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/legacy-execution-receipt-20260908 branch September 8, 2026 14:55
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