Meshlet TODO
The current requirements are bounded by personal self-hosting: multiple devices, grouping within a network, controlled port forwarding, and HTTP service routing. A static review on 2026-10-17 found that some historical “completed” conclusions exceeded what the code and tests actually cover; the summary claim that “only two environment walkthroughs remain” is no longer usable.
- Architecture and TODO review: code evidence, six gaps, the new requirement model, and re-acceptance conditions.
- Meshlet / ZeroTier / Tailscale personal-networking research: a 61-item feature comparison, official sources, personal necessity, implementation difficulty, and test plans.
- Modularity and library-reuse proposal: dependency boundaries, shared libraries, and incremental migration; a conventional virtual NIC remains the primary path, with NIC-less service entry points assessed as needed.
- Gateways, network conflicts, and port forwarding: selecting a gateway per segment, Alias conflict domains, and complete scenarios and acceptance for an A-side port reaching a B-side service.
- Segment-as-trust-group design: ADR-012 adopts Segments within a Network, same-segment trust, default deny across segments, and unidirectional authorization contracts; IM-01 model fields and compile wiring, IM-02 default-segment creation/persistence, and IM-03 model and startup-recovery boundary validation are complete; kernel policy enforcement is still accepted by PN-02.
Current execution list (2026-10-17)
The priorities below are recommendations from this review round. Unimplemented approaches still require an ADR; recording them does not automatically change existing technical decisions. Proceed by dependency: repair foundations first, then extend services. Status: pending design / design draft complete / pending implementation / fixing / pending verification / accepted / deferred. An item is checked only after acceptance for the corresponding scope.
| ID | Priority / status | Goal and acceptance | Dependencies / evidence |
|---|---|---|---|
| AR-01 | P0 / Accepted (Linux netns) | One instance hosts two Networks simultaneously; apply, revoke, cleanup, and recovery do not interfere; unauthorized traffic is actively rejected | Measured MESHLET_REQUIRE_DATAPLANE=1 cargo test -p meshlet-server --locked --test single_instance -- --test-threads=1: 2 passed / 0 failed (128.18s). Dual-network link creation and recovery assertions apps/server/tests/single_instance.rs:277, :303, :360; failure rollback while the other network survives :389; cross-network denial and traffic loss after revocation while the other network on the same host stays alive :623, :638. Empty-VPS walkthrough remains under AR-06 |
| AR-02 | P0 / Accepted (API and console verification; business probing explicitly not connected) | Devices confirm application by revision/plan hash; hub success, device success, and business health are shown separately; stale ACKs do not overwrite new state | 2026-10-20: agent_plan.rs::resource_status_waits_for_exact_device_receipts_and_rejects_stale_acks 10 passed / 0 failed; plan-hash rejection apps/server/tests/agent_plan.rs:772; device pending/failed/applied convergence :762, :783, :801; stale ACK rejection on a new revision :823, :826. Console Hub / Devices / Connectivity render at console/src/App.tsx:1804, :1808, :1816; console/src/revisions.test.tsx:37 asserts 9 passed / 0 failed. business_health only verifies independent display and the not_probed default; real business probing is outside this row |
| AR-03 | P0 / Partially accepted (Linux netns) | Hub startup and periodic drift reconciliation; interfaces and VPS reboot recover to the desired state | Local rerun of MESHLET_REQUIRE_DATAPLANE=1 cargo test -p meshlet-server --locked --test single_instance -- --test-threads=1: 2 passed / 0 failed (70.62s). Interface deletion, rebuild from SQLite, and periodic recovery assertions apps/server/tests/single_instance.rs:358, :359, :363; after recovery, link A and network B remain :366, :367; a real full-VPS reboot is not yet accepted |
| AR-04 | P0 / Accepted (Linux netns) | Save and restore the last successful plan; failed recovery does not remove working connections or other network resources | Measured MESHLET_REQUIRE_DATAPLANE=1 cargo test -p meshlet-agent --locked --test plan_recovery -- --test-threads=1: 3 passed / 0 failed (17.85s). last-good readback and foreign-rule protection apps/agent/tests/plan_recovery.rs:184; tunnel/route/NAT failure recovery :274, :314, :347; retry convergence :408. Evidence that another network survives is in AR-01 apps/server/tests/single_instance.rs:389 |
| AR-05 | P0 / Accepted (four Linux netns combinations measured) | Add controlled_snat for Direct LAN; verify Direct/Alias × source-preserving/SNAT separately | 2026-10-20: MESHLET_REQUIRE_DATAPLANE=1 ran single_instance.rs 2 passed / 0 failed. Direct×controlled_snat at apps/server/tests/single_instance.rs:430, :462, :469 (POSTROUTING and connectivity); Direct×dual_route at :531, :562, :567 (fails without a return route → succeeds after an explicit route); Alias×SNAT at :934, :946, :954, :998 (API creation, TCP/UDP, exact POSTROUTING SNAT); Alias×dual_route at :1070, :1081, :1086 (fails without a return route → succeeds after an explicit route). All four combinations include business connectivity evidence |
| AR-06 | P0 / Pending verification | Production systemd permissions match the hub execution model; deploy on an empty VPS per the guide and verify the data plane | Production unit + drop-in have performed a real apply as uid 65534 in an isolated netns; the empty-VPS walkthrough remains |
| REL-01 | P0 / Accepted (GitHub Actions) | Build daily at 03:17 Beijing time; after checks and data-plane gates pass, publish dual-architecture nightlies, date versions, and SHA256SUMS | .github/workflows/nightly.yml; the first hosted dual-architecture build/release succeeded, and the download and SHA256SUMS were verified |
| REL-02 | P0 / Pending verification | English and Chinese READMEs provide one-command nightly install/upgrade; preserve configuration and keys, verify the package, install the service | scripts/install.sh / scripts/package-release.sh; script checks and empty-VPS acceptance |
| CR-01 | P0 / Accepted (API / Linux netns) | An old revision cannot execute the current snapshot or mark new resources Applied incorrectly; only the current revision is applied and remains idempotent | revisions.rs::old_pending_and_applied_revisions_cannot_publish_new_resources |
| CR-02 | P0 / Accepted (API / Linux netns) | The real agent entry point executes dnat_only without inventing an SNAT address; the Overlay source address is preserved | single_instance.rs via agent.reconcile verifies DNAT only, with and without a return route |
| CR-03 | P0 / Accepted (API / Linux netns) | A single gateway with multiple LANs resolves the SNAT source address per target prefix; deleted rules leave no residue | single_instance.rs two LANs reachable without return routes; kernel rule sources are .60.1/.61.1 respectively |
| CR-04 | P0 / Accepted (API / Linux netns) | Concurrent bootstrap on an empty database creates exactly one administrator; failed requests cannot obtain a session | auth_console.rs::concurrent_bootstrap_has_exactly_one_admin_session |
| CR-05 | P0 / Accepted (API / Linux netns) | The agent checks actual addresses, Peer/AllowedIPs, forwarding, route next hops, and each NAT rule; partial drift can be repaired | single_instance.rs verifies replay and communication recovery after partial SNAT loss and forwarding shutdown |
| QA-01 | P0 / Partially accepted (hosted gate stabilization) | Independent data-plane CI gate: missing prerequisites do not count as pass, and actual execution/skips are recorded; rebuild the final acceptance matrix | dataplane.yml hosted strict gate and log artifacts pass; :33 explicitly includes ledger_recovery/plan_recovery; normal CI explicitly SKIPs when wg is absent, while MESHLET_REQUIRE_DATAPLANE=1 still fails hard; implementation apps/agent/tests/ledger_recovery.rs:38, apps/agent/tests/plan_recovery.rs:1; Windows temp database apps/server/tests/transaction_boundary.rs:20; backup cleanup apps/server/tests/segments.rs:370. Local SKIP 4/4, strict data plane ledger 4/4 + plan 3/3, segments 6/6 + transaction 2/2, workspace/clippy/fmt/docs green; the real-VPS acceptance matrix remains |
| RG-01 | P1 / Pending verification | Different target prefixes use their designated gateways; return paths are correct and a gateway failure does not cross sites | Gateway topic; AR-02/AR-05; a basic routing model already exists |
| RG-02 | P0 verification / Partially accepted (Linux netns) | Use independent Aliases when two sites and the client's local LAN share a prefix; the production API/Agent + netns have verified UDP/TCP reaching local/site1/site2 respectively, tcpdump records three target/port tuples, local routes remain, and duplicate real prefixes do not enter the tunnel; after deleting site1 its routes and NAT disappear, site2/local remain reachable, and ip rule is unchanged; after server/agent restart the remaining plan is rebuilt exactly and recovers automatically. Return-mode changes, same-gateway ambiguity, business-failure recovery, backup/restore, and RG-03 conflict/preflight are not accepted; the whole item is not marked complete | Overlapping LAN Alias design; AR-01/MOD-03; test evidence: apps/server/tests/dual_site_end_to_end.rs:1299 TCP, :1313 packet capture, :1381 deletion cleanup, :1528 restart recovery; drift repair: apps/agent/src/reconcile.rs:138 passes |
| RG-03 | With P0 fixes / Pending design | Fully check Overlay/Alias/Direct/local routes and shared multi-network conflict domains; reject overlaps and make unknown cases traceable | Gateway topic; AR-01; exact-prefix preflight is not full conflict detection |
| PN-01 | P1 / Partially implemented (Segment authorization management API and console) | Intra-network grouping is wired into plan compilation: the default segment keeps full visibility; custom segments see only same-segment gateways by default, and an Applied unidirectional grant restores target visibility while AllowedIPs narrows to the source segment CIDR; Segment/grant CRUD APIs are network-isolated and reject unknown segments, same-segment, duplicate, and overlapping input; Pending does not enter the hash, Applied enters the v4 hash, and Revoked restores; the console can create/view/apply/revoke grants; SQLite commit and backup reload recovery are complete. Device/capability models and real kernel deny policy are not accepted | ADR-012; implementation apps/server/src/segment.rs:13, apps/server/src/service.rs:1924, :2038, :2102, apps/server/src/persist.rs:334, :361, :391, console/src/App.tsx:1082, console/src/api.ts:371; tests apps/server/tests/segments.rs:184, :252, :318, console/src/segment-grants.test.tsx:47; this round MESHLET_REQUIRE_DATAPLANE=1 cargo test -p meshlet-server -p meshlet-domain --locked -- --test-threads=1 and workspace clippy -D warnings are green |
| PN-02 | P1 / Pending design | Minimum segment-to-device/service port policy; define default behavior, with kernel evidence for both allow and deny | PN-01, AR-01, AR-02; endpoint enforcement is required before P2P |
| PN-03 | P1 / Pending implementation | Complete Windows Overlay client: tunnel service, privilege elevation, boot recovery, and cleanup | ADR-008; existing netsh primitives are not a complete client |
| PN-04 | P1 / Pending design | Path diagnostics and measured baselines: report business success rate, direct-connect rate, first-connect/recovery time, and throughput separately | Research C11/C13/O01 and the experiment matrix; no speed test this round |
| PN-05 | P1 prototype / Pending design | Verify HTTPS/TCP fallback when UDP is disabled; record transport, MTU, identity authorization, and recovery boundaries | Research C07; new ADR; this is not changing the WireGuard port |
| PN-06 | P1 prototype / Pending design | Verify direct connectivity over LAN/known public v4/v6 endpoints, then assess NAT traversal and automatic switching | PN-02, PN-04; research C02…C05/C08; schedule formally after the prototype passes |
| PN-07 | P2 / Partially pending verification | TCP/UDP port forwarding: an A-side entry reaches a B/site service; verify local and remote inbound, listener conflicts, loopback backend, return paths, UDP sessions, and revocation | 2026-10-17 shipped a single-host, all-port subset: /networks/{id}/host-forwards atomically creates/deletes a /32 Route+Alias, the console can manage it, plans include NETMAP/SNAT, and routes.rs/agent_plan.rs tests cover creation, conflicts, deletion, and plans. Why the whole item is unchecked: A-side listener, loopback backend, per-port mapping, measured UDP sessions, and PN-02 policy are still missing; AR-02, AR-04, PN-02; NAT/LAN approaches also depend on AR-05/RG-02; see the gateway topic and research S01/S02 |
| PN-08 | P2 / Pending design | Nginx HTTP domain/path routing; validation, reload, failure recovery, and business probing are separate | PN-07 service model, AR-02/AR-04; research S03/S04 |
| PN-09 | P2 / Pending design | Lightweight name resolution and service catalog; do not overwrite foreign DNS configuration | Research S06/S08; schedule by day-to-day usage frequency |
| PN-10 | On demand / Deferred | One machine with multiple networks, macOS/mobile, standby relay, guest service authorization | Research N02/P03…P05/C10/A08; decide from actual devices and scenarios |
| MOD-01 | P1 / Pending design | Define shared-library responsibilities, dependency direction, and compatibility scope; modularize first, extract crates as needed later | Modularity proposal; no microservices and no premature stable-API commitment |
| MOD-02 | P1 / Pending design | Reduce domain's default authentication dependencies; place complete DTOs correctly and avoid Agent/Server duplication and string-based error checks | MOD-01; lightweight independent-consumer validation |
| MOD-03 | With P0 fixes / Pending design | Extract a pure planning boundary, separate from executors and local private keys | AR-01/AR-02/AR-04; do not move directories before fixing semantics |
| MOD-04 | P1 / Pending design | Inject backend/client/state into the coordination core; desktop dependencies are optional and host shutdown is supported | MOD-01/MOD-03; retain real-kernel behavior acceptance |
| MOD-05 | On demand / Pending design | Extract a management SDK, independent consumer examples, public API documentation, and package-release preparation | MOD-02; this item does not authorize publishing or version changes |
| MOD-06 | P1 / Pending design | Conventional client: single registration, background autostart, split routing, and recovery; reassess a service proxy for no-TUN scenarios | AR-03/AR-06/PN-03; a NIC-less path is not a general networking substitute, and no second transport is promised for this release |
Until P0 acceptance is complete, do not use the old “25/27 have test evidence” measure to judge release readiness. A P1 connectivity prototype does not mean all traversal or global relay will be implemented immediately; if measurements show that restricted networks or detours are the main problem, prioritize the corresponding connectivity capability.
Implementation review breakdown (2026-10-17)
This is a supplementary review of the current workspace and does not replace the tasks above. IM items track concrete fixes, design decisions, and acceptance separately; code paths are relative to the repository root. Except for compile failures that already have local command evidence, the remaining issues come from static code inspection and do not yet have new runtime reproductions or acceptance. If a proposal changes an existing contract, add an ADR first; the listed implementation direction does not mean the decision is adopted.
| ID | Priority / status | Breakdown task and acceptance | Related / code basis |
|---|---|---|---|
| IM-01 | P0 / Complete | Complete Segment fields and test construction: fix Device loading missing segment_id, BootstrapToken writing the wrong field, domain test-crate references, and missing fields; offline workspace check, domain tests, and server lib tests pass | PN-01; apps/server/src/persist.rs, service.rs, crates/meshlet-domain/src/peer_routes.rs; this round: check passes, domain 105 passed, server lib 17 passed |
| IM-02 | P0 / Complete | Standardize the default Segment ID as seg-<network_id>; a new network creates its default segment in the same transaction, invitation join and approval promotion write the device segment assignment, and startup loading validates network membership; migration, empty-database network creation, approval/invitation join, restart, and backup-restore regressions pass | IM-01, PN-01; migrations/010_segments.sql, 011_segment_defaults.sql, apps/server/src/service.rs, persist.rs; full server suite passes |
| IM-03 | P0 / Complete (model and startup-recovery boundary) | Segments use full CIDR containment rather than overlap: the default segment must equal the Overlay exactly, and non-default segments must strictly contain it without equaling it; startup loading rejects larger/out-of-range/non-default whole-Overlay segments and cross-network or out-of-range device addresses, including boundary regressions. Coexistence/migration for default plus new child segments and kernel policy compilation remain unimplemented and do not represent PN-02 acceptance | IM-01, PN-01; crates/meshlet-domain/src/cidr.rs::contains_cidr, segments.rs::Segment::validate_cidr, validate_device_segment, conflict.rs::segment_overlay_containment, apps/server/src/service.rs::restore_segment/restore_device, apps/server/src/persist.rs; domain boundary and persistence tests pass; cross-segment default deny and unidirectional authorization remain under PN-02 |
| IM-04 | P0 / Complete (implementation and Linux netns tests) | /32 Host Forward chooses the SNAT source from the actual egress route; apply and readback share resolution logic; a real agent's API create → NETMAP/SNAT → bidirectional communication → delete covers multiple LANs, no egress, and dnat_only. The conclusion is limited to current Linux netns/API scenarios and does not extend to a real VPS or PN-07's full port-forwarding acceptance | PN-07, AR-05, CR-03; commit 5f73809; crates/meshlet-network/src/linux.rs::lan_source_for/route_source/apply_device_plan_sync/device_plan_matches_sync, crates/meshlet-network/tests/lan_source.rs, apps/server/tests/single_instance.rs::host_forward_agent_roundtrip_sources_and_cleanup |
| IM-05 | P0 / Complete (control-plane conflict semantics) | check_new_forward_prefix unifies Host Forward / Alias / Direct creation entry points against the shared forwarding space and existing forwarding prefixes in the network; Alias first completes ADR-006 target derivation and equal-length/different-target validation, then performs prefix-conflict checks; rejection at different entry points and orders leaves no partial state. Full cross-endpoint/client conflict discovery remains RG-03 | RG-03, AR-01; commit 5f73809; apps/server/src/service.rs::check_new_forward_prefix and Host Forward / Alias / Direct entry points, routes.rs::host_forward_conflicts_do_not_write_partial_state, service.rs::forwarding_prefix_entrypoints_reject_each_other_atomically, aliases.rs::prefix_length_must_equal_target_and_must_differ |
| IM-06 | P1 / Complete (revocation contract and Linux netns acceptance) | Revoke immediately revokes agent credentials and records a Pending revision excluding the device; after explicit user apply succeeds, the hub keeps peers only for Active devices (apps/server/src/revision.rs:414, apps/server/src/revision.rs:459), and the Linux backend explicitly deletes old peers outside the target peer set (crates/meshlet-network/src/linux.rs:209). Persistence failure does not auto-apply; recovery tasks filter revoked peers and replay the filtered last-good (apps/server/src/revision.rs:170); real netns measurements verify traffic loss, same-network survival, Token 401, no resurrection by reconcile, and traffic remains blocked with one peer after interface deletion and restart recovery | AR-01, AR-03, AR-04; credential tests apps/server/tests/device_revoke.rs:190 and apps/server/tests/agent_plan.rs:653; desired-removal tests apps/server/tests/device_revoke.rs:158, apps/server/tests/device_revoke.rs:268; real netns traffic/restart assertions apps/server/tests/single_instance.rs:623, apps/server/tests/single_instance.rs:657; OpenAPI contract docs/public/api/openapi.yaml:524; measured single_instance 2 passed, server/domain/agent suites green, MESHLET_REQUIRE_DATAPLANE=1 cargo test --locked --workspace -- --test-threads=1 green |
| IM-07 | P1 / Accepted | After success, the agent writes the complete localized DevicePlan without private keys into last-good (apps/agent/src/reconcile.rs:45, apps/agent/src/agent.rs:276); if NAT pre-cleanup, managed-route cleanup, apply_device_plan_sync, or the final readback fails, it replays the old plan and reads back, returning on failure combinations without writing a success ledger (apps/agent/src/agent.rs:192, :234, :289, execution entry crates/meshlet-network/src/linux.rs:907). Real netns injects failures at tunnel, route, and NAT stages, verifying restoration of old tunnel addresses, proto 198 routes, and Meshlet NAT, preservation of foreign routes/NAT, an Err receipt, and retry convergence after fault removal | AR-04, MOD-04; new tests apps/agent/tests/plan_recovery.rs:251, :291, :324; compatibility regressions apps/agent/tests/ledger_recovery.rs:246, :264, :279, :306; measured MESHLET_REQUIRE_DATAPLANE=1 cargo test -p meshlet-agent --locked -- --test-threads=1: lib 50 passed, main 0 passed, agent_reconcile 1 passed, ledger_recovery 4 passed, plan_recovery 3 passed, doc-tests 0 passed (all 0 failed); workspace clippy --all-targets -D warnings 0 errors; pnpm docs:build complete in 6.26s |
| IM-08 | P1 / Complete (real Linux netns acceptance) | When the local ledger is missing/corrupt, clean up from the kernel ownership list: enumerate meshlet alias * NAT owners (crates/meshlet-network/src/linux.rs:823) and delete old routes only by proto 198 (crates/meshlet-network/src/linux.rs:842); foreign NAT and routes are preserved, covering missing, corrupt, mapping deletion plus restart, and partial failure | IM-07, CR-05; object assembly/reconciliation apps/agent/tests/ledger_recovery.rs:106, apps/agent/tests/ledger_recovery.rs:185; tests apps/agent/tests/ledger_recovery.rs:246, apps/agent/tests/ledger_recovery.rs:264, apps/agent/tests/ledger_recovery.rs:279, apps/agent/tests/ledger_recovery.rs:306; implementation entry apps/agent/src/agent.rs:223, apps/agent/src/reconcile.rs:194; cargo test -p meshlet-agent --locked 4 passed, workspace clippy -D warnings and docs build pass |
| IM-09 | P1 / Complete (write transaction and in-memory commit boundary) | Inside the persist lock, the handler clones MeshState into temporary resources, revisions, and sequences; a combined transaction commits resources, revisions, sequences, audit, and one-time credentials together, replacing shared memory only after success; on failure memory is not published and the transaction rolls back. Covers network creation, invitation join, approval promotion, Direct Route, Alias, Host Forward, Route/Alias/Host Forward deletion, and device revocation. Trigger injection into resources, revisions, audit, and Agent Token verifies no orphan DB rows, no failed draft absorbed into memory, no duplicate invitation used_count consumption, and retry convergence; it also fixes unique-key conflicts caused by retries reading temporary revisions during deletion | IM-02, MOD-03; apps/server/src/lib.rs::create_network_handler, apps/server/src/persist.rs::commit_network/commit_enrollment/commit_route/commit_alias/commit_host_forward/commit_approve_registration/commit_revoke_device/commit_route_delete, apps/server/tests/transaction_boundary.rs; this round domain 116 passed, server lib 21 passed, routes 12/aliases 11/enroll 13/device_revoke 7/audit 4/backup 7/recovery 5/transaction_boundary 2 passed, workspace clippy -D warnings and pnpm docs:build pass |
| IM-10 | P1 / Complete (backup business consistency and recovery boundary) | While a concurrent route write is paused by a SQL trigger between the resource row and revision row, VACUUM INTO backup contains only completed networks/devices/revisions (0 orphan routes, revisions 1→2 continuous); after offline restore it continues from the last successful plan, the next route is rt-1, and the revision is 3. A failed revision write also rolls back the resource; after backup and restore there are no missing revisions or orphan resources, and retry yields revision 3. The backup contains password/token/invitation/bootstrap-code digests and revocation state but no raw secrets, and no server/agent local WireGuard private keys; a new machine must separately restore the file pointed to by DataPlaneConfig::private_key_file or explicitly rotate it | IM-09, AR-03, AR-04; apps/server/tests/backup.rs::concurrent_backup_contains_only_complete_business_commits, failed_revision_write_never_backs_up_or_restores_orphan_resource, docs/zh/architecture/backup-restore.md; measured cargo test -p meshlet-server --locked --test backup -- --test-threads=1 9 passed, cargo test -p meshlet-server --locked --test transaction_boundary --test recovery -- --test-threads=1 7 passed, workspace clippy -D warnings and pnpm docs:build pass |
| IM-11 | P1 / Complete (request-path blocking isolation) | Apply/rollback first records database intent and reserves in-memory state under the same network lock, then moves backend snapshots and kernel execution into spawn_blocking, converging/committing the conclusion only after success; repeated apply does not call the backend again, same-network requests serialize, and different networks run in parallel. Argon2 hashing/verification runs inside a semaphore in spawn_blocking. Covers slow kernels, cross-network parallelism, failure receipts, repeated apply, and slow-login capacity | MOD-03, MOD-04, IM-08, IM-09; implementation apps/server/src/revision.rs:640, apps/server/src/revision.rs:852, apps/server/src/auth.rs:570, apps/server/src/auth.rs:637, apps/server/src/auth.rs:668; tests apps/server/tests/revisions.rs:504, :555, :573, :611, apps/server/tests/auth_console.rs:436; measured cargo test -p meshlet-server -p meshlet-domain -p meshlet-agent --locked green (server 235, domain 116, agent 55) |
| IM-12 | P2 / Complete (console tests) | The console correctly shows revision-load failures and refreshes convergence: 401/500 show an error state rather than an empty list; the latest device ACK pending triggers periodic refresh; switching networks remounts by React key, and AbortController cancels old requests and discards their responses; device failure is not reported as applied | AR-02; console/src/App.tsx:1522, console/src/api.ts:222, console/src/api.ts:291; tests console/src/revisions.test.tsx:29 (401/500), :46 (empty list), :55 (device failure), :70 (delayed ACK), :93 (network switch); pnpm --dir console lint, pnpm --dir console test 6 passed, pnpm --dir console build, and pnpm docs:build pass |
Suggested execution batches: IM-01…IM-03 completed the Segment model and startup-boundary wiring; IM-04…IM-05 fixed the existing forwarding path; IM-06…IM-08 clarified revocation and endpoint recovery; IM-09…IM-11 tightened consistency and execution boundaries; IM-12 completed the console state loop. Items that can proceed independently are scheduled by dependency; PN-02 kernel-policy acceptance cannot be checked merely because the model or migration is complete.
Subsequent capabilities continue to use the existing items: per-port TCP/UDP mapping and listener entry points belong to PN-07, the complete Windows backend to PN-03, shared DTOs/protocol to MOD-02, and module splitting to MOD-01/MOD-03. Multi-user per-network authorization remains within the personal self-hosting boundary and is redesigned with PN-10 guest requirements; this round adds no multi-tenant commitment.
Correction criteria for historical records
Historical records have moved to the implementation history, preserving original evidence and execution process; their checkboxes are not the completion rate of the whole product capability. Original checkmarks for return-path dual mode, rollback safety, failure recovery, and post-recovery coordination are reopened and tracked by AR-05, AR-04, and AR-03 respectively. Existing single-host bookkeeping evidence for the configuration state machine is retained, while distributed application confirmation is accepted separately by AR-02; multi-network isolation is re-verified by AR-01.
Status is determined by the actual platform, topology, and execution result. Static review, injection tests, real-kernel netns, and real-deployment evidence are listed separately; skipping due to missing privileges does not count as a data-plane pass. Dependencies, goals, status, and acceptance live in this section, while detailed history is retained in the separate records above; new progress updates only stable IDs and corresponding evidence on this page.
Verification record for this round
See the P0 fixes and nightly implementation record for details.
Segment measurements: cargo check --workspace --all-targets --offline passes; cargo test -p meshlet-domain -p meshlet-server --offline is green (domain 109 passed; server lib 21 passed, all integration suites 0 failed, including migration 12, recovery 5, approval registration 6, invitation join 13, backup/restore 7, old-backup upgrade 7); pnpm docs:build (VitePress 1.6.4) packaging and page rendering pass. IM-03 accepts only the model and startup-recovery boundary; policy enforcement and the real data plane are still not considered accepted.
CR-01…CR-05 are accepted for the API / Linux netns scope; AR-01…AR-06 are implemented, actual CI has passed, and empty-VPS acceptance remains pending.
Measured coverage (
cargo llvm-cov --workspace --all-targets --offline --summary-only): workspace line coverage 90.98%; the main uncovered areas are process entry points, Linux/Windows shell code, DBus desktop integration, and error paths. It has not reached 98%, so it is not marked accepted; later work should split pure logic along testable boundaries and inject platform dependencies rather than excluding source to inflate the number.The production server unit + drop-in ran as uid 65534 in an isolated netns; private key 0600, WireGuard, forwarding, firewall, and application readback pass.
The x86_64 musl release is built and packaged; console/document builds, ShellCheck, and actionlint pass.
The full strict test suite passes:
MESHLET_REQUIRE_DATAPLANE=1 cargo test --locked --workspace -- --test-threads=1, 381 passed / 0 failed / 0 ignored, 0 SKIP. The first hosted dual-architecture nightly build and release pass, and archive and installer download verification pass; one-command installation on a real empty VPS remains pending.Subsequent capabilities such as PN / MOD are not all implemented; each item retains its current status. Windows/mobile acceptance environments are still required.
Remote acceptance: the first nightly release succeeded; Windows/Linux CI passed after fixing explicit pool closure on migration failure.
[x] VitePress official locales for bilingual docs (2026-10-17 user directive):
locales.root(en-US) andlocales.zh(link: '/zh/') are configured, with independent nav/sidebar per language; English editorial pages live under thedocs/root (41 pages) and the Chinese source underdocs/zh/(41 pages), without a custom language-switch link.pnpm docs:build(VitePress 1.6.4) passes, including dead-link and anchor checks.