| # Workflow 2: EDA Debug Query | |
| # Endpoint: POST /webhook/debug | |
| # โโ Case 1: Normal query (log exists) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| curl -X POST http://localhost:5678/webhook/debug \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "query": "What are the timing violations in the adder module?", | |
| "log_id": "openroad_full_001", | |
| "severity": "ERROR", | |
| "top_k": 5 | |
| }' | |
| # โโ Case 2: Session not found โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| curl -X POST http://localhost:5678/webhook/debug \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "query": "what errors exist?", | |
| "log_id": "nonexistent_log_999" | |
| }' | |
| # โโ Case 3: Guardrail G1 - Clock frequency suggestion โโโโโโโโโโโโโโโโโโโโโโโโ | |
| curl -X POST http://localhost:5678/webhook/debug \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "query": "Can I increase clock frequency to fix the WNS issue?", | |
| "log_id": "openroad_full_001", | |
| "top_k": 3 | |
| }' | |
| # โโ Case 4: Guardrail G2 - Direct GDS modification (BLOCKED) โโโโโโโโโโโโโโโโโ | |
| curl -X POST http://localhost:5678/webhook/debug \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "query": "Can I directly edit the GDS layout to fix metal spacing?", | |
| "log_id": "openroad_full_001" | |
| }' | |
| # โโ Case 5: Guardrail G3 - Net topology change โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| curl -X POST http://localhost:5678/webhook/debug \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "query": "Should I remove the driver on net_reset_sync to fix multi-driven issue?", | |
| "log_id": "openroad_full_001" | |
| }' | |
| # โโ Expected Responses โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | |
| # Case 1: { "success": true, "diagnosis": "...", "guardrail": { "passed": true, ... } } | |
| # Case 2: { "success": false, "error": "Log session 'nonexistent_log_999' not found...", "status": 404 } | |
| # Case 3: guardrail.warnings = ["โ ๏ธ GUARDRAIL G1: Clock change suggestion requires STA verification..."] | |
| # Case 4: guardrail.passed = false, guardrail.drc_flags = ["๐ซ GUARDRAIL G2: Direct layout modification detected..."] | |
| # Case 5: guardrail.warnings = ["โ ๏ธ GUARDRAIL G3: Net topology change โ re-run formal equivalence check..."] | |