feat: deploy through bee's target-managed receiver client #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/target-managed-client"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
DO NOT MERGE until the coordinator has verified host fencing and exact legacy adoption for this group.
What changed
flake.nix: the legacyherculesCI = nix-deploy.lib.mkDeploy(ormkDeployDualStatic) effect is replaced withnix-deploy.lib.mkDeployTargetManaged— the reviewed stateless client.flake.lock:nix flake update nix-deployonly; the direct nix-deploy input moves to the reviewed published main pin2b81308d5f14b4ef47d25c063bf114368e49cd0b. No other lock node changed (verified node-by-node).docs/deployment.md: documents the installed receiver, the group binding, published ancestry / accepted high-water / hold semantics, and the fence -> operator adopt -> switch-client order. Records that the group is prepared, not converted or live.docs/deployment.md.The client writes a target-managed manifest, copies the candidate package and manifest to bee with
nix-copy-closure, and runsssh deploy@bee sudo -n /run/current-system/sw/bin/nix-deploy activate --manifest .... It carries no engine copy, passes no path overrides, and has no fallback path. Ports, health paths, target membership and rollback policy now come from the root-owned inventory; the effect only runs for pushes tomain.Deployment boundary
This PR does not activate anything: the group is still
managed: falsein the installed inventory, andactivaterefuses unmanaged groups. Merge only switches which client futuremainpushes use, after fencing and adoption.Checks run locally at this head
just --list,just checknix flake check(all checks passed, including theherculesCIoutput)herculesCI { primaryRepo.branch = "main"; }yields the deploy effect; manifest contains the expected group/repository/ref/full source commit/package, and the remote command is the activate-onlysudo -ncall. Non-main branches produce an empty effect.Group:
jeremyk-net(repositoryjeremy/jeremyk-net).