交付三种引擎登记、草稿/已保存连接测试、可逆启用、每源熔断与 Cron 巡检,以及控制台页面;用户确认收尾后标 DONE_LOCAL。 Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
1.8 KiB
Markdown
31 lines
1.8 KiB
Markdown
# Review Result
|
|
|
|
## Recommendation
|
|
|
|
PASS_WITH_WARNINGS
|
|
|
|
## Review Scope
|
|
|
|
- Task: `2026-11-17/m03-datasource`, slice `S6`
|
|
- Routing: Tier L, `gateClass: high-risk`, `risk_score: 4`; two-stage bounded re-review performed after the P1 repair.
|
|
- Reviewed the caller-provided S6 repair paths and bounded task artifacts. No forbidden `web/**` or `services/watchman/src/watchman/jobs/**` changes were reviewed.
|
|
- Supplied validation evidence: `cd services/watchman && uv run pytest` reported `232 passed, 1 warning`. This reviewer did not rerun the suite.
|
|
|
|
## Stage 1: Boundary And Compliance Review
|
|
|
|
- **P1 fixed:** `get_datasource()` now calls `_close_if_cooled_down()` before serialization, and the detail route commits the normalized state. `list_datasources()` likewise normalizes every returned row and its route commits.
|
|
- The new regression tests advance past cooldown, verify detail and ordinary-list responses return `closed` with cleared open timestamps, and verify the persisted row is closed.
|
|
- The repair remains within allowed S6 service, route, and test scope. No scheduler, frontend, credential, or other forbidden-scope behavior was introduced.
|
|
|
|
## Stage 2: Implementation Quality Review
|
|
|
|
- No blocking implementation or regression finding was identified in the bounded re-review.
|
|
|
|
## Warning
|
|
|
|
- `services/watchman/src/watchman/services/datasources.py:116-122`: `to_public()` still says an elapsed `circuit_open_until` means “the next usability check closes it.” Detail and list reads now also normalize before serialization, so this wording is stale. It does not affect runtime behavior.
|
|
|
|
## Residual Risk
|
|
|
|
- Circuit state changes on reads are intentionally persisted by the detail/list route commits. The supplied full-suite result covers the repaired paths; migration-head verification was not supplied for this re-review.
|