[roads] QA F-09: a present but empty until: or ports: is key.empty, never absent

Clearing a narrowing field (until:, until: # comment, ports:) used to read as
absent, which is the widest value: a permanent grant or all traffic. It is now
an error, so the road grants nothing. Three fixtures, FORMATS.md updated, and
the F-09 test is no longer ignored.
This commit is contained in:
2026-11-25 08:40:01 +01:00
parent 635d3802c1
commit 93ab087648
8 changed files with 52 additions and 3 deletions
+4 -2
View File
@@ -39,7 +39,7 @@ The same strict subset of YAML as Pensum's tickets (Fabrica `core/docs/FORMATS.m
| a single-quoted string, `''` for a quote | `subject: 'person:jana'` |
| a flow list of scalars | `ports: [tcp/443, udp/53]` |
| a block list of scalars, indented under its key | `ports:` then ` - tcp/443` |
| an empty value, meaning *absent* | `until:` |
| an empty value, meaning *absent*; for `until` and `ports` it is an error (`key.empty`) | `via:` |
| comment lines, blank lines, a trailing ` # comment` after a plain value or list | `# moved from the router` |
Refused, each with an error naming the file, the line and the field (`yaml.refused`): anchors (`&a`), aliases
@@ -63,7 +63,9 @@ is not `key: value`, or a bad quoted string, is `yaml.syntax`.
Any other key is `key.unknown`. A key that the verb does not take is `key.forbidden`. A list where a single value
belongs, or a single value where a list belongs, is `key.type`. A required key that is missing or empty is
`key.missing`.
`key.missing`. `until` and `ports` narrow a road, and absent is their widest value (no end, all traffic), so
either key present with an empty value (`until:`, `until: # Sunday`, `ports:`) is `key.empty`: clearing a field
never widens a road (QA F-09). `ports: []` is `ports.format`.
### References