Skip to content

fix: harden research input manifest timestamps - #273

Closed
Pigbibi wants to merge 2 commits into
mainfrom
codex/pre-p3-f0-final-three-findings-20260730
Closed

fix: harden research input manifest timestamps#273
Pigbibi wants to merge 2 commits into
mainfrom
codex/pre-p3-f0-final-three-findings-20260730

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Scope

  • Rebuild frozen F0 research-input manifest implementation in the authorized three paths only.
  • Fix lossless timestamp fractions, Python 3.10-compatible fraction parsing, and schema/runtime member-path parity.

Validation

  • tests-first RED: 147 failures before production files existed; additional audit regression RED.
  • focused: 148 passed
  • full: 772 passed, 1 skipped, 3 subtests passed
  • Ruff, compileall, diff/scope checks passed.

No dependency, public API, intended schema semantics, permission, or Python support-matrix changes.

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi

Pigbibi commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Exact head: 2532a5caa5eccbe64dcd149c4de5e3f45ef2d64d

@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: 2532a5caa5

ℹ️ 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 src/quant_platform_kit/schemas/research-input-manifest.v1.schema.json Outdated
Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi

Pigbibi commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

Final exact head after the single authorized remediation: 90f4516db494d810ab3cc52e6e3ef6f348953989

@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: 90f4516db4

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

"path": {
"type": "string",
"minLength": 1,
"pattern": "^(?=[\\s\\S]*\\S)(?!/)(?![\\s\\S]*//)(?![\\s\\S]*/$)(?![\\s\\S]*\\\\)(?![\\s\\S]*\\u0000)(?![\\s\\S]*(?:^|/)\\.{1,2}(?:/|$))[\\s\\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 Match runtime Unicode whitespace rules in the path pattern

When a schema-only producer uses draft-2020-12's ECMAScript regex semantics, a member path consisting only of U+0085 or U+001C–U+001F passes this newly added \S lookahead, while _member_path calls _nonempty and Python strip() rejects it; conversely, U+FEFF is rejected by the schema although the runtime accepts it. Fresh evidence in the final head is that the regression test evaluates the pattern with Python re.fullmatch, so it cannot detect this regex-engine difference and schema/runtime parity remains broken for Unicode whitespace.

Useful? React with 👍 / 👎.

_COMMIT_PATTERN = _re.compile(r"[0-9a-f]{40}")
_SHA256_PATTERN = _re.compile(r"[0-9a-f]{64}")
_DATE_PATTERN = _re.compile(r"\d{4}-\d{2}-\d{2}")
_TIMESTAMP_PATTERN = _re.compile(

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 out-of-range timestamp offset minutes

When a timestamp contains an offset such as +00:60 or +01:99, this pattern accepts it and datetime.fromisoformat silently normalizes it (for example, +00:60 becomes +01:00) rather than raising. The validator therefore accepts and canonically preserves malformed ISO-8601 text while using the normalized instant for ordering, so evidence can disagree with schema validators and consumers; explicitly constrain the offset hour and minute ranges before conversion.

Useful? React with 👍 / 👎.

@Pigbibi Pigbibi closed this Jul 30, 2026
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