Show HN: Using formal methods to write better requirements
mango-slra1-ckwssph7iq-ue.a.run.app
mango-slra1-ckwssph7iq-ue.a.run.app
> If payload = bad, server shall email someone on blue team.
and I get this error:
> Error at position 32 ("load")
One improvement might be making this error message more clear. Character 32 is around "shall", but the quoted word is near the beginning of the text. I tried changing "payload" to "var" and "=" to "==" and I'm just getting less and less helpful errors before giving up.
"User shall send login message to server"
seems almost exactly like
"Server shall send req_resolution to ctrl_entity"
yet the former throws an unhelpful error. Your parser might want to just internally slap a `_` between unexpected tokens and try reparsing. Humans tend to use spaces between things.