Skip to content

fix(firstrade): repoint console host pins to quantstrategylab host - #553

Draft
Pigbibi wants to merge 1 commit into
mainfrom
fix/console-host-repoint-quantstrategylab
Draft

Pigbibi wants to merge 1 commit into
mainfrom
fix/console-host-repoint-quantstrategylab

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

AI assistance

Claude Sonnet 4.5 via Claude Code (writer session authored the change; the coordinator verified the diff, ran the test suites, and opened this PR after the writer session hit its limit).

What changed

Repointed the hard-coded console host pins from qsl-strategy-switch-console.pigbibi-e06.workers.dev to qsl-strategy-switch-console.quantstrategylab.workers.dev (path /api/account-facts/sync unchanged):

  • src/firstrade_platform/application/account_facts_publisher.py:17 — _APPROVED_SYNC_URL, and :80 netloc check
  • scripts/account_facts_config_sync.py:17 — APPROVED_SYNC_URL
  • scripts/inspect_account_data_readiness.py:24 — ACCOUNT_FACTS_DESTINATION
  • .github/workflows/ft-adopt-facts-revision.yml:105 — expected URL in the revision check
  • Test fixtures asserting the approved URL (5 files); the two negative cases (http scheme, ?next=other query) keep rejecting for those reasons and now use the new host too.

scripts/publish_runtime_daily.py:17 imports _APPROVED_SYNC_URL as _FACTS_URL, so the daily origin check is fixed by the same repoint — no separate pin there. No guard, workflow logic, variable, or token changed. No remaining pigbibi-e06 reference in the repo.

How verified

  • Full test suite: uv run --no-sync python -m pytest -q — 1856 passed, 1 skipped, 118 subtests passed.
  • Affected suites alone: 180 passed.
  • uv run --no-sync ruff check --exclude external . — all checks passed.
  • git diff --check — clean.
  • Hosted CI state on this head: see checks below (pending at PR creation).

Why

The 2026-11-24 observation found the 2026-11-21 repoint (PR #547) NOT confirmed: the console moved a second time to the quantstrategylab host and the repo variables followed, but the code pins still said -e06, so the exact-match guards failed closed — account-facts publish rejected as destination_not_approved and the daily projection failed as {"status":"unavailable"} (the origin check raises before the preflight POST). Repointing the pins makes code and variables agree.

Risk

Low. String-constant change only; the publish destination is the only behaviour affected, and it now matches the already-live repo variables. Guards, live-order gates, and tokens are untouched.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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