Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@terwey
Copy link
Collaborator

@terwey terwey commented Oct 31, 2025

Summary

  • add skip metadata to scaled order audits, database schema, and OpenAPI contracts
  • record skipped submissions when below venue notional limits and surface reasons in engine logs
  • extend scaler and engine tests plus documentation to cover skip scenarios

Testing

  • go test ./...

https://chatgpt.com/codex/tasks/task_e_6904c46a5cb88326ba552ce3d1bbde55

Copy link

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

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.

ℹ️ 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 on lines 140 to +144
multiplier_updated_by TEXT NOT NULL,
created_at_utc INTEGER NOT NULL DEFAULT (CAST(unixepoch('now','subsec') * 1000 AS INTEGER)),
submitted_order_id TEXT,
skipped INTEGER NOT NULL DEFAULT 0,
skip_reason TEXT,

Choose a reason for hiding this comment

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

P1 Badge Add migration for new scaled order audit columns

The commit adds skipped and skip_reason columns to scaled_orders, but the schema is only applied through CREATE TABLE IF NOT EXISTS in storage.New. For SQLite databases that were created before this change, the table already exists and these statements will be skipped, leaving the old schema in place while the new queries now read and write skipped/skip_reason. Upgrading the binary would therefore fail with no such column errors when recording scaled orders. A migration (e.g. ALTER TABLE scaled_orders ADD COLUMN …) or a versioned schema update is needed before referencing the new fields.

Useful? React with 👍 / 👎.

@terwey terwey merged commit acc4fa7 into codex/update-schema-and-queries-for-orders Oct 31, 2025
1 check passed
@terwey terwey deleted the codex/update-scaler-audit-model-for-skips branch October 31, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants