Skip to content

build(evals): serve Tack from an offline npm stand-in and start tasks on a fresh machine - #154

Open
nclsndr wants to merge 1 commit into
mainfrom
build/evals-image-onboarding-prep
Open

nclsndr wants to merge 1 commit into
mainfrom
build/evals-image-onboarding-prep

Conversation

@nclsndr

@nclsndr nclsndr commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Why

Tack's guides start with npm install --global @tackup/cli, but an eval trial could not follow them. The task container has no network, npm had no package to install and nowhere to write, and every task started with Tack installed and a state directory chosen for it. The onboarding scenarios planned next need a machine where Tack is not there yet.

#141 already builds and packs both npm packages in the evals image and installs the tarballs with npm, and made TACK_BUILTINS_DIR work for the installed copy. It did not keep the packages or their dependencies for a trial to install, nor change how a task starts. This adds what remains.

What

  • npm stand-in. The image keeps the packed @tackup/cli and @tackup/docs and every package they depend on (about 50 MB). Each task container serves them on its loopback, so npm install --global @tackup/cli, and @tackup/docs, work with no network, with or without a version. The image installs its own Tack from the stand-in with RUN --network=none, so a missing package fails the image build.
  • Fresh machine. A task with machine: "fresh" starts without Tack and with TACK_STATE_DIR unset, so Tack uses ~/.tack. Once npm installs it, tack is on PATH and the trial records each Tack process as before. Tasks that do not ask keep today's setup.
  • Git safe.directory. A task's safeDirectories lists the repositories under /world that Git trusts whoever owns them. The plan refuses a path outside /world or a wildcard.
  • The Git settings move from each command to the container, so a regrade now runs with the same ones as the trial.
  • Bun and the pinned agent versions stay as they were.

Related to

#141

Details

  • Time limit. Installing @tackup/docs writes thousands of files into the world, which is mounted from the host: it took 6 to 24 seconds here, against the 30 seconds a command may run. A fresh machine allows 120 seconds per command; other tasks keep 30. The relay's own timeout rises from 35 to 125 seconds.
  • Finding tack. On a fresh machine the launcher is a link that passes through the installed package's folder, so a shell finds tack only while npm has put the package there, and npm uninstall removes it again.
  • Limits. On a fresh machine the environment text still lists the delivered skills, and TACK_BUILTINS_DIR stays set so that the installed Tack links the built-ins of the arm. The Git that fetches for tack import drops the safe.directory list.

Tests run

  • bun run check and the dead code check pass.
  • The evals image builds. No model was called: the checks below drive the runner's own fixtures, with their usual flags (no network, read-only root).
  • Fresh machine: no tack, no state directory; after the install tack runs and is recorded, also from a login shell; tack init links the arm's built-ins and keeps its state in ~/.tack; @tackup/docs installs; after npm uninstall, tack is gone.
  • Default machine: tack, TACK_STATE_DIR and the state folder as before.
  • Git, with another owner simulated: a listed repository works, an unlisted one is refused.
  • bun run evals plan prints the trial and its token with the new image.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tack-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3cdd575
Status: ✅  Deploy successful!
Preview URL: https://bf0f7c9f.tack-ayg.pages.dev
Branch Preview URL: https://build-evals-image-onboarding.tack-ayg.pages.dev

View logs

This branch has not been deployed

No deployments
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