Repository navigation
Description
What happens
bb memory update <id> --summary "..." --details-file <path> applies the summary, silently discards --details-file, prints Updated mem_... to v4 and exits 0. The record is left with a corrected summary over stale details.
This is not specific to that flag. The memory plugin's parser never rejects an unknown option at all.
bb memory add --name n --summary s --details d --reason r --zzz-nonsense zzzval
-> rc=0, record saved, flag ignored
Scope — measured on bb 0.39.0, macOS, 2026-08-22
Probe is --zzz-nonsense zzzval. Every arm carries a control: the bare command must exit 0 first, or the arm is reported UNKNOWN. Write verbs were probed against nonexistent ids, with tasks as the ordering control — its parse rejection pre-empts the not-found lookup, which is what makes the technique valid.
| surface | verbs probed | unknown flag |
|---|---|---|
| core bb (commander) | status, thread list, plugin list, thread tell |
rejects — error: unknown option '--x' |
| builtin tasks | show, list, update, comment |
rejects |
| builtin workflows | list, stop |
rejects |
| builtin github | repos, issues |
errors, but for the wrong reason (Unexpected argument "zzzval") |
| builtin keep-awake | status |
errors, prints usage |
| builtin memory | search, get, catalog, add, update, forget |
silent — accepts, drops, rc=0 |
| builtin automations | list, show, update, pause |
silent |
| builtin custom-instructions | get, set |
silent; set swallows the flag into its variadic positional as data |
| builtin provider-retry | status |
silent |
So core bb is strict and 4 of 9 builtin plugins are not.
Mechanism, read from the shipped bundles
builtin-plugins/memory/dist/server.js — parseArgv collects every --x into a map; option() and requireOption() only ever pull the names a verb knows about. Nothing asks what was left unread.
builtin-plugins/tasks/dist/server.js is the same lineage — same CliError, same option/requireOption — plus assertAllowed(args, allowedOptions, allowedFlags) at 29 call sites. That is why tasks rejects and memory does not.
If that reading is right, the fix is porting one small function one directory over. We have not read your source tree, only the bundles as shipped, so treat the mechanism as our best inference and the table as the measurement.
Why it is worth fixing rather than documenting
The failure is a silent partial write, and every guard in the path behaves correctly while it happens:
--expected-versionis a concurrency guard. The version was correct.- The write did succeed.
- A length-comparison guard cannot see it — the details did not shrink, they did not change at all.
It also looks like success in the two places an operator checks: exit code 0, and a version bump.
One consequence we can measure locally: a record's summary claimed something its details did not contain, for two hours, before anyone noticed. Another thread had already repaired a different record the same way, unprompted, and the author never learned.
A smaller, related gap
bb tasks has --description-file (create, update) and --body-file (comment). bb memory has no *-file flags at all — grep -oE '"[a-z][a-z-]*-file"' over each bundle returns two for tasks and nothing for memory. Passing prose through argv is separately awkward when it contains backticks or $(...), which is why callers reach for a file flag and then get the behaviour above.
This is secondary. Rejecting unknown flags is the fix that matters — with it, the missing flag becomes a loud error instead of a quiet one.
Not verified
Any bb other than 0.39.0; plugins outside the table; whether the same parser backs other builtins we did not probe. Happy to run further probes or test a patch.
Activity
SawyerHood commentedon Aug 24, 2026
---Auto-Generated---
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2299.html
The report is self-contained: copy-paste repro steps with the test or script inline, expected vs actual output, screenshots where the bug is visual, and code permalinks at the base commit. It was independently re-executed by a second agent (see its Verification section).
ryanbbrown commentedon Aug 28, 2026
Current nested-help behavior adds related evidence for the same builtin plugin CLI parser boundary:
bb memory update --helpexits 1 withupdate requires a memory id, andbb docs status --helpexits 2 instead of showing registered usage. The automation-specific mutation risk already has its own exact issue, #2323.This issue is the right owner for silently ignored unknown flags. #2621 covers the related but separate Memory/Docs help failures and hidden core-command limits, so it is not a duplicate of the silent-write defect here.
ymichael commentedon Oct 8, 2026
Fixed by #3913: builtin plugin CLIs now go through the shared parser and reject unknown flags with exit code 1.