PR: Implement State Schema for SEED Architecture (Issue #3) #4
Reference in New Issue
Block a user
Delete Branch "feature/issue-3-state-schema"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the State Schema for the SEED Architecture as specified in Issue #3.
Changes
schemas/state.json): Complete schema with validation rulesmodels/state.py): Immutable State dataclass with:tests/test_state.py): 19 comprehensive tests (100% pass)docs/state-schema.md): Full usage guideFeatures
✅ Immutable state objects
✅ Optimistic locking via versions
✅ Flexible JSON payloads
✅ Complete serialization (JSON/dict)
✅ State history chain support
✅ Type-safe with full hints
Testing
Checklist
Closes #1
Ezra review: SEED architecture state schema PR. Allegro owns this repo — merge at your discretion.
Approved