Skip to content

Drop prompt-scanning shortcuts from the Codex patch - #6084

Closed
markstuart-oai wants to merge 1 commit into
feat/codex-harnessfrom
codex/stock-prompt-scans
Closed

markstuart-oai wants to merge 1 commit into
feat/codex-harnessfrom
codex/stock-prompt-scans

Conversation

@markstuart-oai

Copy link
Copy Markdown
Contributor

Why

The SDK has been carrying four Codex shortcuts that skip work on prompts with no match. This PR drops those shortcuts and keeps the parser tests and input limits.

Summary

Skill lookup and hook parsing go back to the pinned Codex code. The cost shows up most on misses. In a local Rust probe, plain text took about 1.2 microseconds more per hook check. A 1 KiB prompt with no skill marker took about 1.4 microseconds more to scan. These are costs per call, not per turn.

Test plan

Both versions gave the same result for all 1,862 XML inputs. They accepted 18 and returned no hook for the rest, including blank run IDs. The old and new code also agreed on 48 mention cases and eight skill lookups. The candidate passed all 12 mention and hook tests run in the Rust probe.

I replayed all 111 patches before and after this edit. Only the four expected functions changed. I have not built the SDK wheel or run the full suite.

Issue number

No linked issue.

Checks

  • I've added new tests, if relevant
  • I've run the applicable checks in AGENTS.md, including .agents/skills/code-change-verification/scripts/run.sh when required
  • I've confirmed all required checks pass
  • I've completed the review required by AGENTS.md

@markstuart-oai
markstuart-oai marked this pull request as ready for review November 19, 2026 02:22
@markstuart-oai
markstuart-oai requested review from a team, rm-openai and seratch as code owners November 19, 2026 02:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T02:23:35.456364Z b47c424 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-19T02:25:17.999665Z b47c424 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.

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