Day 2: roads, the compiler, explain, CBOR control messages, the via command #1

Merged
mnovak merged 25 commits from feature/roads into main 2026-11-26 05:24:39 +01:00
Showing only changes of commit 18e0c50e08 - Show all commits
+69
View File
@@ -0,0 +1,69 @@
# Handover — via-core
Newest entry first. Where this file and the code disagree, the code wins and the next entry says so.
## 2026-11-25 — QA findings fixed on `feature/roads` (owner session)
**Who owns this:** the Via owner session. It reviews, merges `--no-ff` and tags `v0.1.0`. Mark's decisions
go through the orchestrator session.
**Where it stands:** PR #1 (`feature/roads`) is open, not merged, not tagged. QA's review (head `635d380`)
found one blocker and five majors in the model; all are fixed on the branch, one commit each, each removing
the `#[ignore]` of its finding's test in `tests/qa_findings.rs`. `main` still holds only the bootstrap.
**Build described:** Windows 10, `cargo 1.99.0` / `rustc 1.99.0` stable MSVC, debug profile, at the branch
head named in the PR.
| Run | Result |
|:--|:--|
| `cargo test --workspace` | **90 passed, 0 failed, 0 ignored** (debug and `--release`) |
| `cargo clippy --workspace --all-targets -- -D warnings` | clean |
| `cargo fmt --all --check` | clean |
| `cargo deny check` | advisories ok, bans ok, licenses ok, sources ok |
| `cargo audit` | 80 crates, 0 vulnerabilities |
| fuzz `road_file` | **631 s, 807,395 executions, 0 crashes, 0 artifacts** (features 7,711 → 9,819; corpus 1,080 → 1,289), built at `7342659`, Windows MSVC, SanitizerCoverage, no sanitizer |
| fuzz `envelope` | **331 s, 17,441,113 executions, 0 crashes** (features 5,096 → 5,256), same build |
Per file: `proto/roundtrip` 6 · `roads` unit 16 · `attacks` 8 · `custom` 6 · `determinism` 4 · `explain` 6 ·
`least_privilege` 6 (P-1 5,000 cases: 1,706 with rules, 4,420 rules and 7,784 allowed IPs checked against the
oracle; P-6v6 1,000) · `qa_findings` 13 · `rename` 4 · `revocation` 9 · `validation` 5 (83 fixture files, 65
rules) · `via-cli/cli` 7.
**What changed after QA** (details in `docs/02_via-core.md`, "QA review of PR #1"):
| # | Change |
|:--|:--|
| F-01 | services may have their own mesh address (`devices.json` `services[].address`); a road to a service that shares its address and a port with another is `service.shared`; plans list the device's service addresses (`services[]`); a `device:` road reaches all of the device's addresses |
| F-02 | `direct.mesh`, `direct.tunnelled`, and `direct[].except` (tunnelled nets that stay in the tunnel) |
| F-03 | a kill-switch road with an error fails closed, through no exit |
| F-04 | a dangling owner or group member is reported and drops only itself (`devices.owner-unknown`, `directory.member-unknown`) |
| F-05 | custom blocks on a classic device are labelled classic |
| F-06 | cross-family roads give nothing to those devices and are reported (`road.family`) |
| F-07 | no `roads/`, or a `roads/` that is a file or a link, is `store.roads` |
| F-08 | mesh addresses are never internet addresses |
| F-09 | `until:` / `ports:` present but empty is `key.empty` |
| F-10 | P-6v6: IPv6 compiles like IPv4, by embedding into `fd00::/96` |
| B-3 | `app:` roads need `on:` (person, group or device) and reach only those devices |
| R-55 | QA's renaming property was flaky (a group renamed to `in`); fixed in the test, seed pinned |
The plan format gained `services` and `direct[].except`. Format 1 has not been released, so it changed in
place; the golden plans and the pinned CBOR digest were regenerated and the diff read by hand.
**Not fixed, recorded** (`docs/02_via-core.md`, Gaps):
- **B-1** proto v1 has no serial: Day 3's signed v2 carries a monotonic serial and `not_after`.
- **F-13** `explain` and `check` answer as an administrator: **blocks the Day 5 web view**.
- **F-12** ids are case-sensitive: decide with the people directory.
- **F-11** never run on Linux (WSL does not start on this PC): wanted before the tag.
- A kill-switch file that does not *parse* applies nothing (only reported).
**Decisions taken here that Mark may want to see:** services get their own mesh address (no Ianitor identity
check needed); `except` makes the tunnel win over going direct; app roads need `on:`.
**Next:** merge `--no-ff` into `main`, push, `git rev-parse HEAD origin/main` twice, tag `v0.1.0`, per
`F:\Akce\Via\handover\MERGE-PLAN.md`, once the Linux question (F-11) and the signed-release question are answered.
## 2026-11-25 — Day 2 built (builder), reviewed (QA)
The road model, validator, compiler, `explain`, the versioned CBOR control messages and the `via` command:
72 tests by the builder; QA added the renaming property, nine finding tests and two fuzz targets
(`road_file` 721 s, 1,116,471 executions; `envelope` 331 s; no crash; Windows, no sanitizer).