Skip to content

Fix shadow execution report identity - #362

Merged
Pigbibi merged 1 commit into
mainfrom
codex/ibkr-shadow-report-identity-20260731
Jul 31, 2026
Merged

Fix shadow execution report identity#362
Pigbibi merged 1 commit into
mainfrom
codex/ibkr-shadow-report-identity-20260731

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • prefer the actual Cloud Run / runtime-target service identity over the shared account-group service name
  • persist the runtime target account scope in execution reports while preserving the broker account group
  • add regression coverage for a shadow target sharing a live account group

Root cause

The shadow runtime reused a live account group. Report assembly inherited that group's live service name and account scope, so Execution Report Heartbeat correctly rejected the shadow report.

Impact

Future shadow reports identify the shadow Cloud Run service and us-combo-shadow scope without changing broker routing, positions, orders, or execution mode.

Validation

  • python -m pytest -q tests/test_runtime_config_support.py tests/test_runtime_composer.py tests/test_request_handling.py tests/test_execution_report_heartbeat.py tests/test_runtime_heartbeat_policy.py — 158 passed
  • python -m ruff check runtime_config_support.py application/runtime_composer.py tests/test_runtime_config_support.py tests/test_runtime_composer.py — passed
  • git diff --check — passed

No /run or /dry-run endpoint was triggered.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi marked this pull request as ready for review July 31, 2026 02:33
@Pigbibi
Pigbibi merged commit 5fbd785 into main Jul 31, 2026
3 checks passed
@Pigbibi
Pigbibi deleted the codex/ibkr-shadow-report-identity-20260731 branch July 31, 2026 02:35
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