Repository navigation
fix(bob): setup skips a proxy that cannot list cache strategies - #1111
Conversation
The Bob plugin no longer keeps its own list of cache strategies (BOB_CACHE_STRATEGIES). configure reads the table from `context-guru-proxy strategies`, as the Codex plugin does, and offers the rows tagged "any" or "openai-chat". The offer stays exactly ["none"] today. - The reader is a copy of the Codex plugin's: loopback port 0, no config, a scrubbed env, a fresh temp dir, a 5 s time limit. Bad output is a clean error (reason=strategy_table_unreadable) with the update hint. There is no fallback list for an older proxy. - "openai-chat" names the OpenAI Chat Completions route. No row uses it yet. Bob does not filter by "openai": that is the Responses route. - Behavior change: MINIMUM_BOB_RELEASE goes from v0.3.1 to v0.7.1, because an older binary cannot list strategies. Setup and update refuse to download a release older than v0.7.1. Refs #1072 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Review fixes for PR #1093. - Offered now means: fits Bob's route AND the plugin can apply it. The plugin writes no cache strategy, so plugin_applies() accepts only none. A name that fits the route but cannot be applied gets reason=cache_strategy_not_supported_by_plugin, exit 2. - configure --show always reports the preset. A table error goes in cache_strategy_error and cache_strategy_detail, exit 0. - --cache-strategy none never reads the table, so it works on an older proxy. - The update hint also covers a proxy the plugin did not install. - README and the cache-strategy-picker skill describe the new fields. Refs #1072 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Setup used any context-guru-proxy with --bob-upstream. A v0.3.1 to v0.7.0 proxy (for example from brew) passed setup, and the strategy commands then failed. - find_binary now runs load_strategy_table once per candidate. A binary that fails is skipped with "cannot list cache strategies (needs v0.7.1 or later)" in binary_skipped=. Setup then downloads the latest release, as it does for any other skipped binary. - The check is in find_binary, not binary_problem, so doctor and update do not change. - Behavior change (approved by the owner on 2026-11-12): setup no longer settles on a proxy older than v0.7.1. An old proxy that starts serving costs setup up to 5 s (the probe time limit). Refs #1072 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[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]>
Brings in main through the merged PR #1093 branch. Conflicts: - #1090 (data-dependence row files): the setup sentence moved to docs/data-dependence/features/bob-plugin.md; the page is rebuilt with cmd/gen-datadep. - #973 (bob-ultrahigh preset): merged without a conflict here. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
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 | 68fd6f1a0572 |
blocking |
Verdict: blocking
Findings
- bob-plugin/context-guru/scripts/bob_plugin.py:372 — setup still uses a v0.7.1 proxy, but the default preset needs v0.7.2, so setup fails
- What fails: a v0.7.1
context-guru-proxyis on PATH (for example from brew), and the user runs a first setup.find_binaryaccepts it, because v0.7.1 can list strategies.write_proxy_config(line 567) writesDEFAULT_PRESET = "bob-ultrahigh"(line 93). That preset haswarm: true(line 85). The v0.7.1 proxy rejects that key and does not start. Setup reportsresult=start_failedand rolls back. It does not download the latest release. Before the merge of #973 the default preset worked on v0.7.1. The merge raised the need to v0.7.2, and this PR's check stayed at v0.7.1. - Proof:
bob_plugin.py:103-106: "An older proxy refuses unknown keys and does not start (bob-ultrahigh'swarm: truecame in v0.7.2)", andPRESET_MINIMUM_RELEASE = {"bob-ultrahigh": (0, 7, 2)}.config/config.go:429:dec.KnownFields(true), so an unknown key is an error._setup_changes(lines 760-803):find_binary→write_proxy_config(port)→start_service→wait_healthyfails →start_failed. Onlyconfigure(line 1068) checksPRESET_MINIMUM_RELEASE. Setup does not.- The new test
test_a_proxy_on_path_that_lists_strategies_is_used(test_bob_control.py:600) runs setup with a v0.7.1 fake and the default preset. It passes only becauseFakeProxydoes not read the config. So it pins a result that fails on a real v0.7.1 proxy. - The PR text and the README (README.md:58) say v0.7.1 is enough for setup.
- Fix: in
find_binary(or in setup, beforefind_binary), also skip a candidate whosebinary_versionis belowPRESET_MINIMUM_RELEASEfor the preset that setup will write (the current preset on a re-run, elseDEFAULT_PRESET). Keep a dev build (versionunknown) accepted, asconfiguredoes. Then change the v0.7.1 test to v0.7.2, add a v0.7.1 test that expects a download, and fix the README and PR text. This raises the approved floor from v0.7.1 to v0.7.2 for the default preset. So the owner must confirm it, asCLAUDE.mdsays.
- What fails: a v0.7.1
Non-blocking
find_binarynow has a second check, but its reason text says "needs v0.7.1 or later" for anyload_strategy_tablefailure. A v0.7.1+ binary that times out (for example on a slow first launch after a Gatekeeper check) gets the same "too old" text. This is rare, and setup then downloads a good binary. The text could say "cannot list cache strategies" without the version claim, or keep it. Your choice.- When the managed binary is the old one, setup overwrites it with the download while the old service may still run it. This path existed before for other skip reasons, so it is not new here.
What I checked
- The full diff
d63d3b79..68fd6f1a(7 files), the commitc5602fc0and the merge commit message, and the PR description. find_binary,binary_problem,load_strategy_table,install_release_binary,write_proxy_config,read_preset,binary_version,_setup_changesand theconfigurepreset check inbob_plugin.py.find_binaryhas one caller only (setup, line 760). Sodoctorandupdatedo not change, as the PR says.load_strategy_tablescrubs the dashboard, store and record settings, runs in a temp folder on port 0, and has a 5 s limit.subprocess.runkills the child on a timeout. So an old proxy that starts serving does not touch user data and does not hang setup.- The four new
BinaryCheckTesttests and the twoSetupSkipsOldProxyTesttests.TempHomesetsCONTEXT_GURU_BINto a missing path, so a real proxy on the developer's PATH cannot leak into the managed-binary test.GOOD_BINARYdoes not answerstrategies, but setup does not probe the downloaded binary, so the end-to-end test is valid. - Data dependence: the row file
docs/data-dependence/features/bob-plugin.mdadds one sentence. The same text is indocs/data-dependence.md, so the page matches the row. Kind and levels do not change. The new probe reads no user data and uses no network. - Fail open: this is plugin setup code, not a proxy component. No request path changes.
- I did not run tests. Live tests are not approved, and Go is not installed.
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 | 1 of 2 | 68fd6f1a0572 |
blocking |
Verdict: blocking
The code change is small and correct. One side effect of it is a behavior change that the PR does not name and no test pins.
Findings
- bob-plugin/context-guru/scripts/bob_plugin.py:372-379 — setup now fails where it used to work when the download fails, and the PR does not say so
- What fails: a user has a v0.5.1–v0.7.0 proxy with the Bob gateway on PATH (for example from brew). The machine is offline, GitHub is down or rate-limits, or the platform is not
darwin/amd64|arm64. Old:find_binaryreturned the brew proxy, and setup finished with exit 0 (only the strategy commands failed later). New:find_binaryskips it and returnsNone._setup_changescallsinstall_release_binary(), that raises, and setup printsresult=binary_install_failedand returns 2 (bob_plugin.py:763-769). Bob is not routed at all. - Proof:
_setup_changesatbob_plugin.py:759-769has no path back to a skipped candidate. The "Behavior change" block at the top of the PR names the skip and the download, and a 5 s / 10 s wait. It does not name "setup now fails when the download fails".CLAUDE.mdsays a side effect of a narrow fix needs the same naming and a human's yes. No test covers "old proxy on PATH + download fails":test_setup_says_why_it_downloads(test_bob_plugin.py:1477) uses a proxy with no--bob-upstream, which failed before this PR too. - Fix: pick one, and get the owner's yes for it.
- (a) Keep the new behavior. Add it to the PR's behavior-change block ("with no network, setup now fails in place of using the old proxy"). Add a test: a v0.7.0 fake with
lists_strategies=Falseon PATH,install_release_binaryraises, and setup returns 2 with bothbinary_skipped=… cannot list cache strategiesandresult=binary_install_failed. - (b) Fall back: when the download fails, use the first candidate that failed only the strategy check, and print a fact that says the strategy commands will not work until an update. Add the same test with exit 0.
- (a) Keep the new behavior. Add it to the PR's behavior-change block ("with no network, setup now fails in place of using the old proxy"). Add a test: a v0.7.0 fake with
- What fails: a user has a v0.5.1–v0.7.0 proxy with the Bob gateway on PATH (for example from brew). The machine is offline, GitHub is down or rate-limits, or the platform is not
Non-blocking
- The PR says the owner approved the behavior change on 2026-11-12. I cannot see that approval from the diff, and I did not read the PR comments in round 1.
CLAUDE.mddoes not accept an agent's report of a decision, so the owner should confirm it on the PR before merge. doctorstill saysbinary=okfor a proxy that setup now skips. The PR states this on purpose. A user who runsdoctorafter a failed setup can get a mixed message. A later PR could makedoctorsay "too old for cache strategies".GOOD_BINARYintest_bob_control.py:476does not answerstrategies. Today no test runs setup a second time on a downloadedGOOD_BINARY, so nothing breaks. If one does later,find_binarywill skip it and download again. Giving it the samestrategies)case asfake_binarykeeps the fakes alike.- Each candidate is now run twice (
--help, thenstrategies). For a v0.7.0 binary, the second run serves until the 5 s limit. The PR names this cost. The probe scrubs the dashboard, control DB, store and record settings and runs in a temp folder (bob_plugin.py:401-412), so it touches no user data.
What I checked
- Read the full diff
d63d3b79..68fd6f1a(7 files) and both commits. The merge commit68fd6f1abrings onlyc5602fc0; its diff against the base equals that commit. find_binary,binary_problem,load_strategy_table,install_release_binary,_setup_changesinbob_plugin.py.find_binaryhas one caller (setup, line 760).doctor,updateandconfiguredo not change.load_strategy_tableraises onlyRuntimeErrorfor every failure (OSError, ValueError, timeout, bad JSON or rows), so the newexcept RuntimeErrorcatches every probe failure. No exception leaks out offind_binary.dict.fromkeysdedups a PATH binary that resolves to the managed one, so it is probed once. The new testtest_the_managed_binary_is_still_used_and_probed_oncepins this.STRATEGIES_TIMEOUTis read at call time, so the patch to 1 s in the timeout test works. The fake usesexec sleep 30, so the kill on timeout reaches the only process and the pipes close.- An installed release is not probed again.
install_release_binaryrefuses a tag belowMINIMUM_BOB_RELEASE(v0.7.1), so that is safe. - The new tests in
test_bob_control.pyimportfake_binary,FakeProxyandTempHomefromtest_bob_plugin, and use the existingFakeReleaseandGOOD_BINARY. They assert exact output lines and the record's binary path. - Data dependence: the row file
docs/data-dependence/features/bob-plugin.mdand the generated row indocs/data-dependence.mdhave the same new sentence. Kind (metadata) and all three levels do not change. The new sentence is correct: the probe sends nothing over the network and reads no user data. - README and setup skill text match the new
binary_skipped=output. - Fail open: not in scope. This is setup code, not a pipeline component.
- I did not run the tests. Live tests are not approved, and Go is not installed. The Python suite was also not run by me.
|
Integrator note: the owner added this PR to v0.7.4 (2026-11-12). Both reviewers block in the last round. Please fix the findings, run the next offload-review round, then tell the integrator session. |
Review fixes for PR #1111. The owner decided both points on 2026-11-12. - find_binary also skips a proxy older than the preset setup will write needs (the current preset on a re-run, else bob-ultrahigh, which needs v0.7.2). The reason names the preset and its minimum. A dev build stays accepted. configure and setup share one rule, too_old_for_preset(). - Offline, setup fails with result=binary_install_failed and does not fall back to the skipped proxy. A test pins this. - UpdateTest's managed fake is now v0.7.2, and its setup may not download: with v0.5.1 the new check made it fetch a real release. - GOOD_BINARY answers `strategies`, like the other fakes. - README and the setup skill name both minimums. Refs #1072 Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
|
Round 1 replies. Both findings are fixed in ec6da32. The repo owner (@vz-ibm) decided both on 2026-11-12.
A test once reached the network. In the first run of this fix, Checks: the whole Bob suite, 225 tests, OK, with HTTPS blocked. |
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 | 2 of 2 | ec6da326db59 |
approve |
Verdict: approve
Both round-1 findings are fixed. The new commit is correct, and tests pin each new path.
Findings
None.
Status of round-1 findings
- Reviewer 1, finding 1 (setup accepts v0.7.1, but
bob-ultrahighneeds v0.7.2): fixed.find_binary(reasons, preset)now also skips a candidate whentoo_old_for_presetreturns a version (bob_plugin.py:376-378)._setup_changescomputes the preset thatwrite_proxy_configwill write (bob_plugin.py:781-787). I traced both paths and they agree:- No record →
portis new →read_presetwould returnDEFAULT_PRESET. Setup usesDEFAULT_PRESETdirectly. - Record →
read_preset(port)gives the current preset.write_proxy_config(port)withpreset=Nonekeeps that same preset, or keeps acustomfile as it is.customis not inPRESET_MINIMUM_RELEASE, so no preset check runs. That is correct, because setup does not change a custom body. - Unmanaged file →
RuntimeError→planned_preset = None→ no check.write_proxy_configthen refuses the file, as before.
- No record →
- A dev build (
unknown) passes, becauserelease_versionraises andtoo_old_for_presetreturns None. This matches the oldconfigurerule. - Tests: v0.7.1 skipped with the exact reason line, then a download; v0.7.2 used; dev build used; a re-run on
losslesskeeps v0.7.1. In the re-run test, a wrong skip makesinstall_release_binaryraiseAssertionError. Setup catches it asbinary_install_failedand returns 2, so thecode == 0assertion catches the defect.
- Reviewer 2 (me), finding 1 (offline setup now fails, not named, not tested): fixed with option (a).
- The PR's behavior-change block now has an Offline point with the old and new behavior. The README and the setup skill say it too.
test_offline_an_old_proxy_is_not_used_and_setup_fails_clearlyasserts exit 2, thebinary_skipped=line,result=binary_install_failed\ndetail=offline\n, no record, no plist, and no changed file except the new state lock.
- My non-blocking points:
GOOD_BINARYnow answersstrategies: done. The author kept thedoctortext as it is, which is a fair choice, because that behavior existed before this PR. configurerefactor: theproxy_too_oldcheck now callstoo_old_for_preset(record.get("binary"), args.preset). Its result and detail text are the same as before (preset_minimumgivesv0.7.2).
Non-blocking
- The PR body has 2 stale lines. "Turn it off: update the old proxy to v0.7.1 or later" should say v0.7.2 for the default preset. "
doctor,updateandconfiguredo not change" is true for their behavior, butconfigurenow calls the shared rule. find_binarynow runs each passing candidate 3 times (--help,strategies,--version). Each run has a 5 s limit, and the PR already names the probe cost. This is not a problem, only a fact to know.- The owner's yes for both behavior changes is in a PR comment and in the commit message. Both are under @vz-ibm's account but written by the author's session. The human integrator (@amiddavid) asked for the fixes. The owner can confirm it with one line before merge, as
CLAUDE.mdasks.
What I checked
- Last review: round 1,
68fd6f1a057270f7dc2bb1a0db43602c98f34c85, 2026-11-12T06:39:01Z - New commits read: 1 (
ec6da326fix(bob): setup skips a proxy too old for the preset it writes) - Read in full: 2 reviews, 2 comments, 0 inline comments (from the three files)
- New items since my last review:
- Comment by @amiddavid at 07:13:16Z (integrator: the PR is in v0.7.4, fix the findings). I checked that both findings are fixed.
- Comment by @vz-ibm at 07:38:38Z (round-1 replies). I checked each claim against the code and tests above. It also says a test reached the real network in a first run. I checked the fix:
UpdateTest.setUpnow uses a v0.7.2 fake and patchesinstall_release_binaryto raise, so that setup cannot download. - Reviewer 1's round-1 review (first read this round). Its finding is fixed, as shown above. Its non-blocking point on the reason text for a timed-out probe stays a fair choice for the author.
- The full diff
68fd6f1a..ec6da326(6 files), and inbob_plugin.pythe code around it:find_binary,too_old_for_preset,preset_minimum,binary_version,read_preset,write_proxy_config,record_port,_setup_changes,configure. - The changed tests in
test_bob_control.py(UpdateTest.setUp,GOOD_BINARY, the wholeSetupSkipsOldProxyTest).FAKE_STRATEGIESis imported fromtest_bob_plugin, where it is defined. - Data dependence: the row file and the generated page have the same new words ("and reads its version"). Kind (metadata) and the three levels do not change. Reading
--versionuses no network and no user data. - README and setup skill text match the new reason lines and the offline result.
- Fail open: not in scope. This is plugin setup code, not a pipeline component.
- I did not run tests. Live tests are not approved, and Go is not installed.
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 | ec6da326db59 |
approve |
Verdict: approve
Both round-1 findings are fixed. The new commit adds no new defect that I can find.
Findings
None.
Earlier findings
- Reviewer 1, finding 1 (v0.7.1 proxy accepted, but
bob-ultrahighneeds v0.7.2): fixed.find_binarynow takespresetand skips a candidate thattoo_old_for_presetrejects (bob_plugin.py:376-378)._setup_changespasses the preset thatwrite_proxy_configwill write:read_preset(port)on a re-run, elseDEFAULT_PRESET(bob_plugin.py:781-787). Both use the same record port, so the two agree.- A "custom" config or
losslesshas no entry inPRESET_MINIMUM_RELEASE, so no minimum applies. A dev build (versionunknown) passes, becauserelease_versionraises and the rule returnsNone. - Tests pin each case: v0.7.1 skipped and download, v0.7.2 used, dev build used, re-run on
losslesskeeps v0.7.1. The old v0.7.1 test now uses v0.7.2.
- Reviewer 2, finding 1 (offline setup fails, not named): fixed, by option (a).
- The PR's behavior-change block now has an "Offline" line. The owner's choice is in the PR comment of 2026-11-12 07:38.
test_offline_an_old_proxy_is_not_used_and_setup_fails_clearlychecks exit 2, both output lines, and that only the state lock is new._setup_changesreturns beforewrite_record, so this is right.
- Reviewer 2, non-blocking
GOOD_BINARY: fixed. It now answersstrategies.
Non-blocking
- The PR body's Who and Turn it off lines still say "v0.7.1". For the default preset the floor is now v0.7.2. The first line also names only the first commit as "this PR's own change". Update the text before merge.
install_release_binarystill acceptsCONTEXT_GURU_VERSION=v0.7.1(it checks onlyMINIMUM_BOB_RELEASE). Setup then writesbob-ultrahigh, and that proxy does not start. This needs an explicit pin, and it existed before this PR (#973). A later PR can check the preset minimum there too.read_presetnow runs before the undo block. APermissionErroron the config file (notFileNotFoundError) now leaves setup before any change, in place of inside the undo block. No file changes in either case, so this is safe.
What I checked
- Last review: round 1, 68fd6f1, 2026-11-12T06:39:00Z
- New commits read: 1 (
ec6da326fix(bob): setup skips a proxy too old for the preset it writes) - Read in full: 2 reviews, 2 comments, 0 inline comments (from the three files)
- New items since my last review:
- Reviewer 2's round-1 review (06:39:01): checked its finding and non-blocking points above.
- Comment by @amiddavid (07:13), integrator note: the PR is in v0.7.4 and needs this round. Nothing to check in code.
- Comment by @vz-ibm (07:38), round-1 replies: checked each claim against the diff. The "test reached the network" note:
UpdateTest.setUpnow uses a v0.7.2 managed fake and patchesinstall_release_binaryto raise, so it cannot download.
- The full diff
68fd6f1a..ec6da326(6 files), and the code around it:find_binary,too_old_for_preset,preset_minimum,binary_version,read_preset,write_proxy_config,_setup_changes,configure. configure's refactor keeps the old behavior:args.preset=Nonegives no minimum, and the detail text is the same (preset_minimumgivesv0.7.2, as the old f-string did).- Other tests that run setup: most patch
find_binary.BinaryCheckTestcallsfind_binary()with no preset, so no minimum applies, and its v0.7.1 cases stay valid. - Data dependence: the row file and the generated page have the same new text ("and reads its version"). Kind and levels do not change. Reading
--versionis local and reads no user data. - README and setup skill text match the new output lines.
- I did not run tests. Live tests are not approved, and Go is not installed.
|
Round 2 replies. Both reviewers approve.
The review budget (2 rounds) is used. |
main now has #1093 (merged as one commit), so this branch moves its base to main. The 2 conflicts were the same #1093 text on both sides; this branch keeps its own version, which adds the setup check. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
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 | 3 of 3 | f9108e6c8166 |
approve |
Verdict: approve
The one new commit is a merge of main. It brings only #1105 (docs and 2 help strings). The PR's own diff is byte-for-byte the same as the diff that both reviewers approved in round 2.
Findings
None.
Status of earlier findings
- Reviewer 1, round 1, finding 1 (v0.7.1 accepted,
bob-ultrahighneeds v0.7.2): fixed inec6da326. Both round-2 reviews checked it. The merge does not changebob_plugin.pyor its tests (git diff ec6da326..HEAD -- bob-plugin/is empty). - Reviewer 2, round 1, finding 1 (offline setup fails, not named): fixed by option (a) in
ec6da326. Same as above: the merge does not touch it. - Round-2 non-blocking points:
- Stale PR text (v0.7.1 in Who and Turn it off, "
configuredoes not change"): fixed. The body now says v0.7.2 forbob-ultrahighand thatconfigurecalls the shared rule. install_release_binaryaccepts a pinned v0.7.1: the author keeps it for a later PR. The reason is right: it is an explicit pin, and it existed before this PR (#973).read_presetbefore the undo block, 3 probe runs per candidate: kept. Both round-2 reviews said they are safe. I agree.
- Stale PR text (v0.7.1 in Who and Turn it off, "
Non-blocking
- The owner's yes is still not on the PR from the owner's own hand. The 07:40:51 comment says "the repo owner will confirm it on this PR". No later comment does so. The two behavior changes (skip and download; offline fails with exit 2) need that one line before merge, as
CLAUDE.mdsays. The integrator should check it before merge. - Two small stale lines in the PR body:
- Technical notes says "It also merges #1093's branch". #1093 is now on
mainascfe8d6fb, so this line no longer applies. - Data dependence says setup runs each proxy "once". Setup now runs
--help,strategiesand--versionfor a passing candidate. All three are local and read no user data, so the data-dependence claim is still right.
- Technical notes says "It also merges #1093's branch". #1093 is now on
What I checked
- Last review: round 2,
ec6da326db5961e91c021cfb60e376c513e1cc5e, 2026-11-12T07:39:53Z - New commits read: 1 (
f9108e6cchore: merge main into feat/bob-setup-skips-old-proxy) - Read in full: 4 reviews, 3 comments, 0 inline comments (from the three files)
- New items since my last review:
- Reviewer 1's round-2 review (07:39:54Z): approve. Its non-blocking points are handled above.
- Comment by @vz-ibm (07:40:51Z), round-2 replies: I checked the PR body against each claim. The text fix is done. The two "no change" items have correct reasons.
- No comment from a person after that. No inline comments.
- The merge commit:
git diff ec6da326..HEADhas 3 files:docs/reference/reference.md,metrics/metrics.go(a comment),proxy/promexport.go(a HELP string). This is #1105 frommain. I read all 3 hunks. They change text only, no behavior.git diff d63d3b79 cfe8d6fbis empty. So #1093 onmain(squash) is the same tree as the #1093 branch head that this PR was built on. The merge conflicts could not drop a #1093 change.diff <(git diff d63d3b79 ec6da326) <(git diff e13ba47e HEAD)is empty. So the PR diff against the new base is the same as the diff approved in round 2 (7 files, +206/−25).
- PR base is
main, head isf9108e6c, as "This review" says. - Data dependence: the row file and the generated page did not change in the merge. Kind and levels stay the same.
- Fail open: not in scope. This is plugin setup code, not a pipeline component.
- I did not run tests. Live tests are not approved, and Go is not installed.
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 | 3 of 3 | f9108e6c8166 |
approve |
Verdict: approve
The only new commit is a merge of main. The merge keeps this PR's own change exactly as it was, and drops nothing from main.
Findings
None.
Earlier findings
- Reviewer 1, round 1, finding 1 (setup accepts v0.7.1, but
bob-ultrahighneeds v0.7.2): fixed inec6da326. It is still present at the head.find_binary(reasons, preset)skips a candidate thattoo_old_for_presetrejects (bob_plugin.py:376-378)._setup_changespasses the preset that setup will write (bob_plugin.py:781-787). - Reviewer 2, round 1, finding 1 (offline setup fails, not named): fixed by option (a). The PR body has the Offline point. The test is still present at the head.
- Round 2 non-blocking points (stale PR text): fixed. The body now names v0.7.2 for
bob-ultrahighand says thatconfigurecalls the shared rule. install_release_binarystill accepts a pinned v0.7.1 (reviewer 1, round 2): kept by the author, with the reason that it existed before this PR (#973) and needs an explicit pin. I accept that reason.
Non-blocking
- The owner's yes is not yet on the PR from a human. The comment of 07:40:51 says "the repo owner will confirm it on this PR". No later comment does that.
CLAUDE.mdasks for a human developer's yes for each behavior change (the v0.7.2 floor for the default preset, and the offline failure). Get that one line before merge. - The PR body's Technical notes line "It also merges #1093's branch" is now history only. #1093 is in
main, and the PR diff againstmainholds only this PR's two fixes. You can delete the line.
What I checked
- Last review: round 2,
ec6da326db5961e91c021cfb60e376c513e1cc5e, 2026-11-12T07:39:54Z - New commits read: 1.
f9108e6cchore: merge main into feat/bob-setup-skips-old-proxy. It brings in frommain:cfe8d6fbfeat(bob): read the cache strategy offer from the proxy table (#1093), ande13ba47edocs(proxy): sharpen what the lost-credit counters can and cannot tell (#1105). - Read in full: 4 reviews, 3 comments, 0 inline comments (from the three files).
- New items since my last review:
- Comment by @vz-ibm at 07:40:51Z (round-2 replies). The stale PR text is fixed: I read the current PR body. The kept
install_release_binarypoint: I accept the reason (see above). "The owner will confirm": no confirmation yet (see Non-blocking). - Reviewer 2's round-2 review at 07:39:53Z. Its non-blocking points match mine and are dealt with.
- Commit
f9108e6c. I checked the merge resolution as follows.
- Comment by @vz-ibm at 07:40:51Z (round-2 replies). The stale PR text is fixed: I read the current PR body. The kept
- The merge is clean:
git diff ec6da326..f9108e6c --statshows only#1105's 3 doc lines (docs/reference/reference.md,metrics/metrics.go,proxy/promexport.go). No Bob file changes. So "this branch keeps its own version" did not change this PR's code.git diff d63d3b79 cfe8d6fbis empty. The #1093 squash onmainis the same tree as the #1093 branch head that this PR merged before. So the "keep ours" on the 2 conflicts drops nothing frommain.git diff d63d3b79 ec6da326andgit diff e13ba47e f9108e6care byte-identical. The PR diff against its base is exactly the two fixes reviewed in rounds 1 and 2 (7 files, +206 / -25).
- I read the full
bob_plugin.pydiff against the base again:find_binary,preset_minimum,too_old_for_preset,_setup_changes,configure. No change from round 2. - Data dependence: the row file and the generated page are unchanged since round 2, and still agree.
#1105does not touch them. - Fail open: not in scope. This is plugin setup code, not a pipeline component.
- I did not run tests. Live tests are not approved, and Go is not installed.
|
Approved by the repo owner: setup skips a proxy older than v0.7.1, or older than v0.7.2 for |
main changed the Bob plugin data-dependence row (#975, #1111). The row takes main's text, plus this PR's sentence on the status bar's money and unit. The page is rebuilt with gen-datadep. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
Plugin versions for v0.7.4: - Claude Code plugin 0.7.3 -> 0.7.4 (#1096, #1135, #1174, #1177, #1199, #1216). - Codex plugin 0.2.12 -> 0.2.13 (#1115, #1135). - Pi package 0.1.1 -> 0.1.2 (#1113). - Bob plugin 0.1.1 -> 0.1.2 (#1093, #1111, #1118, #1124, #1126, #1127). The owner's Bob hold (#1221) covers release tests only. - OpenCode: PINNED_VERSION v0.7.3 -> v0.7.4 in opencode-plugin/index.js, its README, docs/how-to/install-opencode-plugin.md and 3 tests. Behavior change: the version numbers; the OpenCode plugin's first start downloads proxy v0.7.4. Release bumps are approved by the owner ("I approve version bumps"). Data dependence: none. Reviews: 2 offload review rounds (GLM): both approve at ab79001. After it: 1422093, a merge of main with no hand resolution (remerge-diff 0; approval-still-valid: SAME CHANGE). Signed-off-by: DAVID AMID <[email protected]> Assisted-By: Claude Opus 5.5 <[email protected]>
Summary
Setup never settles on a proxy that #1093's strategy commands cannot use. #1093's review found this gap. The repo owner decided to close it in setup.
What changed
bob_plugin.py,find_binary: a candidate that passesbinary_problemnow also runsload_strategy_tableonce. On failure it is skipped, with the reason inreasons.find_binary, not inbinary_problem, becausedoctorandupdatealso callbinary_problem. Only setup callsfind_binary.doctor,updateandconfiguredo not change their behavior.configurenow calls the shared preset rule.doctorstill saysbinary=okfor an old proxy that has the Bob gateway.too_old_for_preset, used by setup and byconfigure'sproxy_too_oldcheck. Setup checks the preset it will write: the current preset on a re-run, else the default.binary_skipped=line for each skipped proxy, thenbinary=installedafter the download.binary_skipped=), and the Bob plugin's data-dependence row.Data dependence
No change in what the plugin reads from the user. Setup now runs each proxy binary it finds once, locally, to read the strategy table: no network, no user data.
How it was tested
https_proxy=http://127.0.0.1:9), so no test can reach the network.go test ./config/ ./components/all/: OK.losslesskeeps a v0.7.1 proxy;binary_install_failed, and no file changes but the state lock.strategieswith a small valid table by default.lists_strategies=Falsemakes it act like an old proxy.Technical notes
main(with feat(bob-plugin): add the bob-ultrahigh preset (replaces lossless-defer) #973 and docs: one file per data-dependence row, built into docs/data-dependence.md (#1088) #1090).