Skip to content

package ready-for-agent as a Nix derivation for deploy-target registration (#12768 remainder) #12909

Closed

Description

@dezren39

Slice: package ready-for-agent as a Nix derivation so it can register as a deploy target

Split from #12768 (register the PM-stack services as deploy targets), where ready-for-agent is the one service of the four with no derivation to point a registry definition at.

Current state (verified 2026-11-22)

Deliverable

Acceptance

  • nix build .#ready-for-agent succeeds and the result runs --version reporting 1.1.0.
  • deploy list shows ready-for-agent alongside the other PM-stack targets; the deploy checks pass.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane GS (archer) claiming this slice: packaging ready-for-agent 1.1.0 as a Nix derivation + deploy-target registration.

    Premise re-verified fresh (2026-11-23 ~06:05Z): issue open, no live claim (only prior comment is the bot task link); on current main there is no pkgs/ready-for-agent, pkgs/deploy/services.nix still carries the deferral comment pointing here, and pm-stack/ready-for-agent/install.sh still installs the npm pin imperatively into ~/.local. The installed package layout was read first-hand on the laptop: thin JS launcher (bin/ready-for-agent.js + select-platform.js) resolving the platform package ready-for-agent-linux-x64's bin/ready-for-agent (a Bun-compiled ELF) via node module resolution — the same distribution shape as pkgs/claude-code, whose derivation is the pattern precedent.

    Plan: pkgs/ready-for-agent/package.nix (both npm tarballs, fixed hashes, launcher layout preserved, platform ELF autoPatchelf'd, versionCheckHook on --version), flake package/app in lib/default.nix make-pm-stack, the ready-for-agent definition in pkgs/deploy/services.nix replacing the deferral comment, and the deploy-list check extended to grep it.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Progress: PR #12984 is open with the full slice (derivation + flake package/app + registry definition + deploy-list check grep).

    Verified so far, in the laptop worktree off origin/main:

    • nix build .#ready-for-agent succeeds (versionCheckHook install check included); the built result runs --version → ready-for-agent v1.1.0.
    • nix eval .#deployTargets.x86_64-linux lists 19 targets including ready-for-agent, with entryPoint bin/ready-for-agent, args ["start" "--no-open"], ports [6056], healthCheck http://127.0.0.1:6056/, class systemd.

    Remaining before merge: the literal deploy list run against the built CLI (its registry JSON build compiles the fleet package — running detached on the laptop after the channel dropped twice mid-build).

  4. added a commit that references this issue on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions