aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/sim.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 02:10:47 +0000
committertv <tv@krebsco.de>2026-11-16 02:10:47 +0000
commit0afc17ab0c6e0e34ce63c33db736e4fe59305c12 (patch)
treec125c4b128201346d089bd5aab48238f7d24dff9 /src/transport/sim.rs
parentb606449e51b8233d214f14500e0e47cd42af5744 (diff)
policy: strict only where its values is a string
The policy was read in typed JSON, so that an Automerge text spelling "signed" at its `values`, which no operation `rules::turns_strict` asks of writes, turns no swarm strict. But that read every policy anew: a setting that wasn't a string, or a text at `signatures`, made a policy no node knows in swarms that aren't strict, which read it as before. The policy is read in plain JSON again, as it was, and only its strictness asks more (`policy::of`): it reads strict only where its `values` is a string in typed JSON, an envelope read as its payload. A policy that would read strict only through a text, at `values` or holding the policy, is one no node knows. Every policy that doesn't read strict reads as it did.
Diffstat (limited to 'src/transport/sim.rs')
0 files changed, 0 insertions, 0 deletions