Commit Graph

3 Commits

Author SHA1 Message Date
mnovak 31a46d0367 [roads] rename.rs: a new id never spells a word the output already holds
The R-55 property mapped renamed strings back anywhere in the output, so a
group renamed to `in` turned every firewall "direction": "in" into the
group's old name and failed about once in four runs (seed
8124609985917702487). The renaming now reserves every string the plans and
problems hold; the seed is kept as a fixed test, which fails without the
reservation. No change to the compiler.
2026-11-25 08:50:23 +01:00
mnovak 7087b06e24 [roads] rustfmt the QA tests and the fuzz targets (no change in behaviour) 2026-11-25 08:16:24 +01:00
mnovak d02bbff41c [roads] QA R-55: renaming every id gives an isomorphic plan, problems and explain
A proptest (300 seeds) renames every road id, person id, group id, device key,
device name and service hostname of the home store plus five roads that hit the
order-sensitive paths (an exit conflict each way round, two kill switches through
different exits, two path hints to one peer), compiles both, maps the output back
and compares plans, problems and explain.

Mutation-checked and reverted: 'first exit by key wins' on an exit conflict, and
'smallest road id wins' on disagreeing kill switches, each fail the property.
2026-11-25 08:07:15 +01:00