Repository navigation
fix(firstrade): repoint account-facts sync to current console host - #547
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e60c2b1b76
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Post-merge correction to the verification record: the 1038 passed / 3 skipped figures quoted in the PR body came from local runs made while the test environment was still syncing (reduced collection). The complete-environment runs are: baseline on main — 1856 passed, 1 skipped, 118 subtests passed; this branch — 1856 passed, 1 skipped, 118 subtests passed (identical), with ruff clean. The hosted CI test job on the merged head was green. No conclusion changes: counts match baseline exactly. |
AI assistance
Muse (Muse Spark), acting as the Quant S2 coordinator's dispatched executor, under the owner's approval of 2026-11-21.
What changed
Repointed every pin of the retired strategy-switch console host
qsl-strategy-switch-console.pigbibi.workers.devto the live console hostqsl-strategy-switch-console.pigbibi-e06.workers.dev. The change is a purehost-string substitution: 13 occurrences across 9 files, 13 insertions /
13 deletions, and every changed line is a console URL line. No behaviour,
strategy, risk or publishing logic changed.
Production pins (4 files, 5 occurrences):
src/firstrade_platform/application/account_facts_publisher.py—_APPROVED_SYNC_URLconstant and theparsed.netlocexact-match check.scripts/account_facts_config_sync.py—APPROVED_SYNC_URL.scripts/inspect_account_data_readiness.py—ACCOUNT_FACTS_DESTINATION..github/workflows/ft-adopt-facts-revision.yml— the inline exact-matchcheck on
FIRSTRADE_ACCOUNT_FACTS_SYNC_URL.Test fixtures (5 files, 8 occurrences) updated to the same host so the
exact-match approvals keep exercising the positive path, and the negative
cases (http scheme, query string) remain negative:
tests/test_account_facts_config_sync.py(1)tests/test_account_facts_endpoint.py(1)tests/test_account_facts_publisher.py(3)tests/test_build_cloud_run_env_sync_plan.py(2)tests/test_publish_archived_account_history.py(1)Whole-repo accounting:
git grepfor the old host over all tracked filesreturned exactly the 13 occurrences above before the change and zero after
it. No other file (docs, README, other workflows) contains the old host;
the READMEs reference the variable name only.
Repository variables:
FIRSTRADE_ACCOUNT_FACTS_SYNC_URLandEXECUTION_EVIDENCE_SYNC_URLcurrently pin the old host. Because the pinsare exact-match by design, the variables will be repointed to the
-e06host immediately after this PR merges, before the next scheduled run, so
code and variables move together.
How verified
main(9d90f23):uv run --no-sync python -m pytest -q—1038 passed, 3 skipped.
(identical counts);
ruff check src scripts tests— all checks passed.git diffpurity check: zero changed lines that are not console URLlines.
-e06hostroot returns 200.
Why
The console moved Cloudflare accounts on 2026-11-18 and now lives only on
the
-e06host; the old subdomain serves nothing. Firstrade'saccount-facts publisher hard-pins the old host, so every publish fails
(HTTP 502 from
/account-facts-sync), which is the leading hypothesis forthe Runtime Guard's intermittent failure detections since 2026-11-19
(diagnosis: executor-platform diagnosis report, Scope 1 H1). Facts still
archive to GCS before publishing, so no data was lost; only the console
sync is failing.
Risk
Risk tier: low, bounded config correction. Affected paths: the
account-facts publish destination and its exact-match guards in code, one
workflow check, and test fixtures. Compatibility impact: the publisher
continues to fail closed (
destination_not_approved) on any destinationother than the single approved URL; only the approved value changes.
Operational impact: after the matching repository variables are repointed
post-merge, the next scheduled
/account-facts-syncshould publish to thelive console again; the first scheduled runs after the change are the
observation point. No strategy, risk-gate, order or session logic is
touched.