mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
Isolate WhatsApp group turns by speaker and clarify SQL scope denials.
Always tag group senders, inject group-focus system hints, label queued follow-ups by speaker, and mark insufficient_scope failures as non-retryable with a user-facing hint. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d2693d1c63
commit
e91e4fe773
9 changed files with 167 additions and 31 deletions
|
|
@ -33,6 +33,10 @@ def test_enrich_mcp_scope_sql() -> None:
|
|||
raw = {"ok": False, "error_code": "mcp_rpc_error_-32001", "error": "insufficient_scope:sql:query"}
|
||||
out = enrich_mcp_scope_error(raw)
|
||||
assert out["error_code"] == "insufficient_scope"
|
||||
assert out.get("failure_class") == "auth"
|
||||
assert out.get("retry_forbidden") is True
|
||||
assert "aggregateUmeAlarms" in str(out.get("hint") or "")
|
||||
assert "SQL query is not enabled" in str(out.get("user_facing_hint") or "")
|
||||
assert out["required_scope"] == "sql:query"
|
||||
assert "fallback_tools" in out
|
||||
assert "ume_alarm_xlsx_report" in out["fallback_tools"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue