User as Code
User as Code – user memory as executable Python code instead of text.
Two stages:
- fact log – append-only, nothing is lost;
- 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% with search;
- conflict detection – allergy medication by drug class;
- constraint application – passport expires less than 180 days before the trip → warning without asking.
Related: Форматы памяти пользователя, Код как ограничение бизнес-правил