Skip to content

fix(decorators): wire incident_id in mcp_handler_timeout emit (Wave 0 dedup contract)#463

Merged
cirwel merged 1 commit into
masterfrom
claude/auto/20260518-160139-fixdecorators-wire-incidentid-in-mcphand
May 18, 2026
Merged

fix(decorators): wire incident_id in mcp_handler_timeout emit (Wave 0 dedup contract)#463
cirwel merged 1 commit into
masterfrom
claude/auto/20260518-160139-fixdecorators-wire-incidentid-in-mcphand

Conversation

@cirwel
Copy link
Copy Markdown
Owner

@cirwel cirwel commented May 18, 2026

Auto-shipped by ship.sh — runtime path. Auto-merge is enabled; CI gate applies.

… dedup contract)

The @mcp_tool decorator's TimeoutError emit was the one Wave 0 step 2 site missing the incident_id field. The other four wired emitters (asyncpg_connect_error.bootstrap, asyncpg_connect_error.runtime / executor_pool_exhaustion.acquire_timeout, anyio_cancellation.background_task, executor_loop_died.{uncaught,premature_return}) all carry it. Because this site was the only one to fire during the 14-day window, §129's COUNT(DISTINCT payload->>'incident_id') returned 0 vacuously — see docs/proposals/wave-1-window-evaluation-2026-05-18.md Caveat 1.

Single-site fix: add 'incident_id': str(uuid4()) to the emit payload, matching the lazy-import pattern already used in postgres_backend.py and background_tasks.py. Test in test_decorators.py asserts the field is present and parses as a valid UUID.

This restores criterion-evaluability for the next §129 window.
@github-actions
Copy link
Copy Markdown

✅ Documentation Validation Passed

Tool Count: 7 tools tools
Version: 2.13.0

All documentation is synchronized with the codebase.

@cirwel cirwel merged commit ed34a76 into master May 18, 2026
6 checks passed
@cirwel cirwel deleted the claude/auto/20260518-160139-fixdecorators-wire-incidentid-in-mcphand branch May 18, 2026 22:46
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