Commit Graph
31 Commits
Author SHA1 Message Date
omarandClaude Opus 4.8 ee7df9f3a1 feat(nodes): per-node mux/XUDP + sockopt (TCP FastOpen/keepalive, mark) [T1]
build / aarch64_cortex-a53 (push) Successful in 3m1s
build / x86_64 (push) Has been cancelled
Adds optional per-node multiplexing and socket options, applied after
ParseShareLink at all three outbound build sites (group members, standalone
node targets, chain hops) and BEFORE withMark so the loop-guard escape mark
(255) is always re-asserted last and wins — a per-node mark that is neither 0
nor 255 is refused (would break the nft escape rule → routing loop).

- model.go: Node.{Mux,MuxConcurrency,XUDPConcurrency,XUDPProxyUDP443,Mark,
  TCPFastOpen,TCPKeepAliveIdle}; uci.go parses them. All zero-value = off, so
  existing nodes emit byte-identical outbounds.
- generate.go: applyNodeOpts() emits outbound-level `mux` (XUDP keys only for
  vless/vmess) + streamSettings.sockopt tcp knobs; skips mux under XTLS Vision.
- nodes.js: modalonly mux/XUDP/sockopt fields (depends on mux).
- tests: node_opts_test.go (mux emitted/off, XUDP gating, vision skip,
  loop-guard mark wins, tcp knobs).

Verified live on the 512M VM: mux node emits {enabled,concurrency:8,
xudpConcurrency:16,xudpProxyUDP443:reject}; sockopt.mark==255 preserved;
xray -test OK. r9.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 15:22:39 +03:00
omarandClaude Opus 4.8 146ae252cc feat(geodata): make geoip.dat/geosite.dat optional + on-demand download
build / aarch64_cortex-a53 (push) Successful in 2m59s
build / x86_64 (push) Successful in 3m0s
The ~25 MB geo data files are no longer a hard dependency (critical on
small-flash routers). The plugin works without them; the generator strips
geosite:/geoip: matchers from routing rules and the dns object when the data
is absent so the config stays valid and deterministic. Users download them on
demand — only when there is disk to spare — and remove them to reclaim flash.

- xrayctl/geodata.go: `geodata status|download|remove`; free-space check via
  `df -k`; opkg/apk install of v2ray-geoip/v2ray-geosite + asset-dir symlinks;
  errors reported in-band (JSON `error`) for the UI.
- generate.go/dns.go: builder.geoOK = geoAssetPresent(); geoOK threaded into
  dnsRender; geoStrip() drops geo matchers when absent.
- LuCI: geodata panel on the Lists page (presence, sizes, free/need, Download/
  Remove buttons gated on free space); ubus geodata_status/download/remove + acl.
- tests: TestGeoStrip, TestDNSRenderGeoOptional, TestBuildConfigStripsGeoWhenAbsent.

Verified live on the 512M VM: status reports present+sizes+free; xray 25.1.30
starts without geodata (lazy-load); ubus wiring returns correct JSON. r8.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 15:11:11 +03:00
omarandClaude Opus 4.8 ef1c563293 docs(status): full 05-feature-catalog verification matrix; bump to r7
build / aarch64_cortex-a53 (push) Successful in 3m0s
build / x86_64 (push) Successful in 4m4s
Records live-VM proof for EVERY MVP/T1 catalog item (nodes/subs/HAPP/hwid, all six
balancer strategies, chains, full rule matcher set incl. MAC/iface/geosite/geoip,
egress iface/tunnel/proxy, lists, DNS DoH/FakeIP/nftset/hijack/DoT-block/IPv6,
reliability commit-confirm/rollback/watchdog/kill-switch/hotplug, per-client &
per-rule stats, LuCI CRUD via Playwright, CI both arches, feed install+upgrade).
Two bugs found & fixed during the sweep (balancer observatory; group probe_url
override). PKG_RELEASE -> 7.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 14:27:07 +03:00
omarandClaude Opus 4.8 46dc9bfa34 fix(balancer): random/roundRobin strategies also need the Observatory
xray 25.1.30 resolves EVERY multi-member balancer's health checker from the
Observatory, so `random` and `roundRobin` groups failed `xray -test` with "not all
dependencies are resolved" — the Observatory was only emitted for
leastPing/leastLoad/failover. genUsesObservatory now returns true for random and
roundRobin too; `single` (no balancer) still skips it.

Verified live: all six strategies (leastping/random/roundrobin/failover/leastload/
single) now pass `xray -test`; the balancer strategy object + observatory presence
are correct for each.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 14:11:52 +03:00
omarandClaude Opus 4.8 530d6d467b docs(proofs): record configurable reachability checks (observatory + http/chain probes)
build / aarch64_cortex-a53 (push) Successful in 3m1s
build / x86_64 (push) Successful in 3m7s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:58:38 +03:00
omarandClaude Opus 4.8 73f6c7a3c5 fix(probe): let globals.probe_url actually win; bump packages to r6
The group parser defaulted probe_url/probe_interval to gstatic/60s via optOr, so
EVERY group carried a non-empty ProbeURL that overrode the new global observatory
setting in newBuilder — the Settings "Health-check URL" never took effect. Groups
now start empty and only override when explicitly set; the built-in default lives in
newBuilder. Verified: setting globals.probe_url -> the generated observatory block
uses it (cloudflare/30s), xray -test OK.

Also bumps PKG_RELEASE 5->6 across the packages for the probe/observatory feature.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:58:09 +03:00
omarandClaude Opus 4.8 961dfe4d76 feat(probe): configurable reachability checks — observatory settings + on-demand HTTP/chain probes
Answers "how is a node 'reachable' decided, and can I configure it?".

* Observatory (the node "alive"/latency in Overview & Nodes) is xray fetching a
  probe URL THROUGH each node every interval. That URL + interval are now global
  settings (globals.probe_url / probe_interval, exposed on the Settings page) used
  as the default; a group can still override. Default stays gstatic/generate_204.

* On-demand Node "Test" is now method-selectable, TCP stays the default:
  - tcp  (fast): raw endpoint connect (unchanged behaviour).
  - http: a REAL proxy-path GET/HEAD through the node — spins an ephemeral xray
    (local SOCKS inbound routed through the node), does the request over a tiny
    stdlib SOCKS5 client, and reports status + latency + exit IP. No new deps.
  `xrayctl node test NAME --method http [--url U] [--http-method GET|HEAD]`.

* Chain reachability ("проверку связки"): `xrayctl chain test NAME` probes the WHOLE
  multi-hop chain end-to-end (reusing the real chain machinery incl. its internal
  socks-hop routing) and reports reachable/latency/exit IP. Exposed on the Chains
  page (select a chain -> Test chain).

ubus: node_test gains method/url/http_method; new chain_test (acl updated).

Verified live: node http probe DE-vless-8 -> 200 exit 91.107.150.14; chain
DE-vless-8->NL-ss-4 -> 200 379ms exit 193.29.139.249 (matches the tproxy E2E); UI
selector, chain Test button, and Settings fields all work via Playwright.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:54:22 +03:00
omarandClaude Opus 4.8 be323ad2b6 chore: bump packages to r5; record panel-polish proofs (Nodes/Overview/Egress)
build / aarch64_cortex-a53 (push) Successful in 3m1s
build / x86_64 (push) Successful in 3m1s
PKG_RELEASE 4->5 for the Nodes Test fix, Overview dashboard redesign, and egress
exit-interface data-plane. PROOFS.md updated with the live-VM evidence; verified via
opkg upgrade r4->r5 and Playwright over all 11 pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:26:01 +03:00
omarandClaude Opus 4.8 89de2556a2 feat(egress): wire the interface/tunnel exit-binding data-plane end-to-end
egress.go emitted a SO_BINDTODEVICE+SO_MARK freedom outbound for interface/tunnel
egresses, but its documented "apply.go SHOULD add the policy routing" half was never
implemented, and it bound to the UCI name (wan) rather than the L3 device (eth1), so
a rule bound to an interface egress did not actually leave via it.

Now:
  * egress.go resolves the egress interface to its L3 device (ifaceDevice) for
    sockopt.interface, so SO_BINDTODEVICE binds the real device.
  * apply.go installs the policy-routing half: for each interface/tunnel egress i,
    `ip rule fwmark <egEgressMark> lookup <egEgressTable>` + a default route in that
    table out the device — `via <gw>` for gateway'd WANs, plain `dev` for p2p
    tunnels (wg/awg) — plus an nft prerouting `meta mark <egmark> accept` bypass.
    Wired into applyRouting; torn down in apTeardown.

Verified live: a rule bound to egress=interface(wan) routes there (explain shows the
egress), the outbound carries "interface":"eth1", table 8208 gets
`default via 10.0.2.2 dev eth1`, and the LAN client exits through it to the internet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:20:57 +03:00
omarandClaude Opus 4.8 c412ae1afe feat(luci): fix Nodes latency/Test + redesign Overview dashboard
Nodes page: the Latency column read n.latency but the API emits latency_ms, so it
always showed "-" ("no ping"). Now reads latency_ms (0 => "not probed" => "-"),
sorts by it, and the Test button does a real on-demand TCP probe: node_test returns
{probe:[{name,alive,latency_ms}]} straight from `xrayctl node test`, the row shows
the RTT with a ✓, and a toast reports alive/latency. NodeTest now probes
concurrently (bounded 32) so "Test all" over 250+ nodes finishes in seconds instead
of many minutes of serial 5s dials.

Overview: replaced the all-250-rows-of-0B dump with a real dashboard — KPI cards
(engine up/enabled/api, live nodes X/Y, download/upload rate+total, active clients,
active node), curated tables (only nodes/clients that carried traffic, with share
bars), client-side rate from poll deltas, theme-aware styling. Now also calls the
nodes method for the alive count/active node.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 13:14:05 +03:00
omarandClaude Opus 4.8 196ec39c8b docs(proofs): record CI green on x86_64 + aarch64_cortex-a53 for final HEAD
build / aarch64_cortex-a53 (push) Successful in 3m0s
build / x86_64 (push) Successful in 2m59s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 12:35:28 +03:00
omarandClaude Opus 4.8 e7b71d7415 docs(status): v1 acceptance on live 512M OpenWrt VM — all items verified
build / aarch64_cortex-a53 (push) Successful in 4m11s
build / x86_64 (push) Successful in 2m59s
Records the full v1 acceptance matrix (install/upgrade from feed, keystone E2E,
subscriptions, observatory, multi-hop chain, per-client, explain, DNS split,
reliability/rollback, stats, LuCI, CI both arches) with the critical bugs found &
fixed (fork-storm/OOM, xray-core config clash, procd file-watch/reload, busybox
xrayRunning, DNS anti-leak) and the honest known-simplifications. Evidence in PROOFS.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 12:27:29 +03:00
omarandClaude Opus 4.8 51f2c129ca chore: bump xrayctl+shater-core to r4; record DNS/chain/per-client/rollback/upgrade proofs
build / aarch64_cortex-a53 (push) Successful in 2m59s
build / x86_64 (push) Has been cancelled
PKG_RELEASE 3->4 for the DNS-guard + engine-reload fixes. PROOFS.md updated with the
live-VM evidence for: DNS :53 hijack + DoT block, 2-hop chain exit, per-client A/B
split, observatory alive (186/254), rollback/commit-confirm, and opkg feed upgrade
r3->r4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 12:20:53 +03:00
omarandClaude Opus 4.8 9e0c81a5b2 feat(dns): LAN :53 hijack + DoT block; fix: apply/rollback actually reload xray
DNS anti-leak (MVP feature-catalog §8) in RenderNft's `inet shater` table:
  * dnsnat chain (nat/prerouting): redirect LAN :53 (tcp+udp) to the router's own
    resolver, so no client can bypass it with a hard-coded upstream; router-destined
    DNS is left alone (fib local).
  * prerouting: reject DoT/DoQ :853 BEFORE the tproxy catch-all (otherwise tproxy
    swallows it and no later hook sees it), and keep :53 out of tproxy so dnsnat can
    redirect it (the catch-all would divert :53 into xray, which can't answer it).
  Verified: client querying 8.8.8.8 is answered by the router (example.com ->
  172.66.147.243); :853 is refused while :443 connects.

Engine reload fix: procd's passive file-watch does NOT fire on this build (neither
rename nor in-place write triggers it), so `xrayctl apply` never restarted the
running engine — the config change was written but ignored. reloadXray now SIGTERMs
the xray process; procd respawns it against the run.json on disk, WITHOUT running
start_service -> shater_reconcile (which would regenerate run.json from UCI and
clobber a Rollback). Init respawn tuned to `10 2 5` so these operator-driven
restarts (engine ran >10s) are never counted as a crash loop. writeJSON stays
atomic (tmp+rename) for partial-write safety.

Verified live (512M): apply of a config change reloads xray (new pid, new routing);
`xrayctl rollback` restores the good run.json and the engine runs it; client A stays
proxied (exit 104.156.233.234) with load ~0.04 and 186/254 nodes alive.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 12:18:50 +03:00
omarandClaude Opus 4.8 6c3bb2adc5 fix: rollback/commit-confirm no longer self-clobbers; reliable xray liveness check
Two bugs made `xrayctl rollback` (and commit-confirm auto-rollback) a no-op:

1) reloadXray() ran `/etc/init.d/shater start` unconditionally, which re-runs
   start_service -> shater_reconcile -> Reconcile(), regenerating run.json from
   UCI. After Rollback() restored run.json from last-good, that reconcile
   immediately overwrote it with the current (bad) UCI. Now reloadXray() is a
   no-op when xray is already supervised — procd's file-watch on run.json (which
   the caller just wrote) restarts the engine — and only `start`s a stopped one.

2) xrayRunning() used `pgrep -x xray`, which matches nothing on busybox even when
   xray is running (comm=="xray"), so the guard above would never trigger.
   Switched to `pidof xray` (exact program name; never matches xrayctl).

Verified live (512M VM): apply group:main -> apply block -> `xrayctl rollback`
restores the group:main run.json and it holds (no reconcile clobber); commit-
confirm `apply --confirm N` arms /var/run/xray/pending-apply, `confirm` clears it,
and with no confirm the detached auto-rollback restores last-good after N seconds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 11:54:04 +03:00
omarandClaude Opus 4.8 05920f83ad fix: eliminate reconcile fork-storm (OOM) + resolve UCI config conflict with xray-core
build / aarch64_cortex-a53 (push) Successful in 3m0s
build / x86_64 (push) Successful in 2m59s
Two release-blocking defects found via live 512M OpenWrt VM testing.

1) Fork-storm / OOM (critical). Reconcile() -> reloadXray() ->
   "/etc/init.d/shater reload" -> reload_service -> shater_reconcile ->
   `xrayctl reconcile` -> Reconcile() was an infinite mutual recursion; each
   level blocked on CombinedOutput and spawned a process (854x reconcile +
   853x reload observed), exhausting RAM and pinning both vCPUs -> OOM-killer.
   - Reconcile() no longer calls reloadXray(); procd's file-watch on run.json
     restarts xray. Reconcile runs inside the init lifecycle, so calling the
     init back is the recursion.
   - reloadXray() now runs `/etc/init.d/shater start` (not `reload`); it is only
     invoked from Apply()/Rollback() (LuCI/ubus/CLI), never the init lifecycle.
   - init reload_service() simplified to start/stop (dropped the double reconcile).
   Verified: `xrayctl apply` 0.39s (was >185s hang); 93 procs / load 0.00 stable
   with an active 254-node config on 512M; xray binds :10853 API + :12345 tproxy.

2) UCI config namespace clash. shater shipped /etc/config/xray, which collides
   with the xray-core dependency's own /etc/config/xray (opkg dropped ours to
   /etc/config/xray-opkg, so the schema never took effect). Renamed the UCI
   namespace xray -> shater everywhere (Go uci export/commit, all 11 LuCI views +
   acl, init scripts, hotplug, Makefile conffiles, examples). Runtime paths
   (/etc/xray/run.json, /usr/share/xray), the xray-core package, and the ubus
   object name are intentionally unchanged.

Also: ci/pack-xrayctl.sh (local ipk packer) with a postinst chmod so the binary
is executable regardless of host-tar mode handling; PKG_RELEASE bumped to r3.

Verified end-to-end on a fresh 512M OpenWrt 24.10.3 VM: feed install
(opkg install luci-app-shater pulls xrayctl+shater-core), real LAN client
(netns in br-lan) proxied through a live subscription node -> exit IP changed
(104.156.233.234 vs 45.131.214.140 direct); per-client nft counters + xray
stats API populated. See PROOFS.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 11:36:48 +03:00
omar 71a6f127a1 T1 features: egress, kill-switch, full DNS, stats/API, rulesets, live nodes, sub scheduling, all LuCI pages (4-agent build + integration); real xray -test 'Configuration OK' with full-feature config
build / aarch64_cortex-a53 (push) Successful in 3m2s
build / x86_64 (push) Successful in 3m1s
2026-07-09 10:12:55 +03:00
omar 58f2a6ed3d docs: goal complete — CI green (x86_64 + aarch64_cortex-a53), installed from repo, verified on OpenWrt VM
build / aarch64_cortex-a53 (push) Successful in 3m2s
build / x86_64 (push) Successful in 3m0s
2026-07-09 03:27:40 +03:00
omar 78cb5683be ci: upload-artifact@v3 (v4 unsupported on Gitea Actions/GHES)
build / aarch64_cortex-a53 (push) Successful in 3m7s
build / x86_64 (push) Successful in 3m0s
All 3 packages now build green in CI (xrayctl via SDK, shater-core+luci as data
.ipk); the only failing step was actions/upload-artifact@v4 -> GHESNotSupportedError.
Downgrade to @v3 which Gitea's act_runner supports.
2026-07-09 03:20:10 +03:00
omar b51a138410 ci: lean build — xrayctl via SDK, shater-core+luci as data .ipk; fix pack path
build / aarch64_cortex-a53 (push) Failing after 3m0s
build / x86_64 (push) Failing after 3m0s
- build-sdk.sh: build ONLY xrayctl (its deps are light) — no kernel/kmod rebuild
  (shater-core's kmod-nft-tproxy dep was dragging in a full kernel build)
- pack-core.sh: shater-core data .ipk (Depends/conffiles/uci-defaults per Makefile)
- pack-luci.sh: fix $OUT to an ABSOLUTE path (relative path after 'cd $W' made tar
  write to the wrong dir -> 'Cannot open ... No such file')
- workflow: add Pack shater-core step
- all pack scripts dry-run green locally (valid .ipk structure + index)
2026-07-09 03:12:41 +03:00
omar 6108d5d5fb ci: share workspace into nested SDK container via --volumes-from
build / aarch64_cortex-a53 (push) Failing after 4m5s
build / x86_64 (push) Failing after 4m5s
bare -v $PWD failed (act_runner DinD: $PWD is a host path that doesn't exist)
-> 'No such file /repo/ci/build-sdk.sh'. Use --volumes-from $(hostname) so the
job's workspace volume is mounted in the SDK container; build-sdk.sh now reads
$REPO=$GITHUB_WORKSPACE and guards against an unmounted repo.
2026-07-09 02:59:34 +03:00
omar da1182dead ci: custom SDK build (clean feed) — gh-action-sdk indexed 0 packages from repo-root feed
build / aarch64_cortex-a53 (push) Failing after 31s
build / x86_64 (push) Failing after 49s
- ci/build-sdk.sh: run openwrt/sdk image with a CLEAN single-package feed; compile
  xrayctl (Go) + shater-core (in-tree, files only, no dep rebuild)
- ci/pack-luci.sh: luci-app-shater as data .ipk via tar (no luci-base compile)
- ci/make-index.sh: opkg Packages index + SHA256 (+ usign sign if KEY_BUILD set)
- workflow: docker-run the SDK per arch (x86_64, aarch64_cortex-a53), upload feed
  This mirrors the recipe verified locally that produced all 3 installable .ipk.
2026-07-09 02:55:18 +03:00
omar 080cbc594d ci: move packages to repo root so gh-action-sdk feed finds them
build / aarch64_cortex-a53 (push) Failing after 2m11s
build / arm_cortex-a7_neon-vfpv4 (push) Failing after 2m19s
build / mipsel_24kc (push) Failing after 1m51s
build / x86_64 (push) Failing after 3m49s
CI failed: 'No feed for package xrayctl found' / 'No rule to make target
package/xrayctl/download' — gh-action-sdk indexes packages at the feed (repo)
ROOT, not a nested package/ dir. Moved xrayctl/, luci-app-shater/, shater-core/
to root; fixed workflow comment and doc paths.
2026-07-09 02:36:22 +03:00
omar 08a26bbb7b apply: resolve UCI interface -> L3 device for tproxy iifname (lan -> br-lan)
build / aarch64_cortex-a53 (push) Failing after 4m42s
build / arm_cortex-a7_neon-vfpv4 (push) Failing after 2m9s
build / mipsel_24kc (push) Failing after 2m10s
build / x86_64 (push) Failing after 2m20s
nft iifname must match the real device, not the UCI interface name; bridges/VLANs
have device != name, so 'iifname lan' intercepted nothing. Added ifaceDevice()
(ubus network.interface status l3_device, uci network.<n>.device fallback).
Verified live on VM: tproxy rule now 'iifname br-lan' (matches agent E's proven
interception). Bump xrayctl PKG_RELEASE=2.
2026-07-09 02:19:38 +03:00
omar 66913cabd4 packaging: make all 3 packages build in SDK; fix luci nodes view
build / aarch64_cortex-a53 (push) Failing after 1m59s
build / mipsel_24kc (push) Has been cancelled
build / x86_64 (push) Has been cancelled
build / arm_cortex-a7_neon-vfpv4 (push) Has been cancelled
- xrayctl/Makefile: include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk (was relative ../../ which breaks for a src-link feed); Build/Prepare copies local Go sources into PKG_BUILD_DIR ROOT (golang-package.mk symlinks the root as the module) via captured $(XRAYCTL_DIR); trim DEPENDS to +ca-bundle (xray-core/kmods belong to shater-core, avoids rebuilding xray-core)
- luci-app-shater/Makefile: include $(TOPDIR)/feeds/luci/luci.mk
- nodes.js: expect { '': {} } (was { nodes: [] } which returned the bare array while render read data.nodes -> always empty); verified live via Playwright (node r1 now shown)
- VERIFIED end-to-end on OpenWrt VM: built xrayctl_.ipk (SDK), shater-core_.ipk, luci-app-shater_.ipk; opkg feed (file://) + opkg update + install + upgrade r2; ubus xray status/nodes live; LuCI overview+nodes render
2026-07-09 02:13:25 +03:00
omar 6433de209a docs: contract clarifications (name identity, resolver_fallback, dst_domain forms, fakeip pool, chain layers, src/port formats), STATUS.md with verification evidence, README index + status
build / aarch64_cortex-a53 (push) Failing after 2m22s
build / arm_cortex-a7_neon-vfpv4 (push) Failing after 2m35s
build / mipsel_24kc (push) Failing after 3m12s
build / x86_64 (push) Failing after 2m45s
2026-07-09 00:58:49 +03:00
omar 17f09915ee generate: fix single-member group balancer-tag mismatch (real xray: 'balancer not found')
build / arm_cortex-a7_neon-vfpv4 (push) Has been cancelled
build / mipsel_24kc (push) Has been cancelled
build / x86_64 (push) Has been cancelled
build / aarch64_cortex-a53 (push) Has been cancelled
- track balancer tags explicitly (balTag set) instead of a fragile g_/bal_ prefix heuristic
- groupTag map: resolveTarget returns exactly what emitGroup produced (balancer OR single-member outbound)
- setTargetTag is now a builder method keyed on balTag
- verified end-to-end on OpenWrt VM: both 'gen --links' and 'gen' (full UCI path) -> real xray 25.1.30 -> 'Configuration OK'
2026-07-09 00:47:52 +03:00
omar f336da4877 Add .gitattributes: force LF everywhere (CRLF breaks OpenWrt scripts/Makefiles)
build / aarch64_cortex-a53 (push) Failing after 3m49s
build / mipsel_24kc (push) Has been cancelled
build / x86_64 (push) Has been cancelled
build / arm_cortex-a7_neon-vfpv4 (push) Has been cancelled
2026-07-09 00:41:24 +03:00
omar d3af5580fd MVP core: xrayctl (parse+gen validated by real xray -test on OpenWrt), luci-app-shater, shater-core, CI/feed, examples, contract
build / arm_cortex-a7_neon-vfpv4 (push) Has been cancelled
build / mipsel_24kc (push) Has been cancelled
build / x86_64 (push) Has been cancelled
build / aarch64_cortex-a53 (push) Has been cancelled
- xrayctl Go daemon: share-link parser (vless/vmess/trojan/ss + reality/xhttp/ws/grpc), UCI->model, config generator, sub fetch+fingerprint+reconcile, apply/nft/routing, status/explain; go build/vet/test green
- fix: routing rule with no matcher -> inject tcp,udp catch-all (xray 'no effective fields'); regression test added; 'Configuration OK' on real xray 25.1.30
- luci-app-shater: JS views (overview/nodes/subs/rules/settings) + ucode ubus backend + acl (verified)
- shater-core: procd init + hotplug + sysctl + inert default config (sh -n clean)
- CI: gh-action-sdk matrix (x86_64/aarch64_cortex-a53/+2), signed feed; BUILD.md; dist/
- examples: full+minimal /etc/config/xray, share-link fixtures
- CONTRACT.md: UCI schema + xrayctl CLI/ubus interface
2026-07-09 00:40:53 +03:00
omar d3d8cc6be4 Fix mermaid: quote labels, drop slashes and list-prefixes (Gitea render), remove stray fence 2026-07-09 00:11:37 +03:00
omar 2f021c1a1a Design blueprint: architecture, feature catalog, data model, ops, roadmap (docs 00-07) 2026-07-08 23:49:28 +03:00