#6731 · Scheduled recipients remain ineligible after completion
Trusted base: a0e513398f02d47ec5df874b89fec4edfc248894. Verdict: REPRODUCED · Root-cause confidence: high.
1. TL;DR
An ordinary thread can receive a scheduled prompt without being created by an automation. The Automations plugin nevertheless records that recipient in the same history used to classify automation-created threads. After the run finishes and its schedule is paused, the creation guard still rejects follow-up work from the recipient. Both agent and script follow-ups failed in two separately cloned trusted-main checkouts using real plugin SQLite storage. This confirms the server-side lifecycle defect, not the reporter's specific desktop installation.
2. Claims vs findings
| Claim | Status | Evidence |
|---|---|---|
| A scheduled prompt can permanently disqualify an ordinary recipient. | Verified | A real sweep dispatches into a fixture thread with null originPluginId; creation still fails after idle and pause. |
| An active run is not required for rejection. | Verified | The run-history assertion confirms succeeded before the failing creation call. |
| Both follow-up execution modes are affected. | Verified | Two parameterized cases fail in each checkout. |
| Failure occurs before the follow-up can execute. | Verified | Both requests are disabled and fail in the shared creation guard. |
| The same minimal workflow fails on the stated macOS desktop release. | Unverified here | No macOS app, real provider, or live user thread was used. |
| The linked patch passes its reported verification suite. | Unverified | Only its GitHub metadata and diff were read; its branch and tests were never run. |
3. Environment
- Public repository get-bb/bb; latest origin/main at inspection was the trusted base above.
- Linux 4.19.0-gvisor; Node 22.19.0; pnpm 9.15.0; repository-pinned Vitest.
- Two fresh clones, called REPRO_ROOT/base and REPRO_ROOT/verify below; production source unchanged in both.
- The SDK fake host provides thread/project/provider responses. Its real temporary-file better-sqlite3 database runs the plugin's actual storage migrations. No database was mocked.
- No running app, network listener, live provider, or user runtime data. Each boot creates separate temporary plugin storage; dispose cleans it up.
- The first broad build exposed missing SDK dist entries in unrelated plugins. Building the SDK first resolved it; the subsequent full build passed all 72 tasks.
4. Minimal reproduction
Save the complete patch in the Appendix as recipient-regression.diff, then run these commands from a new directory.
The patch adds only the test shown below to the existing trusted harness. No issue-supplied command, script, branch, or test was executed.
git clone --branch main --single-branch https://github.com/get-bb/bb.git bb-6731 cd bb-6731 git checkout --detach a0e513398f02d47ec5df874b89fec4edfc248894 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build --filter=bb-plugin-automations git apply /path/to/recipient-regression.diff pnpm exec turbo run test --force --filter=bb-plugin-automations -- src/server-harness.test.ts -t 'permits deferred'
- Boot the real Automations server plugin with a normal target-thread fixture.
- Create a minute-based recurring automation targeting that thread, advance the test clock, and run the real sweep service until it sends one prompt.
- Confirm creation from that recipient is rejected while the scheduled run is active.
- Emit thread.idle and pause the schedule. Confirm the history says succeeded and a historical mark still exists.
- Attempt a disabled follow-up from the recipient, once in agent mode and once in script mode.
Expected: both final creation requests resolve successfully; the old paused schedule and successful history remain. Actual: both final requests reject with the creation-guard error. The earlier active-run rejection and completed-history assertions pass first.
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred agent creation from a settled scheduled recipient
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred script creation from a settled scheduled recipient
bb-plugin-automations:test: AssertionError: promise rejected "experimental_PluginRpcCallError: Automati… { …(4) }" instead of resolving
bb-plugin-automations:test: Caused by: experimental_PluginRpcCallError: Automation-spawned threads cannot create automations
bb-plugin-automations:test: Tests 2 failed | 28 skipped (30)Test added to the owning harness
it.each(["agent", "script"] as const)(
"permits deferred %s creation from a settled scheduled recipient",
async (mode) => {
vi.useFakeTimers();
vi.setSystemTime(new Date("2026-01-01T00:00:00.000Z"));
const host = await bootAutomationsPlugin();
const { harness } = host;
harness.sdk.stub("threads.get", async ({ threadId }) =>
makeThreadResponse({ id: threadId, projectId: PROJECT_ID }),
);
try {
const schedule = await createAgentAutomation(harness, {
targetThreadId: THREAD_ID,
trigger: {
triggerType: "schedule",
cron: "* * * * *",
timezone: "UTC",
},
});
vi.setSystemTime(new Date("2026-01-01T00:01:05.000Z"));
const sweep = harness.runService("automation-sweep");
try {
await vi.waitFor(() =>
expect(harness.sdk.callsTo("threads.send")).toHaveLength(1),
);
} finally {
sweep.controller.abort();
await sweep.done;
}
const followUp = {
projectId: PROJECT_ID,
name: "Deferred recipient work",
enabled: false,
trigger: oneShotTrigger(),
execution:
mode === "agent"
? agentExecution()
: {
mode: "script",
script: "printf deferred",
interpreter: "sh",
},
origin: "agent",
createdByThreadId: THREAD_ID,
};
await expect(
harness.callRpc("automations_create", followUp),
).rejects.toThrow(
"Automation-spawned threads cannot create automations",
);
await harness.emitThreadEvent("thread.idle", {
thread: makeThreadResponse({ id: THREAD_ID, projectId: PROJECT_ID }),
lastAssistantText: null,
});
await harness.callRpc("automations_pause", {
projectId: PROJECT_ID,
automationId: schedule.id,
});
const history = automationRunListResponseSchema.parse(
await harness.callRpc("automations_runs", {
projectId: PROJECT_ID,
automationId: schedule.id,
}),
);
expect(history.runs).toEqual([
expect.objectContaining({ status: "succeeded", threadId: THREAD_ID }),
]);
expect(
host.bb.storage
.database()
.prepare(
"SELECT thread_id FROM automation_thread_marks WHERE thread_id = ?",
)
.get(THREAD_ID),
).toBeDefined();
await expect(
harness.callRpc("automations_create", followUp),
).resolves.toMatchObject({
enabled: false,
createdByThreadId: THREAD_ID,
});
expect(
await harness.callRpc("automations_get", {
projectId: PROJECT_ID,
automationId: schedule.id,
}),
).toMatchObject({ enabled: false });
expect(
automationRunListResponseSchema.parse(
await harness.callRpc("automations_runs", {
projectId: PROJECT_ID,
automationId: schedule.id,
}),
),
).toEqual(history);
} finally {
await harness.dispose();
}
},
);
The script-mode fixture is stored but never executed: the follow-up is disabled and creation fails first. This is a nonvisual server defect, so screenshots would not provide additional evidence.
5. Root cause
plugins/automations/src/run.ts:223–235 associates an existing recipient with the run and writes an automation-thread mark before sending the prompt.
setAutomationRunThread(db, {
runId: args.run.id,
threadId: args.targetThreadId,
});
markAutomationThread(db, {
automationId: args.automation.id,
runId: args.run.id,
threadId: args.targetThreadId,
now: Date.now(),
});
await bb.sdk.threads.send({
threadId: args.targetThreadId,
mode: "steer-if-active",plugins/automations/src/run.ts:351–365 settles the run on idle; it does not change that historical identity classification.
plugins/automations/src/data.ts:958–968 returns true for either any retained mark or any run, without distinguishing thread provenance or terminal run status.
export function isAutomationSpawnedThread(db: Db, threadId: string): boolean {
return (
db
.prepare(
`SELECT thread_id FROM automation_thread_marks WHERE thread_id = ? LIMIT 1`,
)
.get(threadId) !== undefined ||
db
.prepare(`SELECT id FROM automation_runs WHERE thread_id = ? LIMIT 1`)
.get(threadId) !== undefined
);plugins/automations/src/service.ts:144–151 uses that overbroad classification to deny creation. The guard runs before the execution-mode branch at plugins/automations/src/service.ts:650–659, explaining both failing modes.
function assertNotRecursiveCreation(
db: Db,
createdByThreadId: string | undefined,
): void {
if (createdByThreadId === undefined) return;
if (isAutomationSpawnedThread(db, createdByThreadId)) {
throw new Error("Automation-spawned threads cannot create automations");
}
Deleting only the mark would not solve the underlying problem: the retained run record is a second unconditional match. History is evidence that a thread received work, not proof that an automation created it.
6. Proposed fix and automation limit
Separate permanent automation provenance from temporary in-flight automation execution. Use validated core thread-origin metadata for the former and currently running plugin run records for the latter. Do not delete successful history or paused schedules to restore eligibility. Reject unavailable or mismatched creator metadata rather than silently bypassing recursion protection.
Extend regression coverage to automation-created threads without retained local history, active recipients, settled recipients, and failed metadata lookup. The supplied reproduction deliberately shows the current active-run error; a final fix may use a different diagnostic while preserving rejection.
No automatic fix PR: the required production change alters the recursion-prevention creation permission/safety guard. The rule explicitly excludes permission/security-boundary changes from simple fixes. No production code was changed, no fix branch was pushed, and no duplicate PR was opened.
7. Linked PR review
PR #6729 was closed and unmerged when inspected; GitHub metadata links it to this issue. A separate search found no open linked PR. Its untrusted diff was read only after designing the reproduction from trusted-main source.
The diff replaces history-only classification with running-run checks and validated core origin metadata, and removes obsolete mark-writing helpers without dropping history tables. That direction addresses the independently observed mechanism. Static verdict: consistent with the verified cause, but not executed or approved here. No additional defect is claimed from static inspection. The changed creation guard in service.ts requires focused fail-closed and recursion-safety review.
8. Related issues
Repository label discovery also found #5927, a creation failure associated with missing provider/model selection. This reproduction supplies a configured agent fixture and also fails with script follow-up work, so provider/model omission does not explain it.
9. Verification
The same agent repeated the reproduction, not an independent reviewer. A second fresh clone from https://github.com/get-bb/bb.git was checked to match the full base SHA before applying only the locally authored test patch. It received a separate frozen install, SDK build, owning-package build, and a forced uncached test run with the command above. Each run booted new temporary SQLite storage. Both cases failed at the identical final creation assertion with the same guard error.
No report correction was needed after the second run. The original Automations suite was separately run with only these two new failing cases excluded: 156 existing tests passed across 12 files. Both checkouts passed git diff --check; their only tracked change is the locally authored test.
10. Appendix
Complete reproducible test patch
Copy the text below into recipient-regression.diff. Raw local evidence is retained outside the public report repository; the entire necessary test and output are inline.
diff --git a/plugins/automations/src/server-harness.test.ts b/plugins/automations/src/server-harness.test.ts
index f043602e51..f8efbd6ff1 100644
--- a/plugins/automations/src/server-harness.test.ts
+++ b/plugins/automations/src/server-harness.test.ts
@@ -716,6 +716,107 @@ describe("automations server plugin harness", () => {
await harness.dispose();
});
+ it.each(["agent", "script"] as const)(
+ "permits deferred %s creation from a settled scheduled recipient",
+ async (mode) => {
+ vi.useFakeTimers();
+ vi.setSystemTime(new Date("2026-01-01T00:00:00.000Z"));
+ const host = await bootAutomationsPlugin();
+ const { harness } = host;
+ harness.sdk.stub("threads.get", async ({ threadId }) =>
+ makeThreadResponse({ id: threadId, projectId: PROJECT_ID }),
+ );
+ try {
+ const schedule = await createAgentAutomation(harness, {
+ targetThreadId: THREAD_ID,
+ trigger: {
+ triggerType: "schedule",
+ cron: "* * * * *",
+ timezone: "UTC",
+ },
+ });
+ vi.setSystemTime(new Date("2026-01-01T00:01:05.000Z"));
+ const sweep = harness.runService("automation-sweep");
+ try {
+ await vi.waitFor(() =>
+ expect(harness.sdk.callsTo("threads.send")).toHaveLength(1),
+ );
+ } finally {
+ sweep.controller.abort();
+ await sweep.done;
+ }
+ const followUp = {
+ projectId: PROJECT_ID,
+ name: "Deferred recipient work",
+ enabled: false,
+ trigger: oneShotTrigger(),
+ execution:
+ mode === "agent"
+ ? agentExecution()
+ : {
+ mode: "script",
+ script: "printf deferred",
+ interpreter: "sh",
+ },
+ origin: "agent",
+ createdByThreadId: THREAD_ID,
+ };
+ await expect(
+ harness.callRpc("automations_create", followUp),
+ ).rejects.toThrow(
+ "Automation-spawned threads cannot create automations",
+ );
+ await harness.emitThreadEvent("thread.idle", {
+ thread: makeThreadResponse({ id: THREAD_ID, projectId: PROJECT_ID }),
+ lastAssistantText: null,
+ });
+ await harness.callRpc("automations_pause", {
+ projectId: PROJECT_ID,
+ automationId: schedule.id,
+ });
+ const history = automationRunListResponseSchema.parse(
+ await harness.callRpc("automations_runs", {
+ projectId: PROJECT_ID,
+ automationId: schedule.id,
+ }),
+ );
+ expect(history.runs).toEqual([
+ expect.objectContaining({ status: "succeeded", threadId: THREAD_ID }),
+ ]);
+ expect(
+ host.bb.storage
+ .database()
+ .prepare(
+ "SELECT thread_id FROM automation_thread_marks WHERE thread_id = ?",
+ )
+ .get(THREAD_ID),
+ ).toBeDefined();
+ await expect(
+ harness.callRpc("automations_create", followUp),
+ ).resolves.toMatchObject({
+ enabled: false,
+ createdByThreadId: THREAD_ID,
+ });
+ expect(
+ await harness.callRpc("automations_get", {
+ projectId: PROJECT_ID,
+ automationId: schedule.id,
+ }),
+ ).toMatchObject({ enabled: false });
+ expect(
+ automationRunListResponseSchema.parse(
+ await harness.callRpc("automations_runs", {
+ projectId: PROJECT_ID,
+ automationId: schedule.id,
+ }),
+ ),
+ ).toEqual(history);
+ } finally {
+ await harness.dispose();
+ }
+ },
+ );
+
it("lists only automations that re-prompt a thread, not ones it created", async () => {
const { harness } = await bootAutomationsPlugin();
const targeted = await createAgentAutomation(harness, {
First run output
• turbo 2.10.12
• Packages in scope: bb-plugin-automations
• Running test in 1 packages
• Remote caching disabled
//:ensure-native-modules: cache bypass, force executing 3ded94d282fce1d6
@bb/process-utils:generate:profile-worker: cache miss, executing dd3da2b14c0597d1
@bb/plugin-build:generate: cache miss, executing d1451632e560be83
@bb/templates:generate:templates: cache miss, executing 9589a3dbc3e220e7
@bb/templates:generate:plugin-scaffold: cache miss, executing 35826acdc76a816d
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate REPRO_ROOT/base/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/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates REPRO_ROOT/base/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker REPRO_ROOT/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules REPRO_ROOT/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold REPRO_ROOT/base/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 a0d39c6a7acd0138
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.109 build REPRO_ROOT/base/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 23 @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 REPRO_ROOT/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.0)
bb-plugin-automations:test: cache miss, executing 8e19edfaa272761f
bb-plugin-automations:test:
bb-plugin-automations:test: > bb-plugin-automations@0.1.0 test REPRO_ROOT/base/plugins/automations
bb-plugin-automations:test: > vitest run --config vitest.config.ts "src/server-harness.test.ts" "-t" "permits deferred"
bb-plugin-automations:test:
bb-plugin-automations:test:
bb-plugin-automations:test: RUN v4.1.1 REPRO_ROOT/base/plugins/automations
bb-plugin-automations:test:
bb-plugin-automations:test: ❯ src/server-harness.test.ts (30 tests | 2 failed | 28 skipped) 204ms
bb-plugin-automations:test: ↓ boots through server.ts and registers rpc, cli, thread events, and sweep service
bb-plugin-automations:test: ↓ round-trips create, list, get, and delete over RPC and rejects unavailable projects
bb-plugin-automations:test: ↓ creates a script automation through CLI and lists it through both CLI and RPC
bb-plugin-automations:test: ↓ accepts a bare millisecond timeout and a duration with a unit
bb-plugin-automations:test: ↓ prints help for the whole CLI and for one command with exit 0
bb-plugin-automations:test: ↓ rejects a positional argument to list
bb-plugin-automations:test: ↓ reports every missing value once and names the thread's project
bb-plugin-automations:test: ↓ keeps a valid script row canonical when its stored file is missing
bb-plugin-automations:test: × permits deferred agent creation from a settled scheduled recipient 139ms
bb-plugin-automations:test: × permits deferred script creation from a settled scheduled recipient 63ms
bb-plugin-automations:test: ↓ lists only automations that re-prompt a thread, not ones it created
bb-plugin-automations:test: ↓ defaults agent automations to 'auto' for provider capabilities
bb-plugin-automations:test: ↓ defaults agent automations to 'full' for provider capabilities
bb-plugin-automations:test: ↓ rejects an explicit mode the automation provider does not support
bb-plugin-automations:test: ↓ updates agent execution in place through the CLI without resetting omitted fields
bb-plugin-automations:test: ↓ accepts a long prompt and keeps the automation readable afterwards
bb-plugin-automations:test: ↓ does not persist a CLI create rejected by execution validation
bb-plugin-automations:test: ↓ lists degraded rows and repairs a desktop v0.40.0 failed create
bb-plugin-automations:test: ↓ preserves valid rows after rejected full and partial updates
bb-plugin-automations:test: ↓ rejects conflicting targets and invalid permission modes before updating
bb-plugin-automations:test: ↓ patches agent execution through RPC while preserving its environment
bb-plugin-automations:test: ↓ rejects unsupported partial permission updates through RPC and CLI
bb-plugin-automations:test: ↓ validates permission updates against the automation target environment
bb-plugin-automations:test: ↓ dedupes manual runs through RPC idempotency keys
bb-plugin-automations:test: ↓ settles a run orphaned by a restart when the replacement plugin starts
bb-plugin-automations:test: ↓ discovers a late-enrolled server host before dispatching a project script
bb-plugin-automations:test: ↓ dispatches a due agent automation from one sweep tick and closes it from thread.idle
bb-plugin-automations:test: ↓ declines a provider retry of a recurring run's failed turn in its target thread
bb-plugin-automations:test: ↓ disables automations targeting a deleted thread
bb-plugin-automations:test: ↓ dispose aborts the sweep service and poisons stale bb handles
bb-plugin-automations:test:
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-automations:test:
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred agent creation from a settled scheduled recipient
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred script creation from a settled scheduled recipient
bb-plugin-automations:test: AssertionError: promise rejected "experimental_PluginRpcCallError: Automati… { …(4) }" instead of resolving
bb-plugin-automations:test: ❯ src/server-harness.test.ts:796:10
bb-plugin-automations:test: 794| await expect(
bb-plugin-automations:test: 795| harness.callRpc("automations_create", followUp),
bb-plugin-automations:test: 796| ).resolves.toMatchObject({
bb-plugin-automations:test: | ^
bb-plugin-automations:test: 797| enabled: false,
bb-plugin-automations:test: 798| createdByThreadId: THREAD_ID,
bb-plugin-automations:test:
bb-plugin-automations:test: Caused by: experimental_PluginRpcCallError: Automation-spawned threads cannot create automations
bb-plugin-automations:test: ❯ throwRpcError ../../packages/plugin-sdk/dist/testing/index.js:3105:9
bb-plugin-automations:test: ❯ Object.callRpc ../../packages/plugin-sdk/dist/testing/index.js:4189:16
bb-plugin-automations:test: ❯ src/server-harness.test.ts:794:9
bb-plugin-automations:test:
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
bb-plugin-automations:test: Serialized Error: { code: 'handler_error', issues: undefined, status: undefined, serverCode: undefined }
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-automations:test:
bb-plugin-automations:test:
bb-plugin-automations:test: Test Files 1 failed (1)
bb-plugin-automations:test: Tests 2 failed | 28 skipped (30)
bb-plugin-automations:test: Start at 22:58:47
bb-plugin-automations:test: Duration 940ms (transform 379ms, setup 0ms, import 575ms, tests 204ms, environment 0ms)
bb-plugin-automations:test:
bb-plugin-automations:test: ELIFECYCLE Test failed. See above for more details.
bb-plugin-automations#test: ERROR command (REPRO_ROOT/base/plugins/automations) /usr/local/bin/pnpm run test src/server-harness.test.ts -t permits deferred exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 4.112s
Failed: bb-plugin-automations#test
ERROR run failed: command exited (1)
Second clean run output
• turbo 2.10.12
• Packages in scope: bb-plugin-automations
• Running test in 1 packages
• Remote caching disabled
@bb/plugin-build:generate: cache bypass, force executing d1451632e560be83
@bb/process-utils:generate:profile-worker: cache bypass, force executing dd3da2b14c0597d1
@bb/templates:generate:plugin-scaffold: cache bypass, force executing 35826acdc76a816d
@bb/templates:generate:templates: cache bypass, force executing 9589a3dbc3e220e7
//:ensure-native-modules: cache bypass, force executing 3ded94d282fce1d6
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker REPRO_ROOT/verify/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate REPRO_ROOT/verify/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/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold REPRO_ROOT/verify/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 REPRO_ROOT/verify/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 REPRO_ROOT/verify
//: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
@get-bb/plugin-sdk:build: cache bypass, force executing a0d39c6a7acd0138
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.109 build REPRO_ROOT/verify/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 23 @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 REPRO_ROOT/verify/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.0)
bb-plugin-automations:test: cache bypass, force executing 8e19edfaa272761f
bb-plugin-automations:test:
bb-plugin-automations:test: > bb-plugin-automations@0.1.0 test REPRO_ROOT/verify/plugins/automations
bb-plugin-automations:test: > vitest run --config vitest.config.ts "src/server-harness.test.ts" "-t" "permits deferred"
bb-plugin-automations:test:
bb-plugin-automations:test:
bb-plugin-automations:test: RUN v4.1.1 REPRO_ROOT/verify/plugins/automations
bb-plugin-automations:test:
bb-plugin-automations:test: ❯ src/server-harness.test.ts (30 tests | 2 failed | 28 skipped) 209ms
bb-plugin-automations:test: ↓ boots through server.ts and registers rpc, cli, thread events, and sweep service
bb-plugin-automations:test: ↓ round-trips create, list, get, and delete over RPC and rejects unavailable projects
bb-plugin-automations:test: ↓ creates a script automation through CLI and lists it through both CLI and RPC
bb-plugin-automations:test: ↓ accepts a bare millisecond timeout and a duration with a unit
bb-plugin-automations:test: ↓ prints help for the whole CLI and for one command with exit 0
bb-plugin-automations:test: ↓ rejects a positional argument to list
bb-plugin-automations:test: ↓ reports every missing value once and names the thread's project
bb-plugin-automations:test: ↓ keeps a valid script row canonical when its stored file is missing
bb-plugin-automations:test: × permits deferred agent creation from a settled scheduled recipient 143ms
bb-plugin-automations:test: × permits deferred script creation from a settled scheduled recipient 64ms
bb-plugin-automations:test: ↓ lists only automations that re-prompt a thread, not ones it created
bb-plugin-automations:test: ↓ defaults agent automations to 'auto' for provider capabilities
bb-plugin-automations:test: ↓ defaults agent automations to 'full' for provider capabilities
bb-plugin-automations:test: ↓ rejects an explicit mode the automation provider does not support
bb-plugin-automations:test: ↓ updates agent execution in place through the CLI without resetting omitted fields
bb-plugin-automations:test: ↓ accepts a long prompt and keeps the automation readable afterwards
bb-plugin-automations:test: ↓ does not persist a CLI create rejected by execution validation
bb-plugin-automations:test: ↓ lists degraded rows and repairs a desktop v0.40.0 failed create
bb-plugin-automations:test: ↓ preserves valid rows after rejected full and partial updates
bb-plugin-automations:test: ↓ rejects conflicting targets and invalid permission modes before updating
bb-plugin-automations:test: ↓ patches agent execution through RPC while preserving its environment
bb-plugin-automations:test: ↓ rejects unsupported partial permission updates through RPC and CLI
bb-plugin-automations:test: ↓ validates permission updates against the automation target environment
bb-plugin-automations:test: ↓ dedupes manual runs through RPC idempotency keys
bb-plugin-automations:test: ↓ settles a run orphaned by a restart when the replacement plugin starts
bb-plugin-automations:test: ↓ discovers a late-enrolled server host before dispatching a project script
bb-plugin-automations:test: ↓ dispatches a due agent automation from one sweep tick and closes it from thread.idle
bb-plugin-automations:test: ↓ declines a provider retry of a recurring run's failed turn in its target thread
bb-plugin-automations:test: ↓ disables automations targeting a deleted thread
bb-plugin-automations:test: ↓ dispose aborts the sweep service and poisons stale bb handles
bb-plugin-automations:test:
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
bb-plugin-automations:test:
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred agent creation from a settled scheduled recipient
bb-plugin-automations:test: FAIL src/server-harness.test.ts > automations server plugin harness > permits deferred script creation from a settled scheduled recipient
bb-plugin-automations:test: AssertionError: promise rejected "experimental_PluginRpcCallError: Automati… { …(4) }" instead of resolving
bb-plugin-automations:test: ❯ src/server-harness.test.ts:796:10
bb-plugin-automations:test: 794| await expect(
bb-plugin-automations:test: 795| harness.callRpc("automations_create", followUp),
bb-plugin-automations:test: 796| ).resolves.toMatchObject({
bb-plugin-automations:test: | ^
bb-plugin-automations:test: 797| enabled: false,
bb-plugin-automations:test: 798| createdByThreadId: THREAD_ID,
bb-plugin-automations:test:
bb-plugin-automations:test: Caused by: experimental_PluginRpcCallError: Automation-spawned threads cannot create automations
bb-plugin-automations:test: ❯ throwRpcError ../../packages/plugin-sdk/dist/testing/index.js:3105:9
bb-plugin-automations:test: ❯ Object.callRpc ../../packages/plugin-sdk/dist/testing/index.js:4189:16
bb-plugin-automations:test: ❯ src/server-harness.test.ts:794:9
bb-plugin-automations:test:
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
bb-plugin-automations:test: Serialized Error: { code: 'handler_error', issues: undefined, status: undefined, serverCode: undefined }
bb-plugin-automations:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
bb-plugin-automations:test:
bb-plugin-automations:test:
bb-plugin-automations:test: Test Files 1 failed (1)
bb-plugin-automations:test: Tests 2 failed | 28 skipped (30)
bb-plugin-automations:test: Start at 23:00:00
bb-plugin-automations:test: Duration 936ms (transform 359ms, setup 0ms, import 550ms, tests 209ms, environment 0ms)
bb-plugin-automations:test:
bb-plugin-automations:test: ELIFECYCLE Test failed. See above for more details.
bb-plugin-automations#test: ERROR command (REPRO_ROOT/verify/plugins/automations) /usr/local/bin/pnpm run test src/server-harness.test.ts -t permits deferred exited (1)
Tasks: 6 successful, 7 total
Cached: 0 cached, 7 total
Time: 4.747s
Failed: bb-plugin-automations#test
ERROR run failed: command exited (1)
Existing-suite verification
• turbo 2.10.12 • Packages in scope: bb-plugin-automations • Running test in 1 packages • Remote caching disabled //:ensure-native-modules: cache bypass, force executing 0bc680c9ba2d2e70 @bb/templates:generate:plugin-scaffold: cache miss, executing 53ff3a49c1cbf8a4 @bb/templates:generate:templates: cache miss, executing bb26e2ced70519b4 @bb/process-utils:generate:profile-worker: cache miss, executing 7290f94eb01dc0d2 @bb/plugin-build:generate: cache miss, executing 976a320daf308421 @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold REPRO_ROOT/base/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker REPRO_ROOT/base/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules REPRO_ROOT/base //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates REPRO_ROOT/base/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate REPRO_ROOT/base/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @get-bb/plugin-sdk:build: cache miss, executing 1372d2f5c8e5ff44 @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.109 build REPRO_ROOT/base/packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: Built 23 @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 REPRO_ROOT/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.0) bb-plugin-automations:test: cache miss, executing 562206d1fb7dd8f4 bb-plugin-automations:test: bb-plugin-automations:test: > bb-plugin-automations@0.1.0 test REPRO_ROOT/base/plugins/automations bb-plugin-automations:test: > vitest run --config vitest.config.ts "-t" "^(?!.*permits deferred)" bb-plugin-automations:test: bb-plugin-automations:test: bb-plugin-automations:test: RUN v4.1.1 REPRO_ROOT/base/plugins/automations bb-plugin-automations:test: bb-plugin-automations:test: ✓ src/composer.test.ts (1 test) 4ms bb-plugin-automations:test: ✓ src/edit-prompt.test.ts (1 test) 3ms bb-plugin-automations:test: ✓ src/automation-safety-docs.test.ts (1 test) 5ms bb-plugin-automations:test: ✓ src/format-schedule.test.ts (20 tests) 12ms bb-plugin-automations:test: ✓ src/frontend-imports.test.ts (4 tests) 7ms bb-plugin-automations:test: ✓ src/sweep-abort-listeners.test.ts (1 test) 17ms bb-plugin-automations:test: ✓ src/target-thread-read-failure.test.ts (4 tests) 262ms bb-plugin-automations:test: ✓ src/server-harness.test.ts (30 tests | 2 skipped) 590ms bb-plugin-automations:test: ✓ src/automations.test.ts (72 tests) 1671ms bb-plugin-automations:test: ✓ terminates descendant processes when a script times out 1013ms bb-plugin-automations:test: ✓ src/thread-info-section.test.tsx (1 test) 128ms bb-plugin-automations:test: ✓ src/detail-view.test.tsx (12 tests) 825ms bb-plugin-automations:test: ✓ keeps Definition ahead of Runs, including with no runs yet 622ms bb-plugin-automations:test: ✓ src/overview-view.test.tsx (11 tests) 1449ms bb-plugin-automations:test: ✓ opens a missing-prompt row in the standard editor 493ms bb-plugin-automations:test: bb-plugin-automations:test: Test Files 12 passed (12) bb-plugin-automations:test: Tests 156 passed | 2 skipped (158) bb-plugin-automations:test: Start at 23:01:09 bb-plugin-automations:test: Duration 4.35s (transform 2.77s, setup 0ms, import 6.69s, tests 4.97s, environment 3.94s) bb-plugin-automations:test: Tasks: 7 successful, 7 total Cached: 0 cached, 7 total Time: 7.495s
Additional verification commands
pnpm exec turbo run build pnpm exec turbo run test --filter=bb-plugin-automations -- -t '^(?!.*permits deferred)' git diff --check git diff --numstat origin/main
Trust handling: issue and PR prose, links, code blocks, tests, and commands were treated as untrusted claims. Only trusted origin/main production code plus the reproduction authored from that code was executed. No credentials, personal runtime data, or external issue attachments were accessed.
AGENT GENERATED · direct SlopCop investigation; no workflow or subagents.