OBJECTIVE

Write a dependency-free validator that rejects malformed or unsafe local configuration while producing precise, human-readable errors.

TIME PLAN

Prepare 25m · Build 105m · Verify 25m · Document 25m

Working boundary

Work only inside the folder created by Smartphone-Academy.py prepare json-config-validator. Use the supplied fictional samples or data you are explicitly authorized to handle.

Prepare the Termux workspace

Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.

Android + Termuxpython Smartphone-Academy.py prepare json-config-validatorNo root. Work only with the supplied files under $HOME.

Practical mission

  1. Define required keys, accepted types, ranges, and safe defaults for the supplied configuration format
  2. Return multiple actionable validation errors instead of stopping at the first one
  3. Create tests for missing keys, wrong types, extreme values, and unexpected fields
  4. Document which checks prevent crashes and which checks enforce security expectations
EVIDENCE TO PRODUCE

A config_validator.py program, test-configs folder, and validation-report.md covering valid, invalid, and boundary cases.

Quality gate

The deliverable states a clear scope and date for “Create a Defensive JSON Configuration Validator.”
A second learner can reproduce the commands and paths.
Original samples remain unchanged and verifiable.
Limitations and confidence are recorded beside the conclusions.

Analyst reflection

Which result from “Document which checks prevent crashes and which checks enforce security expectations” needs additional evidence before it could support a real operational decision?

Complete in Termux

After checking the deliverables, run python Smartphone-Academy.py complete json-config-validator. Progress is stored locally in the Termux home directory.

12 · Python Automation

Continue learning

Back to Smartphone Academy