Repository navigation
feat: Generate provider schema packages from the recorded source frontier - #5215
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (41)
📒 Files selected for processing (48)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details🔇 Additional comments (49)
📝 WalkthroughWalkthroughThe pull request regenerates provider schema metadata for September 2026. It adds promoted package versions, new element coverage, observation counters, structure identifiers, runtime outcomes, manifests, and refreshed schema-inference handoff records. ChangesProvider schema metadata
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The regenerated metadata is consistent with the repository’s distinct manifest and package counting contracts and is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. A rabbit sorts the schema trail Comment |
…tier Regenerate every package-requiring provider through the production commit route (`devtools schema commit --full-corpus --frontier`) bound to the frontier baseline recorded by polylogue-81bj2, and account for all eleven declared subjects in one pass. Seven providers gained structure: chatgpt v4 (+2018 paths, 5,643 samples), codex v4 (+3240, 10,529,822), claude-code v3 (+3826, 4,993,931), claude-design v3 (+336, 3,877), hermes v3 (+642, 161), antigravity v3 (+5, 116) and gemini-cli v3 (+6, 808). claude-ai (1,016) and gemini (12) regenerated non-vacuously and compared byte-identical. grok is a declared empty denominator; browser-capture is a declared preflight refusal covering all 1,243 candidates. No package narrowed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
759512e to
cb28678
Compare
## 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.com/claude-code) https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…ence (#5444) ## Summary The schema commit route ran **no privacy review**, and no post-hoc gate could substitute for one — because the write itself strips the evidence. Bead: polylogue-tnqqt (AC7; bead not closed). ## Problem `operator/commit.py` persisted without any privacy review. That matters more than it sounds, because `replace_provider_packages` **strips `x-polylogue-values` as it writes**. Measured directly: committing a bundle whose `conversation_id` retains a UUID **succeeded**, and the persisted element was `{"type": "string"}` — the value silently dropped rather than the commit refused. `gate schema-privacy` therefore inspects bytes the leak has already been removed from. The gate was never going to catch this class. ## Solution `_commit_into` runs the registered predicate on the **in-memory** bundle and raises `SchemaCommitPrivacyError` before the write. **Two wrong placements were found and discarded before landing**, reported rather than hidden: 1. A *post-persist* audit — structurally incapable of catching this class. That is the "harness more permissive than production" trap. 2. Inside `persist_generated_provider_bundle` — this grew the schema-closure ratchet **558 -> 559** and `gate schema-closure` FAILED, which would have made every future privacy-predicate edit move the archive identity. ## Verification ``` devtools verify --quick -> PASSED (gate schema-closure ok) devtools render all --check -> exit 0, grep -c "out of sync" = 0 devtools test tests/unit/schemas/test_operator_commit.py -> PASSED devtools schema closure polylogue/schemas/operator/commit.py -> out ``` Derived `index` identity `4df1149f…` is **identical at base and head** — no rebuild-ordering constraint. Anti-vacuity executed, not asserted: removing the call produced `Failed: DID NOT RAISE SchemaCommitPrivacyError`, then restored. A second test proves the check **discriminates** rather than refusing everything. A `getattr(bundle, "package_schemas", {})` was also replaced with direct attribute access — the `getattr` default would have made the check silently vacuous forever under a rename. ## The rest of the bead was already satisfied Its notes are **stale**: they cite master `da37fcf4c` (PR #4830), but packages were regenerated since by **#5215, #5219, #5223, #5357, #5411**. The committed `provider-matrix.json` at head has 12 subjects, zero blockers, zero findings. - **AC1 / AC3 / AC5 / AC6** satisfied by already-committed work: `outcome_counts` is 8 `zero_diff`, 1 `generated`, 2 `proven_non_applicable`, 1 `declared_non_applicable` = 12, matching the denominator exactly; per-subject `denominator.conserves: true`. - **AC2** satisfied — `derive_provider_denominator()` derives at call time from `SCHEMA_SUBJECTS` + `origin_specs()`, no hard-coded count. Residual: hard-coded provider sets in `synthetic/wire_formats.py:39` and `build_batch.py:665` will not follow a new subject. - **AC4** satisfied — `SubjectOutcome` includes `not_run`, and cardinality comes from the denominator, not the receipts. - **AC8** satisfied at the aggregate matrix (all six bindings); **unsatisfied at per-package metadata** (only `input_manifest_digest`). Needs an operator reading of whether the aggregate suffices. - **AC9** not attempted — owned by polylogue-rrxe4.1, downstream. ## Inherited reds, named and not fixed 10 tests in `tests/unit/schemas/test_source_cache_reuse.py` and `test_promote_cluster_privacy_config.py` fail **identically at base and at head** — same 10 nodeids in both runs. Unrelated to this bead (source-evidence cache phases and default privacy-config generation) and a large separate scope. ## Residuals - The `db_path` generation path persists inside `generate_all_schemas` with no pre-strip seam; unguarded, and stated in the commit message. - **False docstring** at `provider_denominator.py:28-31` claims a closure test exists in `test_provider_denominator.py` — it does not. - **No gate detects the committed `provider-matrix.json` going stale** against head's generator fingerprints; its recorded `code_revision a5c893c8f` is not an ancestor of master. - `schema-inference-handoff.json` records four providers as `provider_without_wire_format` because `receipt.py:392` reads the narrow `PROVIDER_WIRE_FORMATS` rather than `PROVIDER_WIRE_ROUTES`, which its own docstring calls *"the authority for catalog coverage"*, discarding the declared specific reasons. Not fixed: correcting it would change a committed receipt that cannot be regenerated without private source. No operator material in the diff; fixtures are synthetic. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
Regenerates every package-requiring provider schema package through the production commit route, bound to the source frontier recorded by polylogue-81bj2, and accounts for all eleven declared subjects in one pass. Closes the generation obligation of polylogue-tnqqt.
Problem
The committed provider packages were generated on 2026-09-08 against source roots that have since moved to
/realm/accounts/. They were demonstrably stale:gemini-cliv3 was missing 6 structure paths andhermesv3 was missing 642. Prior attempts could not bind a conserved baseline, because live mutable roots produced a different manifest digest between two runs eleven minutes apart. polylogue-81bj2 fixed that by recording a frontier document with a digest that holds across reads.Only seven providers had ever had a generation command run against them.
antigravity,browser-capture,claude-designandgrokcarried committed packages with no reconciled outcome at all.Solution
Ran
devtools schema commit --provider <p> --full-corpus --frontierfor each of the eleven subjects derived at execution time fromSCHEMA_SUBJECTS/SCHEMA_PACKAGE_DIRECTORIES. The frontier check was green before and after (baseline digeste10c266d…, declaration digest7168062e…, 16 roots, 48,787 members).Provider matrix
Failed: 0. Unknown: 0. Narrowed: 0 — no package lost a path.
Every non-included candidate carries a typed terminal reason:
source_class_non_session,antigravity_markdown_sidecar,antigravity_protobuf_adapter_unavailable,source_class_unsupported,no_schema_units,too_large_unstreamable_document,malformed_jsonl_record,changed_during_read,browser_capture_adapter_unavailable.The two zero-diff results satisfy the bead's rule: the route executed non-vacuously (1,016 and 12 samples over a resolved denominator) and structural comparison proved the committed package already matched.
Verification
Privacy review: every changed element was decompressed and scanned for conversation excerpts, filesystem paths, operator identifiers, credential-shaped tokens and UUIDs. No newly generated version contains any. Three pre-existing hits of the operator handle in already-published
x-polylogue-valuesvocabularies (claude-aiv2,claude-designv2,grokv2) were verified byte-identical to their state at master and are untouched here.Closure:
polylogue/schemas/providers/**is outside the derived schema identity closure (devtools schema closurereportsout). No generation code was modified, so the derived identity does not move and this change does not require reconvergence before a rebuild.Residuals
browser-captureis a refusal, not a zero denominator. Its 1,243 members are all terminalunsupportedwith reasonbrowser_capture_adapter_unavailable, refused unconditionally at preflight insource_inference.py. The committed v1 package therefore cannot be regenerated by this route. AC3's literal wording ("complete zero-eligible-material denominator") is not met; this is a complete, typed, declared accounting of a non-empty denominator, and needs operator adjudication.devtools gate schema-auditexits 1 with 40 pass / 11 warn / 0 fail. Identical warn count before and after this change, so not a regression: the generator emits nox-polylogue-generated-attimestamp. Not in the quick set.claude-aiandclaude-designreceipts share one export root and report mismatchedincludedrecord counts against their own sample counts. Worth a look before these counts are used as a conservation proof.claude-code's frontier shows 7 added members and 3changed_during_readoutcomes from the agent session that produced this change writing its own transcript into the declared root.schema_sourcesoperation pinsPOLYLOGUE_ARCHIVE_ROOTto the durable archive, whosesource.dbis atuser_version30 while current code expects 45. Generation refuses withSchemaSkewthere. These runs used disposable per-provider scratch archives withPOLYLOGUE_SCHEMA_FRONTIERbound explicitly; the durable-tier migration is a separate operator decision.🤖 Generated with Claude Code
https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK
Summary by CodeRabbit
New Features
Updates