GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — fix(v2): fail fast on unreadable routed agent tasks by MathiasHeinke · Pull Request #283 · lidge-jun/opencodex Conversation
Contributor
SummaryFail fast when a Codex V2 Instead of forwarding an empty task to Grok, Claude, Kimi, or another routed provider, OpenCodex now returns a deterministic, non-retryable HTTP 400 before auth resolution, adapter construction, or provider dispatch. The error directs the caller to plaintext V2 agent-message delivery or a native ChatGPT model. This is a companion safety fix for #92. It does not claim to recover the missing task body. Root cause and scopeThe native ChatGPT backend can decrypt backend-minted Fernet tokens. An external routed provider cannot. By the time OpenCodex receives this request, the plaintext task is absent, so the proxy has no cryptographically valid way to reconstruct it. This PR intentionally does not attempt to decrypt or reinterpret that ciphertext. Doing so would require keys OpenCodex does not own and would blur the trust boundary. The actual end-to-end fix remains plaintext V2 task delivery in the Codex client. The guard is deliberately narrow:
Why fail fastWithout this guard, the model override can look successful while the routed child receives no actionable task. That can produce misleading worker output and repeated provider-cost attempts. A clear 400 makes the delivery mismatch observable and non-retryable until the upstream client emits plaintext task content. Verification
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Ingwannu
requested changes
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fail-fast direction is valuable, and pure Fernet-only routed task slots correctly stop with a non-retryable 400 before provider dispatch. However, the current guard still fails open for the mixed shape that existing compatibility logic explicitly produces: plaintext hook preamble plus an encrypted actual task slot.
Please classify/strip known compatibility preambles before deciding that a task payload is readable, and add the existing mixed-slot fixture as a fail-fast regression. Also pin a real fixture for any plaintext allowed before Full local current-dev merge verification otherwise passed (3,512 tests, typecheck, privacy scan, GUI lint/build). No malware, backdoor, ciphertext reflection, unsafe I/O, or dependency concern was found.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
lidge-jun
marked this pull request as ready for review
Uh oh!
There was an error while loading. Please reload this page.
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
lidge-jun
added a commit
that referenced
this pull request
1 high blocker: mixed encrypted slots bypass the guard. 4 medium issues including loose Fernet validation and history-scanning scope.
lidge-jun
added a commit
that referenced
this pull request
Detect V2 Fernet-encrypted agent tasks that cannot be decrypted by non-ChatGPT providers and return 400 early, preventing cost storms. Fixes the mixed-slot bypass found by Sol review: control preambles like [CXC-LEAF-GUARD] are no longer treated as actionable task text. Co-authored-by: Mathias <[email protected]> Based-on: PR #283
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
1 high blocker: mixed encrypted slots bypass the guard. 4 medium issues including loose Fernet validation and history-scanning scope.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sol reviewed all 10 PRs. Results: - Merged: lidge-jun#286 (500→400), lidge-jun#296 (Cursor Router), lidge-jun#302 (Kiro hardening) - Rebuild-on-dev: lidge-jun#255, lidge-jun#283, lidge-jun#293, lidge-jun#301, lidge-jun#298, lidge-jun#299 - Keep open: lidge-jun#249 (Cloudflare tunnel) Typecheck + full test suite pass (3574/3574) after all merges.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Detect V2 Fernet-encrypted agent tasks that cannot be decrypted by non-ChatGPT providers and return 400 early, preventing cost storms. Fixes the mixed-slot bypass found by Sol review: control preambles like [CXC-LEAF-GUARD] are no longer treated as actionable task text. Co-authored-by: Mathias <[email protected]> Based-on: PR lidge-jun#283
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |