Skip to content

[codex] Clarify runtime route roles#174

Merged
Pigbibi merged 1 commit into
mainfrom
codex/runtime-route-roles-20260618
Jun 18, 2026
Merged

[codex] Clarify runtime route roles#174
Pigbibi merged 1 commit into
mainfrom
codex/runtime-route-roles-20260618

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add explicit /run and /dry-run aliases for runtime route roles
  • keep existing / and /precheck compatibility routes
  • keep health probes success-silent and stop loading strategy plugins during broker/account probes
  • update route tests and LongBridge manual invoke alias handling

Validation

  • /home/ubuntu/Projects/platform-runtime-work/.venv/bin/python -m pytest tests/test_request_handling.py

@Pigbibi Pigbibi merged commit 38d881e into main Jun 18, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/runtime-route-roles-20260618 branch June 18, 2026 13:03

@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: 71c19df360

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

fi
if [ "${raw_path}" = "/" ] && [ "${{ inputs.allow_live_execution }}" != "true" ]; then
echo "Calling / can trigger the live execution entrypoint. Re-run with allow_live_execution=true if this is intentional." >&2
if { [ "${raw_path}" = "/" ] || [ "${raw_path}" = "/run" ]; } && [ "${{ inputs.allow_live_execution }}" != "true" ]; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Guard /run even when the path has a query string

When this workflow is used against a non-internal service, a path like /run?reason=manual will not satisfy this exact /run comparison, so it falls through to the direct curl invocation while Flask still routes it to the new /run live handler. That bypasses allow_live_execution=false and can trigger live trading; parse or normalize the path component before applying the live-entrypoint guard.

Useful? React with 👍 / 👎.

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