Skip to content

fix: select every registry composite for the isolated jit-qa Firestore database - #13464

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/jit-qa-chat-first-deferrals-index-20260911
Sep 11, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/jit-qa-chat-first-deferrals-index-20260911

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Summary

The isolated jit-qa Firestore database is provisioned by the bounded QA operator, which selected 17 of the 78 registry composites. Every shared query outside that set returns FailedPrecondition on the QA plane while the plan reports "none missing":

The QA app now runs the full shared desktop path for real working days, so adding composites one measured failure at a time costs a PR plus an apply run per path. The registry is exactly the set production is reconciled against, so the operator now selects all of it. Project, database, confirmation, and the QA-only single-field target are unchanged, and firestore.indexes.json is untouched (no prod reconciliation run is queued by this change).

Verification

  • backend/tests/unit/test_jit_qa_firestore_index_operator.py and test_action_items_due_range_index_contract.py: 28 passed
  • After merge: dispatch jit_qa_manual_operator.yml operation=indexes-apply and confirm the deferral query serves on jit-qa

Failure-Class: FC-undeclared-serving-query-index

🤖 Generated with Claude Code

Review in cubic

…e database

The bounded QA operator selected 17 of 78 registry composites, so the signed-in
QA app hit FailedPrecondition on the first shared query outside that set:
action_items on 2026-09-10 and chat_first_deferrals (release_due_deferrals via
POST /v2/chat/materialize-prompts) on 2026-09-11, while the plan reported
"none missing". The registry is exactly the set production is reconciled
against, so the operator now selects all of it; the QA-only single-field
target stays explicit. Tests follow the registry count.

Failure-Class: FC-undeclared-serving-query-index

Co-Authored-By: Claude Fable 5.1 <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Confidence score: 5/5

  • In backend/tests/unit/test_jit_qa_firestore_index_operator.py, the _REGISTRY_COUNT >= 78 floor may preserve a hardcoded staged-count assumption, allowing the test to pass without fully ensuring new production query requirements are provisioned; align the assertion with the registry-derived count or clarify why the floor remains.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="backend/tests/unit/test_jit_qa_firestore_index_operator.py">

<violation number="1" location="backend/tests/unit/test_jit_qa_firestore_index_operator.py:64">
P3: The new `_REGISTRY_COUNT >= 78` floor partially contradicts the change's stated intent of "the count follows the registry so a new production query requirement is provisioned" and removing hardcoded staged counts. If production ever legitimately reduces a composite (registry drops below 78), this test fails even though the operator correctly follows the registry. The lower-bound `>=` also does not catch the over-selection case the PR cares about, since `len(manifest["indexes"]) == _REGISTRY_COUNT` already ties the manifest to the registry. Consider asserting only the equality (len follow) and dropping the brittle hardcoded floor, or document why 78 is a permanent minimum.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

manifest, signatures = operator.selected_manifest()

assert len(manifest["indexes"]) == 17
assert _REGISTRY_COUNT >= 78

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The new _REGISTRY_COUNT >= 78 floor partially contradicts the change's stated intent of "the count follows the registry so a new production query requirement is provisioned" and removing hardcoded staged counts. If production ever legitimately reduces a composite (registry drops below 78), this test fails even though the operator correctly follows the registry. The lower-bound >= also does not catch the over-selection case the PR cares about, since len(manifest["indexes"]) == _REGISTRY_COUNT already ties the manifest to the registry. Consider asserting only the equality (len follow) and dropping the brittle hardcoded floor, or document why 78 is a permanent minimum.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At backend/tests/unit/test_jit_qa_firestore_index_operator.py, line 64:

<comment>The new `_REGISTRY_COUNT >= 78` floor partially contradicts the change's stated intent of "the count follows the registry so a new production query requirement is provisioned" and removing hardcoded staged counts. If production ever legitimately reduces a composite (registry drops below 78), this test fails even though the operator correctly follows the registry. The lower-bound `>=` also does not catch the over-selection case the PR cares about, since `len(manifest["indexes"]) == _REGISTRY_COUNT` already ties the manifest to the registry. Consider asserting only the equality (len follow) and dropping the brittle hardcoded floor, or document why 78 is a permanent minimum.</comment>

<file context>
@@ -53,10 +58,12 @@ def request(method, url, payload):
     manifest, signatures = operator.selected_manifest()
 
-    assert len(manifest["indexes"]) == 17
+    assert _REGISTRY_COUNT >= 78
+    assert len(manifest["indexes"]) == _REGISTRY_COUNT
+    assert operator.TARGET_REQUIREMENTS is registry.INDEX_REQUIREMENTS
</file context>

@Git-on-my-level
Git-on-my-level merged commit 0b6aeb4 into main Sep 11, 2026
50 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/jit-qa-chat-first-deferrals-index-20260911 branch September 11, 2026 03:51
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