Repository navigation
fix: Refresh the fifteen stale CLI assertions job 2206 found - #5227
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedNext included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Job 2206, the first nightly full-corpus `verify_all`, failed with 27 tests red. Fifteen were deterministic and stale; this commit is those fifteen. They reproduce in isolation at the base commit (15 failed, 96 passed in 9.96s) with node ids matching 2206 exactly, so none of them is pool contention. `tests/unit/cli/test_click_app.py` asserted raw's options as `["full", "limit", "offset"]`. #5202 added `continuation` to `MESSAGE_READ_VIEW_OPTION_NAMES`, so the product is right and the assertion was stale in two places. `test_plain_cli_snapshots.ambr` is regenerated. The drift is genuine fixture data, not the ephemeral state this file's docstring warns about: - The seeded corpus now draws titles from `polylogue/schemas/synthetic/demo_themes.py` instead of `synthetic-N` placeholders. Checked before committing, because realistic titles in a tracked baseline is the shape a private-data leak would take; these are authored in-repo fixtures. - `total_messages` moves 10 to 13. Verified against the seeded artifact rather than accepted from the diff: 8 + 5 messages across two sessions, every row `identity_source=native` with `content_occurrence=0`. A message-count drift is also what a content-identity collision or a lineage-recomposition bug would look like, and regenerating over one of those would pin the bug permanently. - `summed_wall_duration_ms` now redacts to `<HASH>` where the old baseline pinned a literal duration. The old baseline was doing what the docstring forbids; the regeneration removes a latent flake. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
ab39113 to
03c44f8
Compare
Summary
Job 2206 — the first nightly full-corpus
verify_all, which fired at 03:00 asdeclared in #5196 — failed with 27 tests red. Fifteen were deterministic and
stale. This PR is those fifteen.
They reproduce in isolation at the base commit (
15 failed, 96 passed in 9.96s)with node ids matching 2206 exactly, so none of them is pool contention.
The two assertion fixes
tests/unit/cli/test_click_app.pyasserted raw's options as["full", "limit", "offset"]. #5202 addedcontinuationtoMESSAGE_READ_VIEW_OPTION_NAMES. The product is right; the assertion was stalein two places.
The thirteen snapshots
Regenerated. The drift is genuine fixture data, not the ephemeral state this
file's docstring warns about — which is why each change was checked before
committing rather than after a green:
polylogue/schemas/synthetic/demo_themes.pyinstead ofsynthetic-Nplaceholders. Verified, because realistic conversation titles appearing in a
tracked baseline is exactly the shape a private-data leak would take. These
are authored in-repo fixtures.
total_messagesmoves 10 → 13. Verified against the seeded artifact, notaccepted from the diff: 8 + 5 messages across two sessions, every row
identity_source=nativewithcontent_occurrence=0. A message-count drift isalso what a content-identity collision or a lineage-recomposition bug looks
like, and regenerating over one of those would pin the bug permanently.
summed_wall_duration_msnow redacts to<HASH>where the old baselinepinned a literal duration. The old baseline was doing what the docstring
forbids; the regeneration removes a latent flake.
Verification
devtools testover the four affected files through the declaredpytest_focusedoperation (job 2463): 199 passed, 4 failed. All fourfailures are the pre-existing wire-support ones described below — untouched by
this PR and red on master independently.
Not in this PR: the wire-support gap
The other twelve 2206 failures split into ~7 load-shaped daemon timeouts (still
needing isolated evidence) and 5 real wire-support failures that are one
design gap, not a test bug:
build_wire_support_receiptsynthesizes one session document per providerand validates it against every element in every package. That was harmless
while each provider declared one element kind. It is not any more — chatgpt v4
now declares
export_assetandexport_asset_indexbesidesession_document(#5215), and claude-code declares nine kinds across v1–v3 (
agent_transcript,session_index,workflow_journal,coordinator_session_stream,agent_sidecar_meta, …). Every element is declaredsupported=True.The symptoms are all consequences of that: the missing
'number'in a typeunion is
export_asset_index'sadditionalProperties, which has no reason toadmit a float
create_timebecausecreate_timeis not a field it models; andthe conservation "losses" at
$.body (message_body)and$.id (session_title)are a session document parsed under an asset schema, which loses every session
field by construction. The chatgpt parser is not dropping content and the
committed schemas are not wrong.
The fix is per-element wire synthesis — a feature, not a red-fix. Filing it
rather than forcing it: a filter that merely skips non-document elements breaks
test_every_catalog_provider_has_an_explicit_route_and_receipt_counts, whichrequires an entry for every catalog element. I tried that and it was wrong.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK