Files
via-core/HANDOVER.md
T

95 lines
6.2 KiB
Markdown

# Handover — via-core
Newest entry first. Where this file and the code disagree, the code wins and the next entry says so.
## 2026-11-26 — v0.1.0 (owner session)
**Released:** `v0.1.0`, an annotated tag on the `--no-ff` merge of PR #1 into `main`, plus a Gitea release. Mark
chose "Tag + Gitea release now"; Artifex signing comes later. **Not audited.**
**Since the 2026-11-25 entry:**
- `3b39ce1`, Mark's decision: a person or group grant leaves classic devices out. They are reached only by their own
`device:` road; test `a_person_grant_never_covers_their_classic_device`.
- The pipeline `linux` (`.fabrica/artifex/linux.yaml`) and a toolchain-only flake (`nix develop .#ci`, nixos-26.05)
for Fabrica's NixOS runner. The library is unchanged since `3b39ce1`.
**Counts:**
| Run | Where | Result |
|:--|:--|:--|
| `cargo test --workspace` (debug and release) | Windows 10, cargo 1.99.0, at `3b39ce1` | 91 passed / 0 / 0 each |
| `cargo test --workspace` (debug and release) | **Linux**: Fabrica `nixos-vm` runner, run `rpnb803g4v0t0`, at `63eaed5` | 182 passed / 0 / 0 in total (91 each); exit 0, 164 s. This closes QA F-11 |
| fuzz `road_file` | Windows, at `3b39ce1` | 601 s, 228,925 executions, 0 crashes (at 100 % CPU) |
| fuzz `envelope` | Windows, at `3b39ce1` | 601 s, 12,748,163 executions, 0 crashes |
| clippy, fmt, `cargo deny`, `cargo audit` | Windows, at `7342659` | clean |
**Still open (recorded, not fixed):** B-1, a replayable plan; Day 3 wraps every plan in a signed envelope with
`serial` and `expires`, in via's `crates/control`. F-12, case-sensitive ids. F-13, which blocks the Day 5 web view.
## 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` | **91 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` 10 · `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 |
| Mark | "Leave classic out" (2026-11-25): person and group grants cover only post-quantum devices; a classic device needs its own `device:` road with `classic: true`. Test `revocation.rs::a_person_grant_never_covers_their_classic_device`, mutation-checked |
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).