Author JSON Schemas for agent_state.json and task_board.json, build a StateManager that loads, validates, mutates, and writes atomically, and prove the round-trip across two turns.
- The three-file workbench shape from lesson 32
- A stdlib-only validator covering required, type, enum, pattern, and items
agent_state.schema.jsonandtask_board.schema.jsonnext to the codeStateManager.load,StateManager.update,StateManager.commitwith temp-and-rename writes- A demo run that mutates state across two turns and reloads cleanly
python3 code/main.pyexits zero- A bad write (missing required field, bad enum) is refused, not persisted
workdir/agent_state.jsonafter the run validates against the schema
- SQLite or external storage backends. The local file is the lesson.
- LangGraph checkpointers, Letta memory blocks. Same idea, different storage; out of scope here.
docs/en.md- full lessoncode/main.py- reference implementationoutputs/skill-state-schema.md- extracted skill