Plan a local AI assistant with narrow permissions https://patrickz.ai/learn/plan-a-local-home-assistant/ OUTCOME Design and simulate one low-risk home command with a manual fallback. YOU NEED A chat assistant and a text file of fictional device states. No home hardware changes are required for this exercise. 1. Choose one allowed action Use a fictional desk lamp. Define set_light with a room chosen from a fixed list and a state of on or off. Exclude locks, alarms and purchases. 2. Translate language into a proposal Give the assistant five phrases and ask for a structured action or a clarification question. It should not execute anything. Ambiguous rooms must remain ambiguous. 3. Validate before acting Reject unknown device names and invalid values. Require the approved action to pass a deterministic check outside the model. Log the requested and confirmed state separately. 4. Test loss of service Simulate an unavailable model and an unresponsive lamp. Show an honest error and preserve a normal manual switch. Expand only after these cases behave predictably. PROMPT Design a simulated lamp assistant. Allowed action: set_light(room, state), rooms: desk or kitchen, state: on or off. For each request return a proposed action or a clarification question. Never claim execution. Give tests for ambiguous rooms, invalid values, offline devices and a manual override. EXAMPLE / EXPERIMENT “Make it comfortable” is not permission to change every appliance. “Turn the desk lamp off” can become a validated proposal; success still needs device confirmation. CHECK YOUR RESULT [ ] Unknown actions are rejected. [ ] An offline device never produces a false success. [ ] The manual fallback is explicit. IF IT FAILS A local model does not make cloud-connected devices local. Inventory the full data path before claiming privacy or connecting real equipment. MY RESULT / NEXT CHANGE