Smart Cart Integration Troubleshooter
Turn a cart symptom into a safe, evidence-based diagnostic sequence. Separate confirmed observations from hypotheses and test one variable at a time.
Workflow
- Read references/project-baseline.md to anchor the diagnosis to the actual project configuration.
- Classify the symptom as
power,motion,direction,camera,communication,agent, orobstacle. - Apply the safety gate before touching hardware: stop motion, isolate the 12V supply when changing wiring, secure or lift the chassis for wheel tests, and keep hands clear of moving parts.
- Collect the minimum evidence needed: command issued, visible response, battery/controller state, relevant logs, camera status, and whether the fault is repeatable.
- Read references/diagnostic-matrix.md for likely causes and the required test order.
- Diagnose from the lowest layer upward: mechanical and power, controller and servo, camera/driver, communication, then OpenClaw/LLM planning.
- Generate a checklist with
python3 scripts/make_checklist.py CATEGORYwhen file execution is available. - Return a report with symptom, confirmed facts, hypotheses, numbered tests, expected results, stop conditions, likely fix, and final acceptance test.
Diagnostic Rules
- Never treat a hypothesis as a confirmed cause.
- Never change multiple wiring, calibration, and software variables in the same test.
- Never recommend bypassing protection, operating damaged batteries, or probing live wiring without suitable training and equipment.
- Stop immediately for battery swelling, overheating, smoke, damaged insulation, short-circuit signs, uncontrolled motion, or repeated controller resets.
- Do not blame the large model until power, mechanics, device enumeration, direct controller commands, and communication have been checked.
- Do not invent controller protocols, pin assignments, serial ports, API responses, or sensor values not present in the evidence.
Output Template
Use this order:
故障现象已确认事实可能原因(按优先级)排查步骤with one change and one expected result per step立即停止条件建议修复验收测试
Example
For 发出前进指令后,小车原地打转, first verify wheel installation and mechanical binding, then test each servo independently, check zero-position calibration and direction mapping, and finally run a low-speed straight-line acceptance test. See examples/sample-diagnosis.md.
