> Hey team, are schema writes idempotent in SpiceDB?
Yes, you can repeat a WriteSchema call with the same contents with no ill effects
> If the write command is called, but there are no changes, will a new revision be created?
Yes, but that's because all writes to the datastore result in a new revision; queries before/after the schema write will see the appropriate schema based on the revision selected for the query.
> Also, any details on how multiple concurrent schema updates are handled? What happens if two (or even 10) schema writes happen simultaneously, do they get executed sequentially?
Details depend on the datastore, but in general the writes are automatically serialized by the backing database (so you'll get an externally visible write order) or one write will fail and return to the client. There's no risk of interleaved schema writes, if that's the question.
> It will make my deployment flow a lot easier if I can call write on every app deployment without having to check if there has been a change to the schema
That works fine if your deployment flow is the only thing you expect to be writing schema. Otherwise doing this will overwrite schema changes from other sources.