Skip to content

Restore oe-eval's ZebraLogic prompt template verbatim - #343

Merged
abhishekraok merged 2 commits into
mainfrom
fix/zebralogic-template
Sep 2, 2026
Merged

abhishekraok merged 2 commits into
mainfrom
fix/zebralogic-template

Conversation

@abhishekraok

Copy link
Copy Markdown
Collaborator

Fixes #342. The port escaped ZEBRA_GRID's braces as if the string were a .format() template, but substitution is .replace(), so every prompt rendered the example answer as {{…}} — malformed JSON shown as the required output format (a model that mimics it scores parsed=0) — and re-wrapped oe-eval's long lines, changing prompt text on all docs.

This copies oe-eval's ZEBRA_GRID byte-for-byte (verified: rendered prompts now identical between harnesses on the same doc) and adds the file to the existing verbatim-template per-file-ignores idiom for E501/W291.

Independent of #334 (chat formatting) — same file, non-overlapping hunks, either merge order is clean. Existing zebralogic numbers shift.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ

The port escaped the template's braces as if for str.format, but
substitution is str.replace, so every prompt rendered the example answer
as {{...}} — malformed JSON demonstrated as the required output format —
and re-wrapped oe-eval's long lines. Copy oe-eval's ZEBRA_GRID
byte-for-byte and exempt the file from E501/W291, matching the existing
verbatim-template idiom in pyproject.

Fixes #342

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-01T18:28:26.582325Z 3b63e2a PR opened
ℹ️ 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.

@gregorybchris

Copy link
Copy Markdown
Collaborator

Good stuff, lgtm 🙂

@abhishekraok
abhishekraok merged commit 5ad7cfe into main Sep 2, 2026
10 checks passed
@abhishekraok
abhishekraok deleted the fix/zebralogic-template branch September 2, 2026 21:44
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.

ZebraLogic prompt diverges from oe-eval: doubled braces rendered literally, re-wrapped lines

2 participants