Skip to content

feat: Add protected four-target migration entry - #984

Merged
Pigbibi merged 3 commits into
mainfrom
ci/short-name-migration-entry
Nov 6, 2026
Merged

Pigbibi merged 3 commits into
mainfrom
ci/short-name-migration-entry

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

Add a manual, main-only protected Actions channel for four short-name destinations. Observe destinations or initialize absent destinations as inert internal services with a fixed HTTP 503 process, no application environment/Secret/volume and zero minimum instances. Preserve existing services, traffic, inventory and deployment workflows.

Repair all three Codex findings from head 599516f:

  • Wait for every validate-only operation to complete successfully before any create. Errors, malformed results and timeout block creation; successful validation may omit a service response.
  • Resolve numeric project identity from authenticated active-project readback and accept textual/numeric operation paths only for that project and region.
  • Check the service-level minimum alongside the revision-template minimum; both must be zero, with omission interpreted as the API zero default.

Synchronize origin/main through git merge. Current head 96225ba89780334ece5a89ce27666349e6f44229; checked main a6a0ff479630c071532c9ad40a59153a4423cdc2. The complete PR remains four files: workflow, operator, tests and existing documentation. This repair edits the latter three only.

Why

Validation failures could previously produce a false success and proceed to four creates. Numeric project operation names could stop polling after creation. Service-level minimum drift could pass the disabled contract. These changes enforce the existing contract without adding another release path.

Verification

  • Behavioral fail-before: 21 failed / 44 passed before the operator changes, including all three findings and provider-error redaction.
  • Final focused tests: 71 passed.
  • Full offline tests: 6778 passed, 6 skipped, 8 warnings and 368 subtests passed; exit 0.
  • Repository Ruff, environment workflow shell contract and git diff --check passed.
  • Documentation: zero blocking findings, one existing README advisory.
  • Real qvps SG egress guard passed. No native cloud operation was executed; no isolated research overlay was run separately.

Adverse coverage includes failed/unknown/timeout validation, pending-operation sequencing, expiry during polling, project/region mismatch, service minimum drift and fixed safe CLI errors. Existing concurrent-creator, mutation-no-retry, attempt-1 and expiry-after-token contracts remain green.

Risk and limits

High: protected workflow/operator. Native provider behavior, Environment protection, actual identity/permissions, destination readiness/traffic and deployed adoption remain NOT_PROVEN. Unknown creation outcomes still require private reconciliation and a separate continuation authorization; there is no mutation retry or automatic rollback.

Keep OPEN Draft. No merge, undraft, label, workflow dispatch, deploy, migration, cloud/Secret/IAM, PAPER, Live, Kelly or stop-loss action is included. Draft authority t1320s7739 is retained; t1320s7726 deployment scope remains for a later separate card; P01 authority is untouched. Existing finding threads remain visible pending independent exact-head re-review.

AI assistance

Codex (gpt-6.1-sol) authored the repair. The established review-and-merge bot is requested to re-review the new exact head once; independent acceptance is pending.

Central publication checker

publication-check/2.0-advisory build 83d9d1130377: advisory scan of the complete tracked candidate tree, exit 0; 2594 findings / 2469 matching lines across 313 files. Existing matches and fake fixtures are advisory; no real credential is introduced. Reports retain counts and file names only.

First 20 masked matches:

File Line Masked text
.env.example 11 IB_GATEWAY_HOST=<PROJECT_ID>
.env.example 19 TELEGRAM_TOKEN=<>
.<PROJECT_ID>/CODEOWNERS 9 /.env.example @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 10 /.github/CODEOWNERS @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 11 /application/account_new_risk_gate_support.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 12 /application/execution_kernel_adapter.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 13 /application/execution_receipt_adapter.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 14 /application/execution_service.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 15 /application/ibkr_order_execution.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 16 /application/paper_execution_admission.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 17 /application/paper_execution_command_consumer.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 18 /application/portfolio_risk_diagnostics.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 19 /application/relative_risk_preview.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 20 /application/tqqq_offline_risk.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 21 /runtime_execution_policy.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 22 /scripts/deploy_notification_only.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 23 /scripts/deploy_pilot_no_traffic.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 24 /scripts/execution_report_heartbeat.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 25 /scripts/ibkr_deployment_audit.py @<PROJECT_ID>
.<PROJECT_ID>/CODEOWNERS 26 /scripts/summarize_execution_ledger_cloud.py @<PROJECT_ID>

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-06T22:10:01.502017Z 96225ba Draft marked ready
ℹ️ 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 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review the complete four-file Draft diff at exact head 599516faebc7bf0bfbcbc11e244657b9ff5a2868, base 097c16d9a5dc703f682658b189d5df80bef6670b.

Scope: the protected four-target short-name observation/inert initialization workflow, operator, adverse tests and documentation. Focus on exact plan/run authorization, create-only ownership/concurrency, expiry after token acquisition, provider failure/redaction, and explicit inert revision/traffic readback. Full offline: 6699 passed, 6 skipped and 368 subtests passed; focused: 43 passed. Keep OPEN Draft. No merge, undraft, labels, dispatch, cutover or production operation is requested. Authority t1320s7739 is definition-only; t1320s7726 deployment scope is retained for a later separate card; P01 authority is untouched.

@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: 599516faeb

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

Comment thread scripts/short_name_migration.py Resolved
Comment thread scripts/short_name_migration.py Resolved
Comment thread scripts/short_name_migration.py Resolved
@Pigbibi

Pigbibi commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please re-review the complete four-file Draft diff at exact head 96225ba89780334ece5a89ce27666349e6f44229, checked main/base a6a0ff479630c071532c9ad40a59153a4423cdc2.

All three prior findings are repaired: validate-only operation completion before any create (4495487489), authenticated numeric project operation identity (4495487503), and service-level zero minimum (4495487517). Behavioral fail-before: 21 failed / 44 passed; final focused: 71 passed; full offline: 6778 passed, 6 skipped and 368 subtests passed. Existing finding threads are retained for your disposition.

Keep OPEN Draft. This is the one exact-head re-review request for s07-ibkr984-review-fix-r1. No merge, undraft, labels, workflow dispatch, deploy, migration, Secret/IAM or trading action is requested. Retain t1320s7726 for a later separate deployment card; P01 authority remains untouched.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 96225ba897

ℹ️ 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 marked this pull request as ready for review November 6, 2026 22:08
@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 6, 2026
@Pigbibi
Pigbibi merged commit 4ea295d into main Nov 6, 2026
17 of 20 checks passed
@Pigbibi
Pigbibi deleted the ci/short-name-migration-entry branch November 6, 2026 22: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