Repository navigation
Gate new onboarding behind an experiment - #1108
Conversation
|
🚨 SLOP COP 🚨 · I am SlopCop. I am reviewing this stack under the The stack contains one pull request:
I did not skip a pull request. I will run security, code quality, architecture, and performance checks in parallel. I will test #1108 once. |
|
🚨 SLOP COP 🚨 · Performance review complete. I found no performance defect. The gate stops provider CLI checks when onboarding stays off. The database still uses one primary-key lookup on a one-row table. |
|
🚨 SLOP COP 🚨 · Security review complete. I found no security defect. The PR adds one validated Boolean and no new route, capability, or trust boundary. The experiment does not cross the server and host daemon wire. |
|
🚨 SLOP COP 🚨 · Code and architecture review complete. I found no correctness defect. The focused app, server, CLI, database, domain, and generated-file checks passed. I left one low-severity inline comment about hidden CLI output. The architecture scan found no duplicate onboarding gate. It found repeated experiment key lists and unstable generated declaration order. These are separate maintenance refactors. |
|
🚨 SLOP COP 🚨 · End-to-end browser test complete on With The test passed. I stopped the dev server. |
SawyerHood
left a comment
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
Review complete for the one-PR stack: #1108.
I found no blocking issue.
- Security: no new capability, route, trust boundary, or sensitive-data exposure.
- Code quality: no correctness defect. One low-severity inline comment asks the CLI to report its experiment change.
- Architecture: no duplicate onboarding gate. Repeated experiment key lists remain minor maintenance debt.
- Performance: no regression. The default-off gate removes provider CLI checks from normal startup.
- End-to-end: passed on
4cbf64e. The dialog stayed closed when disabled, opened after the Settings toggle, and closed after live disable. - Validation: focused app, server, CLI, database, domain, migration, type, lint, and generated-file checks passed.
I used a comment-only review. I did not approve or request changes.
4cbf64e to
7be87ca
Compare
## Summary - Derive `pluginCount`, `includedPluginCount`, and `optionalPluginCount` in `plugin-catalog-routes.test.ts` from the bundled plugin registry instead of hardcoding `13 / 8 / 5`. ## Why CI is red on `main`. Commit f13c2d3 ("Move T3 sidebar plugin to examples", #1109) removed `t3sidebar` from `OFFICIAL_PLUGINS`, so the bundled catalog went from 13 plugins to 12. That PR updated `plugin-catalog-service.test.ts`, which derives its counts from the registry, but it missed the route test, which hardcoded the numbers. ``` AssertionError: expected { catalog: { pluginCount: 12, ... } } to match object { catalog: { pluginCount: 13, ... } } ``` #1109 landed without a green run: its own CI run (31186905645) was cancelled when #1108 pushed on top of it. The route test now uses the same source of truth as the service test, so a future plugin add or remove will not break it again. ## Tests - `pnpm exec turbo run test --filter=@bb/server -- plugin-catalog` — 7 passed. - `pnpm exec turbo run test --filter=@bb/server` — 1336 passed. One unrelated local-only failure in `internal-skill-trees.test.ts`, which asserts file mode `0o644` but writes the file with no explicit `chmod`. It follows the umask, so it fails under umask `0002` and passes on CI runners under `0022`. - `pnpm exec turbo run typecheck --filter=@bb/server` — pass. - CI run 31187487485 on `main`: `Tests (server)` was the only failing job. All other jobs passed. ## Risk Test-only change. No product code is touched. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
## Summary - add a default-off newOnboarding experiment with persisted database support - gate the onboarding flow and provider checks on the experiment - expose the experiment through Settings and the bb CLI - keep replay-onboarding useful by enabling the experiment before replay - update generated contracts, guides, and migration rewind coverage ## Tests - type checks passed for app, CLI, database, desktop, domain, plugin SDK, server, and templates - 47 focused tests passed across app, CLI, database, domain, and server
## Summary - Derive `pluginCount`, `includedPluginCount`, and `optionalPluginCount` in `plugin-catalog-routes.test.ts` from the bundled plugin registry instead of hardcoding `13 / 8 / 5`. ## Why CI is red on `main`. Commit f13c2d3 ("Move T3 sidebar plugin to examples", get-bb#1109) removed `t3sidebar` from `OFFICIAL_PLUGINS`, so the bundled catalog went from 13 plugins to 12. That PR updated `plugin-catalog-service.test.ts`, which derives its counts from the registry, but it missed the route test, which hardcoded the numbers. ``` AssertionError: expected { catalog: { pluginCount: 12, ... } } to match object { catalog: { pluginCount: 13, ... } } ``` get-bb#1109 landed without a green run: its own CI run (31186905645) was cancelled when get-bb#1108 pushed on top of it. The route test now uses the same source of truth as the service test, so a future plugin add or remove will not break it again. ## Tests - `pnpm exec turbo run test --filter=@bb/server -- plugin-catalog` — 7 passed. - `pnpm exec turbo run test --filter=@bb/server` — 1336 passed. One unrelated local-only failure in `internal-skill-trees.test.ts`, which asserts file mode `0o644` but writes the file with no explicit `chmod`. It follows the umask, so it fails under umask `0002` and passes on CI runners under `0022`. - `pnpm exec turbo run typecheck --filter=@bb/server` — pass. - CI run 31187487485 on `main`: `Tests (server)` was the only failing job. All other jobs passed. ## Risk Test-only change. No product code is touched. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
Tests