Repository navigation
Backlog
Description
Problem
Two separate "claim" features exist today:
| My Mesh ("Claim your first node" on Home) | Antenna and station (owner) on the node page | |
|---|---|---|
| Proof of ownership | None: search for the node and press the button | Yes: a code in the node's name, sent in a signed advert |
| Stored | Only in the browser's localStorage (meshcore-my-nodes) |
In the database, one claim per node |
| Several nodes | Yes, but only in that one browser | One code and one advert per node, every time |
An owner with many repeaters has to rename and advert each one for every change. Their "My nodes" does not follow them to another device.
Proposal (owner, 2026-11-28): an owner account, signed in with your companion
-
Sign in with your companion. The identity is the public key of the companion radio you carry. There is no password and no e-mail. Two possible ways:
- A: the same mechanism as antenna claims. The page gives a code, you put it in the companion's name and send a flood advert, and an observer hears it.
- B: a direct message with the code to a MeshView node on the mesh. This needs a MeshView companion radio.
After sign-in the browser gets a signed session, so the read-only server can recognise it without a DB write. All writes go through the ingestor, as for antenna claims.
-
Link nodes to the account. Each repeater must still be proven once, so an account can never take someone else's node. Ways to make that easier:
- One account code for many nodes: put the same code in each repeater's name and send an advert from each.
- A firmware owner field: observers already have
set mqtt.owner <pubkey>. If repeaters have, or could have, an owner field carried in signed packets, no renaming would be needed. This must be checked in the firmware, not assumed (AGENTS.md rule 7).
-
What the account gives:
- "My nodes" on every device, replacing the browser-only My Mesh, with a migration from
localStorage; - one place for antenna height, station details and the new Station details: hardware (official MeshCore list, ESP32/nRF52), TX power, direction, battery/solar and a photo #1017 fields for all your nodes;
- no new code per change once a node is linked;
- later, perhaps, a notice when your repeater goes quiet.
- "My nodes" on every device, replacing the browser-only My Mesh, with a migration from
-
Privacy:
- Who owns which nodes is not public. At most it shows "verified owner", or a display name the owner chooses.
- The companion key is never shown.
- The account can be deleted, which removes its links. Approved station data stays unless the owner also removes it.
Research first (M0, no code)
- Firmware (read
firmware/, MeshCore source):- whether a companion's adverts can carry the sign-in code (name length, flood vs zero-hop, how often an observer hears them);
- whether a repeater has, or can be given, an owner field that appears in signed packets;
- what option B would need.
- Session design under the read-only server (bug(db): vacuumOnStartup fails with SQLITE_BUSY when ingestor + server share DB (auto_vacuum migration #919 broken in single-container topology) Kpa-clawbot/CoreScope#1283):
- a stateless signed token (key handling, expiry, revocation);
- how account writes flow through the ingestor, as the antenna-claim request queue does.
- Data model:
- accounts, node links and proof records;
- how the existing antenna claims and station details attach to an account without breaking per-node claims;
- the migration;
- retention and deletion.
- Security:
- replay of codes, stolen sessions, an attacker who controls a node temporarily, rate limits;
- what an account must never be able to do (take a node with a newer proof by its real owner, see
contactAdmin).
- UI:
- sign-in at 375×560;
- "My nodes" with the My Mesh migration;
- linking a node;
- bulk station-detail editing.
- Plan: milestones (for example M1 sign-in and synced "My nodes", M2 node linking, M3 managing station data for linked nodes), each with tests, perf notes and customizer implications (rule 8).
Related: #789, #898, #1007, #1017, #262 (My Mesh).
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
dborup commentedon Nov 28, 2026
Research (M0) — #1018
Owner account: sign in with your companion, link your nodes, manage their station data.
This is research only. I wrote no code, made no commits and opened no PR. Nothing was sent to a live instance or a broker.
Sources and labels
origin/masterfe32ee49(2026-11-28), read withgit show/git grepmeshcore-dev/MeshCore)75b04ef0(2026-11-14), shallow clone in a scratch directoryagessaman/MeshCore)mqtt-observer-plusf35341cf(2026-07-11); cross-checked onmqtt-bridge-implementation460d254fset mqtt.ownerlives and where the value goesLabels:
file:line(upstream unless the fork is named).origin/masterat the citedfile:line.1. Conclusions
Option A works for a companion, with one difference from repeaters: the name budget is usually 31 bytes, not 23. [F]
CMD_SET_ADVERT_NAMEand sends the advert withCMD_SEND_SELF_ADVERT, where byte 1 = 1 means flood and anything else zero-hop (examples/companion_radio/MyMesh.cpp:1259-1265,:1297-1313).ADV_TYPE_CHAT(src/helpers/BaseChatMesh.cpp:21-41), so CoreScope's existing signature check and code matching apply unchanged.advert_loc_policy = 0=ADVERT_LOC_NONE,examples/companion_radio/NodePrefs.h:11,33). The name then gets 31 bytes. With position sharing on it gets 23 bytes (src/helpers/AdvertDataHelpers.cpp:4-29,src/MeshCore.h:12).NodePrefs.h:195-196), and the device's own button sends zero-hop (MyMesh.cpp:2436-2448). The owner must press "flood" in the app.No upstream repeater or room server has an owner field in any signed or passively observable packet. [F]
owner.info(char[120],src/helpers/CommonCLI.h:67) is never put in an advert (CommonCLI.cpp:170-181).examples/simple_repeater/MyMesh.cpp:56,165-182,586-587,869), or after a login (:51,372-373). Both replies are encrypted to the requester.set mqtt.ownerdoes not exist upstream. It lives in the MQTT observer fork. The value goes only into the JWT that the observer signs with its own key and uses as its MQTT password (fork:src/helpers/JWTHelper.cpp:77,175-178,src/helpers/bridges/MQTTBridge.cpp:1732-1782). It is never in a mesh packet or a status message. CoreScope never sees broker credentials [K]. So "no renaming per node" is not possible with today's firmware, except for observers on that fork, and only if the broker passes the token on (§2.4).Option B (a DM to a MeshView companion) is possible, but it is a separate infrastructure project. MeshView would need its own key, a radio on air with RF coverage and a host daemon, plus contact management. The DM's MAC is only 2 bytes. Not for M1 (§2.5).
A third option the issue does not name is stronger than A or B: the companion can sign arbitrary data. [F]
CMD_SIGN_START/DATA/FINISHsigns up to 8 KiB with the companion's own ed25519 key (MyMesh.cpp:41-43,142,1781-1812;src/Identity.cpp:151-153).Sessions fit the read-only server. [K]/[A]
cmd/ingestor/main.go:1120) and creates the account row.cmd/ingestor/client_rx_delete.go:169-197).session_genthat the ingestor increments and the server checks with one primary-key read.Every account write is a command file in a new
account-requests/queue, using the existingchannelregistry.Queue.EnqueueValue(internal/channelregistry/queue.go:160). This is the same flow as antenna claims (cmd/server/antenna_claims.go:590-617,cmd/ingestor/antenna_claims.go:555-601).Linked-node edits reuse the claim lifecycle unchanged, with one rule: a link-based claim's authority time is the time of the advert that proved the link, not the time of the edit.
NewerApprovedQuery(internal/channelregistry/antennaclaim/antennaclaim.go:262-270) then guarantees that a newer advert proof by the real owner always beats an account edit.created_attie-break, because two edits under one link share the same authority time (§4.4).contactAdminstays unreachable. No account response type gets a field for it, exactly likeNodeStationResponsetoday (cmd/server/antenna_claims.go:86-95) [K].Proposed plan:
localStoragemigration, sign out, delete the account.Each milestone is gated off by default.
2. Firmware findings
2.1 Can a companion advert carry the sign-in code? Yes. [F]
pubkey ‖ timestamp ‖ appdata; the name is inside appdatasrc/Mesh.cpp:404-437(sign at:434); receive-side verify:255-289(cut to 32 bytes:269, verify:280, "forged signature":287);docs/payloads.md:26-35ADV_TYPE_CHAT, with or without a positionsrc/helpers/BaseChatMesh.cpp:21-41;src/helpers/AdvertDataHelpers.h:8node_name[32]), no character check on the companion pathMyMesh.cpp:1259-1265;NodePrefs.h:17MAX_ADVERT_DATA_SIZE − i, cut to a valid UTF-8 prefix: 31 bytes without a position, 23 bytes with one (1 flags + 8 lat/lon), 2 fewer per feature wordAdvertDataHelpers.cpp:4-29;src/MeshCore.h:12advert_loc_policy = 0,ADVERT_LOC_NONE) → 31-byte budget;ADVERT_LOC_SHARE→ 23NodePrefs.h:11-12,33;MyMesh.cpp:1299-1303CMD_SET_ADVERT_NAME(8), thenCMD_SEND_SELF_ADVERT(7) with byte 1 = 1 for flood, otherwise zero-hopMyMesh.cpp:15-16,1259-1265,1297-1313MyMesh.cpp:1306-1309,491-500;NodePrefs.h:49NodePrefs.h:195-196;MyMesh.cpp:2436-2448Consequences for CoreScope:
antennaclaim.NameBudget(hasLocation, feat1, feat2)already computes 31 or 23 from the advert's flags [K] (antennaclaim.go:162-177).ContainsCodeandSuggestedNamecan be reused as they are (:179-215).antennaclaim.go:106) is plain one-byte ASCII. It survives both the companion path, which validates nothing, and CoreScope'ssanitizeName.2.2 How likely is it that an observer hears it? [F] mechanism, [A] probability
flood_max_adverthashes. The default is 8 on repeaters (examples/simple_repeater/MyMesh.cpp:906-908;src/helpers/RoutingPolicy.h:15-22).simple_repeater/MyMesh.cpp:434-442,555-567).2.3 Is there an owner field in repeater, room or observer packets? [F]
owner.infobuildAdvertDatapasses only the name and positionsrc/helpers/CommonCLI.h:67;CommonCLI.cpp:577-583(set),:170-181(advert)ANON_REQ_TYPE_OWNERreplynode_name \n owner_infosimple_repeater/MyMesh.cpp:56,165-182,586-587,869REQ_TYPE_GET_OWNER_INFOsimple_repeater/MyMesh.cpp:51,372-373simple_room_server/MyMesh.cpp,simple_sensor/SensorMesh.cppandcompanion_radio/MyMesh.cpp// FUTURE, never setAdvertDataHelpers.h:15-16,AdvertDataHelpers.cpp:12-19mqtt.owner(fork only)mqtt_owner_public_key[65]2.4
set mqtt.owner(MQTT observer fork). [F] fork, [K]mqttinsrc/andexamples/.mqtt-observer-plus:set mqtt.owner <64 hex>checks that the value is 64 hex characters and stores it (src/helpers/CommonCLI_Observer.cpp:460-483).get mqtt.ownerworks over serial only, because of thesender_timestamp == 0guard (:840-845).createSlotAuthTokenputs it into the JWT payload asowner(src/helpers/JWTHelper.cpp:175-178), next topublicKey,aud,iatandexp.header.payloadwith the observer's ed25519 key (JWTHelper.cpp:62-80, sign at:77).MQTTBridge.cpp:1318-1324,1422-1429,1732-1782).mqtt-bridge-implementationbranch does the same for two fixed third-party analyzer brokers only (MQTTBridge.cpp:2199-2240).ownerkey outside the JWT helper.cmd/orinternal/[K].(observer pubkey, owner pubkey)pair to CoreScope.2.5 What option B (a DM with the code to a MeshView companion) would need. [F] protocol, [A] operations
Protocol facts:
TXT_MSG) carries a 1-byte destination hash, a 1-byte source hash, a 2-byte MAC and AES ciphertext (docs/payloads.md:69-78;CIPHER_MAC_SIZE 2,src/MeshCore.h:17).src/Mesh.cpp:133-160).ed25519_key_exchange(other_pub, own_prv)(src/Identity.cpp:155-157). Only the two key holders can compute it.MyMesh.cpp:147-151,305-322), or throughCMD_IMPORT_CONTACT(:26) fed from an advert CoreScope stored.examples/companion_radio/MyMesh.h:57-58), so it needs overwrite-oldest.MyMesh.cpp:440-452). The daemon maps it to the full key through its contact list.ANON_REQlogin with the code as the password.docs/payloads.md:214-229;src/Mesh.cpp:197-217).ANON_REQ_TYPE_OWNERto repeaters (direct route, 4 per 3 min per repeater) and readowner.info. An owner could then link a repeater by putting the code inowner.info(set owner.info …,CommonCLI.cpp:577-583) instead of renaming it.What MeshView would have to run [A]:
CMD_SYNC_NEXT_MESSAGE,CMD_IMPORT_CONTACT);It also transmits (ACKs, path returns), which means airtime and duty-cycle responsibility for the operator. Users outside that radio's reach cannot use it, while option A works anywhere an observer listens. Verdict: not in M1–M3.
2.6 Two non-RF routes worth knowing. [F] firmware, [A] apps
CMD_SIGN_STARTreturns the maximum length;CMD_SIGN_DATAappends;CMD_SIGN_FINISHreturns a 64-byte ed25519 signature over the buffer fromself_id.sign(MyMesh.cpp:41-43,142,1781-1812;src/Identity.cpp:151-153).docs/companion_protocol.md, which has no "sign" hits.MVLOGIN1\n<origin>\n<nonce>\n<issuedAt>. A signed challenge can then never be mistaken for an advert, whose signed message starts with the signer's own 32-byte key [A].crypto/ed25519, asinternal/sigvalidatealready does [K]. Only the account row needs the ingestor.CMD_EXPORT_CONTACTwithout a key returns the companion's own signed advert as packet bytes (MyMesh.cpp:1379-1395).meshcore://<hex of the advert packet>(examples/simple_secure_chat/main.cpp:463-473;docs/faq.md:436).meshcore://contact/add?…QR format is unsigned (docs/qr_codes.md:20-37), so it proves nothing.3. CoreScope findings that the design builds on. [K]
cmd/server/antenna_claims.go:482-577SubmissionsPerHourwindow with refund; code fromantennaclaim.NewCode; command viaEnqueueValue; 202 with code, budget and suggested nameinternal/channelregistry/queue.go:160(EnqueueValue)MaxQueuedRequests, result files,Prunecmd/ingestor/main.go:1120;antenna_claims.go:145-171pending[pubkey](:117-143); proof stores the ingest time, the hash and the positionantennaclaim.go:262-270(NewerApprovedQuery); used inreviewAntennaClaim(cmd/ingestor/antenna_claims.go:363-427)antennaclaim.go:280-283(ContactLiveSQL);internal/dbschema/dbschema.go:1497-1505adminClaimSelectjoins it (cmd/server/antenna_claims.go:618-636)dbschema.go:1424-1453(node_antenna_claims),:1475-1500(#898 parts viaADD COLUMN)isMissingClaimsTable,antenna_claims.go:299)cmd/server/readonly_invariant_test.go:22-82(no RW connection),:93-119(no write methods on*DB),:126-146(the connection rejects INSERT),:214-281(DML regex over the ingestor-owned tables, includingnode_antenna_claims)cmd/ingestor/client_rx_delete.go:169-197cmd/server/ip_rate_limit.go:146;config.go:1062-1078trustedProxies; in the shipped Docker topology the per-IP limits are skipped (config comment), so a global cap is still neededcmd/server/routes.go:631(requireAPIKey)cmd/server(grep)cmd/serversets noContent-Security-Policy(grep). XSS is therefore the main way to steal a token kept in JS storage. Use an HttpOnly cookiepublic/home.js:40-56meshcore-my-nodes=[{pubkey, name, addedAt}]. Read directly in 6 more places:nodes.js:8,1805,2008,live.js:3765,analytics.js:2642, andcustomize-v2.js:970,1204(settings export/import)home.js:330-338/healthrequest per card (pre-existing). A synced list that grows makes this worse;GET /api/nodes/bulk-healthexists (routes.go:453)docker/nonroot.sh:56QUEUE_DIRSmust gainaccount-requests4. Design
4.1 Sign-in flow (option A, recommended for M1)
POST /api/account/login. The server answers202with arequestId, acode, aredeemSecret(128-bit, shown once),expiresAt,nameBudgetBytesandsuggestedName.{op:"login", requestId, pubkey, code, redeemHash: sha256(redeemSecret), createdAt}.Flags.Chat), the code is matched by full pubkey.proven, with the ingest time and the proof hash.last_login_atis updated.GET /api/account/login/{id}and gets only{status, expiresAt}. When it readsproven, it callsPOST /api/account/session {requestId, redeemSecret}.<companion name>(a1b2c3…)", where the user can still back out, and reminds them to restore the name.Option C (M1b) replaces steps 3–4. The server checks the ed25519 signature over its challenge itself, then enqueues
{op:"login-signed", …}so that the ingestor creates or updates the account.4.2 Session token: stateless, read-only. [A] design, [K] precedents
base64url(payload) "." base64url(HMAC-SHA256(key, payload)). It uses only the standard library: no JWT dependency and no new modules.account-session.key, mode 0600, next to the DB.clientRxLoadOrCreateSaltdoes. The server only reads it.AuthAt. After that the user signs in again.SELECT session_gen FROM accounts WHERE account_id = ?.gendiffers, or whose account is gone, is invalid.__Host-mv_session, withHttpOnly; Secure; SameSite=Strict; Path=/.localStorage.Content-Type: application/jsonand a matchingOrigin(CSRF defence in depth).gen:geninto every account command.genno longer matches. A command queued just before "sign out everywhere" or a delete therefore never applies.4.3 Write path (same shape as antenna claims)
The ops, in a shared
internal/channelregistry/accountpackage:login,login-signed,my-nodes-set(bulk replace, used by the migration),my-node-add,my-node-remove,profile-set(display name),sign-out-all,delete.link,unlink,link-visibility.station(one claim per node through a link).Validate()is shared, asantennaclaim.Command.Validateis today (antennaclaim.go:309-335).Public response types (named structs, no
map[string]interface{}):None of these types has a contact field. The account's view of its station data uses the existing public
NodeStationResponse, plus its own pending claims as{parts, status}, never their values forcontactAdmin.4.4 Data model (ingestor-owned,
internal/dbschema)Proof records. One pending map keyed by pubkey serves both kinds. The matcher already exists in
antennaClaimRunner.match.Attaching antenna claims and station details. Per-node claims stay exactly as they are. Three nullable columns are added to
node_antenna_claimswith the existing self-healingADD COLUMNpattern (dbschema.go:1525-1540):account_id TEXT NULL: who submitted it. It is set to NULL when the account is deleted. There is no foreign key, so a delete never cascades into claims.via TEXT NULL CHECK(via IS NULL OR via IN ('advert','link')): NULL means legacy, which is the same asadvert.link_id TEXT NULL.A link-based claim (M3):
proven, withproven_at = link.proven_at(the authority time) andproof_lat/lon = link.proof_lat/lon.needs_review, theautoApproveProvenandautoApproveDetailsmatrix (Antenna claims: opt-in auto-approval of station details (autoApproveDetails) #1007), admin approve, reject or revoke, supersede, prune, contact deletion.The ingestor refuses it at insert when:
linked, is expired, or belongs to another account;gendoes not match;staleMoveMfrom the link's proof position (the sameLimits.Stalerule);proven_at > link.proven_at. That is theNewerApprovedQuerycheck, moved from approval time to insert time as well.Required change to
NewerApprovedQuery:proven_at, so the strictproven_at > ?would let an older edit, approved late by an admin, undo a newer one.(proven_at, created_at):Migration:
dbschemain the ingestor. The server treats a missing table as "accounts unavailable", the same pattern asisMissingClaimsTable.txTableWritePattern(readonly_invariant_test.go:220).account-requeststodocker/nonroot.shQUEUE_DIRS.account_id,viaandlink_idNULL.4.5 Retention and deletion
account_proofs(login)expires_ator redemptionaccount_proofs(link)RetentionDays(default 30)account_node_linkslinkeduntil it expires (lifetime, default 365 d), is unlinked, superseded or revokedRetentionDaysaccount_my_nodesaccountsdeleteopQueue.Prune(call it for this queue too, unlike the old region-scope gap)What
deletedoes, in one transaction:account_id,link_id= NULL on its claims.proven(dropping their contacts).removeStationDatais set, insert for each linked node an owner clear-only claim (approved_by='owner',via='link') for the parts this account put in force. TheNewerApprovedQueryguard applies.Approved station data stays by default, as the issue says. The same "deletion is logical" caveats about backups, free pages and the WAL apply as in
docs/user-guide/antenna-height-claims.md[K]. That doc text should be reused, not rewritten.4.6 Linking nodes (M2)
POST /api/account/links {pubkeys:[pk]}issues a code bound to(account, pk). The owner renames the node and sends an advert. The ingestor marks the proofprovenand inserts alinkedrow.superseded.maxNodesPerCodekeys (default 20).(pubkey, code), so sharing it across nodes adds no risk.set name …/advertpair per node, each within that node's budget (23 bytes with a position).CLAIM_ROLES,public/antenna-claims.js:49). An observer is a repeater and is covered. Companions are not linked: their key is an identity.4.7 Security
crypto/randafter issue, are single-use, bound to one pubkey, and expire (15 min for login, 24 h for link). Only new transmissions match (content-hash dedupe). No advert timestamp or observer time is trusted: the same argument as #789 [K] (cmd/ingestor/antenna_claims.go:14-19)redeemSecretheld by the requesting browser. A link code is bound to the requesting account and to the node's keySameSite=Strictsession_gen; the account page shows the last sign-in time. No IP or user agent is storedGET /api/backup(verify in M1: the backup isVACUUM INTOof the DB only [K], so the key file is not in it). Rotating it signs everyone outNewerApprovedQueryis checked at insert and at approval, with thecreated_attie-breakcontactAdmin/stationshape; tested by reflection over every account response type, asNodeStationResponseis todaytrustedProxies); a global window (default 120/h); at most 8 pending logins per companion key; at most 512 pending in all;MaxQueuedRequests. An attacker can fill one victim's 8 slots for at most 15 minutes, and only within the global budgetmaxLinkedNodes(default 200) andmaxMyNodes(200); edits at most 60 node-commands/h, in memory on the server. Edits do not use the public global claim window, so one owner's bulk edit cannot starve anonymous claimsmqtt.ownerpath)4.8 Perf (rule 0) [A] estimates; [K] code paths
SELECTonaccounts./api/accountis O(myNodes + links), at most about 400 rows, through two indexed reads.map[pubkey]bool, bounded by the number of links, the same pattern asownerStations(cmd/server/antenna_claims.go:186-260). It is not added to/api/nodesorbulk-health./healthcall [K]. M1 must cap the rendered cards (for example 24, with "show more") or move the grid tobulk-health. Measure both with 200 nodes before merge, as rule 0 requires proof.5. UI
5.1 Routes (deep links)
#/account#/account?tab=nodes/links/station#/account/sign-in?pubkey=<key>The request id and code are never in the URL. As on the claim page, they live in
sessionStorageper request, so a reload keeps them [K] (public/antenna-claims.js:25).5.2 Sign-in at 375×560
One column with a 16 px gutter. Each step fits without horizontal scroll, and the primary button sits at the bottom of the visible area.
7KX9QM, with Copy name.aria-live.createStatusPoller(public/antenna-claims.js:400-443) with its bounded backoff and the "Check again" end state.On desktop the same steps sit in one card about 480 px wide. Option C (M1b) adds a Sign in with Bluetooth / USB button above step 2, shown only when
navigator.bluetoothornavigator.serialexists.5.3 My nodes and the My Mesh migration
public/my-nodes.jsbecomes the one owner ofmeshcore-my-nodes. It exposeslist,add,remove,hasandonChange. The 7 direct readers (§3) switch to it (DRY, rule "one implementation").localStorage, so that favourites, live, analytics and the settings export keep working unchanged.localStoragehas entries the account does not, a banner says: "This browser has 7 saved nodes. Add them to your account?" with Add all and Not now.my-nodes-setcommand with the union, deduplicated by lower-case pubkey and capped.localStorage.5.4 Linking a node (M2)
set name <suggested>line with Copy,advert, and a status chip (waiting / linked / expired).5.5 Bulk station-detail editing (M3)
antenna-claims.js), then a review screen listing the changes per node, then Submit.6. Milestone plan
All operator settings live in
config.jsonunderaccounts.*. Defaults:enabled: false; accounts need a strongapiKey, as claims do;sessionDays: 30,sessionMaxDays: 90;loginCodeMinutes: 15;linkLifetimeDays: 365;maxMyNodes: 200,maxLinkedNodes: 200,maxNodesPerCode: 20;loginsPerHour: 120,loginsPer10MinPerIP: 10;retentionDays: 30.They are read by exact spelling, like the claim gates.
Customizer (rule 8): none in M1–M3. These are operator settings, not visitor preferences, as #1007 also concluded. The only visitor-side candidate is "show verified-owner badges", which I would not add until someone asks.
M1 — sign-in (A) and synced My nodes
Server:
POST /api/account/login;GET /api/account/login/{id};POST /api/account/session;DELETE /api/account/session;GET /api/account;POST /api/account/my-nodes(set / add / remove);POST /api/account/profile;POST /api/account/sign-out-all;DELETE /api/account;GET /api/account/config;Ingestor: the
accountrunner, the schema (accounts,account_proofs,account_my_nodes), the key file, and the advert hook forkind='login'.Frontend:
my-nodes.js,account.js(#/account), the home hero entry ("Sign in with your companion"), and the migration banner.Tests:
genmismatch, deleted account.isNew=false); expired; a code past the 31- or 23-byte budget; a command with a stalegenis refused.readonly_invariant_test.goextended, with a sensitivity test for the new tables.vm.createContext:my-nodes.jsmerge, dedupe, cap, write-through and migration.scripts/e2e-shards.json.gencheck, drop the pubkey binding, dropisNew. Each must fail a test.Perf proof: benchmarks for token verify and the
/api/accountread with 200 my-nodes; the My nodes grid with 200 entries (capped versusbulk-health), timed.Browser validation: a real companion sign-in on the staging instance, with screenshots at 375×560 and on desktop.
M1b (optional): option C (Web Bluetooth/Serial
CMD_SIGN_*), with server-side ed25519 verification of a domain-prefixed challenge. Tests use a test key only.M2 — node linking
Server:
POST /api/account/links;DELETE /api/account/links/{pubkey};POST /api/account/links/{pubkey}/visibility;GET /api/admin/account-linksandPOST …/{linkId}/revokebehindrequireAPIKey;Ingestor:
account_node_links, the supersede rule, expiry, and thekind='link'match.Frontend: multi-select, one code for many nodes, the per-node rows, and the Verified badge.
Tests:
Perf: the hook is still O(1); the badge snapshot is bounded and not added to list endpoints.
M3 — station data for linked nodes
Server:
POST /api/account/station, a batch of at most 20StationEdits.NeedsReviewis computed per node from the cached surface, as inhandleAntennaClaimSubmit.Ingestor:
via='link', authority time);NewerApprovedQuerytie-break;account_id,link_id,viacolumns;removeStationData.Frontend: the bulk editor (§5.5); the admin queue shows "via account link, proven ".
Tests:
autoApproveProven/autoApproveDetails/needs_reviewmatrix applies to link claims unchanged.contactAdminabsent from every account response (reflection).removeStationData.Perf: a 20-node batch is one command and at most 20 small transactions; there is no change to
/station,/api/nodesor the profile path.Docs:
docs/user-guide/owner-account.md;configuration.md,config.example.json;antenna-height-claims.mdgets a short "with an account" section.7. Open questions for the owner (each with a recommended default)
autoApproveProven,autoApproveDetails,needs_review). A link grants no extra trust.mqtt.owner. Default: defer. It needs the broker that verifies observer JWTs to pass the signed(observer, owner)pair to CoreScope. When it comes, it is offer-and-accept only.bulk-healthas a follow-up. Today every card makes its own/healthrequest.🤖 Generated with Claude Code
dborup commentedon Nov 28, 2026
Owner decisions on the M0 research (2026-11-28)
These answer the 14 open questions. Where an answer differs from the research's default, the line says "changed".
autoApproveProven,autoApproveDetails, the review flag for heights) keep applying to direct per-node claims. (The scope of this for free text and photos is being confirmed; see the next comment.)🚫name prefix may sign in.mqtt.owner: deferred until the broker can pass on the verified pair. Then it is offer-and-accept only.bulk-health.🤖 Generated with Claude Code
dborup commentedon Nov 28, 2026
Decision 7, clarified (owner, 2026-11-28): Edits through an account link are approved without an administrator for structured values only:
Free text and images still go to the administrator, even through an account:
contactPublicand the installation photo (#1017).🤖 Generated with Claude Code
fix(lint): declare the MyNodes and Account globals for eslint no-undef (
reviewfix(account): revocation never waits, a proof redeems once (#1018…
Merge pull request #1020 from dborup/feat/1018-m1-owner-account-signin
dborup commentedon Nov 29, 2026
M1 merged in #1020. Owner decision 2026-11-29 on decision 13: contact-card sign-in (a freshly signed self-advert export, server code in the name, timestamp freshness check) is not part of M1. It becomes a later milestone here, once the official app's export has been tested on a real phone.
dborup commentedon Nov 29, 2026
Owner decision (2026-11-29): M2 linking — one click in the browser
Input from a user: claim repeaters by logging in to them (the MeshMapper model), with no manual renaming, and have it work across the user's devices (the account from M1 already gives the cross-device part).
Approved direction for M2 (node linking): the browser does the whole proof in one click.
CMD_SEND_LOGIN→LOGIN_SUCCESS, then CLI lines asCMD_SEND_TXT_MSGto the repeater).75b04ef).Why the proof still goes through an advert: the server cannot observe the admin login itself, and a browser's "I logged in" can be forged. The signed advert heard by the observers is the proof the server can check.
Not chosen now (possible later):
owner.info(120 chars, readable withANON_REQ_TYPE_OWNER,examples/simple_repeater/MyMesh.cpp:165) would avoid renaming, but the reply is encrypted to the requester, so it needs a MeshView radio on the air that sends the request.The M2 plan should cover: Web Bluetooth/Serial support (Chrome, Edge, Brave), the admin password never leaving the browser, failure and rollback if the rename-back fails, radio settings never touched remotely, and the 375×560 flow.
🤖 Generated with Claude Code
dborup commentedon Nov 29, 2026
Addendum to the M2 decision above (owner, 2026-11-29): the manual flow stays. The one-click browser flow is an addition, not a replacement.
🤖 Generated with Claude Code
dborup commentedon Nov 29, 2026
Owner decision (2026-11-29): also support an admin-login claim, as a weaker tier
After comparing with MeshMapper (its app logs in to the repeater as admin through the companion, asks for the admin-only access list (ACL), and reports "admin login + ACL answered" to its server), the owner wants MeshView to also support that way of linking a repeater, as a separate, weaker tier. The signed-advert proof (manual, or the one-click browser flow) stays the verified way.
How it works (M2): in Chrome, Edge or Brave the browser logs in to the repeater as admin through the owner's companion over Web Bluetooth or Web Serial (
CMD_SEND_LOGIN), requests the ACL, and reports the result to the server. The companion must reach the repeater over the mesh (direct or via repeaters), as in remote management. No renaming.Why it is weaker: the server cannot check it. The login reply and the ACL reply are encrypted between the repeater and the companion, so a modified client could report a login that never happened.
Rules:
The M2 plan should cover the UI wording for both tiers, how a self-reported link is shown on the node page (if at all publicly; ownership stays non-public per decision 4), the admin view, and tests for rule 2 and rule 3.
🤖 Generated with Claude Code
dborup commentedon Nov 29, 2026
Owner decision (2026-11-29): default admin passwords and takeovers (M2)
The weak point is not the proof but the password. A signed advert proves that someone controls the node, not that they own it. Repeater firmware ships with the admin password
password(firmware/examples/simple_repeater/MyMesh.cpp:32-33,ADMIN_PASSWORD, and the same in manyvariants/*/platformio.ini). Anyone within reach of a repeater that still has it can log in through remote management, rename it with a link code, send an advert and pass every proof we have (manual, one-click or self-reported). This applies to every claim method, MeshMapper's included.With decision 5 as written ("one owner per node, newest wins"), such a person would take over a node from its real owner.
Required in M2:
password, tell the owner to change it, and link to the guide. Never store or send the password.The M2 plan should give the window length, the notification wording, what the node page shows during a contested change, and tests for: takeover with no objection, objection with a fresh proof, and a self-reported link against a verified owner.
🤖 Generated with Claude Code
dborup commentedon Nov 29, 2026
Owner decision (2026-11-29): several owners per node (replaces decision 5)
A user confirmed how MeshMapper links repeaters and pointed out its main advantage: more than one owner can be registered on a repeater. Many Danish repeaters are run by a club or by two or three people together. The owner decided that MeshView follows suit.
Decision 5 ("one owner per node, newest wins") is replaced by:
password.The M2 plan should cover: the cap and what happens at the cap, the change log, the objection flow and admin view, how the #1017 station-data fields behave with several editors (last write wins, with history), and tests for each rule.
🤖 Generated with Claude Code
adminopenclaw8-sketch commentedon Nov 29, 2026
Research (M0) — CS-Macmini #1018 M2
This is the plan for milestone M2 of #1018: linking repeaters and room servers to an owner account. It is research only. I wrote no code in the repo, made no commits and opened no PR. Nothing was sent to a live instance, a broker or a radio.
It covers every owner decision from 2026-11-29:
Sources and labels
origin/master4cca61fc, read withgit show/git grep75b04ef0(2026-11-14), the localfirmware/clonetwinoak/meshguide.dk9a5d7f5, WTFPL v2 (LICENSE:1-3)liamcottle/meshcore.jsaf77cb0, MITlogin,sendBinaryRequest,signMeshMapper/MeshMapper_Flutter_Appbc1b8d6, MIT; wikif9528a7The prior-art repos were cloned into a scratch directory and read only. None of their code was run.
How to read the tags:
file:line. Firmware paths are underfirmware/.1. Conclusions
CMD_SEND_LOGIN(26), thenCMD_SEND_TXT_MSG(2) to sendget name,set name …andadvertas remote CLI.CMD_SYNC_NEXT_MESSAGE(10) reads the replies, andCMD_LOGOUT(29) ends the session.CMD_SEND_LOGINplusCMD_SEND_BINARY_REQ(50) withREQ_TYPE_GET_ACCESS_LIST=[0x05, 0, 0]. The repeater answers it only to an admin.repeater_admin_models.dart:207-213).examples/simple_repeater/MyMesh.cpp:102-110) [K]. The UI must say "no answer: wrong password, or the repeater is out of reach". It must not say "wrong password".ANON_REQto the repeater (src/helpers/BaseChatMesh.cpp:603-621) [K].:611-616) [K]. A longer repeater password can never log in remotely, so the page must warn about it.advert, sent at least 2 s after the first.src/Mesh.cpp:418) [K].cmd/ingestor/advert_apply.go:31,113) [K].advert, distant observers keep showing the coded name until the next flood advert. The default interval is 47 h (simple_repeater/MyMesh.cpp:905) [K].CMD_SYNC_NEXT_MESSAGEremoves them (companion_radio/MyMesh.cpp:440-472,1415-1423;MyMesh.h:61-62) [K]. The browser must show those messages to the owner locally, or they are silently lost to the phone app.passwordis real and everywhere. [K]/[T]simple_repeater/MyMesh.cpp:32-33.grepovervariants/*/platformio.inifinds 288ADMIN_PASSWORD=definitions in 89 files, and every one is"password".MyMesh.cpp:112-128) [K]. Afterwards that companion can log in with a blank password (:92-99). An intruder keeps access after one login.node_antenna_claims(internal/dbschema/dbschema.go:1434-1449) [K]. Addingaccount_id,link_idandviato that row is the change log. With several editors, the order key becomes edit time ("last write wins, with history"). M0's "authority time = link proof time" rule existed only to defend a single owner against a takeover, and can be dropped (open question 7).2. Firmware: companion protocol and remote admin [K]
2.1 The commands the browser needs
CMD_APP_START(1)RESP_CODE_SELF_INFO(5): carries the companion's public keycompanion_radio/MyMesh.cpp:9,80CMD_ADD_UPDATE_CONTACT(9):pubkey(32) type flags out_path_len …;0xFF= floodERR_CODE_TABLE_FULL(100 contacts,MyMesh.h:57-58)MyMesh.cpp:1328-1348; MGserial.js:365-377. MM never overwrites an existing contact, because "an add would wipe the learned route" (repeater_admin_session.dart:542-564)CMD_SEND_LOGIN(26):pubkey(32) ‖ passwordRESP_CODE_SENT(6)[flood, tag(4), est_timeout(4)];ERR_CODE_NOT_FOUNDif not a contactMyMesh.cpp:1577-1597PUSH_CODE_LOGIN_SUCCESS(0x85)[is_admin, prefix(6), server_ts(4), acl_perms, fw_level];PUSH_CODE_LOGIN_FAIL(0x86) only for a reply in an unexpected shapeMyMesh.cpp:694-722; MM refusesfw_level == 0(pre-v1.9) (repeater_admin_session.dart:154-158)CMD_SEND_TXT_MSG(2):[txt_type, attempt, ts(4), prefix(6), text]RESP_CODE_SENTMyMesh.cpp:1132-1179PUSH_CODE_MSG_WAITING(0x83), thenCMD_SYNC_NEXT_MESSAGE(10) →RESP_CODE_CONTACT_MSG_RECV_V3(16)[snr, r, r, prefix(6), path_len, txt_type=1, ts(4), text]RESP_CODE_NO_MORE_MESSAGES(10) when emptyMyMesh.cpp:440-472,1415-1423; MGremote-cli.js:191-213CMD_SEND_BINARY_REQ(50):pubkey(32) ‖ [0x05, 0, 0]PUSH_CODE_BINARY_RESPONSE(0x8C)[0, tag(4), entries…], each entryprefix(6) perms(1)MyMesh.cpp:750-760,1720-1745; MMrepeater_admin_models.dart:240-268CMD_LOGOUT(29):pubkey(32)MyMesh.cpp:37,1748-1750Framing:
'<' u16le len payloadand incoming ones'>' u16le len payload(MGserial.js:86-112,599-601; MJconstants.js:5-8).6e400001-…, with RX…02for writes and TX…03for notifications. One GATT write is one frame, with no header (MGble.js:23-25,44-47,77-81; MJconstants.js:10-14).ble.js:62).2.2 What the repeater does
PERM_ACL_ADMIN. A wrong password gives no reply. A blank password works for a key already in the ACLsimple_repeater/MyMesh.cpp:90-143(blank at:92-99, wrong at:107-110):112-128; ACL size 32, oldest evicted (src/helpers/ClientACL.h:44-45,ClientACL.cpp:97-115)is_admin([6]), the permissions ([7]) andFIRMWARE_VER_LEVEL([12]):134-143:702:710-711,736-739TXT_TYPE_PLAINCLI message is acked. ForCLI_DATAthe companion replaces the app's timestamp with its own clock, so every resend executes again:717-731; companionMyMesh.cpp:1149-1151; this is why MG sends CLI as PLAIN (remote-cli.js:16-30)set name X: refuses[ ] \ : , ? *, stores 31 bytes, saves, repliesOKorError, bad charssrc/helpers/CommonCLI.cpp:22-28,530-537;CommonCLI.h:29get namereplies> NAME, and works remotely (no serial-only guard)CommonCLI.cpp:716-717advert= a flood advert after 1.5 s, under the repeater's default scope;advert.zerohopis checked firstCommonCLI.cpp:202-209;MyMesh.cpp:1033-1044password <new>command echoes the new password back over the meshCommonCLI.cpp:267-272set freqis serial-only, but other radio and routing commands (tempradio,repeat,lat/lon, …) work remotelyCommonCLI.cpp:607(freq guard);:252(tempradio),:538-549(repeat, lat, lon)[0x05, 0, 0]. Every entry withperms != 0(6-byte prefix plus perms), as many as fitMyMesh.cpp:262-273sync_since), CLI is admin only, and the ACL reply lists admins onlysimple_room_server/MyMesh.cpp:202-215,446-472;BaseChatMesh.cpp:610-6132.3 Prior art: what is done and what is not
set name. It sends noadvert: "the new name spreads at the device's next advert" (MGflow.js:523-572).clamp(est_timeout + 3 s, 5 s, 20 s)(MGremote-cli.js:46-48,93-122).:124-132) and refuses a guest login (app.js:481-485).password(index.html:236).login,sendBinaryRequestandsign. It has no LOGIN_FAIL handler and no ACL parser (MJconnection.js:405-406,1624-1688,1847-1914).isProven, MMrepeater_admin_models.dart:205). It finds its own entry by the companion's key and discards the list, which is "never shown, never uploaded" (repeater_admin_session.dart:220-281).proof: {login, acl, perms, fw_level}(repeater_admin_models.dart:207-213).too_many_admins,repeater_admin_api.dart:72-73,240-256), but the value is not in the client. The server code is not public, so how MeshMapper verifies a claim is unknown.advertafter a rename. The rename-back in §4.3 is new ground.3. CoreScope: what M2 builds on [K]
internal/dbschema/dbschema.go:1491-1507account_proofs.kindalready allows'link', andredeem_hashmust be NULL for it. No schema change is needed for link codescmd/ingestor/accounts.go:124-143;main.go:1139-1142Flags.Chat. M2 adds repeater and room adverts forkind='link'cmd/ingestor/accounts.go:147-178vsantenna_claims.go:123-143internal/channelregistry/account/account.go:203-261Validate. New ops go hereaccount.go:58-61IsRevocation, so a stolen session cannot lock an owner indbschema.go:1434-1449,1562-1572;antennaclaim.go:61-66,262-276approved_by ∈ {auto, admin, owner}, per-part ops and the in-force flags.NewerApprovedQuerycmd/server/readonly_invariant_test.go:220docker/nonroot.sh:56account-requestsalready exists, and M2 reuses itgit grepContent-Security-Policyand noPermissions-Policy, so a top-level page may use Bluetooth and Serial4. Design
4.1 Tiers and wording
verifiedself_reportedThe label never says "verified" for the second tier (rule 1). A verified proof by the same account replaces its own self-reported link, and the link history keeps the old row.
4.2 Schema (ingestor-owned,
internal/dbschema, joinsAccountTables)Notes on the schema:
status='active'rows for the pubkey with the partial index. SQLite cannot express it as aCHECK.account_id,link_idandvia ∈ {advert, link}as nullable columns onnode_antenna_claims, with the existing self-healingADD COLUMNpattern, as in M0 §4.4.map[string]interface{}. Every response is a named struct.4.3 Proof paths
A. Manual verified link (M2a): the same rule as M1 sign-in.
POST /api/account/links {pubkeys:[…≤20]}issues one code. It writes onelinkcommand, and the ingestor inserts oneaccount_proofsrow per pubkey (kind='link', 24 h TTL).set name <suggested>(within that node's budget, usually 23 bytes with a position), thenadvert, then the old name again.B. One-click (M2b): the browser types A for the owner.
The state machine lives in a new
public/meshcore-link.js: a pure frame codec plus the flow, with the transport injected.window.isSecureContext && ('bluetooth' in navigator || 'serial' in navigator). If neither exists, show only the manual flow (§4.8).requestDevicewith the NUS filter, orrequestPort. ThenCMD_APP_STARTshows "Connected to<name>(a1b2…)".ERR_CODE_NOT_FOUND, add the repeater withCMD_ADD_UPDATE_CONTACT: the key from CoreScope, type repeater or room,out_path_len=0xFF. The page says "adds<node>to your companion's contacts". It never overwrites an existing contact (MM's reason above).<input type=password autocomplete=off>, capped at 15 bytes with a warning.CMD_SEND_LOGINand waitclamp(est+3 s, 5 s, 20 s), up to 3 attempts.is_admin=0: "Logged in as guest: admin is needed", then stop.SEND_LOGINframe is written.password, show the warning (§4.7).POST /api/account/links {pubkeys:[pk], method:"browser"}. The code lives 15 min.get nameand parse> NAME. ThependingRestore {pubkey, originalName, code, at}record goes intolocalStoragebefore anything changes.set name <SuggestedName(original, code, budget)>must returnOK.Error, bad charsaborts the flow.advertmust returnOK - Advert sent.createStatusPoller. After 60 s with no proof, sendadvertonce more. Give up after 3 min.finally, whether the proof came or not. Wait until at least 2 s have passed since the last advert, sendset name <original>and expectOK, then sendadvert.CMD_LOGOUT. ClearpendingRestoreonly after the restoreOK.Command allowlist (rule: radio settings are never touched):
^get name$,^set name [^\[\]\\:,?*]{1,31}$,^advert$.[5, 0, 0].CLI sending:
TXT_TYPE_PLAINwith a monotonic timestamp ofmax(now + companionOffset, last + 1), as MG does. A resend is then a retry and never a secondadvert(§2.2).C. Self-reported (M2c). Steps 1–4 of B, then
CMD_SEND_BINARY_REQ [5, 0, 0].(perms & 3) == 3.POST /api/account/links/self-reported {pubkey, companionPubkey, perms, fwLevel, aclHasCompanion: true}.companionPubkeyequals the account'sidentity_pubkey(open question 4);fwLevel ≥ 1;perms & 3 == 3;What happens if the rename-back fails:
pendingRestoresurvives inlocalStorage. Every page load and#/accountshows a banner: "<node>still has the code in its name. Restore name". That reconnects, asks for the password again (it was never stored), then runs steps 10–11nodesstill contains a consumed link code of this account. That costs one indexed lookup per active link, and needs no writeset namerefusedset name <original>+advertin the MeshCore app's remote admin4.4 Co-owner rules (replacing decision 5)
maxOwnersPerNode(default 5), counting both tiersended_by='verified_at_cap', with a notice to that account). If there is none, it is refused with "This node already has 5 owners. An owner can leave, or ask the administrator." The check runs when the code is issued and again at proof time (a race)leave(self) and the admin'sremoveexist.leavecounts as a revocation, so it is never budget-blockedstatus='upgraded'and a new verified row is added. It does not count twice4.5 Notices and objections
notices-readop that carries the latest seen id.ended_by='admin'). It offers "also revoke the station data this link put in force" through the existing per-claim revoke.objection_decidednotices.4.6 Admin view (
requireAPIKey)Endpoints:
GET /api/admin/account-links?status=&tier=&pubkey=&objection=open&limit=100&before=, paginated;POST /api/admin/account-links/{linkId}/remove;POST /api/admin/link-objections/{id}/decide {decision}.Each row shows:
#/packets/{hash};Placement: a new "Owners" section next to the antenna-claim queue in
antenna-claims.js. The same list filtered totier=self_reportedgives rule 4's "every self-reported link visible to the admin".4.7 Default password
if (password === 'password'), after a successful admin login.password <new>(notset password)." It links to the guide.password <new>itself. The repeater echoes the new password over the mesh (CommonCLI.cpp:267-272), and the owner decision says the password is never handled beyond the login.4.8 Browser support
brave://flags/#brave-web-bluetooth-api, with the error "Web Bluetooth API globally disabled" special-cased (MGapp.js:227-231,flow.js:56-62).4.9 UI
At 375×560 (one column, 16 px gutter, primary button at the bottom):
aria-liveline per step: Logged in → Code set → Advert sent → Heard by MeshView ✓ → Name restored ✓.Desktop: the same steps in one 480 px card. The owner roster is a small table.
Node page: public content is unchanged unless at least one owner opted in. Then it shows "N verified owners", counting verified links only (decision 4 and rule 6). Self-reported links are never counted publicly.
Deep links:
#/account?tab=links;#/account?tab=links&node=<pubkey>(owner card);#/account?tab=notices.4.10 Station data with several editors (M2d)
created_at, thenrequest_idas the tie-break. Every edit is a claim row withaccount_id,link_idandvia='link'.GET /api/account/nodes/{pubkey}/history, for owners only. Each entry is{at, by: displayName | "Co-owner A" | "advert claim", parts, status}. It never includescontactAdmin, and a reflection test covers that, as in M1.approved_by='auto';contactPublicand the photo go to review (the decision-7 clarification);4.11 Rate limits (server in-memory, plus ingestor checks inside the transaction)
writesPerHourwindow.leaveandnotices-readare never charged4.12 Perf (rule 0)
observeAdvertwidens from chat to repeater and room adverts. The cost stays one map lookup when anything is pending, and nothing otherwise. The scan per key is bounded (4 codes × 31 bytes). One shared pending map serves claims and accounts./api/accountgrows by the account's links, at most 200, read throughidx_links_account;map[pubkey]intof opted-in verified links, bounded by the active links, the same pattern asownerStations. It is not added to/api/nodesorbulk-health;observeAdvertwith 0, 500 and 5,000 pending codes;/api/accountwith 200 links;5. Milestones and tests
M2a: verified linking (manual), co-owners, notices, objections, admin view.
Build:
link,leave,link-visibility,notices-read,object,objection-withdraw, and adminremove/decide;Tests:
isNew=falsenever proves;Validate);readonly_invariant_testgets the three new tables plus a sensitivity test;scripts/e2e-shards.json.Mutants: drop the cap check, drop the eviction order, let
leavetake a link id.M2b: one-click flow.
Build:
public/meshcore-link.js(codec, transports, flow) with no npm dependency, prior art credited in its header.Tests with a fake companion in Node
vmand in Playwright that emulates the frames of §2.1 byte for byte:Error, bad chars;pendingRestorebanner → restore;set freq,password,tempradioand CMD 11 (CMD_SET_RADIO_PARAMS);localStorage/sessionStorageand asserts the typed password never appears;passwordonly;Browser validation needs a real companion and repeater (open question 13).
M2c: self-reported tier.
Tests:
fwLevel ≥ 1;autoApproveDetailson (rule 3);M2d: station data through links plus the change log (after #1047).
Tests:
contactAdminabsent from history (reflection);Customizer (rule 8): none.
accounts.maxOwnersPerNode,newOwnersPerNodePerDay,probationHoursandobjectionDaysare operator settings inconfig.json, read by exact key.6. Open questions for the owner (each with a recommended default)
SELF_INFOkey =identity_pubkey). Default yes.fw_level ≥ 1(MeshMapper'sisProven).TXT_TYPE_PLAINwith a monotonic timestamp, as meshguide, so a retry never sends a second advert.advertafter the restore. Otherwise the coded name can stay visible for up to 47 h.ANON_REQpackets (the companion's login request heard on air). Default no: it shows an attempt was made, not that it succeeded.🤖 Generated with Claude Code
dborup commentedon Nov 29, 2026
Owner decisions (2026-11-29) on the M2 plan's 16 open questions
The M2 plan ("## Research (M0) — CS-Macmini #1018 M2") is approved. The owner went through the questions one by one. 15 defaults stand; question 2 is changed.
SELF_INFOkey =identity_pubkey).fw_level ≥ 1.TXT_TYPE_PLAINwith a monotonic timestamp, so a retry never sends a second advert.advertat least 2 s after the restore.M2a (verified manual linking, co-owners, notices, objections, admin view) can start.
test(e2e): tap a control only once it is no longer :active
12 remaining items
Merge pull request #1070 from dborup/feat/1018-m1b-signed-nonce
dborup commentedon Dec 1, 2026
M1b (sign in with a signed nonce over Bluetooth/USB, shared
public/companion-link.js) merged in #1070 (841ce7c) after independent reviews and green CI. Owner decision: merged before the full hardware checklist — Chrome + Bluetooth passed on staging; the owner tests the remaining items later. M2b (#1067) is tested on staging before merge.Merge origin/master into feat/1018-m2b-one-click-link (#1018 M2b)
dborup commentedon Dec 2, 2026
Owner decision (M2b, after a hardware test): for the one-click link, a successful admin login to the node through the companion is enough proof of ownership. No rename, no code in the name, no advert. The server cannot verify the login itself; this is accepted because ownership is low-stakes (e.g. setting the antenna height). The default and empty admin passwords are refused, the proof kind is recorded (
admin-login), and the manual code-in-name flow stays. #1067 is being reworked accordingly, together with a fix for a second login that got no answer right after a failed run.feat(account): link a node by admin login, self-reported (#1018 M2b)
feat(account): one-click link by admin login only; set the companion …
fix(account): self-reported links never block a verified proof; relin…
dborup commentedon Dec 2, 2026
Owner decision (2026-12-02) for M2c/M2d: owners linked by the one-click admin login (tier
self_reported) may write station data too, the same as verified owners. Ease of use comes first; the risk of someone scripting a claim on a node they do not own is accepted. Verified and self-reported owners stay distinguishable in the data (proof kind recorded).fix(account): build the Edit station data link from an encoded key (#…
fix(accounts): probation off by default (#1018 M2d)
ci: retrigger (#1018 M2d)
dborup commentedon Dec 2, 2026
Owner hardware test (2026-12-02): the one-click link by admin login (#1067, M2b) works with a real companion over Bluetooth on staging. #1067 merges once CI is green (the only red job is the known
TestHiddenFilterPacketsNoExtraAllocsflake, fix in progress).Merge pull request #1067 from dborup/feat/1018-m2b-one-click-link
dborup commentedon Dec 2, 2026
M2b merged via #1067 (
9687204e): one-click linking by admin login (self-reported tier), owner-tested over Bluetooth. Next: M2d (#1095, station data through links) is in review.fix(accounts): objections and probation survive a link upgrade (#1018 …