Xray
all clusters 1h 6h 24h 48h 3d 5d 7d 14d 30d ‹
Last 1 hour▾
Ends now. Anything up to this cluster's 30-day retention.
Start and end times
Cancel
Interpreted in UTC (change it at the right of this bar). Earliest available: 2026-10-24 10:00:51.
› →|
updated 5d ago
Sample data. This database was generated by scripts/seed_dev_db.py — every service, deploy, person and figure on this page is synthetic. Names are sample.*@seed.invalid and image tags are prefixed SEED-. Nothing here happened.

‹ Test triage

[Test failure] Recommendations tests read snake_case fields; docproc now returns camelCase (11 tests)

The test is wrong confidence medium · medium priority · api-tests-master, last seen in build 597

The verdict

Fix is in
the automation suite (e2e): the test is wrong
Issue
ENG-8843 · Completed
Owner
[email protected] (last changed test_recommendations.py (e076fe18b); the test agent opens the pull request once this is in Ready for Development)
Filed in
Backlog, Test Agent Automation
Service
docproc
History when filed
intermittent, this error since build 597
Suspect commit
9b80cb7b6 Use camelCase for API query params and JSON fields across Go and Python services (#17334) (arzatskis)
Commit 9b80cb7b6 (#17334, "Use camelCase for API query params and JSON fields across Go and Python services", 2026-11-12) moved docproc's `RecommendationResponse` onto `CamelModel`, so fields now go out as camelCase. The tests still read snake_case. `test_ignore_action` gets 200 from the PUT, then `result["user_action"]` raises KeyError (test_recommendations.py:218). The other failures are the same mismatch: `doc_id`, `depends_on` and `data_formatted` are missing. `ai_helper.assert_recommendation_item_structure` and `models/recommendations.py` still use snake_case. No e2e file mentions `docId`, and nothing has landed in e2e/automation since the run. The list route's `doc_id` query param became `alias="docId"`, so the `doc_id` the test sends is probably ignored. That would explain `test_invalid_document_id`, which expects `totalCount == 0` for "invalid-doc-id". Not verified: I did not see the response body, and the commit's e2e changes were cut off in the commit view. The commit's date puts it after build 593 started, and I did not confirm it is in the listed range. The deploys and the chat-agent pod trouble don't touch docproc's recommendations route.

Proposed fix

Update the tests to the new wire format. In `ai_helper.assert_recommendation_item_structure` and `test_recommendations.py`, read `docId`, `recId`, `userAction`, `dependsOn` and `dataFormatted` (check the actual JSON for the exact keys). In `models/recommendations.py`, send `docId` instead of `doc_id` as the query param. PUT bodies can stay snake_case, since the request models accept both.

History of this root cause

  • filed ENG-8843 · build 597 8d ago
    The test is wrong, confidence medium; 11 tests; to [email protected] in Backlog

Tests 11

Oldest to newest, up to 30 runs. Green passed, red failed with this error, amber failed with another error. Skipped and collapsed runs are left out. Newest build: 599.

TestHistoryNewest runReading
test_ignore_action
Recommendations
did not run
test_document_naming_recommendation
Recommendations
did not run
test_document_scope_recommendation
Recommendations
did not run
test_recommendation_document_association
Recommendations
did not run
test_tmf_artifact_recommendation
Recommendations
did not run
test_recommendation_items_structure
Recommendations
did not run
test_each_recommendation_has_explanation
Recommendations
did not run
test_document_metadata_recommendation_if_present
Recommendations
did not run
test_invalid_document_id
Recommendations
did not run
test_sub_artifact_recommendation_if_present
Recommendations
did not run
test_quality_control_recommendation_if_present
Recommendations
did not run

How the agent decided

Models
claude-sonnet-5-5 ($0.52, 20 lookups)
Settled by
the investigating model
Cost
$0.52

What it looked up (20, in order)

1. read_file repo=main, path=e2e/automation/tests/docproc/test_recommendations.py, start_line=1, end_line=198 · 8839 chars back
e2e/automation/tests/docproc/test_recommendations.py (237 lines), lines 1-198: 1 import pytest 2 3 from automation.models.recommendations import Recommendations 4 from automation.utils.helpers.ai_helper import ( 5 assert_json_match, 6 assert_recommendation_item_structure, 7 assert_recommendations_response_structure, 8 ) 9 10 ALL_CATEGORIES = { 11 "TMF Artifact", 12 "Sub Artifact", 13 "Document Metadata", 14 "Document Scope", 15 "Document Naming", 16 "Quality Control", 17 "Investigator Screening", 18 } 19 DEPENDENCY_GRAPH = { 20 "TMF Artifact": [], 21 "Sub Artifact": ["TMF Artifact"], 22 "Document Metadata": ["TMF Artifact", "Sub Artifact"], 23 "Document Scope": ["TMF Artifact", "Document Metadata"], 24 "Quality Control": [], 25 "Document Naming": ["TMF Artifact", "Document Scope", "Document Metadata"], 26 } 27 28 29 def get_expected_depends_on(category, present_categories): 30 """Calculate expected depends_on by removing categories not present in the response.""" 31 full_deps = DEPENDENCY_GRAPH.get(category, []) 32 return [dep for dep in full_deps if dep in present_categories] 33 34 35 def get_items_by_category(recommendations, category): 36 return [item for item in recommendations["items"] if item.get("category") == category] 37 38 39 @pytest.mark.DocprocSvc 40 @pytest.mark.Recommendations 41 @pytest.mark.xdist_group(name="Recommendations") 42 @pytest.mark.usefixtures("document_with_ai_pr … (7339 more characters not kept)
2. search_code repo=main, text=allowedUserActions · 1304 chars back
e2e/automation/knowledge/ai-recommendations.md 32: - **`allowedUserActions` depends on the status** (`get_allowed_user_actions_for_status`): e2e/automation/utils/helpers/ai_helper.py 196: "allowedUserActions", 212: assert isinstance(item["allowedUserActions"], list) data-science/docproc/src/api/api_models.py 296: allowedUserActions: List[AllowedUserActionsType] = Field(..., description="List of allowed user actions based on the recommendation category") 339: "allowedUserActions": ["Fix It", "Ignore"], 385: "allowedUserActions": ["Fix It", "Ignore"], data-science/docproc/src/api/recommendations_router.py 254: """Empty ``allowedUserActions`` on findings in a study the caller cannot change: the write 263: r.allowedUserActions = [] 346: allowedUserActions=allowed_actions_list, data-science/packages/tilda-backend-client/tilda_backend_client/_generated/docproc/types.py 293: allowed_user_actions: Annotated[list[Annotated[Literal['Fix It', 'Ignore', 'Confirm', 'Review'], _LENIENT_ENUM]], _NONE_TO_LIST] = Field(..., alias="allowedUserActions") data-science/chat-agent/evals/datasets/decisions/link-copy-document-owned/mocks/backend/recommendations_list.json 19: "allowedUserActions": [ 50: "allowedUserActions": [ 79: "allowedUserActions": [ 96: "allowedUserActions": [
3. commits repo=main, path=data-science/docproc, since=2026-11-12T00:00:00Z · 1209 chars back
f56eb0825 2026-11-14T20:22 akashanandan-tilda: docproc: scope agent clears a siteId that is not a configured study site (ENG-8726) (#17457) 13cb7ca06 2026-11-14T19:31 akashanandan-tilda: docproc: site lookup keeps staff matches, retries failed site-information extraction (#17453) e6f61dedd 2026-11-14T19:31 akashanandan-tilda: Hotfix cbr allow sentinel date (#17454) fda66e1f1 2026-11-13T18:06 aaburaed: fix(docproc): protocol guard ignores a date read as 300CT2026 and a value beside stacked labels (ENG-8762) (#17437) 3103c65d7 2026-11-13T12:53 vishal23karedla: Retire GET /api/documents/v2/{documentID} in favor of POST .../view (#17423) 376c3c9ac 2026-11-12T21:06 aaburaed: fix(docproc): unconfigured-site finding is recognised by the site guard; site list sorted (ENG-8727) (#17407) 55faeadfd 2026-11-12T18:56 aaburaed: feat(docsvc,docproc): split documents carry the original's audit log, who split it and who submitted it (ENG-8256) (#17405) 0f5f3f035 2026-11-12T17:54 aaburaed: fix(docproc): QC flags a document from a site not configured for the study (ENG-8727) (#17400) 9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across Go and Python services (#17334)
4. read_file repo=main, path=data-science/docproc/src/api/recommendations_router.py, start_line=240, end_line=360 · 5549 chars back
data-science/docproc/src/api/recommendations_router.py (2380 lines), lines 240-360: 240 "comment", "comment_annotated_by", "comment_annotated_at", "contentType", 241 "subartifact_list", "scope_list", "metadata_codes_with_mandatory", "available_scopes", 242 "expected_value", "expected_source", "expected_country", "expected_site", "is_discrepancy", 243 ] 244 data = resp.dict() 245 for key in overlay_keys: 246 if key in raw_item and raw_item[key] is not None: 247 data[key] = raw_item[key] 248 return RecommendationResponse(**data) 249 250 return resp 251 252 253 async def withhold_actions_without_write(access: OrgAccess, responses: List[RecommendationResponse]) -> None: 254 """Empty ``allowedUserActions`` on findings in a study the caller cannot change: the write 255 routes refuse those, and screens such as AI Activity draw their buttons from this field.""" 256 if not any(r.studyId for r in responses): 257 return 258 writable = await access.writable_studies() 259 if writable is None: 260 return 261 for r in responses: 262 if r.studyId and r.studyId not in writable: 263 r.allowedUserActions = [] 264 265 266 def recommendation_to_response( 267 recommendation: Recommendation, 268 has_subartifact: bool = True, 269 has_metadata: bool = True 270 ) -> RecommendationResponse: 271 """ 272 Convert a Recommen … (4049 more characters not kept)
5. read_file repo=main, path=e2e/automation/knowledge/ai-recommendations.md, start_line=1, end_line=80 · 4908 chars back
e2e/automation/knowledge/ai-recommendations.md (44 lines), lines 1-44: 1 # AI Recommendations and AI Runs (docproc) 2 3 > **Purpose:** The docproc AI-run lifecycle and the recommendation response contract — read by `tests/docproc/test_recommendations.py`, `tests/fixtures/ai_findings_fixtures.py` (`document_with_ai_processing`), `utils/hel 4 > 5 > **Last updated:** 2026-10-01 | verified against `data-science/docproc/` and the e2e helpers on d41cef16cb by code read, not a live run 6 7 ## Setup flow and how it fails 8 9 `document_with_ai_processing` (class scope, legacy `request.cls`) runs these steps: 10 11 1. Uploads a document. 12 2. PATCHes the document so AI processing starts. 13 3. Polls `GET` on the document until `latestAIRun.tildaid` appears. It gives up after 120s. 14 4. Polls `GET /api/v1/docproc/ai-runs/{id}` every 15s, for up to 600s (`wait_for_ai_processing`). 15 5. Reads `GET /api/v1/docproc/recommendations?doc_id=…&page_size=100` once. Every test asserts against that one cached read. 16 17 `test_ai_run_creation` is the slowest single test in the suite (minutes), because it absorbs the fixture's AI-run wait. 18 19 - **Run statuses** are `in_progress`, `complete`, `failed` and `aborted` (`AIRunStatus`, `src/models/db/recommendation.py`). `aborted` means the pod was evicted under memory pressure and the run can be retried. 20 - The helper stops only on `complete` or `failed`. An `aborted` run is therefore polled for the full 600s and reported as `"timeout"`. … (3408 more characters not kept)
6. commit_diff repo=main, sha=9b80cb7b6, path=data-science/docproc · 7827 chars back
9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across Go and Python services (#17334) 109 files changed: AGENTS.md, authz/pkg/handlers/members.go, authz/pkg/handlers/staff.go, authz/pkg/health/credentialcheck_test.go, authz/pkg/health/screeningclient.go, common/params/params.go, data-science/authzsvc/authz_svc/app.py, data-science/authzsvc/pyproject.toml, data-science/authzsvc/uv.lock, data-science/chat-agent/Dockerfile, data-science/chat-agent/Dockerfile.evals, data-science/chat-agent/pyproject.toml, data-science/chat-agent/src/artifacts/api_models.py, data-science/chat-agent/src/artifacts/blocks.py, data-science/chat-agent/src/artifacts/models.py, data-science/chat-agent/src/artifacts/route.py, data-science/chat-agent/src/auth/route.py, data-science/chat-agent/src/chat_agent/api_models.py, data-science/chat-agent/src/import_jobs/api_models.py, data-science/chat-agent/src/memory/api_models.py, data-science/chat-agent/src/memory/dependencies.py, data-science/chat-agent/src/memory/route.py, data-science/chat-agent/src/projects/models.py, data-science/chat-agent/src/runs/api_models.py, data-science/chat-agent/src/threads/route.py … --- data-science/docproc/Dockerfile @@ -61,7 +61,8 @@ RUN --mount=type=cache,id=uv-docproc,target=/root/.cache/uv,sharing=locked \ --mount=from=ghcr.io/astral-sh/uv:0.12.14,source=/uv,target=/bin/uv \ uv sync -q --frozen --no-dev --no-editable --no-install-project \ --no-install-package tilda- … (6327 more characters not kept)
7. read_file repo=main, path=data-science/docproc/src/api/api_models.py, start_line=255, end_line=335 · 7334 chars back
data-science/docproc/src/api/api_models.py (610 lines), lines 255-335: 255 json_schema_extra = { 256 "example": { 257 "code": "MD1", 258 "mandatory": True 259 } 260 } 261 262 class Suggestion(CamelModel): 263 """Model for a suggestion""" 264 artifact_id: str = Field(..., description="Artifact ID") 265 artifact: str = Field(..., description="Artifact") 266 confidence: float = Field(..., description="Confidence") 267 explanation: Optional[str] = Field(None, description="LLM explanation for this specific suggestion") 268 class Config: 269 json_schema_extra = { 270 "example": { 271 "artifact_id": "A7X9K2M5", 272 "artifact": "Example Artifact", 273 "confidence": 0.95, 274 "explanation": "This artifact best matches the document based on its content." 275 } 276 } 277 278 class RecommendationResponse(CamelModel): 279 """Response model for recommendation""" 280 tildaid: str = Field(..., description="Unique identifier for the recommendation") 281 rec_id: str = Field(..., description="8-digit alphanumeric unique recommendation ID") 282 doc_id: str = Field(..., description="Document ID this recommendation is associated with") 283 user_action: UserActionsType = Field(..., description="User's action on the recommendation (Fix It/Ignore/Confirm/Review/empty). 'Review' i … (5834 more characters not kept)
8. search_code repo=main, text=class CamelModel · 410 chars back
data-science/ontologysvc/src/models/_base.py 6: class CamelModel(BaseModel): data-science/packages/tilda-api/tilda_api/camel.py 5: class CamelModel(BaseModel): data-science/ontologysvc/docs/superpowers/plans/2026-05-24-plan-a-rest-audit-pubsub.md 606: class CamelModel(BaseModel): data-science/ontologysvc/docs/superpowers/specs/2026-05-23-tmf-ontology-tools-design.md 857: class CamelModel(BaseModel):
9. read_file repo=main, path=data-science/packages/tilda-api/tilda_api/camel.py, start_line=1, end_line=60 · 622 chars back
data-science/packages/tilda-api/tilda_api/camel.py (13 lines), lines 1-13: 1 from pydantic import BaseModel, ConfigDict 2 from pydantic.alias_generators import to_camel 3 4 5 class CamelModel(BaseModel): 6 """Base for HTTP request/response models: snake_case in Python, camelCase on the wire. 7 8 `populate_by_name` lets Python code construct models with snake_case kwargs. 9 Subclasses that set `model_config` must merge it (`ConfigDict(**CamelModel.model_config, ...)`) 10 or the alias generator is lost. 11 """ 12 13 model_config = ConfigDict(alias_generator=to_camel, populate_by_name=True)
10. commits repo=main, path=data-science/packages/tilda-api, since=2026-11-10T00:00:00Z · 127 chars back
9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across Go and Python services (#17334)
11. commits repo=main, path=data-science/docproc/src/api/api_models.py, since=2026-11-10T00:00:00Z · 127 chars back
9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across Go and Python services (#17334)
12. search_code repo=main, text=response_model_by_alias, path_prefix=data-science/docproc · 30 chars back
no match on the default branch
13. read_file repo=main, path=e2e/automation/utils/helpers/ai_helper.py, start_line=180, end_line=230 · 1892 chars back
e2e/automation/utils/helpers/ai_helper.py (240 lines), lines 180-230: 180 assert response_data["totalCount"] >= 0, "totalCount should be non-negative" 181 182 183 def assert_recommendation_item_structure(item): 184 """Assert the structure of a single recommendation item""" 185 required_fields = [ 186 "tildaid", 187 "rec_id", 188 "doc_id", 189 "user_action", 190 "status", 191 "category", 192 "data", 193 "explanation", 194 "createdat", 195 "updatedat", 196 "allowedUserActions", 197 "documentName", 198 "studyId", 199 "studyName", 200 "type", 201 ] 202 203 for field in required_fields: 204 assert field in item, f"Missing required field: {field}" 205 206 # Validate specific field types and values 207 assert isinstance(item["tildaid"], str) 208 assert isinstance(item["rec_id"], str) 209 assert item["doc_id"] is not None 210 assert item["status"] in ["pending", "accepted", "rejected", "ignored"] 211 assert item["type"] == "AI_FINDING" 212 assert isinstance(item["allowedUserActions"], list) 213 214 215 def assert_json_match(actual, expected, ignore_fields=None): 216 """ 217 Assert that actual JSON contains all expected fields with matching values. 218 Ignores fields specified in ignore_fields list. 219 """ 220 ignore_fields = ignore_fields or [] 221 222 for key, expected_value in … (392 more characters not kept)
14. commits repo=main, path=e2e/automation/tests/docproc/test_recommendations.py, since=2026-10-01T00:00:00Z · 126 chars back
28e1e89ad 2026-10-23T07:50 arzatskis: Move the docproc recommendation lists to skip, limit, sort, desc and totalCount (#16794)
15. commit_diff repo=main, sha=9b80cb7b6, path=data-science/docproc/src/api/recommendations_router.py · 6250 chars back
9b80cb7b6 2026-11-12T06:30 arzatskis: Use camelCase for API query params and JSON fields across Go and Python services (#17334) 109 files changed: AGENTS.md, authz/pkg/handlers/members.go, authz/pkg/handlers/staff.go, authz/pkg/health/credentialcheck_test.go, authz/pkg/health/screeningclient.go, common/params/params.go, data-science/authzsvc/authz_svc/app.py, data-science/authzsvc/pyproject.toml, data-science/authzsvc/uv.lock, data-science/chat-agent/Dockerfile, data-science/chat-agent/Dockerfile.evals, data-science/chat-agent/pyproject.toml, data-science/chat-agent/src/artifacts/api_models.py, data-science/chat-agent/src/artifacts/blocks.py, data-science/chat-agent/src/artifacts/models.py, data-science/chat-agent/src/artifacts/route.py, data-science/chat-agent/src/auth/route.py, data-science/chat-agent/src/chat_agent/api_models.py, data-science/chat-agent/src/import_jobs/api_models.py, data-science/chat-agent/src/memory/api_models.py, data-science/chat-agent/src/memory/dependencies.py, data-science/chat-agent/src/memory/route.py, data-science/chat-agent/src/projects/models.py, data-science/chat-agent/src/runs/api_models.py, data-science/chat-agent/src/threads/route.py … --- data-science/docproc/src/api/recommendations_router.py @@ -158,12 +158,12 @@ async def debug_config( total_recs = "unavailable" return { - "neo4j_database": neo4j.database, + "neo4jDatabase": neo4j.database, "organization": organization, - "organization_id": … (4750 more characters not kept)
16. search_code repo=main, text=userAction, path_prefix=data-science/docproc · 414 chars back
data-science/docproc/src/models/db/recommendation.py data-science/docproc/src/events/event_sender.py 170: message_data["userAction"] = user_action data-science/docproc/src/api/recommendation_updater.py 370: "userAction": UserAction.FIX_IT.value, data-science/docproc/src/api/recommendations_router.py data-science/docproc/src/queries/ai_run_queries.py data-science/docproc/src/queries/recommendation_queries.py
17. read_file repo=main, path=e2e/automation/models/recommendations.py, start_line=1, end_line=80 · 1188 chars back
e2e/automation/models/recommendations.py (26 lines), lines 1-26: 1 import logging as logger 2 3 from .base import RequestsBase 4 5 6 class Recommendations(RequestsBase): 7 def __init__(self, headers): 8 self.relative_url = "/api/v1/docproc/recommendations" 9 super().__init__(headers) 10 11 @RequestsBase.retry_request 12 def get_by_document_id(self, doc_id, limit=100, include_support_ignored=False): 13 """GET a document's recommendations (raw response); `include_support_ignored` adds support-ignored ones.""" 14 params = {"doc_id": doc_id, "limit": limit, "include_support_ignored": include_support_ignored} 15 16 logger.info(f"Getting recommendations for document: {doc_id}") 17 response = self.get(params=params) 18 19 if response.status_code == 200: 20 data = response.json() 21 total_recommendations = data.get("totalCount", 0) 22 logger.info(f"Retrieved {total_recommendations} recommendations for document {doc_id}") 23 else: 24 logger.error(f"Failed to get recommendations: {response.status_code} - {response.text}") 25 26 return response
18. search_code repo=main, text="doc_id", path_prefix=e2e/automation · 1575 chars back
e2e/automation/models/document.py 125: doc_id = doc_upload_response.json()["tildaid"] 190: payload = [{"id": doc_id, "attestation": attestation} for doc_id in doc_ids] 194: for doc_id in doc_ids: 254: doc_id = doc_response["tildaid"] e2e/automation/utils/helpers/edl_helpers.py 111: doc_id = doc.get("tildaid") 132: doc_id = doc.get("tildaid") e2e/automation/tests/docsvc/test_two_step_upload.py 93: certify = Document(headers).patch(payload=[{"id": doc_id, "attestation": ATTESTATION} for doc_id in doc_ids]) 118: doc_id = pending_document["row"]["tildaid"] 129: doc_id = pending_document["row"]["tildaid"] 141: doc_id = uploaded_document["row"]["tildaid"] e2e/automation/tests/docsvc/test_smo_documents_access.py 62: doc_id = seed_documents[doc_key]["tildaid"] 63: visible = doc_id in study_listing_by_role[role_key] 94: doc_id = seed_documents["study_document"]["tildaid"] 145: doc_id = seed_documents[doc_key]["tildaid"] e2e/automation/tests/docsvc/test_document_signer_access.py 32: doc_id = seed_documents["non_study_site_document"]["tildaid"] 80: doc_id = signed_document["doc_id"] 88: doc_id = signed_document["doc_id"] 92: assert doc_id in result_ids, f"an assigned signer should see {doc_id} in an unfiltered listing" e2e/automation/tests/docsvc/test_template_lifecycle.py 41: doc_id = response.json()["tildaid"] 48: doc_id = _upload_certified_staging_doc(cro_ctx["headers"], cro_ctx["study_id"]) 55: doc_id = _upload_certified_staging_doc(cro_ctx[ … (75 more characters not kept)
19. commits repo=main, path=e2e/automation, since=2026-11-15T00:00:00Z · 38 chars back
no commits to that path in that window
20. search_code repo=main, text=docId, path_prefix=e2e/automation · 30 chars back
no match on the default branch

What it was shown (build 597, 38.4 KB)

The run
{ "job": "api-tests-master", "build": 597, "kind": "api-tests", "result": "SUCCESS", "started": "2026-11-15T00:26:03Z", "tests": 1024, "failed": 40, "test_commit": "03f9c2d6b", "cluster_prepared": { "mode": "prepare", "result": "ready", "product_commit": "f56eb0825" } }
services
[ "docsvc", "execsvc", "patientsvc", "schedsvc", "enrollsvc", "studiosvc", "finsvc", "notifsvc", "dslsvc", "authz", "dashQL", "dashRsvc", "regsvc", "advpsvc", "workplansvc", "datasvc", "payoutsvc", "tusker", "authsvc", "eventsvc", "ehrsvc", "docproc", "studioai", "sense" ]
The cluster during the run
{ "findings_opened_around_the_run": [], "long_standing_findings_left_out": 7, "pods_in_trouble_during_the_run": [ { "workload": "tilda/chat-agent", "probe": 1.0, "first_minutes_after_run_start": 8 } ], "deploys_during_the_run": [ { "app": "execsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "studioaisvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "docproc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "docsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "exportsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "tusker", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "dashrsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "dashql", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "notifsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "chat-agent", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "virtual-assistant", "minutes_after_run_start": 33, "image": "", "by": "automated" }, { "app": "onboardingsvc", "minutes_after_run_start": 33, "image": "", "by": "automated" } ] }
The group
{ "tests": 11, "suite": "Recommendations", "members": [ { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_invalid_document_id", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_items_structure", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_document_association", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_tmf_artifact_recommendation", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_scope_recommendation", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_naming_recommendation", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_sub_artifact_recommendation_if_present", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_metadata_recommendation_if_present", "pattern": "intermittent", "meaning": "3 failures in 24 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_quality_control_recommendation_if_present", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 }, { "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_ignore_action", "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593, "failing_since_build": 597, "last_passed_build": 593 } ] }
The failure
{ "test": "automation/tests/docproc/test_recommendations.py::TestRecommendations::test_ignore_action", "status": "failed", "message": "KeyError: 'user_action'", "traceback_tail": "automation/tests/docproc/test_recommendations.py:218: in test_ignore_action\n assert result[\"user_action\"] == \"Ignore\"\n ^^^^^^^^^^^^^^^^^^^^^\nE KeyError: 'user_action'", "requests": [ { "trace_id": "a917e57adadeaacfde9e5d30d138d305", "method": "PUT", "path": "/api/v1/docproc/recommendations/b1418f31-c34c-4f42-8d10-adfee2161e20", "status": "200", "error": "None" } ], "errors_the_services_logged_for_these_requests": "none: no service logged an error under these requests' trace ids" }
Console lines about this test
{ "from": "console.log", "lines": [ "532: ERROR E AssertionError: Missing expected field: doc_id", "533: ERROR ______ TestRecommendations.test_quality_control_recommendation_if_present ______", "534: ERROR E AssertionError: Missing expected field: depends_on", "535: ERROR ____________________ TestRecommendations.test_ignore_action ____________________", "536: INFO assert result[\"user_action\"] == \"Ignore\"", "537: ERROR E KeyError: 'user_action'", "538: ERROR _________ TestRecommendations.test_each_recommendation_has_explanation _________", "\u2026", "696: ERROR FAILED automation/tests/docproc/test_recommendations.py::TestRecommendations::test_sub_artifact_recommendation_if_present - AssertionError: Missing expected field: doc_id", "697: ERROR FAILED automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_metadata_recommendation_if_present - AssertionError: Missing expected field: doc_id", "698: ERROR FAILED automation/tests/docproc/test_recommendations.py::TestRecommendations::test_quality_control_recommendation_if_present - AssertionError: Missing expected field: depends_on", "699: ERROR FAILED automation/tests/docproc/test_recommendations.py::TestRecommendations::test_ignore_action - KeyError: 'user_action'", "700: ERROR FAILED automation/tests/docproc/test_recommendations.py::TestRecommendations::test_each_recommendation_has_explanation - AssertionError: Quality Control missing data_formatted", "701: INFO assert False", "702: INFO + where False = isinstance(None, dict)" ] }
The test's history
{ "pattern": "intermittent", "meaning": "3 failures in 30 runs, 1 in a row now", "newest_first": "F P P P P P P P P P P P F F P P P P P P P P P P P P P P P P", "failing_in_a_row": 1, "this_error_in_a_row": 1, "this_error_since_build": 597, "build_before_this_error": 593 }
The test's source
{ "repo": "tildabio/main", "at": "03f9c2d6b", "path": "e2e/automation/tests/docproc/test_recommendations.py", "from_line": 199, "failing_line": 218, "code": "199 def test_ignore_action(self):\n200 \"\"\"Test Ignore action on a recommendation (no dependency or folder requirements).\"\"\"\n201 items = self.recommendations[\"items\"]\n202 assert len(items) > 0\n203 \n204 target = next((i for i in items if i[\"category\"] != \"Quality Control\"), None)\n205 assert target, \"no non-QC recommendation available; QC only allows Confirm/Review\"\n206 rec_id = target[\"tildaid\"]\n207 payload = {\n208 \"user_action\": \"Ignore\",\n209 \"data\": target.get(\"data\") or None,\n210 \"data_formatted\": target.get(\"data_formatted\") or None,\n211 }\n212 \n213 response = Recommendations(self.cro_test_headers).put(rec_id, payload)\n214 assert response.status_code == 200, f\"Ignore failed: {response.text}\"\n215 \n216 result = response.json()\n217 assert result[\"status\"] == \"ignored\"\n218> assert result[\"user_action\"] == \"Ignore\"\n219 assert result[\"allowedUserActions\"] == [\"Confirm\"]\n220 \n221 def test_all_categories_are_known(self):\n222 \"\"\"Verify no unexpected recommendation categories appeared.\"\"\"\n223 returned_categories = {item[\"category\"] for item in self.recommendations[\"items\"]}\n224 unknown = returned_categories - ALL_CATEGORIES\n225 assert not unknown, f\"Unknown recommendation categories: {unknown}\"\n226 \n227 CATEGORIES_WITHOUT_EXPLANATION = {\"Quality Control\"}\n228 \n229 def test_each_recommendation_has_explanation(self):\n230 for item in self.recommendations[\"items\"]:\n231 category = item[\"category\"]\n232 if category in self.CATEGORIES_WITHOUT_EXPLANATION:\n233 assert item.get(\"explanation\") is None, f\"{category} should not carry an explanation\"\n234 assert isinstance(item.get(\"data_formatted\"), dict), f\"{category} missing data_formatted\"\n235 continue\n236 assert item.get(\"explanation\") is not None, f\"{category} rec missing explanation\"\n237 assert isinstance(item[\"explanation\"], str), f\"{category} explanation is not a string\"" }
Commits in the window
{ "between": "build 593 (last pass, started 2026-11-12T00:21:19Z) and build 597 (first failure of the streak, started 2026-11-15T00:26:03Z)", "test_repo": { "repo": "tildabio/main", "range": "b805e7b66..03f9c2d6b", "href": "https://github.com/tildabio/main/compare/b805e7b66c8c01e711f0566189e109e1ecb6e150...03f9c2d6b8bcadfd46ddaf810027681ae8e40891", "total": 49, "commits": [ { "sha": "03f9c2d6b", "subject": "authz: organization archive (soft delete) and purge (ENG-7837) (#17340)", "login": "Shashank-Agrawal12", "name": "Shashank-Agrawal12", "date": "2026-11-13T17:58", "touches": [ "advpsvc/internal", "authz/main.go", "authz/org-deletion_DESIGN.md", "authz/pkg", "docsvc/pkg", "e2e/automation", "studiosvc/pkg", "tildaobj/model.go", "tildaobj/pubsub_defs.go", "tusker/pubsub", "util/gcs", "util/pubsublib" ] }, { "sha": "1dd204c8f", "subject": "fix(dashQL): processing heatmap groups by user id and counts the Docs Processed statuses (#17434)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-13T17:41", "touches": [ "dashQL/charts", "dashQL/graph" ] }, { "sha": "b463423fe", "subject": "tmfsync: Veeva always syncs in bulk, with intervals from 15 minutes (#17412)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-13T17:18", "touches": [ "data-science/tmfsync" ] }, { "sha": "00fbe7774", "subject": "[E2E]: bootstrap update (#17369)", "login": "sbadiger", "name": "Santosh Badiger", "date": "2026-11-13T14:06", "touches": [ "tctl/example" ] }, { "sha": "b709cd98e", "subject": "[E2E]: update to user permission for bootstrap (#16732)", "login": "sbadiger", "name": "Santosh Badiger", "date": "2026-11-13T14:03", "touches": [ "tctl/example" ] }, { "sha": "d636ea6fa", "subject": "Fix manual document sharing (#17427)", "login": "pralim", "name": "Prasad", "date": "2026-11-13T12:55", "touches": [ "docsvc/pkg" ] }, { "sha": "3103c65d7", "subject": "Retire GET /api/documents/v2/{documentID} in favor of POST .../view (#17423)", "login": "vishal23karedla", "name": "Vishal Karedla", "date": "2026-11-13T12:53", "touches": [ "data-science/docproc", "docsvc/pkg", "docsvc/routes", "e2e/automation", "tctl/doc" ] }, { "sha": "e0e36707e", "subject": "fix: removing a CC in AI chat reaches the work order's draft (ENG-8482) (#17366)", "login": "TadasValaitiz", "name": "Tadas Valaitis", "date": "2026-11-13T12:46", "touches": [ "data-science/chat-agent", "data-science/packages", "data-science/virtual_assistant" ] }, { "sha": "3e5ce671e", "subject": "feat(studiosvc): add GET /api/studio/activities/{id}/objectCounts (ENG-4808) (#17428)", "login": "poojalodhi", "name": "Pooja Lodhi", "date": "2026-11-13T12:32", "touches": [ "studiosvc/pkg" ] }, { "sha": "862429c0a", "subject": "studiosvc: flag rules whose compared choices no longer exist when a question's choices change (ENG-6755) (#17179)", "login": "sanchitmishra08", "name": "sanchitmishra08", "date": "2026-11-13T11:57", "touches": [ "common/graphlib", "studiosvc/pkg", "tildaobj/studio_obj_defs.go" ] }, { "sha": "4f8a585a2", "subject": "Test visit activity notes, questions, visit summary and investigator select (execsvc v1) (ENG-8554) (#17281)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-13T10:31" }, { "sha": "7e5e884ce", "subject": "fix(doclib): publish the dashboards delete event from every hard delete (#17389)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-13T08:49" }, { "sha": "49b945d98", "subject": "Test the studies list: org admin vs member membership and per-status counts (TC-STD-006, TC-STD-101, TC-STD-10 (ENG-8641) (#17358)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-13T06:37" }, { "sha": "83b37c21f", "subject": "Studio API: cover study configuration drafts, completed-visit locks and canvas block edits (ENG-8648) (#17359)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-13T06:10" }, { "sha": "e0b8dc44d", "subject": "Add API tests for the 7 uncovered tusker task routes (inboxes, assignment, bulk/single update, categories, sta (ENG-8483) (#17220)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-13T06:03" }, { "sha": "89e9249fc", "subject": "studiosvc: show in-protocol and codelist edits in the Studio audit log (ENG-7019) (#17365)", "login": "susheelkumar-cmyk", "name": "susheelkumar-cmyk", "date": "2026-11-13T05:38" }, { "sha": "b7b792509", "subject": "fix(feedsvc): accept legacy time zone names like Asia/Calcutta (#17417)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-13T05:02" }, { "sha": "7676bf4e2", "subject": "feat(edl): EDL plans on sponsor roles; mapping changes move rows over Pub/Sub (ENG-8626) (#17415)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-13T02:49" }, { "sha": "a005f890d", "subject": "Cover the Tilda Scale admin routes: delegations, alias rename, platform capabilities, checkauth, user delete (ENG-8570) (#17319)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-13T01:33" }, { "sha": "82c72484f", "subject": "Study team and site training log populations (#17409)", "login": "taylorfutral", "name": "Taylor", "date": "2026-11-13T00:38" }, { "sha": "ea8ac3400", "subject": "feedsvc: EDL labels and scope rows, no empty scope approvals, documents card leads with QC (ENG-8627) (#17413)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-13T00:36" }, { "sha": "f4cbcd9d2", "subject": "fix(execsvc): status returns rows saved under hdmObjId and full document details (ENG-5239) (#17399)", "login": "danherberttilda", "name": "Dan Herbert", "date": "2026-11-12T21:45" }, { "sha": "9976e91e8", "subject": "fix(studiosvc): return the statement's variable name and state in the list API (ENG-7501) (#17411)", "login": "danherberttilda", "name": "Dan Herbert", "date": "2026-11-12T21:44" }, { "sha": "a910115f9", "subject": "tmfsync: separate Valkey queue and leader keys per environment (#17392)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-12T21:16" }, { "sha": "681f8cc47", "subject": "studiosvc: import the protocol studioai extracts from a study's documents, on pub/sub (ENG-3080) (#17410)", "login": "sureshboddapati", "name": "Suresh Boddapati", "date": "2026-11-12T21:14" } ] } }
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is wrong. **What failed:** `KeyError: 'user_action'` **The test is wrong**, confidence medium. Found in `api-tests-master` build 597: [run in X-ray](https://xray.tilda.pizza/tests/run/api-tests-master/597). Commit 9b80cb7b6 (#17334, "Use camelCase for API query params and JSON fields across Go and Python services", 2026-11-12) moved docproc's `RecommendationResponse` onto `CamelModel`, so fields now go out as camelCase. The tests still read snake_case. `test_ignore_action` gets 200 from the PUT, then `result["user_action"]` raises KeyError (test_recommendations.py:218). The other failures are the same mismatch: `doc_id`, `depends_on` and `data_formatted` are missing. `ai_helper.assert_recommendation_item_structure` and `models/recommendations.py` still use snake_case. No e2e file mentions `docId`, and nothing has landed in e2e/automation since the run. The list route's `doc_id` query param became `alias="docId"`, so the `doc_id` the test sends is probably ignored. That would explain `test_invalid_document_id`, which expects `totalCount == 0` for "invalid-doc-id". Not verified: I did not see the response body, and the commit's e2e changes were cut off in the commit view. The commit's date puts it after build 593 started, and I did not confirm it is in the listed range. The deploys and the chat-agent pod trouble don't touch docproc's recommendations route. **Suspect commit:** [9b80cb7b6](https://github.com/tildabio/main/commit/9b80cb7b60fe2b6516a17a26ecc5c901fd479912) Use camelCase for API query params and JSON fields across Go and Python services (#17334) (arzatskis) **Service:** docproc **Assigned to:** [email protected] (last changed test_recommendations.py (e076fe18b); the test agent opens the pull request once this is in Ready for Development). **Proposed fix:** Update the tests to the new wire format. In `ai_helper.assert_recommendation_item_structure` and `test_recommendations.py`, read `docId`, `recId`, `userAction`, `dependsOn` and `dataFormatted` (check the actual JSON for the exact keys). In `models/recommendations.py`, send `docId` instead of `doc_id` as the query param. PUT bodies can stay snake_case, since the request models accept both. **Failing tests (11):** - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_invalid_document_id](https://xray.tilda.pizza/tests/case/e45c7f07ebb7a86e) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_items_structure](https://xray.tilda.pizza/tests/case/a48b9651afe4afa6) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_document_association](https://xray.tilda.pizza/tests/case/4a3b7a285cdbcbc6) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_tmf_artifact_recommendation](https://xray.tilda.pizza/tests/case/504d8568b230911f) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_scope_recommendation](https://xray.tilda.pizza/tests/case/457f247a428ff421) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_naming_recommendation](https://xray.tilda.pizza/tests/case/24a784b8428bb10e) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_sub_artifact_recommendation_if_present](https://xray.tilda.pizza/tests/case/e56d8e1873a94b60) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_metadata_recommendation_if_present](https://xray.tilda.pizza/tests/case/ba9992c418afa150) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_quality_control_recommendation_if_present](https://xray.tilda.pizza/tests/case/f90b8b6b57b597b8) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_ignore_action](https://xray.tilda.pizza/tests/case/00cb2b3998e95830) (new in this run) - [automation/tests/docproc/test_recommendations.py::TestRecommendations::test_each_recommendation_has_explanation](https://xray.tilda.pizza/tests/case/a58c3a9ae525293d) (new in this run) **Error:** ``` KeyError: 'user_action' ``` The test agent picks this ticket up and opens the pull request. ```yaml suite: api feature: fix-test-recommendations find: true fix: true target_file: e2e/automation/tests/docproc/test_recommendations.py failing_tests: - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_invalid_document_id - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_items_structure - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_recommendation_document_association - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_tmf_artifact_recommendation - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_scope_recommendation - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_naming_recommendation - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_sub_artifact_recommendation_if_present - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_document_metadata_recommendation_if_present - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_quality_control_recommendation_if_present - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_ignore_action - automation/tests/docproc/test_recommendations.py::TestRecommendations::test_each_recommendation_has_explanation acceptance: - Each test in failing_tests passes on the automation cluster. - 'No assertion is weakened to make a test pass: the test still checks the behaviour it was written for.' request: 'Fix existing tests that fail on master. Do not write new coverage. Error: KeyError: ''user_action'' Diagnosis: Commit 9b80cb7b6 (#17334, "Use camelCase for API query params and JSON fields across Go and Python services", 2026-11-12) moved docproc''s `RecommendationResponse` onto `CamelModel`, so fields now go out as camelCase. The tests still read snake_case. `test_ignore_action` gets 200 from the PUT, then `result["user_action"]` raises KeyError (test_recommendations.py:218). The other failures are the same mismatch: `doc_id`, `depends_on` and `data_formatted` are missing. `ai_helper.assert_recommendation_item_structure` and `models/recommendations.py` still use snake_case. No e2e file mentions `docId`, and nothing has landed in e2e/automation since the run. The list route''s `doc_id` query param became `alias="docId"`, so the `doc_id` the test sends is probably ignored. That would explain `test_invalid_document_id`, which expects `totalCount == 0` for "invalid-doc-id". Not verified: I did not see the response body, and the commit''s e2e changes were cut off in the commit view. The commit''s date puts it after build 593 started, and I did not confirm it is in the listed range. The deploys and the chat-agent pod trouble don''t touch docproc''s recommendations route. Proposed change: Update the tests to the new wire format. In `ai_helper.assert_recommendation_item_structure` and `test_recommendations.py`, read `docId`, `recId`, `userAction`, `dependsOn` and `dataFormatted` (check the actual JSON for the exact keys). In `models/recommendations.py`, send `docId` instead of `doc_id` as the query param. PUT bodies can stay snake_case, since the request models accept both.' ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 20 lookups in the code and its history. Group `triage:9ebacd5cc20d03` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++