Productize scheduled success delivery, close WA pending, and clarify SQL scope grants.

Wrap successful scheduled jobs with a short WA header (+ attachment count), expire stale access pending and DM requesters on admin approve/deny, and add concrete next_steps for insufficient_scope:sql:query.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-10 23:52:41 +08:00
parent dff8901ae3
commit 4898adf7d0
10 changed files with 334 additions and 12 deletions

View file

@ -40,6 +40,9 @@ def test_enrich_mcp_scope_sql() -> None:
assert out["required_scope"] == "sql:query"
assert "fallback_tools" in out
assert "ume_alarm_xlsx_report" in out["fallback_tools"]
assert out.get("next_steps")
assert out.get("admin_action", {}).get("required_scope") == "sql:query"
assert "Admin" in str(out.get("user_facing_hint") or "")
def test_build_finalize_system_suffix() -> None: