Rules now run on the device
Permission functions are compiled once and checked on the client before a write lands, then again on the server. Rejected writes roll back locally in the same frame.
Until this week a forbidden write looked fine on the device for a few hundred milliseconds, then quietly disappeared when the server said no. That felt like a bug to users, because it was one.
Rules are now plain TypeScript functions compiled to a small bytecode that both the client and the sync server execute. The client check gives instant feedback; the server check stays the source of truth.
- allow() accepts sync and async predicates
- Rejected writes roll back locally and emit a typed error
- Rule bytecode is cached per schema version
- Breaking: permissions moved from kiln.config.ts into the schema
- Commits
- 87
- PRs
- 14
- People
- 9