Repository navigation
fix(backend): classify bounded sync error reason in schema inventory - #23780
Merged
Merged
Conversation
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. |
This was referenced Oct 27, 2026
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.
The main backend unit shard fails because
syncUploadErrorReasonreads the server's bounded error envelope, and the app schema scanner counts that helper as an unmodeled successful response DTO. The inventory reports its jsonDecode at app/lib/backend/http/api/conversations.dart:904 and failstest_inventory_openapi_route_response_decode_migration_complete.Register only
(conversations.dart, syncUploadErrorReason)in the existing bounded error-discriminator classification. The parser regression uses the real production registrations and proves that an adjacent ordinary response decoder, and a helper with the same name in another file, remain normal response-decode sites. Scanner rules and the strict raw-decode gate remain enforced; no application response behavior or runtime flags change.Lead ruling 15197c authorizes this narrow, separate main-red repair. Local reproduction before the change: exact
backend/test.shfile, 1 failed / 12 passed. After the change, the same harness passes all 14 tests, including the new parser regression and strict inventory gates. Command:omi-heavy run -- nice -n 19 env BACKEND_PYTEST_WORKERS=1 BACKEND_UNIT_TEST_FILE_LIST=/Volumes/Ephemeral/scratch/gcs3/schema-tests.txt bash backend/test.sh. Lead owns merge. No deployment is needed for this tooling-only repair; it unblocks the separately gated GCS config PRs.Failure-Class: none
This fixes a tooling classification false positive; no shipped runtime failure class or customer behavior is changed.
Product invariants: INV-MEM-4 -- inventory metadata only; no memory or custody persistence changes.
UI-Evidence: none -- reason: schema inventory/parser test only
Owns: gcs3