Skip to content

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

Merged
Pigbibi merged 3 commits into
mainfrom
fix/console-host-repoint-quantstrategylab
Nov 24, 2026
Merged

Pigbibi merged 3 commits 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>
@Pigbibi
Pigbibi marked this pull request as ready for review November 24, 2026 08:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T10:03:52.794442Z 6ef220f Manual request
🔒 Security Review ✅ Completed 2026-11-24T10:06:57.248987Z 6ef220f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff7a2dfce1

ℹ️ 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".

@Pigbibi

Pigbibi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 368d5845b4

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 368d5845b4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi

Pigbibi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 6ef220fbe3

ℹ️ 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".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 6ef220fbe3

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 24, 2026
@Pigbibi
Pigbibi merged commit 7fc3ae7 into main Nov 24, 2026
13 of 14 checks passed
@Pigbibi
Pigbibi deleted the fix/console-host-repoint-quantstrategylab branch November 24, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant