audience returns Some([]) for readableBy: [], and create_space only refuses None. That makes a space no one but the group reads. updateSpace refuses the same list ("readableBy names who reads the space"), so such a space cannot be put back to that state once changed. tests/group_spaces.rs:119 creates one as a convenience but asserts nothing about it.
How to see it
Read against docs/fresh at 4636e6d, the code at: group_spaces.rs:114-115 (create_space), :164-166 (update_space). Paths are under crates/group-host/src unless they say otherwise. Severity: low.
What you expected
Refuse an empty readableBy in createSpace as updateSpace does (and update the test to name a role).
Where
The host, as built from 4636e6d. Found while checking the docs against the code.
What happened
audiencereturnsSome([])forreadableBy: [], andcreate_spaceonly refusesNone. That makes a space no one but the group reads.updateSpacerefuses the same list ("readableBy names who reads the space"), so such a space cannot be put back to that state once changed. tests/group_spaces.rs:119 creates one as a convenience but asserts nothing about it.How to see it
Read against
docs/freshat 4636e6d, the code at: group_spaces.rs:114-115 (create_space), :164-166 (update_space). Paths are undercrates/group-host/srcunless they say otherwise. Severity: low.What you expected
Refuse an empty
readableByincreateSpaceasupdateSpacedoes (and update the test to name a role).Where
The host, as built from 4636e6d. Found while checking the docs against the code.