Skip to content

feat(ready-for-agent): package pinned npm release as a Nix derivation + register deploy target (#12909) - #12984

Merged
dezren39 merged 1 commit into
mainfrom
lane-gs/12909-ready-for-agent-pkg
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-gs/12909-ready-for-agent-pkg

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Packages ready-for-agent 1.1.0 as a Nix derivation and registers it as a deploy target — the #12909 slice split from #12768, where ready-for-agent was the one service of the four with no derivation to point a registry definition at.

  • pkgs/ready-for-agent/package.nix — the pinned 1.1.0 launcher + linux-x64 platform tarballs with fixed hashes. The launcher is a thin JS script that resolves the platform package through node's module resolution and spawns its Bun-compiled ELF, so the npm layout (platform package nested in the launcher's node_modules) is reproduced verbatim and the launcher runs unmodified; autoPatchelfHook patches the ELF (the pkgs/claude-code shape). versionCheckHook asserts --version in the build.
  • lib/default.nix — ready-for-agent package + app in make-pm-stack; the deploy-list check now greps for it.
  • pkgs/deploy/default.nix + services.nix — the ready-for-agent definition (entryPoint bin/ready-for-agent, args start --no-open, ports [6056], healthCheck http://127.0.0.1:6056/, user user, targets [laptop], class systemd) replacing the deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768 deferral comment.

Out of scope, per the issue: the pm-apps unit switching its ExecStart to the store binary — that's the bundled cutover on #12768/#1752.

Evidence

Merge danger

Two-way door; additive package + registry definition. Nothing activates the new target — registration only, like the other three pm-stack targets (#12768). Blast radius: the deploy registry gains one row; the running service still runs the imperative ~/.local install under the pm-apps module.

Closes #12909.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…tion + register the deploy target (#12909)

ready-for-agent was the one #12768 service with no derivation to point
a deploy definition at: an npm-pinned 1.1.0 install into ~/.local by
pm-stack/ready-for-agent/install.sh. This slice packages it and
registers it; the pm-apps unit's ExecStart cutover stays with the
bundled #12768/#1752 slice.

- pkgs/ready-for-agent/package.nix: the pinned 1.1.0 launcher +
  linux-x64 platform tarballs with fixed hashes. The launcher is a
  thin JS script that resolves the platform package through node's
  module resolution and spawns its Bun-compiled ELF, so the npm
  layout (platform package nested in the launcher's node_modules) is
  reproduced verbatim and the launcher runs unmodified;
  autoPatchelfHook patches the ELF (pkgs/claude-code shape).
  versionCheckHook asserts --version reports 1.1.0 in the build.
- lib/default.nix: ready-for-agent package + app in make-pm-stack;
  the deploy-list check now greps for it.
- pkgs/deploy/default.nix + services.nix: the ready-for-agent
  definition (bin/ready-for-agent, start --no-open, port 6056,
  health http://127.0.0.1:6056/, laptop/systemd) replacing the
  #12768 deferral comment.

Verification (laptop worktree off origin/main):
- nix build .#ready-for-agent succeeds; the result runs
  --version -> "ready-for-agent v1.1.0".
- nix eval .#deployTargets.x86_64-linux: 19 targets including
  ready-for-agent with the definition fields above.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 27 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dcfb362e-166e-486a-a5a8-9e691e39e7b1
Commits

Reviewing files that changed from the base of the PR and between 438f7ad and 58e0754.

Files selected for processing: 4

  • lib/default.nix
  • pkgs/deploy/default.nix
  • pkgs/deploy/services.nix
  • pkgs/ready-for-agent/package.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:21:44.593294Z 58e0754 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58e0754449

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkgs/deploy/default.nix
pmTunnel = cloudflared;
# Issue #12909: ready-for-agent, packaged from its pinned npm
# tarballs — the last of the four #12768 services to register.
readyForAgent = callPackage ../ready-for-agent/package.nix { };

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict the x86-only deploy target to supported systems

On aarch64-linux, this unconditional dependency prevents the entire deploy CLI from evaluating, including for unrelated services. make-deploy exports the CLI through eachDefaultSystem, and jsonDefinitions coerces every registered package to its store path, forcing evaluation of ready-for-agent despite its meta.platforms = [ "x86_64-linux" ]. The existing registry dependencies support ARM Linux, so this introduces a platform regression. Filter this registration to supported systems or provide an ARM payload, and adjust the corresponding list check if filtering.

Useful? React with 👍 / 👎.

@dezren39
dezren39 merged commit f913533 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-gs/12909-ready-for-agent-pkg branch November 23, 2026 06:45
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.

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

1 participant