Skip to content

Add fail-closed Firstrade reconciliation receipt - #302

Merged
Pigbibi merged 1 commit into
mainfrom
codex/firstrade-l2-reconciliation-20260904
Sep 3, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
codex/firstrade-l2-reconciliation-20260904

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add an explicit, default-off Firstrade reconciliation receipt endpoint.
  • Keep production client construction unbound: the existing login client may write session artifacts.
  • Build only redacted hashes and reason codes from an injected read-only client.
  • Mark unavailable execution-history semantics as a permanent fail-closed blocker.
  • Default missing RUNTIME_TARGET_ENABLED to false.

Safety

  • No production login/session client is constructed by this route.
  • No order, cancel, account, baseline, CAS, or deployment-state write path is added.
  • Missing immutable expected digests cannot permit ACTIVE_LKG.

Validation

  • pytest -q tests/test_runtime_config_support.py tests/test_broker_reconciliation.py tests/test_request_handling.py — 64 passed
  • ruff check application/broker_reconciliation.py main.py tests/test_broker_reconciliation.py tests/test_request_handling.py runtime_config_support.py tests/test_runtime_config_support.py
  • git diff --check

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 669c1bd into main Sep 3, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/firstrade-l2-reconciliation-20260904 branch September 3, 2026 17:43
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