Skip to content

feat(paper): add isolated policy v0 config and bump QPK pin - #1039

Merged
Pigbibi merged 1 commit into
mainfrom
feat/isolated-paper-policy-v0-config
Nov 28, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
feat/isolated-paper-policy-v0-config

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

AI assistance

Antigravity AI assistant drafted the QPK pin update, isolated Phase 9 paper config guard, and unit tests.

What changed

  • Bumped QuantPlatformKit pin from 6fa7dcf0 to 28a9355a (bringing in P1 execution_cost_drift and twr_capital_ladder) across pyproject.toml, qsl.toml, .github/workflows/ci.yml, and uv.lock.
  • Added pure-offline src/interactive_brokers_platform/application/isolated_paper_service_config.py and tests/test_isolated_paper_service_config.py enforcing a physically isolated paper service name, DU* simulated account selector, PRO_TIERED whole-share sizing, and fail-closed live=OFF/kelly=OFF/stop_loss_return=OFF/H=0/zero-leverage invariants, composed with policy_v0_paper_adapter and QPK P1 drift/TWR evaluators.

How verified

  • Ran .venv/bin/pytest -q tests/test_isolated_paper_service_config.py tests/test_policy_v0_paper_adapter.py (21 passed).
  • Ran .venv/bin/python -m ruff check src/interactive_brokers_platform/application/isolated_paper_service_config.py tests/test_isolated_paper_service_config.py (all checks passed).
  • Ran QPK_EXPECTED_PIN=28a9355a382714d70b6149af0528d761a917d621 uv run --no-sync python scripts/check_qpk_pin_consistency.py (passed).

Why

Follows Option B to keep the four legacy personal live IBKR Cloud Run services completely untouched while preparing an isolated Phase 9 PAPER entry point.

Risk

  • Pure offline config guard and dependency pin only; zero Cloud Run services, Schedulers, or live/paper switches modified.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T10:29:55.686336Z 5e26362 Manual request
🔒 Security Review ✅ Completed 2026-11-28T10:32:04.407816Z 5e26362 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.

@Pigbibi

Pigbibi commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 5e26362aa1

ℹ️ 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 added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 28, 2026
@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: 5e26362aa1

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 merged commit 7738296 into main Nov 28, 2026
15 of 17 checks passed
@Pigbibi
Pigbibi deleted the feat/isolated-paper-policy-v0-config branch November 28, 2026 10:33
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