Commit Graph

6 Commits

Author SHA1 Message Date
mnovak 828962a9e9 [roads] QA review of PR #1: one failing test per open finding, ignored until fixed
Eight tests, each #[ignore]d with its finding id (F-01 to F-08 in
Via/qa/review-via-core-pr1.md), each verified to FAIL on this code for the reason
it names (cargo test -p roads --test qa_findings -- --ignored: 0 passed, 8 failed):

F-01 a service road opens every service on the same host and port (explain admits it)
F-02 goes-direct may name mesh addresses or tunnelled subnets, kill switch or not
F-03 a kill switch whose exit stops being one fails open
F-04 deleting a person from directory.json leaves no plan for anybody
F-05 a custom block on a classic device is labelled classic: false
F-06 a road across address families compiles into a rule that never matches
F-07 a missing roads/ folder is not reported
F-08 a public address is accepted as a mesh address
2026-11-25 08:15:53 +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
mnovak b9c0e764e6 [docs] Day 2 as built: QA's attack plan answered case by case, the property design, gaps and open questions 2026-11-25 07:55:38 +01:00
mnovak 38a2fea043 [roads] The road model, validator, compiler and explain; proto's versioned CBOR messages; the via command
Road files in Pensum's strict header subset (unknown keys are errors, random ids), the
directory and device snapshots, deny-by-default compilation to one plan per device,
explain from the compiler's own grants, CBOR envelope v1 with version-first refusals.

Tests: the six mandatory ones (validation fixtures for every rule, revocation, the
least-privilege property against an independent oracle, determinism with golden plans,
explain, custom round-trip), QA's attack cases, the protocol and the CLI.
2026-11-25 07:55:38 +01:00
mnovak f134ec652c [docs] Day 2 design: the road model, the compiler, the id formats found, risks and gaps; FORMATS.md field by field 2026-11-25 07:23:50 +01:00
mnovak eff61e7991 [repo] Bootstrap: CPAL-1.0 licence as in CustosPublic, CLAUDE.md, README, ignore and attributes 2026-11-25 07:20:10 +01:00