Skip to content

feat: honour TACK_BUILTINS_DIR in every run and let eval arms replace the built-ins - #156

Open
nclsndr wants to merge 1 commit into
feat/evals-arms-as-profilesfrom
feat/release-builtins-dir
Open

nclsndr wants to merge 1 commit into
feat/evals-arms-as-profilesfrom
feat/release-builtins-dir

Conversation

@nclsndr

@nclsndr nclsndr commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Why

An eval could not compare two versions of Tack's built-in skills or of the tack guide text without a mount over a fixed path of the image. TACK_BUILTINS_DIR already says where an installed Tack keeps its built-ins, but a source run ignored it, and so did the removal of old copies. With the setting honoured everywhere, an eval arm, or anyone outside Docker, can point Tack at an edited copy and compare.

What

  • Every run honours TACK_BUILTINS_DIR. A source run with the setting makes and uses one copy there, as a package does: it reads, links and prints that copy, extensions included. Without the setting, it reads its checkout as before. An empty value counts as unset, and a relative path resolves against the current folder.
  • Old copies are removed in the folder the run uses, instead of always under ~/.tack/builtins. The rule is the same: not the running version, not the newest other one, not one a link points into. A link now also counts when it reaches the folder through another symbolic link, and a removal that fails no longer fails the sync.
  • An eval arm takes "builtins": { "folder": "..." }, an edited copy that Tack made. The plan binds one SHA-256 over every file, shows it in the dry run, and refuses a folder that changes later. It combines with profileBundle.
  • Gone: the per-file skills overrides, the mount over /opt/tack/builtins and the image's symlink. The task container gets the folder at /builtins and TACK_BUILTINS_DIR names it, for the baseline too, so arms differ only in the files.
  • A script worker no longer copies the built-ins. It starts without the setting, so it made a copy under the home.

Related to

Details

  • Editing a copy. A complete copy is read as it is, so an edit stays until its folder is deleted. A source run's copy is VERSION+dev, whatever the commit: delete it to take a changed checkout's files. Removal of old copies includes edited ones; the docs say so.
  • Regrade. A regrade mounts the fixture's retained copy. A campaign saved before this change cannot be regraded, and a campaign file with skills is refused.
  • Copy on first use. Tack now copies its built-ins when a command first needs them, not when its module loads.

Tests run:

  • The unit and system tests, the runtime gate on the packed npm package with Node and with Bun (one new check, builtins-dir) and the coverage budget, which is unchanged.
  • A fresh eval image, in real containers without a model. An arm with one edited and one added file delivers exactly its folder, by SHA-256 of every file read inside the container: at /instructions, in the folder Tack uses, and through the links tack sync made. It differs from the baseline in those two files only, and tack guide differs only for the edited guide.
  • A default run against the base branch's image: the same files and the same guide text, except setup.md, which this PR edits. The path that Tack reports for its built-ins changes from /opt/tack/builtins to /builtins/VERSION.
  • CI does not start by itself on a PR into another branch, so it ran on demand on this head: all jobs pass. The four test shards took 437 s in total, the longest 139 s; feat(evals): take a Tack profile bundle as a campaign arm #153 took 364 s, with 119 s for the longest, and feat(website): draw the fan-out visual as reins #148 and docs: add npm, Effect and TypeScript badges to the READMEs #150 took 410 s and 407 s.

… the built-ins

A source run now reads, links and prints the versioned copy under TACK_BUILTINS_DIR, and every
run that keeps copies prunes the folder it uses. An eval arm names an edited built-ins folder,
which the task container reaches through the setting; the per-file skill overrides and the
fixed-path mount go.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tack-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63b577e
Status: ✅  Deploy successful!
Preview URL: https://ac58b2d0.tack-ayg.pages.dev
Branch Preview URL: https://feat-release-builtins-dir.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