Skip to content

Delete legacy Python sandbox node daemon; make standalone Rust ucloud-noded the sole worker daemon (Wave C3) - #71

Merged
rlrs merged 3 commits into
mainfrom
wave-c3-delete-python-noded
Nov 30, 2026
Merged

rlrs merged 3 commits into
mainfrom
wave-c3-delete-python-noded

Conversation

@rlrs

@rlrs rlrs commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

Completes the migration to standalone Rust ucloud-noded (--standalone-config) as the sole sandbox worker daemon and removes the legacy Python sandbox node daemon (152 files changed, +1,978 / -40,943 — net -38,965 lines):

  • sandboxes/ (+304 / -20,711, net -20,407 lines):
    • Retired sandbox.direct_node_standalone_rust as true-only in sandboxes/config.py (omitted or true accepted for existing deployment configs; false rejected).
    • Updated sandboxes/vm_init.py so role == "sandbox" always renders standalone Rust ucloud-noded --standalone-config and disables any legacy ucloud-sandbox-node.service (builder nodes continue using sandboxes/builder_agent.py).
    • Removed serve-direct-node-agent from sandboxes/cli.py.
    • Deleted 23 legacy Python sandbox node-daemon modules (node_agent.py, direct_service.py, direct_warden.py, direct_provisioner.py, direct_registry.py, direct_network.py, direct_oci.py, direct_runtime.py, memory_backing.py, pause_tier.py, pause_handoff.py, create_handoff.py, admission_backend.py, admission_decision.py, transition_admission.py, noded_client.py, node_commit.py, resident_memory.py, environment_rootfs.py, disk_claims.py, sandbox_exec.py, exec_fence.py, phase_timings.py), keeping sandboxes/memory_filesystem.py (still invoked on VM bootstrap) with XfsMemoryQuota.validate_root inlined.
  • runtime/noded/ (+758 / -1,233, net -475 lines):
    • Added synchronous startup reconciliation (reconcile_startup) before HTTP serve and heartbeat pushing (settles deleting, expired TTL, incomplete create phases, dead-sentry quarantine, and interrupted park/wake journals).
    • Fixed real standalone production bugs surfaced by LocalFleet:
      • journal.rs: rollback_restore now restores "authority": "parked" instead of "artifact" and spells "recovery-required" with a hyphen.
      • oci.rs: added missing "toolkits" to SPEC_FIELDS so toolkit sandboxes are accepted.
      • node_pipeline.rs: fixed delete_sandbox disk claim sizing for non-split parkable volumes; wired startup registration replay.
      • node_lifecycle.rs, control_front.rs, heartbeat.rs: read overlay lowerdir on wake, persist/expose parked managed_process snapshots, enforce pause/thaw/lock checks in commit_export, and report active_sandbox_creates.
      • exec_front.rs, files_front.rs: handle unknown sessions/sandboxes, dead-sentry quarantine, drain-closed (503 node_admission_closed), and memory-floor deferral (503 node_active_exec_deferred) directly in standalone mode.
    • Deleted 3 legacy Python-oracle Rust tests (exec_fence_python.rs, registry_python_compat.rs, resident_python_parity.rs). Cargo.lock untouched.
  • tests/ & docs/ (+888 / -18,941, net -18,053 lines):
    • Migrated LocalFleet (tests/harness/) from the Python node agent to real standalone Rust ucloud-noded, passing all 17 LocalFleet scenario suites.
    • Deleted 54 legacy Python-only node-daemon test files and lowered tests/test_rules_baseline.json (148 baseline violations removed).
    • Updated AGENTS.md, docs/architecture.md, docs/operations.md, and docs/roadmap.md.

Verification

  • scripts/check.sh (with PostgreSQL): PASSED — ruff, check_test_rules.py, all 201 Python test modules (including PostgreSQL and all 17 LocalFleet suites running real standalone Rust ucloud-noded), all Rust ucloud-noded tests (0 warnings), wheel build/verification, and all 133 SDK tests.
  • bash runtime/noded/build_pinned.sh: PASSED — static musl release binary built cleanly with pinned toolchain and passed linkage/symbol checks.

rlrs added 3 commits November 30, 2026 11:18
Retire sandbox.direct_node_standalone_rust as true-only, make standalone
Rust ucloud-noded (--standalone-config) the sole sandbox worker daemon
in vm_init.py, remove serve-direct-node-agent from cli.py, and delete
the 23 legacy Python sandbox node-daemon modules (-20.4k net source lines)
along with their Python-only unit/parity tests (-18.1k net test lines).
Keep sandboxes/memory_filesystem.py (invoked during VM bootstrap) with
XfsMemoryQuota.validate_root inlined. Update docs and lower
tests/test_rules_baseline.json.
…ind race

1. Remove the stale tests/test_relay_network_linux.py step from
   .github/workflows/test.yml (that test exercised the deleted Python
   DirectNetworkManager).
2. In tests/harness/fleet.py, bind _ObserverProxyServer on port 0 before
   spawning ucloud-noded so the kernel assigns and holds the port
   atomically instead of closing a _free_port() probe socket first, and
   retry ucloud-noded startup on ephemeral bind collision under parallel
   test runs.
@rlrs
rlrs merged commit c9c4792 into main Nov 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant