File size: 2,627 Bytes
f4177c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # 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..."]
|