Repository navigation
Port v0.57.0: detect whitespace turn_context candidates - #488
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thermo-nuclear code-quality review (Oracle-coordinated read-only swarm) Verdict: PASS for merge readiness; no merge-blocking maintainability issue was found in this PR. Reviewed the parser candidate change and its compact-versus-spaced JSON regression coverage under the requested thermo rubric. One non-blocking concern is recorded at rust/src/core/jsonl_scanner/codex/helpers.rs:326: the raw substring check for "turn_context" broadens candidate detection and can send unrelated lines through the fallback parser. In the stacked path this also exposes a parser-routing edge case for a type-less usage row whose model text contains that token; that stack-level case is being fixed before merge. No new large-file, wrapper, orchestration, type-boundary, or decomposition regression was found. The finding is intentionally non-blocking for this isolated PR, but the related data-loss edge case blocks the dependent stack until repaired. |
|
Thermo re-review correction — BLOCKED. Oracle’s final adjudication confirms the merge-blocking parser regression is introduced by this PR. The broad raw substring check at rust/src/core/jsonl_scanner/codex/helpers.rs:326 makes parser.rs:73-88 treat event candidacy and bare usage candidacy as mutually exclusive. A supported type-less usage row whose model is "turn_context" can therefore be silently dropped. Remedy: keep bare usage eligibility independent of the event fast-path and add the regression case. This is the base fix that #489 and #490 depend on. |
|
Thermo follow-up: blocker fixed and validated. Oracle's final thermo adjudication had blocked this PR because event-marker detection could suppress a valid type-less bare usage record when the model value contained Commit Validation: Oracle post-fix verdict: PASS. This PR remains the first merge in the stacked parser sequence. |
…anner, OpenCodex numeric and reserve pricing (nesszer#488-nesszer#490)
Problem
Upstream v0.57.0 commit 2188c90 accepts valid Codex JSONL event records with legal whitespace. The Windows port's candidate filter recognized compact
turn_contextrecords but could discard whitespace-formatted records before the existing JSON parser saw them.Change
turn_contextcandidate text in the existing Codex candidate gate.event_msgandturn_contextrecords.This is the first isolated micro-PR on the v0.57.0 integration branch. It does not change parsing, cache/checkpoint behavior, scan ordering, recovery, versions, scripts, or documentation.
Validation
git diff --checkpassed.cargo fmt --all -- --checkpassed.cargo check --testswere attempted but could not execute because this host has nocl.exe; PATH resolves Git'susr/bin/link.exe, which fails the MSVC linker invocation withlink: extra operand.rust/src/core/jsonl_scanner/codex/helpers.rsrust/src/core/jsonl_scanner/tests.rs