Skip to content

fix(bob): setup skips a proxy that cannot list cache strategies - #1111

Merged
amiddavid merged 7 commits into
mainfrom
feat/bob-setup-skips-old-proxy
Nov 12, 2026
Merged

amiddavid merged 7 commits into
mainfrom
feat/bob-setup-skips-old-proxy

Conversation

@vz-ibm

@vz-ibm vz-ibm commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

#1093 is merged; this PR is now based on main. This PR's own changes are the commits fix(bob): setup skips a proxy that cannot list cache strategies and fix(bob): setup skips a proxy too old for the preset it writes.

Behavior change for Bob setup. Approved by the repo owner, @vz-ibm, on 2026-11-12.

  • Who: Bob users who run setup with a proxy older than v0.7.1 on PATH, or older than v0.7.2 with the default preset bob-ultrahigh, (for example from brew) or in the plugin's own path.
  • Old: setup used any proxy with the Bob gateway (--bob-upstream). The cache strategy commands then failed with the update error.
  • New: setup skips a proxy that cannot list its cache strategies (older than v0.7.1), or that is too old for the preset setup writes (bob-ultrahigh needs v0.7.2). It says why in binary_skipped=, and downloads the latest release into the plugin's own path. A dev build (no version) is still used.
  • Offline: when that download fails, setup stops with result=binary_install_failed, exit 2. It does not fall back to the skipped proxy (an old proxy cannot run bob-ultrahigh anyway). Approved by the repo owner on 2026-11-12.
  • Cost: setup can wait up to 5 s for an old proxy that starts serving when asked for its strategies (10 s if there are 2 such proxies).
  • Turn it off: update the old proxy to v0.7.2 or later (v0.7.1 is enough for lossless and off), or remove it.

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 passes binary_problem now also runs load_strategy_table once. On failure it is skipped, with the reason in reasons.
    • The check is in find_binary, not in binary_problem, because doctor and update also call binary_problem. Only setup calls find_binary.
    • doctor, update and configure do not change their behavior. configure now calls the shared preset rule. doctor still says binary=ok for an old proxy that has the Bob gateway.
  • The preset check is one rule: too_old_for_preset, used by setup and by configure's proxy_too_old check. Setup checks the preset it will write: the current preset on a re-run, else the default.
  • Setup output: one binary_skipped= line for each skipped proxy, then binary=installed after the download.
  • Docs: the README's install section, the setup skill (how to report 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

  • The whole Bob suite: 225 tests, OK, run with HTTPS blocked (https_proxy=http://127.0.0.1:9), so no test can reach the network. go test ./config/ ./components/all/: OK.
  • New tests, red first:
    • a proxy on PATH that cannot list strategies is skipped;
    • an old proxy that starts serving is skipped within the time limit;
    • the plugin's own proxy is still used, and probed once;
    • setup end to end: an old proxy on PATH is skipped, and setup downloads the latest release (from the existing fake release server, no real download);
    • a v0.7.1 proxy is skipped for the default preset, and setup downloads;
    • a v0.7.2 proxy and a dev build are still used;
    • a re-run with preset lossless keeps a v0.7.1 proxy;
    • offline: an old proxy is not used, setup fails with binary_install_failed, and no file changes but the state lock.
  • The test fake for the proxy now answers strategies with a small valid table by default. lists_strategies=False makes it act like an old proxy.

Technical notes

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 vz-ibm left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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-proxy is on PATH (for example from brew), and the user runs a first setup. find_binary accepts it, because v0.7.1 can list strategies. write_proxy_config (line 567) writes DEFAULT_PRESET = "bob-ultrahigh" (line 93). That preset has warm: true (line 85). The v0.7.1 proxy rejects that key and does not start. Setup reports result=start_failed and 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's warm: true came in v0.7.2)", and PRESET_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_healthy fails → start_failed. Only configure (line 1068) checks PRESET_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 because FakeProxy does 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, before find_binary), also skip a candidate whose binary_version is below PRESET_MINIMUM_RELEASE for the preset that setup will write (the current preset on a re-run, else DEFAULT_PRESET). Keep a dev build (version unknown) accepted, as configure does. 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, as CLAUDE.md says.

Non-blocking

  • find_binary now has a second check, but its reason text says "needs v0.7.1 or later" for any load_strategy_table failure. 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 commit c5602fc0 and 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_changes and the configure preset check in bob_plugin.py.
  • find_binary has one caller only (setup, line 760). So doctor and update do not change, as the PR says.
  • load_strategy_table scrubs the dashboard, store and record settings, runs in a temp folder on port 0, and has a 5 s limit. subprocess.run kills 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 BinaryCheckTest tests and the two SetupSkipsOldProxyTest tests. TempHome sets CONTEXT_GURU_BIN to a missing path, so a real proxy on the developer's PATH cannot leak into the managed-binary test. GOOD_BINARY does not answer strategies, 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.md adds one sentence. The same text is in docs/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 vz-ibm left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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_binary returned the brew proxy, and setup finished with exit 0 (only the strategy commands failed later). New: find_binary skips it and returns None. _setup_changes calls install_release_binary(), that raises, and setup prints result=binary_install_failed and returns 2 (bob_plugin.py:763-769). Bob is not routed at all.
    • Proof: _setup_changes at bob_plugin.py:759-769 has 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.md says 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=False on PATH, install_release_binary raises, and setup returns 2 with both binary_skipped=… cannot list cache strategies and result=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.

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.md does not accept an agent's report of a decision, so the owner should confirm it on the PR before merge.
  • doctor still says binary=ok for a proxy that setup now skips. The PR states this on purpose. A user who runs doctor after a failed setup can get a mixed message. A later PR could make doctor say "too old for cache strategies".
  • GOOD_BINARY in test_bob_control.py:476 does not answer strategies. Today no test runs setup a second time on a downloaded GOOD_BINARY, so nothing breaks. If one does later, find_binary will skip it and download again. Giving it the same strategies) case as fake_binary keeps the fakes alike.
  • Each candidate is now run twice (--help, then strategies). 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 commit 68fd6f1a brings only c5602fc0; its diff against the base equals that commit.
  • find_binary, binary_problem, load_strategy_table, install_release_binary, _setup_changes in bob_plugin.py. find_binary has one caller (setup, line 760). doctor, update and configure do not change.
  • load_strategy_table raises only RuntimeError for every failure (OSError, ValueError, timeout, bad JSON or rows), so the new except RuntimeError catches every probe failure. No exception leaks out of find_binary.
  • dict.fromkeys dedups a PATH binary that resolves to the managed one, so it is probed once. The new test test_the_managed_binary_is_still_used_and_probed_once pins this.
  • STRATEGIES_TIMEOUT is read at call time, so the patch to 1 s in the timeout test works. The fake uses exec sleep 30, so the kill on timeout reaches the only process and the pipes close.
  • An installed release is not probed again. install_release_binary refuses a tag below MINIMUM_BOB_RELEASE (v0.7.1), so that is safe.
  • The new tests in test_bob_control.py import fake_binary, FakeProxy and TempHome from test_bob_plugin, and use the existing FakeRelease and GOOD_BINARY. They assert exact output lines and the record's binary path.
  • Data dependence: the row file docs/data-dependence/features/bob-plugin.md and the generated row in docs/data-dependence.md have 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.

@amiddavid

Copy link
Copy Markdown
Collaborator

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]>
@vz-ibm

vz-ibm commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Round 1 replies. Both findings are fixed in ec6da32. The repo owner (@vz-ibm) decided both on 2026-11-12.

  1. Setup accepts a v0.7.1 proxy, but bob-ultrahigh needs v0.7.2 (reviewer 1): fixed, owner's choice "skip and download".
    • One rule, too_old_for_preset(binary, preset), used by setup and by configure's proxy_too_old check. A dev build (version unknown) passes.
    • Setup checks the preset it will write: the current preset on a re-run, else DEFAULT_PRESET.
    • New tests: a v0.7.1 proxy is skipped for the default preset and setup downloads (red first); a v0.7.2 proxy and a dev build are used; a re-run with lossless keeps v0.7.1. test_a_proxy_on_path_that_lists_strategies_is_used now uses v0.7.2.
  2. Offline, setup fails where it used to go on (reviewer 2): owner's choice "fail clearly", now named and tested.
    • No fallback. The PR's behavior-change block names it. An old proxy cannot run bob-ultrahigh anyway.
    • New test: an old proxy on PATH, the download raises, setup returns 2 with binary_skipped= and result=binary_install_failed, and no file changes but the state lock.
  3. Non-blocking: GOOD_BINARY now answers strategies (reviewer 2). The others stay as they are: the probe text, the overwrite while the service runs and doctor all existed before this PR, and the probe cost is named in the PR.

A test once reached the network. In the first run of this fix, UpdateTest.setUp downloaded the real latest release into a temp HOME, because the new check skipped its v0.5.1 fake. It is fixed in this commit: that fake is v0.7.2, and that setup call cannot download. The whole suite then passed with HTTPS blocked.

Checks: the whole Bob suite, 225 tests, OK, with HTTPS blocked. go test ./components/all/ ./config/ OK.

@vz-ibm vz-ibm left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ultrahigh needs v0.7.2): fixed.
    • find_binary(reasons, preset) now also skips a candidate when too_old_for_preset returns a version (bob_plugin.py:376-378).
    • _setup_changes computes the preset that write_proxy_config will write (bob_plugin.py:781-787). I traced both paths and they agree:
      • No record → port is new → read_preset would return DEFAULT_PRESET. Setup uses DEFAULT_PRESET directly.
      • Record → read_preset(port) gives the current preset. write_proxy_config(port) with preset=None keeps that same preset, or keeps a custom file as it is. custom is not in PRESET_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_config then refuses the file, as before.
    • A dev build (unknown) passes, because release_version raises and too_old_for_preset returns None. This matches the old configure rule.
    • Tests: v0.7.1 skipped with the exact reason line, then a download; v0.7.2 used; dev build used; a re-run on lossless keeps v0.7.1. In the re-run test, a wrong skip makes install_release_binary raise AssertionError. Setup catches it as binary_install_failed and returns 2, so the code == 0 assertion 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_clearly asserts exit 2, the binary_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_BINARY now answers strategies: done. The author kept the doctor text as it is, which is a fair choice, because that behavior existed before this PR.
  • configure refactor: the proxy_too_old check now calls too_old_for_preset(record.get("binary"), args.preset). Its result and detail text are the same as before (preset_minimum gives v0.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, update and configure do not change" is true for their behavior, but configure now calls the shared rule.
  • find_binary now 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.md asks.

What I checked

  • Last review: round 1, 68fd6f1a057270f7dc2bb1a0db43602c98f34c85, 2026-11-12T06:39:01Z
  • New commits read: 1 (ec6da326 fix(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.setUp now uses a v0.7.2 fake and patches install_release_binary to 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 in bob_plugin.py the 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 whole SetupSkipsOldProxyTest). FAKE_STRATEGIES is imported from test_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 --version uses 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 vz-ibm left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ultrahigh needs v0.7.2): fixed.
    • find_binary now takes preset and skips a candidate that too_old_for_preset rejects (bob_plugin.py:376-378).
    • _setup_changes passes the preset that write_proxy_config will write: read_preset(port) on a re-run, else DEFAULT_PRESET (bob_plugin.py:781-787). Both use the same record port, so the two agree.
    • A "custom" config or lossless has no entry in PRESET_MINIMUM_RELEASE, so no minimum applies. A dev build (version unknown) passes, because release_version raises and the rule returns None.
    • Tests pin each case: v0.7.1 skipped and download, v0.7.2 used, dev build used, re-run on lossless keeps 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_clearly checks exit 2, both output lines, and that only the state lock is new. _setup_changes returns before write_record, so this is right.
  • Reviewer 2, non-blocking GOOD_BINARY: fixed. It now answers strategies.

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_binary still accepts CONTEXT_GURU_VERSION=v0.7.1 (it checks only MINIMUM_BOB_RELEASE). Setup then writes bob-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_preset now runs before the undo block. A PermissionError on the config file (not FileNotFoundError) 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 (ec6da326 fix(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.setUp now uses a v0.7.2 managed fake and patches install_release_binary to 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=None gives no minimum, and the detail text is the same (preset_minimum gives v0.7.2, as the old f-string did).
  • Other tests that run setup: most patch find_binary. BinaryCheckTest calls find_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 --version is 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.

@vz-ibm

vz-ibm commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Round 2 replies. Both reviewers approve.

  • Stale PR text (both reviewers): fixed. The body now names both commits, the v0.7.2 floor for bob-ultrahigh, and that configure calls the shared rule.
  • install_release_binary still accepts a pinned v0.7.1 (reviewer 1): not changed here. It existed before this PR (feat(bob-plugin): add the bob-ultrahigh preset (replaces lossless-defer) #973). A pin is explicit. A later PR can check the preset minimum there too.
  • read_preset before the undo block, and 3 probe runs per candidate: no change; both reviews say they are safe.
  • The owner's yes: the repo owner will confirm it on this PR.

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]>
@vz-ibm
vz-ibm changed the base branch from feat/bob-strategies-from-proxy to main November 12, 2026 08:06

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ultrahigh needs v0.7.2): fixed in ec6da326. Both round-2 reviews checked it. The merge does not change bob_plugin.py or 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, "configure does not change"): fixed. The body now says v0.7.2 for bob-ultrahigh and that configure calls the shared rule.
    • install_release_binary accepts 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_preset before the undo block, 3 probe runs per candidate: kept. Both round-2 reviews said they are safe. I agree.

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.md says. 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 main as cfe8d6fb, so this line no longer applies.
    • Data dependence says setup runs each proxy "once". Setup now runs --help, strategies and --version for a passing candidate. All three are local and read no user data, so the data-dependence claim is still right.

What I checked

  • Last review: round 2, ec6da326db5961e91c021cfb60e376c513e1cc5e, 2026-11-12T07:39:53Z
  • New commits read: 1 (f9108e6c chore: 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..HEAD has 3 files: docs/reference/reference.md, metrics/metrics.go (a comment), proxy/promexport.go (a HELP string). This is #1105 from main. I read all 3 hunks. They change text only, no behavior.
    • git diff d63d3b79 cfe8d6fb is empty. So #1093 on main (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 is f9108e6c, 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 amiddavid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-ultrahigh needs v0.7.2): fixed in ec6da326. It is still present at the head. find_binary(reasons, preset) skips a candidate that too_old_for_preset rejects (bob_plugin.py:376-378). _setup_changes passes 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-ultrahigh and says that configure calls the shared rule.
  • install_release_binary still 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.md asks 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 against main holds 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. f9108e6c chore: merge main into feat/bob-setup-skips-old-proxy. It brings in from main: cfe8d6fb feat(bob): read the cache strategy offer from the proxy table (#1093), and e13ba47e docs(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_binary point: 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.
  • The merge is clean:
    • git diff ec6da326..f9108e6c --stat shows 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 cfe8d6fb is empty. The #1093 squash on main is the same tree as the #1093 branch head that this PR merged before. So the "keep ours" on the 2 conflicts drops nothing from main.
    • git diff d63d3b79 ec6da326 and git diff e13ba47e f9108e6c are 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.py diff 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. #1105 does 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.

@vz-ibm

vz-ibm commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Approved by the repo owner: setup skips a proxy older than v0.7.1, or older than v0.7.2 for bob-ultrahigh, downloads the latest release, and fails clearly when offline.

vz-ibm added a commit that referenced this pull request Nov 16, 2026
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]>
amiddavid added a commit that referenced this pull request Nov 19, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants