LunarWing v2.2.2.0: Kuran (クラン)
Kuran
クラン

A thousand hands. Each with its own key.
Many hands gather,
each keeps only its own key;
the gates hold their shape.
A clan is not strengthened by giving every member every key. It holds together because roles are understood, authority has boundaries, and shared work does not require unrestricted trust.
LunarWing v2.2.2.0, Kuran (クラン), is all about these kinds of boundaries. Shell access gains a capability manifest that can narrow host policy. Git can reach approved remotes without carrying credentials into the container. Kimi Code’s command guard becomes harder to bypass, while tenant upgrades and long-running turns become more observable.
Authority with a smaller footprint
The new shell capability manifest lets an individual call request a narrower environment: host-approved network modes, workspace mounts, and lower CPU, memory, and timeout ceilings. It cannot add permissions the host has not granted.
Unknown fields, unsupported versions, secret names, and requests beyond host policy are refused. The manifest cannot inject secrets, add devices or mounts, select full access, or fall back to running a command on the host. A host without sandbox configuration refuses the call.
Git access follows the same principle. The git-remotes extension lets operators define approved remotes in SANDBOX_GIT_REMOTES, then grant a shell call a selected subset. The container receives remote URLs, not credentials. HTTP(S) remotes remain subject to the sandbox proxy and egress allowlist; workspace-local file:// remotes are also supported. Authenticated push access is not included.
Useful repository access no longer requires placing tenant credentials inside a shell container.
Reading the command behind the command
Kuran brings a substantial hardening pass to the Kimi Code 2.7.2 worker. Its headless command guard follows dangerous operations through shell quoting, substitutions, redirections, wrappers, pipelines, and Git features that execute their own command bodies.
The expanded checks cover destructive file operations, listener processes, decoded or downloaded content passed to interpreters, and attempts to alter the guard or trusted MCP registration between tasks. The guard also reads command options more like the underlying tools, reducing missed checks and false refusals.
This inspection layer is stronger, but it is not a substitute for isolation. It does not resolve dynamic command names or recognize every program capable of opening a listener. Container network policy remains the boundary for network access, and the shell Git preflight is not a general repository-write filter. Server-side permissions and branch protection remain necessary.
Upgrades that tell the truth
Tenant upgrades now refresh stale worker containers after image promotion, removing bridge or task containers still using older images. A manual refresh command is available for promotions performed outside the normal upgrade path.
An enabled lane with a missing image is now a failure, as is a bridge Quadlet that does not start. Worker readiness also fails when an enabled lane has no allocated WSS port. These conditions could previously be mistaken for successful soft skips, only to surface later as failed dispatches. Kuran makes them visible where operators can act.
The Pebble bridge waits longer for its task-runner socket. The host relay also reaps finished connections, so its 32-connection limit applies to live connections rather than the lifetime number accepted.
Turns become measurable
Detached turns now receive a late-watcher budget that reflects completed work: a 600-second base, 90 additional seconds per executed tool action, and a hard cap of 1,800 seconds. The budget is re-read while the watcher waits, allowing newly completed work to earn more time.
Foreground and late completion each leave a Turn finished record with the phase, tool-call count, budget, elapsed time, and outcome. Operators can see whether a bounded task finished within its allowance instead of relying on how long it seemed to take.
Tool runtime calibration learns per-user, per-tool estimates from successful calls, making them available after five observations. The default is observe-only; approval hints are opt-in through LUNARWING_TOOL_ESTIMATES=1. Logical LLM-call timing is observed by default and can be disabled with LUNARWING_LLM_TIMINGS=0. These measurements live in memory, start cold after restart, and do not establish a production cost baseline.
More of the platform, a little clearer
- The GitLab tool can retrieve merge-request diffs, while project searches have bounded page sizes and typed results.
- WASM traps report their underlying cause more clearly, including memory-growth denials.
- XMPP backlogs are delivered in pages without replaying acknowledged messages after a daemon-only restart.
ssh_gitnow refuses ref-deleting push refspecs as well as force-push forms.
Upgrading to Kuran
There is no database migration and no change to existing wire or database contracts. Estimation routes are additive and read-only; the capability manifest is opt-in per call; and Git remote access remains unavailable unless configured by an operator.
Rebuild the daemon and XMPP bridge, then rebuild and reinstall the updated WASM channels and tools. Registry bumps require fresh WASM artifacts. Rebuild every enabled worker image through the protected candidate, scan, and promotion process. Kimi Code moves to 2.7.2, and other worker image inputs changed even where upstream pins did not.
The normal upgrade-tenant path now refreshes worker containers after promotion. For a manual promotion, run refresh-worker-containers and then start-tenant. Check enabled lanes’ startup status rather than treating a skipped or missing worker as healthy.
To grant shell Git access, configure only the remotes the tenant should expose and ensure HTTP(S) hosts are on the sandbox egress allowlist. The grant carries no credential and does not support pushing from inside the shell.
What remains outside the gate
NetBird custom DNS remains unsupported; use nameserver groups reachable through the overlay. The capability manifest applies to the generic shell, not external worker containers, which retain their tenant-level policies. Harness output redaction remains bounded and best-effort, and job-directory permissions still depend on the daemon’s umask. Use a shipped service unit when those directories must not be broadly readable.
Wingtip’s direct Unix-socket transport remains future work. Runtime estimates are heuristics, not deadlines, probabilities, or service guarantees.
For full commands, compatibility details, and remaining operator guidance, consult the LunarWing v2.2.2.0 release notes.
A clan is not the number of hands it can gather. It is the trust that lets each hand do its work without holding every key.
Kuran strengthens that trust: clear permissions, smaller grants, more dependable workers, and a record of what the work accomplished.
The gates hold. The work continues.
クラン