Repository navigation
Description
What's the problem
Nothing in the repo lists the box's outbound paths in machine-readable form. The 2026-11-15/16 egress inventory counted 49 paths (pithead#4145) but none are committed, so docs and tests are written by hand and drift. The log-only firewall (sibling chunk), #4153 (proof gate) and #4156 (docs) all need one single input.
What it impacts
Every consumer of the egress story: the generated log-only ruleset, the proof gate, the docs, and #4155 Run 0. Today each writes its own copy of the truth.
How I found it
Split from pithead#4145 (acceptance criterion: "the egress map … is committed as a data file in the repo"). Code read confirms outbound callers: lib/pithead/02-tor-egress.sh rules, lib/pithead/02b-lan-guard.sh, os/overlay/pithead-firstboot.service and pithead-setup-again.service calling htpdate -s www.debian.org.
How important is it
High and first: it is the single input the sibling chunks and #4153/#4156 consume, and it changes no behaviour.
Acceptance criteria
- A data file (suggested
data/egress-map.tsv) is committed with one row per outbound path and columns: role, destination, today, target, route, enforcer, test. - Rows cover both roles (Pithead appliance and RigForge rig) and are trimmed to what the code confirms — the 49-path inventory is the starting point, not the authority; state unknowns as unknown in the row rather than dropping or inventing.
- A tier-1 test (suggested
tests/stack/test-egress-map.sh) registered where tier-1 CI runs stack tests asserts: exact header, no empty mandatory cells, role values from a fixed set, at least one row per role, and anchor rows exist for the code-confirmed paths (tor egress, LAN guard, htpdate time sync, pool stratum, image/registry pulls). - No product behaviour changes; no existing docs or tests are rewritten in this chunk.
Possible solutions
- TSV over JSON for greppability and diff friendliness.
- Seed rows from the inventory, then delete every row you cannot point at in code (rg -nw the destination), recording the check in the commit message.
Parent: #4145
Worker brief: Test tier: tiers 1-3 (GitHub) only — this chunk touches no box path, so tiers 1-3 are the proof; say so in the PR body. Read CLAUDE.md, CONTRIBUTING.md and docs/dev/repo-map.md, testing-strategy.md first. Create data/egress-map.tsv (columns role, destination, today, target, route, enforcer, test) and a tier-1 tests/stack/test-egress-map.sh shape+anchors test, registered where CI runs tests/stack (never sourced). Seed from the pithead#4145 inventory comment, keep only rows confirmed in code: lib/pithead/02-tor-egress.sh, 02b-lan-guard.sh, os/overlay/pithead-firstboot.service and pithead-setup-again.service (htpdate -s www.debian.org), plus pool/registry pulls you can name in code. Both roles (appliance, rig) must appear. The test must fail without the file (missing file or bad header). No comments in code; no behaviour change; PR is a draft with Closes on the child issue.
Activity
pithead-developer commentedon Nov 20, 2026
Merged in #4266.