Repository navigation
fix(schemas): declare explicit wire routes for claude-design and grok - #4412
Merged
Merged
Conversation
Both are catalog providers with no route entry at all, so build_wire_support_receipt reported them as missing and test_every_catalog_provider_has_an_explicit_route_and_receipt_counts failed on master. test_removed_provider_route_changes_explicit_support_receipt failed as collateral: it deletes the codex route and asserts codex is the only one missing, which holds only when every other provider has one. Neither is expressible by the generic adapter. Grok nests conversations then responses and carries no native conversation id; claude-design uses camelCase contentBlocks with content as a dict rather than a list. Both are declared unsupported with reasons, which is what the table's own comment asks for -- unsupported routes are explicit capabilities, not implicit fallbacks.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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. |
Sinity
added a commit
that referenced
this pull request
Aug 29, 2026
…#4412) ## Summary Give `claude-design` and `grok` explicit `unsupported` wire routes, clearing two red tests on master. ## Problem Both are catalog providers with no entry in `PROVIDER_WIRE_ROUTES` at all — neither supported nor explicitly unsupported. Measured on master: build_wire_support_receipt(...).missing_routes -> ('claude-design', 'grok') test_every_catalog_provider_has_an_explicit_route_and_receipt_counts assert not receipt.missing_routes AssertionError: assert not ('claude-design', 'grok') test_removed_provider_route_changes_explicit_support_receipt assert after.missing_routes == ('codex',) AssertionError: assert ('claude-design', 'codex', 'grok') == ('codex',) The second is collateral, not a second defect: it deletes the codex route and expects codex to be the only one missing, which holds only when every other provider has a route. ## Solution Declare both unsupported with reasons, which is what the table's own comment asks for — *"All catalog providers must have a route here. The unsupported routes are explicit capabilities, not implicit generator fallbacks."* Neither is expressible by the generic adapter, so `unsupported` is the accurate status rather than a convenient one: - **grok** — the export nests `data["conversations"]`, each item carrying `conversation` and `responses` with each response nested inside, and neither the conversation nor its responses carry a native id. A single `messages_path` cannot express that, and the tree config keys on ids that do not exist. - **claude-design** — a distinct product wire format (`bd polylogue-tbun`): camelCase `contentBlocks`/`turnChanges`/`authorAccountUuid`, with `content` a dict rather than a list. This matches the existing explicit-unsupported entries for `antigravity`, `browser-capture`, `gemini-cli` and `hermes`. ## Verification devtools test tests/unit/core/test_synthetic_wire_support.py -k "removed_provider_route or every_catalog_provider" 2 passed Receipt after the change: `missing_routes = ()`, `supported_count = 8`, and the catalog provider set equals the route set exactly. Pre-push quick gate green. ## Residual risk Declaring a provider unsupported is a claim about the generic adapter, not about the provider's own parser — both have real parsers and real fixtures elsewhere. If either wire shape later becomes expressible, the route should move to `supported` rather than the reason being reworded. Six other red tests remain on master, tracked in polylogue-kbmg2 and undiagnosed.
Sinity
added a commit
that referenced
this pull request
Sep 1, 2026
…#4412) ## Summary Give `claude-design` and `grok` explicit `unsupported` wire routes, clearing two red tests on master. ## Problem Both are catalog providers with no entry in `PROVIDER_WIRE_ROUTES` at all — neither supported nor explicitly unsupported. Measured on master: build_wire_support_receipt(...).missing_routes -> ('claude-design', 'grok') test_every_catalog_provider_has_an_explicit_route_and_receipt_counts assert not receipt.missing_routes AssertionError: assert not ('claude-design', 'grok') test_removed_provider_route_changes_explicit_support_receipt assert after.missing_routes == ('codex',) AssertionError: assert ('claude-design', 'codex', 'grok') == ('codex',) The second is collateral, not a second defect: it deletes the codex route and expects codex to be the only one missing, which holds only when every other provider has a route. ## Solution Declare both unsupported with reasons, which is what the table's own comment asks for — *"All catalog providers must have a route here. The unsupported routes are explicit capabilities, not implicit generator fallbacks."* Neither is expressible by the generic adapter, so `unsupported` is the accurate status rather than a convenient one: - **grok** — the export nests `data["conversations"]`, each item carrying `conversation` and `responses` with each response nested inside, and neither the conversation nor its responses carry a native id. A single `messages_path` cannot express that, and the tree config keys on ids that do not exist. - **claude-design** — a distinct product wire format (`bd polylogue-tbun`): camelCase `contentBlocks`/`turnChanges`/`authorAccountUuid`, with `content` a dict rather than a list. This matches the existing explicit-unsupported entries for `antigravity`, `browser-capture`, `gemini-cli` and `hermes`. ## Verification devtools test tests/unit/core/test_synthetic_wire_support.py -k "removed_provider_route or every_catalog_provider" 2 passed Receipt after the change: `missing_routes = ()`, `supported_count = 8`, and the catalog provider set equals the route set exactly. Pre-push quick gate green. ## Residual risk Declaring a provider unsupported is a claim about the generic adapter, not about the provider's own parser — both have real parsers and real fixtures elsewhere. If either wire shape later becomes expressible, the route should move to `supported` rather than the reason being reworded. Six other red tests remain on master, tracked in polylogue-kbmg2 and undiagnosed.
Sinity
added a commit
that referenced
this pull request
Sep 3, 2026
build_wire_support_receipt runs the synthetic corpus and the production parser over every catalogued package element: 27s per full-catalog call in a quiet process, and 106-110s of call time under -n 2, inside a 120s timeout with no margin. #4412 added two providers and the margin went. Tests that assert about one provider's entry, or that a receipt changed, name the providers they read. Catalog-wide construction stays covered by test_support_receipt_is_deterministic, test_support_receipt_does_not_substitute_a_default_selection, and test_wire_support_receipt_is_canonical_across_catalog_reordering. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
Sinity
added a commit
that referenced
this pull request
Sep 3, 2026
build_wire_support_receipt runs the synthetic corpus and the production parser over every catalogued package element: 27s per full-catalog call in a quiet process, and 106-110s of call time under -n 2, inside a 120s timeout with no margin. #4412 added two providers and the margin went. Tests that assert about one provider's entry, or that a receipt changed, name the providers they read. Catalog-wide construction stays covered by test_support_receipt_is_deterministic, test_support_receipt_does_not_substitute_a_default_selection, and test_wire_support_receipt_is_canonical_across_catalog_reordering. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz
Sinity
added a commit
that referenced
this pull request
Sep 3, 2026
…ping, wire-receipt cost (#4591) ## Summary Five red classes from the 2026-09-03 corpus run, each its own commit. Two are product defects; three are fixtures pinned to shapes the runtime has moved past. ## Problem and solution, per class ### The relink route never derived attachment provenance (6 tests) `attachment_refs.direction` is `NOT NULL`, and only the main write route derived it from the owning turn. Blob-reference closure relinked attachments straight from the parsed record: ``` sqlite3.IntegrityError: NOT NULL constraint failed: attachment_refs.direction ``` The relink path now goes through the same shared derivation, reading the owning turn from the index when the append payload's own message map does not carry it — an append whose owning message is already materialized. Two of the six failed inside the main route instead, on a model-output attachment whose turn carried no provider id; `#4587` fixed that while this branch was open, and this commit builds on it. ### One session total on two model rows (1 test) `sessions.reported_cost_usd` is one exact dollar total for a session, written onto a single `session_model_usage` row. A merge-append that switched models left the superseded row holding the previous total, so every sum over the session counted it twice. The direction-refusal test alongside it named a user turn, whose direction the derivation supplies; only a role outside the user/model pair leaves the column underivable, so that is what it names now. ### Hand-built index fixtures without a tier version (12 tests) `#4485`'s open-time tier check refuses a database named for an archive tier whose `user_version` is 0: ``` SchemaSkewError: index schema skew: expected 85, found 0 ``` - The deployment-smoke browser-capture probe fixtures declare the version the read profile expects, read from the tier table. - The embed-backfill fixtures build the tier through the production bootstrap rather than touching a bare SQLite file. - The WAL/journal pragma probes name their scratch databases for what they are. They test the pragmas the connection factories apply; the tier check fired only because the files were called `index.db` and `ops.db`. ### Hand-built `blocks` tables without `tool_outcome` (6 tests) The insight-status and readiness queries read `blocks.tool_outcome`, the canonical structural outcome since `#4539`. Two fixtures predate it. ### A killed waiter left its pytest slot task queued (host defect) The waiter blocks on a task it queued through pueue, and the task outlives it. The slot's parallelism is one, so a task left with no waiter starves every other checkout on the host until someone reads the queue and kills it by hand -- which is what happened during this branch's own runs. The waiter now reaps the task it added when it is signalled or unwound: kill, then remove, then drop the launch file, which carries a resolved environment and must not survive either. ### Full-catalog wire receipts on single-provider assertions `build_wire_support_receipt` runs the synthetic corpus and the production parser for every catalogued package element. Profiled: 27 s per full-catalog call in a quiet process, and the file's heaviest tests measured 106-110 s of call time under `-n 2` -- inside a 120 s timeout with no margin, which is what the corpus run recorded as nine timeouts. `#4412` added two providers and the margin went. Tests that assert about one provider's entry, or that a receipt *changed*, now name the providers they read; three catalog-wide tests still build the whole catalog. Memoizing the schema-annotation parsing the profile flagged was tried and reverted: 26.5 s against 27.4 s, which does not buy an identity-keyed cache in production code. ### Reader assertions pointed at the wrong route The interpolated shell answers on `/w/` and the paste routes; the root and `/s/` serve the typed WebUI. Eight reads across the visual suites and `test_web_shell_reader.py` now fetch `/w/stack`. This also restores `test_reader_search_shell_dom_evidence`, which `#4579` deleted -- the shell it tests is still served, just not at the root, so repointing it was the right move and deleting it was not. ## Verification `devtools test <file> -n 2`: | file | before | after | | --- | --- | --- | | `tests/unit/storage/test_archive_tiers_write.py` | 2 failed | **107 passed** | | `tests/unit/maintenance/test_blob_reference_closure.py` | 6 failed | **13 passed** | | `tests/unit/cli/test_embed_activation.py` | 7 failed | **35 passed** | | `tests/unit/devtools/test_deployment_smoke.py` | 7 failed | **24 passed** | | `tests/unit/storage/test_wal_journal_size_limit.py` | 5 failed | **8 passed** | | `tests/unit/storage/test_session_insight_status_descriptors.py` | 5 failed | **13 passed** | | `tests/unit/core/test_insight_readiness.py` | 1 failed | **passed** | | `tests/unit/devtools/test_pytest_slot.py` | 7 passed | **8 passed** | | `tests/unit/storage/test_session_profile_model_usage_consistency.py` + `tests/unit/insights` | — | **730 passed** (cost regression check) | `devtools verify --quick` green at this head. The attachment and cost measurements above predate the rebase onto `#4587`, which rewrote `_attachment_provenance` under this commit; the storage suites are re-running against the merged shape. The slot-reaping test drives a real SIGTERM into a child waiter with a fake `pueue` on PATH. Anti-vacuity: dropping the `_reaping` context leaves the recorded calls at `add`/`wait`, the starvation shape itself. The visual and wire-receipt commits are still queued behind the host's pytest slot at the time of writing; they are committed, not yet measured. ## Residual risk The provider-scoped wire receipts trade catalog breadth for time in tests that assert about one provider. If a future provider's route breaks only in a receipt those tests build, three catalog-wide tests still catch it, one test later. `tests/unit/infra/test_pathology_zoo.py` was red in the corpus run and is green at this head with no change here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YGi8wLWGR2HYBh8p8fXFXz --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Give
claude-designandgrokexplicitunsupportedwire routes, clearing two red tests on master.Problem
Both are catalog providers with no entry in
PROVIDER_WIRE_ROUTESat all — neither supported nor explicitly unsupported. Measured on master:The second is collateral, not a second defect: it deletes the codex route and expects codex to be the only one missing, which holds only when every other provider has a route.
Solution
Declare both unsupported with reasons, which is what the table's own comment asks for — "All catalog providers must have a route here. The unsupported routes are explicit capabilities, not implicit generator fallbacks."
Neither is expressible by the generic adapter, so
unsupportedis the accurate status rather than a convenient one:data["conversations"], each item carryingconversationandresponseswith each response nested inside, and neither the conversation nor its responses carry a native id. A singlemessages_pathcannot express that, and the tree config keys on ids that do not exist.bd polylogue-tbun): camelCasecontentBlocks/turnChanges/authorAccountUuid, withcontenta dict rather than a list.This matches the existing explicit-unsupported entries for
antigravity,browser-capture,gemini-cliandhermes.Verification
Receipt after the change:
missing_routes = (),supported_count = 8, and the catalog provider set equals the route set exactly.Pre-push quick gate green.
Residual risk
Declaring a provider unsupported is a claim about the generic adapter, not about the provider's own parser — both have real parsers and real fixtures elsewhere. If either wire shape later becomes expressible, the route should move to
supportedrather than the reason being reworded.Six other red tests remain on master, tracked in polylogue-kbmg2 and undiagnosed.