Skip to content

fix: align serial corpus contracts and codex-804 cursor shape - #4235

Merged
Sinity merged 1 commit into
masterfrom
fix/serial-scale-corpus
Aug 26, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/serial-scale-corpus

Conversation

@Sinity

@Sinity Sinity commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the two serial-lane corpus failures exposed when corpus run 7 reached step 19 for the first time, and production-shapes the codex-804 fixture's cursor surgery (first half of that storage-scale failure).

Problem (evidence)

Corpus runs abort at the first failed step, so pytest-native-serial-all (step 19) and storage-scale (step 20) had not executed in any recent run; run 7 (c53460c8) was the first to reach them after the parallel parts went green. Serial failures:

  • test_archive_facets_expose_provider_role_and_material_origin_split: runtime-protocol material now carries message type protocol (fix: classify provider system messages from envelope evidence #4173 vocabulary); the test pinned message == 3. Its protective core — the authoredness split — is unchanged.
  • test_select_returns_fzf_choice_in_json_in_a_real_pty: the enriched row JSON (feat(cli): unify session row rendering contracts #4201: cost_usd, outcome, relative_time) outgrew the 200-column PTY, hard-wrapping mid-token so the JSON parse hit the wrap control character. PTY widened to 400 columns; expected payload updated with the three fields.
  • Storage-scale test_sanitized_codex_804_revision_recovery_proof (long-red: fails at least back to fix(devtools): require evidence and fail closed #4146, invisible for the same never-reached-step reason): the fixture's rewind cursor passed source_revision for a JSONL file, routing it down the SQLite-snapshot branch where the NFC content hash was recorded as the byte-prefix authority — unmatchable by plan_append's sha256-of-bytes proof. Dropping it restores the JSONL branch, which derives the prefix authority from the rewound on-disk bytes; the planner now plans all 16 fragments.

Verification

  • devtools test on both serial tests → 2 passed; full serial marker suite locally: 25→27 passed for the fixed pair.
  • codex-804: planner phase now completes; the test still fails downstream (append revision-application decisions missing for deferred appends) — dispatched to a dedicated fix lane, tracked for corpus closure.
  • devtools verify --quick → all 15 gates ok.

Residuals

  • codex-804's remaining ledger gap is the sole known corpus-red; lane in flight.

🤖 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: c30a292b-3c0c-4c72-b0a9-7beacbbfe13d


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 67c5582 into master Aug 26, 2026
2 of 3 checks passed
@Sinity
Sinity deleted the fix/serial-scale-corpus branch August 26, 2026 10:21

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b9ede0031

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/unit/cli/test_interactive_cli.py Resolved
Comment thread tests/infra/whale_fixtures.py Resolved
Sinity added a commit that referenced this pull request Aug 26, 2026
…#4236)

## Summary
Closes the last corpus-red test: the codex-804 revision-recovery proof's
missing append ledger decisions, plus the Codex mixed text/image parsing
regression underneath it.

## Problem (evidence)
`test_sanitized_codex_804_revision_recovery_proof` (storage-scale step,
long-red and invisible until corpus run 7 first reached that step; first
half fixed in #4235):
- The fixture bound its raw revision under logical source key
`codex:<native_id>` — the pre-identity-model spelling; the canonical key
is `codex-session:<native_id>`, so replay found no chain and all 16
append raws lacked `raw_revision_applications` decisions.
- Underneath: #4184's transport-representation change made
`content_blocks_from_segments` skip `input_text`/`output_text` items
(the owning parser lowers them) — but Codex's mixed text+image path
relied on the shared converter for text, silently dropping it.

## Solution
- Fixture key corrected to the canonical origin-prefixed spelling.
- `content_blocks_from_segments` gains an explicit
`lower_transport_text` opt-in; Codex's mixed-content path uses it.
Default behavior unchanged for all other providers. Parser regression
test added.

## Verification
- Focused proof: 1 passed (all 16 append decisions present,
`applied_append` each).
- `devtools test tests/unit/scenarios/
tests/unit/sources/test_live_batch_support.py` + parser suite: 220
passed.
- `devtools verify --quick`: all gates ok.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA
@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at bf68918):

  • P2 tests/infra/whale_fixtures.py:474: Fixed on master (checked at bf68918): Production full ingest now fills raw_source_revisions only on the SQLite-snapshot acquisition branches (batch.py:3901-3904). A live JSONL cursor therefore carries no source_revision, and the fixture takes the same branch production does after first recording the production handoff's value (whale_fixtures.py:454).

Resolving every thread listed; confirmed defects are fixed under the named bead.

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