← reports

#7212 · Injected Claude skills depend on privileged directory symlinks

BugHigh priorityLow effortprovidersprovider-claude-codeIssueNovember 7, 2026 · base 3a2be262104da791f9112decc518582889410bc7

PARTIALLY REPRODUCED · Root-cause confidence: high for the code path; native Windows occurrence unverified.

1. TL;DR

The Claude provider turns injected skill folders into local plugins by creating directory symlinks. Both the plugin-root link and the links used after duplicate-skill filtering request the directory-symlink type without a fallback. On the trusted main commit, injecting an EPERM at that filesystem boundary makes both skill-delivery tests fail, while the same tests pass with real Linux symlinks. Plugin assembly catches this failure and drops the root; partial duplicate filtering instead rejects before assembly can catch it. This report does not claim a native Windows reproduction, an actual Claude session failure, or verified absence of user-visible logs.

2. Claims vs findings

ClaimStatusEvidence
Injected plugin assembly depends on a directory symlink.VerifiedReal owner code throws at skill-plugins.ts:98 under injected EPERM; its permitted control reads the skill through the plugin.
A root is skipped after assembly cannot create that link.Verified by static traceassembleSkillPlugins catches the exception, writes stderr, and does not add the failed root. No live bridge or UI was exercised.
Partial native-skill overlap can fail before plugin assembly.Verified at module boundaryA real native skill and an identical injected skill trigger real scanning and filtering; a second distinct skill reaches the link call at skill-plugins.ts:177 and rejects on injected EPERM.
Starting, resuming, or forking a thread can encounter this rejection.Static trace onlyAll three request handlers await toClaudeSessionParams; that function awaits filtering before invoking the assembly catch. No real provider request was sent.
Non-elevated Windows rejects directory symlinks and accepts junctions in the reported configuration.Unverified hereThis host is Linux. The test explicitly injects the claimed filesystem denial; it does not simulate Windows path or reparse-point behavior.
All injected skills are absent in the released desktop app, with no visible warning or retained log.UnverifiedNo release binary, user account, real skills store, UI, or production log directory was inspected. Trusted source confirms stderr emission only at the assembly site, not end-to-end log retention.

3. Environment

4. Minimal reproduction

This is a Linux fault-injection reproduction, not a native Windows integration test. Only the synchronous directory-symlink syscall boundary is replaced: it throws an explicitly synthetic EPERM when permission denial is enabled. Skill parsing, deduplication, manifests, paths, and filesystem access otherwise use the repository implementation and real temporary files. Both scenarios are repeated without the fault as positive controls.

  1. Use the trusted base and install frozen dependencies.
  2. Before the final test command, save the complete independently authored test displayed below as plugins/provider-claude-code/src/bridge/__tests__/issue-7212-repro.test.ts.
  3. Run its four cases with Turbo. Exit status 1 is the expected pre-fix result.
git clone https://github.com/get-bb/bb.git bb-7212
cd bb-7212
git checkout --detach 3a2be262104da791f9112decc518582889410bc7
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build --filter=@get-bb/plugin-sdk
pnpm exec turbo run test --filter=bb-plugin-provider-claude-code -- src/bridge/__tests__/issue-7212-repro.test.ts

Expected: plugin skills remain readable, and partial native overlap preserves a different injected skill without an EPERM rejection.

Actual: both ordinary Linux controls pass; both directory-link denial cases fail in the production owner. Exact result lines from the first run (the second run has the same failures):

bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ Module.ensureClaudeSkillPlugin src/bridge/skill-plugins.ts:98:5
bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ Module.filterClaudeSkillRoots src/bridge/skill-plugins.ts:177:9
bb-plugin-provider-claude-code:test:       Tests  2 failed | 2 passed (4)

Complete captured output is included in the Appendix, with temporary checkout paths normalized and trailing whitespace removed. The public reports repository requires self-contained HTML rather than separate test or log files, so the full test and evidence are embedded here; separate artifacts remain only in local investigation storage.

Complete reproduction test
import {
  existsSync,
  mkdirSync,
  mkdtempSync,
  readFileSync,
  rmSync,
  writeFileSync,
} from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import {
  createClaudeSkillPluginsRoot,
  ensureClaudeSkillPlugin,
  filterClaudeSkillRoots,
} from "../skill-plugins.js";

const permissions = vi.hoisted(() => ({ denyDirectorySymlinks: false }));

vi.mock("node:fs", async (importOriginal) => {
  const actual = await importOriginal<typeof import("node:fs")>();
  return {
    ...actual,
    symlinkSync: (...args: Parameters<typeof actual.symlinkSync>) => {
      if (permissions.denyDirectorySymlinks && args[2] === "dir") {
        throw Object.assign(
          new Error("injected unprivileged directory symlink failure"),
          { code: "EPERM" },
        );
      }
      return actual.symlinkSync(...args);
    },
  };
});

describe.each([false, true])(
  "skill availability with directory symlinks denied=%s (fault injection)",
  (denied) => {
    let directory: string;

    beforeEach(() => {
      permissions.denyDirectorySymlinks = denied;
      directory = mkdtempSync(join(tmpdir(), "bb-7212-repro-"));
    });

    afterEach(() => {
      permissions.denyDirectorySymlinks = false;
      rmSync(directory, { recursive: true, force: true });
    });

    function addSkill(root: string, name: string): string {
      const content = `---\nname: ${name}\ndescription: isolated reproduction\n---\n`;
      mkdirSync(join(root, name), { recursive: true });
      writeFileSync(join(root, name, "SKILL.md"), content);
      return content;
    }

    it("makes an injected skill readable through its generated plugin", () => {
      const root = join(directory, "injected");
      const content = addSkill(root, "alpha");
      const plugin = ensureClaudeSkillPlugin({
        pluginsRoot: createClaudeSkillPluginsRoot(directory),
        root: { id: "reproduction", path: root },
      });
      expect(
        readFileSync(join(plugin, "skills", "alpha", "SKILL.md"), "utf8"),
      ).toBe(content);
    });

    it("retains a distinct skill when an identical native skill is removed", async () => {
      const root = join(directory, "injected");
      const content = addSkill(root, "alpha");
      addSkill(root, "beta");
      const cwd = join(directory, "workspace");
      mkdirSync(join(cwd, ".git"), { recursive: true });
      const claudeDir = join(directory, "claude-config");
      addSkill(join(claudeDir, "skills"), "beta");
      const pluginsRoot = createClaudeSkillPluginsRoot(directory);
      const filtered = await filterClaudeSkillRoots({
        roots: [{ id: "reproduction", path: root }],
        cwd,
        claudeDir,
        pluginsRoot,
      });
      expect(filtered).toHaveLength(1);
      expect(existsSync(join(filtered[0]!.path, "beta"))).toBe(false);
      const plugin = ensureClaudeSkillPlugin({
        pluginsRoot,
        root: filtered[0]!,
      });
      expect(
        readFileSync(join(plugin, "skills", "alpha", "SKILL.md"), "utf8"),
      ).toBe(content);
    });
  },
);

5. Root cause

The first link is created after the manifest, with no alternative link type or copy fallback. Throwing here leaves ensureClaudeSkillPlugin without a usable return value. Its caller catches the error and leaves the root out of the assembled list.

plugins/provider-claude-code/src/bridge/skill-plugins.ts:78

    description: `Skills injected by bb (${args.root.id}).`,
    author: { name: "bb" },
    skills: "./skills",
  };
  writeFileSync(
    join(pluginPath, ".claude-plugin", "plugin.json"),
    `${JSON.stringify(manifest, null, 2)}\n`,
    "utf8",
  );
  const skillsLink = join(pluginPath, "skills");
  let current: string | null = null;
  try {
    current = lstatSync(skillsLink).isSymbolicLink()
      ? readlinkSync(skillsLink)
      : "";
  } catch {
    current = null;
  }
  if (current !== args.root.path) {
    rmSync(skillsLink, { recursive: true, force: true });
    symlinkSync(args.root.path, skillsLink, "dir");
  }
  return pluginPath;

plugins/provider-claude-code/src/bridge/bridge.ts:394

function assembleSkillPlugins(
  roots: readonly { id: string; path: string }[],
): ClaudeCodeSkillRoot[] {
  const takenNames = new Map<string, string>();
  const assembled: ClaudeCodeSkillRoot[] = [];
  for (const root of roots) {
    try {
      assembled.push({
        id: root.id,
        localPluginPath: ensureClaudeSkillPlugin({
          pluginsRoot: requireSkillPluginsRoot(),
          root: { id: root.id, path: root.path },
          takenNames,
        }),
      });
    } catch (error) {
      process.stderr.write(
        `claude bridge: skipping injected skill root "${root.id}": could not assemble its plugin: ${error instanceof Error ? error.message : String(error)}\n`,
      );
    }
  }
  return assembled;

The second link path is reached only when filtering retains some but not all scanned skills. This distinction matters: a root containing only an identical native skill is entirely omitted without making a link. Our reproduction supplies one identical skill and one distinct retained skill. Only EEXIST is tolerated at this link call, so EPERM propagates.

plugins/provider-claude-code/src/bridge/skill-plugins.ts:145

  for (const root of args.roots) {
    const files = await scanSkillFiles({
      path: root.path,
      shape: "skill",
      boundaryPath: null,
    });
    const retained = files.filter((file) => {
      if (seen.has(identity(file))) return false;
      seen.add(identity(file));
      return true;
    });
    if (retained.length === 0) continue;
    if (retained.length === files.length) {
      filtered.push(root);
      continue;
    }
    const hash = createHash("sha256")
      .update(
        JSON.stringify(
          retained.map((file) => [
            file.name,
            file.realPath,
            file.contentSha256,
          ]),
        ),
      )
      .digest("hex");
    const filteredPath = join(args.pluginsRoot, "filtered", hash);
    mkdirSync(filteredPath, { recursive: true });
    for (const file of retained) {
      const linkPath = join(filteredPath, file.name);
      try {
        symlinkSync(dirname(file.realPath), linkPath, "dir");
      } catch (error) {
        if (
          !(
            error instanceof Error &&
            "code" in error &&
            error.code === "EEXIST"
          )
        )
          throw error;
      }
    }
    filtered.push({ id: root.id, path: filteredPath });
  }
  return filtered;
}

export function claudeSkillsConfigDirectory(): string {

Filtering runs before the assembly catch, and start/resume/fork each await session-parameter construction. Thus the two link failures have different static propagation paths: skipped injected root versus rejected parameter construction. Live request outcomes remain unverified.

plugins/provider-claude-code/src/bridge/bridge.ts:2550

async function toClaudeSessionParams(
  params: z.infer<typeof canonicalThreadStartParamsSchema>,
): Promise<Record<string, unknown>> {
  const roots =
    configuredSkillRoots === null
      ? undefined
      : assembleSkillPlugins(
          await filterClaudeSkillRoots({
            roots: configuredSkillRoots,
            cwd: params.cwd,
            pluginsRoot: requireSkillPluginsRoot(),
            claudeDir: claudeSkillsConfigDirectory(),
          }),
        );

Start, resume, and fork request handlers at the same trusted commit.

6. Proposed fix and safe-fix decision

A contained candidate is to select an unprivileged directory-link strategy on Windows at both production call sites while preserving ordinary symlinks elsewhere. Validate absolute target handling and existing-link comparisons on Windows, including junction readlink normalization and repeated setup. Do not infer that a successful Linux junction argument proves Windows junction semantics.

No fix PR was opened. The required native Windows behavior is only fault-injected on this Linux host, so the report is partial rather than a confirmed reproduction of the reported platform configuration. The simple-fix gate is not satisfied with this evidence. A Windows clean-checkout run with Developer Mode disabled is the next experiment; it must demonstrate the regression failing before and passing after any candidate, followed by the existing provider tests. No production patch, branch, dependency, or generated file is proposed for landing.

No open PR linking this issue was found in issue timeline metadata or the repository open-PR search at investigation time.

7. Verification

The same agent repeated the reproduction in a second newly created detached trusted-base checkout, separate from the first. This is a second clean run, not independent verification. New temporary skill/config/workspace folders are created by each invocation; neither run uses ports or production state.

git worktree add --detach ../verification 3a2be262104da791f9112decc518582889410bc7
cd ../verification
pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build --filter=@get-bb/plugin-sdk
# Place the same report reproduction artifact at plugins/provider-claude-code/src/bridge/__tests__/issue-7212-repro.test.ts
pnpm exec turbo run test --filter=bb-plugin-provider-claude-code -- src/bridge/__tests__/issue-7212-repro.test.ts

Result: exit 1 again; 2 failed and 2 passed, with the same production stacks at lines 98 and 177. Production diff was empty in both checkouts; only the reproduction test was untracked. No conclusion changed after the repeat. Existing skill-plugin tests on unchanged production code passed (3/3). Neither execution verifies Windows privilege defaults, actual junction behavior, UI surfacing, or a live thread lifecycle.

8. Related issues

No duplicate was established. Nearby Claude-provider reports were used for classification patterns only; their unrelated symptoms do not establish this Windows filesystem defect. References supplied by the issue were not fetched or executed.

9. Appendix

First-run output (temporary paths normalized)
   • turbo 2.11.10
   • Packages in scope: bb-plugin-provider-claude-code
   • Running test in 1 package
   • Remote caching disabled

//:ensure-native-modules: cache bypass, force executing 2c51cec167654b35
@bb/process-utils:generate:profile-worker: cache miss, executing 14eb6bc07b0d630d
@bb/templates:generate:templates: cache miss, executing 936e216367c2ff8f
@bb/plugin-build:generate: cache miss, executing 43dde3d3dfb34cdf
@bb/templates:generate:plugin-scaffold: cache miss, executing 2ca6ea6ef936f689
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <first-checkout>/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <first-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <first-checkout>/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <first-checkout>/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@get-bb/plugin-sdk:build: cache miss, executing b3dc67c52245ab62
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.133 build <first-checkout>/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 24 @get-bb/plugin-sdk runtime entries.
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <first-checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
bb-plugin-provider-claude-code:test: cache miss, executing 18ccc87107668649
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: > bb-plugin-provider-claude-code@0.1.0 test <first-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test: > vitest run --config vitest.config.ts "src/bridge/__tests__/issue-7212-repro.test.ts"
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  RUN  v4.1.12 <first-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  ❯ |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts (4 tests | 2 failed) 38ms
bb-plugin-provider-claude-code:test:      ✓ makes an injected skill readable through its generated plugin 4ms
bb-plugin-provider-claude-code:test:      ✓ retains a distinct skill when an identical native skill is removed 20ms
bb-plugin-provider-claude-code:test:      × makes an injected skill readable through its generated plugin 4ms
bb-plugin-provider-claude-code:test:      × retains a distinct skill when an identical native skill is removed 9ms
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  FAIL  |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts > skill availability with directory symlinks denied=true (fault injection) > makes an injected skill readable through its generated plugin
bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ symlinkSync src/bridge/__tests__/issue-7212-repro.test.ts:27:11
bb-plugin-provider-claude-code:test:      25|       if (permissions.denyDirectorySymlinks && args[2] === "dir") {
bb-plugin-provider-claude-code:test:      26|         throw Object.assign(
bb-plugin-provider-claude-code:test:      27|           new Error("injected unprivileged directory symlink failure"),
bb-plugin-provider-claude-code:test:        |           ^
bb-plugin-provider-claude-code:test:      28|           { code: "EPERM" },
bb-plugin-provider-claude-code:test:      29|         );
bb-plugin-provider-claude-code:test:  ❯ Module.ensureClaudeSkillPlugin src/bridge/skill-plugins.ts:98:5
bb-plugin-provider-claude-code:test:  ❯ src/bridge/__tests__/issue-7212-repro.test.ts:61:22
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  FAIL  |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts > skill availability with directory symlinks denied=true (fault injection) > retains a distinct skill when an identical native skill is removed
bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ symlinkSync src/bridge/__tests__/issue-7212-repro.test.ts:27:11
bb-plugin-provider-claude-code:test:      25|       if (permissions.denyDirectorySymlinks && args[2] === "dir") {
bb-plugin-provider-claude-code:test:      26|         throw Object.assign(
bb-plugin-provider-claude-code:test:      27|           new Error("injected unprivileged directory symlink failure"),
bb-plugin-provider-claude-code:test:        |           ^
bb-plugin-provider-claude-code:test:      28|           { code: "EPERM" },
bb-plugin-provider-claude-code:test:      29|         );
bb-plugin-provider-claude-code:test:  ❯ Module.filterClaudeSkillRoots src/bridge/skill-plugins.ts:177:9
bb-plugin-provider-claude-code:test:  ❯ src/bridge/__tests__/issue-7212-repro.test.ts:79:24
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  Test Files  1 failed (1)
bb-plugin-provider-claude-code:test:       Tests  2 failed | 2 passed (4)
bb-plugin-provider-claude-code:test:    Start at  00:37:25
bb-plugin-provider-claude-code:test:    Duration  663ms (transform 269ms, setup 0ms, import 455ms, tests 38ms, environment 0ms)
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  ELIFECYCLE  Test failed. See above for more details.
bb-plugin-provider-claude-code#test:  ERROR  command (<first-checkout>/plugins/provider-claude-code) /usr/local/bin/pnpm run test src/bridge/__tests__/issue-7212-repro.test.ts exited (1)

 Tasks:    6 successful, 7 total
Cached:    0 cached, 7 total
  Time:    4.386s
Failed:    bb-plugin-provider-claude-code#test

 ERROR  run failed: command  exited (1)
Second clean-run output (temporary paths normalized)
   • turbo 2.11.10
   • Packages in scope: bb-plugin-provider-claude-code
   • Running test in 1 package
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing 2c51cec167654b35
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 14eb6bc07b0d630d
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 2ca6ea6ef936f689
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <first-checkout>/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:templates: cache hit, replaying logs 936e216367c2ff8f
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <first-checkout>/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/plugin-build:generate: cache hit, replaying logs 43dde3d3dfb34cdf
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <first-checkout>/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <first-checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@get-bb/plugin-sdk:build: cache hit, replaying logs b3dc67c52245ab62
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.133 build <first-checkout>/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 24 @get-bb/plugin-sdk runtime entries.
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <verification-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
bb-plugin-provider-claude-code:test: cache miss, executing 18ccc87107668649
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: > bb-plugin-provider-claude-code@0.1.0 test <verification-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test: > vitest run --config vitest.config.ts "src/bridge/__tests__/issue-7212-repro.test.ts"
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  RUN  v4.1.12 <verification-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  ❯ |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts (4 tests | 2 failed) 37ms
bb-plugin-provider-claude-code:test:      ✓ makes an injected skill readable through its generated plugin 4ms
bb-plugin-provider-claude-code:test:      ✓ retains a distinct skill when an identical native skill is removed 19ms
bb-plugin-provider-claude-code:test:      × makes an injected skill readable through its generated plugin 4ms
bb-plugin-provider-claude-code:test:      × retains a distinct skill when an identical native skill is removed 9ms
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  FAIL  |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts > skill availability with directory symlinks denied=true (fault injection) > makes an injected skill readable through its generated plugin
bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ symlinkSync src/bridge/__tests__/issue-7212-repro.test.ts:27:11
bb-plugin-provider-claude-code:test:      25|       if (permissions.denyDirectorySymlinks && args[2] === "dir") {
bb-plugin-provider-claude-code:test:      26|         throw Object.assign(
bb-plugin-provider-claude-code:test:      27|           new Error("injected unprivileged directory symlink failure"),
bb-plugin-provider-claude-code:test:        |           ^
bb-plugin-provider-claude-code:test:      28|           { code: "EPERM" },
bb-plugin-provider-claude-code:test:      29|         );
bb-plugin-provider-claude-code:test:  ❯ Module.ensureClaudeSkillPlugin src/bridge/skill-plugins.ts:98:5
bb-plugin-provider-claude-code:test:  ❯ src/bridge/__tests__/issue-7212-repro.test.ts:61:22
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  FAIL  |bb-plugin-provider-claude-code| src/bridge/__tests__/issue-7212-repro.test.ts > skill availability with directory symlinks denied=true (fault injection) > retains a distinct skill when an identical native skill is removed
bb-plugin-provider-claude-code:test: Error: injected unprivileged directory symlink failure
bb-plugin-provider-claude-code:test:  ❯ symlinkSync src/bridge/__tests__/issue-7212-repro.test.ts:27:11
bb-plugin-provider-claude-code:test:      25|       if (permissions.denyDirectorySymlinks && args[2] === "dir") {
bb-plugin-provider-claude-code:test:      26|         throw Object.assign(
bb-plugin-provider-claude-code:test:      27|           new Error("injected unprivileged directory symlink failure"),
bb-plugin-provider-claude-code:test:        |           ^
bb-plugin-provider-claude-code:test:      28|           { code: "EPERM" },
bb-plugin-provider-claude-code:test:      29|         );
bb-plugin-provider-claude-code:test:  ❯ Module.filterClaudeSkillRoots src/bridge/skill-plugins.ts:177:9
bb-plugin-provider-claude-code:test:  ❯ src/bridge/__tests__/issue-7212-repro.test.ts:79:24
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  Test Files  1 failed (1)
bb-plugin-provider-claude-code:test:       Tests  2 failed | 2 passed (4)
bb-plugin-provider-claude-code:test:    Start at  00:38:08
bb-plugin-provider-claude-code:test:    Duration  654ms (transform 271ms, setup 0ms, import 448ms, tests 37ms, environment 0ms)
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  ELIFECYCLE  Test failed. See above for more details.
bb-plugin-provider-claude-code#test:  ERROR  command (<verification-checkout>/plugins/provider-claude-code) /usr/local/bin/pnpm run test src/bridge/__tests__/issue-7212-repro.test.ts exited (1)

 Tasks:    6 successful, 7 total
Cached:    5 cached, 7 total
  Time:    2.118s
Failed:    bb-plugin-provider-claude-code#test

 ERROR  run failed: command  exited (1)
Existing owner-suite output (temporary paths normalized)
   • turbo 2.11.10
   • Packages in scope: bb-plugin-provider-claude-code
   • Running test in 1 package
   • Remote caching disabled

//:ensure-native-modules: cache bypass, force executing ac21c7b84aa88428
@bb/process-utils:generate:profile-worker: cache miss, executing 1095393bf097de85
@bb/plugin-build:generate: cache miss, executing ee24dc15bdacd2d0
@bb/templates:generate:plugin-scaffold: cache miss, executing b592ab6fff0e8b9f
@bb/templates:generate:templates: cache miss, executing 3fc9d55fdbec721b
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <first-checkout>/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <first-checkout>
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <first-checkout>/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <first-checkout>/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <first-checkout>/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@get-bb/plugin-sdk:build: cache miss, executing df6e276674d93233
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.133 build <first-checkout>/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 24 @get-bb/plugin-sdk runtime entries.
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <first-checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
bb-plugin-provider-claude-code:test: cache miss, executing 030fcbb288764fc7
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test: > bb-plugin-provider-claude-code@0.1.0 test <first-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test: > vitest run --config vitest.config.ts "src/bridge/__tests__/skill-plugins.test.ts"
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  RUN  v4.1.12 <first-checkout>/plugins/provider-claude-code
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  ✓ |bb-plugin-provider-claude-code| src/bridge/__tests__/skill-plugins.test.ts (3 tests) 27ms
bb-plugin-provider-claude-code:test:
bb-plugin-provider-claude-code:test:  Test Files  1 passed (1)
bb-plugin-provider-claude-code:test:       Tests  3 passed (3)
bb-plugin-provider-claude-code:test:    Start at  00:37:35
bb-plugin-provider-claude-code:test:    Duration  625ms (transform 264ms, setup 0ms, import 432ms, tests 27ms, environment 0ms)
bb-plugin-provider-claude-code:test:

 Tasks:    7 successful, 7 total
Cached:    0 cached, 7 total
  Time:    3.966s

Key commands executed: trusted repository visibility and issue-property reads; repository label and nearby-provider issue reads; SlopCop-only missing-property/label writes; clone with the trusted remote and fetch main; frozen install; whole build; SDK build and whole-build retry; existing owner-suite test; first reproduction; second clean checkout, frozen install, SDK build, and reproduction; read-only issue timeline/open-PR queries; source permalink and diff checks. Report publishing uses the provided publisher, with all GitHub CLI writes routed through the supplied SlopCop command and no publisher comment or label flags.

pnpm exec turbo run build
pnpm exec turbo run build --filter=@get-bb/plugin-sdk
pnpm exec turbo run build
pnpm exec turbo run test --filter=bb-plugin-provider-claude-code -- src/bridge/__tests__/skill-plugins.test.ts
git diff --exit-code
git diff --check

Untrusted-data boundary: the report's issue claims were treated only as hypotheses. No issue-supplied script, patch, branch, external link, instruction, or live-user state was used. The reproduction was authored from the trusted owner implementation and is intentionally explicit about its synthetic permission failure. This is nonvisual evidence; no screenshot is claimed.

AGENT GENERATED