Morris
09/26/2025, 2:50 PM.zed for human validation, education, and so on.
I'm curious how the team currently recommends building and maintaining these larger schemas, how often it leads to programatically producing .zed files, and if those folks would like to write JSON but read .zed instead.yetitwo
09/26/2025, 3:28 PMcue. in my own work at my last company where we were using a google cloud iam-ish schema we just let the schema be verbose.
my personal take is that the verbosity isn't a bad thing, because keeping things simple/less indirect means it's easier to grok and verify a schema.
there is a [composable schema syntax](https://authzed.com/docs/spicedb/modeling/composable-schemas) that may help with organizing a schema, though it doesn't necessarily help with propagating a permission up through a hierarchy.verdverm.com
09/26/2025, 4:07 PMverdverm.com
09/26/2025, 4:08 PMMorris
09/26/2025, 4:10 PMverdverm.com
09/26/2025, 6:07 PMMorris
09/26/2025, 6:10 PMverdverm.com
09/26/2025, 7:26 PMzed accepted both JSON and .zed files, I probably wouldn't really care which format.
I'm fine with the text/template or string formatting because the sources of truth is used for more than generating the schema. Also, if you have the JSON->Zed transformer, it will be the same thing, so why even put the JSON in the middle?verdverm.com
09/26/2025, 7:28 PMMorris
09/26/2025, 8:11 PMv1.WriteRelationshipsRequest
If json was an accepted format, rather than putting it in between, you wouldn't generate .zed at all - or it would be an optional side effect for human readability or auditing.
There are products out there that have solved the json serialization of the algebra, paraphrasing a simple example in the screenshot:
https://cdn.discordapp.com/attachments/1421147009967984660/1421227741163814983/image.png?ex=68d844fa&is=68d6f37a&hm=9708dc5d9585b463f810242761da4e1c5aa3873ed7c8ac28dc86f3473e16c4fc&Morris
09/26/2025, 8:14 PMverdverm.com
09/26/2025, 9:22 PMadmin + (user - banned) in JSON? How would it be clearer than what I just wrote?verdverm.com
09/26/2025, 9:24 PMverdverm.com
09/26/2025, 9:25 PMverdverm.com
09/26/2025, 9:26 PMyetitwo
09/26/2025, 9:30 PMverdverm.com
09/26/2025, 9:33 PMCUE -> { DSL, clients } , but then I also wrote a framework for CUE -> anything generally, so I may be biased 😄 
https://hofstadter.io