▸case-01 I need to visualize our mobile app's OAuth2 authorization code flow with PKCE. The interaction involves the user, the mobile client, our API gateway, and the identity provider. Could you generate a Mermaid sequence diagram showing the step-by-step requests and responses, distinguishing between synchronous calls and async events, along with a note or path for handling expired authorization codes? | fail→fail | 22,725 | 18,379 | -19% | 1 | 1 | 0% | 3,200 | 2,573 | -20% | 0 | 0 | — |
▸case-02 Can you create a diagram tracing our e-commerce checkout payment processing system? It covers the shopper, storefront frontend, payment service, third-party payment gateway, and background webhook worker. Please output a Mermaid sequence chart outlining the chronologically ordered interactions, reply payloads, async notifications, and what occurs during a card decline error. | fail→fail | 20,551 | 10,843 | -47% | 1 | 1 | 0% | 3,127 | 2,265 | -28% | 0 | 0 | — |
▸case-03 We are documenting how our API Gateway validates user sessions. The components involved are the client application, API Gateway, Redis Cache, User Service, and PostgreSQL Database. Please generate a sequence diagram using Mermaid syntax that details the exact call order, return values, blocking versus non-blocking messages, and how the flow handles a database timeout. | fail→pass | 23,825 | 21,766 | -9% | 1 | 1 | 0% | 3,294 | 3,595 | +9% | 0 | 0 | — |
▸case-04 We are designing the database schema for our e-commerce platform including tables for users, orders, order items, and products. Please produce an Entity-Relationship (ER) diagram in Mermaid syntax showing the tables, attributes, primary keys, foreign keys, and cardinalities. | pass→pass | 9,290 | 9,672 | +4% | 1 | 1 | 0% | 1,830 | 2,235 | +22% | 0 | 0 | — |
▸case-05 Our order fulfillment engine tracks an order through various lifecycle states: Pending, PaymentProcessing, Paid, Fulfilling, Shipped, Delivered, and Cancelled. Please generate a Mermaid state diagram showing these states and the triggers for transitioning between them. | pass→fail | 12,693 | 24,336 | +92% | 1 | 1 | 0% | 1,145 | 4,852 | +324% | 0 | 0 | — |
▸case-06 We need a high-level C4 System Context diagram for our enterprise healthcare portal showing the main system boundary, external patient users, doctor users, hospital EHR integrations, and notification service. Please create a C4Context diagram using Mermaid syntax. | pass→pass | 16,806 | 17,807 | +6% | 1 | 1 | 0% | 1,575 | 2,909 | +85% | 0 | 0 | — |
▸case-07 Can you create a sequence diagram for our document upload feature? Users upload files and we store them in S3. | fail→fail | 19,224 | 14,541 | -24% | 1 | 1 | 0% | 2,083 | 2,195 | +5% | 0 | 0 | — |
▸case-08 Generate a Mermaid sequence diagram for an IoT temperature sensor sending telemetry. The sensor sends periodic unacknowledged UDP/MQTT readings to an ingestion pipeline, which asynchronously enqueues them to Kafka, while a sync alert rule engine checks thresholds. Ensure async messages are clearly formatted and demonstrate how sensor battery failure is noted. | fail→fail | 21,590 | 14,807 | -31% | 1 | 1 | 0% | 3,124 | 2,423 | -22% | 0 | 0 | — |
▸case-09 Document the gRPC request flow when Order Service calls Inventory Service and Payment Service during checkout. Format as a sequence diagram in Mermaid. Show the synchronous RPC calls, return values, and include an alternative branch showing how Inventory Service handles an Out of Stock error response. | pass→pass | 18,752 | 8,110 | -57% | 1 | 1 | 0% | 1,967 | 2,209 | +12% | 0 | 0 | — |
▸case-10 Model our user registration flow in Mermaid sequence syntax: Client sends POST /api/v1/register with payload JSON to Auth Service, Auth Service writes to MySQL DB, and fires an async webhook event to Segment. Make sure to detail HTTP request headers like Content-Type application/json and authorization tokens in the message labels, and show what happens when DB duplicate key error occurs. | fail→fail | 16,854 | 9,833 | -42% | 1 | 1 | 0% | 2,074 | 2,508 | +21% | 0 | 0 | — |
▸case-11 Create a sequence diagram tracing incoming Stripe webhook delivery to our server. Stripe posts invoice.paid to our Webhook Controller, which enqueues an async Job to Redis Worker, returning 200 OK immediately to Stripe. Worker processes payment in DB. Show an edge case note for when DB is down and worker retries. | fail→fail | 17,922 | 17,954 | +0% | 1 | 1 | 0% | 1,902 | 2,361 | +24% | 0 | 0 | — |
▸case-12 Draft a sequence diagram for SAML 2.0 Service Provider Initiated SSO. Actors are User Browser, Service Provider App, and Identity Provider. Browser requests protected resource, SP redirects with SAMLRequest, Browser submits SAMLRequest to IdP, IdP authenticates user and posts SAMLResponse to SP assertion consumer service, SP validates and returns session cookie. Include invalid SAML assertion failure note. | pass→pass | 19,504 | 15,309 | -22% | 1 | 1 | 0% | 2,139 | 2,130 | -0% | 0 | 0 | — |
▸case-13 Create a sequence diagram using Mermaid syntax for a password reset flow. User enters email on Web App, Web App calls Auth API, Auth API writes token to Redis, and sends async email via SendGrid. User clicks link with token in email, Web App calls API to verify token and update password in PostgreSQL. Show expired token error handling. | pass→pass | 15,228 | 12,323 | -19% | 1 | 1 | 0% | 2,033 | 2,215 | +9% | 0 | 0 | — |
▸case-14 Model a WebSocket handshake and ping-pong heartbeat exchange between Client Browser and Realtime Server. Client sends HTTP GET upgrade request, Server responds with 101 Switching Protocols. Then Client sends periodic async ping frames, Server sends async pong frames. Model connection drop timeout. | fail→pass | 18,376 | 14,421 | -22% | 1 | 1 | 0% | 2,660 | 2,320 | -13% | 0 | 0 | — |
▸case-15 Generate a sequence diagram showing GraphQL query execution: Frontend Client submits GraphQL query to Gateway, Gateway checks Redis cache. On cache hit, Gateway returns cached JSON. On cache miss, Gateway calls User Subgraph and Order Subgraph in parallel/async, stitches response, updates Redis, and returns to Client. Show subgraph endpoint down failure handling. | fail→fail | 19,406 | 17,308 | -11% | 1 | 1 | 0% | 2,288 | 2,912 | +27% | 0 | 0 | — |
▸case-16 Model 2FA verification sequence: User submits credentials to Auth Service, Auth Service validates in DB, generates 6-digit OTP, enqueues async message to SMS Provider. SMS Provider delivers SMS to User Mobile. User enters OTP on Web Client, Auth Service verifies against Redis, returns JWT token. Model wrong OTP rate limit path. | fail→pass | 23,556 | 13,990 | -41% | 1 | 1 | 0% | 2,754 | 2,920 | +6% | 0 | 0 | — |
▸case-17 Create a sequence diagram for a video processing service: Creator uploads video to API, API stores raw file in S3, publishes async event to RabbitMQ, returns 202 Accepted. Transcoder Worker consumes event from RabbitMQ, converts video, uploads encoded file to S3, updates DB status to Complete, and pushes Webhook to Client. Include worker crash handling. | fail→fail | 16,552 | 16,275 | -2% | 1 | 1 | 0% | 2,555 | 2,747 | +8% | 0 | 0 | — |
▸case-18 Document mTLS connection setup between Service A and Service B. Service A initiates TCP handshake, Service B presents TLS certificate, Service A validates cert against CA, Service A presents client cert, Service B validates client cert, TLS tunnel established, Service A sends encrypted HTTP request, Service B replies. Show cert validation failure path. | pass→pass | 24,457 | 21,332 | -13% | 1 | 1 | 0% | 2,985 | 2,948 | -1% | 0 | 0 | — |
▸case-19 Draw a sequence diagram for an API Rate Limiter middleware. Client sends HTTP request to Gateway, Gateway queries Redis for client IP token count. If count exceeds limit, Gateway immediately returns 429 Too Many Requests without calling Backend API. If count is within limit, Gateway forwards request to Backend API, gets 200 OK, returns to Client. Document rate limit exceeded path. | pass→pass | 8,846 | 12,125 | +37% | 1 | 1 | 0% | 1,659 | 1,994 | +20% | 0 | 0 | — |
▸case-20 Model a CI/CD database migration pipeline in sequence diagram form: Developer pushes code to GitHub, GitHub Actions triggers Deployment Agent, Agent acquires lock in Postgres DB, runs migration scripts against DB, updates schema version table, releases lock, sends async Slack notification. Show migration script failure rollback path. | pass→pass | 19,081 | 12,256 | -36% | 1 | 1 | 0% | 2,046 | 1,976 | -3% | 0 | 0 | — |
▸case-21 Create a sequence diagram showing OIDC discovery and authorization code exchange: Mobile App fetches OIDC config from Identity Provider metadata endpoint, receives configuration JSON, redirects user to authorize endpoint, receives auth code back via deep link, exchanges code for ID token and Access token at token endpoint. Show handling for invalid redirect URI. | fail→fail | 17,601 | 13,823 | -21% | 1 | 1 | 0% | 2,629 | 2,379 | -10% | 0 | 0 | — |
▸case-22 Generate a Mermaid sequence diagram for async report generation: User requests PDF report on Dashboard, Web App sends POST /reports to Batch Engine, Batch Engine returns 202 Job ID. Web App polls GET /reports/status every 5 seconds until status is Ready, then GET /reports/download to fetch file. Show job failure error handling. | pass→pass | 24,691 | 18,724 | -24% | 1 | 1 | 0% | 2,000 | 2,526 | +26% | 0 | 0 | — |