Skip to content

test: align mixed-jsonl unknown ingest with terminal decode contract - #4232

Merged
Sinity merged 1 commit into
masterfrom
fix/mixed-jsonl-terminal
Aug 26, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/mixed-jsonl-terminal

Conversation

@Sinity

@Sinity Sinity commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Aligns the last corpus-red test with the terminal-decode contract #4229 deliberately established for malformed unknown JSONL.

Problem (evidence)

Corpus run 5 (215385b4, master 496bc2004) failed 2 tests. This one, test_unknown_mixed_jsonl_prefetch_falls_back_to_strict_decode, expected the pre-#4229 clip-then-parse-prefix behavior: a mixed file (one valid record + one malformed line) was clipped at the valid prefix and classified terminal_unknown_export_no_session/unsupported_parseable. #4229 made a malformed record anywhere a terminal decode verdict (terminal_unknown_json_decode/decode_failed) — exactly what the fully-malformed cases in test_live_batch_support now assert. The mixed case reaching the same verdict is the consistent contract; the test's protective intent (no session materialized from a partial unknown conversation, terminal not retried) is unchanged and still asserted.

Verification

  • devtools test tests/unit/sources/test_live_watcher_parse_stage_equivalence.py → 3 passed.
  • devtools verify --quick → all 15 gates ok.

Residuals

  • Corpus run 5's other failure, test_submit_failure_cleans_every_admitted_future_and_reservation, passes in isolation and in the corpus-6 lane's full-file run — an ordering-sensitive flake under corpus parallelism, being handled separately if it recurs in run 6.

🤖 Generated with Claude Code

https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 37cafbd1-0133-43c7-ae9e-1151c5c1c530


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 7c2a704 into master Aug 26, 2026
1 of 3 checks passed
@Sinity
Sinity deleted the fix/mixed-jsonl-terminal branch August 26, 2026 09:01
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