guidewire-observability-and-incident-response
Operate a Guidewire Cloud API integration in production — define SLIs/SLOs for token availability, bind success rate, FNOL p99 latency; route alerts so the on-call gets paged for real outages and never for transient noise; triage 401 spikes, 409 storms, 429 saturation, scope drift, and Gosu OOM cascades from signal to recovery in 15 minutes or less. Use when designing a dashboard for a new integration, writing the on-call runbook, or running a post-incident review. Trigger with "guidewire observability", "guidewire slo", "guidewire on-call", "guidewire 401 spike", "guidewire 409 storm", "guidewire incident".
What this skill does
# Guidewire Observability and Incident Response ## Overview Run a production Guidewire Cloud API integration with the dashboards, alerts, and runbooks an on-call engineer can act on at 3am. This skill consolidates the operational layer: what to measure, what to alert on, how to triage the top five incident classes, and how to close the loop with a post-incident review that prevents recurrence rather than performing root-cause theater. Five operational failures this skill prevents: 1. **Vanity dashboards** — graphs of total request count, no per-endpoint p99, no SLI burn rate; on-call sees green during a real outage because the right thing was never measured. 2. **Alert fatigue** — every transient `5xx` pages someone; in three weeks the team mutes the channel; a real incident two weeks later goes unnoticed for an hour. 3. **No triage tree** — on-call wakes up to "401 spike", does not know whether to rotate a secret, restart the integration, or call GCC; loses 20 minutes Googling. 4. **Skipped post-incident review** — the same root cause produces three incidents in a quarter because no one wrote down the action items from the first one. 5. **Common-errors table living in nine Slack threads** — operators cannot find the recovery for an error they have seen before, ask the same question in #ops, the answer takes 45 minutes. ## Prerequisites - A working integration emitting structured logs and metrics to a backend (Datadog, Grafana+Prometheus, New Relic, Splunk, or equivalent) - Access to a paging system (PagerDuty, Opsgenie, VictorOps) with on-call rotations defined - The `integration_audit` table from `guidewire-security-and-rbac` populated — incident triage depends on knowing what the integration tried to do - `correlation_id` propagated end-to-end through every Cloud API call ## Instructions Build the operational layer in this order. Each step targets one of the five operational failures listed in Overview. ### 1. Define SLIs that measure user-visible behavior Track what users care about, not what is easy to measure. For a Guidewire integration, the SLIs that matter: | SLI | Measurement | Target | |---|---|---| | Token-endpoint availability | success rate of `/oauth/token` over a rolling 5min window | ≥99.9% | | Cloud API write success | `2xx` rate on POST/PATCH calls, excluding 4xx caller errors | ≥99.5% | | Bind success rate | `bound` / `quoted` ratio over rolling 1h, excluding referrals | ≥98% | | FNOL intake p99 latency | end-to-end time from inbound event to `claim.created` log | ≤2s | | Quote-to-bind median latency | median time from quote-call to bind-success | ≤30s | `5xx` from upstream Cloud API counts against availability; `4xx` from caller bugs (validation failures, scope mismatches) does not — those are caller errors, not integration outages. Distinguishing the two is the single biggest cause of either alert fatigue or missed incidents, depending on which way the bias goes. ### 2. Burn-rate-based alerting, not threshold alerting Alerting on "error rate > 1%" pages the on-call every time a transient `502` happens. Alert on **SLO burn rate** instead — the rate at which the error budget is being consumed. ``` Fast burn: 2% error budget consumed in 1 hour → page immediately Slow burn: 5% error budget consumed in 6 hours → page during business hours Trickle: 10% error budget consumed in 3 days → ticket, not page ``` A 5-minute outage that consumes 1% of the monthly budget should not page; a 20-minute outage that consumes 4% should. Burn-rate alerts encode this naturally. ### 3. Top-five triage trees Each tree is the ~5-step decision sequence on-call follows from signal to recovery. Memorize the entry signal; the body is in the runbook. **T1: 401 spike on Cloud API calls** ``` 401s > 1% for 5min ├─ Check token age in cache: is the integration refreshing? → if no, restart token-cache process ├─ Decode a recent token, verify exp > now + 60s → if no, clock skew or aggressive proxy caching ├─ Check GCC: is the Service Application enabled? → if no, talk to tenant admin └─ Check secret-rotation history: was a secret rotated in the last 24h? → if yes, run dual-secret swap or restart ``` **T2: 409 storm on PATCH calls** ``` 409s > 5% for 5min ├─ Are concurrent writers expected? → if yes, scale checksum round-trip retry budget ├─ Is one resource-id producing all 409s? → if yes, it's a hot key; coordinate writes via queue └─ Is the client retrying the bare PATCH instead of the GET-PATCH cycle? → fix the retry layer ``` **T3: 429 saturation on Cloud API or Hub** ``` 429s > 1% for 10min ├─ Is the Hub /oauth/token endpoint 429ing? → token cache missing single-flight gate; deploy fix immediately ├─ Is the data-plane API 429ing? → check tenant quota in GCC, request increase if legitimate growth └─ Is one customer driving the saturation? → tenant-side rate limit on the integration's intake ``` **T4: Scope drift detected** ``` Scope-drift alert from auth refresh ├─ What scope is missing? → check GCC > Identity & Access > Applications > [app] > Permissions ├─ Was a permission removed by a tenant admin? → coordinate; restore or accept loss of capability └─ Was a scope renamed in a tenant config push? → update GW_SCOPES env, redeploy ``` **T5: GUnit / runServer OOM (dev or staging)** ``` OOMKilled or heap dump generated ├─ Is sample data set abnormally large? → reset dev DB, reload fixtures ├─ Is a recent change loading too many entities (no pagination, no filter)? → revert; add limit └─ Is the JVM under-provisioned? → bump -Xmx in gradle.properties; restart ``` ### 4. Recovery playbooks (top 5 incident classes) Each playbook is one page in the on-call runbook. Concrete commands, not prose. ```markdown ## Playbook: 401 spike — secret rotation suspected 1. Rotate in GCC > Identity & Access > Applications > [app] > Generate Secret 2. sops secrets.prod.<tenant>.sops.yaml # set new GW_CLIENT_SECRET (and SECONDARY = old) 3. git commit -m "rotate(secrets): incident-driven rotation $(date -Iseconds)" 4. Trigger deploy of token service 5. Confirm token claims show iat > rotation timestamp: kubectl exec ... -- /token-debug 6. After 24h zero failures from primary: remove SECONDARY 7. Open audit row with reason="incident-401-spike" ``` Each playbook ends with an audit-row insert so the next post-incident review has the full timeline. ### 5. Post-incident review template (PIR) ```markdown # PIR: <date> — <one-line summary> ## Timeline - HH:MM — first signal (alert link, dashboard screenshot) - HH:MM — on-call paged - HH:MM — root cause identified - HH:MM — mitigation applied - HH:MM — confirmation of recovery ## SLO impact - Error budget consumed: X% - Customer-impacting requests: N - Compliance impact: <yes / no — if yes, NAIC notification window> ## Root cause <the actual root cause, not a symptom; use 5-whys but don't perform; one paragraph max> ## What worked <what the team did right; preserve these> ## What didn't <what slowed the response; this drives action items> ## Action items (each with owner + target date) - [ ] OWNER, BY: <date> — <concrete change> - [ ] OWNER, BY: <date> — <concrete change> ## Recurrence prevention <the one change that makes this exact incident impossible next time, not "be more careful"> ``` The discipline is the action items having owners and dates. PIRs without those are theater. ## Output A production-grade observability layer ships with all of the following: - A dashboard showing the five SLIs with their targets and current burn rate; one panel per SLI, each linked to the underlying logs/metrics query. - Burn-rate-based alerts wired to the paging system; fast-burn pages immediately, slow-burn opens a ticket, trickle goes to a weekly review. - Five triage trees memorized by every on-call rotation member; the entry signal is the alert title, the body is the runbook. - Five recovery playbooks one-page each, kept in the integration repo (so they version with
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.