Skip to content

feat(analytics): a Location view in Scope Audit, info only (#1035 M3) - #1107

Draft
dborup wants to merge 7 commits into
masterfrom
feat/1035-m3-location-view
Draft

dborup wants to merge 7 commits into
masterfrom
feat/1035-m3-location-view

Conversation

@dborup

@dborup dborup commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Relates to #1035

What

#1035 M3: a "Location" view in Scope Audit. It lists every repeater and room with an advertised position in Denmark. For each one it shows the scopes meshguide.dk recommends where it stands, next to the scopes the node has: its observed default scope and, when an observer reported it, its configured list.

It is information only. Every category is neutral, nothing is marked as wrong, and the intro says that an operator may have good reasons for scopes that differ from the recommendation. A scope this instance cannot name is shown as "cannot be decoded".

  • Deep link: #/analytics?tab=scopes&sub=audit&sav=location. This is the existing Scope Audit pattern (sav= already selects Declarations or Transport). The filter and sort are kept in the URL too: slf=, sls=.
  • Filters (client-side):
    • All
    • Default scope not in the list for here
    • Default scope cannot be decoded
    • No scoped flood advert
    • Configured list reported
    • Configured list without dk
    • List has names meshguide.dk does not have
  • Sort and search: sort by postnummer (the server's order) or by name (Danish collation). Search matches name, key, postnummer, place and scope names.
  • Summary: counts per category, plus the repeaters and rooms that are not listed (a position outside Denmark, or no position). It also shows the meshguide.dk link, the vendored commit and the DAGI credit.
  • Layout: desktop is a table. At ≤640 px each row becomes a card (the Transport view's existing card layout). Chips reuse the node page's (M2) classes. Colours come only from theme variables.

Plan (milestone M3 of the M0 plan, owner decisions of 2026-12-02)

Server

GET /api/scope-check (cmd/server/scope_check_list.go):

  • Each row is the same NodeScopeCheck the node page's GET /api/nodes/{pubkey}/scope-check (feat(nodes): recommended scopes for where the node stands, info only (#1035 M2) #1106, M2) answers for that node, plus name and role. Both endpoints are built by one helper, nodeScopeVerdict, which is M2's buildNodeScopeCheck split in two. M2's JSON is unchanged.
  • The row read is shared too: nodeScopeSelect / nodeScopeScan.row() type the scope columns once, for both the single-node read and the bulk read.
  • The endpoint is generic (no view-specific shape), so other callers can use it.

Stacking on M2

This branch is feat/1035-m2-node-page (517391d, M2) plus one commit (316fe77). It targets master, because CI only runs for PRs into master. Until #1106 merges, the diff includes M2. My own change is the last commit.

Visibility

  • Public by default, like Scope Audit.
  • scopeCheck.publicList: false serves the list only with the API key (X-API-Key, the same strong-key check as requireAPIKey). Without the key the view says "The operator keeps this list private."
  • The node page's check is not affected.
  • The key is read from its canonical form only (Config: feature gates and the base-map token must only accept canonical key spellings #884). It is documented in config.example.json and OpenAPI.

Other rules

  • Roles: only repeaters and rooms are listed. Companions and sensors are never listed.
  • Hidden identities: hidden and blacklisted nodes are dropped at every serve, cache hits included (as in /api/scope-audit). They are also left out of the counts.
  • Gate: the endpoint is behind dagi.enabled, like every DAGI feature.

Performance

  • Cost per build: one bulk read of the node scope columns (WHERE role IN ('repeater','room')). Then, for each repeater or room with a position, one DAGI point lookup and M1's Recommend + Compare. That is O(positioned repeaters + rooms). There is nothing per packet and nothing in the ingest or WebSocket path.
  • Caching: results are cached like Scope Audit (scopeAuditCache: 30 s TTL, singleflight, one key). A request inside the TTL does no rebuild. Filtering, sorting and search run in the browser on the one answer, so there is no request per filter or per node.
  • Measured (M-series Mac, 5,000 rows, about 6× the live network's positioned repeaters and rooms): buildScopeCheckList takes about 10 ms. TestScopeCheckListBuildBudget asserts < 100 ms outside -race. BenchmarkScopeCheckList: 9.6 ms/op, 5.2 MB/op, 28k allocs/op at 5,000 rows; BenchmarkNodeScopeCheck (one row): 1.25 µs/op.
  • Rendering: the frontend keeps Scope Audit's bounded keyed row diff (50 rows per page). There is no innerHTML.

Tests

  • Go (cmd/server/scope_check_list_test.go):
    • population: hidden, blacklisted, companion, outside and positionless nodes
    • every row equals the node endpoint's answer
    • the M0 findings as fixtures: #dk2100 in Frederiksberg, #dk-sjl in Aarhus, a list without dk and with europa, #dk-fyn in Odense, and an undecodable default
    • exact summary counts, order, cache with hidden-on-hit, the publicList switch, the canonical config key, the DAGI gate, a pre-scope schema, no interface maps, and the budget and benchmark
  • Frontend (test-scope-audit.js): state from the hash (whitelisted), hash writing, each filter, search, the name sort, mount with one /scope-check request, filter change without a request, text-only rendering of markup, the https-only source link, neutral wording, and the 403 message.
  • E2E (test-issue-1035-m3-location-view-e2e.js, new suite in scripts/e2e-shards.json): runs on its own Go server with test-fixtures/seed-1035-m3-location-nodes.sql.
    • 1280×900, light and dark
    • filters, sort and search deep-linked and restored on reload
    • the Location button
    • 375×560 touch, light and dark, with a real tap: cards inside the screen, no sideways scroll

Config / customizer (rule 8)

scopeCheck.publicList is new. The constants M1/M2 already list for M4 are unchanged: report max age, meshguide link and roles.

🤖 Generated with Claude Code

dborup and others added 5 commits December 3, 2026 04:35
…1035 M2)

GET /api/nodes/{pubkey}/scope-check sets a repeater's or room's own
scopes next to what meshguide.dk recommends for its advertised position,
through M1's engine (internal/scopeguide Recommend + Compare, unchanged):
one typed node-row read by primary key, one DAGI point lookup on the
in-memory index, a named response struct. 404 for unknown, hidden or
blacklisted nodes and while dagi.enabled is off.

The full node page shows it as "Recommended scopes here (meshguide.dk)"
(public/node-scope-check.js, textContent only): the recommended chips,
the node's default scope ("cannot be decoded" for an unnamed one) and the
observer-reported list in neutral wording, a meshguide.dk link, nothing for
companions or nodes without a position. ?section=node-scope-check deep
links to it. The page renders twice on a cold load, so the module reuses
the last answer for a minute: one request per node view.

Relates to #1035

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

CI's frontend lint (eslint no-undef, Kpa-clawbot#1342) rejects the bare global in the
node page template; the wiring test now pins the window. form.

Relates to #1035

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scope Audit gets a third view, Location
(#/analytics?tab=scopes&sub=audit&sav=location): every repeater and room
with an advertised position in Denmark, the scopes meshguide.dk recommends
where it stands next to its observed default scope and, when an observer
reported it, its configured list. Neutral categories only; an
undecodable scope reads "cannot be decoded".

GET /api/scope-check serves it. Each row is the NodeScopeCheck the node
page's GET /api/nodes/{pubkey}/scope-check (M2) answers for that node:
M2's builder is split into nodeScopeVerdict (shared) and its column
reader into nodeScopeSelect/nodeScopeScan (shared); M2's JSON is
unchanged. One bulk read plus one DAGI lookup and M1's Recommend +
Compare per positioned repeater or room, cached like Scope Audit (30 s,
singleflight, one key); about 10 ms for 5,000 rows. Hidden and
blacklisted identities are dropped per serve, cache hits included.
scopeCheck.publicList (default true, canonical key only) set to false
serves the list only with the API key; the node page is not affected.

Filters (slf=), sort (sls=) and search are client-side and deep-linked.
Rows are cards at <=640 px. Colours from theme variables only, text only.

Relates to #1035

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

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

adminopenclaw8-sketch commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Review — CS-Macmini PR#1107 — head 1235ed8

Verdict: APPROVE with nits

Independent, read-only review of the #1035 M3 delta (1cd1db6a..1235ed81; the M2 commits 517391da/1cd1db6a are #1106 and were only checked where M3 refactors them). Merge-base is origin/master bfa7f18b, so the merged tree (git merge-tree --write-tree → 973b5294) is the head tree; all runs below are on it. git ls-remote showed 1235ed81 before and after the review.

Evidence tags: [T] tested/run by me, [A] from reading the code, [K] known/claimed elsewhere (PR text, CI) and not re-derived.

Findings

# Severity Finding Evidence
N1 nit (test gap) The weak-key branch of scopeCheckListAllowed (&& !IsWeakAPIKey(key)) is not pinned: deleting it keeps every Go test green. Behaviour matches requireAPIKey today, but nothing stops it drifting. A case with publicList:false and a weak configured key that must stay 403 closes it. [T] mutant M2 survived
N2 nit The Name sort says "Danish collation", but no test pins 'da': swapping it for 'en' keeps test-scope-audit.js green, because no fixture name has Æ/Ø/Å/Aa. In practice 'da' sorts Aa as Å, so on a phone I got M3 Frederiksberg, M3 Aarhus sjl, Aabenraa Øst. That is correct Danish dictionary order, but "Aarhus …" and "Aabenraa …" repeaters land at the end of the list. Decide whether that is the intended order, then pin it with one Æ/Ø/Aa name in the unit fixture. [T] mutant F3 survived; [T] 375×560 walkthrough
N3 nit (test gap) Two Location branches have no test: the "DAGI areas are off" (404) message, and syncState writing filter/sort back into the two selects. Both work in the browser (see below), but deleting either keeps all tests green. [T] mutants F6, F7 survived; [T] behaviour checked manually
N4 nit (DRY) scopeNames and shortDate in scope-audit.js duplicate the copies in node-scope-check.js, and shortDate already differs: on an invalid date, Scope Audit returns '' and the node page returns the raw string. defaultText is already shared through window.NodeScopeCheck; these two could be exported the same way. [A]
N5 nit Search does not match the recommended scope names or the not-listed ones. The haystack is name, key, postnummer, place, default, and the listed/other/not-meshguide names. So searching dk-kbh does not find the Copenhagen nodes where it is recommended. The PR says the search matches "scope names", which is only partly true. [A] locationRows
N6 info With publicList:false, the browser never sends X-API-Key, so the operator also sees "The operator keeps this list private." in the UI and needs curl to read the list. This matches the PR text and owner decision 6 ("restrict"); I mention it so the owner knows. [T] 13812: 403 without key, 200 with key, node endpoint still 200, UI message shown
N7 info (perf) Each serve re-encodes the whole list. At 5,000 rows that is 3.3 MB of JSON before gzip (~700 B/row; every row repeats its full recommended-scope list with kinds). At the live ~800 positioned repeaters/rooms that is roughly 0.5 MB raw. Gzip is on by default, so this is acceptable. [T] measured, see Perf
N8 cosmetic At 1280 px the search input is narrow, and its placeholder is cut ("Name, key, postnumm…"). On phones the node-name link in each card is a 78×15 px tap target (shared nameCell, same as Transport, so pre-existing). [T] screenshots / tap box

There are no blocking findings.

Answers to the checklist

  • One helper, one data shape with M2: yes. [A] nodeScopeVerdict (M2's buildNodeScopeCheck split in two) builds both endpoints, and nodeScopeSelect/nodeScopeScan.row() types the columns once for the single read and the bulk read. M2's JSON is unchanged: NodeScopeCheckResponse embeds NodeScopeCheck + Source. [T] TestScopeCheckListRowsEqualNodeEndpoint compares every list row byte-for-byte with the node endpoint and passes. The frontend reuses NodeScopeCheck.defaultText for the default wording (two small helpers are duplicated, N4).
  • Neutral wording: [T] a grep of every added UI string finds no "wrong", "misconfigured", "fault" or "error" verdict. Filter labels are categories ("Default scope not in the list for here", "Configured list without dk"…). The intro says an operator may have good reasons. The unit test asserts neutral filter labels and rendered text.
  • List contents vs. the M0 cases: [T] on a local server with the PR seed plus my own rows:
    • dk2100 in 2000 Frederiksberg → not_meshguide
    • dk-sjl in Aarhus → other_meshguide
    • a list without dk and with europa → "Not in the list: dk", "Not a meshguide.dk scope: europa"
    • '' default in Roskilde → "cannot be decoded"
    • my dk-sjl repeater in 6200 Aabenraa → other_meshguide, recommended eu europe dk dk-sdk dk-jylland
    • Postal scopes appear only for 4000 Roskilde and 5000 Odense; Copenhagen and Jylland get region scopes + dk only (owner decision 4).
    • Not checked against the live network (see below).
  • Filters/sort: [T] each of the six filters (unit test), and in the browser default-elsewhere → 3 rows, Name sort, and search aarhus → 1 row. Everything is client-side: exactly 1 /api/scope-check request per visit across filter, sort, search, a node tap and Back.
  • Unknown names: [T] "cannot be decoded" chip for the undecodable default, plus "Not a meshguide.dk scope" for list names outside meshguide's universe.
  • Hidden nodes excluded: [T]
    • With hiddenNamePrefixes:["ZZhide"] and a nodeBlacklist entry, both of my extra Odense repeaters were missing from rows and from total (7 = 6 seed + my Aabenraa row).
    • The node endpoint returns 404 for the hidden one.
    • [T] Mutants that drop the per-serve filter on rows (M1) or on the outside/unpositioned counts (M4) are killed, including hidden-after-build on a cache hit.
  • Config switch: [T]
    • publicList:false → 403 without the key, 403 with a wrong key, 200 with a strong key; the node endpoint stays 200.
    • Canonical-key only (PublicList is ignored).
    • dagi.enabled:false → 404, and the UI says "This list needs the DAGI areas, which are off on this instance."
    • Documented in config.example.json and OpenAPI.
  • Deep link: [T]
    • #/analytics?tab=scopes&sub=audit&sav=location&slf=…&sls=…&saq=… is written on change and restored after a node tap + Back on both phone sizes.
    • Switching to Declarations drops slf/sls (unit).
    • Unknown slf/sls values fall back to the defaults (unit).
  • Perf inside the cached cycle: [T] see Perf.
  • 375×560, 360×640, desktop, light/dark: [T] see Browser.
  • XSS: [T] scripts/check-xss-sinks.sh --diff origin/master exits 0, run in a real git clone. The seed's <img onerror> name renders as text and window.__xss1035 stays unset in all four phone runs. A javascript: source URL falls back to https://meshguide.dk/ (unit; mutant F5 killed). Rows are built with textContent only.
  • Read-only / no interface maps: [T] no new INSERT/UPDATE/DELETE/Exec in cmd/server non-test code, and 0 added map[string]interface{} lines outside tests (TestScopeCheckListNoInterfaceMaps also guards it).
  • No hardcoded colours: [T] the CSS uses only var(--…) (the only #… matches are #1035 comments).
  • Fork guards / closing keywords / author: [T]
    • github.repository == 'Kpa-clawbot/CoreScope' appears 9 + 1 times, unchanged (0-line .github diff).
    • No closing keywords in commits or the PR body ("Relates to").
    • All 5 commits are authored and committed by dborup <kontakt@meshview.dk>.
  • Behaviour beyond the purpose: [A] none. The Declarations and Transport views only gained the extra loc argument and a renamed search label element. container.classList.toggle('scope-audit-transport', view !== 'declared') now also applies Transport's card layout to Location, which is intended.

Perf (M-series Mac, merged tree, outside -race)

Measurement Result
TestScopeCheckListBuildBudget (5,000 rows, 4,701 applicable) 6.8 ms (budget 100 ms) [T]
BenchmarkScopeCheckList ×3 6.6–6.8 ms/op, 5.2 MB/op, 28,385 allocs/op [T]
BenchmarkNodeScopeCheck ×3 0.90–1.0 µs/op [T]
My handler test, 5,000 nodes in SQLite, hidden-name prefixes on: cold request (DB read + build + serve) 28 ms [T]
… warm requests (cache hit: live visibility query over 5,000 keys + copy + summary + JSON) 13 ms median (12.7–19.6, n=20) [T]
… warm, no hidden prefixes 7.2 ms median (n=10) [T]

A cache hit is O(rows): one bulk visibility query, a re-summary and the JSON encode. This is the same shape as /api/scope-audit. Nothing is per packet, nothing per node request, and nothing in ingest or WS.

Browser (my own walkthrough, local Go server with the PR seed + 3 extra rows)

  • 375×560 and 360×640, touch, light and dark, cold start on Home. Every step was a real touchscreen.tap on the visible element, after scrolling it to the centre:

    1. More
    2. Analytics (sheet)
    3. Scopes tab
    4. Scope Audit
    5. Location: 7 cards, sav=location
    6. Show → default-elsewhere: 3 cards, slf= written
    7. Sort by Name
    8. type aarhus: 1 card
    9. tap the node link: node page
    10. Back: filter, sort and search restored, 1 card

    An elementFromPoint hit check confirmed every tap target. No step was impossible, and nothing had to be closed: the swipe tip covers part of a card but not the controls. On every size and theme: 0 boxes outside the screen, scrollWidth = viewport width, no page errors, one request.

    Side note: if a user scrolls the Location button only just into view at 375×560, it sits under the fixed bottom nav. That is general page behaviour and not caused by this PR.

  • 1280×900 light/dark: the table, summary, population line, meshguide link + commit and DAGI credit render on the theme variables (N8 cosmetic).

Tests run (merged tree)

Suite Result
cd cmd/server && go test ./... ok (141.8 s) [T]
cd internal/scopeguide && go test ./... ok [T]
node test-scope-audit.js passed, location view included [T]
node test-1035-node-scope-check.js 20 passed [T]
node test-frontend-helpers.js 746 passed, 0 failed [T]
sh test-all.sh 415 passed, 0 failed (415 files) [T]
node scripts/run-go-server-shard.js --validate ok (4160 entries) [T]
node scripts/run-e2e-shard.js --validate ok (325 suites) [T]
test-issue-1035-m3-location-view-e2e.js (own server, ports from 13800) 6/6 [T]
test-issue-1035-m2-node-scope-check-e2e.js 10/10 [T]
scripts/check-xss-sinks.sh --diff origin/master exit 0 [T]

I prepared the fixture as in CI: freshen, the inline seed SQL, corescope-migrate, seeds 2073/199/245/122, and .git-commit. I did not run the full test-e2e-playwright.js.

Red before / green after: [T] test-scope-audit.js against master's scope-audit.js fails with an AssertionError. The new Go tests and the M3 E2E target an endpoint and view that do not exist on master, so they are red by construction [A].

Mutants (mine)

# Mutation Result
M1 serve rows without the per-request visibility filter killed (4 tests)
M2 drop !IsWeakAPIKey(key) survived → N1
M3 ListWithoutDk counts any not-listed name killed
M4 hidden identities counted in outside/unpositioned killed
M5 remove the dagi.enabled gate killed
M6 drop postnummer from the server sort killed
M7 drop WHERE lower(role) IN ('repeater','room') survived (equivalent: Compare drops other roles; the SQL filter only saves work)
M8 (M2 code) ListReportedAt set even when no list is reported survived (pre-existing M2 gap, needs a list time without a list)
F1 default-elsewhere without not_meshguide killed
F2 slf written in every view killed
F3 'da' → 'en' collation survived → N2
F4 search without the place name killed
F5 non-https source URL used as link killed
F6 404 message dropped survived → N3
F7 syncState does not restore the filter select survived → N3

CI per job (run 47034027252, head 1235ed81)

Job Result
Go Build & Test ✅
Go Ingestor Tests ✅
Go Libraries & CLI ✅
Go Server Tests (1/3) ✅
Go Server Tests (2/3) ✅
Go Server Tests (3/3) ✅
JavaScript Unit Tests & Lint ✅
Verify Go Test Assignments ✅
Validate Docker Image ✅
Script & Container Unit Checks ✅
Playwright E2E (1/3) ✅
Playwright E2E (3/3) ✅
Playwright E2E (2/3), the shard with the new M3 suite ✅ (about 49 min)
Release Artifacts skipped

None of the known flakes (#256, #267) showed up.

Not verified

  • The list against the live network. I had no staging or prod access, so the M0 shapes were checked only through the seed and my own rows.
  • Safari/WebKit and a physical phone. Only Chromium with touch emulation was used.
  • cmd/ingestor. The PR does not touch it, and I did not run it locally (CI ✅).
  • The full test-e2e-playwright.js.
  • The M2 commits in depth. They are feat(nodes): recommended scopes for where the node stands, info only (#1035 M2) #1106's, and that review is separate; I am also the author of M2, so this review is not independent of that part.

🤖 Generated with Claude Code

@dborup

dborup commented Dec 3, 2026

Copy link
Copy Markdown
Owner Author

Rapport — CS-Minimax PR#1107 #1035 — head 1235ed8

Status: Draft. M3's Location view is done and every requirement is tested. Every local suite passes, and all 20 mutants were killed. CI is green on every job after one rerun of Playwright (2/3), which failed in an unrelated test (#911). Details below.

Evidence: [T] = a test or command I ran, with its result. [A] = argued from the code. [K] = measured on CI.

Choices I made without asking

  1. Stacked on M2 (feat(nodes): recommended scopes for where the node stands, info only (#1035 M2) #1106). The list reuses M2's helper instead of copying it. This branch is feat/1035-m2-node-page (517391d, plus its lint fix 1cd1db6, merged in) with my commits on top. Until feat(nodes): recommended scopes for where the node stands, info only (#1035 M2) #1106 merges, this PR's diff includes M2. My own work is in 316fe774 and 1235ed81.
  2. One shared helper.
    • I split M2's buildNodeScopeCheck into nodeScopeVerdict, which both endpoints use.
    • I split M2's row read into nodeScopeSelect / nodeScopeScan.row().
    • M2's response JSON is unchanged: NodeScopeCheckResponse now embeds NodeScopeCheck, so the same fields come out.
  3. Endpoint and deep link.
    • The endpoint is GET /api/scope-check. It is the generic list counterpart of /api/nodes/{pubkey}/scope-check and has no view-specific fields.
    • The deep link uses the existing Scope Audit pattern: #/analytics?tab=scopes&sub=audit&sav=location, plus slf= (filter) and sls= (sort).
  4. "Cached analytics cycle". I read this as Scope Audit's own cache: scopeAuditCache, 30 s TTL, singleflight, one key. The M0 plan says the same ("on request, … nothing periodic"). A periodic analyticsRecomputer would rebuild even when nobody is looking.
  5. scopeCheck.publicList: false means the list is served only with the API key (the same strong-key check as requireAPIKey), and is otherwise 403. With no API key configured, a restricted list is closed. The node page is unaffected.
  6. Filters are client-side over the single cached answer: no request per filter or per node.
    • Repeaters and rooms outside Denmark or without a position are counted, not listed.
    • Hidden and blacklisted nodes are neither listed nor counted.

Requirements

Requirement Test (red before → green after) Mutant (killed) Evidence
List of positioned repeaters and rooms; companions, outside and positionless nodes not listed (outside/positionless counted) TestScopeCheckListPopulation; E2E desktop case (API counts equal the UI) M6 outside counted as positionless; M10 non-applicable rows listed [T] Go red before (types undefined), green after
Same data shape as M2, one helper TestScopeCheckListRowsEqualNodeEndpoint (each row byte-equal to the node endpoint's NodeScopeCheck); M2's own 13 tests pass on the refactor covered by M6/M10/M7 (the shared verdict feeds both) [T]
M0 findings as fixtures: dk2100 in Frederiksberg, dk-sjl in Aarhus, a list without dk and with europa, dk-fyn in Odense, an undecodable default TestScopeCheckListM0Findings (rows + exact summary) M4 "without dk" counts any missing scope; M7 in_list counted as recommended [T]
Info only, neutral wording, "cannot be decoded" test-scope-audit.js (filter labels and rendered text have no judging words; "cannot be decoded"); E2E text check J1 "without dk" = any report [T]
Filters and sort (default not in the list for here, list without dk, cannot be decoded, …) test-scope-audit.js locationTests (each filter, search on place/postnummer/list names, Name sort); E2E filters/sort/search with no request J3 Name sort ignored; J8 search ignores place [T] JS red against master's scope-audit.js
Deep link (sav=location, slf=, sls=) hashWithState / stateFromHash tests (whitelisted values); E2E reload restores the filter; Location button writes sav=location J2 slf not written; J7 filter from the URL ignored [T]
Public, with scopeCheck.publicList (default public, canonical key only) TestScopeCheckListPublicSwitch (403 without key or with a wrong key, 200 with the key, node page unaffected, no apiKey → 403); TestScopeCheckPublicListConfigKey (PublicList ignored); JS 403 message M3 publicList ignored; M8 canonical key read dropped; J9 403 message dropped [T]
Hidden nodes excluded (also on a cache hit, also from counts) TestScopeCheckListCachedAndHiddenOnHit; Population (hidden and blacklisted seeds, hidden outside/positionless seeds) M1 hidden rows served; M2 hidden not-listed counted [T]
Perf: cached cycle, O(positioned repeaters + rooms), no per-request heavy work TestScopeCheckListBuildBudget (5,000 rows < 100 ms outside -race; locally about 10 ms); TestScopeCheckListCachedAndHiddenOnHit (2 requests → 1 build); JS: one /scope-check request, filtering makes none M9 cache removed (rebuild per request); J6 wrong endpoint [T]
Measurement BenchmarkScopeCheckList (5,000 rows): 9.6 ms/op, 5.2 MB/op, 28,385 allocs/op (3 runs, M-series Mac). BenchmarkNodeScopeCheck: 1.25 µs/op — [T]
Named Go structs, no map[string]interface{} TestScopeCheckListNoInterfaceMaps — [T]
Server read-only Only SELECT on the read-only connection; readonly_invariant_test.go passes — [A] + [T]
CSS variables only E2E: muted chip colour equals the resolved --text-muted (light and dark); new CSS has no hex — [T]
XSS gate scripts/check-xss-sinks.sh --diff origin/master clean (exit 0). All new rendering is textContent; the fake DOM throws on innerHTML; markup names stay text (unit + E2E window.__xss1035 undefined); the source link is https-only J4 any source URL used as a link [T]
375×560 and desktop E2E 1280×900 light and dark; 375×560 touch light and dark from Declarations with a real tap: rows as cards, every box inside the screen, scrollWidth 375 E-mutant: Location table without the card class → both 375×560 cases fail [T]
No time window in Location JS + E2E (window buttons hidden) J5 window buttons shown [T]
New E2E suite in scripts/e2e-shards.json test-issue-1035-m3-location-view-e2e.js, shard 2; node scripts/run-e2e-shard.js --validate → 325 suites OK — [T]

Mutants: 20 in total (M1–M10 Go, J1–J9 JS, 1 E2E), all killed [T]. Each mutant was applied from a snapshot, run against its suite, and restored, and the restore was verified with cmp.

Local runs [T]

  • cd cmd/server && go test ./... → ok (161 s)
  • sh test-all.sh → 415 passed, 0 failed
  • node test-frontend-helpers.js → 746 passed, 0 failed
  • node scripts/run-go-server-shard.js --validate → OK; node scripts/run-e2e-shard.js --validate → OK
  • test-issue-1035-m3-location-view-e2e.js against a local Go server (e2e-fixture.db, migrated and seeded as in CI) → 6 passed, 0 failed
  • M2's test-1035-node-scope-check.js → 20 passed after the refactor
  • eslint@8 (the CI step) on the touched files → 0 errors
  • Fork guards unchanged: 9 in deploy.yml, 1 in release-fast-path.yml; no workflow file touched

CI per job (head 1235ed8) [K]

Job Result
Go Server Tests (1/3, 2/3, 3/3) success
Go Ingestor Tests success
Go Libraries & CLI success
Go Build & Test success
Verify Go Test Assignments success
JavaScript Unit Tests & Lint success
Script & Container Unit Checks success
Validate Docker Image success
Build & Publish Docker Image success
Verify E2E Shards & Coverage success
Playwright E2E (1/3) success
Playwright E2E (3/3) success
Playwright E2E (2/3) failure on the first run, success on the one rerun
Release Artifacts / Deploy Staging / Publish Badges skipped (not run for PRs)

About the Playwright (2/3) failure:

Remaining

  • Merge order: this PR contains M2's commits. Merge feat(nodes): recommended scopes for where the node stands, info only (#1035 M2) #1106 first; this diff then shrinks to M3 alone. If M2 changes again, I merge it into this branch (no rebase).
  • Customizer (rule 8): scopeCheck.publicList is config only, for now. It should reach the customizer with the rest in M4.
  • No browser check against real data. That needs staging access, which this task does not allow.
  • Filters vs the M0 plan: the M0 plan mentioned DAGI area filters. I left them out; search covers the postnummer and place name.

dborup and others added 2 commits December 3, 2026 07:07
Only conflict: scripts/e2e-shards.json, where master and this PR each
appended suites; all entries are kept (--validate passes).

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

The master merge in 330910d kept the M7 entry twice; --validate rejects it.

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

dborup commented Dec 3, 2026

Copy link
Copy Markdown
Owner Author

Coordinator merge of origin/master (330910d6; only scripts/e2e-shards.json conflicted) plus 2f99ca32, which drops a duplicate #1017 M7 suite entry the merge had kept twice (node scripts/run-e2e-shard.js --validate passes). No code change. Merging once CI is green.

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.

2 participants