Repository navigation
Conversation
…1018 M2d) A linked owner (verified or self-reported, owner decision 2026-12-02) edits a node's station data from the node page with no code or advert: POST /api/account/nodes/{pubkey}/station queues account op station-set; the ingestor writes claim rows with account_id, link_id and via='link' (self-healing ADD COLUMN), last write wins by created_at then request_id. Structured values are auto-approved; new contactPublic or hardware-model text, probation and open objections go to admin review. GET /api/account/nodes/{pubkey}/history is the owners-only change log, never with contactAdmin. The shared form gains the #1017 M3 inputs (TX power, cable loss, direction, beamwidth, battery, solar). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he viewer (#1018 M2d) Kills two mutants that survived the first round: probation without the 'joined after another owner' condition, and history labels that count the viewing owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1018 M2d) The XSS sink check refused setAttribute('href') fed by a helper taking the pubkey; the link is now built inline from the encoded key, as the admin list does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rapport — CS-Minimax PR#1095 #1018 — head c5c397aStatus: M2d is done and CI is green on every job. The PR stays a draft, stacked on #1067 (head Evidence: [T] = a test or CI run in this PR · [A] = a judgement or assumption · [K] = read in the code or the issue. Requirements
Mutants: 21 in total, all killed. 15 in Go (M1–M15), 5 in JS (J1–J5) and 1 E2E mutant (E1). M5 and M12 survived the first round; I strengthened the tests and both were killed after that. [T] Rules that always apply
Local runs
CI per job (run 46916682532, head
|
Owner direction (M2 decisions 2026-11-29, question 2): easy for owners. accounts.probationHours now defaults to 0 (off). The mechanism stays behind the config key; an operator turns it on with e.g. 72. Out-of-range values fall back to the default (off). config.example.json and the configuration guide updated; tests cover probation on via config and the default off. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fix round — CS-Minimax PR#1095Review feedback addressed (commit
Nothing else changed. Local: the account package, ingestor and server station/account tests pass, and CI is pending because of the GitHub Actions outage: no workflow run has started for 🤖 Generated with Claude Code |
Review — CS-VM3 PR#1095 — head cc7771aDom: REQUEST CHANGES Scope: the M2d commits on top of The M2d core is sound and well tested: last write wins, the tie-break, the read/write split, the change log without Findings
The points of the task
Golden path (my own walkthrough, the real server and ingestor)I ran the merged-tree binaries on a CI-prepared copy of
No step was impossible, and nothing had to be closed except the existing search dropdown. See F7 for the status line under the bottom menu. Desktop: the PR's Tests (merged tree unless noted; linux/amd64, Go 1.27.1, Node 22)
Mutants (mine)
Probes (not mutants, failing on the unmodified head): What I did not verify
|
…on-data-via-links
…M2d) Review PR#1095 fix round 2: - F1: an upgrade (a self-reported link proven by advert) carries the open objections of the old link to the new one, so they keep forcing review and an admin uphold removes the active link. - F3: probation counts from the account's first link in an unbroken upgrade chain (account.JoinedSQL), in the ingestor's decision and in the server's reviewUntil. - F4: TestStation1018_NoProbationWithoutAnEarlierOwner runs with probation on, so the "earlier owner had not ended" condition is pinned. - F5: the station route lets a clear-only edit through without a position; a hidden node still answers 404. - F6: the change log omits a co-owner's public contact while it waits for review; the author still sees their own. - F7: the "Saved." line is scrolled clear of the top bar and bottom nav after Save, again once the Station block above it is drawn. - F2: the owner guide says probation is off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Follow-up to "## Review — CS-VM3 PR#1095": |
Relates to #1018 (stacked on #1067)
#1018 M2d: station data through owner links, plus the change log.
Plan (this PR is the whole milestone)
internal/channelregistry):station-set, carrying anantennaclaim.Edit(height part and/or details part);Editis factored out of the claim command, so one validation serves both paths;ProbationSQLandObjectedSQLare shared by the server and the ingestor;accounts.probationHours.internal/dbschema, ingestor-owned): self-healingADD COLUMNaddsvia,account_idandlink_idtonode_antenna_claims(CHECKed), plus an index on(pubkey, created_at).AssertReadygets a transient item for them.cmd/ingestor/accounts_station.go): applies the edit in the account write's transaction (the session generation is checked):account_id,link_idandvia='link';created_at, thenrequest_id: a part is taken only when no row in force for it was edited later; an edit left with nothing in force is superseded;cmd/server/accounts_station.go):POST /api/account/nodes/{pubkey}/stationuses the claim route's own checks (checkEdit, factored out), the claim's identical 404 for hidden, unknown and unpositioned nodes, and the account write windows. It answers 202{requestId, review?};GET /api/account/nodes/{pubkey}/historyis for the node's owners only;doneread for a station edit drops the 30 s claim snapshots, so the node page shows the edit at once.#/nodes/{pk}?section=node-antenna./station. Before this, those values could only be carried forward, never typed, so "fill in everything in one sitting" was not possible.public/account-station.js.Approval rules, and how they apply to self-reported owners
approved_by='auto'('owner'for a clear-only edit)contactPublic, or a new hardware-model text underotheraccount.ReviewClaimID)probationHours(default 0 = off; an operator turns it on, e.g. 72)viastays NULL, and the auto-approve switches and height review apply as beforeThe review rows are ordinary
provenclaims, so the existing admin queue approves or rejects them. An admin approval follows the same rule as any claim: a later approved edit wins (NewerApprovedQuery).Decisions I made (no one could answer questions)
accounts.probationHours: 0), per the owner's M2 direction "easy for owners" (decisions 2026-11-29, question 2). The mechanism stays behind the config key (e.g.72turns it on);config.example.jsonand the configuration guide say so. Fix round30bfbc33.master(stacked, see the top), so CI runs.created_atandproven_atof a link row, so link edits and advert claims are ordered on one scale.Rate limits (§4.11)
writesPerHourglobally andwritesPerHourPerAccount.Perf (rule 0)
Tests (written first; red before, green after)
cmd/ingestor/accounts_station_test.go:cmd/server/accounts_station_1018_test.go:probationHourson (via config) and off (the default);contactAdmin(or account/link id) in the history types;doneshows the edit at once.internal/channelregistry/account/station_test.go,internal/dbschema/antenna_claim_link_columns_test.go: the op rules and the migration (old rows untouched, CHECKs, idempotent,AssertReady).test-1018-m2d-station.js(vm, the real files): field bounds, cross-field visibility, the body, the owner texts, history rows, save and error mapping.test-1018-m2d-station-e2e.js: the owner's golden path with the real server and ingestor, on a copy of the fixture: sign in → one-click link (fake companion) → Edit station data → fill in everything → Save → the Station block shows it, the change log lists it, and a signed-out visitor sees it. Runs at 375×560 light with real taps and at 1280×900 dark. Added toscripts/e2e-shards.json(shard 3). The broker and process harness is shared intests/e2e-real-stack.js.Mutants (all killed)
M1 LWW ignores a newer row · M2 tie-break dropped · M3 tie-break inverted · M4 probation ignored · M5 probation without "joined after" (survived round 1; test strengthened in
4e55e6b5) · M6 objection ignored · M7 self-reported not auto-approved (old rule 3) · M8 free text auto-approved · M9 no per-node limit · M10contactAdminfield in history · M11 history reads the admin contact · M12 labels count the viewer (survived round 1; fixed in4e55e6b5) · M13 no owner check · M14 no snapshot drop ondone· M15 history order without tie-break · J1 TX bound 38 · J2 beamwidth without direction · J3heldFreeTextnever · J4 save ignores an ingestor error · J5 typed values not sent · E1 (E2E) Station block not reloaded after Save.Customizer (rule 8)
None.
accounts.probationHoursis an operator setting inconfig.json, documented inconfig.example.jsonanddocs/user-guide/configuration.md. The owner guide gains a "Station data for your nodes" section.🤖 Generated with Claude Code