Build a Loopback-Only Local API
Create a small validated service that listens only on localhost and never exposes debug mode to Wi-Fi.
Mission
Create a small validated service that listens only on localhost and never exposes debug mode to Wi-Fi.
Required work
- Bind explicitly to 127.0.0.1
- Validate input length and type
- Return consistent JSON errors
- Confirm no LAN listening socket exists
Evidence to produce
A local API, request tests and a network-exposure verification note.
Quality checks
The result must name its sources, separate observation from assumption, preserve originals and explain limitations.