Skip to content

fix(risk): require gs:// claim store for live account-owner fence - #460

Merged
Pigbibi merged 3 commits into
mainfrom
fix/ex05-live-gs-gate
Sep 7, 2026
Merged

fix(risk): require gs:// claim store for live account-owner fence#460
Pigbibi merged 3 commits into
mainfrom
fix/ex05-live-gs-gate

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fail closed when non-dry-run account-owner claim backend is not gs://.
  • Aligns LongBridge live with Schwab-style cross-instance fencing.

Test plan

  • PYTHONPATH=. pytest tests/test_runtime_composer.py (2 passed)
  • Confirm deployed claim URI remains gs:// before enabling any new live path

Made with Cursor

Codex takeover validation (2026-09-08)

The four request tests failed because their successful live fixtures had no durable store URI. This correction changes tests only: synthetic gs:// configuration for the four mocked-cycle cases, plus an actual entrypoint rejection test asserting missing storage never enters the execution cycle. The production gate is unchanged. Fresh regression: 4 failed before; request/composer suites 37 passed and 9 subtests after. Ruff, diff and uv pip check passed. Full local suite: 467 passed, 1 skipped, 1 unrelated existing strategy_runtime consecutive_losses expectation failure; the same test also fails on the env-sync branch without the EX-05 change, and its implementation/test/dependency paths are unchanged. Linux required CI remains the CI result of record. No merge, deployment, provider, broker or account operations.

Pigbibi and others added 3 commits September 8, 2026 04:37
Fail closed when non-dry-run would use a local claim backend that cannot fence across instances.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit e7377ef into main Sep 7, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/ex05-live-gs-gate branch September 7, 2026 21:28
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