Skip to content

fix(schemas): declare explicit wire routes for claude-design and grok - #4412

Merged
Sinity merged 1 commit into
masterfrom
fix/explicit-wire-routes
Aug 29, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/explicit-wire-routes

Conversation

@Sinity

@Sinity Sinity commented Aug 29, 2026

Copy link
Copy Markdown
Owner

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.

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.
@coderabbitai

coderabbitai Bot commented Aug 29, 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: 6c85afc3-f4f4-4ec6-8069-d401aa732330


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 Aug 29, 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
📝 Code Review ✅ Completed 2026-08-29T04:06:05.003441Z 411c6e5 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.

@Sinity
Sinity merged commit 8297250 into master Aug 29, 2026
3 checks passed
@Sinity
Sinity deleted the fix/explicit-wire-routes branch August 29, 2026 04:08
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]>
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