Repository navigation
fix(firestore): end the six v3 conversations index declarations in __name__ - #25551
Merged
Git-on-my-level merged 2 commits intoNov 17, 2026
Merged
Conversation
…name__ BasedHardware#25500 declared six conversations composite indexes without a trailing __name__ field. Firestore creates them with __name__ appended, and the readiness checker only aliases an implicit __name__ for historic signatures, so it reported all six MISSING even once they were READY. Every pusher dev qualification failed at "Verify serving Firestore indexes" because of this, and the next prod backend deploy would too. Declare __name__ explicitly and regenerate firestore.indexes.json. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
test_conversation_terminal_family's first retry-trigger case paid the lifecycle import and the lazy speaker_resolution_inputs import inside its call phase (1.05s and 1.42s on CI). Import both at collection; the case now measures 0.06-0.13s locally. test_walk_1200_segments_once_with_one_existing_read_per_page does real paging work over a 1200-segment transcript (~0.3s locally, 1.02-1.07s on CI). Allowlist it with that evidence. Co-Authored-By: Claude Opus 5.5 <[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
#25500 declared six
conversationscomposite indexes inbackend/database/firestore_index_registry.pywithout a trailing__name__:conversations_v3_pending_capture_continuationconversations_v3_pending_oldest_pageconversations_v3_active_legacy_meterconversations_v3_derived_windowconversations_v3_geolocation_countconversations_v3_day_countFirestore stores each of them with
__name__appended. The readiness checker (reconcile_firestore_indexes.py --check-only) does an exact signature match and only aliases an implicit__name__forHISTORIC_IMPLICIT_DOCUMENT_ID_SIGNATURES. So it reported all six as MISSING even after they were READY in dev.This blocked every pusher dev qualification at "Verify serving Firestore indexes" (runs 43954955756 and 43981331203). It will block the next prod backend deploy as well.
This PR adds
_asc('__name__')to those six entries and regeneratesfirestore.indexes.jsonwithgenerate_firestore_indexes.py --write.Verification
reconcile_firestore_indexes.py --check-onlyagainst based-hardware-dev with this manifest: "Firestore index readiness passed: 304 composite indexes and 29 field overrides READY".pytest tests/unit/test_firestore_query_shapes.py: 607 passed.CI unblock (test-only)
Shard 3 failed twice on CPU-guard tests in files this PR does not touch:
test_conversation_terminal_family.py::test_retry_triggers_never_replace_explicit_restore_authority[False-server_recovery]: 1.05s, then 1.42s. The first case paid the module imports. They now load at collection, and the case measures 0.06-0.13s.test_mcp_conversation_detail_paging.py::test_walk_1200_segments_once_with_one_existing_read_per_page: 1.02-1.07s on CI against about 0.3s locally. This is real paging work, so it is allowlisted with that evidence.Rollout note
Prod still lacks these six indexes. They have to be applied with
gcp_firestore_indexes.yml(prod, composite-indexes) before this manifest lets a prod deploy pass readiness.Failure-Class: none
🤖 Generated with Claude Code