Skip to content

fix: Refresh the fifteen stale CLI assertions job 2206 found - #5227

Merged
Sinity merged 1 commit into
masterfrom
fix/2206-red
Sep 18, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/2206-red

Conversation

@Sinity

@Sinity Sinity commented Sep 16, 2026

Copy link
Copy Markdown
Owner

Summary

Job 2206 — the first nightly full-corpus verify_all, which fired at 03:00 as
declared 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.py asserted raw's options as
["full", "limit", "offset"]. #5202 added continuation to
MESSAGE_READ_VIEW_OPTION_NAMES. The product is right; the assertion was stale
in 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:

  • The seeded corpus now draws titles from
    polylogue/schemas/synthetic/demo_themes.py instead of synthetic-N
    placeholders. 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_messages moves 10 → 13. Verified against the seeded artifact, not
    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 looks
    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.

Verification

devtools test over the four affected files through the declared
pytest_focused operation (job 2463): 199 passed, 4 failed. All four
failures 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_receipt synthesizes one session document per provider
and 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_asset and export_asset_index beside session_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 declared supported=True.

The symptoms are all consequences of that: the missing 'number' in a type
union is export_asset_index's additionalProperties, which has no reason to
admit a float create_time because create_time is not a field it models; and
the 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, which
requires an entry for every catalog element. I tried that and it was wrong.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f2d9c28d-2916-4428-8f81-cbb2dd004a4b

📥 Commits

Reviewing files that changed from the base of the PR and between 89618f9 and 03c44f8.

📒 Files selected for processing (2)
  • tests/unit/cli/__snapshots__/test_plain_cli_snapshots.ambr
  • tests/unit/cli/test_click_app.py

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-16T06:26:14.951316Z ab39113 PR opened
ℹ️ 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" or "@codex security review".

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
@Sinity
Sinity merged commit 883ebcf into master Sep 18, 2026
3 checks passed
@Sinity
Sinity deleted the fix/2206-red branch September 18, 2026 20:34
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