Skip to content

Delete completed plans and refresh stale docs - #958

Merged
SawyerHood merged 1 commit into
mainfrom
bb/audit-checked-in-docs-thr_hwjctyqya2
Aug 3, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/audit-checked-in-docs-thr_hwjctyqya2

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

Audited all 99 checked-in Markdown files against the code, then removed the plans whose work shipped and corrected the docs that no longer matched the tree.

Deleted — 13 plans and design docs for shipped work

File Why
plans/tools-hub-plugin-detail-handoff.md PR #888 merged 2026-08-02; the doc still said "do not merge"
plans/bb-connect-v1.md bb connect shipped
plans/bb-connect-architecture.html Architecture plan for shipped connect
plans/hosted-bb-architecture.html The connect plan said to delete it once the work landed
plans/multi-machine-v1.html bb machine and the pair dialogs shipped
plans/secret-request-plugin-and-pending-interaction-api.md plugins/secrets shipped
plans/plugin-system-design.md The plugin system shipped
plans/notes-plugin-api-spec.html The Docs plugin API shipped
plans/askuserquestion-option-preview.md The server now offers the preview option field
plans/loops-skills-redesign-build.md Its own status said all stages built; host.write_skill shipped
docs/t3sidebar-plugin-plan.md plugins/t3sidebar shipped
artifacts/simple-notes-implementation-plan.md The Docs plugin shipped
artifacts/simple-notes-ui-mocks.html Mocks for the same shipped plugin

Four source comments pointed at the deleted connect plan (packages/tunnel-contract, packages/connect-db x2, apps/connect/scripts/spike-client.mts). Those pointers are gone; the comments still say what they said.

plans/ now holds only open work.

Updated — 6 files

  • docs/plugin-sidebar-thread-list.md — said "Nothing here is implemented yet", but all five experimental_* members ship in @bb/plugin-sdk. Status corrected; the dead link to the deleted plan now points at plugins/t3sidebar.
  • plans/plugin-system-qa-catalog.md — setup told you to enable "Settings → Experiments → Plugins"; the experiment is now Extensions (toolsHub). Added a rename table for marketplace/plugins/github → official-plugins/github and the deleted small-ux-pack and linear examples.
  • plans/bb-settings.md — the bb settings group shipped with a different shape, so the phases are now scoped to the remaining browser-link work. AppSettingsView.tsx → SettingsView.tsx.
  • plans/bb-browser.md, plans/in-app-browser-open-behavior-improvements.md — dropped the link to plans/bb-terminal.md, which never existed; both now state "not started" with evidence.
  • plans/composer-extraction.md — premise moved: side chat uses EmbeddedThreadChat now, so two hand-rolled sites remain, not three, and the 4th caller never landed.
  • qa/missed-invariants.md — named composer-cache-owner.test.ts as the guard; that test went away with the composer cache owner in 32197c2e7 (Decouple composer data queries with bootstrap compatibility #335).

Tests

Docs only, plus four comment lines. No behavior change, so no test run. Verified instead by scanning every Markdown link and every repo path referenced in docs/, plans/, qa/, and artifacts/: no broken link and no dangling plan reference remain.

Risks

Low. The deleted plans stay recoverable in git history.

🤖 Generated with Claude Code

Audited every checked-in Markdown file against the code.

Deleted 13 plans and design docs whose work shipped: bb connect (plan
plus both architecture docs), multi-machine v1, the plugin system design,
the secrets plugin plan, the notes plugin API spec, the AskUserQuestion
`preview` follow-up, the Loops/Skills redesign build, the t3sidebar build
plan, the tools-hub handoff (PR #888 merged), and the simple-notes plan
and mocks. Four source comments pointed at the deleted connect plan; they
now stand on their own.

Updated the docs that no longer matched the tree:

- docs/plugin-sidebar-thread-list.md said nothing was implemented; the
  whole API ships in @bb/plugin-sdk.
- plans/plugin-system-qa-catalog.md pointed at the old Plugins experiment
  and at moved or deleted example plugins.
- plans/bb-settings.md, plans/bb-browser.md, and
  plans/in-app-browser-open-behavior-improvements.md linked a
  plans/bb-terminal.md that never existed, and bb-settings described a
  CLI group that has since shipped in a different shape.
- plans/composer-extraction.md assumed three hand-rolled composer sites;
  side chat now uses EmbeddedThreadChat.
- qa/missed-invariants.md named a guard test deleted in #335.

Docs only, plus four comment lines. No behavior change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

I am the SlopCop. I started the review for PR #958.

I will review security, code quality, performance, duplication, architecture, and applicable end-to-end behavior.

@SawyerHood
SawyerHood merged commit 0532898 into main Aug 3, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/audit-checked-in-docs-thr_hwjctyqya2 branch August 3, 2026 22:07
SawyerHood added a commit that referenced this pull request Aug 3, 2026
## What

AGENTS.md says to write only tests that verify where bugs are possible.
This PR sweeps every test file against that rule and deletes the tests
that fail it.

Scope: all 888 test files, 7,910 test cases, 314,511 lines.

Result: **14 tests deleted across 11 files. 366 lines removed, 1 line
added** (an import rewrite). 888 → 886 files. 7,910 → 7,897 cases.

## How candidates were chosen

Two passes, both adversarial:

1. **Mutation check.** For every candidate, an agent opened the source
file under test, proposed realistic one-line bugs (inverted condition,
dropped `await`, swapped arguments, off-by-one, removed field, early
return), and had to show that none of them turn the test red. Any test
that caught a mutation stayed.
2. **Skeptic pass.** An independent agent then tried to *save* every
flagged test, with instructions to default to KEEP. It rejected 24 of
the 38 flags.

Contract tests, migration tests, permission and parsing tests, error
paths, and sole-coverage tests were out of scope by rule. Each of the 14
survivors was then re-verified by hand against the real source.

## What was deleted

| Test | File | Why |
|---|---|---|
| `gives every %s example a semantic launcher icon` |
`apps/app/src/components/create-via-prompt-examples.test.ts` | `icon` is
typed `IconName` on a static config and only field-copied. `icon.length
> 0` is type-guaranteed. |
| `does not render argument hint placeholders…` |
`…/promptbox/editor/prompt-editor-serialization.test.ts` | Calls a
`return null` stub whose declared return type is the literal `null`,
with zero production callers. |
| `environment_not_ready destroyed cleanup` |
`apps/app/src/lib/lifecycle-errors.test.ts` | Byte-identical to the case
above it. Only the `name` string differs. |
| *whole file* — `Tools Hub public export contracts` |
`apps/app/src/views/tools-public-exports.test.ts` | AST export-name
snapshot. No behavior change can fail it. Real removals are caught by
typecheck. |
| `is stable for identical inputs` |
`apps/server/test/services/threads/timeline-cache.test.ts` | Pure
template-join key builder. No realistic mutation fails it while the two
sibling tests stay green. |
| `is false for a root thread with no parent` |
`apps/server/test/threads/thread-parent.test.ts` | Byte-for-byte
duplicate of the preceding test. |
| `pushInput queues messages before start` |
`…/claude-code/bridge/__tests__/sdk-session.test.ts` | Zero assertions.
Dominated by the rejection test 25 lines below. |
| `renames a thread`, `stops a thread`, `steers an active turn` |
`packages/agent-runtime/src/runtime.lifecycle.test.ts` | Zero
assertions. Verified by injecting throws: each mutation reddened
asserting twins elsewhere, never these. |
| `has correct process config`, `uses the configured bridge bundle
directory…` | `packages/agent-runtime/src/pi/adapter.test.ts` | Same
assertions on the same path as `provider-registry.test.ts`, which
asserts strictly more. |
| *describe block* — `server-to-daemon watch payload sizes` |
`packages/host-daemon-contract/test/payload-size.test.ts` | Imports no
source. Measures gzip bytes of a hand-rolled untyped literal. Schema
coverage is in `contract.test.ts`. |
| *whole file* — `real provider registry integration` |
`tests/integration/real/provider-registry.test.ts` | Same setup as
`provider-turns.test.ts` with a strict subset of its assertions. Also
saves a real-provider CI run. |

The sibling `daemon-to-server` block in `payload-size.test.ts` was kept:
it asserts that grouping shrinks the payload, which is a real invariant.

## Tests

- `turbo run typecheck` passes for `@bb/app`, `@bb/server`,
`@bb/agent-runtime`, `@bb/host-daemon-contract`,
`@bb/integration-tests`.
- `turbo run test` passes for `@bb/app` (307 files), `@bb/agent-runtime`
(41), `@bb/host-daemon-contract` (3).
- `@bb/server` passes 152 of 153 files. `internal-skill-trees.test.ts`
fails identically at HEAD on the dev machine, because `umask 0002` gives
file mode `0664` where the test expects `0644`. It is unrelated to this
change.
- The real-provider integration suite was not run locally. It needs live
provider credentials.

## Risk

Low. The change deletes test code only. No source file is touched.

One judgment call to flag: `tools-public-exports.test.ts` was created
deliberately as a frozen export surface. It matched the
implementation-mirror category exactly, so it was deleted. Its
documentation reference in `plans/tools-hub-plugin-detail-handoff.md`
disappeared with #958, so no stale pointer remains.

## Follow-up

`promptMentionArgumentHintPlaceholder` in `prompt-mention-extension.ts`
is now unreferenced. Removing the function is a separate change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ymichael added a commit that referenced this pull request Aug 12, 2026
… exports (#1377)

Dead-code sweep based on the de-slop audit (`plans/deslop-report.md` on
the audit branch, section 5). Every deletion below was re-verified
against the current tree by repo-wide reference counting (apps/,
packages/, plugins/, examples/, tests/, scripts/, docs/ — any occurrence
of the identifier anywhere, including strings, JSON, and markdown,
counted as a reference). Net delta: **+67 / −2,565 lines across 77
files**.

## 1. Historical QA log

- `qa/manual-pass-log.md` (668 lines) — a single manual QA run log full
of dead thread/environment IDs. Zero references. The root `qa/`
directory is unrelated to the live `tests/qa/` package; only this log
was deleted (the runbooks in `qa/` stay).

## 2. Stale plans (deleted 2 of 5, kept 3)

| Plan | Classification | Action |
| --- | --- | --- |
| `environment-archive-grace-period.md` | **Completed** — its own header
says "implemented 2026-06-17"; `managedEnvironmentRetireGraceMs` and the
`retireRequestedAt` grace clock are live in `apps/server` | Deleted
(precedent: #958 deletes shipped plans) |
| `composer-extraction.md` | **Self-invalidated** — its own 2026-08-03
status says the premise moved: the side-chat site now shares hooks via
`EmbeddedThreadChat` and the motivating 4th call site never landed |
Deleted |
| `bb-browser.md` | Never started, but deliberately kept and annotated
by #958 one week ago; reads as live roadmap | **Kept** |
| `bb-settings.md` | Partially overtaken (`bb settings` shipped in a
different shape) but its own status re-scopes it to the remaining
browser-link-settings work | **Kept** |
| `in-app-browser-open-behavior-improvements.md` | Never started;
companion to the two above, also kept by #958 | **Kept** |

## 3. Orphaned files (6 found, all with zero importers)

- `apps/app/src/lib/child-thread-environment.ts` —
`resolveChildThreadEnvironment` has no callers
- `packages/db/src/data/cursor-pagination.ts` — not re-exported by the
`@bb/db` barrel, no callers
- `apps/app/src/components/icons/CodexIcon.tsx` — the codex provider
renders `OpenAiIcon` (`provider-icon.ts`)
- `apps/app/src/components/promptbox/mentions/file-mention.ts` (+ its
test) — only its own test referenced it
- `apps/server/src/services/lib/json-parsing.ts` — module never imported
- `apps/app/src/views/thread-detail/useThreadTimelinePages.ts` — a pure
rename-alias re-export shim over `useThreadTimelineController`. Its
400-line test covered merge helpers the controller's own test does not,
so the test moved to
`apps/app/src/components/thread/timeline/useThreadTimelineController.merge.test.ts`
and imports the real module; only the shim was deleted.

## 4. Dead runtime exports (~40 symbols)

Re-verified individually: zero references outside the defining file and
its own test, and unused inside the defining file (declaration-only).
Symbol-level `git log -S` confirmed none are recent/in-flight work.
Deleted, with their arg-type interfaces and now-orphaned test blocks:

- **apps/app**: `isPluginSlotInstanceCrashed`, `isFileOpenerPanelTab`,
`PROMPT_STACK_COMPACT_INLAY_INSET_CLASS`,
`PROMPT_STACK_COMPACT_INLAY_SEGMENT_CLASS`,
`promptMentionArgumentHintPlaceholder`,
`commandTriggerForComposerActions`, `resolveShowPanelControl` (plus the
now-unreachable `"show-panel"` action variant + presentation entry),
`isHostFilePreviewTab`, `getOpenSecondaryPanelTab`,
`SIDEBAR_PLUGIN_WORKING_STATUS_COLOR_CLASS`, `isKnownSkillScope`,
`seedSystemExecutionOptionsCache`, `hydrateSystemConfigCache`,
`beginThreadTitleTransaction` (alias of live
`beginThreadMetadataTransaction`; its test retargeted to the real
function), `useReorderProject`, `usePluginCatalogStatus` (plus its
private
`fetchPluginCatalogStatus`/`toPluginCatalogStatus`/`PluginCatalogStatus`
chain), `allThreadTabsQueryKeyPrefix`,
`threadHostFilePreviewQueryKeyPrefix`, `useUpdateSkill`, `fetchHostId`,
`looksLikeUrl` (its test cases are fully duplicated by the
`resolveBrowserAddressInput` suite), `findFileOpenersForPath`,
`interpretPluginFrontends` (dead duplicate — `plugin-frontend.ts`
inlines the same logic), `getPluginFrontendRecords`,
`getPullRequestSignalDisplays`, `buildQueuedMessageReorderRequest`,
`getToolsRoutePath`, `isBusyThread`, the whole
`workspace-open-target-preference.ts` guard family
(`isWorkspaceDirectoryOpenTarget`, `isWorkspaceFileOpenTarget`,
`isRemoteSshWorkspaceDirectoryOpenTarget`,
`isRemoteSshWorkspaceFileOpenTarget`), `RootComposeRoute` (routes
register through `SplitWorkspaceRoute` in `App.tsx`;
`LegacyProjectComposeRedirect` is still live and stays),
`reconcileLayoutForRoute`, `focusedThreadRoute`,
`resolveThreadLocalWorkspaceRootPath`, `CreateViaPromptExamples`
- **apps/host-daemon**: `resolveLocalBbExecutableDirectory` (5-line
`dirname` wrapper; its 4 tests covered real entry-path validation and
were retargeted to `resolveLocalBbExecutablePath`)
- **apps/server**: `assertPrimaryHostId` (+ private
`unsupportedHostError`), `directoryExists`, `swapDirIntoPlace`
(superseded by the durable-promote path in the same file),
`getTurnExecutionOptions`
- **packages/db**: `listTrackedThreadStorageTargetsOnHost`
- **packages/domain**: `ALL_REASONING_EFFORTS`,
`threadProvisioningReasonSchema`, `turnLifecycleEventDataSchema`
- **packages/host-daemon-contract**:
`hostDaemonRetryableOnlineRpcCommandSchema` (+ its private union builder
and descriptor filter). Runtime-value only; the
`HostDaemonRetryableOnlineRpcCommand` *type* used by `online-rpc.ts` is
untouched, nothing on the wire changes, so no
`HOST_DAEMON_PROTOCOL_VERSION` bump.
- **packages/host-workspace**: `decodeGitQuotedPath`
- **packages/server-contract**: `environmentActionTypeSchema`,
`domainErrorCodeSchema`, and the three alias-shim consts
`hostPathsExistResponseSchema`, `hostPickFolderResponseSchema`,
`hostProviderCliStatusResponseSchema` (their type aliases are still
consumed and stay)

## 5. `BB_CLI_ENV` definition orphan

`packages/config/src/env-vars.ts` defined `BB_CLI_ENV` but nothing
imported it — all four call sites (`bb-cli-reexec.ts`,
`runtime-shell-env.ts`, tests) read/write `env.BB_CLI` directly, and
`defineEnvVar` has no global registry, so the definition served nothing.
Deleted the definition only; call sites untouched.

## 6. `.gitattributes`

Marked the committed generated artifacts as `linguist-generated` so they
collapse in review diffs:
- `packages/plugin-sdk/bundled-types/**`
- `packages/templates/src/generated/**`

## Deliberately NOT deleted

- **`packages/shared-ui/src/components/ui/**` + Radix deps** —
intentional scaffold library, owner said keep (audit's largest line
item, excluded by instruction).
- **`packages/agent-runtime/**`** — a separate in-flight PR owns
dead-code removal there (`./capture` subpath,
`resolveAdapterPermissionPolicy`, test-harness exports).
- **All `.stories.tsx` exports** — Storybook collects named exports by
convention; they are framework-reachable, not dead.
- **Test seams**: `__testing` (`apps/host-daemon/src/provider-usage.ts`)
and `getPromptDecorationSet` (prompt-decoration extension) — exported
only for their own tests, which verify live production behavior through
them.
- **`createBBSdk`** (`packages/bb-app/src/public-sdk.ts`) — a
`package.json` exports entry point of the published `bb-app` package;
external consumers are invisible to repo-wide grep.
- **`createMachineCodeFn`** (`apps/web/src/server/fns.ts`) — unused
TanStack server fn, but the file was touched yesterday by the Cloud
dev-workflow PR (#1168); plausibly in-flight, left alone.
- **`CLOUD_PAT_PREFIX`** (`packages/connect-db/src/constants.ts`) —
unreferenced, but it is a documented policy constant ("token prefixes
mirror bb's host-key convention") in a deliberate policy-constants file;
ambiguous scaffold, left alone.
- **Exported-but-internally-used symbols** (e.g. the
`workspaceOpenTargetPreferenceAtom` atoms, storage-key consts) —
de-exporting them deletes no lines; skipped to keep the diff pure
deletion.
- **Anything in `plugin-build/src/runtime-export-manifest.ts`** — the
plugin runtime ABI was checked before every deletion; no deleted symbol
appears in it.

## Verification

- `pnpm exec turbo run typecheck` — all 58 tasks pass.
- `pnpm exec turbo run test` for every touched package — all pass:
`@bb/app` 2529, `@bb/server` 1436, `@bb/host-daemon` 541, `@bb/db` 379,
`@bb/host-workspace` 194, `@bb/domain` 128, `@bb/config` 106,
`@bb/host-daemon-contract` 49, `@bb/server-contract` 42 tests. (One
guardrail test, `cache-owner-registry.test.ts`, correctly flagged a
stale allowlist entry for the deleted `seedSystemExecutionOptionsCache`
import; the entry was removed.)
- No `package.json` dependencies were removed, so the lockfile is
unchanged.

> AGENT GENERATED: by Claude Fable 5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5 <[email protected]>
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## Summary

Audited all 99 checked-in Markdown files against the code, then removed
the plans whose work shipped and corrected the docs that no longer
matched the tree.

**Deleted — 13 plans and design docs for shipped work**

| File | Why |
| --- | --- |
| `plans/tools-hub-plugin-detail-handoff.md` | PR get-bb#888 merged
2026-08-02; the doc still said "do not merge" |
| `plans/bb-connect-v1.md` | `bb connect` shipped |
| `plans/bb-connect-architecture.html` | Architecture plan for shipped
connect |
| `plans/hosted-bb-architecture.html` | The connect plan said to delete
it once the work landed |
| `plans/multi-machine-v1.html` | `bb machine` and the pair dialogs
shipped |
| `plans/secret-request-plugin-and-pending-interaction-api.md` |
`plugins/secrets` shipped |
| `plans/plugin-system-design.md` | The plugin system shipped |
| `plans/notes-plugin-api-spec.html` | The Docs plugin API shipped |
| `plans/askuserquestion-option-preview.md` | The server now offers the
`preview` option field |
| `plans/loops-skills-redesign-build.md` | Its own status said all
stages built; `host.write_skill` shipped |
| `docs/t3sidebar-plugin-plan.md` | `plugins/t3sidebar` shipped |
| `artifacts/simple-notes-implementation-plan.md` | The Docs plugin
shipped |
| `artifacts/simple-notes-ui-mocks.html` | Mocks for the same shipped
plugin |

Four source comments pointed at the deleted connect plan
(`packages/tunnel-contract`, `packages/connect-db` x2,
`apps/connect/scripts/spike-client.mts`). Those pointers are gone; the
comments still say what they said.

`plans/` now holds only open work.

**Updated — 6 files**

- `docs/plugin-sidebar-thread-list.md` — said "Nothing here is
implemented yet", but all five `experimental_*` members ship in
`@bb/plugin-sdk`. Status corrected; the dead link to the deleted plan
now points at `plugins/t3sidebar`.
- `plans/plugin-system-qa-catalog.md` — setup told you to enable
"Settings → Experiments → Plugins"; the experiment is now Extensions
(`toolsHub`). Added a rename table for `marketplace/plugins/github` →
`official-plugins/github` and the deleted `small-ux-pack` and `linear`
examples.
- `plans/bb-settings.md` — the `bb settings` group shipped with a
different shape, so the phases are now scoped to the remaining
browser-link work. `AppSettingsView.tsx` → `SettingsView.tsx`.
- `plans/bb-browser.md`,
`plans/in-app-browser-open-behavior-improvements.md` — dropped the link
to `plans/bb-terminal.md`, which never existed; both now state "not
started" with evidence.
- `plans/composer-extraction.md` — premise moved: side chat uses
`EmbeddedThreadChat` now, so two hand-rolled sites remain, not three,
and the 4th caller never landed.
- `qa/missed-invariants.md` — named `composer-cache-owner.test.ts` as
the guard; that test went away with the composer cache owner in
`32197c2e7` (get-bb#335).

## Tests

Docs only, plus four comment lines. No behavior change, so no test run.
Verified instead by scanning every Markdown link and every repo path
referenced in `docs/`, `plans/`, `qa/`, and `artifacts/`: no broken link
and no dangling plan reference remain.

## Risks

Low. The deleted plans stay recoverable in git history.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
## What

AGENTS.md says to write only tests that verify where bugs are possible.
This PR sweeps every test file against that rule and deletes the tests
that fail it.

Scope: all 888 test files, 7,910 test cases, 314,511 lines.

Result: **14 tests deleted across 11 files. 366 lines removed, 1 line
added** (an import rewrite). 888 → 886 files. 7,910 → 7,897 cases.

## How candidates were chosen

Two passes, both adversarial:

1. **Mutation check.** For every candidate, an agent opened the source
file under test, proposed realistic one-line bugs (inverted condition,
dropped `await`, swapped arguments, off-by-one, removed field, early
return), and had to show that none of them turn the test red. Any test
that caught a mutation stayed.
2. **Skeptic pass.** An independent agent then tried to *save* every
flagged test, with instructions to default to KEEP. It rejected 24 of
the 38 flags.

Contract tests, migration tests, permission and parsing tests, error
paths, and sole-coverage tests were out of scope by rule. Each of the 14
survivors was then re-verified by hand against the real source.

## What was deleted

| Test | File | Why |
|---|---|---|
| `gives every %s example a semantic launcher icon` |
`apps/app/src/components/create-via-prompt-examples.test.ts` | `icon` is
typed `IconName` on a static config and only field-copied. `icon.length
> 0` is type-guaranteed. |
| `does not render argument hint placeholders…` |
`…/promptbox/editor/prompt-editor-serialization.test.ts` | Calls a
`return null` stub whose declared return type is the literal `null`,
with zero production callers. |
| `environment_not_ready destroyed cleanup` |
`apps/app/src/lib/lifecycle-errors.test.ts` | Byte-identical to the case
above it. Only the `name` string differs. |
| *whole file* — `Tools Hub public export contracts` |
`apps/app/src/views/tools-public-exports.test.ts` | AST export-name
snapshot. No behavior change can fail it. Real removals are caught by
typecheck. |
| `is stable for identical inputs` |
`apps/server/test/services/threads/timeline-cache.test.ts` | Pure
template-join key builder. No realistic mutation fails it while the two
sibling tests stay green. |
| `is false for a root thread with no parent` |
`apps/server/test/threads/thread-parent.test.ts` | Byte-for-byte
duplicate of the preceding test. |
| `pushInput queues messages before start` |
`…/claude-code/bridge/__tests__/sdk-session.test.ts` | Zero assertions.
Dominated by the rejection test 25 lines below. |
| `renames a thread`, `stops a thread`, `steers an active turn` |
`packages/agent-runtime/src/runtime.lifecycle.test.ts` | Zero
assertions. Verified by injecting throws: each mutation reddened
asserting twins elsewhere, never these. |
| `has correct process config`, `uses the configured bridge bundle
directory…` | `packages/agent-runtime/src/pi/adapter.test.ts` | Same
assertions on the same path as `provider-registry.test.ts`, which
asserts strictly more. |
| *describe block* — `server-to-daemon watch payload sizes` |
`packages/host-daemon-contract/test/payload-size.test.ts` | Imports no
source. Measures gzip bytes of a hand-rolled untyped literal. Schema
coverage is in `contract.test.ts`. |
| *whole file* — `real provider registry integration` |
`tests/integration/real/provider-registry.test.ts` | Same setup as
`provider-turns.test.ts` with a strict subset of its assertions. Also
saves a real-provider CI run. |

The sibling `daemon-to-server` block in `payload-size.test.ts` was kept:
it asserts that grouping shrinks the payload, which is a real invariant.

## Tests

- `turbo run typecheck` passes for `@bb/app`, `@bb/server`,
`@bb/agent-runtime`, `@bb/host-daemon-contract`,
`@bb/integration-tests`.
- `turbo run test` passes for `@bb/app` (307 files), `@bb/agent-runtime`
(41), `@bb/host-daemon-contract` (3).
- `@bb/server` passes 152 of 153 files. `internal-skill-trees.test.ts`
fails identically at HEAD on the dev machine, because `umask 0002` gives
file mode `0664` where the test expects `0644`. It is unrelated to this
change.
- The real-provider integration suite was not run locally. It needs live
provider credentials.

## Risk

Low. The change deletes test code only. No source file is touched.

One judgment call to flag: `tools-public-exports.test.ts` was created
deliberately as a frozen export surface. It matched the
implementation-mirror category exactly, so it was deleted. Its
documentation reference in `plans/tools-hub-plugin-detail-handoff.md`
disappeared with get-bb#958, so no stale pointer remains.

## Follow-up

`promptMentionArgumentHintPlaceholder` in `prompt-mention-extension.ts`
is now unreferenced. Removing the function is a separate change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant