Skip to content

chore: merge master into integration/registry-cache-sync - #4926

Merged
dr-bonez merged 12 commits into
integration/registry-cache-syncfrom
merge/master-into-registry-cache-sync
Nov 24, 2026
Merged

dr-bonez merged 12 commits into
integration/registry-cache-syncfrom
merge/master-into-registry-cache-sync

Conversation

@helix-red

@helix-red helix-red commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge this with "Create a merge commit", not "Squash and merge". It brings master (55d207bd8) into integration/registry-cache-sync so #4898 can merge again. A squash would replace the 11 master commits with one new commit on the integration branch. #4898 would then show all of them as its own changes, and the next master merge would have to reconcile them a second time. Recent PRs into this branch have landed both ways (#4905 as a merge commit, #4903 and #4921 squashed), so the method has to be chosen deliberately.

What it changes. Nothing beyond master's own commits and the conflict resolutions below. The changes from master are already reviewed and merged there: #4907 (sanitized package markdown), #4856 (CLI bindings), #4909, #4849, #4847, #4846, #4844, #4733, and StartWRT's #4828 and #4628.

Conflict resolutions in the merge commit:

Implementation diff: not meaningful for this PR. Against its base, the diff is master's 11 commits (+10,102 / −1,455 lines in 302 files, including tests, docs and generated files). The resolutions above are its only content of its own.

Testing (in a Helix build cache, on f1e19c00f)

  • make -k generated-artifacts-check: the man pages, TS bindings and MCP catalog regenerate with no drift. feat(cli): add CLI bindings for every operator-drivable RPC #4856 added many CLI bindings, and the integration branch added server.registries.package.
  • make start-core-test: 1978 passed, 0 failed.
  • make start-sdk-test: 433/433 SDK jest tests and 542/542 start-core TS tests.
  • npm run build:deps, then check:rpc-clients (100), check:i18n, check:shared (139), check:marketplace (14), check:ui (345), check:brochure and check:setup: all pass.
  • Merges cleanly with integration/registry-cache-sync at 817fed622 and with master at 55d207bd8. CI on this head was still running at hand-off, with no failures reported.
  • None of this runs the integration branch on a StartOS box or VM. That question is still open on fix(start-os): fast, per-language registry sync and a lighter browser cache #4898.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

only21mil and others added 12 commits November 23, 2026 10:53
* fix(start-os): install onto drives with 4096-byte sectors

The installer wrote its GPT and read the existing table for a preserve
install at fixed 512-byte LBAs. On a drive with 4096-byte logical
sectors the header landed inside LBA 0, the kernel found no partition
table, and the install failed after the drive's old table had already
been overwritten.

The installer now resolves the drive's logical sector size once, before
quiescing or writing anything, through the same resolver the backup
drive formatter uses. A drive with a size GPT cannot use is refused with
the formatter's existing message.

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

* fix(start-os): say what the 4Kn sector-size check guarantees

The check runs on the GPT path, before the installer quiesces the drive
or rewrites its partition table. An MBR preserve install does not reach
it, and earlier steps that mount existing partitions read-only can
replay a filesystem journal, so the entries no longer promise that
nothing is written.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(start-wrt): let the K1 Ethernet MAC accept full-size VLAN-tagged frames

The vendor k1x-emac driver never programs MAC_MAXIMUM_FRAME_SIZE, so the
MAC keeps its reset default of 1518 bytes: the untagged maximum. A
VLAN-tagged full-size frame is 1522 bytes, and the MAC drops it in
hardware, before the driver sees it, so rx_dropped never moves. On a port
set to "Managed switch" this breaks every profile: pings, DNS and small
requests work, while any TCP connection stalls on its first full-size
segment. A house-router swap on a managed-switch trunk hit exactly that.

Add a kernel patch (spacemit patches-6.18/0005) that sets the limit to
mtu + ETH_HLEN + 2 * VLAN_HLEN + ETH_FCS_LEN (1526), as the mainline
k1_emac driver does. The jabber sizes (reset default 1536) already cover
it. Untagged ports are unaffected.

Verified on a K1 trunked to a TP-Link ES208G, with a StartOS server on a
profile port:
- Before: ethtool -d read 0x5ee (1518) at 0x10c. Pings with 1468 bytes of
  data (1518-byte tagged frame) passed; 1469 and 1472 failed 100%, each
  lost reply adding one to rx_len_oversize_pkts and rx_1519_plus_pkts.
- After sysupgrade to an image with this patch: the register reads 0x5f6
  (1526). 1468/1469/1472-byte pings all 10/10, with rx_1519_plus_pkts
  counting the replies and rx_len_oversize_pkts at 0. A 2.2 MB HTTPS
  transfer from the server crossed the trunk with ~1,400 full-size tagged
  frames and no drops. Settings survived the upgrade and the standing
  smoke checks are green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RJjVAx6ip9jA6pH5N8QxBA

* feat(start-wrt): connect a managed switch through a trunk port

An Ethernet port can now be a trunk instead of carrying one profile. A
trunk is a member of every profile's bridge VLAN tagged, Admin's
included, and carries nothing untagged, so a managed switch behind it
can put each of its own ports on a different profile. StartWRT defines a
port's profile itself everywhere else; a trunk delegates that decision
to the switch's configuration and trusts it, which the UI says before it
lets a port become one. Under such a port the Ethernet page lists every
profile's VLAN ID, the numbers the switch's configuration needs. A
profile created later joins every trunk as well, and a trunk alone turns
bridge VLAN filtering on, moving the `lan` interface onto `br-lan.1` as
the first non-Admin profile does.

Devices behind the switch already appear under the profile of the VLAN
the bridge learned them on, so the Devices list needs no change. A port
becoming a trunk is not a profile change: its devices keep whatever VLAN
the switch gives them, and the link is not bounced. A trunk going back
to a profile is one, and the ethernet.set preview places each device
behind it in the VLAN the bridge FDB learned it on, so the confirmation
names the devices that keep a reservation or published port for the
profile they leave. A device already in the port's new VLAN is not
leaving.

A USB Ethernet port cannot be a trunk: a trunk needs full-size tagged
frames, and no USB adapter has been tested carrying them on the router.
The UI offers the choice only on the router's own Ethernet ports.

On the wire `Port` gains `trunk: bool` (default false), reported by
`ethernet.get` and accepted by `ethernet.set`; `InvalidTrunkPort` (1027)
rejects a trunk with a profile, on the WAN port, or on a USB port.
`trunk.rs` recognises a trunk (every membership tagged) and builds a
port's membership, shared by `ethernet.rs` and `profiles.rs`.

profiles.create with an explicit vlan_tag checked it only against the
bridge-vlan sections, so on a bridge without VLAN filtering Admin's tag
had no section and could be claimed by a new profile; nothing rejected 0
or 4095 either. The check now also reads every profile's tag from the
startwrt config, and 0 and 4095 and above are ReservedVlanTag (1028).
The automatic pick stops at 4094. The web interface never sends a tag;
the RPC accepts one.

StartWRT's version moves to 1.5.0: 1.4.0 is released and this adds a
minor changelog fragment.

Verified on master b04100a (the 1.4.0 release): cargo test for
startwrt, uciedit and uciedit_macros, 968 + 37 passed (opt-level 0, to
fit the build machine); bindings regenerated without drift; check:wrt,
check:i18n:wrt, Prettier and rustfmt clean; changelog validate and
check-version pass against the Start9 tags. On the previous base,
42b4581, which differs only by the 1.4.0 release commits, the version
and these strings' numbers, the riscv64 binary passed verify-isa.sh and
an OpenWrt image was built from it. On a BPI-F3 upgraded to that image
with settings kept, a TP-Link TL-SG108E behind the trunk put a laptop in
Admin or another profile by switch port, carried 1500-byte packets,
recovered from a power cut, and the preview named a device with a
reservation in the profile it would leave. A USB Ethernet adapter came
up in Admin and was refused as a trunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RJjVAx6ip9jA6pH5N8QxBA

* docs(start-wrt): add a guide to connecting a managed switch

"Connecting a Managed Switch" covers when one is needed, how the trunk
works, what can go wrong, choosing a switch, the router side, planning
ports, the switch side, a laptop test, later changes, troubleshooting,
and undoing it. "Managed Switch Notes: TP-Link Easy Smart", under
Reference, maps each step to that firmware's pages and lists its
non-obvious behaviour. The Ethernet and Points of Entry pages, the
architecture page and two FAQ entries place a trunk in the VLAN
isolation model.

The guide was revised after someone other than its author set up a
switch from it alone, and again after three more switches were
installed from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RJjVAx6ip9jA6pH5N8QxBA

* feat(start-wrt): rework the managed-switch port UI

- The port chooser entry is "Delegate", with its icon and Manage
  Profiles' on the start side so neither collides with the checkmark.
- The confirmation is titled "Delegate <port>?", names the port in its
  body, introduces the managed switch it hands the choice to, and
  confirms with "Delegate" rather than "Trust this switch".
- Choosing a profile or Delegate no longer changes the row before the
  user confirms: the preview is built from a copy, Cancel restores the
  chooser's selection, and the table reloads once a save lands rather
  than relying on the edit it made up front.
- The inline VLAN ID list is replaced by a VLAN IDs button that opens a
  VLAN ID -> profile table, shown automatically after delegating.
- The Ethernet help is reorganized to follow the page: WAN and Not
  connected are explained under Port, Delegate replaces the Managed
  switch heading, and WAN changes are described as restarting the
  network, not the router.
- Docs, changelog fragment and all five languages follow.

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

* fix(start-wrt): recognise a trunk by its profile VLANs alone

A port counted as a trunk only while every bridge VLAN membership it held
was tagged. An untagged membership in a VLAN that belongs to no profile,
such as one added by hand in LuCI, made `ethernet.get` report the trunk as
an ordinary port, and new profiles were no longer tagged onto it.

Only profile VLANs now decide: a trunk is tagged in a profile VLAN and
untagged in none, and a VLAN of no profile is ignored. This also leaves
room for router-owned traffic that is not a profile to ride a trunk
untagged, which the access points proposed in #4043 would need for their
management link.

Tests: `trunk_ports` ignores a VLAN of no profile in both directions,
`ethernet.get` still reports such a port as a trunk, and creating a
profile tags it into the new VLAN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RJjVAx6ip9jA6pH5N8QxBA

* fix(start-wrt): preserve Admin VLAN through trunk teardown

Proposed changes for #4628. Extend the existing trunk lifecycle coverage and correct the switch guide's undo and physical-trust guarantees. This review proposal has not been built or tested.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* docs(start-wrt): tighten the trunk-teardown follow-up from review

Follow-up to the review proposal acdb8dc, which keeps VLAN 1 while `lan`
uses `br-lan.1`.

- ethernet.rs: keep a short note on why only a flat bridge may skip an
  empty VID-1 section. The proposal removed the old comment with its stale
  first half; the reason the section must stay once filtering is on (the
  router's own `br-lan.1` and the Admin SSID's runtime AP ports) still
  holds.
- trunk.rs: keep "which profile a device lands in is the switch's
  decision" alongside the new trust note: anything that can send tagged
  frames on a trunk can select any profile, Admin included.
- managed-switch.md, Undoing It: return the switch to its factory layout,
  every used port untagged in VLAN 1 with PVID 1 and the management VLAN
  left at 1, so its settings page stays reachable on the router port's
  profile. A new address follows the same rules as the plan (outside the
  profile's DHCP range), and the old reservation is replaced.
- Run the repo formatter over the new test (`make start-wrt-format-check`
  flagged three `set(...).await.unwrap()` lines).

Verified: the new `set_trunk_lifecycle_preserves_admin_vlan` test fails
with the `lan_uses_vlan1` term removed and passes with it; full
startwrt-core, uciedit and uciedit_macros suites pass (970 + 37, at
opt-level 0 as in earlier runs); `make start-wrt-format-check` clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RJjVAx6ip9jA6pH5N8QxBA

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Matt Hill <9935159+MattDHill@users.noreply.github.com>
Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
… about overlaps (#4828)

* feat(start-wrt): guard profile subnets against the WAN's network

A profile /24 that overlaps the network the WAN is on puts two identical
connected routes on the router. Whichever the kernel installed first wins:
LAN-first takes the router's own Internet down, WAN-first sends replies
to that profile's devices out the WAN, cutting them off from the
dashboard.

The daemon at boot and a new wan ifup/ifupdate hotplug hook run
profiles.resolve-wan-overlap. It moves the LAN owner, and any profile
with no Wi-Fi password, LAN port or inbound VPN server, to the lowest
free /24 in the block from .10 up, through profiles.set so reservations
and VPN peers keep their existing guards. Every other overlap is
reported in system.info and shown on Security Profiles with a nav badge.
profiles.create, a subnet change through profiles.set, and a network
block change refuse a subnet on the WAN's network.

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

* fix(start-wrt): apply the WAN overlap guard to lan.ipv4-set

Adopts the proposal on #4828. The Network Block page saves through
lan.ipv4-set, which bypassed the guard: a block change could move a
sibling profile onto the WAN's network. A changed LAN subnet is now
checked against the WAN, and a block change checks every resulting
profile subnet. The hand-written IPv4 network type gives way to
ipnet::Ipv4Net, and the Activity message no longer doubles its /24.

Co-Authored-By: helix-white <helix-white@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(start-wrt): give the router's subnets one owner

Every handler that wrote a gateway called its own selection of guards:
validate_profile_block, guard_subnet_collision, guard_dhcp_static_hosts,
and the WAN overlap guard and guard_all. The Network Block page skipped
the WAN guard until review caught it, and the next writer could miss any
of them.

subnets.rs now owns the rules. A writer snapshots Subnets right after
parsing and calls subnets::check on the configs it is about to dump.
Each added or moved /24 must stay in the block, hold no other profile's
/24, clear every live or static WAN network, and strand no DHCP
reservation in the /24 it left. A changed static WAN is checked against
every profile, so wan.ipv4-set now refuses a static address on a
profile's network. Unchanged subnets always pass. profiles.create,
profiles.set, lan.ipv4-set and wan.ipv4-set call it; the resolver moves
through profiles.set. The free-subnet picker moves with it and takes
preferred octets.

The reservation rule now checks each moved profile's old /24 rather than
the whole old /16 on a block change.

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

* fix(start-wrt): keep profile subnets behind auth and close two check gaps

Adopts the proposal on #4828, plus:

- Overlaps move from system.info, which answers before login, to an
  authenticated profiles.wan-overlaps. The signed-in UI polls it for the
  nav badge and the Security Profiles notice, so profile names and
  subnets never reach an unauthenticated caller.
- profiles.set derives LAN ownership from the resolved interface. A
  request moving Admin with owns_lan false left its siblings behind.
- subnets::validate compares /24s, so a host-only gateway change passes,
  and a block change applies the block rule to every profile rather than
  only those that moved.
- The nav warning icon is registered.

Co-Authored-By: helix-white <helix-white@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(start-wrt): move overlapping subnets in one locked, WAN-safe pass

Addresses Dominion's review of #4828:

- The captive portal rendered Admin's factory address. It now writes
  the live LAN address, and restart_network_services, which every Admin
  move goes through, re-renders an active portal. A router moved off
  192.168.0.x before setup keeps sending devices to itself.
- restart_network_services bounces the LAN ports carrying the moved
  profiles, through the port bounce ethernet.set already used, so wired
  clients renew instead of holding the old subnet until rebind. A manual
  non-Admin subnet change through profiles.set bounces its ports too.
- The resolver takes a cross-process lock under /var/lock, plans every
  move from the config as it stands, tries each against the Subnet rules
  and the inbound VPN peer guard so a refused move is skipped rather than
  aborting the rest, writes the accepted moves once, and cycles only the
  moved interfaces. The WAN stays up, so the hotplug hook doesn't fire
  again, and a run with nothing to move changes nothing.

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

* fix(start-wrt): plan subnet repairs on one snapshot and bounce flat-bridge ports

- The resolver plans, trial-validates and writes from one UCI snapshot, so a
  Wi-Fi password or LAN port assigned mid-run conflicts and replans instead of
  being overwritten. A refused move no longer reserves a free subnet.
- Ports to bounce follow each interface's configured device: bridge members
  for a flat LAN (Admin-only routers), VLAN membership otherwise, never
  wireless or the WAN port.
- The captive portal is reconciled through ensure_captive_portal_state under
  a lock shared with password completion, and drop-ins are found and removed
  across every generated dnsmasq instance.
- Readiness polling waits on each moved interface's own device.
- profiles.set guards VPN peers by the resolved interface for fullname-only
  requests.
- Reuses startos::util::FileLock for both locks.

Co-Authored-By: helix-white <267227783+helix-a@users.noreply.github.com>
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* feat(start-wrt)!: rank WAN routes behind profiles instead of moving subnets

dr-bonez's scope: an overlap that only costs the router its upstream reach,
even its Internet, is acceptable while devices can still reach the router UI.

netifd applies an interface's metric to its connected routes, so the WAN
now carries metric 10 (WAN_ROUTE_METRIC): a profile's equal or wider-WAN
route always wins, whatever order the routes came up in. Factory configs
set it, and a migration adds it to an existing WAN without one; every
wan.ipv4-set mode keeps it.

With that, nothing needs moving:
- Removes the automatic resolver, its lock, the boot run, the
  99-startwrt-wan-overlap hotplug hook and profiles.resolve-wan-overlap.
- Writes no longer refuse a subnet or static WAN address that overlaps
  the WAN's network; profiles.wan-overlaps and Security Profiles report it.
- The warning now says the router loses that part of the upstream network.

The shared subnet rules (block, collision, stranded reservations), the
captive portal following the LAN address and the wired port bounce stay.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* docs(start-wrt): qualify the overlap guarantee to equal or wider WAN networks

Adopts helix-white's proposal. WAN_ROUTE_METRIC only breaks ties between
equal prefixes: a WAN network narrower than the profile's /24 still wins for
its own addresses, and an explicit WAN metric the migration keeps can change
the tie-break. The warning (all five languages), the metric's contract, the
API contract, FAQ, Security Profiles docs and changelog now say so.

Co-Authored-By: helix-white <267227783+helix-a@users.noreply.github.com>
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* refactor(start-wrt): keep profile setter internals private

Nothing outside profiles.rs calls set_config since the resolver went.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: helix-white <helix-white@users.noreply.github.com>
Co-authored-by: helix-red <355572797+helix-red@users.noreply.github.com>
Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
chore(web): drop unused root deep-equality-data-structures pin
…Fi country (#4846)

* fix(start-os): keep Ethernet and WireGuard profiles when changing Wi-Fi country

Root cause: set_country called WpaCli::remove_all_connections(), which deleted every file in /etc/NetworkManager/system-connections even though wireless profiles were already deleted by UUID via list_networks_low() and remove_network_low().

Extract the country-change sequence into WpaCli::set_country without remove_all_connections(), delete the now-unused remove_all_connections() method, and add a regression test verifying only wireless profiles are deleted via nmcli while Ethernet and WireGuard profiles are untouched and lastRegion updates.

* fix(start-os): clear saved Wi-Fi SSIDs and selection on country change

WpaCli::set_country deletes all wireless NetworkManager profiles, so also clear serverInfo.network.wifi.ssids and selected in the same PatchDB mutation that records lastRegion.

Assert both fields are cleared in set_country_removes_only_wireless_profiles and update the StartOS changelog fragment.
…t the outbound gateway (#4844)

* fix(start-os): keep pushed routes from bypassing the outbound gateway

Rule 50 sent every destination to the specific routes in main, ahead
of the rules that route StartOS or a service through its selected
outbound gateway (priorities 70 and 75) and the rules that reject that
traffic when the selected gateway is gone (71 and 76). Rule 50 exists
so that LAN hosts, containers, and VPN peers stay reachable while a
VPN is the selected outbound gateway, but a route for a public
destination took the same path. A DHCP server can push such routes
with option 121, which is the TunnelVision attack (CVE-2024-3661).
With routes for 0.0.0.0/1 and 128.0.0.0/1, the LAN's DHCP server sent
the traffic of StartOS and of every service out the LAN while a VPN
was their selected outbound gateway, even while the VPN was down and
its kill switch was engaged. The pushed routes also sent replies to
clients who connected through a tunnel out the LAN, which revealed
the home IP address to those clients.

Rule 50 now names the destinations it serves: the non-public IPv4
ranges, every IPv6 destination outside 2000::/3, and the on-link
prefix (/64 to /127) of each gateway's own global IPv6 address, so
neighbours on the LAN's IPv6 subnet stay reachable. Any other public
destination falls through to the rules for the selected outbound
gateway. When the system Gateway is set to Auto, that destination
reaches main at priority 1000, so Auto routes as before. The
interface watcher reconciles rule 50's ranges whenever an interface
or its addresses change, adding rules before deleting stale ones,
with one writer at a time.

The test script policy_routing_model.sh builds the real routing rules
in a throwaway network namespace, simulates a series of setups, and
checks which interface each kind of packet leaves through in each
setup. This commit adds setups in which the LAN's DHCP server has
pushed routes for every public address (0.0.0.0/1, 128.0.0.0/1, and
2000::/3) through the LAN interface: with the system Gateway set to
Auto, with a VPN as the outbound gateway selected for StartOS, with
that VPN gone, and with a VPN as the outbound gateway selected for a
service. Run against the rule 50 that existed before this commit,
the checks show the leak: StartOS's and the service's traffic to
public addresses left through the LAN instead of the VPN, the kill
switch let that traffic out the LAN instead of rejecting it, and
replies to clients who connected through the tunnel left through the
LAN. With this commit, every check passes. Under Auto, traffic is
expected to use the LAN, and that check passes before and after.

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

* fix(start-os): drop IPv4 on an outbound gateway that carries only IPv6

A gateway that cannot carry IPv6, such as a WireGuard VPN whose config
has no IPv6 address, already gets a blackhole default route in its
IPv6 routing table, so StartOS drops outbound IPv6 instead of sending
IPv6 out the LAN while that VPN is the outbound gateway selected for
StartOS or for a service. The reverse case had no such guard. A VPN
with only an IPv6 address still got an ordinary IPv4 default route in
its table, so while that VPN was the selected outbound gateway, IPv4
connections were sent into the VPN with the LAN's IPv4 source address.
Those connections could not work, and the VPN provider could see the
server's LAN address in them.

A gateway with no IPv4 address beyond link-local now gets a blackhole
default route in its IPv4 table, mirroring the IPv6 check, so StartOS
drops outbound IPv4 on that gateway.

The test script policy_routing_model.sh gains a VPN interface that has
only an IPv6 address, and a setup in which that VPN is the outbound
gateway selected for StartOS. The script checks that IPv6 traffic
leaves through the VPN and that IPv4 traffic from StartOS and from a
service is rejected rather than sent into the VPN. With the IPv4
route the previous code wrote, the IPv4 checks fail, because the
traffic was routed into the VPN.

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

* fix(start-os): keep on-link neighbours direct and harden rule 50 reconciliation

Rule 50 exempted only the on-link prefix of a gateway's own global IPv6
address. A LAN with a public IPv4 subnet, or with DHCPv6 /128 addresses
whose on-link /64 comes from the RA, lost its direct route: replies to
those neighbours went through the router, and with a gateway selected
they went into the tunnel or into its rejection.

Rule 50 now also covers each interface's own IPv4 subnet of /16 or
longer, and takes IPv6 on-link prefixes from main's directly connected
routes (/64 or longer, or a configured WireGuard prefix such as a
StartTunnel /56). 192.0.0.0/24, 198.18.0.0/15 and 240.0.0.0/4 join
NON_PUBLIC_V4. Rules are reconciled again when an interface disconnects,
so a former tunnel's exemption does not outlive its route. A failed
addition stops reconciliation before any existing rule is deleted.

The DNS transport fixture installs the restricted rule 50 production
uses. policy-routing.md states the bounded guarantee and its limits.

Co-Authored-By: helix-white <helix-white@users.noreply.github.com>
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* fix(start-os): retry rule 50 retirement on every inactive observation

Clearing an interface's ip_info only records that it went inactive. When
the reconciliation that follows failed, or was cancelled by the next
NetworkManager signal, later inactive notifications found ip_info already
cleared and skipped reconciling, so the disconnected tunnel's rule 50
exemption could survive until an unrelated reconciliation. Every inactive
observation now reconciles. A regression test fails the first route dump
and checks that the next notification still deletes the stale exemption.

Co-Authored-By: helix-white <helix-white@users.noreply.github.com>
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: helix-red <355572797+helix-red@users.noreply.github.com>
Co-authored-by: helix-white <helix-white@users.noreply.github.com>
* feat(cli): expose the shared volume RPC tree through start-cli

Every volumes.* method gains a CLI subcommand, and volumes.list is added so
CLI users can discover volume IDs. CIFS passwords are prompted for (or read
from CIFS_PASSWORD) by CLI-side handlers, so they never appear in arguments.

The CIFS password prompt and the shared volume ID parser move to their
owners (disk::mount::filesystem::cifs, shared_volumes) and the backup CLI
reuses them.

Record in the root and start-core AGENTS.md that CLI bindings are part of
every feature that adds RPC methods.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* feat(cli): add CLI commands for the remaining RPC-only methods

Backup-target catalog (create, find, rename, update-cifs, remove, inspect,
convert), NUT (set-nut, clear-nut, nut-status, nut-scan, nut-list-ups),
registries refresh, push subscription list/unsubscribe/test, net dns status,
net gateway edit, trusted-keys remove-many and package exec now have CLI
bindings. Streams, sideload and browser push registration stay RPC-only.

CliContext::call_fronted is the single way a CLI-only handler calls the
method it fronts, and CIFS password prompting has one owner shared by the
shared-volume and backup-target commands.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* fix(cli): expose the push subtree and keep partial subcontainer selectors

Proposed by @helix-white in cross-review of #4856.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* fix(cli): fail package exec in every output format

A timed-out or failed command now fails the CLI whether or not --format is
given; --format still prints the structured result first.

Regenerate the push man pages and bindings for the adopted proposal, and drop
the push CLI-exclusion test whose contract the proposal's start-cli tree test
replaces.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* feat(cli): add start-container commands for every drivable service effect

Effects with flag-shaped parameters call the server directly; effects with
structured parameters read them as JSON on stdin through one forwarding
handler. Callback and upload/download plumbing stay RPC-only. Every
start-container command now has a description, and get-status,
get-dependencies and check-dependencies print their results.

call_fronted becomes a context-generic helper shared by start-cli and
start-container, and the AGENTS.md rule now covers effects.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* test(sdk): keep exec lifecycle tests from sharing spawned children

The health-check test finishes while its execs are still in flight; when the
next test replaced the spawn mock, those stray execs spawned its hung child
and their 25 ms deadline could SIGKILL it before the test's own 10 ms deadline,
leaving timedOutAfter null. Each subject now gets its own rootfs, and spawn
returns the child registered for the rootfs it is called with.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

---------

Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
…tore (#4847)

OsBackup omits the password hash when serializing os-backup.json and initializes account.password to an empty string on deserialization. When a full-server restore skips the optional new-password step (password is None), recover_full_server previously skipped hashing and initialized the database with an empty password hash, causing every subsequent login attempt to fail with IncorrectPassword.

Hash password.unwrap_or(recovery_password) via AccountInfo::set_password inside restore_account so skipping the new-password page preserves the verified backup recovery password as the server's master password.
…#4849)

* fix(start-sdk): back off FileHelper watch retries on repeated failure

When fs.watch fails persistently (e.g. EMFILE), produceRaw previously
logged the error and immediately retried both the existing-file and
onCreated branches with no delay, pinning CPU at ~100% and flooding logs.

Add bounded exponential backoff (100 ms to 30 s) shared across both
branches, resetting to 100 ms after a successful watch. Backoff timers
are unref'd and cancel immediately on AbortSignal or effects.onLeaveContext
(released via a module-level onLeaveUntil helper on abort or generator exit),
while doRead() errors continue to propagate.

Fixes #4694

* Proposed changes for #4849

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* style(start-sdk): format FileHelper watch test

* refactor(start-sdk): share abortable delay and exponential backoff

FileHelper's watch-retry sleep duplicated Daemon's abortable restart
wait, and its doubling-to-a-cap retry repeated defaultTrigger's loading
backoff. Move the trigger `delay` helper to util, give it an optional
abort signal, and add `ExponentialBackoff`; FileHelper, Daemon and
defaultTrigger now use them. The retry timer is no longer unref'd,
matching the live watch it stands in for.

Also correct Daemon's doc: its restart backoff grows by one second per
failure, not exponentially.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* fix(start-sdk): keep FileHelper watch-retry timer unref'd

FileHelper's fs.watch handles are non-persistent, so a waiting reader
never held the event loop; the ref'd retry timer kept a process with a
persistently failing watch alive. `delay` takes Node's
timers/promises-style `{ signal, ref }` options; FileHelper passes
`ref: false`, Daemon and triggers keep ref'd timers.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

* refactor(start-sdk): share per-Effects context-leave registry

FileHelper's onLeaveUntil and SubContainer's contextLiveSubcontainers
each kept a WeakMap<Effects, Set> armed by one onLeaveContext hook.
Move onLeaveUntil to lib/util and have SubContainerEager register its
destroy through it, releasing on detach and teardown.

The Daemons test fixture that builds a SubContainerEager from its
prototype now supplies the new field.

Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

---------

Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
Co-authored-by: helix-red <355572797+helix-red@users.noreply.github.com>
…values as plain text (#4907)

* fix(web): render package-supplied hint and action text as plain text

Taiga renders string content in hints through innerHTML, so a spec
description could carry markup into the tooltip. Pass each form hint as
a template that interpolates the text, and interpolate action
descriptions, warnings, input errors, task diffs and interface URLs
instead of binding them to innerHTML.

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

* fix(web): render all package and user text as plain text

Taiga renders string content in dialogs, confirms, toasts and tui-error
through innerHTML. Escape every DialogService label and the package,
registry and user values interpolated into OS dialog text; render the
form-field warning and error toasts through components that interpolate
their text; escape validation messages built from spec text; show a
package's long description as text with line breaks kept; and escape
progress phase names. getErrorMessage moves to its own util so its
tests no longer load the toast component.

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

* Proposed changes for #4907

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

* fix(web): keep the shared escaper and nest every tooltip template

Restore the dependency-free escapeHtml rather than routing it through
Mustache, which would add mustache to the shared library and every app
bundle that uses DialogService. Map @start9labs/shared to it in the form
validator tests that load form.service, and nest the tooltip template in
the icon at the remaining sites for a single root everywhere.

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

* fix(web): render package-authored text as sanitized markdown

Package-authored text (spec descriptions, warnings, footnotes and
pattern descriptions, action descriptions and warnings, the marketplace
long description) renders through the existing markdown | dompurify
pipeline with safeLinks, in form hints too, instead of being stripped
to plain text. Values the OS interpolates into its own messages stay
escaped. safeLinks sets rel="noopener noreferrer"; .g-markdown resets
white-space so markdown inside a pre-line hint does not gain blank lines.

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

* fix(web): accept a missing value in the markdown pipe

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

* fix(web): keep safe-link clicks off enclosing controls and compare full origins

A link in an action description no longer starts the action it sits in, and a same-host link to another port or protocol opens in a new tab.

(cherry picked from commit bc7b587)

Co-authored-by: helix-white <helix-white@users.noreply.github.com>

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

* style(web): format the safe-links directive and its test

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: helix-white <267227783+helix-a@users.noreply.github.com>
…#4909)

* fix(cli): name the registry by its base URL when installing a package

`start-cli -r <registry> package install` sent `InstallParams.registry` as
the registry's RPC endpoint (`<base>/rpc/v0`). Since #4836 the server
looks that URL up among its saved registries, which are base URLs, so
every CLI install from a registry failed with "<registry>/rpc/v0 is not a
saved registry".

CliContext now keeps the selected registry's base URL, unresolved, next to
the RPC one, and cli_install sends it. Older CLIs are not accommodated
server-side: they must update.

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

* chore(cli): drop the changelog fragment; the fix ships inside unreleased 3.0.0

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…egistry-cache-sync

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5

# Conflicts:
#	projects/start-sdk/lib/test/exec.lifecycle.test.ts
#	shared-libs/ts-modules/shared/src/i18n/dictionaries/de.ts
#	shared-libs/ts-modules/shared/src/i18n/dictionaries/en.ts
#	shared-libs/ts-modules/shared/src/i18n/dictionaries/es.ts
#	shared-libs/ts-modules/shared/src/i18n/dictionaries/fr.ts
#	shared-libs/ts-modules/shared/src/i18n/dictionaries/pl.ts

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed f1e19c00f193095ec9b2428edb3b1c22ff1d8ad2; no blocking findings.

  • The remerge diff contains only the six documented conflict resolutions. All five dictionaries retain “Get help” and consistently remap “Last synced”/“just now”; callers use English keys, not numeric IDs.
  • The SDK resolution preserves per-subject spawn isolation and the integration branch’s explicit command drain.
  • Checked the registry-cache/selective-subscription integration against master’s registry CLI changes, generated surfaces, and marketplace rendering/error changes; no merge-induced regression found.
  • git merge-tree --write-tree succeeds against both integration/registry-cache-sync (817fed622) and master (55d207bd8). The checkout is clean.

Source-only review; no builds or tests run. CI has no failures reported, with builds and test jobs still pending. Preserve the merge ancestry by landing with a merge commit, as the description specifies.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-red
helix-red requested a review from dr-bonez November 24, 2026 19:21
@dr-bonez
dr-bonez merged commit ef15f7c into integration/registry-cache-sync Nov 24, 2026
28 checks passed
@dr-bonez
dr-bonez deleted the merge/master-into-registry-cache-sync branch November 24, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants