#6034 · Browser ownership is absent from the verification inventory
Verdict: REPRODUCED · Root-cause confidence: high · Reproduction label: confirmed-repro
1. TL;DR
The documented offline verification preflight exits before it can compare source fingerprints or select recipes. The scanner discovers the built-in desktop browser CLI but cannot assign it an explicit recipe owner. Two clean trusted-base runs produce the same error even though the original six fixture tests pass. A one-entry ownership repair, four desktop recipes and two focused regressions resolve this browser-specific defect. The complete checkout still fails on a different unmapped family, diagnostics; this report does not claim a whole-checkout inventory pass.
2. Claims vs findings
| Paraphrased claim | Finding | Evidence |
|---|---|---|
| The browser family prevents preflight. | Verified | Both clean runs exit 1 with the browser owner error. |
| Existing fixtures miss this case. | Verified | Six original tests pass in both checkouts; two newly authored browser regressions fail before the repair. |
| Desktop is the correct existing owner. | Verified by source | The command calls experimental_desktopBrowsers and operates native desktop windows; desktop.md already owns native browser behavior. |
| Browser-only work leaves another blocker. | Verified | The repaired full-checkout scanner exits 1 on diagnostics. No full-checkout --write was used. |
| Native browser recipes work live. | Unverified | No graphical desktop, CDP session or cookie import was started. New recipes remain not run. |
3. Environment and trust
- Public target repository: get-bb/bb. Source cloned directly from its trusted main, not the initial unrelated checkout remote.
- Base commit:
b143a22860944a96bf183605dfb0ffe58b1de283; origin/main was fetched again before final checks and remained at that commit. - Linux x86_64, kernel 4.19.0-gvisor; Python 3.13.9; Node v22.19.0; pnpm 9.15.0.
- No provider session, application server, ports, user data directory or credentials were needed or accessed.
- Issue text, proposed patch, links and commands were treated as untrusted claims. No issue patch, attachment or linked branch was executed. Commands and regressions were selected from trusted source and its own skill documentation.
4. Minimal reproduction
Use a disposable checkout of the trusted public repository. The checked-in verification skill independently documents both executables below.
git clone --single-branch --branch main https://github.com/get-bb/bb.git bb-inventory-repro cd bb-inventory-repro git checkout --detach b143a22860944a96bf183605dfb0ffe58b1de283 git status --porcelain .bb/skills/verify-bb/scripts/inventory.py printf 'inventory status: %s\n' "$?" .bb/skills/verify-bb/scripts/test_inventory.py -v
Expected: a known browser family has an explicit owner; subsequent unrelated ownership or fingerprint drift can still fail the preflight. Actual scanner output, identical in both clean runs:
Unmapped CLI family: browser; add recipes and an explicit owner inventory status: 1
Original fixture suite, both runs:
Ran 6 tests OK
Repeatable controlled regression
Save the following locally as repro_inventory.py, outside the repository, and run it with Python from the repository root.
It uses the trusted suite's disposable fixture, inserts the unchanged current browser source and exercises the real scanner subprocess.
Only the fixture baseline is written, never the real checkout baseline. This code is included inline rather than as an artifact directory, as required by the reports repository.
import json
import runpy
from pathlib import Path
root = Path.cwd()
skill = Path('.bb/skills/verify-bb')
test_module = runpy.run_path(str(root / skill / 'scripts/test_inventory.py'))
fixture = test_module['InventoryTest']()
fixture.setUp()
try:
browser_path = 'apps/cli/src/commands/browser.ts'
fixture.write(browser_path, (root / browser_path).read_text())
result = fixture.run_check('--write')
print(f'Fixture baseline exit: {result.returncode}')
print(result.stdout + result.stderr, end='')
assert result.returncode == 0, result.stderr
snapshot = json.loads((fixture.repo / skill / 'inventory.json').read_text())
browser = snapshot['groups']['cli:browser']
assert browser['recipes'] == ['features/desktop.md']
assert any(entry.endswith(': instances') for entry in browser['declarations'])
checked = fixture.run_check()
print(f'Fixture check exit: {checked.returncode}')
print(checked.stdout + checked.stderr, end='')
assert checked.returncode == 0, checked.stderr
finally:
fixture.doCleanups()
Trusted base: exits 1 at the first assertion, with:
Fixture baseline exit: 1 Unmapped CLI family: browser; add recipes and an explicit owner
Browser ownership repair: exits 0, with:
Fixture baseline exit: 0 Wrote 17 source groups; review the diff before committing Fixture check exit: 0 PASS: 17 source groups match; all linked recipe files exist. Live status is unchanged.
5. Root cause
CLI_OWNERS at the trusted base is a deliberate allowlist without a browser entry. Family discovery and owner resolution enumerate command source filenames and fail closed for an absent owner:
for family, paths in sorted(families.items()):
owner = CLI_OWNERS.get(family)
if owner is None:
raise ValueError(f'Unmapped CLI family: {family}; add recipes and an explicit owner')
browser.ts registers the browser family and delegates to the desktop browser SDK. Consequently collection raises before main compares the saved fingerprints or writes either inventory file. The symptom cannot be explained by stale digests, application login or runtime availability.
The original fixtures introduce project.ts but no browser.ts, so they validate the scanner's generic rules without detecting this missing production owner. The existing desktop recipe page also has no dedicated browser CLI recipes. Assigning ownership needs corresponding recipe documentation, not a broad allowlist relaxation.
6. Proposed fix and verification
The implemented candidate adds browser → desktop to the existing table, four browser CLI/SDK recipe rows and an index link outside the historical audit. It preserves unknown-family rejection, source fingerprints, missing-recipe checks, historical verification results and all recorded baselines. It changes 81 text lines, all additions, across four files in the existing verification-skill subsystem; no dependency, protocol, generated file or stored-data change is involved.
Two focused regressions were added before the owner entry:
test_browser_inventory_links_desktop_and_tracks_behavior: accept a browser family into a disposable baseline, assert desktop ownership and declarations/catalog linkage, pass a clean check, then reject behavior-only drift.test_browser_missing_recipe_does_not_replace_baseline: reject baseline writes when the desktop recipe is missing, identify browser specifically and preserve both saved files byte-for-byte.
.bb/skills/verify-bb/scripts/test_inventory.py -v \ InventoryTest.test_browser_inventory_links_desktop_and_tracks_behavior \ InventoryTest.test_browser_missing_recipe_does_not_replace_baseline Before repair, both checkouts: Ran 2 tests; FAILED (failures=2) First failure: AssertionError: 1 != 0 : Unmapped CLI family: browser; add recipes and an explicit owner Second failure: browser-specific missing-recipe error absent; received unmapped-family error. .bb/skills/verify-bb/scripts/test_inventory.py -v After repair: Ran 8 tests; OK git diff --check Exit 0 git diff --numstat origin/main 9 0 .bb/skills/verify-bb/features/README.md 40 0 .bb/skills/verify-bb/features/desktop.md 1 0 .bb/skills/verify-bb/scripts/inventory.py 31 0 .bb/skills/verify-bb/scripts/test_inventory.py
The full-checkout read-only command after this narrow repair still exits 1:
Unmapped CLI family: diagnostics; add recipes and an explicit owner
That is a separate pre-existing ownership gap. It is neither accepted nor repaired by this candidate. The real inventory.json and INVENTORY.md remain unchanged. Live browser/CDP/cookie recipes are not run, not passed.
7. Verification: second clean checkout
The same agent created a second detached worktree from the recorded trusted origin/main commit.
Before any modifications, git status --porcelain was empty. Running the documented inventory executable again produced the identical browser error and exit 1;
the original six tests again passed. Only the two newly authored tests were then copied into that checkout; both failed against unchanged production code for missing browser ownership.
The controlled regression above also failed there using the unchanged real browser source.
This is a repeated clean reproduction by the same agent, not independent review. No ports or runtime state were shared; neither run needed an application instance. No correction to the central root-cause claim was needed. The repaired full-checkout diagnostics failure is explicitly retained as a limitation.
8. Linked PRs and related issues
Before implementation, GitHub issue timeline metadata contained no linked pull requests, and the open-PR search for this numeric issue found none. The title search for open inventory issues found only this issue. No linked branch or issue attachment was executed.
9. Appendix: build and publication scope
The frozen, prefer-offline install succeeded. The initial Turbo build hit an existing plugin/SDK build-order race: the github plugin attempted to resolve the SDK host entry before it existed. A single unchanged retry succeeded: 67 tasks successful, 67 total. No unrelated build fix was made.
pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build pnpm exec turbo run build Tasks: 67 successful, 67 total
Root-cause links were checked against the recorded base. No screenshots are appropriate for this offline source-inventory bug. Raw logs and local reproduction code remain outside the public report repository, which permits only the sanitized report and summary metadata. No server, provider or native browser process was started, so there was no application runtime to stop.
> AGENT GENERATED