#6241 · Parent notice dispatch status race
Verdict: REPRODUCED · Root-cause confidence: high · Label: confirmed-repro
1. TL;DR
A child completion notice can disappear instead of waking its parent. The server chooses an active-parent or idle-parent dispatch path, then asynchronously prepares the provider command before writing the notice. If the parent's status changes in that interval, the active path returns false without recording the request, while the idle path attempts an illegal lifecycle transition and rolls back the request. Both schedules reproduce deterministically on trusted main and in a second clean checkout. The report establishes the dispatch race, not the reporter's historical loss rate or the alleged contribution of skill discovery.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| An active parent becoming idle loses a notice. | Verified | Paused real command preparation; posted a successful turn completion through the internal event endpoint; delivery returned false. |
| An idle parent becoming active causes a lifecycle error. | Verified | Posted turn/started in the same preparation window; delivery rejected with run.started from status active. |
| The batching caller does not retry these outcomes. | Verified by source | The batch is removed before awaiting delivery; the boolean result is ignored and thrown errors are only logged. |
| The release upgrade increased exposure through skill discovery or event-loop load. | Unverified | No production telemetry, historical installation, or per-span benchmark was accessed. No load or real provider is necessary for the deterministic reproduction. |
| The reported production counts have the stated cause. | Unverified | No user database or production logs were accessed. |
3. Environment
- Trusted get-bb/bb main:
9eb0c09254a21482c0cfd935e0a9908049333e93; origin and the canonical target main were verified to match. - Linux 4.19.0-gvisor x86_64; Node v22.19.0; pnpm 9.15.0; Vitest 4.1.1.
- Real migrated SQLite through the existing server harness; isolated temporary data directory per case; in-process Hono requests; no TCP listener, production instance, provider subprocess, credential, or external model call.
- The existing host-command capture records real dispatch commands. The only spy wraps real command preparation and pauses its return; it does not supply a fake prepared command or mock the database.
- A whole-repository build initially encountered an unbuilt SDK host entry. Building SDK runtime/types first and then the server passed; no dependency or repository build configuration was changed.
4. Minimal reproduction
- Prepare the trusted commit:
git clone https://github.com/get-bb/bb.git bb-6241 cd bb-6241 git checkout --detach 9eb0c09254a21482c0cfd935e0a9908049333e93 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build build:types --filter=@get-bb/plugin-sdk pnpm exec turbo run build --filter=@bb/server
- Save the complete self-authored regression test below as
apps/server/test/threads/parent-system-message-dispatch.test.ts. Runpnpm exec turbo run test --filter=@bb/server -- test/threads/parent-system-message-dispatch.test.ts. The two table rows seed a parent with a provider session, pause the real preparation function, post either turn/completed or turn/started, assert the new persisted status, and release preparation. - Expected: delivery resolves true; exactly one system request with the original notice taxonomy and exactly one correctly targeted host command; no leftover queued row.
- Actual on the unmodified base:
active → idle: AssertionError: expected false to be true idle → active: ThreadLifecycleEventNotAppliedError: Thread lifecycle event not applied (illegal-transition): no transition for run.started from status active Tests 2 failed (2)
The complete test and both baseline outputs are embedded in this self-contained report. No external test download is required.
Complete reproduction test
import { getThread, listEvents, listQueuedThreadMessages } from "@bb/db";
import { turnRequestEventDataSchema, turnScope } from "@bb/domain";
import { groupHostDaemonEvents } from "@bb/host-daemon-contract";
import { createDeferredPromise } from "@bb/test-helpers";
import { afterEach, describe, expect, it, vi } from "vitest";
import * as commands from "../../src/services/threads/thread-commands.js";
import { queueParentSystemMessage } from "../../src/services/threads/parent-system-messages.js";
import {
internalAuthHeaders,
listQueuedThreadCommands,
} from "../helpers/commands.js";
import { textInput } from "../helpers/prompt-input.js";
import {
seedEnvironment,
seedHostSession,
seedProjectWithSource,
seedThread,
seedThreadRuntimeState,
seedTurnStarted,
} from "../helpers/seed.js";
import { withTestHarness } from "../helpers/test-app.js";
afterEach(() => vi.restoreAllMocks());
describe("parent system message dispatch", () => {
it.each(["active", "idle"] as const)(
"delivers exactly one notice when an initially %s parent changes status during preparation",
async (status) => {
await withTestHarness(async (harness) => {
const { host, session } = seedHostSession(harness.deps);
const { project } = seedProjectWithSource(harness.deps, {
hostId: host.id,
path: "/tmp/parent-notice-dispatch",
});
const environment = seedEnvironment(harness.deps, {
hostId: host.id,
projectId: project.id,
path: "/tmp/parent-notice-dispatch",
status: "ready",
});
const thread = seedThread(harness.deps, {
projectId: project.id,
environmentId: environment.id,
status,
});
seedThreadRuntimeState(harness.deps, {
environmentId: environment.id,
providerThreadId: "provider-parent-notice",
threadId: thread.id,
});
if (status === "active") {
seedTurnStarted(harness.deps, {
threadId: thread.id,
turnId: "turn-race",
});
}
const entered = createDeferredPromise<void>();
const release = createDeferredPromise<void>();
const prepare = commands.prepareTurnSubmitCommandPayload;
vi.spyOn(
commands,
"prepareTurnSubmitCommandPayload",
).mockImplementationOnce(async (...args) => {
const prepared = await prepare(...args);
entered.resolve();
await release.promise;
return prepared;
});
const input = textInput("A child finished its work.");
const subject = {
kind: "thread",
threadId: "child-race",
threadName: "Child",
} as const;
const sending = queueParentSystemMessage(harness.deps, {
input,
parentThreadId: thread.id,
systemMessageKind: "child-completed",
systemMessageSubject: subject,
});
const delivered = expect(sending).resolves.toBe(true);
try {
await entered.promise;
const event =
status === "active"
? {
type: "turn/completed" as const,
status: "completed" as const,
}
: { type: "turn/started" as const };
const response = await harness.app.request(
"/internal/session/events",
{
method: "POST",
headers: internalAuthHeaders(harness),
body: JSON.stringify({
sessionId: session.id,
eventGroups: groupHostDaemonEvents([
{
threadId: thread.id,
event: {
...event,
threadId: thread.id,
providerThreadId: "provider-parent-notice",
scope: turnScope("turn-race"),
},
},
]),
}),
},
);
expect(response.status, await response.clone().text()).toBe(200);
expect(getThread(harness.db, thread.id)?.status).toBe(
status === "active" ? "idle" : "active",
);
} finally {
release.resolve();
await delivered;
}
const requests = listEvents(harness.db, { threadId: thread.id })
.filter((event) => event.type === "client/turn/requested")
.map((event) =>
turnRequestEventDataSchema.parse(JSON.parse(event.data)),
)
.filter((event) => event.initiator === "system");
expect(requests).toEqual([
expect.objectContaining({
input,
initiator: "system",
systemMessageKind: "child-completed",
systemMessageSubject: subject,
}),
]);
expect(
listQueuedThreadCommands(harness, "turn.submit", thread.id),
).toEqual([
expect.objectContaining({
input,
target:
status === "active"
? { mode: "start" }
: { mode: "auto", expectedTurnId: "turn-race" },
}),
]);
expect(listQueuedThreadMessages(harness.db, thread.id)).toEqual([]);
});
},
);
});
5. Root cause
The asynchronous preparation is outside the write transaction. Neither dispatch branch can assume the original parent snapshot still describes the transaction's row. The active branch detects a different status but treats it as a terminal non-delivery; the ready branch validates the old snapshot and attempts run.started against the now-active persisted row. Both are dispatch admission failures, not provider failures.
apps/server/src/services/threads/parent-system-messages.ts:223
function queueActiveParentSystemMessageInTransaction(
tx: DbTransaction,
args: QueueActiveParentSystemMessageInTransactionArgs,
): Extract<HostDaemonCommand, { type: "turn.submit" }> | null {
const currentThread = getThread(tx, args.thread.id);
if (
!currentThread ||
currentThread.environmentId !== args.environment.id ||
currentThread.status !== "active" ||
currentThread.archivedAt !== null ||
currentThread.deletedAt !== null
) {
return null;
}
const expectedSteerTurnId = getActiveTurnId({ db: tx }, args.thread.id);
apps/server/src/services/threads/parent-system-messages.ts:384
const activeThread: Thread | null = deps.db.transaction(
(tx) => {
ensureThreadCanStartRequest(args.thread);
appendPreparedClientTurnRequestedEventWithNotificationInTransaction(tx, {
...parentSystemTurnRequestFields(args),
target: { kind: "new-turn" },
requestId,
});
const dispatchKind = command.mode;
if (dispatchKind !== "turn.submit") {
return null;
}
return requireThreadLifecycleEventApplied(
applyLoggedThreadLifecycleEventInTransaction(
{ db: tx, logger: deps.logger },
{ event: { type: "run.started" }, threadId: args.thread.id },
),
);
},
{ behavior: "immediate" },
apps/server/src/services/threads/child-thread-notifications.ts:389
async function flushChildThreadTurnNotificationBatch(
deps: LoggedPendingInteractionWorkSessionDeps,
parentThreadId: string,
): Promise<void> {
const batch = childThreadTurnNotificationBatches.get(parentThreadId);
if (!batch) {
return;
}
childThreadTurnNotificationBatches.delete(parentThreadId);
try {
await queueParentSystemMessage(deps, {
input: buildChildThreadTurnStatusBatchInput({
items: batch.items,
}),
parentThreadId,
...childThreadTurnStatusBatchTaxonomy(batch.items),
});
} catch (error) {
deps.logger.error(
{
err: error,
parentThreadId,
childThreads: batch.items.map((item) => ({
childThreadId: item.childThread.id,
turnStatus: item.turnStatus,
})),
},
"Failed to queue batched parent turn notifications",
The active branch's preparation await is at line 305; its null-to-false return is at lines 330–331. Ready command preparation precedes its transaction at lines 367–384. Its lifecycle error rolls back the event appended in that same transaction.
6. Proposed fix
Revalidate the current parent status inside each write transaction before appending any event. A changed snapshot should trigger a local delivery retry, not false success or an unrecoverable lifecycle error. The retry re-reads the parent and environment and re-enters the existing active/ready dispatch path under the same context-clear guard. Archival or deletion still declines delivery. No public protocol, database schema, dependency, or product-policy change is needed.
The local repair passes both focused regression rows and all 70 relevant existing notification, dispatch, taxonomy, and context-clear tests. Server typecheck also passes. Exact output is embedded in the appendix.
7. Verification
The same agent repeated the reproduction in a separate clean, detached worktree at 9eb0c09254a21482c0cfd935e0a9908049333e93, with its own frozen installation, generated build outputs, migrated database, and new temporary harness directories. Only the self-authored test was copied; production sources stayed unchanged. Command: pnpm exec turbo run test --filter=@bb/server -- test/threads/parent-system-message-dispatch.test.ts. The test task executed on a cache miss. Both rows failed for the same respective reasons as the first run. This is a second clean reproduction, not independent verification.
During test construction an early completion payload omitted a required provider identity and returned HTTP 400. The payload was corrected from trusted repository event-contract examples; both final reported runs require HTTP 200 and verify the persisted status before evaluating delivery. No conclusion relies on that malformed preliminary run. Paths in logs are normalized for publication.
8. Related issues
No open pull request linked to #6241 was found through its issue timeline or open pull requests' closing-issue metadata. The reproduction concerns the shared parent-notice delivery owner, not a provider-specific path. Notification policy changes are outside this report.
9. Appendix
Issue content was treated as untrusted claims only; no issue-supplied command, patch, URL, branch, or test was executed or fetched. The regression was authored from trusted main and existing server harness contracts. No production logs or user data were inspected.
Checks: frozen install; SDK runtime/types build; server build; focused baseline test; clean-checkout forced baseline test; focused post-fix test; relevant suites; server typecheck; formatting; git diff --check. Exact test/build commands are included in the artifacts; the installation used pnpm install --frozen-lockfile --prefer-offline.
First baseline output
@bb/server:test: RUN v4.1.1 <checkout>/apps/server
@bb/server:test:
@bb/server:test: (node:5764) ExperimentalWarning: SQLite is an experimental feature and might change at any time
@bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created)
@bb/server:test: ❯ |@bb/server| test/threads/parent-system-message-dispatch.test.ts (2 tests | 2 failed) 2896ms
@bb/server:test: × delivers exactly one notice when an initially active parent changes status during preparation 231ms
@bb/server:test: × delivers exactly one notice when an initially idle parent changes status during preparation 196ms
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/server:test:
@bb/server:test: FAIL |@bb/server| test/threads/parent-system-message-dispatch.test.ts > parent system message dispatch > delivers exactly one notice when an initially active parent changes status during preparation
@bb/server:test: AssertionError: expected false to be true // Object.is equality
@bb/server:test:
@bb/server:test: - Expected
@bb/server:test: + Received
@bb/server:test:
@bb/server:test: - true
@bb/server:test: + false
@bb/server:test:
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:82:42
@bb/server:test: 80| systemMessageSubject: subject,
@bb/server:test: 81| });
@bb/server:test: 82| const delivered = expect(sending).resolves.toBe(true);
@bb/server:test: | ^
@bb/server:test: 83| try {
@bb/server:test: 84| await entered.promise;
@bb/server:test: ❯ withTestHarness test/helpers/test-app.ts:390:18
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:29:7
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/server:test:
@bb/server:test: FAIL |@bb/server| test/threads/parent-system-message-dispatch.test.ts > parent system message dispatch > delivers exactly one notice when an initially idle parent changes status during preparation
@bb/server:test: AssertionError: promise rejected "ThreadLifecycleEventNotAppliedError: Thre… { …(2) }" instead of resolving
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:82:42
@bb/server:test: 80| systemMessageSubject: subject,
@bb/server:test: 81| });
@bb/server:test: 82| const delivered = expect(sending).resolves.toBe(true);
@bb/server:test: | ^
@bb/server:test: 83| try {
@bb/server:test: 84| await entered.promise;
@bb/server:test: ❯ withTestHarness test/helpers/test-app.ts:390:18
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:29:7
@bb/server:test:
@bb/server:test: Caused by: ThreadLifecycleEventNotAppliedError: Thread lifecycle event not applied (illegal-transition): no transition for run.started from status active
@bb/server:test: ❯ requireThreadLifecycleEventApplied ../../packages/db/src/data/threads.ts:2329:11
@bb/server:test: ❯ deps.db.transaction.behavior src/services/threads/parent-system-messages.ts:396:14
@bb/server:test: ❯ Function.<anonymous> ../../packages/db/src/connection.ts:344:16
@bb/server:test: ❯ Function.sqliteTransaction ../../node_modules/.pnpm/better-sqlite3@12.10.0/node_modules/better-sqlite3/lib/methods/transaction.js:65:24
@bb/server:test: ❯ BetterSQLiteSession.transaction ../../node_modules/.pnpm/drizzle-orm@0.38.4_@cloudflare+workers-types@4.20260702.1_@opentelemetry+api@1.9.1_@types+bet_oymanfrbpjr52m4tr5hzqpxapa/node_modules/drizzle-orm/better-sqlite3/session.js:34:51
@bb/server:test: ❯ BetterSQLite3Database.transaction ../../node_modules/.pnpm/drizzle-orm@0.38.4_@cloudflare+workers-types@4.20260702.1_@opentelemetry+api@1.9.1_@types+bet_oymanfrbpjr52m4tr5hzqpxapa/node_modules/drizzle-orm/sqlite-core/db.js:294:25
@bb/server:test: ❯ ../../packages/db/src/connection.ts:342:7
@bb/server:test: ❯ transactionCallbacks ../../packages/db/src/connection.ts:327:16
@bb/server:test: ❯ BetterSQLite3Database.db.transaction ../../packages/db/src/connection.ts:341:5
@bb/server:test: ❯ queueReadyParentSystemMessage src/services/threads/parent-system-messages.ts:384:47
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
@bb/server:test: Serialized Error: { detail: 'no transition for run.started from status active', reason: 'illegal-transition' }
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
@bb/server:test:
@bb/server:test:
@bb/server:test: Test Files 1 failed (1)
@bb/server:test: Tests 2 failed (2)
@bb/server:test: Start at 20:37:02
@bb/server:test: Duration 36.12s (transform 27.56s, setup 4.90s, import 23.22s, tests 2.90s, environment 0ms)
@bb/server:test:
@bb/server:test: ELIFECYCLE Test failed. See above for more details.
@bb/server#test: ERROR command (<checkout>/apps/server) /usr/local/bin/pnpm run test test/threads/parent-system-message-dispatch.test.ts exited (1)
Tasks: 9 successful, 10 total
Cached: 8 cached, 10 total
Time: 39.191s
Failed: @bb/server#test
ERROR run failed: command exited (1)
Second clean baseline output
@bb/server:test: RUN v4.1.1 <clean-checkout>/apps/server
@bb/server:test:
@bb/server:test: (node:7388) ExperimentalWarning: SQLite is an experimental feature and might change at any time
@bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created)
@bb/server:test: ❯ |@bb/server| test/threads/parent-system-message-dispatch.test.ts (2 tests | 2 failed) 2363ms
@bb/server:test: × delivers exactly one notice when an initially active parent changes status during preparation 205ms
@bb/server:test: × delivers exactly one notice when an initially idle parent changes status during preparation 154ms
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/server:test:
@bb/server:test: FAIL |@bb/server| test/threads/parent-system-message-dispatch.test.ts > parent system message dispatch > delivers exactly one notice when an initially active parent changes status during preparation
@bb/server:test: AssertionError: expected false to be true // Object.is equality
@bb/server:test:
@bb/server:test: - Expected
@bb/server:test: + Received
@bb/server:test:
@bb/server:test: - true
@bb/server:test: + false
@bb/server:test:
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:82:42
@bb/server:test: 80| systemMessageSubject: subject,
@bb/server:test: 81| });
@bb/server:test: 82| const delivered = expect(sending).resolves.toBe(true);
@bb/server:test: | ^
@bb/server:test: 83| try {
@bb/server:test: 84| await entered.promise;
@bb/server:test: ❯ withTestHarness test/helpers/test-app.ts:390:18
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:29:7
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/server:test:
@bb/server:test: FAIL |@bb/server| test/threads/parent-system-message-dispatch.test.ts > parent system message dispatch > delivers exactly one notice when an initially idle parent changes status during preparation
@bb/server:test: AssertionError: promise rejected "ThreadLifecycleEventNotAppliedError: Thre… { …(2) }" instead of resolving
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:82:42
@bb/server:test: 80| systemMessageSubject: subject,
@bb/server:test: 81| });
@bb/server:test: 82| const delivered = expect(sending).resolves.toBe(true);
@bb/server:test: | ^
@bb/server:test: 83| try {
@bb/server:test: 84| await entered.promise;
@bb/server:test: ❯ withTestHarness test/helpers/test-app.ts:390:18
@bb/server:test: ❯ test/threads/parent-system-message-dispatch.test.ts:29:7
@bb/server:test:
@bb/server:test: Caused by: ThreadLifecycleEventNotAppliedError: Thread lifecycle event not applied (illegal-transition): no transition for run.started from status active
@bb/server:test: ❯ requireThreadLifecycleEventApplied ../../packages/db/src/data/threads.ts:2329:11
@bb/server:test: ❯ deps.db.transaction.behavior src/services/threads/parent-system-messages.ts:396:14
@bb/server:test: ❯ Function.<anonymous> ../../packages/db/src/connection.ts:344:16
@bb/server:test: ❯ Function.sqliteTransaction ../../node_modules/.pnpm/better-sqlite3@12.10.0/node_modules/better-sqlite3/lib/methods/transaction.js:65:24
@bb/server:test: ❯ BetterSQLiteSession.transaction ../../node_modules/.pnpm/drizzle-orm@0.38.4_@cloudflare+workers-types@4.20260702.1_@opentelemetry+api@1.9.1_@types+bet_oymanfrbpjr52m4tr5hzqpxapa/node_modules/drizzle-orm/better-sqlite3/session.js:34:51
@bb/server:test: ❯ BetterSQLite3Database.transaction ../../node_modules/.pnpm/drizzle-orm@0.38.4_@cloudflare+workers-types@4.20260702.1_@opentelemetry+api@1.9.1_@types+bet_oymanfrbpjr52m4tr5hzqpxapa/node_modules/drizzle-orm/sqlite-core/db.js:294:25
@bb/server:test: ❯ ../../packages/db/src/connection.ts:342:7
@bb/server:test: ❯ transactionCallbacks ../../packages/db/src/connection.ts:327:16
@bb/server:test: ❯ BetterSQLite3Database.db.transaction ../../packages/db/src/connection.ts:341:5
@bb/server:test: ❯ queueReadyParentSystemMessage src/services/threads/parent-system-messages.ts:384:47
@bb/server:test:
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
@bb/server:test:
@bb/server:test: Serialized Error: { detail: 'no transition for run.started from status active', reason: 'illegal-transition' }
@bb/server:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
@bb/server:test: Test Files 1 failed (1)
@bb/server:test: Tests 2 failed (2)
@bb/server:test: Start at 20:40:52
@bb/server:test: Duration 33.76s (transform 25.67s, setup 4.30s, import 22.26s, tests 2.36s, environment 0ms)
@bb/server:test:
@bb/server:test:
@bb/server:test: ELIFECYCLE Test failed. See above for more details.
@bb/server#test: ERROR command (<clean-checkout>/apps/server) /usr/local/bin/pnpm run test test/threads/parent-system-message-dispatch.test.ts exited (1)
Tasks: 9 successful, 10 total
Cached: 8 cached, 10 total
Time: 36.88s
Failed: @bb/server#test
ERROR run failed: command exited (1)
Post-fix focused output
@bb/server:test: RUN v4.1.1 <checkout>/apps/server @bb/server:test: @bb/server:test: (node:7142) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: ✓ |@bb/server| test/threads/parent-system-message-dispatch.test.ts (2 tests) 2714ms @bb/server:test: @bb/server:test: Test Files 1 passed (1) @bb/server:test: Tests 2 passed (2) @bb/server:test: Start at 20:40:41 @bb/server:test: Duration 36.96s (transform 27.91s, setup 5.16s, import 23.58s, tests 2.71s, environment 0ms) @bb/server:test: Tasks: 10 successful, 10 total Cached: 8 cached, 10 total Time: 40.105s
Relevant suite output
@bb/server:test: RUN v4.1.1 <checkout>/apps/server @bb/server:test: @bb/server:test: ✓ |@bb/server| test/services/threads/child-thread-notifications.test.ts (11 tests) 20ms @bb/server:test: (node:7497) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: (node:7482) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: (node:7481) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: (node:7475) ExperimentalWarning: SQLite is an experimental feature and might change at any time @bb/server:test: (Use `node --trace-warnings ...` to show where the warning was created) @bb/server:test: ✓ |@bb/server| test/public/public-thread-context-clear-dispatch.test.ts (5 tests) 3370ms @bb/server:test: ✓ |@bb/server:isolated| test/threads/system-message-taxonomy-stamping.test.ts (6 tests) 3471ms @bb/server:test: ✓ stamps a single completed child outcome as child-completed 331ms @bb/server:test: ✓ |@bb/server:isolated| test/threads/child-outcome-gaps.test.ts (9 tests) 4133ms @bb/server:test: ✓ |@bb/server| test/threads/thread-send-dispatch.test.ts (39 tests) 8236ms @bb/server:test: @bb/server:test: Test Files 5 passed (5) @bb/server:test: Tests 70 passed (70) @bb/server:test: Start at 20:41:02 @bb/server:test: Duration 47.20s (transform 137.41s, setup 29.19s, import 115.40s, tests 19.23s, environment 1ms) @bb/server:test: Tasks: 10 successful, 10 total Cached: 0 cached, 10 total Time: 1m35.81s
Server typecheck output
• turbo 2.10.12 • Packages in scope: @bb/server • Running typecheck in 1 packages • Remote caching disabled @bb/templates:generate:templates: cache hit, replaying logs e70f23933a1e3745 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <checkout>/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/server:generate:bb-official-marketplace: cache hit, replaying logs 91442dead37aca58 @bb/server:generate:bb-official-marketplace: @bb/server:generate:bb-official-marketplace: > @bb/server@0.0.1 generate:bb-official-marketplace <checkout>/apps/server @bb/server:generate:bb-official-marketplace: > node --conditions=source --import tsx scripts/generate-bb-official-marketplace.ts @bb/server:generate:bb-official-marketplace: @bb/templates:generate:plugin-scaffold: cache hit, replaying logs 4d3bb38dccbef304 @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <checkout>/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/process-utils:generate:profile-worker: cache hit, replaying logs 7c0752bc9f20ae7b @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <checkout>/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: cache hit, replaying logs 7d74f6e86cca2094 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <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: wrote packages/plugin-build/src/generated/plugin-theme.generated.ts @bb/plugin-build:generate: wrote <checkout>/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4) @bb/server:typecheck: cache miss, executing 444c4270bc4bea5a @bb/server:typecheck: @bb/server:typecheck: > @bb/server@0.0.1 typecheck <checkout>/apps/server @bb/server:typecheck: > tsrs --noEmit @bb/server:typecheck: Tasks: 6 successful, 6 total Cached: 5 cached, 6 total Time: 2.851s