Skip to content

Fix skill installation across filesystems - #1020

Merged
mcncl merged 2 commits into
mainfrom
fix/skill_cross_device_install
Oct 8, 2026
Merged

mcncl merged 2 commits into
mainfrom
fix/skill_cross_device_install

Conversation

@mcncl

@mcncl mcncl commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes PB-3205. bk skill add fails with invalid cross-device link when the temp and skills directories are on different filesystems.

Stage extraction beside the destination so add and update succeed without a TMPDIR workaround. Includes regression tests.

Testing

  • Full test suite passes with BUILDKITE_API_TOKEN unset
  • Code formatted; lint passes

Stage extracted skills on the destination filesystem so installs and
updates do not fail with an invalid cross-device link. Keep the
existing skill until extraction succeeds and clean up staging paths.

Fixes PB-3205

Amp-Thread-ID: T-01a11a01-3c61-7699-9bdf-622e05838dda
@mcncl
mcncl requested review from a team as code owners October 8, 2026 06:14
buildsworth-bk-app[bot]
buildsworth-bk-app Bot previously approved these changes Oct 8, 2026

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 38167, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-6.1-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. Unless repository policy already allows L2 approval, grant it by mentioning @buildsworth-bk (see approval ceiling and L2 approval grant):

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). Approved only when repository policy or a verified grant allows it; otherwise comment-only.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical pipeline paths). Human approval required unless repository policy explicitly allows L3 approval; per-PR grants cannot allow it.

Comment thread cmd/skill/skill.go
Interrupted installs can leave staging directories in the skills
folder. Exclude the staging prefix from update-all discovery so those
directories do not cause a skill-not-found error.

Amp-Thread-ID: T-01a11a01-3c61-7699-9bdf-622e05838dda
@buildsworth-bk-app
buildsworth-bk-app Bot dismissed their stale review October 8, 2026 06:28

Superseded by a newer Buildsworth review.

@mcncl
mcncl merged commit 41f8414 into main Oct 8, 2026
2 checks passed
@mcncl
mcncl deleted the fix/skill_cross_device_install branch October 8, 2026 06:29
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