English
Configuration format
Divergences in how the notation is read, not in functions. Deliberate format decisions are in design.md.
Accepted silently
| What | Status | Where | Verdict |
|---|---|---|---|
route.override_android_vpn | silent: a warning | crates/native-config/src/rules.rs (route) | platform |
Checked late
| What | Status | Where | Verdict |
|---|---|---|---|
The default of a manual group that is not in members | different: an error at build time (group `x`: default `y` is not a member) with the group's position (ours_native_config::place), not at load time | modules/routing/group/src/lib.rs (Group::new); crates/native-config/src/entity.rs (chosen_by_default) checks only that the name exists | missing: check in the loader with a position |
| An empty group | different: group `x`: `members` is empty at build time, with the group's position | modules/routing/group/src/lib.rs (tags) | rarely needed: a load error |
block: reply in route | present: passes loading; for every connection — an error in the log and closing without RST. The reference does the same (route/route.go): reply makes sense only for ICMP through TUN | modules/system/dispatch/src/lib.rs (reject_stream) | junk: ICMP through our tun is answered by the stack, the rules do not see it; could refuse at load time |
Error messages
Some messages do not speak in YAML terms:
| Message | Where it arises | What is wrong |
|---|---|---|
parse rule[0]: …, parse dns rule[0]: … | modules/routing/router/src/lib.rs, dns.rs | check and run print the rule's position and rule: … (ours_native_config::place by Origin); the Admin API and reload give the index |
`http_client` and `download_detour` name two ways to download | modules/routing/router/src/remote.rs | Our field is called via |
Command line
| What | Status | Where | Verdict |
|---|---|---|---|
Several -c / -C | different: one configuration — one configuration: give `-c` or `-C` once; a -C directory with one YAML; no merging | app/ours/src/main.rs (parse_args, native_options) | — (one file is the design) |
merge | no | — | — (one file is the design) |
--disable-color | no: unknown flag: --disable-color | app/ours/src/cli.rs (Flags::parse) | junk: colour follows the terminal |
format | different: the YAML is not rebuilt — only spaces and empty lines are fixed, comments and indentation stay | app/ours/src/format.rs | — (libs/yaml has no writer and no tree with comments) |
Schema
ours schema describes keys but not values: leaf fields have empty schemas (crates/native-config/src/schema.rs). Types, enumerations and references are checked only by the loader. Verdict: missing — types from the derive macro's field tables.