Repository navigation
feat(bob-plugin): add the bob-ultrahigh preset (replaces lossless-defer) - #973
Conversation
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | fresh | 1 of 2 | 1 of 2 | 79170129a980 |
blocking |
Verdict: blocking
The Go core changes and the new lossless-defer preset are correct. I found no defect in them. The 3 findings are in the Bob plugin's Python and shell code (from #968, which is in this PR's diff). Each one can break a working install on a real user's machine.
Findings
-
bob-plugin/context-guru/scripts/bob_plugin.py:244 — calls to 127.0.0.1 go through the user's HTTP proxy.
- What fails: the user has
HTTP_PROXY/http_proxyset, with noNO_PROXYentry for 127.0.0.1. This is common on corporate Macs. Thenurllib.request.urlopensends each local call to the corporate proxy:healthy()returns False when the proxy runs.setuprolls back withstart_failed.- The
checkhook tells the model on every prompt that the proxy is down. That is a false alarm. - The
signalhook (line 1337) sends the Bob session id to the corporate proxy. That is data going off the machine. statusanddoctorreportproxy=fail.tool_defer_stats(line 1210) andlast_bob_request_ms(line 1203) fail too.
- Proof: lines 244, 1203, 1210 and 1337 all use bare
urllib.request.urlopen. Python's default opener readsHTTP_PROXYand does not skip loopback by itself. A test run against a local server that answers 200: no proxy env givesTrue;HTTP_PROXY=http://127.0.0.1:9givesFalse; addingNO_PROXY=127.0.0.1givesTrue. - Fix: build one opener with
urllib.request.build_opener(urllib.request.ProxyHandler({})). Use it for every 127.0.0.1 call. Add a test withHTTP_PROXYset.
- What fails: the user has
-
bob-plugin/context-guru/scripts/bob_route.py:49 — the rc block fails under
nounset, and zsh then stops reading.zshrc.- What fails: the block reads
"$VSCODE_RESOLVING_ENVIRONMENT"and"$__CFBundleIdentifier"with no default. A user withsetopt nounset(orset -u) gets an error on that line. zsh stops sourcing.zshrcthere. SoBOB_GATEWAY_URLis not set, and every line after our block does not run. Tools that append to.zshrclater (conda, nvm) put their lines after our block, so they also stop running, in every terminal, with no clear cause. - Proof: a
.zshrcwithsetopt nounset, thenblock(8891), thenecho AFTER.zsh -l -i -c ...prints.zshrc:5: VSCODE_RESOLVING_ENVIRONMENT: parameter not set. It does not printAFTER, andBOB_GATEWAY_URLis unset. Interactive bash prints the error and continues. - Fix: use
"${VSCODE_RESOLVING_ENVIRONMENT:-}"and"${__CFBundleIdentifier:-}". Change the matching perl regex inreset.sh:102and the README text. Accept the old block form inownership()and inreset.sh, so installed blocks can still be removed or upgraded. Add a test withnounset.
- What fails: the block reads
-
bob-plugin/context-guru/scripts/reset.sh:243 — reset deletes the proxy config without checking that it is ours.
- What fails: the user replaced
bob-<port>.yamlwith their own config (no marker line).reset.shrunsrm -f "$STATE_DIR/bob-$PORT.yaml"and deletes it.uninstall(bob_plugin.py:1398) deletes the same file only when it starts withCONFIG_MARKER. The two removal paths disagree, and the reset path loses a user file. - Proof: reset.sh:243 has no marker check. bob_plugin.py:1398:
if config.exists() and config.read_text().startswith(CONFIG_MARKER): config.unlink(). - Fix: delete only when
head -n1of the file equals the marker line. Add a test that reset keeps a config without the marker.
- What fails: the user replaced
Non-blocking
components/reformat/toolfilter.go:34still says "Only theultrahighpreset setsauto".lossless-defersets it too.bob-plugin/context-guru/README.md:37says the proxy runs onlyformat,toonandcachesplit. Withlossless-deferit also runstoolfilter.skills/setup/SKILL.mdsays "forresult=*_failed, showreason=anddetail=".start_failedprints neither.setup_failedandbinary_install_failedprint noreason=.skills/status/SKILL.mddoes not coverresult=setup_incomplete(bob_plugin.py:1266).bob_plugin.py:613reuses the recorded port with no check that it is free. After apartly_removeduninstall, another program can hold that port, and setup fails withstart_failedand no reason. I found this by reading the code only. I did not reproduce it.bob-plugin/statusbar_test.go:18: thenpmlookup skips before theCIcheck. A CI runner without npm skips the status bar suite in silence. The comment at line 25 says a skip in CI looks like a pass.statusbar/src/model.ts:5:BOB_WINDOW = 270_000. The Go side usesBobFallbackWindow = 200_000(internal/compactionpoint/bobcodex.go:51). The bar also ignoreswindow_exact, so it shows a guessed window as exact. Pick one fallback.statusbar/src/model.ts:151: the clock and prefix size come from the session's top-level fields, which follow the newest request of any thread. The Claude status line uses themainthread on purpose (_main_cs). If Bob sends subagent threads, the bar shows the wrong thread. I did not check that Bob does.statusbar: "saved N tok" is the gross count (dash/query.go:690). The dashboard labels it gross and also showssaved_unique.- Known gap (stated in the PR, pinned by a test): on Bob, a direct call to a held-back tool is not detected. I agree that a fix needs a human's decision.
What I checked
- The full diff
354fcb32..HEAD, all 7 commits. This PR is stacked on #967 and #968, so I reviewed their code too. session.Explicithost ids: the host ids go after the header and the metadata fields.ExplicitStrictpasses none. Unsafe, too long and empty ids fall back (TestExplicitHostIDsComeLast).explicitSessionOf: onlybobModelPathreadsX-Task-Id. Every place on the chat path that works out a session id uses it: the pipeline (Opts.Session), the expand repair, the observe-mode billed-input record (serve line 1989), andnewRecCtx./compactand/expandread onlyx-context-guru-session. That is unchanged and correct, because they are not Bob routes.aliasandgraceAliasIDwith anX-Task-Idsession:ExplicitSession(o.Session, body)is not empty, so the alias is the content hash. This matches the dashcaptureAliasFn(empty explicit id). The cold clocks keep their keys.bobUsage: it runs only whenup.path == bobModelPath, on the JSON path and on both stream paths (streamRecOn). Each bad field returnsbase(fail open). Fresh = prompt − read − write, and it rejects a write larger than the prompt. Real cold and warm blocks are tested.providerusage.Parseis unchanged.lossless-defer:proxy/testdata/bob_lossless_defer.yamlandBOB_PRESETShold the same text (test_bob_control.py:105). ThetoolfilterYAML keysdeferandkeepexist. Bob's route is OpenAI chat, soapplyClientSearch→ApplySearchruns.premium-ideis not an Anthropic model, so it does not take theanthropicexit. The streamed search splice, the 400 retry with the original, andGate.Broken(24 h) cover the fail-open path.- The
/statsfield names the plugin reads (requests,ledger.deferred_tokens,add_backs,wrong_guesses,turned_off,client_search_disabled.break) all exist indeferStats. The plugin ignores a/statserror instatusanddoctor. bobdefer_test.go: all 7 tests. The history test builds 3 sessions from real requests and needsX-Task-Idto tell them apart.docs/data-dependence.md: thetoolfilter, billed-token, session tracker and Bob plugin rows are updated. The storage levels do not change.- The fixture
bob_tools.jsonhas no user content. The only path is the stand-in/Users/dev/projects/my-app. - I used two helper agents to read every line of the Python plugin (bob_plugin.py, bob_route.py, bob_hooks.py, reset.sh, skills, README) and of the status bar (src, test, package.json, lockfile scripts). I checked their 3 strongest findings against the code myself. The Python helper ran the plugin suite under a temp HOME: 174 tests OK. It also ran the
HTTP_PROXYandnounsetreproductions above. I did not run Go builds or Go tests (not approved).
7917012 to
6b85874
Compare
Round 1: repliesReviewer 1 found 3 real bugs. All 3 are in plugin code that #968 adds, so I fixed them in #968 ( R1-1: calls to 127.0.0.1 go through the user's HTTP proxy. Confirmed, and fixed.
R1-2: the rc block fails under
R1-3:
Non-blocking, fixed here:
Non-blocking, no change in this PR:
|
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 1 of 2 | 2 of 2 | 86596caa4ef8 |
approve |
Verdict: approve
All 3 round-1 findings are fixed, and each fix has a test. The 4 new commits add no new defect. The Python plugin suite passes: 185 tests, OK.
Findings
None.
Round-1 findings
- R1-1, local calls go through
HTTP_PROXY: fixed.bob_plugin.py:245builds oneLOOPBACKopener withProxyHandler({}).- It is used for
healthz(line 250), the newest Bob request (1209),/stats(1216) and thesignalhook (1343). - Only the 2 GitHub downloads (339, 347) still use
urlopen. That is correct: they may need the user's proxy. bob_hooks.pymakes no HTTP call of its own, so nothing is missed there.LoopbackNeverUsesTheUserProxyTestsetsHTTP_PROXYto a fake proxy that records every request, and checks that nothing reaches it. A source check makes sure no line with127.0.0.1usesurlopen.
- R1-2, rc block under
nounset: fixed.- The block uses
${VSCODE_RESOLVING_ENVIRONMENT:-}and${__CFBundleIdentifier:-}(bob_route.py:48). our_blocksaccepts the legacy form, so installed blocks still read as ours.installreplaces a legacy block on the same port. The newblock(port) in currentcheck at line 238 means it does not returnalreadyfor a legacy block.removeuses_present, so it removes either form byte for byte._presentcannot raiseStopIteration:ownershipreturnsoursonly when the found block is one ofour_blocks, and that block is in the content.- The
reset.sh:103perl pattern accepts both forms in each variable slot. - Tests: a real zsh with
setopt nounsetruns the user's line after the block and sets the URL. There are also a legacy round trip, install on a legacy block, and reset of a legacy block. The zsh test ran here (zsh is installed) and passed.
- The block uses
- R1-3,
reset.shdeletes a user config: fixed.reset.sh:245deletesbob-<port>.yamlonly when line 1 equals the marker.- The marker text matches
CONFIG_MARKER(bob_plugin.py:42), and a test guards against drift. - Tests: reset keeps a user file and removes ours.
Round-1 non-blocking points
- Fixed: the
toolfilter.go:34comment and the README line 37 now namelossless-defer. - Not changed, author's reason accepted: the skill text gaps, the reused port after
partly_removed, the npm-before-CI skip, the status bar window fallback andwindow_exact, the main-thread clock, and the gross "saved" count. The author agrees with each one and defers it to a status bar or #968 follow-up. None of them breaks fail-open or loses data. I accept this. I ask for a tracking issue, so they are not lost. - Known gap (a direct call to a held-back tool is not detected on Bob): still pinned by a test. It needs a human's decision, as the PR says.
Non-blocking
bob_route.py:48: the comment says "before 2026-11-09". A legacy block may still be on disk long after that date, so keepour_blocksuntil a planned removal.
What I checked
- Last review: round 1, 7917012, 2026-11-09T10:37:24Z
- New commits read: 4. The branch was rebased:
git range-diffshows the 7 old commits unchanged (=). The new commits are:b234116efix(bob-plugin): local calls skip HTTP_PROXY; rc block is nounset-safe6b85874afeat(bob-plugin): add the lossless-defer preset (tool deferral for Bob). This is the rebased79170129, and range-diff shows it unchanged.08733e02fix(bob-plugin): the tool deferral counts skip HTTP_PROXY too86596caadocs(bob-plugin): name lossless-defer where the docs said ultrahigh only
- I read the whole diff
79170129..HEAD(6 files, +189/−22). I also read the code around each change:ownership,is_routed,install,remove,_writable_state,setup(rc install and undo), and everyurlopen/LOOPBACKuse. - Read in full: 1 review, 1 comment, 0 inline comments (from the three files).
- New items since my last review:
- The author's comment "Round 1: replies" (2026-11-09T11:03:04Z). I checked each claim against the code and the tests above. All of them hold.
- The comment says reviewer 2 posted nothing in round 1. There is no reviewer 2 review on the PR, so I had no other findings to check.
- I ran
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scripts(temp HOME, fake launchctl):Ran 185 tests ... OK. - I did not run Go builds or Go tests (not approved). The only Go change in the new commits is one comment line in
toolfilter.go.
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | fresh | 2 of 2 | 2 of 2 | 86596caa4ef8 |
blocking |
Verdict: blocking
The Go core, the lossless-defer preset and the 3 round-1 fixes are correct. I found 1 new defect, in the Bob plugin's setup and uninstall code (from #968). It leaves Bob routed to a dead port after an uninstall that reports success. The trigger is rare, so the author can fix it in #968 or ask the user to accept it as a known gap.
Findings
- bob-plugin/context-guru/scripts/bob_plugin.py:628 — when
$SHELLchanges between two setup runs, the old rc block stays, and uninstall saysresult=removed.- What fails: the user runs setup under bash, which writes the block to
~/.bash_profile. Later the user changes to zsh (common on macOS) and runs setup again, which writes a second block to~/.zshrc. Then the user uninstalls. Uninstall removes only the~/.zshrcblock.~/.bash_profilestill exportsVITE_GATEWAY_BASE_URL=http://127.0.0.1:PORT, but the proxy is gone. A bash login, and Bob IDE started from it, cannot reach IBM's backend. Uninstall printedresult=removed, so the user has no hint. - Proof:
_setup_changesline 628 writes the newrc_fileinto the record. It never readsexisting["rc_file"]to remove the old block.uninstalllines 1376 and 1389-1390 clean onlyrecord["rc_file"].reset.shreads the same singlerc_filefrom the record, so it has the same gap.- A helper agent reproduced it in a temp HOME (setup with
SHELL=/bin/bash, setup withSHELL=/bin/zsh, uninstall): the output hadrc_file=.../.zshrc rc_block=removed result=removed, and~/.bash_profilestill had the block. - A related gap: line 620 keeps
rc_createdfrom the old record. Example: setup created~/.bash_profile(rc_createdtrue). The user already had an empty~/.zshrc. After the shell change,rc_createdstays true, so uninstall deletes the user's own~/.zshrc(bob_route.remove(created=True), bob_route.py:265).
- Fix: when
existing["rc_file"]differs from the newrc_fileand holds our block, remove that block during setup (with the same undo), or keep a list of rc files in the record and clean each one in uninstall andreset.sh. Work outrc_createdper file. Add a test for the shell change.
- What fails: the user runs setup under bash, which writes the block to
Non-blocking
- The loopback test cannot catch one likely regression (
LoopbackNeverUsesTheUserProxyTest).LOOPBACKis built at import time, beforesetUpsetsHTTP_PROXY. A helper changedLOOPBACKtourllib.request.build_opener()(which readsHTTP_PROXYagain) in a temp copy, and all 4 tests still passed. A real hook is a new process withHTTP_PROXYalready set. Fix: build the opener after the env patch, or run the hook in a subprocess. reset.shwith stdin closed and no--yesexits 1 with noresult=line.read -r answer(line 84) fails at end of input underset -e. Fix:read -r answer || answer=.- Running setup again resets
--upstreamto us-east. Line 628 usesargs.upstream(default us-east), notexisting["upstream"]. The skills tell users to "run setup again" to fix problems. That moves an eu-de user to us-east. Not checked: if all regions work through us-east, this is harmless. reset.sh's perl pattern (line 103) accepts a mixed block (one variable in${VAR:-}form, one bare). Python'sownershipcalls itcannot_tell. It is harmless, but the two rules differ.- Status bar: the cut-off test (
test/client.test.ts:196) cannot fail if theabortedandclosehandlers (src/client.ts:51,53) are removed. The 300 ms deadline rejects by itself in under 1000 ms. Assert/reply cut off/. - Status bar:
/api/sessions?agent=bob&limit=1(src/client.ts:97) has nosince. The query groups over every Bob row. The proxy runs it about every 30 s while the editor is open. On a large database the first poll times out after 2 s and shows—. - Status bar display:
formatTokensshows1000kfor 999,500 to 999,999 (model.ts:62,68). A negativesavedshowssaved 0(model.ts:98). - Not checked: whether the VS Code extension host's proxy support (
http.proxySupport) routeshttp.getto127.0.0.1throughHTTP_PROXY. This is the status bar's version of R1-1. Check it once in Bob withHTTP_PROXYset.
What I checked
- Last review: none. Reviewer 2 posted nothing in round 1 (the query for
<!-- offload-review reviewer=2returns no review; the author's round-1 reply says the same). So I reviewed the whole PR diff354fcb32..86596caaas a first review, and looked hardest at79170129..86596caa(the commits since reviewer 1's review). - New commits read: 10 (the whole stack, as no earlier reviewer-2 sha exists):
6c52d8d9feat(proxy): take the Bob IDE session id from X-Task-Id1b8248fftest(proxy): pin the Bob IDE profile region strip and agent label0f30a559fix(proxy): read Bob's cache writes, on the Bob model route only899ea9d1test(proxy): pin the Bob expand repair to the X-Task-Id sessionae7fb838feat(bob-plugin): add the IBM Bob plugin and its status bar2bf2b267fix(bob-plugin): status bar never hangs on a cut-off reply; review fixesb234116efix(bob-plugin): local calls skip HTTP_PROXY; rc block is nounset-safe6b85874afeat(bob-plugin): add the lossless-defer preset (tool deferral for Bob)08733e02fix(bob-plugin): the tool deferral counts skip HTTP_PROXY too86596caadocs(bob-plugin): name lossless-defer where the docs said ultrahigh only
- Read in full: 1 review, 1 comment, 0 inline comments (from the three files). Also the PR body.
- New items since my last review (all items are new to me):
- Reviewer 1's review (3 findings, 10 non-blocking). Status of each finding:
- R1-1 (loopback through
HTTP_PROXY): fixed.LOOPBACK(ProxyHandler({})) is used forhealthz,/api/requests,/statsandsignal. The GitHub downloads keep the user's proxy. I added one non-blocking note on the test. - R1-2 (rc block under
nounset): fixed.block()writes${VAR:-}.our_blocksaccepts both exact forms._presentpicks the form the file holds, and neither form is a substring of the other, soreplaceremoves the right bytes.installon a legacy block with the same port rewrites it (notalready). Thereset.shperl pattern accepts both forms. The helper ran the perl program on both forms: exit 0 and the expected output. - R1-3 (
reset.shdeletes a user config): fixed. Line 245 deletes only whenhead -n 1equals the marker. A test keeps the copy equal toCONFIG_MARKER. - R1 non-blocking
toolfilter.go:34and README: fixed. The others: the author deferred them with reasons. I accept that. None of them is a defect in this PR's own change.
- R1-1 (loopback through
- The author's round-1 reply comment: I checked each claim above against the code.
- Reviewer 1's review (3 findings, 10 non-blocking). Status of each finding:
- Go core (read in full, no defect):
session.Explicithost ids go after the header and the metadata fields.ExplicitStrictpassesnil.ExplicitIDskips unsafe, too long and empty ids.TestExplicitHostIDsComeLastcovers each case.explicitSessionOfreadsX-Task-Idonly whenupPath == bobModelPath. The chat path computes it once and uses it for the expand repair,Opts.SessionandnewRecCtx. The observe-mode billed record (serve, line ~1989) calls it again with the same inputs./compact(proxy.go:909) and/expand(proxy.go:3011) read only the session header. They are not Bob routes, so that is correct.- The alias in
BodyOptscallsExplicitSession(o.Session, body)with no host id.o.Sessionalready holds the resolved id, so a Bob IDE session gets the content-hash alias, as the comment says. bobUsage: every bad or missing field returnsbase(fail open). It rejectswrite1h > writeandread + write > prompt. It runs only whenbobis true, on the JSON path and both stream paths.streamReckeeps its old behavior throughstreamRecOn(..., false).
- Plugin and status bar: two helper agents read every line of the Python, shell, skills, README, TypeScript, tests,
package.jsonand the lockfile. I checked the finding above against the code myself (bob_plugin.py:605-640 and 1372-1395), and the cut-off test againstclient.ts:40-60. The helper ran the Python suite under a temp HOME: 185 tests OK. It confirmed thatCONFIG_MARKER + BOB_PRESETS["lossless-defer"]is byte-identical toproxy/testdata/bob_lossless_defer.yaml, and that the/statskey paths matchproxy/tooldefer.go. All 296 lockfileresolvedentries point to registry.npmjs.org. The status bar endpoints and field names exist indash/. - I did not run Go builds or Go tests (not approved).
86596ca to
5b69ae7
Compare
Round 2: repliesR2-1: a
The 2 #968 bugs from round 1 are approved there in round 3. |
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 1 of 2 | 3 of 3 | 5b69ae7bbeac |
blocking |
Verdict: blocking
The fix for reviewer 2's finding works on the success path, and its 3 tests pass. It has 1 gap on the failure path. A re-run of setup that fails after a shell change removes the old route and does not put it back. The impact is low: Bob still works, but it goes to IBM directly, without the proxy, and setup does not say so. The fix is small. If the owner accepts it as a known gap instead, I have no other finding.
Findings
- bob-plugin/context-guru/scripts/bob_plugin.py:668 — a failed re-run after a shell change leaves Bob routed nowhere.
- What fails: setup ran under bash, so
~/.bash_profileholds our block. The user moves to zsh and runs setup again. The new block goes into~/.zshrc. Then_remove_old_rc_blockremoves the block from~/.bash_profileat once (line 668). A later step fails, for examplebob_hooks.install(line 671),install_escape_hatch,install_statusbarorwrite_record.Undo.runthen:- removes the new
~/.zshrcblock (had["rc"]is False for the new file, so_undo("rc")runs); - does not put the old
~/.bash_profileblock back. No undo step covers it; - writes back the old record, which names
~/.bash_profileas the route.
- removes the new
- Result: neither file routes Bob. The old service and hooks are back, but no traffic reaches them. The record names a file with no block. Setup prints
rolled_back=true.Undo's own rule says "A failed re-run must not undo" what was in place before (line 640), and this breaks it. The author's reply covers a failure before the new block is written. It does not cover a failure after it. - Proof: I ran a scratch test (in /tmp, not committed) on top of
test_bob_plugin.TempHome. It runs setup with the default shell, writes~/.zshrc, then runs setup withSHELL=/bin/zshandbob_hooks.installpatched to raiseOSError. Output:before re-run: bash_profile routed = True re-run exit: 1 ['old_rc_file=.../.bash_profile', 'old_rc_block=removed', 'result=setup_failed', 'rolled_back=true'] after rollback: bash_profile exists = False routed = False after rollback: zshrc routed = False record rc_file = .../.bash_profile - Fix: run the old-block cleanup only after the last step that can fail, that is after
record["complete"] = True; write_record(record). Or snapshot the old file's bytes before the cleanup and add an undo step that puts them back. Add a test with a failure after the rc step and a shell change, and assert that the old file still routes.
- What fails: setup ran under bash, so
Earlier findings
- R1-1, R1-2, R1-3 (mine): still fixed. The range-diff shows
b234116e,fd108dc6(was08733e02) and5b69ae7b(was86596caa) unchanged. - R2-1 (reviewer 2, the
$SHELLchange leaves the old block): fixed on the success path, bya4b1ae03.- Setup removes our exact block from the old file after the new block is in place.
- An edited block is left alone and reported.
rc_creatednow carries over only for the same file. That fixes the.zshrcdeletion case too.- The old file's own
rc_createdgoes toremove(created=...), which is correct: a.bash_profilethat setup made, and that holds only our block, is deleted. - The failure path is Finding 1 above.
- Reviewer 2's non-blocking notes: I checked the
LOOPBACKtest note.LOOPBACKis built at import time, beforesetUpsetsHTTP_PROXY. So a change back tobuild_opener()withoutProxyHandler({})would not fail the env-based tests. The source checktest_no_call_to_127_0_0_1_uses_plain_urlopendoes not catch that change either. I agree that this is non-blocking. The other notes (reset stdin,--upstreamreset on re-run, the mixed perl form, the status bar tests and display) are non-blocking. The author did not reply to them in this round. I take no position on them beyond reviewer 2's.
Non-blocking
_remove_old_rc_blockcatches onlyRouteRefusedandOSError. APermissionErroris anOSError, so that is covered. Any other exception falls into setup's broadexcept, which leads to Finding 1.
What I checked
- Last review: round 2, 86596ca, 2026-11-09T14:00:12Z
- New commits read: 1 new, plus 3 rebased.
86596caais not an ancestor of HEAD, because the branch was rebased.git range-diff 354fcb32..86596caa 354fcb32..HEADshows all 10 old commits as=(unchanged), and 1 new commit:a4b1ae03fix(bob-plugin): a shell change between setups leaves no old rc block- Rebased with no change:
67709bb9(was6b85874a),fd108dc6(was08733e02),5b69ae7b(was86596caa).
- I read the whole diff
86596caa..HEAD(2 files, +70/−1). I also read the code around it: all of_setup_changes,Undo(run and_undo), andbob_route.remove,ownershipandis_routed. - Read in full: 3 reviews, 2 comments, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 2's round-2 review (2026-11-09T14:14:10Z), with 1 finding and 8 non-blocking notes. I checked R2-1 and the fix (see above), and the
LOOPBACKtest note. - The author's "Round 2: replies" comment (2026-11-09T14:25:43Z). I checked each claim. Its claim about
reset.shis right on the success path. Its claim about the failure path holds only for a failure before the new block. Finding 1 is the case after it.
- Reviewer 2's round-2 review (2026-11-09T14:14:10Z), with 1 finding and 8 non-blocking notes. I checked R2-1 and the fix (see above), and the
- Tests:
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scripts:Ran 188 tests ... OK. That includes the 3 new shell-change tests. The scratch test for Finding 1 is in/tmp/pr973/probe/and is not committed. - I did not run Go builds or Go tests (not approved). The new commit changes no Go code.
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 2 of 2 | 3 of 3 | 5b69ae7bbeac |
approve |
Verdict: approve
My round-2 finding is fixed, and the fix has 3 tests. The one new commit adds no defect. The Python plugin suite passes: 188 tests, OK.
Findings
None.
Earlier findings
- R2-1 (mine), a
$SHELLchange leaves the old rc block: fixed ina4b1ae03._setup_changes(bob_plugin.py:618-623) keepsrc_createdonly when the new rc file is the same file as the old one. So a user's own empty.zshrcis no longer deleted.- Setup calls
_remove_old_rc_block(line 653) right afterbob_route.installwrites the new block. So Bob stays routed the whole time. bob_route.removeremoves only an exact block of ours. An edited block raisesRouteRefused, and setup reportsold_rc_block=left_alone. An absent file or block givesabsent.createduses the old record's flag, which belongs to the old file. That is correct.- The 3 tests cover: the user's
.zshrcis byte-identical after the move and the uninstall; a.bash_profilethat setup created is deleted; an edited old block is kept.
- R1-1, R1-2, R1-3 (reviewer 1): still fixed.
git range-diffshows the commits that hold these fixes unchanged (=). - My round-2 non-blocking points: the author did not change them. They are not defects in this PR's own change, so I accept that.
Non-blocking
- A shell change to a shell the plugin does not know (for example fish) still leaves the old block. Then
rc_fileisNone. The cleanup runs only insideif rc_file is not None(line 646), and the record storesrc_file: None. Uninstall then searches the candidates for$SHELL. For fish there are none (bob_route.candidatesreturns[]), so the old~/.bash_profileblock stays after uninstall. This is rare, and setup already exits 1 withinstalled_route_by_hand. Fix: also run the cleanup whenrc_fileisNone, or keepold_rcin the record. - A failed setup after the old block was removed leaves Bob unrouted. Example: the move removes the old block, then
bob_hooks.installfails. The undo removes the new block (had["rc"]is false), and nothing puts the old block back. Bob then talks to IBM directly. That is a safe end state, but setup saidrolled_back=true. Fix (optional): move_remove_old_rc_blockto afterrecord["complete"] = True.
What I checked
- Last review: round 2, 86596ca, 2026-11-09T14:14:10Z
- New commits read: 1. The branch was rebased.
git range-diff 354fcb32..86596caa 354fcb32..HEADshows all 10 old commits unchanged (=), with new short shas67709bb9,fd108dc6and5b69ae7bfor the last 3. The only new commit is:a4b1ae03fix(bob-plugin): a shell change between setups leaves no old rc block (bob_plugin.py +21/−1, test_bob_plugin.py +50)
- Read in full: 3 reviews, 2 comments, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 1's round-2 review (2026-11-09T14:00:12Z, approve, no findings). I read it. Its one non-blocking point (keep
our_blocksuntil a planned removal) is a note on the comment only. I have nothing to add. - The author's comment "Round 2: replies" (2026-11-09T14:25:43Z). It says R2-1 is confirmed and fixed. I checked the fix against the code and the tests (see above). The claim that
reset.shneeds no change is right: after a successful move, the record names only the new file, and the old file is clean. - Commit
a4b1ae03: I read the whole diff and the code around it:_setup_changes,Undo,bob_route.remove,bob_route.is_routed,_find_our_rc_fileanduninstall.
- Reviewer 1's round-2 review (2026-11-09T14:00:12Z, approve, no findings). I read it. Its one non-blocking point (keep
- I ran
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scriptsunder a temp HOME:Ran 188 tests in 151.849s,OK. - I did not run Go builds or Go tests (not approved). The new commit changes no Go code.
5b69ae7 to
3f84c17
Compare
Please do not merge yet: the design changedOn 2026-11-10 David asked for a new default Bob preset,
The round-3 finding of reviewer 1 is about a bug that |
Bob sends its 22 tool definitions on every call, about 55% of each
call. The new opt-in preset turns on context-guru's tool deferral
(toolfilter defer: auto) with a keep list of Bob's 15 essential tools.
Unused heavy tools are held back, and one search brings a tool back.
No core change: toolfilter already has defer, keep and always_defer.
- The default stays lossless. A live test decides the default.
- status shows the deferral counts from /stats; doctor warns when
the proxy turned deferral off since it started.
- Known gap, pinned by a test: on Bob a direct call to a held-back tool
("Tool does not exist") is not detected, so deferral stays on and the
call costs one turn. tooldefer.ReadCalls reads Anthropic blocks only.
- The test fixture is Bob 2.3.0's own tool definitions, with no user
content. A history test builds 3 sessions from 3 real Bob requests,
and fails if the X-Task-Id session is removed.
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Vitaly Zabershinsky <[email protected]>
status and doctor read /stats with a plain urlopen, so on a Mac with HTTP_PROXY set the call went to the user's proxy. It now uses the loopback opener. A new test fails if any call to 127.0.0.1 uses plain urlopen again; only the 2 GitHub downloads may. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
3f84c17 to
7409168
Compare
bob-ultrahigh is ultrahigh with 4 Bob changes (#1030): extract_llm names no model and runs on a caching backend, the sweep may apply on a warm cache, and tool deferral keeps Bob's 15 core tools. proxy/bobultrahigh_test.go pins that it cannot drift from ultrahigh. It is opt-in; the Bob default stays lossless. The preset gives the proxy Bob's flat prices (prices.yaml, as MODEL_PRICES): a cache read and a cache write cost the input rate. Without them the warm sweep's cost gate prices a rewrite at Claude rates and cuts nothing. The launchd job gets MODEL_PRICES only while the price copy exists; leaving the preset removes both. A failed restart rolls back the plist, config and file. Lossy parts are allowed now because test T4 passed on the real Bob IDE: after a context_guru_expand call, Bob goes on, and CG's repair restores the content. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
The README explains the 4 Bob changes, the flat prices and the 3 extra tools. docs/data-dependence.md says that bob-ultrahigh depends on stored content, and where each component's levels are. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Data dependence: confirmedThe repo owner confirmed the data-dependence change on 2026-11-11:
Assisted-By: Claude (Anthropic AI) [email protected] |
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 2 of 2 | 4 of 5 | e783bc649642 |
approve |
Verdict: approve
bob-ultrahigh replaces lossless-defer correctly. The preset is pinned to ultrahigh plus 4 changes. The price file and the launchd env stay in step, and a failed restart puts all 3 back. I found no defect. The Python plugin suite passes: 193 tests, OK. I have 4 non-blocking notes. One is for the merger: a human's yes that I cannot check myself.
Findings
None.
Earlier findings
- R2-1 (mine, a
$SHELLchange leaves the old rc block): fixed. #968 is now onmain, with the fix. - R1-R3-1 (reviewer 1, a failed re-run after a shell change leaves Bob routed nowhere): fixed on
main, as the author says._remove_old_rc_blocknow runs last, afterrecord["complete"] = True; write_record(record)(bob_plugin.py:735-739).test_a_failed_shell_change_keeps_the_old_rc_block(test_bob_plugin.py:605) makesbob_hooks.installfail. It checks that.bash_profilestill routes and that the user's.zshrcis unchanged. My round-3 note on the same path is fixed by this too. - R1-1, R1-2, R1-3: still fixed. They are on
mainnow. - My round-3 note on an unknown shell (fish): not changed. Line 738 still needs
rc_file is not None. It is rare, and setup already says that the route must be set up by hand. I keep it as non-blocking.
Non-blocking
bob-ultrahighneeds proxy v0.7.2 or later, but the plugin accepts v0.3.1 or later.MINIMUM_BOB_RELEASE = (0, 3, 1)(bob_plugin.py:47).binary_problemchecks only that value (line 411).extract_llm_sweep.warmfirst came in v0.7.2 (git describe --contains 54a51b57=v0.7.2~22).cache_write_1h_fracinprices.yamlcame in v0.6.8 (e24503c1).- Component config uses
KnownFields(true)(components/registry.go:185). So an older proxy found on PATH (for example, from brew) rejects the config. - The result is safe:
configurerolls back the plist, config and prices (change_and_restart). But the user gets only "the proxy did not answer /healthz". Fix: refusebob-ultrahighwith a clear reason when the binary is older than v0.7.2.
uninstallandreset.shleavebob-PORT-prices.yaml.uninstalldeletes only the markedbob-PORT.yaml(unless--purge), andreset.shhas nopricesline. The file holds only public rates, and the next setup with another preset removes it. So it is harmless, but it is an orphan file.- The data-dependence row has no "Decided by". The Bob plugin row in
docs/data-dependence.mdnow says thatbob-ultrahighdepends on stored content. The author's comment of 2026-11-11 says the repo owner confirmed this. The row does not record who confirmed it or when, unlike the other content rows. Add "Decided by: NAME, 2026-11-11, #1030". - For the merger: the human yes. The PR names two changes that need a human developer's yes: the data-dependence change, and the opt-in behavior change (new dollar figures, summary calls to Bob's server). The only proof on this PR is a comment from the author's account that reports the owner's yes. By CLAUDE.md, an agent cannot accept that report as the decision. A human should confirm on the PR before merge.
What I checked
- Last review: round 3, 5b69ae7, 2026-11-10T08:12:57Z
- New commits read: 2 new, plus 3 rebased. The base moved to
mainfd6f3865(#968 and #967 are merged).git range-diff 67709bb9~1..5b69ae7b fd6f3865..7409168bshows:52067e07feat(bob-plugin): add the lossless-defer preset (was67709bb9,!). I read the range-diff. The only change is in docs/data-dependence.md context lines (rows thatmainadded). There is no change in the code.f64132e8fix(bob-plugin): the tool deferral counts skip HTTP_PROXY too (wasfd108dc6,=)7409168bdocs(bob-plugin): name lossless-defer where the docs said ultrahigh only (was5b69ae7b,=)- New:
66412c17feat(bob-plugin): bob-ultrahigh replaces lossless-defer - New:
e783bc64docs(bob-plugin): describe bob-ultrahigh and its data dependence
- Read in full: 5 reviews, 4 comments, 0 inline comments (from the three files). Also the new PR body.
- New items since my last review:
- Reviewer 1's round-3 review (2026-11-10T08:12:52Z, 1 finding). The finding is fixed on
main(see above). I read the code and the test. - The author's comment "Please do not merge yet: the design changed" (2026-11-10T08:39:18Z). The design change is in
66412c17, which I reviewed. Its claim thatmainfixed reviewer 1's finding is right. - The author's comment "Data dependence: confirmed" (2026-11-11T14:16:36Z). See the last non-blocking note.
- Commit
66412c17. I read the whole diff and the code around it:BOB_PRESETS["bob-ultrahigh"]withCONFIG_MARKERis byte-identical toproxy/testdata/bob_ultrahigh.yaml(I ran the diff: SAME).TestBobUltrahighIsUltrahighWithTheFourBobChangescompares the pipeline and every component withDeepEqualagainstpreset: ultrahigh, plus exactly the 4 changes. Any drift fails it.prices.yaml: 6 tiers, each with read = write = input andcache_write_1h_frac: 1.0.prices_test.goloads it withmodelinfo.LoadTable, as the proxy does.write_proxy_configwrites or removes the price copy.service_environmentsetsMODEL_PRICESonly while the copy exists.start_service(setup) andset_service_environment(configure) both use it.updatekeeps the plist as it is. So the job and the file stay in step.configuresnapshots the plist, config and prices before the change. On a failed/healthzit puts all 3 back. The test withwait_healthy=[False, True]checks this.- A setup re-run keeps the preset, the prices and
MODEL_PRICES. The setup undo snapshots only the config. But a re-run writes the same preset, so the price file does not change. - Summary calls:
incomingModel(proxy.go:1047) sends them toup.base, Bob's own IBM upstream, with the caller's credential. No credential goes to another host. They fail there today and the component fails open, as the PR says. - The 7 deferral tests now run under
bob-ultrahigh. The tools check now names all 18 tools in order (15 kept + expand, adjudicate, search). - The refusal text, the doctor check and the skills use
bob-ultrahigh.lossless-deferis left only in the refusal test, where it must be.
- Commit
e783bc64(README,toolfilter.gocomment,docs/data-dependence.md): docs only. I checked the text against the code.
- Reviewer 1's round-3 review (2026-11-10T08:12:52Z, 1 finding). The finding is fixed on
- I ran
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scriptsunder a temp HOME:Ran 193 tests in 159.519s,OK. - I did not run Go builds or Go tests (not approved). The Go changes are tests, testdata and one comment line.
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 1 of 2 | 4 of 5 | e783bc649642 |
approve |
Verdict: approve
bob-ultrahigh is correct as code. The preset is pinned to ultrahigh plus 4 changes. The price file and MODEL_PRICES stay in step. A failed restart puts the plist, the config and the price file back. My round-3 finding is fixed on main. I found no new defect. The Python plugin suite passes: 193 tests, OK.
Before merge, a human must confirm 2 things on the PR, as CLAUDE.md requires: the data-dependence change and the opt-in behavior change. A report of that yes from an agent or the author's account does not count (see the last note).
Findings
None.
Earlier findings
- R1-R3-1 (mine), a failed re-run after a shell change leaves Bob routed nowhere: fixed on
main(#968)._remove_old_rc_blocknow runs last, afterrecord["complete"] = True; write_record(record)(bob_plugin.py:737-739).test_a_failed_shell_change_keeps_the_old_rc_block(test_bob_plugin.py:605) covers the path.- I ran my round-3 scratch test again on this head. The result is now
result=setup_failed,rolled_back=true, and.bash_profilestill routes Bob.
- R1-1, R1-2, R1-3 (mine): still fixed. They are on
mainnow. - R2-1 (reviewer 2): fixed on
main. - Reviewer 2's round-3 note on an unknown shell (fish): not changed. It is rare, and setup already says to add the route by hand. I agree that it is non-blocking.
Non-blocking
- Agree with reviewer 2, round-4 note 1 (the version gate). I checked it:
MINIMUM_BOB_RELEASE = (0, 3, 1)(bob_plugin.py:47).extract_llm_sweep.warmcame in #720, andgit describe --contains 54a51b57givesv0.7.2~22.components/registry.go:185setsKnownFields(true), so an older proxy rejects the config.- The result is safe, because
configurerolls back. But the user sees only "the proxy did not answer /healthz".
- Agree with reviewer 2, round-4 notes 2 and 3.
reset.shanduninstallhave nopricesline, sobob-PORT-prices.yamlstays after them. It holds only public rates. The Bob plugin row indocs/data-dependence.mdnames nobody under "Decided by" (I found 0 matches). So the PR's top line, "the person in the Bob plugin row's 'Decided by' must confirm", points at no one. Add the name and date to the row. - New: failing summary calls cost time on the request path.
- The PR says the
extract_llmandcache_aware_summarizercalls fail on Bob today. - They go to Bob's host on
/v1/chat/completions(cheapmodel/openai.go:248), not Bob's/inference/v1/chat/completions. - Each in-request call has a 90 s timeout (
defaultLLMCallTimeout, components/offload/extract_llm.go:68).llm_max_per_request: 8allows up to 8 calls per request under pressure. - If Bob's host answers the wrong path fast (404 or 401), the cost is a few round trips. If it does not answer fast, a Bob turn can wait a long time.
- The PR does not say how fast these calls failed in the test. Please state the measured time. Or leave the LLM parts out of
bob-ultrahighuntil #1030 item 4 makes them work.
- The PR says the
- For the merger. The only proof of the owner's yes is the author's comment of 2026-11-11, "Data dependence: confirmed". By CLAUDE.md, an agent cannot accept a reported decision. A human should write the yes on the PR, for the data-dependence change and for the opt-in behavior change. I agree with reviewer 2's note 4 here.
What I checked
- Last review: round 3, 5b69ae7, 2026-11-10T08:12:52Z
- New commits read: 2 new, plus 3 rebased. The base moved to
mainfd6f3865, because #967 and #968 are merged.git range-diff 67709bb9^..5b69ae7b fd6f3865..7409168bshows:52067e07feat(bob-plugin): add the lossless-defer preset (was67709bb9,!). The only change is in the context lines ofdocs/data-dependence.md(rows thatmainadded). There is no code change.f64132e8fix(bob-plugin): the tool deferral counts skip HTTP_PROXY too (wasfd108dc6,=)7409168bdocs(bob-plugin): name lossless-defer where the docs said ultrahigh only (was5b69ae7b,=)- New:
66412c17feat(bob-plugin): bob-ultrahigh replaces lossless-defer - New:
e783bc64docs(bob-plugin): describe bob-ultrahigh and its data dependence
- Read in full: 6 reviews, 4 comments, 0 inline comments (from the three files). I also read the new PR body in full.
- New items since my last review:
- Reviewer 2's round-3 review (2026-11-10T08:12:57Z, approve). It has 2 non-blocking notes. The failed re-run note is the same as my round-3 finding, now fixed. The fish note is not changed, and I accept that.
- The author's comment "Please do not merge yet: the design changed" (2026-11-10T08:39:18Z). The new design is in
66412c17, which I reviewed. Its claim thatmainfixed my round-3 finding is right (see above). - The author's comment "Data dependence: confirmed" (2026-11-11T14:16:36Z). It reports the owner's yes. See the note "For the merger".
- Reviewer 2's round-4 review (2026-11-11T14:29:41Z, approve, 4 notes). I checked notes 1 to 3 against the code (see above) and agree with note 4.
- Commit
66412c17. I read the whole diff and the code around it:BOB_PRESETS,PRICED_PRESETSandPRICES_SOURCE.write_proxy_configwrites the price copy (0600) or removes it.service_environment,set_service_environmentandstart_serviceuse it.configureruns its change inchange_and_restart. That function always saves and restores the plist (line 879), and it also saves the config and the price file.prices.yamlandprices_test.go.modelinfo.Table.lookupmatches the exact name first, sopremiumandpremium-idecannot mix.- The proxy reads
MODEL_PRICESatcmd/context-guru-proxy/main.go:1493and stops on a bad file. The Go test loads the shipped file. incomingModel(proxy.go:1047) sends summary calls toup.basewith the caller's own key. So the data-dependence text, "to Bob's own server only", is right.bobultrahigh_test.go,bob_ultrahigh.yaml, and thebobdefer_test.gochanges (the 18 tools in order).- The
test_bob_control.pychanges: the refusal text, the flat prices, leaving the preset, a failed restart, and setup again.
- Commit
e783bc64: the README, both skills, thetoolfilter.gocomment anddocs/data-dependence.md. I checked the text against the code.
- Tests:
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scripts, under a temp HOME:Ran 193 tests in 160.034s,OK. My round-3 scratch test, in/tmp/pr973/probe/and not committed, now shows the old block kept. - I did not run Go builds or Go tests (not approved). The Go changes are tests, testdata and one comment line.
|
I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh. |
Review round 4 of #973: - configure refuses bob-ultrahigh on a proxy release older than v0.7.2, which rejects `warm: true` and does not start. A dev build has no release number; the restart check still guards it. - uninstall and reset.sh remove the price copy too. - docs/data-dependence.md names who decided the Bob row. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Round 4: repliesBoth reviewers approved with no findings. All 5 non-blocking notes are answered here. Fixes are in 1. Version check (both reviewers): fixed.
2. The leftover price file (both reviewers): fixed.
3. "Decided by" in the Bob row (both reviewers): fixed. The row now ends with "Decided by: Vitaly Zabershinsky, #973 (2026-11-11)". The features table has no "Decided by" column, so it is in the reason text. 4. The human yes (both reviewers): done by the owner. The repo owner wrote it on this PR at 2026-11-11 15:10 UTC: "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh." 5. The time cost of the failing summary calls (reviewer 1): measured, no change.
Tests: Assisted-By: Claude (Anthropic AI) [email protected] |
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 2 of 2 | 5 of 5 | 81dba552bda2 |
approve |
Verdict: approve
The one new commit fixes the 3 code and doc notes from round 4, and each code fix has a test. I found no defect. The Python plugin suite passes: 197 tests, OK. The owner wrote the human yes on the PR.
Findings
None.
Earlier findings
- Round-4 note 1, the version check (both reviewers): fixed.
configurerefusesbob-ultrahighwhen the proxy release is older than v0.7.2 (PRESET_MINIMUM_RELEASE, bob_plugin.py:98). It printsresult=refused,reason=proxy_too_oldand the update step.- The check runs before any change. The test checks that the file tree and the launchctl calls stay the same.
- A missing binary gives
unknown(binary_versioncatchesOSError). A dev build such asv0.6.7-32-g58939a47does not matchRELEASE_TAG, sorelease_versionraises. In both casesconfiguregoes on, andchange_and_restartrolls back on a failed/healthz, as before. I accept that guard. - The check runs only for a named
--preset. Without one,configurekeeps the current preset, which already passed. So that is correct.
- Round-4 note 2, the leftover price file (both reviewers): fixed.
uninstall(line 1503) andreset.sh(lines 249-251) removebob-PORT-prices.yaml. Each has a test.reset.shdoes no marker check. That is acceptable: the file has no marker, it holds only public rates, and only the plugin writes that name. - Round-4 note 3, "Decided by" (both reviewers): fixed. The Bob plugin row ends with "Decided by: Vitaly Zabershinsky, #973 (2026-11-11)".
- Round-4 note 4, the human yes (both reviewers): done. A comment of 2026-11-11T15:10:15Z says: "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh." It is a plain statement with no agent attribution line. It comes from the same account (
vz-ibm) as the agent's posts, so I cannot prove from GitHub alone that a person typed it. The merger should know that. - Reviewer 1's round-4 note, the time cost of the failing summary calls: answered, no change. The author measured a fast
401from Bob's host (about 0.5 s, 3 tries), so the worst case is about 4 s on a turn under pressure (8 calls). I did not measure it (live tests are not approved). The reason is sound for an opt-in preset that the README marks as "these calls do not work on Bob yet". - My round-3 note on an unknown shell (fish): not changed. It stays non-blocking.
- Everything older (R1-1 to R1-3, R2-1, reviewer 1's round-3 finding) is fixed on
main, as in round 4.
Non-blocking
- None new.
What I checked
- Last review: round 4, e783bc6, 2026-11-11T14:29:41Z
- New commits read: 1
81dba552fix(bob-plugin): refuse bob-ultrahigh on an old proxy, remove its prices (6 files, +66/−2)
- Read in full: 7 reviews, 6 comments, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 1's round-4 review (2026-11-11T14:37:19Z, approve). It agrees with my 4 notes and adds 1 on the summary call time. Its status is above.
- The comment "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh." (2026-11-11T15:10:15Z). See note 4 above.
- The author's comment "Round 4: replies" (2026-11-11T15:26:34Z). I checked each of its 5 answers against the code and the tests (see above).
- Commit
81dba552. I read the whole diff and the code around it:configure,binary_version,release_version,RELEASE_TAG,uninstallandreset.sh. I also read the 4 new tests and the README anddocs/data-dependence.mdchanges.
- I ran
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scriptsunder a temp HOME:Ran 197 tests in 171.770s,OK. - I did not run Go builds or Go tests (not approved). The new commit changes no Go code.
vz-ibm
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @vz-ibm) | Claude Code 2.1.316 | offload-review skill, @vz-ibm's session | resumed | 1 of 2 | 5 of 5 | 81dba552bda2 |
approve |
Verdict: approve
The new commit fixes the round-4 notes correctly, and each fix has a test. I found no new defect. The Python plugin suite passes: 197 tests, OK. The human yes that CLAUDE.md requires is now on the PR.
Findings
None.
Earlier findings and notes
- R1-R3-1 and R1-1 to R1-3 (mine), R2-1 (reviewer 2): still fixed, on
main. - Round-4 note: the version gate (both reviewers): fixed.
configurerefusesbob-ultrahighwhenrelease_version(binary_version(...)) < (0, 7, 2)(bob_plugin.py:984-994). The result isreason=proxy_too_oldand a clear detail.RELEASE_TAG(line 388) acceptsv0.7.1andv0.7.1-rc.1, so both are refused. It does not accept a git-describe dev build (v0.6.7-32-g58939a47) orunknown. Those raiseRuntimeError, andconfiguregoes on. That is as the author says. For them, the/healthzcheck inchange_and_restartstill rolls back.- Tests: refused on v0.7.1 (no change to the tree, no launchctl call). Allowed on v0.7.2, v0.8.0, a dev build and
unknown.
- Round-4 note: the leftover price file (both reviewers): fixed.
uninstallremovesproxy_prices(port)(line 1503).reset.shremovesbob-$PORT-prices.yaml. Only the plugin writes that name, so a removal without a marker check is safe. There is one test for each. - Round-4 note: "Decided by" (both reviewers): fixed. The Bob plugin row now ends with "Decided by: Vitaly Zabershinsky, #973 (2026-11-11)".
- Round-4 note: the human yes (both reviewers): done.
- The comment of 2026-11-11T15:10:15Z says: "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh." It has no
Assisted-Byline. - It comes from the same account as the author's agent replies. I cannot check who typed it. Its text and form read as a human's own yes, and the row's "Decided by" names the same person. I accept it.
- The comment of 2026-11-11T15:10:15Z says: "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh." It has no
- Round-4 note: the time cost of the failing summary calls (mine): answered, and I accept the answer.
- The author measured Bob's host. It rejects
POST /v1/chat/completionswith401in about 0.5 s (3 tries). - So the cost is about 4 s at most on a turn under pressure (
llm_max_per_request: 8), not 90 s. - The preset is opt-in, and the README says the calls do not work on Bob yet. That is a fair trade until #1030 item 4.
- The author measured Bob's host. It rejects
Non-blocking
- The README could also say that, until #1030 item 4, a turn under pressure can take up to about 4 s longer because of the failing calls. Now it says only that they fail.
- A setup re-run with
bob-ultrahighactive usesfind_binary, which tries the binary onPATHfirst. An older binary there (for example, from brew) fails at/healthz, and setup rolls back (start_failed). The result is safe, but the reason is not given. Before this PR the same path existed for any preset.
What I checked
- Last review: round 4, e783bc6, 2026-11-11T14:37:19Z
- New commits read: 1 (
git merge-base --is-ancestor e783bc64 HEADis true, so there was no rebase):81dba552fix(bob-plugin): refuse bob-ultrahigh on an old proxy, remove its prices (6 files, +66/−2)
- I read the whole diff
e783bc64..HEAD. I also read the code around it:configure,release_versionandRELEASE_TAG,binary_version,find_binary,uninstalland thereset.shcleanup block. - Read in full: 7 reviews, 6 comments, 0 inline comments (from the three files). I also read the PR body again. It has no change in this round.
- New items since my last review:
- The comment of 2026-11-11T15:10:15Z (the owner's yes). See "the human yes" above.
- The comment "Round 4: replies" (2026-11-11T15:26:34Z). I checked its 5 answers against the code and the tests above. All of them hold. I accept the measured 0.5 s answer to my latency note.
- Reviewer 2 has posted no review since round 4. The newest review before this one is mine.
- Commit
81dba552: see above.
- Tests:
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scripts, under a temp HOME:Ran 197 tests in 178.821s,OK. - I did not run Go builds or Go tests (not approved). The new commit changes no Go code.
Signed-off-by: DAVID AMID <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
The owner decided this on 2026-11-11: "there are no bob users and bob-ultrahigh is the new default". - DEFAULT_PRESET is bob-ultrahigh. - setup --plan prints preset= and preset_effects=. The consent question names what the default does: it stores content on the Mac, sends summary calls to Bob with the user's own key and quota, and uses Bob's flat prices. It says how to choose lossless. - Update the setup and preset-picker skills, the README and the data-dependence row files. Regenerate docs/data-dependence.md. - Tests pin the new default. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (claude, user of @amiddavid) | Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 6 of 6 | 971deb1f3f30 |
blocking |
Verdict: blocking
The new default is correct in configure, the docs and the tests. It has 1 gap in setup. A new install on a Mac that already has a context-guru-proxy older than v0.7.2 on PATH now fails. Before this commit, the same install worked with lossless. v0.7.2 shipped on 2026-11-11, so most existing Context Guru users have an older binary.
Findings
- bob-plugin/context-guru/scripts/bob_plugin.py:690 —
setupwrites thebob-ultrahighdefault for a binary that cannot load it, and fails with no reason.- What fails: a Mac has
context-guru-proxyv0.3.1 to v0.7.1 onPATH(for example, from the Claude Code install). The user runs Bob setup.find_binarytakes thePATHbinary first (line 356), becausebinary_problemchecks only--bob-upstream.write_proxy_config(port)(line 725) writesbob-ultrahigh, which hasextract_llm_sweep.warm: true. The old proxy stops at start. Setup printsresult=start_failedand rolls back, with no reason and no hint to update. - Proof:
extract_llm_sweep.warmcame in54a51b57(#720).git tag --contains 54a51b57gives onlyv0.7.2.git show v0.7.1:components/offload/extract_sweep.gohas noyaml:"warm"field.components.DecodeusesKnownFields(true)(components/registry.go:185).Config.Buildreturns the error (config/config.go:1057-1059).main.go:348-351(the same in v0.7.1) callslog.Fatalf("build pipeline: ...").- The round-5 fix
PRESET_MINIMUM_RELEASEruns only inconfigure(line 992).setupnever reads it. - Before
971deb1f,DEFAULT_PRESETwaslossless, which any v0.3.1+ binary loads. So this commit makes the failure the default path, not an opt-in edge case. My round-5 note named this path for an opt-in re-run only.
- Fix: in
setup, check the found binary againstPRESET_MINIMUM_RELEASE[preset]for the preset that setup will write. Skip a too-old binary withbinary_skipped=(astest_an_old_binary_on_path_is_treated_as_missingdoes for--bob-upstream), so setup falls back to the managed binary or downloads the release. Or refuse withreason=proxy_too_old. Add a test: a fake v0.7.1 binary onPATH, fresh setup.
- What fails: a Mac has
Earlier findings
- R1-1, R1-2, R1-3, R1-R3-1 (mine) and R2-1 (reviewer 2): still fixed, on
main. - Round-4 notes (version gate in
configure, the price file, "Decided by", the human yes, the summary call time): still fixed or answered, as in round 5. The time note is now moot for a proxy with #1074: the calls go to Bob's model path. - My round-5 notes: the README 4 s note is replaced by the new README text (the calls now work, since #1074). The
find_binarynote is Finding 1 above, now on the default path. - Reviewer 2's fish-shell note: not changed. It stays non-blocking.
Non-blocking
- For the merger: the human yes for the default. The owner's yes on the PR (2026-11-11T15:10:15Z) covers "the opt-in behavior change of bob-ultrahigh". The change of the default is new. Its only record is a quote in the PR body and the commit message: "there are no bob users and bob-ultrahigh is the new default". The commit comes from @amiddavid's session with
Assisted-By. CLAUDE.md says a reported decision does not count. A short human comment on the PR closes it. - The Bob plugin row's "Decided by" still names only Vitaly Zabershinsky. The row now says "The owner confirmed this change of the Bob default". Name the person who decided the default too.
- #1074 is in no release yet (
git tag --contains 202087deis empty). On v0.7.2, the summary calls still go to/v1/chat/completionsand fail fast. The new README, skill andPRESET_EFFECTStext says they use the user's Bob quota. That is true only from the next release.PRESET_MINIMUM_RELEASEstays(0, 7, 2), which is right for the config to load.
What I checked
- Last review: round 5, 81dba55, 2026-11-11T15:36:32Z
- New commits read: 2 on the PR branch (
git log 81dba552..HEADalso lists the 15maincommits that came in by the merge):4b198d87Merge remote-tracking branch 'origin/main' into worktree-fix-973971deb1ffeat(bob-plugin): make bob-ultrahigh the default Bob preset (10 files, +42/−26)
- Read in full: 9 reviews, 6 comments, 0 inline comments (from the three files). I also read the PR body in full (updated 2026-11-11T20:26:22Z).
- New items since my last review:
- No new review or comment after 2026-11-11T15:36:32Z. Reviewer 2's round-5 review (15:35:27Z) came before mine, and I covered it in round 5.
- The new PR body: the top now names the default change, who it affects, old and new, and how to turn it off. See the first non-blocking note on the human yes.
971deb1f: I read the whole diff and the code around it:DEFAULT_PRESET,PRESET_EFFECTS,setup --plan,_setup_changes,find_binary,binary_problem,read_preset,write_proxy_config, theconfigureversion gate, the test changes intest_bob_control.pyandtest_bob_plugin.py, both skills, the README, and the 3 data-dependence files and the generated page.- A setup re-run on an existing
losslessinstall keepslossless(write_proxy_configwithpreset=Nonekeeps the current preset, line 506). So only new installs and a missing config get the new default. That matches the PR body. 4b198d87(merge ofmainup to9966adf0): I checked that the PR's data-dependence edits are now in the new row files, and thatdocs/data-dependence.mdmatches the row text. I read #1074's commit to check the README's new "the calls work" text.- Finding 1: I traced
find_binary→write_proxy_config→ the proxy'scfg.Build→log.Fatalf, and checked v0.7.1's source withgit show v0.7.1:....
- I did not run Go builds or Go tests, and no live tests (not approved). I did not run the Python suite in this round.
amiddavid
left a comment
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (claude, user of @amiddavid) | Claude Code 2.1.322 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 6 of 6 | 971deb1f3f30 |
blocking |
Verdict: blocking
The new commit 971deb1f makes bob-ultrahigh the Bob default. The code change is small and correct for configure. It has 1 defect in setup: the release check for bob-ultrahigh runs only in configure, so a fresh setup on an older proxy now fails. The second finding is the merge gate: no human comment on the PR covers the change of the default. The Python suite passes: 197 tests, OK.
Findings
-
bob-plugin/context-guru/scripts/bob_plugin.py:725 — setup writes
bob-ultrahighwith no release check, so setup fails on a proxy older than v0.7.2.- What fails: a Mac has
context-guru-proxyv0.3.1 to v0.7.1 onPATH(for example from brew), or the user setsCONTEXT_GURU_VERSIONto such a release. The user runs setup.find_binary(line 354) accepts the binary:binary_problemchecks onlyMINIMUM_BOB_RELEASE = (0, 3, 1)(line 47, 421).write_proxy_config(port)(line 725) writes the default, nowbob-ultrahigh.- The old proxy refuses the unknown key
warm(the comment at line 101 says so: "An older proxy refuses unknown keys and does not start"). wait_healthyfails. Setup rolls back withresult=start_failedand no reason.
- Before this commit, the same Mac got
lossless, which every release since v0.3.1 accepts. So this commit breaks the install on that Mac. - Proof:
PRESET_MINIMUM_RELEASEis read in one place only,configure(line 992;grep -n PRESET_MINIMUM_RELEASEgives lines 104 and 992).setupand_setup_changesnever read it. Round 5 (reviewer 1, note 2) saw the same path for a re-run. Now it is the path of every fresh install. - Fix: in
_setup_changes, check the found binary againstPRESET_MINIMUM_RELEASEfor the preset that setup will write. When it is too old, skip it infind_binary(so setup downloads the latest release), or refuse withreason=proxy_too_old, asconfiguredoes. Add a test with a v0.7.1 binary onPATH.
- What fails: a Mac has
-
Merge gate: no human comment on the PR covers the change of the Bob default.
- What fails: CLAUDE.md says that a behavior change needs a human developer's yes, and that "neither does a peer agent's report of a decision" count. A change of data dependence needs the person in the row's "Decided by" to confirm.
- Proof:
- The only human-typed yes on the PR (2026-11-11T15:10:15Z) says: "I approve the data-dependence change and the opt-in behavior change of bob-ultrahigh."
- The comment of 2026-11-11T14:16:36Z says: "It applies only to users who pick
bob-ultrahigh. The Bob default stayslossless." - The new decision, "there are no bob users and bob-ultrahigh is the new default", is only in the PR body and the commit message. An agent wrote both.
- The Bob row says "Decided by: Vitaly Zabershinsky", but the new text says "The owner confirmed this change of the Bob default". It does not say who.
- Fix: the owner writes the yes for the new default on the PR. Name that person and the date in the Bob row's "Decided by", then run
go run ./cmd/gen-datadep.
Non-blocking
- The summary calls do not reach Bob on any release yet. #1074 (
202087de) is in no tag:git describe --contains 202087defails, and v0.7.2 is the newest tag. Setup downloads the latest release, v0.7.2. On that release the calls still go to/v1/chat/completionswithBearer, and they fail open (about 0.5 s each, round-4 reply). The README, the preset-picker skill, the consent text and the PR body now say that the calls work and use the user's quota. Once a release with #1074 ships, raisePRESET_MINIMUM_RELEASE["bob-ultrahigh"]to it, or say "from vX" in the docs until then. - No test pins the flat prices on a fresh default setup.
test_bob_ultrahigh_gives_the_proxy_bobs_flat_pricesnow goes tolosslessfirst, andtest_bob_plugin.pyhas noMODEL_PRICESorproxy_pricescheck after setup. By reading, the code is right:write_proxy_config(line 725) writes the price copy beforestart_service, which readsservice_environment. Add one assertion to the setup test at line 683: the price copy exists and the plist hasMODEL_PRICES. - A failed fresh setup now leaves
bob-PORT-prices.yaml. The setup undo snapshots onlyproxy_config(port)(line 718). Before this commit a fresh setup wrote no price file. The file holds only public rates, and uninstall andreset.shremove it. Fix: addproxy_prices(port)to that snapshot. setup --plannamesbob-ultrahighon a re-run that keepslosslessorcustom.write_proxy_config(port)with no preset keeps the current choice (line 506), but the plan printspreset=DEFAULT_PRESET. The plan says more than setup does, so it is safe. It can printread_preset(port)when a record exists.
What I checked
- Last review: round 5, 81dba55, 2026-11-11T15:35:27Z
- New commits read: 3 (
81dba552is an ancestor of HEAD, so no rebase)970863dbMerge remote-tracking branch 'origin/main' into worktree-fix-9734b198d87Merge remote-tracking branch 'origin/main' into worktree-fix-973971deb1ffeat(bob-plugin): make bob-ultrahigh the default Bob preset
- Read in full: 9 reviews, 6 comments, 0 inline comments (from the three files). I also read the PR body in full.
- New items since my last review:
- Reviewer 1's round-5 review (2026-11-11T15:36:32Z, approve). Note 1 (README: a turn can take about 4 s longer) is now moot in the text, but still true on v0.7.2: see my first non-blocking note. Note 2 (an old binary on
PATHon a re-run) is now my Finding 1, because it hits every fresh install. - No new comments since my last review. The newest comment is "Round 4: replies" (15:26:34Z), which I checked in round 5.
- The new PR body. Its top lines report the owner's decision on the default. See Finding 2.
- Merge
970863db: one conflict hunk, indocs/data-dependence.md(the Bob row). The resolution keeps the PR's row and addsmain's new "Learned 5-hour weights" row. Correct. - Merge
4b198d87: no conflict hunk. It brings inmain's one-file-per-row data-dependence layout (#1090). At this merge,features/bob-plugin.mdheldmain's short text and the page held the PR's text.971deb1fbrings them back in step. - Commit
971deb1f: I read the whole diff, and inbob_plugin.pythe code around it:read_preset,write_proxy_config,service_environment,setup,_setup_changes,Undo,find_binary,binary_problem,install_release_binaryand theconfigurerelease check.
- Reviewer 1's round-5 review (2026-11-11T15:36:32Z, approve). Note 1 (README: a turn can take about 4 s longer) is now moot in the text, but still true on v0.7.2: see my first non-blocking note. Note 2 (an old binary on
- Data-dependence files:
git diff 9966adf0..HEAD -- docs/changes 3 things in the row files and the template (thetoolfilterrow, the Bob row, one template line), and the same 3 indocs/data-dependence.md. The page matches the row files. The earliertoolfilterand Bob row edits of this PR are still there after the merges. - Earlier findings: R1-1 to R1-3, R2-1 and reviewer 1's round-3 finding are fixed on
main. All the round-4 notes are fixed, as I said in round 5. My round-3 note on an unknown shell (fish) is not changed and stays non-blocking. - Tests:
python3 -I -m unittest discover -s . -p 'test_bob_*.py'inbob-plugin/context-guru/scripts, under a temp HOME:Ran 197 tests in 132.463s,OK. - I did not run Go builds or Go tests (not approved). The new commit changes no Go code.
|
Integrator note, for the round-6 merge-gate finding: the owner (David Amid) decided the change of the Bob default in the integrator session.
The setup release-check finding (both reviewers) is being fixed now. |
|
Integrator note: the owner ruled the round-6 setup finding moot (David Amid, 2026-11-12): "there is no older proxy for bob this is moot point". The Bob plugin is new in v0.7.1, and no Bob install has a proxy older than the one it installs itself. The merge-gate finding is answered by the comment above. #973 merges at 971deb1 with no further change. |
Signed-off-by: DAVID AMID <[email protected]>
Setup wrote the default bob-ultrahigh with no release check. A proxy from v0.3.1 to v0.7.1 refuses the key `warm`, so setup failed with start_failed and no reason. - find_binary skips a binary older than PRESET_MINIMUM_RELEASE for the preset setup will write. Setup then downloads the latest release. - A pinned CONTEXT_GURU_VERSION that is too old gives reason=proxy_too_old. - The update tests use a v0.7.2 fake binary, so they stay offline. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
…-guru into worktree-fix-973b
Round 6: reply (head 602da27)Finding 1 (both reviewers), fixed in
Tests ( Mutation check: with both new checks disabled, all 3 new tests fail ( Side fix: Not changed (not blocking): the human yes for the default, the "Decided by" name, and the 3 small notes (flat-price assertion, price file in the undo snapshot, |
The owner ruled the round-6 setup finding moot on 2026-11-12: "there is no older proxy for bob this is moot point". 780359d8 was pushed before the stop reached the fixing agent. This commit returns the tree to 1bdf248, the head the owner's ruling and its CI cover. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]>
|
Integrator note: 780359d8 (the setup release check) was pushed before the stop reached the fixing agent. The owner ruled that finding moot, so 1dbbe6a returns the tree to 1bdf248 exactly ( |
#973 changed bob-plugin/ since v0.7.2. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
Bump the plugin versions for v0.7.3. - Claude Code plugin 0.7.2 -> 0.7.3: it follows the proxy release (#1109 changed two plugin tests and scripts/start-proxy.sh). - Bob plugin 0.1.0 -> 0.1.1: #973 (bob-ultrahigh becomes the default). - OpenCode plugin: no version file. Its first start now downloads proxy v0.7.3 (was v0.7.2). Nothing compares against PINNED_VERSION; the floor stays "v0.7.1 or later". The READMEs, the install guide and 3 tests follow. - Codex 0.2.12 and Pi 0.1.1: no change since v0.7.2. Behavior change: the OpenCode plugin's first download is proxy v0.7.3. Owner's yes, 2026-11-11, in the integrator session: "1107 approved". Data dependence: none. Reviews: 3 offload review rounds (GLM, then Bob while GLM was down). Round 3: both approve at 5d11267, which is the PR head. Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]>
Conflicts: - #973 (bob-ultrahigh preset): kept its presets, PRICED_PRESETS and the proxy_too_old preset check, next to this branch's strategy table reader and MINIMUM_BOB_RELEASE (0, 7, 1). BOB_CACHE_STRATEGIES stays removed. Tests now expect bob-ultrahigh as the default preset. - #1090 (data-dependence row files): the Bob plugin sentence moved to docs/data-dependence/features/bob-plugin.md; the page is rebuilt with cmd/gen-datadep. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Summary
This PR replaces the Bob preset
lossless-deferwithbob-ultrahigh, as decided in #1030.bob-ultrahighis context-guru'sultrahighpreset with 4 Bob changes. A test pins that it cannot drift fromultrahigh./inference/v1/chat/completionswith the user'sApikey, and use the user's Bob quota. They still fail open on an error. The saving from them is not measured yet.What changed
The preset (
BOB_PRESETSinbob_plugin.py; the same text isproxy/testdata/bob_ultrahigh.yaml). It isultrahigh, plus:extract_llmnames no model (source: incomingonly). Bob does not serveclaude-haiku-4-5; Bob picks its own model.extract_llm.allow_on_caching_backend: true. Bob bills a cache rewrite at the input rate.extract_llm_sweep.warm: true(feat(sweep): the warm path, an economic gate on a held answer (#491) #720), behind its cost gate.toolfilter.keep: Bob's 15 core tools, as before.Bob's flat prices (
bob-plugin/context-guru/prices.yaml):credits, feat: run the sweep and the LLM parts of ultrahigh on IBM Bob (bob-ultrahigh) #1030). The dollar rates are estimates, copied fromdeploy/service/prices.example.yaml.bob-ultrahigh, the plugin copies the file to the state folder and setsMODEL_PRICESin the launchd job. With any other preset, it removes both.configureputs back the old job, config and price file.Why lossy parts are allowed now: test T4 passed on the real Bob IDE (2026-11-11):
collapsecut a 700-row file. The model calledcontext_guru_expandin a stream.Other changes:
configurerefuseslossless-deferand the other presets: "NAME is not tested on Bob".doctor's deferral check now applies tobob-ultrahigh.docs/data-dependence.mddescribe the new preset.How it was tested
proxy/bobultrahigh_test.go:bob-ultrahighequalsultrahighwith exactly the 4 changes. Red first: withultrahigh's text copied as-is, it failed.bob-plugin/prices_test.go: the shippedprices.yamlloads the proxy's way, and every tier has read = write = input. Red first: withoutcache_read, a read priced at 0.1x.proxy/bobdefer_test.go: the 7 deferral tests pass with the full pipeline. One check changed: the model now sees 3 CG tools, not 1 (context_guru_expand,context_guru_adjudicate,context_guru_tools).configure --preset bob-ultrahighwrites the config, the price copy (0600) andMODEL_PRICES. Leaving it removes both. A failed restart puts everything back. Setup again keeps the prices.go build,go vet,gofmt: clean.go test -raceonbob-plugin(with 193 Python tests),components/all,config,tooldefer,apply: OK.go test ./proxy/(the whole package): OK.Not tested: the sweep and
extract_llmon real Bob traffic, because they cannot run there before item 4. T4 was one run, on one Mac, withcollapse.Open questions
ultrahigh's values (llm_max_per_request: 8,llm_max_per_session: 0).bob-ultrahighon 2026-11-11. Still open: measure it against −17.7% per turn on one backend (feat(proxy): label each Bob reply with the IBM backend that served it #975), net of the summary calls.Technical notes
MODEL_PRICESonly while the price copy exists.write_proxy_configis the one place that adds or removes it, so the job and the file cannot disagree.MODEL_PRICESfile stops the proxy (log.Fatalf). The Go test loads the exact shipped file, andconfigurerolls back on a failed/healthz.Assisted-By: Claude (Anthropic AI) [email protected]