Skip to content

fix(privacy): redact hidden identities as hops in served packets (#1023 M2) - #1094

Draft
dborup wants to merge 3 commits into
masterfrom
feat/1023-m2-redact-hidden-hops
Draft

dborup wants to merge 3 commits into
masterfrom
feat/1023-m2-redact-hidden-hops

Conversation

@dborup

@dborup dborup commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Relates to #1023

Plan (M2 of #1023)

M1 (#1053) stopped serving a hidden identity's own ADVERT and ANON_REQ packets. M2 handles the packets that are still served: packets the hidden node relayed or sent. They stay, but the hidden node's full key, name and position must not appear in them.

The rule and the set are M1's (hiddenPredicate over the hiddenPK snapshot plus the live config's blacklists). There is no copy: a node blacklist, an observer blacklist, a hidden current name, or a newest advert with a hidden name all hide it. Hiding follows the identity's current state, so a node that is renamed back is named again after the next rebuild.

In served packets, the only field that carries a full key is resolved_path. Decoded payloads of the packets that stay hold only 1-byte hashes. On the server, names and positions come from /api/packets/{hash}/path and /api/resolve-hops.

What changes

  • cmd/server/hidden_hops.go (new): one helper on M1's predicate.
    • hidesKey(key) tests a key against hiddenPK and then the live config.
    • redactPath(rp) is copy-on-write. Resolved paths are shared with the LRU, so the slice is copied only when one of its hops is hidden.
    • hiddenHopPredicate() is nil when no key can be hidden.
  • resolved_path entries of a hidden key are served as null, the same as an unresolved hop. This applies to:
    • the list, flat and grouped (applyResolvedPathJobs, groupedPageWithRP), including expand=observations (the Live VCR);
    • the detail (also Live's replay);
    • batch observations, node health and observer analytics (enrichObsWithTx);
    • the grouped SQL fallback (QueryGroupedPackets, from M1's HiddenSenders keys);
    • the WebSocket: the frame and its nested packet. This is redacted in the poller after M1's per-poll refresh, so a hop hidden by an advert in the same poll is caught. The E2E showed that the WebSocket resolved_path is the server's own live hop resolution, not the stored one, so this was a real leak.
  • /api/packets/{hash}/path: a hidden hop is left out of points, the same as an unresolved hop, and the branch keeps its hops count. A visible hop with no position of its own is no longer placed at its hidden neighbour's position. It uses nearestVisiblePositionedNeighbor, which already existed (Analytics: the Areas tab counts hidden identities #1005).
  • /api/resolve-hops: candidates are filtered through the shared set, so the observer blacklist and M1's newest-advert name now count too. A hidden affinity pick is no longer returned as bestCandidate. Before this change it was set even after the hop had been rejected as hidden. Its confidence tier is not reported either.
  • Subpaths filter (M0 "existing filters with bugs"): this was already fixed on master by fix(analytics): apply identity visibility consistently to Route Patterns #410 (visibleSubpaths, copy-on-write, prefix-aware), after the M0 research. I made no change there; mutant M18 shows that its existing tests catch the bug.
  • Docs: config.example.json _comment_hiddenNamePrefixes, docs/user-guide/configuration.md (Hidden nodes) and docs/api-spec.md (GET /api/packets, Hidden identities).

The server stays read-only, since only SELECTs already present are used. No new map[string]interface{} is added outside tests: the WebSocket message is read through the existing jsonObject alias. No colours, frontend or workflows changed.

Perf

This is a hot path: packet serving and the WebSocket broadcast. Each served hop costs one map lookup on the lower-case stored key. strings.ToLower runs only for a key with upper case; it was 30 % of the cost before this change. There is no per-packet DB query. When no key can be hidden, the predicate is nil, so each path costs one pointer test and 0 allocations. When hops are hidden, only paths with a hidden hop are copied. TestHiddenHopsRedactAllocs enforces this.

The table shows go test -bench BenchmarkHiddenHops -benchtime 2s -count 5, each run on 30K packets from 2K nodes, 50 of them named 🚫 (M1's benchmark store). Values are medians.

Benchmark off (master path) prefix, nobody hidden 50 hidden
Redact30K: every one of 30K paths (1–8 hops) served once 36.2 µs, 0 allocs 37.3 µs, 2 allocs (constant) 4.16 ms, 1366 allocs (one per copied path)
Broadcast600: one poll batch at its cap (100 tx + 500 obs) 26.6 µs 26.3 µs 207 µs
  • In practice, a REST page serves 50 paths and a WebSocket poll at most 600, once a second. With 50 hidden identities that adds about 7 µs per page and about 0.2 ms per poll.
  • The 50-hidden row is the worst case here: about 2.5 % of hops are hidden, so many paths need a copy.
  • The off column runs the same code path as master: a nil predicate.

Tests (red before → green after)

  • 43d95527 is test-only on a compile-only stub that hides nothing. All TestHiddenHops1023_* tests fail there, except the nothing-hidden control, which passes by design.
  • 458c8301 makes them green and adds three tests: observer analytics, blacklist-before-rebuild and upper-case key. Each of the three is shown red by its mutant (M3, M12, M13).
  • E2E test-issue-1023-m2-hidden-hops-e2e.js (shard 2) runs on its own server with ports from 13900. It is red against a master binary (0/3) and green on this branch (3/3).

Each Go test runs for a hidden prefix, the node blacklist and the observer blacklist, with a visible control hop.

🤖 Generated with Claude Code

dborup and others added 3 commits December 2, 2026 15:49
…stub (#1023 M2)

Go tests for every path that serves a packet a hidden identity relayed or
sent: the list (flat, grouped, expand=observations for the VCR), the detail
(also Live's replay), POST /api/packets/observations, the WebSocket (new
transmission and new observation, top level and nested packet), the grouped
SQL fallback, /api/packets/{hash}/path (hop left out, no position borrowed
from a hidden neighbour) and resolve-hops (bestCandidate leak). Each runs
for a hidden prefix, the node blacklist and the observer blacklist, with a
visible control hop; a nothing-hidden control and a rename-back test guard
against tautologies.

hidden_hops.go is a compile-only stub that hides nothing, so these fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… M2)

Packets a hidden identity (M1's rule: node or observer blacklist, a hidden
current name, or a newest advert with one) relayed or sent stay served, but
its full key is no longer in them:

- resolved_path entries of a hidden key are served as null, like an
  unresolved hop: list, grouped (store and SQL fallback), expand (VCR),
  detail (also Live's replay), batch observations, node health, observer
  analytics and the WebSocket frame with its nested packet (redacted in the
  poller after M1's per-poll refresh, so a hop hidden by this poll's advert
  is caught too).
- /api/packets/{hash}/path leaves the hop out like an unresolved one (the
  branch keeps its hop count) and no longer estimates a visible hop's
  position from a hidden neighbour.
- resolve-hops uses the shared set for candidates and never reports a
  hidden affinity pick as bestCandidate (it did, after rejecting it).

One helper on M1's hiddenPredicate (hidesKey, redactPath), no new DB query
per packet: one map lookup per served hop, a nil predicate (one pointer
test) when no key can be hidden, and a copy only of a path with a hidden
hop (resolved paths are shared with the LRU).

Tests: per path for a hidden prefix, the node blacklist and the observer
blacklist with a visible control hop; a nothing-hidden control, rename
back, a blacklist set before the next rebuild, an upper-case key, copy on
write; an allocation guard and benchmarks; an E2E on Packets and Live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se (#1023 M2)

On the CI runner under -race, TestHiddenHopsRedactAllocs counted 1402
allocations for 1365 copied paths: AllocsPerRun counts every goroutine's
allocations. The bound gets a constant plus 10 % slack, still far below one
allocation per hop (about 4.5 per path), the regression it guards; the
nothing-hidden modes keep a small constant bound and the nil-predicate check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dborup

dborup commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Rapport — CS-MacBook PR#1094 #1023 — head 5108841

Status: M2 is code complete and CI is green on 5108841e; the PR is still a draft. Hidden identities no longer appear as hops in served packets (REST, detail, WebSocket, VCR/replay, path, resolve-hops), and the packets themselves are still served.

Evidence marks: [T] run in this session (test, benchmark, mutant, browser, CI); [K] read in the code; [A] assumption or choice.

Requirements → test → mutant

Each Go test runs for three modes: a hidden prefix (🚫), the node blacklist and the observer blacklist. Each one has a visible control hop.

"Red before" means the test fails on 43d95527 (tests plus a compile-only stub that hides nothing) [T]. Tests added in 458c8301 are shown red by their mutant instead [T].

Requirement Test Red before Mutant (killed [T])
REST list, flat and grouped TestHiddenHops1023_PacketList yes M2 grouped page without redaction; M15 predicate always nil; M17 redactRaw returns the raw value
VCR (expand=observations) …_PacketListExpandVCR yes M1 resolved-path jobs without redaction
Packet detail (also Live replay) …_PacketDetail (hop as relay and as sender) yes M1
Batch observations …_BatchObservations yes M1
Observer analytics recentPackets …_ObserverAnalytics via mutant M3 enrichObsWithTx without redaction
WebSocket: new tx, new obs, nested packet …_WebSocket yes M4 no redaction for tx; M5 no redaction for obs; M6 nested packet skipped
Grouped SQL fallback …_SQLFallbackGrouped yes M7
/api/packets/{hash}/path hop …_PacketPath yes M8 hop kept
Path: no position borrowed from a hidden neighbour …_PacketPathNoNeighbourPosition yes M9 estimate from any neighbour
resolve-hops bestCandidate leak …_ResolveHopsBestCandidate yes M10 hidden pick kept; M11 old candidate filter (misses the observer blacklist and the shared set)
Live config before rebuild …_BlacklistBeforeRebuild via mutant M12 no live-config fallback
Upper-case stored key …_UpperCaseHop via mutant M13 no case folding
Copy-on-write (LRU slices are shared) …_RedactCopyOnWrite yes M14 redact in place
Hiding follows current state …_RenameBack yes M15
Nothing-hidden control (no tautology) …_NothingHiddenControl green by design n/a
Perf: nil predicate and one copy per path TestHiddenHopsRedactAllocs n/a M16 predicate never nil
Subpaths filter (M0 "existing filters with bugs") existing TestRoutePatterns410_* already fixed on master by #410 (visibleSubpaths) [K]; no change M18 filter made a pass-through
E2E: Packets and Live test-issue-1023-m2-hidden-hops-e2e.js (shard 2) 0/3 against a master binary [T] 3/3 on the branch, locally and in CI [T]

All 18 mutants were killed. Method: apply one change, run the listed test, revert.

Perf [T]

Benchmarks run on 30K packets from 2K nodes, 50 of them hidden (medians, -count 5):

Benchmark Off (master path) Prefix configured, nobody hidden 50 hidden
Redact30K 36.2 µs, 0 allocs 37.3 µs, 2 allocs (constant) 4.16 ms, one alloc per copied path
Broadcast600 26.6 µs 26.3 µs 207 µs
  • Cost per hop is one map lookup with no per-packet DB query.
  • The first version spent 30 % of its time in strings.ToLower. I changed it to look the stored lower-case key up directly; the result is 7.6 → 4.2 ms.

Runs

Local [T]:

  • cd cmd/server && go test ./...: ok (134 s).
  • -race on the new and related tests: ok.
  • node test-frontend-helpers.js: 746/0.
  • sh test-all.sh: 408/408.
  • run-go-server-shard.js --validate: ok.
  • run-e2e-shard.js --validate: 319 suites.
  • check-xss-sinks.sh --diff origin/master: clean; no public changes.
  • Fork guards: 9 in deploy.yml and 1 in release-fast-path.yml, unchanged; no workflow diff.
  • New map[string]interface{} outside tests: 0. The WebSocket message is read through the existing jsonObject alias [A: disclosed choice].
  • Local server on port 13910 with the fixture prepared as in CI:
    • test-e2e-playwright.js: 156/159, 3 skipped.
    • test-e2e-532-route-hop-count.js: ok.
    • The server was stopped by its pid.

CI per job:

Job 458c8301 5108841e
Go Server 1/3, 2/3 success success
Go Server 3/3 failure success
Go Build & Test failure (aggregates Go Server 3/3) success
Go Ingestor, Go Libraries & CLI, JS Unit & Lint, Script & Container, Verify Go Test Assignments, Validate Docker Image success success
Playwright 1/3, 2/3, 3/3 cancelled (superseded) success (2/3 ran the new suite: 3/3)
Verify E2E Shards & Coverage, Build & Publish Docker Image cancelled success
Release Artifacts, Deploy Staging, Publish Badges skipped skipped

The Go Server 3/3 failure on 458c8301 came from two allocation tests under -race:

  • TestHiddenHopsRedactAllocs: 1402 allocs for 1365 copied paths.
  • M1's TestHiddenFilterPacketsNoExtraAllocs: 29 against 25 + 3.

Neither failure reproduced locally under -race, and the fixtures leak no goroutines after cleanup [T]. AllocsPerRun counts allocations on every goroutine, so the counts are noise from a busy runner. 5108841e gives my test a constant plus 10 % slack, which is still far below one allocation per hop. M1's test was left unchanged; it passed on 5108841e. This was not #271, and no job was re-run.

Choices and remaining work

  • "Sender": a packet that stays carries only 1-byte hashes (srcHash). The only full key is in resolved_path, so "hidden as sender" is tested as a TXT_MSG from the hidden node whose path names it [K].
  • New leak found: the WebSocket resolved_path is the server's own live hop resolution, not the stored one. The E2E showed it resolving prefixes to fixture nodes, so this was a real leak; the redaction catches it.
  • Still open (M3/M4):
    • aggregate and analytics views;
    • the observer name of a hidden observer on packets it heard;
    • GRP_TXT sender, which is chat text and not an identity.
  • Browser check: covered by the E2E screenshots (desktop only). No phone flow was added; no UI changed [A].

@dborup

dborup commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Review — CS-VM2 PR#1094 — head 5108841

Dom: REQUEST CHANGES

Summary: The redaction itself is correct, copy-on-write and cheap. List, grouped, VCR, detail, batch observations, observer analytics, SQL fallback, WebSocket, /path and resolve-hops are all clean in my own probes. The non-hidden control is unchanged.

One leak in M2's own scope remains: the server-made ping-bot reply on the Channels page names a hidden relay of a packet that stays served. It reads via 🚫E2E Hidden Relay → …, and it gives the full key when the relay has no name. I reproduced it in all three hiding modes and on a phone. The PR description and the new docs say the opposite ("not named in them"). The fix is small: run the same predicate over the bot reply's resolvedPath, and add one test.

Evidence marks: [T] run by me in this review; [K] read in the code; [A] assumption or judgement.

Trees:

  • Head 5108841e (git ls-remote showed the same sha before and after the review).
  • Merged tree git merge-tree origin/master 5108841e = 276fbe68, against master b7db1738. The base equals that master, so the merged tree is identical to the head tree.
  • Master moved to 635e674c during the review. The merge is still clean, and I re-ran the hidden-identity tests on that merge (see Tests).

Findings

# Severity Finding Evidence
1 High (blocking) The ping-bot reply names a hidden relay. GET /api/channels/{hash}/messages builds botReply.text ("🏓 pong! 2 hops (via A → B) …") from the stored resolved_path: db.go GetChannelMessages → namesAndRolesForPubkeys, an unfiltered nodes lookup. It falls back to the full pubkey when a key has no name. This is the primary route: it prefers the DB whenever one is open. No hidden-hop predicate is applied, so a 🚫, blacklisted or observer-blacklisted relay is named on the Channels page. This is exactly "hidden identity as a hop in a packet that stays served" (issue proposal item 2; M2 in the M0 plan). It is not in the M0 inventory, so it is new, not a deferral. It also contradicts the new config.example.json, configuration.md and api-spec.md text. [T] probe TestReviewProbe_PingBotReply: red in prefix, blacklist and obs-blacklist. Text per mode: prefix "via 🚫HideMe → TestRepeater", the blacklists "via HideMe → TestRepeater". [T] phone flow 375×560 and 360×640, light and dark: the bubble reads "pong! 2 hops (via 🚫E2E Hidden Relay → E2E Visible Relay)", while the Packets detail of the same packet correctly shows 1a → E2E Visible Relay. [K] channels.js renders msg.botReply.text.
2 Medium (fix here or track explicitly) /api/packets?node=<hidden key> still lists the packets the hidden key relayed or sent. It goes through the byNode / resolved-pubkey index. Each payload now has the hop as null, but the query itself re-links them: anyone who knows the (old) key can list the hidden node's relay activity. This is pre-existing [K: code unchanged by the PR], but it is the same "hidden as hop" data through a different door. Suggest: a hidden node/nodes key answers with an empty list, as M1's detail answers 404. [T] probe TestReviewProbe_NodeQueryByHiddenKey: red in all three modes (returns b2d0000000000002).
3 Low (disclosed in part; track for M3/M4) A hidden node that is also an observer (observer id = its pubkey) is served on /api/packets/{hash}/path as observer with its full key and its exact nodes position (positionSource: real). It is also served as observer_id in the list. The author's report defers only "the observer name of a hidden observer"; the position on /path goes further than the name. The share card's own filterPingScorePath already drops such a branch [K], so /path and the share card now disagree. [T] probes TestReviewProbe_HiddenObserverOnPath and …InList: red in all three modes ("lat":55.6137,"lon":12.5338 for observer "Relay Obs").
4 Low (test gap) The same-poll ordering in the WebSocket poller is correct but not pinned. The description says the hop predicate is taken after M1's per-poll refresh, so a node renamed to 🚫 by an advert in the same poll is caught. My mutant MU3 takes the predicate before the refresh. It survives the PR's whole suite and is killed only by my probe TestReviewProbe_WSSamePollRename: a 🚫 advert and a packet relayed by that node in one tick. Please add that test. [T] mutant run, below.
5 Nit (M3 wording) /api/nodes/{pk}/paths still names, keys and positions a hidden intermediate hop. This is planned for M3 (M0 inventory). The new docs say "it can still be named in some analytics views", but this is a node page section, not analytics. Suggest "in some node and analytics views". [T] probe TestReviewProbe_NeighborsAndPaths: /paths red. /neighbors and resolve-hops?hops=c0 are clean.
6 Nit (perf) enrichObsWithTx calls s.hiddenHopPredicate() per observation, and with hiding configured that allocates one predicate each time. Batch observations can enrich up to 200 hashes × N observations. Hoisting it per request, as applyResolvedPathJobs does, is free. [K] store.go enrichObsWithTx.

Answers to the review points

Leak hunt (privacy), with every probe run in prefix, blacklist and obs-blacklist mode:

Path Result
/api/packets flat, grouped, expand=observations (VCR) clean [T] (PR tests + mutants); hop null, visible hop kept
/api/packets/{hash} detail (Live replay reads it) clean [T]; the DB fallback has no resolved_path column [K]
POST /api/packets/observations, node health, observer analytics recentPackets clean [T]/[K] (enrichObsWithTx)
Grouped SQL fallback (no store, and the store's since-before-oldest fallback) clean [T]; the flat SQL fallback serves no resolved_path [K]
WebSocket frame and nested packet (store poller) clean [T]; the same-poll rename is also clean [T: my probe]
WebSocket no-store fallback (pollDB) carries no resolved_path [K]
Hex breakdown client-side from raw_hex; the path bytes are only 1-byte hashes [K]
/api/packets/{hash}/path hop points and neighbour estimate clean [T]
/api/packets/{hash}/path observer leaks when the hidden node is the observer (finding 3) [T]
/api/resolve-hops candidates and bestCandidate clean [T]; the old bestCandidate leak is fixed (red on the stub) [T]
Subpaths filter already visibleSubpaths on master (#410) [K]; not re-tested by me
Node neighbours /api/nodes/{pk}/neighbors clean [T]
Node paths leaks (M3, finding 5) [T]
Packet share / OG card (/p?packet=) not changed by the PR; uses filterPingScorePath, which removes a branch through a hidden hop or observer whole [K]; not run by me
Channels ping-bot reply leaks (finding 1) [T]
?node=<hidden key> re-links (finding 2) [T]

Non-hidden control [T]:

  • TestHiddenHops1023_NothingHiddenControl passes on the stub, so it is not a tautology.
  • In my phone flow the visible relay is still named on Packets.
  • The none mode of the ping-bot probe names both relays, as before.

Option (b) and M1 consistency [K]:

  • The rule is M1's hiddenPK snapshot plus the live config's blacklists, with no copy.
  • Hiding follows the current state: RenameBack was red on the stub and is green now [T].

Read-only and maps [K]:

  • No write and no new SQL statement in cmd/server.
  • 0 new map[string]interface{} outside tests. redactRaw returns interface{} (not a map), and the WebSocket message is read through the existing jsonObject alias. Acceptable [A].

Behaviour beyond the purpose [K]:

  • resolve-hops: a hidden affinity pick now also leaves the default name/pubkey and the confidence tier. This is intended and documented.
  • /path no longer borrows a hidden neighbour's position for a visible hop. This is intended.
  • Nothing else changes.

Docs: they are accurate except for finding 1 ("not named in them") and the wording in finding 5.

Hygiene [T]:

Perf (hot path)

All numbers are [T], -count 5, medians. This test machine is slow: it is about 28× slower than the author's figures in absolute terms, so compare ratios.

Benchmark off (master path) prefix, nobody hidden 50 hidden
HiddenHopsRedact30K 1.03 ms, 0 allocs 1.05 ms, 2 allocs 125 ms, 1366 allocs (one per copied path)
HiddenHopsBroadcast600 817 µs 777 µs 7.2 ms
  • The ratios match the author's: Redact 121× here vs 115× there, Broadcast 8.8× vs 7.8×.
  • The nil predicate costs nothing measurable.
  • Per hop it is one map lookup plus identityHidden (two empty or small set lookups). There is no per-packet DB query [K].

Master vs merged, same machine, interleaved:

Benchmark master merged
HiddenFilterPackets30K off / none / 50 9.25 / 8.58 / 8.08 ms 7.79 / 6.99 / 8.98 ms
HiddenBroadcast30K 50 hidden 986 µs 729 µs
IngestNewObservations_158 4.81 ms 4.70 ms
IngestNewFromDB_158 36.3 ms 37.8 ms
GroupedPackets165 (2 interleaved runs) 1.85 / 2.20 s 2.10 / 2.04 s; identical payload bytes

All of this is within noise: no regression.

At realistic scale, the REST page serves 50 paths and the WebSocket poll is capped at 600 messages per second. With 50 hidden identities that is about 7 ms per poll on this slow test machine, and about 0.2 ms on the author's machine. This is acceptable [A].

Tests and mutants

Red before → green after [T]: on 43d95527 (test-only plus stub), all 12 TestHiddenHops1023_* fail and NothingHiddenControl passes. All are green on the head.

Every issue acceptance item has a red→green test, with one exception: finding 1's path. The issue's own acceptance says "no API response … contains a hidden node's … name", so that path needs a test too.

Own mutants: each was applied to the merged tree, run against TestHiddenHops1023|TestHiddenHopsRedactAllocs plus my same-poll probe, and then reverted. The baseline was green.

Mutant Result
MU1 hop predicate only built for blacklists (prefix-hidden keys ignored) killed (all prefix subtests)
MU2 redactPath off-by-one: the first hidden hop kept killed (all modes)
MU3 WebSocket hop predicate taken before refreshHiddenIdentities killed only by my probe; survives the PR suite (finding 4)
MU4 resolved-path jobs redact the transmission path only, not observations killed (detail, VCR, batch observations)

Suites:

cd cmd/server && go test ./... on the merged tree [T]: FAIL only on perf budgets.

  • Five of them also fail on master on this test machine, same run conditions: TestAdvertIntervalAnalytics_AggregatePerf, TestDagiAreaStatsWithinBudget, TestProfileCard_Cost, TestCoverage941M2_PerfBudget, TestCoverage941_PerfBudget.
  • TestDagiPacketsFilterNoSlowerThanArea failed once in the full run (merged only). It passes 5/5 in isolation on both trees, so it is load noise.
  • Every hidden-identity test passes. TestGraphScore629_GoldenBitIdentical passes (no failure on amd64).
  • The first attempt hit the default 10-minute timeout while my probe builds ran in parallel. Rerun with -timeout 60m, about 28 min per tree.

On the merge with the new master 635e674c (tree a2d8558a; #1099 changed the M1 bench helpers that the PR's alloc test uses) [T]: go vet is clean, and go test -run 'Hidden' (every TestHiddenHops1023_*, TestHiddenHopsRedactAllocs and M1's hidden-identity tests) passes.

  • node test-frontend-helpers.js: 746 passed, 0 failed [T].
  • sh test-all.sh [T] in a git clone of the head, identical tree to the merged one: 398 passed, 10 failed. Master: 399 passed, 9 failed.
    • The nine shared failures are perf budgets and timing on this test machine.
    • The extra one on head is test-live-follow.js "best of 7 < 60 ms". It fails 3/3 on master too in isolation (65–95 ms). The PR has no JS changes.
    • A first run in a non-git archive also failed test-issue-628-vendor-gitattributes.js (needs git), so it is environmental.
  • node scripts/run-go-server-shard.js --validate: ok (4126 entries) [T].
  • node scripts/run-e2e-shard.js --validate: ok (319 suites) [T].

E2E [T], local Go server and fixture prepared as in CI: freshen, CI seed SQL, corescope-migrate, seeds 2073 and 199.

  • test-issue-1023-m2-hidden-hops-e2e.js: 3/3 on the head binary, 0/3 on a master binary.
  • test-e2e-playwright.js on a fresh head server: 156/159, 3 skipped. That is the same as master on a fresh server.
    • Two earlier head runs on a server reused across suites stopped fail-fast on Scope Audit timeouts (two different tests, 10 s waits, an area the PR does not touch). On a fresh server it is green.
  • test-e2e-532-route-hop-count.js: ok.
  • Servers were stopped by port (fuser -k) or child pid.

Phone flow [T]:

  • Setup: cold start on #/home at 375×560 and 360×640, touch, light and dark, real taps on the visible bottom navigation.
  • Packets: tap Packets, then the relayed packet row, then the detail. The detail shows 1a → E2E Visible Relay, and the page has no hidden key, short key, name or position.
  • Channels: tap Channels, then #test. The bot reply names the hidden relay (finding 1).
  • No step was impossible. A first-visit tip toast overlaps the action row until "Got it"; that is pre-existing and not related to this PR.

CI per job (from the coordinator's snapshot) on 5108841e: all success.

  • Go Build & Test; Go Ingestor; Go Libraries & CLI; Go Server 1/3, 2/3, 3/3; JS Unit & Lint; Script & Container; Playwright 1/3, 2/3, 3/3.
  • Verify E2E Shards & Coverage; Verify Go Test Assignments; Validate Docker Image; Build & Publish Docker Image.
  • Publish Badges, Release Artifacts and Deploy Staging were skipped.

What I did not verify

  • The share/OG card (/p?packet=) and /api/packets/{hash}/card.png were not run with a hidden relay ([K] only).
  • The subpaths filter was not re-tested (fix(analytics): apply identity visibility consistently to Route Patterns #410's own tests were not run in isolation).
  • -race was not run.
  • Audio-lab buckets were not probed for hops.
  • Live's client-side HopResolver keeping nodes after leaving Live (M4) was not checked.
  • The store's own GetChannelMessages (used only when no DB is open) was not probed. It is not the served route [K].

Requested changes

  1. Apply s.hiddenHops() / redactPath to the bot reply's resolvedPath before naming. A redacted hop should show its raw prefix or "unknown", consistent with the Packets page. Add TestHiddenHops1023_ChannelPingBotReply for the three modes, red before and green after.
  2. Add the same-poll WebSocket test (finding 4).
  3. Decide on findings 2 and 3: fix them here, or name them explicitly in the issue as M3/M4 items, and adjust the doc wording (finding 5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant