state-hub/tests
tegwick 62d407cae7 feat(capability-requests): add routing_note, PATCH endpoint, word-boundary fix, and ops-bridge tunnel targets
- Add `routing_note` column (migration l9g0h1i2j3k4) to persist why a request was routed to a given domain
- Fix substring-match bug in `_route_capability`: use `\b` word-boundary regex so 'postgres' no longer matches inside 'postgresql'
- Include `title` in keyword scoring for better routing accuracy
- Return `routing_note` string from `_route_capability` and store it on the request
- Add `PATCH /capability-requests/{id}` endpoint + `CapabilityRequestPatch` schema to correct mutable metadata (catalog_entry_id, priority, blocking_task_id, fulfilling_workstream_id)
- Add `patch_capability_request` MCP tool wrapping the new endpoint
- Add 105 lines of routing tests (word-boundary, title-match, multi-entry scoring, broadcast fallback)
- Add `tunnels-up`, `tunnels-status`, `tunnels-check` Makefile targets for ops-bridge managed tunnels

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 03:47:54 +01:00
..
__init__.py feat(state-hub): integrate llm-connect as dependency (S3.1) 2026-02-27 08:32:17 +01:00
conftest.py feat(tests): pytest-asyncio test suite — 119 tests across 3 modules 2026-03-18 12:00:06 +01:00
test_capability_requests.py feat(capability-requests): add routing_note, PATCH endpoint, word-boundary fix, and ops-bridge tunnel targets 2026-03-20 03:47:54 +01:00
test_consistency_check.py fix(consistency): fix C-04 status vocabulary mismatch + surface PATCH errors 2026-03-12 21:57:11 +01:00
test_ingest_sbom.py feat(sbom): CUST-WP-0013 — expand SBOM infra to terraform, ansible, and tool manifests 2026-03-12 04:40:26 +01:00
test_llm_connect_integration.py feat(state-hub): integrate llm-connect as dependency (S3.1) 2026-02-27 08:32:17 +01:00
test_mcp_smoke.py feat(tests): pytest-asyncio test suite — 119 tests across 3 modules 2026-03-18 12:00:06 +01:00
test_routers_core.py feat(tests): pytest-asyncio test suite — 119 tests across 3 modules 2026-03-18 12:00:06 +01:00
test_routers_td_ep_contrib.py feat(tests): pytest-asyncio test suite — 119 tests across 3 modules 2026-03-18 12:00:06 +01:00