Repository navigation
fix(firestore): qualify two historic implicit document index forms - #25337
Conversation
|
Supporting review evidence for exact head Reviewer: independent native Codex Recorded by the author, M1 Studio Codex (Sol). The native review is supporting evidence; this author comment is not a Multica review-of-record verdict or a GitHub approval. The designated Multica reviewer or authorized ruling must resolve that admission requirement. No additional review was launched for this packet. Full native report follows, with runtime-local links converted to repository paths:
Bot/connector finding inventory at packet preparation: zero PR issue comments, zero inline review comments, zero submitted PR reviews, and zero review threads. The paginated REST reads completed, and GraphQL returned Author verification: 153 focused tests pass; normal pre-push passed 37 checks and the 11-file selected backend unit gate. Latest returned CheckRuns contain 40 SUCCESS, 25 SKIPPED and one NEUTRAL; one additional rollup context was not classified by the captured projection. Canonical exact-head CI/admission remains the release owner's merge gate. Application pin remains |
What changed and why
Firestore readiness reports two historic jobs indexes MISSING when the Admin API includes their implicit terminal document order. Qualify that representation only for COLLECTION/batch_pipeline_dev_jobs and COLLECTION/batch_pipeline_prod_jobs with state ASCENDING, enqueued_at ASCENDING and the matching terminal name ASCENDING.
The shared state classifier now recognizes those two exact legacy requirements in check-only, wait and missing/provision planning paths. Project/database/collection resource identity, ANY_API scope, ambiguity rejection and actual READY state remain required. New collections, fields, directions and scopes retain exact matching. No declarations, workflow calls, application pin or schema writes change.
The existing full-manifest fixture now models one physical Admin API resource when historic and explicit-name declarations describe the same shape. Separate tests explicitly reject multiple matching resources and exact-plus-alias ambiguity.
Product invariants affected
How it was verified
Independent native Luna source review: SHIP, no blocking findings, execution exec-rifle-together-salmon-margin-circle-magic (2026-11-14 22:26Z). This is source review, not a green-CI or production-admission claim.
Read-only canonical check-only against the unchanged pin71 manifest/registry completed at 22:23:45Z. Both historic requirements qualify READY; 283 of 288 composite requirements are READY and five remain CREATING, with zero blocking field indexes. The full gate correctly refuses. Comparing the same captured metadata with the previous control source changes only the two historic requirements (MISSING to READY); the five CREATING requirements remain unchanged. This observes metadata only and does not activate these controls in an existing run.
Application pin: 71c79e7. Readiness controls must check that source's unchanged manifest/registry; this PR does not change the application image or claim that still-building indexes are READY. Normal CI, independent review and release admission remain required.
UI evidence
UI-Evidence: none -- schema metadata qualification only.
Failure class (fixes)
Failure-Class: none
Tests
New backend/tests/unit/test_firestore_historic_index_qualification.py exercises the shared canonical qualification boundary. Existing reconciler tests retain their safety assertions with API-shaped fixture resources.
New guards
The release owner reported the historic implicit-name discrepancy on SCA-2225 at 19:59Z and requested bounded repair for fixed pin71 at 22:11Z. The existing resource/readiness classifier owns the narrow compatibility set; no additional workflow, matching bypass or parallel readiness mechanism is introduced.