User as Code
User as Code – user memory as executable Python code instead of text. Two stages: fact logging (append-only, nothing is lost) and periodic structuring into typed objects. Three tasks that text solves poorly, but code easily: aggregating statistics (how many foreign trips – one expression, accuracy ~99% vs. 6-43% for search), conflict detection (allergy medication by drug class), constraint application (passport expires less than 180 days before trip → warning without asking).
Related: [User memory formats], [Code as business rules constraint]