Design Input Validation
Define explicit acceptance rules for a small local form or CLI endpoint.
Define explicit acceptance rules for a small local form or CLI endpoint.
Prepare 20m · Build 110m · Verify 30m · Document 20m
Work only inside the folder created by Smartphone-Academy.py prepare input-validation. Use the supplied samples or systems you personally administer.
Prepare the Termux workspace
Open Termux in the Academy root and prepare this lab with the local companion. It creates safe samples, notes and evidence files under your Termux account.
python Smartphone-Academy.py prepare input-validationNo root. Use the supplied files and keep the workspace under $HOME.Practical mission
- Specify type, length, format and allowed range
- Distinguish validation from output encoding
- Create boundary tests around every numeric or length limit
- Return useful errors without echoing secrets
A validation matrix with valid, invalid, boundary and ambiguous examples.
Quality gate
Analyst reflection
Which result from “Return useful errors without echoing secrets” would need more evidence before it could support an operational decision?
After checking the evidence, run python Smartphone-Academy.py complete input-validation. Progress is stored locally in the Termux home directory.