58 Commits
Author SHA1 Message Date
waozi 0f3496262c Rewrite the liboqs fetch to the Gitea vendor copy in CI generation
Mesh CI and deploy / native (push) Successful in 9m19s
Mesh CI and deploy / scans (push) Successful in 4m59s
Mesh CI and deploy / checks (push) Successful in 14m38s
Mesh CI and deploy / deploy (push) Successful in 1m43s
2026-11-24 20:44:01 -03:00
waozi 71a56a13e6 Run the Mesh CI workflow natively without Docker
Mesh CI and deploy / checks (push) Failing after 18m32s
Mesh CI and deploy / native (push) Successful in 30m56s
Mesh CI and deploy / scans (push) Successful in 33m38s
Mesh CI and deploy / deploy (push) Skipped
2026-11-24 18:31:55 -03:00
waozi 8854464571 Prove legacy peer headers, match Go metrics, and sandbox the service
Mesh CI and deploy / checks (push) Successful in 37m19s
Mesh CI and deploy / native (push) Successful in 17m28s
Mesh CI and deploy / scans (push) Successful in 4m37s
Mesh CI and deploy / container (push) Skipped
Mesh CI and deploy / deploy (push) Successful in 1m47s
The native pull client sent both X-Mesh-Node-* and X-Daochi-Node-*
signatures but nothing tested the legacy pair. A fixture peer now accepts
only the Daochi names and verifies ID, Time, Nonce and Signature against
the pulling node's paired key.

Native route labels used {reference}, {id} and {path} where Go writes
{recipient}, {receipt_id} and the bare collection prefixes, and native had
no referral rows. Both sides now emit the same 129 labels, and a parity
test fails on any family name, type or label mismatch.

mesh.service ran as root with ProtectSystem=no. Installs now create a
dedicated mesh account, hand it the data directory, let it read root-owned
configuration through its group, and install a drop-in with
NoNewPrivileges, ProtectSystem=strict, ReadWritePaths and PrivateTmp.
Rollback restores the recorded ownership and the previous drop-in.
2026-11-23 16:43:20 -03:00
waoziandCommandCodeBot 6f5d618f64 Link the native release against the libmicrohttpd the suite built
Mesh CI and deploy / container (push) Skipped
Mesh CI and deploy / checks (push) Successful in 15m3s
Mesh CI and deploy / scans (push) Successful in 3m12s
Mesh CI and deploy / native (push) Successful in 12m30s
Mesh CI and deploy / deploy (push) Successful in 2m10s
Run 431's native job failed at the release link with
"cannot find -l:libmicrohttpd.so.12", so the deploy job was skipped and
production stayed on the run 358 binary. The native suite passes the library
path through MICROHTTPD_NATIVE_DIR, but build-native was the only native
target that ignored it, and the release step did not pass it either.

build-native now honours MICROHTTPD_NATIVE_DIR like every sibling target,
the release step passes the path the native-libraries action already built,
and the workflow test fails when that argument goes missing again.

Co-authored-by: CommandCodeBot <[email protected]>
2026-11-23 08:48:53 -03:00
waozi 39cda79d13 Cut the per-push gate: parallel jobs, one Go test run, binaries built once
Mesh CI and deploy / container (push) Skipped
Mesh CI and deploy / checks (push) Successful in 47m51s
Mesh CI and deploy / native (push) Failing after 23m36s
Mesh CI and deploy / scans (push) Successful in 27m0s
Mesh CI and deploy / deploy (push) Skipped
Run 389 took 70 minutes in checks and 22 in deploy. Each job rebuilt Ziran
(about 10 minutes, the runner's cache server is unreachable), the Go
package ran twice (coverage 13 minutes, race 22), SQLite and libmicrohttpd
were rebuilt for the native suite, and the deploy regenerated everything
before the origin compiled both servers again.

Now checks, native and scans run side by side. Go tests run once per push;
coverage, the race detector and the container image (which nothing
deploys) move to the weekly run. Each runner keeps its Ziran build and the
SQLite and libmicrohttpd builds keyed by their pins, and scans skip inputs
that already passed on that runner. Build's slots and the origin run
Debian 13 with glibc 2.41, so checks and native build the Go and native
releases with their manifests and the deploy ships them; the origin
gateway checks each against its manifest and compiles nothing. A release
build fails if a binary needs a newer glibc than the origin's.
2026-11-23 06:02:52 -03:00
waozi 09cd516a75 Retire the GitHub deploy path and its origin key tooling
The GitHub mirror's deploy and origin-identity workflows logged in to the
production origin as root with an unrestricted key. That key is removed
from the origin and the workflows are disabled, so their files and the
bootstrap scripts only they used are deleted. Gitea's forced-command
deploy is the only path, and the workflow test now refuses a GitHub
deploy workflow. The deployment-input test checks the Gitea workflow.
2026-11-23 01:59:35 -03:00
waozi 938156c35a Run the native server in production and keep sync tokens out of the unit
Mesh CI and deploy / container (push) Successful in 22m21s
Mesh CI and deploy / checks (push) Successful in 51m58s
Mesh CI and deploy / deploy (push) Successful in 19m14s
deploy/runtime selects the native Ziran server. The Go binary stays at
/opt/mesh/mesh for its CLI commands and as the rollback, which removing
mesh.service.d/30-runtime.conf restores.

systemd shows Environment= values to local users, and the node sync
token in the 20-mesh-mesh.conf and 20-daochi-mesh.conf drop-ins was an
older value that /etc/mesh/mesh.env overrides. Installs now back up and
remove both drop-ins, rollback restores them, and a deploy that passes a
token is refused before any change, so the 0600 mesh.env is the only
place that holds it.
2026-11-22 22:49:18 -03:00
waozi e5644145a7 Pin the pushed native dependencies and restore the native CI steps
Mesh CI and deploy / container (push) Successful in 50m22s
Mesh CI and deploy / checks (push) Successful in 1h37m27s
Mesh CI and deploy / deploy (push) Successful in 24m35s
The toolchain moves to Ziran c450e3a3 for rooted child file handles and
multi-member gzip, compression to c42011e for the zstd streaming encoder
and SQLite to b15b524 for busy and progress handlers. The native server
now builds from the locked inputs, so the checks job runs the native
server suite again and the deploy job ships the generated native C.
2026-11-22 22:42:49 -03:00
waozi 28578d5617 Write the native entry from Make and drop two Python scripts
Mesh CI and deploy / container (push) Successful in 18m9s
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / checks (push) Canceled after 27m34s
The Makefile writes the native entry module itself with $(file), quoting
the build version as a Ziran string literal, so the native build no
longer runs scripts/write_native_entry.py. The output is byte-identical,
and an empty version still stops the build. scripts/test_python.py ran
nothing in CI or the Makefile.
2026-11-22 22:16:35 -03:00
waozi cd913bc2fd Skip CI for plan and Markdown pushes; close the Gitea delivery plan
Mesh CI and deploy / container (push) Successful in 14m53s
Mesh CI and deploy / checks (push) Successful in 30m23s
Mesh CI and deploy / deploy (push) Successful in 9m21s
Gitea run 313 deployed b4ea4c2 after every gate passed, and the public
node and the origin manifest report that revision. Pushes that change
only plans or Markdown no longer test or redeploy the server.
2026-11-22 21:26:39 -03:00
waozi b4ea4c2399 Accept Gitea's trailing-slash server URL in the deploy guard
Mesh CI and deploy / container (push) Successful in 14m13s
Mesh CI and deploy / checks (push) Successful in 32m6s
Mesh CI and deploy / deploy (push) Successful in 9m59s
Gitea evaluates job conditions with its ROOT_URL, https://git.waozi.xyz/,
so the exact comparison skipped the deploy job after every gate passed.
The runtime check in the deploy job strips the same trailing slash.
2026-11-22 20:42:46 -03:00
waozi 12226b595b Give the Gitea Go test runs a 30 minute timeout
Mesh CI and deploy / container (push) Successful in 15m10s
Mesh CI and deploy / checks (push) Successful in 28m24s
Mesh CI and deploy / deploy (push) Skipped
The Mesh package takes about 9 minutes under -race on the shared slot, and
on the overflow runner it passed go test's default 10 minute limit.
2026-11-22 20:12:46 -03:00
waozi e45576d881 Always write the gosec report in Gitea CI
Mesh CI and deploy / container (push) Successful in 15m12s
Mesh CI and deploy / checks (push) Failing after 30m44s
Mesh CI and deploy / deploy (push) Skipped
With -quiet, gosec writes no report when it finds nothing, so the clean
scan passed and the required report upload failed. The scan now always
writes its SARIF.
2026-11-22 19:40:08 -03:00
waozi 76fe8298ac Hold native CI steps until the native dependencies are pushed
Mesh CI and deploy / container (push) Successful in 14m24s
Mesh CI and deploy / checks (push) Failing after 27m14s
Mesh CI and deploy / deploy (push) Skipped
The native server compiles only with uncommitted Ziran standard library,
compression and SQLite work, so with the locked toolchain the checks job
and the native release in the deploy job failed and blocked every Go
deploy. The plan lists the missing symbols and how to restore both steps.
2026-11-22 19:10:32 -03:00
waozi 310fc4b53e Forward the native targets through the make shim
Mesh CI and deploy / container (push) Successful in 15m19s
Mesh CI and deploy / checks (push) Failing after 29m35s
Mesh CI and deploy / deploy (push) Skipped
make reads the lowercase makefile shim first, which forwards a fixed list
of targets, so CI could not run sqlite-native and the origin could not run
build-native. A workflow test checks that every target CI runs is
forwarded.
2026-11-22 18:35:55 -03:00
waozi f9fb1555ba Ship and install the native server beside the Go binary
The deploy job adds the native server's generated C and SQLite source to
the artifact. The origin gateway builds them with cc when present and
verifies their manifest, and install.sh installs /opt/mesh/mesh-native
beside the Go binary, whose CLI commands stay in use.

deploy/runtime selects the server through a mesh.service drop-in. It
stays go until the origin has built native once; a failed install
restores the previous binary and selection.
2026-11-22 18:17:12 -03:00
waozi 39a79ae85d Build the native server from its generated C without Ziran
native-release collects the native server's generated C and the SQLite
amalgamation from the locked source. build-native compiles them with cc,
links SQLite and liboqs statically and the origin's runtime libraries by
soname, and records a manifest with the C compiler and a digest of the
compiled sources. The binary built this way passes the native server
suite.
2026-11-22 18:13:56 -03:00
waozi 6888d84371 Report coverage in module mode and clear stale CI images
go tool cover lists the profiled packages in vendor mode, which the
liboqs vendor folder fails, so the checks job failed after every test
passed. A cancelled container job also leaves its image behind until the
Mesh runner refuses work below 2 GiB free; each build now removes earlier
job images first.
2026-11-22 18:08:59 -03:00
waozi a5efee723d Run the native server suite in Gitea CI
CI tested only the Go build. The checks job now builds SQLite from the
locked sqlite3 source outside its package checkout, extracts Debian's
pinned libmicrohttpd 1.0.1-4, the package the origin installs, and runs
the native server suite against both.
2026-11-22 17:42:02 -03:00
waozi 07eb5f780d Install Trivy from its pinned release in Gitea CI
Mesh CI and deploy / checks (push) Failing after 24m12s
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / container (push) Canceled after 13m28s
trivy-action's setup checked Trivy out from GitHub with the Gitea job
token, which GitHub refuses, so the container job failed after the image
probe passed. The job installs the checksummed v0.70.0 release and the
action skips its own setup.
2026-11-22 17:37:18 -03:00
waozi e916579e4a Fix the Go root and container probe in Gitea CI
The shared runner exports the native SDK's Go 1.26.8 GOROOT, so lint read
that standard library with setup-go's 1.26.11 toolchain and failed. The
checks job now points GOROOT at the installed Go.

The CI slice denies private ranges, including Docker's bridge, so the
container's published port never answered. A pinned busybox probe now
reads readiness and the node revision from the container's own network
namespace.
2026-11-22 17:16:51 -03:00
waozi 7341e9f6b5 Fetch Ziran and Kryon packages from Gitea in Mesh jobs
Mesh CI and deploy / checks (push) Failing after 39m57s
Mesh CI and deploy / container (push) Failing after 58m24s
Mesh CI and deploy / deploy (push) Skipped
The Mesh runner fetched locked packages from the GitHub mirror, which
refused the renamed daochi-client checkout. The generate step now
rewrites the ziranlang and kryonlabs organizations to Gitea, the primary
host, as the shared runner already does. Gitea keeps the renamed
repository reachable and the recorded origin stays the locked URL.
2026-11-22 16:13:21 -03:00
waozi 4b22b79370 Keep fetched Ziran packages between Gitea jobs
Mesh CI and deploy / container (push) Failing after 13m29s
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / checks (push) Canceled after 16m7s
The generate step pointed the Ziran cache at the job's temporary folder,
so every job cloned sqlite, curl, raylib, libwebp and both liboqs commits
from GitHub again, about 34 minutes on the Mesh slot. Host runners now
keep those checkouts in their own cache, outside the checkout.

setup-go no longer restores the job cache. The host runner keeps the Go
build and module caches, and the restore waited out a 4m40s timeout.
2026-11-22 15:57:16 -03:00
waozi fb4ab2949f Run the shared-slot Gitea gates in one checks job
Mesh CI and deploy / container (push) Failing after 35m8s
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / checks (push) Canceled after 36m51s
Lint, test, race, vulnerability, gosec and license checks each set up
Ziran, regenerated the Go and rebuilt liboqs on the single shared Build
slot. One checks job now does that setup once, runs the plain tests and
coverage in one pass, and drops the repeated migration test. The
container job still runs in parallel on the Mesh runner.

The origin gate requires the checks and container jobs, and a workflow
test keeps it equal to the deploy needs.
2026-11-22 15:19:24 -03:00
waozi 60caafdc41 Verify both Gitea vulnerability scan jobs before deploying
Mesh CI and deploy / build-policy (push) Successful in 1m17s
Mesh CI and deploy / container (push) Failing after 13m14s
Mesh CI and deploy / lint (push) Failing after 13m18s
Mesh CI and deploy / govulncheck (0) (push) Canceled after 0s
Mesh CI and deploy / govulncheck (1) (push) Canceled after 0s
Mesh CI and deploy / source-security (push) Canceled after 0s
Mesh CI and deploy / deploy (push) Canceled after 0s
Mesh CI and deploy / test (push) Canceled after 3m37s
2026-11-22 14:58:38 -03:00
waozi c1783c1201 Move Mesh CI and API deployment to Gitea 2026-11-22 14:55:41 -03:00
waozi 82940cd9f0 Native Linux Mesh server with WAL PRAGMAs, unlocked crypto/sync, and key-delete buffer wipe 2026-11-22 02:54:39 -03:00
waozi 149cff4635 Confine Mesh storage paths and update the Go build 2026-11-20 01:10:54 -03:00
waozi ed259e0334 Organize Mesh sources and finish the Ziran application port 2026-11-19 21:38:33 -03:00
waozi 8566e4cf1b Relay signed owner Lumi developer turns 2026-11-18 22:41:51 -03:00
waozi 35159302be Rename Daochi to Mesh with compatible state and deployment migrations 2026-11-17 14:57:07 -03:00
waozi 37f79b047f Offer hosts only package releases they can run, keep every archive, serve WebAssembly variants
A host naming zx=R gets only releases whose stored .zx header has revision R.
A host naming host_api without a revision (every released host) gets only
revisions before 28, and oldest_host_api excludes releases built for an
interface the host no longer runs. format=wasm serves a release's signed
WebAssembly variant (release-SEQUENCE.wasm.json beside SHA.wasm) as
application/wasm.

Package staging no longer deletes archived releases or blobs. The history
keeps the newest release of every format, ZX revision and interface plus
the newest ten, up to the 64 the node reads.
2026-11-16 02:37:10 -03:00
waozi 283e16df7a Reuse the existing SSH identity directory during deployment 2026-10-30 23:19:38 -03:00
waozi 1b0ed08cc7 Confine legacy package paths and scope the SHA-256 protocol review 2026-10-30 23:01:56 -03:00
waozi 4cf59fd92b Verify origin SSH pins against the authenticated node identity 2026-10-30 22:53:51 -03:00
waozi d14ab8e392 Minimize runtime image and resolve CodeQL extension rules 2026-10-30 21:35:05 -03:00
waozi 55165a8ddc Scan generated production code and make policy fixtures self-contained 2026-10-30 21:29:20 -03:00
waozi 64f75e90fc Validate published dependency graph and isolate deployment shell inputs 2026-10-30 21:21:24 -03:00
waozi 4242e371b5 Harden sessions, payment reconciliation, mesh quotas and release security gates 2026-10-30 21:11:12 -03:00
waozi 09fc5c702e Improve sync compression with bounded Zstandard reuse 2026-10-26 13:58:37 -03:00
waozi 143a2294a6 Generate the Go at build time instead of committing it
The 202 Go files zi2go makes from the Zi sources are no longer kept in
Git. They are written as .zi.go and .zi_test.go, which .gitignore leaves
out, and make build, test and run regenerate them when a source or
ziran.lock changes. CI, the security checks and the deploy build the
pinned Ziran (cached by commit) and generate the Go before any Go build;
the deploy still ships the generated tree to the origin, which only
compiles it. The pin moves to the current Ziran, whose output matches.
2026-10-24 03:19:26 -03:00
waozi 25c57f7f70 Serve ZX portable executables to ZX hosts and keep legacy ZIB releases for older ones 2026-10-23 21:00:48 -03:00
waozi 51796e88fd Retain three signed app versions and serve compatible history 2026-10-18 18:06:23 -03:00
waozi bbf655ddae Let a feedback report carry several developer replies
A developer reply replaced the report's single reply, so a second reply
overwrote the first and apps that had shown the first never showed the
second. A reply sent with its own 64-character reply_id is now added
beside the report's earlier replies in a new table, and retrying the same
reply_id and text adds nothing, while reusing a reply_id for other text is
refused. A reply without reply_id keeps its single-reply behavior.

Lumi's reply list returns every reply once, oldest first, each under its
own ID (the report's ID for the single reply), so released Inner Breeze
versions show every reply in order without an app update. Report lists show
each report's latest reply, replies leave with their report, and
scripts/feedback.py takes --reply-id.
2026-10-17 18:24:09 -03:00
waozi 70f9a0614c Point the Lumi bot description to Connect Telegram in Settings 2026-10-09 00:24:33 -03:00
waozi a80bd5704f Authorize scoped key-bound sessions and consume Telegram links atomically 2026-10-08 01:09:25 -03:00
waozi 62eaafcf17 Add Lumi Telegram commands and verified bot configuration 2026-10-07 17:16:45 -03:00
waozi 5c1c2f3a4f Add node-hosted Lumi chat and account-scoped app feedback 2026-10-07 01:03:12 -03:00
waozi 4c2d8141a3 Serve independently versioned signed ZIB app packages 2026-10-06 16:07:09 -03:00
waozi b9d00ff622 Serve signed portable app releases from registered Daochi publishers 2026-10-04 01:50:05 -03:00