Skip to content

Add request-bound SOXL error 321 classifier - #240

Closed
Pigbibi wants to merge 1 commit into
mainfrom
codex/qsl-p3-soxl-request-id-bound-321-classifier-replacement-20260807
Closed

Add request-bound SOXL error 321 classifier#240
Pigbibi wants to merge 1 commit into
mainfrom
codex/qsl-p3-soxl-request-id-bound-321-classifier-replacement-20260807

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fresh-base replacement for closed-unmerged #238.

  • Reproduces the accepted final-head two-file bounded slice exactly.
  • Uses only synthetic/offline diagnostic tests; no provider, credential, market-data, backtest, or runtime action.
  • Awaiting the normal pull_request CI test check.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi Pigbibi closed this Aug 6, 2026

@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: 1d017b26fb

ℹ️ 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 +187 to +188
or isinstance(error_code, bool)
or error_code != 321

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reject non-integer 321 codes

When error_code is 321.0, Decimal(321), or another non-integer value equal to 321, this validation accepts it and stores that value in the nominally integer numeric_code field; _request_validation_321_payload repeats the equality-only check, so the writer can emit 321.0 despite the closed diagnostic contract. Require a non-boolean int here and in the writer validation before accepting code 321.

Useful? React with 👍 / 👎.

Comment on lines +69 to +71
re.compile(
r"(?<![a-z0-9])invalid\s+end(?:datetime|\s+date(?:\s*/\s*|\s+)time)(?![a-z0-9])"
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Recognize field-first invalid end-time messages

When the provider reports the end-time failure in the common field-first form, such as End date/time: the date, time, or time-zone entered is invalid, the field pattern detects end date/time but this cause pattern does not match because it requires invalid to precede the field. The equality check at lines 232–235 therefore downgrades an unambiguous end-time validation failure to unknown_321; accept the corresponding field-first wording as well.

Useful? React with 👍 / 👎.

Comment on lines +433 to +436
assert provider_end_time in {
CUTOFF.strftime("%Y%m%d %H:%M:%S UTC"),
CUTOFF.strftime("%Y%m%d-%H:%M:%S"),
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exercise each provider end-time representation

This assertion only checks each hard-coded parameter against the same two hard-coded formats, so both parameterized cases pass regardless of what acquire_strict_adjusted_last or its requester actually does. A regression that emits neither supported provider end-time representation would remain undetected; derive or capture the representation produced by the exercised request path and compare that value instead.

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