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:49.
› →|
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] LLM-drafted IRB approval gate sometimes lacks evidence_requires_document=True

Flaky test confidence medium · low priority · api-tests-master, last seen in build 597

The verdict

Fix is in
the automation suite (e2e): the test is flaky
Issue
ENG-8851 · Duplicate
Owner
[email protected] (last changed test_gated_template_preview.py (14b4ea37d))
Filed in
Backlog, Test Agent Automation
History when filed
flaky, this error since build 593
The preview agent wrote an IRB/LEC approval gate with gate_clearance 'evidence' and evidence_requires_document False. The test asserts `is not False` at test_gated_template_preview.py:140. History is flaky: 16 failures and 13 flips in 30 runs, including passes at the same code. e2e/automation/knowledge/workorder-gating.md:69 lists this test as an intermittent failure. The agent sometimes emits a message-tier gate. That is LLM output variance, not a new regression. I found no commit in the range that touches this flow. 1ce293f0f touches virtual_assistant but does not fit a flake this old. The 'no AI draft' timeout in the sibling facility-flow test is a different failure. To fix it, make the gate deterministic: tighten the substantial_amendment_local_irb instructions in gated_template_definitions.py, or default evidence gates in the preview to requiring a document. Alternatively, retry the preview generation inside the fixture.

History of this root cause

  • filed ENG-8851 · build 597 8d ago
    Flaky test, confidence medium; 1 test; to [email protected] in Backlog

Tests 1

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_substantial_amendment_reviews_internally_and_waits_on_approval_proof
GatedTemplatePreview
did not run

How the agent decided

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

What it looked up (3, in order)

1. search_code repo=main, text=evidence_requires_document · 1618 chars back
data-science/virtual_assistant/src/reg/reg_agents/stage_progression.py 97: def evidence_requires_document(task: Any) -> bool: 102: raw = _get(task, "evidence_requires_document") 108: ``is_gate=True`` + ``gate_clearance='evidence'`` (+ ``evidence_requires_document``). The OQ-1 113: if "evidence_requires_document" not in out: data-science/virtual_assistant/src/models/db/work_order/tasks.py 44: # evidence_requires_document: only for evidence gates; None/absent => True (document- 49: evidence_requires_document: Optional[bool] = None 87: "evidence_requires_document": self.evidence_requires_document, 117: evidence_requires_document: Optional[bool] = None, data-science/virtual_assistant/src/models/db/work_order_context.py 40: "evidence_requires_document", 106: "evidence_requires_document": getattr(task, "evidence_requires_document", None), e2e/automation/knowledge/workorder-gating.md 18: | `evidence_requires_document` | Evidence gates only. `None` ⇒ `True`: only a matched, accepted document clears it; `False` lets a cited written confirmation suffice | 69: - **`test_substantial_amendment_reviews_internally_and_waits_on_approval_proof`** fails intermittently on the agent emitting a message-tier (`evidence_requires_document: False`) IRB gate and on wordin data-science/virtual_assistant/src/api/work_order_api_utils/tasks.py 81: evidence_requires_document=getattr(task, 'evidence_requires_document', None), 148: evidence_requires_document=getattr(task, 'evide … (118 more characters not kept)
2. search_code repo=main, text=gated_previews, path_prefix=e2e/automation/tests/virtualassistant · 382 chars back
e2e/automation/tests/virtualassistant/test_gated_template_preview.py 26: def test_preview_plan_is_internally_consistent(self, gated_previews, template_key): 31: data = gated_previews["previews"][template_key]["data"] 40: def test_every_gate_declares_a_known_clearance(self, gated_previews, template_key): 42: tasks = gated_previews["previews"][template_key]["data"]["tasks"]
3. read_file repo=main, path=e2e/automation/knowledge/workorder-gating.md, start_line=55, end_line=85 · 1726 chars back
e2e/automation/knowledge/workorder-gating.md (70 lines), lines 55-70: 55 56 **Record one at a time, each after the agent has spoken.** Recording submission and approval back to back can leave seq 6 `Pending` with no message; paced, the notice arrives within ~17s. The shape is snapshot `draft_ids 57 58 **`close_reason` is agent input.** Only the final close may claim the approval; telling the submission gate "Central EC/IRB approval received" prompts the approval email a stage early and passes for the wrong reason. 59 60 **Facility flow specifics.** The first outreach must greet the PI by name and not the site team; the agent writes the first name only ("Dear Harsh,"), so the test matches the first name. The reply-documents step waits on 61 62 ## The gated template definitions 63 64 `utils/testdata/aiTeammates/gated_template_definitions.py` holds the four templates `publish_gated_templates` publishes. Their instructions are prompt input: the gating phrasing — "recorded by our team", "Only after …", 65 66 ## Known failure classes 67 68 - **GatedFacilityChangeFlow rotates** — a different member fails each run (sponsor-gate outreach, gate-holds-the-plan, final notification "no AI draft appeared", the reply-docs match step). Class-level flakiness in an LL 69 - **`test_substantial_amendment_reviews_internally_and_waits_on_approval_proof`** fails intermittently on the agent emitting a message-tier (`evidence_requires_document: False`) IRB gate and on wording ("confirmation" … (226 more characters not kept)

What it was shown (build 597, 25.0 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": 1, "suite": "GatedTemplatePreview", "members": [ { "test": "automation/tests/virtualassistant/test_gated_template_preview.py::TestGatedTemplatePreview::test_substantial_amendment_reviews_internally_and_waits_on_approval_proof", "pattern": "flaky", "meaning": "passed and failed in turn: 16 failures and 13 changes in 30 runs", "newest_first": "F F P P P P P P F F P F F F F P F F P F F P P P F F P F F P", "failing_in_a_row": 2, "this_error_in_a_row": 1, "this_error_since_build": 597, "note": "the red streak is 2 runs long but only the last 1 failed with this error: the earlier ones were other failures, so date the cause from this error's first build", "build_before_this_error": 593, "failing_since_build": 593, "last_passed_build": 592 } ] }
The failure
{ "test": "automation/tests/virtualassistant/test_gated_template_preview.py::TestGatedTemplatePreview::test_substantial_amendment_reviews_internally_and_waits_on_approval_proof", "status": "failed", "message": "AssertionError: an IRB approval gate must need the letter, not a claim: \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\"\nassert False is not False\n + where False = <built-in method get of dict object at 0x79cb79139480>('evidence_requires_document')\n + where <built-in method get of dict object at 0x79cb79139480> = {'description': \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\", 'doc_id': None, 'evidence_requires_document': False, 'gate_clearance': 'evidence', ...}.get", "traceback_tail": "automation/tests/virtualassistant/test_gated_template_preview.py:140: in test_substantial_amendment_reviews_internally_and_waits_on_approval_proof\n assert (\nE AssertionError: an IRB approval gate must need the letter, not a claim: \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\"\nE assert False is not False\nE + where False = <built-in method get of dict object at 0x79cb79139480>('evidence_requires_document')\nE + where <built-in method get of dict object at 0x79cb79139480> = {'description': \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\", 'doc_id': None, 'evidence_requires_document': False, 'gate_clearance': 'evidence', ...}.get" }
Console lines about this test
{ "from": "console.log", "lines": [ "438: INFO Closing the Sponsor approval gate advances the work order to its next stage. Can you confirm it should be closed and give the reason to record?", "439: ERROR Timeout waiting for a new draft message (contains=['approv']) after 180s; 0 ready but non-matching: []", "440: ERROR FAILED (+1 identical, not shipped)", "441: ERROR automation/tests/virtualassistant/test_gated_template_preview.py::TestGatedTemplatePreview::test_substantial_amendment_reviews_internally_and_waits_on_approval_proof FAILED", "442: INFO <p>Congratulations to your Principal Investigator on being selected to participate in study CURE T-001-1794702429316442007. We look forward to working with {{site_name}}, assigned site number {{site_number}}, as the site prepares for startup.</p>", "443: INFO <p>To complete the site regulatory startup pack, we need:</p>", "444: INFO <ul>", "\u2026", "671: INFO raise TimeoutError(f\"no AI draft appeared on work order {work_order_id} (contains={contains!r})\")", "672: ERROR E TimeoutError: no AI draft appeared on work order 58a51400-9d16-4a53-8370-a5e9dba77667 (contains='approv')", "673: ERROR Timeout waiting for a new draft message (contains=['approv']) after 180s; 0 ready but non-matching: []", "674: INFO _ TestGatedTemplatePreview.test_substantial_amendment_reviews_internally_and_waits_on_approval_proof _", "675: INFO automation/tests/virtualassistant/test_gated_template_preview.py:140: in test_substantial_amendment_reviews_internally_and_waits_on_approval_proof", "676: INFO assert (", "677: ERROR E AssertionError: an IRB approval gate must need the letter, not a claim: \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\"", "678: ERROR E assert False is not False", "\u2026", "757: ERROR FAILED automation/tests/tusker/test_tasks.py::TestTasks::test_update_task_by_member_outside_study_is_rejected[bulk] - assert 200 == 500", "758: INFO + where 200 = <Response [200]>.status_code", "759: ERROR FAILED automation/tests/virtualassistant/test_gated_facility_change_flow.py::TestGatedFacilityChangeFlow::test_closing_the_sponsor_gate_releases_the_next_outreach - TimeoutError: no AI draft appeared on work order 58a51400-9d16-4a53-8370-a5e9dba77667 (contains='approv')", "760: ERROR FAILED automation/tests/virtualassistant/test_gated_template_preview.py::TestGatedTemplatePreview::test_substantial_amendment_reviews_internally_and_waits_on_approval_proof - AssertionError: an IRB approval gate must need the letter, not a claim: \"Wait for the site's written confirmation that ", "761: INFO assert False is not False", "762: INFO + where False = <built-in method get of dict object at 0x79cb79139480>('evidence_requires_document')", "763: INFO + where <built-in method get of dict object at 0x79cb79139480> = {'description': \"Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.\", 'doc_id': None, 'evidence_requires_document': False, 'gate_clearance': " ] }
The test's history
{ "pattern": "flaky", "meaning": "passed and failed in turn: 16 failures and 13 changes in 30 runs", "newest_first": "F F P P P P P P F F P F F F F P F F P F F P P P F F P F F P", "failing_in_a_row": 2, "this_error_in_a_row": 1, "this_error_since_build": 597, "note": "the red streak is 2 runs long but only the last 1 failed with this error: the earlier ones were other failures, so date the cause from this error's first build", "build_before_this_error": 593 }
The test's source
{ "repo": "tildabio/main", "at": "03f9c2d6b", "path": "e2e/automation/tests/virtualassistant/test_gated_template_preview.py", "from_line": 117, "failing_line": 140, "code": "117 def test_substantial_amendment_reviews_internally_and_waits_on_approval_proof(self, gated_previews):\n118 \"\"\"The evidence-gated flow: an internal ICF review the site never sees, and a gate waiting on\n119 the IRB approval letter.\"\"\"\n120 data = gated_previews[\"previews\"][\"substantial_amendment_local_irb\"][\"data\"]\n121 tasks = data[\"tasks\"]\n122 \n123 assert internal_todos(tasks), (\n124 \"no internal to-do for the internal ICF review: \"\n125 f\"{[(t['description'], t.get('is_internal')) for t in tasks]}\"\n126 )\n127 \n128 gates = gate_todos(tasks)\n129 assert gates, f\"expected a gate on the approval flow: {[t['description'] for t in tasks]}\"\n130 \n131 approval_gates = [\n132 gate\n133 for gate in gates\n134 if any(word in (gate.get(\"description\") or \"\").lower() for word in (\"irb\", \"lec\", \"approval\"))\n135 ]\n136 assert approval_gates, f\"no gate waits on IRB/LEC approval: {[g['description'] for g in gates]}\"\n137 \n138 for gate in approval_gates:\n139 if gate.get(\"gate_clearance\") == GateClearance.EVIDENCE.value:\n140> assert (\n141 gate.get(\"evidence_requires_document\") is not False\n142 ), f\"an IRB approval gate must need the letter, not a claim: {gate['description']!r}\"\n143 \n144 timeline_todos = matching_todos(tasks, \"timeline\") or matching_todos(tasks, \"submission date\")\n145 assert timeline_todos, f\"no to-do collects the IRB timeline details: {[t['description'] for t in tasks]}\"\n146 \n147 @pytest.mark.parametrize(\"template_key\", TEMPLATE_KEYS)\n148 def test_preview_config_stores_the_plan(self, gated_previews, template_key):\n149 \"\"\"A config created from the preview keeps the plan the agent generated, or it would gate nothing.\n150 \n151 template_id is sent but deliberately not asserted: the v2 read always answers null for it.\n152 \"\"\"\n153 headers = gated_previews[\"headers\"]\n154 preview = gated_previews[\"previews\"][template_key]\n155 data, template = preview[\"data\"], preview[\"template\"]\n156 \n157 payload = {\n158 \"study_id\": gated_previews[\"study_id\"],\n159 \"work_order_config_type\": \"Standard\",\n160 \"save_as\": \"preview\",\n161 \"recipients\": [],\n162 \"emails\": instruction_site_email(document_ids=preview[\"document_ids\"]),\n163 \"tasks\": data[\"tasks\"],\n164 \"plan_steps\": data.get(\"steps\") or [],\n165 \"template_id\": template[\"tildaid\"],\n166 \"thread_id\": preview[\"thread_id\"],\n167 \"title\": data[\"title\"],\n168 \"instructions\": template[\"instructions\"],\n169 }\n170 config_client = WorkOrderConfig(headers)\n171 config_id, _ = config_client.create_config(payload)\n172 \n173 config = config_client.get_config(config_id)\n174 assert len(config[\"plan_steps\"]) == len(\n175 payload[\"plan_steps\"]\n176 ), f\"plan_steps not echoed: sent {len(payload['plan_steps'])}, got {len(config['plan_steps'])}\"\n177 \n178 sent_gates = {task[\"description\"] for task in data[\"tasks\"] if task.get(\"is_gate\")}\n179 stored_gates = {task[\"description\"] for task in config[\"tasks\"] if task.get(\"is_gate\")}\n180 assert stored_gates == sent_gates, f\"gate flags changed on the config: sent {sent_gates}, stored {stored_gates}\"" }
Commits in the window
{ "between": "build 592 (last pass, started 2026-11-11T00:29:48Z) and build 593 (first failure of the streak, started 2026-11-12T00:21:19Z)", "test_repo": { "repo": "tildabio/main", "range": "93476717f..b805e7b66", "href": "https://github.com/tildabio/main/compare/93476717faf99cc95604d780a34e33728ade8e25...b805e7b66c8c01e711f0566189e109e1ecb6e150", "total": 36, "commits": [ { "sha": "b805e7b66", "subject": "Test careplan study protocol, side panel, discontinuation and the careplan route gates (ENG-8555) (#17280)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T14:47", "touches": [ "e2e/CLAUDE.md", "e2e/automation" ] }, { "sha": "76c64ccaa", "subject": "Cover the v2 participant visit routes: reads, preview schedule, activity complete, archive, error and 403 path (ENG-8556) (#17279)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T14:47", "touches": [ "e2e/automation" ] }, { "sha": "8f54bcb5f", "subject": "Test the AI Teammates inbox: Mailgun bounce, permanent-failure and .eml webhooks, work-order email views and t (ENG-8568) (#17317)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T11:11", "touches": [ "e2e/CLAUDE.md", "e2e/automation" ] }, { "sha": "431e5d508", "subject": "perf(authzlib): stage delegated-role branches so the role-context query plans fast (ENG-8339) (#17335)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-11T10:10", "touches": [ "common/authzlib" ] }, { "sha": "81a6b22cc", "subject": "tmfsync: sync Veeva Country and Site documents for CRO orgs (#17348)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-11T07:53", "touches": [ "data-science/tmfsync" ] }, { "sha": "ba7b4eebc", "subject": "Run production's build-all.yaml jobs on the self-hosted VM builder too (#17354)", "login": "ojasgo", "name": "ojasgo", "date": "2026-11-11T07:18", "touches": [ ".github/workflows" ] }, { "sha": "1ce293f0f", "subject": "feat(wo): AI Chat passes one work order's asks to its own chat agent (#17252)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:41", "touches": [ "data-science/chat-agent", "data-science/virtual_assistant" ] }, { "sha": "99b56335d", "subject": "execlib: add the trainee to training document names (ENG-8053) (#17343)", "login": "taylorfutral", "name": "Taylor", "date": "2026-11-11T05:39", "touches": [ "common/execlib" ] }, { "sha": "005be978e", "subject": "chore(authz): drop retired advocate and chart-review flags from app visibility (#16388)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-11T05:38", "touches": [ "api/auth.go", "authz/pkg", "e2e/automation" ] }, { "sha": "96a572f52", "subject": "feat(feedsvc): who handled each item; Done today and Your week (ENG-8628) (#17350)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:29", "touches": [ "data-science/feedsvc" ] }, { "sha": "7c3f9439a", "subject": "feat(edl): EDL audit log with actors, groups and a read API (ENG-8628) (#17349)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:28" }, { "sha": "2cf4a64b0", "subject": "Run master's build-all.yaml jobs on the self-hosted VM builder (#17336)", "login": "ojasgo", "name": "ojasgo", "date": "2026-11-11T05:27" }, { "sha": "88484b6d5", "subject": "Cover organization member labels, contact areas, members export, invite, password reset and CRO routes (ENG-85 (ENG-8544) (#17312)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T05:12" }, { "sha": "a6636ab23", "subject": "chat-agent: study configuration chat takes structure changes, plain-English conditions, plans, import leaves and uploaded video; studiosvc places an org's to-do", "login": "sureshboddapati", "name": "Suresh Boddapati", "date": "2026-11-11T04:47" }, { "sha": "8c5828103", "subject": "tmfsync: per-customer Veeva setup for Vertex (numbered doc types, drafts, study fields) (#17330)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-11T01:38" }, { "sha": "2bf2d50f8", "subject": "feat(staff): sponsor mapped roles in DOA review, EDL and work orders (ENG-8626) (#17346)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-10T23:47" }, { "sha": "8fb0a2b4a", "subject": "feat(feedsvc): v1 feed contract: one card per kind, facets, site rows, brief (#17345)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-10T23:46" }, { "sha": "2595ea688", "subject": "studioai: protocol + CRF extraction into Studio ProtocolExport JSON (ENG-3080) (#17080)", "login": "aaburaed", "name": "aaburaed", "date": "2026-11-10T22:11" }, { "sha": "f29e4d571", "subject": "Drop POST /shorturl, unguessable short codes, rate-limit misses (#17217)", "login": "taylorfutral", "name": "Taylor", "date": "2026-11-10T19:57" }, { "sha": "8599d42ac", "subject": "fix(docproc): site and protocol guard findings point at the value they quote (ENG-8491) (#17338)", "login": "aaburaed", "name": "aaburaed", "date": "2026-11-10T18:28" }, { "sha": "ef1ab6869", "subject": "fix(docproc): QC, Format and PHI report nothing on pages outside the page window (ENG-8456) (#17337)", "login": "aaburaed", "name": "aaburaed", "date": "2026-11-10T18:27" }, { "sha": "94daef8f8", "subject": "feat(Periodic QC): Phase 1 - Support QC plans (#17331)", "login": "vishal23karedla", "name": "Vishal Karedla", "date": "2026-11-10T17:56" }, { "sha": "26a929da3", "subject": "fix(va): chat add CC lands on the open work order draft (ENG-8445) (#17333)", "login": "avdkishore", "name": "Kishore", "date": "2026-11-10T16:44" }, { "sha": "f03208870", "subject": "Speed up Docker builds: per-image BuildKit cache mounts + two-phase uv sync (#17264)", "login": "ojasgo", "name": "ojasgo", "date": "2026-11-10T14:17" }, { "sha": "7a50c5946", "subject": "fix(docproc): QC runs on every document of a multi-document re-run (ENG-8529) (#17328) (#17329)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-10T01:27" } ] }, "product": { "repo": "tildabio/main", "range": "2bf2d50f8..b805e7b66", "href": "https://github.com/tildabio/main/compare/2bf2d50f8c622e86ee3495b089fe97baebf28ff2...b805e7b66c8c01e711f0566189e109e1ecb6e150", "total": 15, "commits": [ { "sha": "b805e7b66", "subject": "Test careplan study protocol, side panel, discontinuation and the careplan route gates (ENG-8555) (#17280)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T14:47", "touches": [ "e2e/CLAUDE.md", "e2e/automation" ] }, { "sha": "76c64ccaa", "subject": "Cover the v2 participant visit routes: reads, preview schedule, activity complete, archive, error and 403 path (ENG-8556) (#17279)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T14:47", "touches": [ "e2e/automation" ] }, { "sha": "8f54bcb5f", "subject": "Test the AI Teammates inbox: Mailgun bounce, permanent-failure and .eml webhooks, work-order email views and t (ENG-8568) (#17317)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T11:11", "touches": [ "e2e/CLAUDE.md", "e2e/automation" ] }, { "sha": "431e5d508", "subject": "perf(authzlib): stage delegated-role branches so the role-context query plans fast (ENG-8339) (#17335)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-11T10:10", "touches": [ "common/authzlib" ] }, { "sha": "81a6b22cc", "subject": "tmfsync: sync Veeva Country and Site documents for CRO orgs (#17348)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-11T07:53", "touches": [ "data-science/tmfsync" ] }, { "sha": "ba7b4eebc", "subject": "Run production's build-all.yaml jobs on the self-hosted VM builder too (#17354)", "login": "ojasgo", "name": "ojasgo", "date": "2026-11-11T07:18", "touches": [ ".github/workflows" ] }, { "sha": "1ce293f0f", "subject": "feat(wo): AI Chat passes one work order's asks to its own chat agent (#17252)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:41", "touches": [ "data-science/chat-agent", "data-science/virtual_assistant" ] }, { "sha": "99b56335d", "subject": "execlib: add the trainee to training document names (ENG-8053) (#17343)", "login": "taylorfutral", "name": "Taylor", "date": "2026-11-11T05:39", "touches": [ "common/execlib" ] }, { "sha": "005be978e", "subject": "chore(authz): drop retired advocate and chart-review flags from app visibility (#16388)", "login": "mrinalraj1", "name": "Mrinal", "date": "2026-11-11T05:38", "touches": [ "api/auth.go", "authz/pkg", "e2e/automation" ] }, { "sha": "96a572f52", "subject": "feat(feedsvc): who handled each item; Done today and Your week (ENG-8628) (#17350)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:29", "touches": [ "data-science/feedsvc" ] }, { "sha": "7c3f9439a", "subject": "feat(edl): EDL audit log with actors, groups and a read API (ENG-8628) (#17349)", "login": "mvelamatt", "name": "murali krishna velamati", "date": "2026-11-11T05:28" }, { "sha": "2cf4a64b0", "subject": "Run master's build-all.yaml jobs on the self-hosted VM builder (#17336)", "login": "ojasgo", "name": "ojasgo", "date": "2026-11-11T05:27" }, { "sha": "88484b6d5", "subject": "Cover organization member labels, contact areas, members export, invite, password reset and CRO routes (ENG-85 (ENG-8544) (#17312)", "login": "tilda-gitbot[bot]", "name": "tilda-gitbot[bot]", "date": "2026-11-11T05:12" }, { "sha": "a6636ab23", "subject": "chat-agent: study configuration chat takes structure changes, plain-English conditions, plans, import leaves and uploaded video; studiosvc places an org's to-do", "login": "sureshboddapati", "name": "Suresh Boddapati", "date": "2026-11-11T04:47" }, { "sha": "8c5828103", "subject": "tmfsync: per-customer Veeva setup for Vertex (numbered doc types, drafts, study fields) (#17330)", "login": "krishnaatluru-cpu", "name": "Krishna Chaitanya", "date": "2026-11-11T01:38" } ] } }
The issue as the agent wrote it
**Fix is in:** the automation suite (e2e): the test is flaky. **What failed:** `AssertionError: an IRB approval gate must need the letter, not a claim: "Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received."` **Flaky test**, confidence medium. Found in `api-tests-master` build 597: [run in X-ray](https://xray.tilda.pizza/tests/run/api-tests-master/597). The preview agent wrote an IRB/LEC approval gate with gate_clearance 'evidence' and evidence_requires_document False. The test asserts `is not False` at test_gated_template_preview.py:140. History is flaky: 16 failures and 13 flips in 30 runs, including passes at the same code. e2e/automation/knowledge/workorder-gating.md:69 lists this test as an intermittent failure. The agent sometimes emits a message-tier gate. That is LLM output variance, not a new regression. I found no commit in the range that touches this flow. 1ce293f0f touches virtual_assistant but does not fit a flake this old. The 'no AI draft' timeout in the sibling facility-flow test is a different failure. To fix it, make the gate deterministic: tighten the substantial_amendment_local_irb instructions in gated_template_definitions.py, or default evidence gates in the preview to requiring a document. Alternatively, retry the preview generation inside the fixture. **Assigned to:** [email protected] (last changed test_gated_template_preview.py (14b4ea37d)). **Failing tests (1):** - [automation/tests/virtualassistant/test_gated_template_preview.py::TestGatedTemplatePreview::test_substantial_amendment_reviews_internally_and_waits_on_approval_proof](https://xray.tilda.pizza/tests/case/b96b97147193d1c8) (failing since build 593) **Error:** ``` AssertionError: an IRB approval gate must need the letter, not a claim: "Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received." assert False is not False + where False = <built-in method get of dict object at 0x79cb79139480>('evidence_requires_document') + where <built-in method get of dict object at 0x79cb79139480> = {'description': "Wait for the site's written confirmation that its Local IRB/LEC has approved the amendment after the three timeline items are received.", 'doc_id': None, 'evidence_requires_document': False, 'gate_clearance': 'evidence', ...}.get ``` +++ Agent notes Filed by X-ray's triage agent. Models asked: claude-sonnet-5-5; settled by deep; 3 lookups in the code and its history. Group `triage:6bdcbab546e53c` (one issue per root cause). A wrong verdict can be corrected on the run page in X-ray. +++