Repository navigation
feat(bob): add the one-click macOS installer and its release zip - #971
Merged
Merged
Conversation
vz-ibm
commented
Nov 9, 2026
vz-ibm
left a comment
Collaborator
Author
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 | 34a1c9f26e28 |
blocking |
Verdict: blocking
Findings
- bob-plugin/release/install-bob.sh:35-36 — the one-command install leaves its temp folder (about 25 MB zip and its unzipped copy) on every normal run, and the test that should catch this cannot fail
- What fails:
workislocaltomain, and the EXIT trap reads it. When the installer finishes,mainreturns and the script ends. The trap then runs outside the function, whereworkno longer exists. Underset -uthe trap fails withwork: unbound variable, andrm -rfnever runs. This happens on every run that reaches the installer: install, uninstall, "No" at the question, and an installer failure. Only thestoppaths (anexitinsidemain) clean up. The user also sees awork: unbound variableerror after a good install. - Proof: a test of the same shape, run with
/bin/bash3.2.57 (macOS):The output wasmain() { set -u; local work; work=$(mktemp -d /tmp/pr971/w.XXXXXX); trap 'rm -rf "$work"' EXIT; echo made $work; } maint.sh: line 1: work: unbound variable, and/tmp/pr971/w.rlR9lrwas still there. The same shape with the last command returning 3 (as the installer does on a failure) also kept its folder. Withexit 1insidemain(thestoppath), the folder was removed. - Why the test passes:
test_the_download_folder_is_removed_after_the_run(test_release.py:942) looks forself.root.glob("tmp/cg-bob-install.*"). But the test setsTMPDIRtoself.root(line 230), so the script makes<root>/cg-bob-install.XXXXXX, not<root>/tmp/.... The glob always returns[], so the test passes whether or not the folder is removed. - Fix: do not make
worklocal, or expand it when the trap is set (trap "rm -rf '$work'" EXIT, since mktemp gives a safe name), or remove the folder after the installer runs and keep its exit code. Change the test toself.root.glob("cg-bob-install.*"). Add one more check that the folder is removed after a fullyinstall too, and that stderr has nounbound variable.
- What fails:
Non-blocking
.github/workflows/release.yaml: the Bob zip is built after GoReleaser has already published the tag's release. Ifmake bob-releasefails (for examplenpm ci), the release is public with no Bob files.install-bob.shthen stops safely on the missing sum file, butreleases/latest/download/install-bob.shis a 404 until someone fixes it by hand. Think about building the zip before the GoReleaser step and uploading after it.GET /expand(proxy.go:3011) checks the owner only againstx-context-guru-sessionor?session=. A Bob IDE session is now keyed onX-Task-Id, so a manual/expandcall for a Bob IDE marker needs?session=<task id>. The model-driven expand loop does not use this path, so no current flow breaks. It may help to say this in the docs.- Install
.command, reinstall path: when the user picksr, the old install is removed first. If the new install then fails,rollbacksays "Your files are as they were before", but the old install is gone. The message could say that the old install was removed too. - The status bar reads
/api/sessions?agent=bob(session id,saved) and/api/cachestate. These are metadata. Thedocs/data-dependence.mdBob plugin row namesstatusonly. One more sentence about the status bar would make the row complete.
What I checked
CLAUDE.md,docs/design.md(session section), the PR body, and the 7 commits in354fcb32..34a1c9f2.- Go:
session.Explicitand the host ids,apply.ExplicitSession, every call site of the session header inproxy/(chat, serve observe-shadow, expand repair,newRecCtx,/compact,/expand),bobUsageandbobResponseUsage,streamRecOn, and the dash alias comment. The X-Task-Id read is limited tobobModelPath. It comes after the header and the body ids.apply.go:505gets the already-resolved id througho.Session, so the alias rule still holds. I found no defect in the Go code. I read the names and structure of the new Go tests (bobsession_test.go,bobusage_test.go,bobprofile_test.go,dash_test.go), not every assertion line. - Shell:
install-bob.sh,package.sh, both.commandfiles,reset.sh, in full. Bash 3.2 behavior checked with 3 small local scripts (no Go, no project code run). - Python:
bob_plugin.py,bob_hooks.py,bob_route.py, in full.test_release.py: setup,BootstrapTest,PackageTest. I did not read every line oftest_bob_plugin.py,test_bob_control.pyor the rest oftest_release.py. - TypeScript:
client.ts,model.ts,extension.ts,package.json. I did not read the TS tests orpackage-lock.jsonline by line. All 296resolvedURLs in the lock point toregistry.npmjs.org. - Build and release: the Makefile targets,
release.yaml,.gitignorefordist/and*.vsix, and the git file modes (the scripts are 100755). - I did not read the 7
SKILL.mdfiles or the two READMEs line by line. - No Go build or test was run. Live tests are not approved, and Go is not on this machine.
vz-ibm
commented
Nov 9, 2026
vz-ibm
left a comment
Collaborator
Author
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 | 34a1c9f26e28 |
blocking |
Verdict: blocking
Findings
- bob-plugin/release/install-bob.sh:37 — the EXIT trap never removes the temp folder, and the test that should catch it cannot fail
- What fails:
workislocaltomain. The traprm -rf "$work"runs at shell exit, aftermainhas returned, soworkis out of scope. Withset -uthe trap aborts withwork: unbound variable. Every run that gets past the download then:- leaves
$TMPDIR/cg-bob-install.XXXXXXon disk. It holds the full zip (about 25 MB), the unzipped package and both proxy binaries; - prints
bash: line 66: work: unbound variableto the user's terminal after the installer's own "Done" text.
This happens for install and for uninstall, on success and on failure. The PR text says "It removes its temp folder when done". That is not true.
- leaves
- Proof: I ran the real script with a local
file://release that holds a stub.command, on macOS/bin/bash3.2.57:When the stub exits 1,$ TMPDIR=$R/tmp CG_BOB_RELEASE_URL=file://$R/rel CG_BOB_TTY=$R/tty /bin/bash < bob-plugin/release/install-bob.sh Downloading context-guru for IBM Bob… ✓ download matches SHA-256 fake-installer-ran /bin/bash: line 66: work: unbound variable rc=0 $ ls $R/tmp cg-bob-install.VDXufkrc=1still comes through, so only the cleanup is broken.
The test cannot catch it.test_the_download_folder_is_removed_after_the_run(test_release.py:938-942) globsself.root / "tmp/cg-bob-install.*". ButTMPDIRisself.root(test_release.py:230), so the folder isself.root/cg-bob-install.*. There is notmp/level, so the glob always returns[]and the test always passes. - Fix:
- Do not make
worklocal. Or runrm -rf "$work"explicitly after the installer returns and keep its exit code. Or expand the path when the trap is set:trap "rm -rf '$work'" EXIT. A path with'is safe here becausemktempmakes the name. - In the test, glob
self.root.glob("cg-bob-install.*"). - Also check that
stderrhas nounbound variabletext.
- Do not make
- What fails:
Non-blocking
Install context-guru for Bob.command: the installer creates~/.bob/playgroundbefore the "binary has no Bob support" check and before setup. A rollback keeps the folder. That is deliberate, because the folder is Bob's. But the PR says "On any failure … it undoes everything". Say in the README and PR that the playground folder is the one change that stays.proxy/bobusage.go:bobResponseUsagesplits the whole SSE body into strings on every Bob response. It runs only on the sniffer window (bounded), so the cost is small. Note only.proxy/proxy.go:3011(/expandendpoint) still scopes byx-context-guru-sessiononly. A Bob IDE session is now keyed onX-Task-Id. So a manual/expandcall from the Bob IDE without the CG header cannot reach its own stash. The model-driven expand loop is not affected. Mention this as a known limit, or pass the same id here.bob-plugin/release/install-bob.sh: the SHA-256 file and the zip come from the same release over the same TLS channel. So the check proves integrity, not origin. The PR says this. It is the same model as the Claude plugin'sinstall.sh. Note only.
What I checked
- Read
CLAUDE.md, the relevant parts ofdocs/design.md, the PR body and all 7 commits (git log 354fcb32..HEAD). - Read the full Go diff:
session/session.go: host ids come last inExplicit,ExplicitStrictis unchanged, and the new table test covers this;apply(the rename toExplicitSession, and that the grace alias still uses"");proxy/proxy.go(explicitSessionOfis used at the pipeline, the expand repair, the observe shadow record and the wire recorder;bobModelPathgates both X-Task-Id andbobUsage);proxy/recctx.go,proxy/dashcapture.go,proxy/bobusage.go.
- Checked that
upstreamForkeepsstatic.path, soup.path == bobModelPathinservematchesstatic.pathinchat. bobUsagefails open. A missing, non-integer or negative count returnsbase. So does a 1h write larger than the write, and read+write larger than prompt. Other routes keep the shared parser.- Data dependence: the new rows for the session tracker, billed-token records and the Bob plugin are present. All are metadata only.
- Read in full:
bob_plugin.py,bob_route.py,bob_hooks.py,reset.sh, both.commandfiles,install-bob.sh,package.sh, the Makefile targets,release.yaml, the Go test runners, and the status barsrc/*.ts. - Checked the fail-closed parts of the installer:
- the package check refuses a link or an unlisted file;
- the consent default is No;
- a rollback runs on HUP/INT/TERM after the first change;
- the uninstaller deletes our files only after
result=removed; - the
plugin_is_oursandContextGuruManagedchecks are in place; - the zip name in the SHA-256 file is checked against
*/*and...
- Skimmed the Python and TS test files (test_bob_plugin.py, test_bob_control.py, test_release.py, statusbar tests). I did not read every test line. I looked closely at the BootstrapTest class, where finding 1 is.
- Did not read
bob-plugin/statusbar/package-lock.jsonline by line (generated, 3,886 lines). - No Go build or test was run, because live tests are not approved. The only run was the bash reproduction above, in
/tmp.
vz-ibm
force-pushed
the
feat/bob-installer
branch
from
November 9, 2026 09:25
34a1c9f to
a36a4fa
Compare
Collaborator
Author
Round 1: repliesBoth reviewers found the same bug. It is real, and it was mine. Fixed in R1-1 and R2-1: the temp folder is never removed, and its test cannot fail. Fixed.
Non-blocking, fixed in
Non-blocking, no change:
Checks
|
vz-ibm
commented
Nov 9, 2026
vz-ibm
left a comment
Collaborator
Author
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 | a36a4fa9afef |
approve |
Verdict: approve
Findings
None.
Earlier findings
- R1-1 and R2-1 (the temp folder stays, and its test cannot fail): fixed in
7ba54fef.install-bob.sh:39now expands the path when it sets the trap.install-bob.sh:63-67removes the folder after the installer returns, keeps the exit code and clears the trap.- I ran the same shape with macOS
/bin/bash3.2.57. With an installer that exits 3, the script exits 3 and the folder is gone. Withexit 1insidemain(thestoppath), the folder is gone too. - The tests now glob
self.root.glob("cg-bob-install.*"), which is whereTMPDIR=self.rootputs the folder. They also check stderr forunbound variable. They cover a No, a full install and a failed install. The failed install also checks the exit code.CONTEXT_GURU_BOB_APPpoints at the removedbob_app, so the installer stops withbob_missing(exit 1), as the test expects.
- R1 non-blocking, release order: fixed in
a36a4fa9. The zip is now built before GoReleaser, intobob-dist/, which--cleandoes not empty. The upload still runs after GoReleaser, on tags only./bob-dist/is in.gitignore, so GoReleaser's dirty-tree check stays clean.BOB_RELEASE_BUILDnow sits under$(BOB_DIST), so nothing is left indist/either. The snapshot artifact paths are updated. - R1 non-blocking, reinstall message: fixed in
a36a4fa9.rollbacknow says that the old install was removed.REINSTALLis set beforerollbackcan run. A new test covers it. - R1 non-blocking, data-dependence row: fixed in
2bf2b267. The row now namesdoctorand the status bar and the fields they read. All are counts, times and ids. - R1 and R2 non-blocking,
GET /expandandX-Task-Id: the author does not change it now. I accept the reason. Nothing in the plugin calls/expand, and the pipeline's expand path uses the Bob session. The author will open an issue. - R2 non-blocking, playground folder and integrity vs. origin: the author's reasons are right. These are notes only.
Non-blocking
2bf2b267addsnpm ci --ignore-scripts. I checkedpackage-lock.json: no package hashasInstallScript, so the build does not need any install script.
What I checked
- Last review: round 1,
34a1c9f26e2828b90ee97f6c391fa2a2b057572a, 2026-11-09T09:02:21Z. - New commits read: 3. The author rebased the branch.
git range-diffshows commits 1-5 andd4b298d8are unchanged.4a45bab8differs from8f59a772only by the--ignore-scriptsflag in the Makefile.2bf2b267fix(bob-plugin): status bar never hangs on a cut-off reply; review fixes7ba54feffix(bob): the one-command install removes its temp foldera36a4fa9fix(release): build the Bob zip before the release is published
- Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 2's round-1 review. Its finding 1 is the same as my finding 1, and it is fixed (see above). I checked its non-blocking notes against the author's replies.
- The author's "Round 1: replies" comment (09:25:59Z). I checked each reply against the code, as listed under "Earlier findings".
- The full diff
34a1c9f2..a36a4fa9(417 lines), and the code around it:install-bob.sh, all ofmain.- The
rollbackfunction and theREINSTALLflow inInstall context-guru for Bob.command. release.yamlfrom the test steps to the artifact upload.- The
bob-statusbarandbob-releasetargets in the Makefile. .gitignore.
client.tsgetJson:- It settles once.
failreadsdeadlineandrequestonly after both are defined.- A non-200 reply, a body that is too large,
aborted, andclosewith an incomplete reply all reject once.endaftercompleteresolves, and theclosethat follows does nothing. - The new cut-off test sends
Content-Length: 100with 5 bytes and then closes the socket. It shows the old hang.
model.tsandpoll: a missingsavednow showssaved —. A real 0 still showssaved 0. The changed tests assert the exact text.docs/data-dependence.md: the new Bob plugin row.- No Go build or test was run. Live tests are not approved. The only runs were 2 bash 3.2 scripts in
/tmp.
vz-ibm
commented
Nov 9, 2026
vz-ibm
left a comment
Collaborator
Author
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 | a36a4fa9afef |
approve |
Verdict: approve
Findings
None.
Status of earlier findings
- R1-1 and R2-1 (the temp folder is never removed, and its test cannot fail): fixed in
7ba54fef.mainnow removes$workafter the installer returns, keeps the exit code, and clears the trap. The trap is nowtrap "rm -rf '$work'" EXIT, so it expands the path when it is set. Thestopand Ctrl-C paths still clean up.- I ran the new script on macOS
/bin/bash3.2.57 against a localfile://release with a stub installer:- stub exits 0:
rc=0, 0 folders left, nounbound variable; - stub exits 3:
rc=3, 0 folders left; - wrong SHA-256:
rc=1, "does not match", 0 folders left.
- stub exits 0:
- The tests now glob
self.root.glob("cg-bob-install.*"), the folder thatTMPDIR=self.rootmakes. They check stderr forunbound variable. They cover a No, a full install, and a failed install with its exit code. These tests can fail.
- R1 non-blocking, release order: fixed in
a36a4fa9.- The zip is now built before GoReleaser, into
bob-dist/.--cleandoes not empty that folder, and.gitignorelists/bob-dist/, so GoReleaser sees a clean tree. - A failed
npm ciorgo buildnow stops the job before a release exists. - The upload and the snapshot artifact paths both use
bob-dist/. make bob-releasekeepsdistas theBOB_DISTdefault.
- The zip is now built before GoReleaser, into
- R1 non-blocking, reinstall message: fixed in
a36a4fa9.rollbackchecksREINSTALL.REINSTALLis set at line 110, before the trap and everyrollbackcall.- The new test installs once, then reinstalls with a proxy that dies, and checks the new text.
- R1 non-blocking, data-dependence row: fixed in
2bf2b267. The row now namesdoctorand the status bar, and the fields they read. All of them are counts, times and ids. - R1 and R2 non-blocking,
/expandscoped by the CG header only: the author accepts it and will open an issue. I accept this. No plugin path calls the manual/expandendpoint. - R2 non-blocking, the playground folder stays after a rollback: the author rejected it, because the folder is Bob's. I accept this reason.
- R2 non-blocking, the check proves integrity, not origin: the author agrees, and the PR already says so. No change needed.
Non-blocking
install-bob.sh:55:trap "rm -rf '$work'"breaks ifTMPDIRholds a'. On macOS,TMPDIRis a/var/folders/...path, so this does not happen in practice. Note only.client.ts:fail()now callsrequest.destroy()on every error path. That is right. On a good reply,endsetssettledbeforeclose, andresponse.completeis true, soclosedoes nothing. I found no double settle.
What I checked
- Last review: round 1,
34a1c9f26e2828b90ee97f6c391fa2a2b057572a, 2026-11-09T09:04:29Z. - New commits read: 3 changed since my last review. The branch was rebased, so
34a1c9f2is not an ancestor of HEAD. I readgit diff 34a1c9f2 a36a4fa9: 13 files, 417 lines, in full.2bf2b267fix(bob-plugin): status bar never hangs on a cut-off reply; review fixes7ba54feffix(bob): the one-command install removes its temp foldera36a4fa9fix(release): build the Bob zip before the release is publishedae7fb838..d4b298d8were rebased. The tree diff shows no change in them beyond the 3 commits above.
- Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files).
- New items since my last review:
- The author's "Round 1: replies" comment (09:25:59Z). I checked each reply against the code. See "Status of earlier findings".
- Reviewer 1's round-1 review (09:02:21Z). I first read it in this round. Its finding is the same as mine and is fixed. Its 4 non-blocking notes are handled as listed above.
- Checked
client.tsaround the change. The new handlers areaborted,errorandclosewith!response.complete. The new test makes a reply that is cut off mid-body and checks that the call rejects within the deadline. - Checked the
saved —change:pollleavessavedundefined when there is no number.formatSaved(undefined)returnssaved —. The tests are updated to match, and the one test that needssaved 0now passessaved: 0. - Checked
--ignore-scripts: onlykeytar(optional) and@vscode/vsce-signinpackage-lock.jsonhave install scripts. The author reports that the build and the.vsixwork without them. I did not run npm. - Checked the README edits: the stale "No status bar yet" line is gone, and the
signalhook note is correct. - No Go build or test was run, because live tests are not approved. The only runs were the 3 bash reproductions above, in
/tmp.
vz-ibm
force-pushed
the
feat/bob-installer
branch
2 times, most recently
from
November 9, 2026 14:24
98545ba to
3b760c3
Compare
amiddavid
force-pushed
the
feat/bob-installer
branch
from
November 9, 2026 16:07
3b760c3 to
c965219
Compare
Collaborator
Summary
What changed
How it was tested
Release zip
|
amiddavid
force-pushed
the
feat/bob-installer
branch
from
November 9, 2026 16:28
c965219 to
002d192
Compare
Collaborator
Summary
How it was tested
|
A Bob user double-clicks one .command file to install context-guru for IBM Bob, and one to remove it. - The installer checks the Mac, Bob, python3 and every package file, shows the plan, and asks once. It quits Bob but never kills it. It checks each step, and on any failure or interrupt undoes everything. - It creates Bob's missing ~/.bob/playground folder. Bob runs a chat with no folder open there but does not create it, so every shell command in such a chat failed. - The uninstaller removes only our files, and only after a full undo. It keeps the dashboard history unless the user says yes to a second question. - The package check refuses an unlisted file or a link. make bob-release builds one zip with both Mac proxies (arm64, amd64), the plugin and the status bar. The release workflow attaches it and its SHA-256 to the GitHub release. The zip is never in git. The .command tests run on macOS only; on Linux they skip, and the packager test runs. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
curl -fsSL .../releases/latest/download/install-bob.sh | bash install-bob.sh downloads the release zip, checks it against the release SHA-256 and runs the installer in it. A file curl downloads has no quarantine mark, so macOS does not block the unsigned installer. "bash -s uninstall" runs the full uninstaller the same way. - A missing sum or a mismatch stops before anything runs. - The installer reads the user's answers from the terminal, not from the pipe that carries the script. - The whole script is one function, called on the last line, so a download cut short runs nothing. - It removes its temp folder when done. The release workflow attaches install-bob.sh, under a fixed name, so the latest/download URL always works. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
The EXIT trap read a local of main after main returned, so under set -u it failed with "work: unbound variable" and left the 25 MB download behind on every run. main now removes the folder after the installer returns and keeps its exit code; the trap, for stop and Ctrl-C, expands the path when it is set. The old test globbed tmp/cg-bob-install.* under a TMPDIR that has no tmp/ level, so it could never fail. The new tests glob the right place, check stderr, and cover a full install and a failed one. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
The zip was built after GoReleaser had published the tag's release. A failed build (npm ci, for example) left a public release without the Bob files, and the one-command install then failed. The workflow now builds the zip first, into bob-dist/, which GoReleaser's --clean does not empty. A failed build stops the tag before a release exists. make bob-release takes BOB_DIST; the default stays dist. A failed reinstall no longer says "your files are as they were before": the old install was removed before the new one started. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Vitaly Zabershinsky <[email protected]>
communicate() flushes stdin. The test had closed it already. Set it to None. Assisted-By: Claude Opus 5.5 <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
amiddavid
force-pushed
the
feat/bob-installer
branch
from
November 9, 2026 20:14
002d192 to
c3774e1
Compare
Collaborator
Summary
How it was tested
|
amiddavid
reviewed
Nov 9, 2026
amiddavid
left a comment
Collaborator
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 1 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | fresh | 1 of 2 | 3 of 3 | c3774e1c216a |
approve |
Verdict: approve
Findings
None.
Earlier findings
- R1-1 and R2-1 (the temp folder stays, and its test cannot fail): still fixed. The rebase kept the fix as
7402a221.install-bob.sh:39expands the path when it sets the trap.install-bob.sh:63-67removes the folder after the installer returns, keeps the exit code and clears the trap.- The tests (
test_release.py:952-973) globcg-bob-install.*, check stderr forunbound variable, and cover a No, a full install and a failed install.
- R1 non-blocking, release order: still fixed.
release.yamlbuilds the zip before the GoReleaser step, intobob-dist/./bob-dist/is in.gitignore. The upload runs after GoReleaser, on tags only. Snapshot artifacts include the zip, the sums andinstall-bob.sh. - R1 non-blocking, reinstall message: still fixed.
Install context-guru for Bob.command:186-192says the old install was removed.REINSTALLis set at line 110, before anyrollbackcall. Test attest_release.py:726. - R1 non-blocking, data-dependence row: fixed in #968, as the author said. I checked
docs/data-dependence.md:239. The row namesstatus,doctorand the status bar, and the fields they read. - R1 and R2 non-blocking,
/expandandX-Task-Id: the author opened issue #972, as promised. It is open. No plugin path calls the manual/expandendpoint. - R2 non-blocking, playground folder and integrity vs. origin: the author rejected them with reasons I accepted in round 2. Nothing changed.
The new commit
c3774e1c(test only, correct).test_release.py:559setsrun.stdin = Noneafterrun.stdin.close().- Why: Python 3.13's
communicate()flushesstdin. The test had closed it, so the flush raisedValueErrorand failed the test on 3.13. - The fix is safe.
communicate()reaches the pipe only through thestdinattribute. WithNoneit does not touch it. The file descriptor is already closed, which is what the test wants. Older Pythons behave the same. Nothing aftercommunicate()readsrun.stdin. - No shipped code changes. The installer script is not touched.
- Why: Python 3.13's
Non-blocking
install-bob.sh:39:trap "rm -rf '$work'"breaks ifTMPDIRholds a'. Reviewer 2 named this in round 2. macOSTMPDIRis a/var/folders/...path, so it holds no quote. Note only.
What I checked
- Last review: round 2,
a36a4fa9afef6c47f0668eb5002143e91c8fa949, 2026-11-09T09:32:25Z. - New commits read: the round-2 head
a36a4fa9is gone from the repo. The author rebased the branch 3 times after round 2 (comments at 16:22, 16:47 and 21:53). I could not rungit diff a36a4fa9..HEAD; I re-read the whole PR instead.- The branch now holds 5 commits on base
10329879:6d6dc454(installer and zip),f2ff9826(one-command install),7402a221(temp folder fix, the rebased7ba54fef),c5e54056(release order fix, the rebaseda36a4fa9),c3774e1c(the Python 3.13 test fix). - The only new content since round 2 is
c3774e1c, one line. The author's comments say the two later rebases changed nothing; the commit stats and the full file read agree.7402a221andc5e54056carry the same patches round 2 approved.
- The branch now holds 5 commits on base
- Read in full: 4 reviews, 4 comments, 0 inline comments (from the three files).
- New items since my last review:
- Reviewer 2's round-2 review (09:32:51Z). It approved. I checked its 2 non-blocking notes: the
TMPDIRquote note still holds (above); theclient.tsnote is about code that moved to #968 with the rebase, so it is out of this PR now. - The author's 3 rebase comments (16:22:39Z, 16:47:26Z, 21:53:54Z). Each names its new head, the file list and the test runs. The 21:53 comment reports one flaky dash test (
TestDashboardAddsNoRequestLatencyWithContentCapture), a known load flake, rerun passed. This PR does not touch that code. - Commit
c3774e1c. Reviewed above.
- Reviewer 2's round-2 review (09:32:51Z). It approved. I checked its 2 non-blocking notes: the
- The full diff
10329879..c3774e1c: 10 files, 1874 insertions. I read every file in full, not only the diff lines:install-bob.sh(70 lines),package.sh(41), both.commandfiles (272 and 242),README.md(125),test_release.py(1068).release.yaml,Makefile,.gitignore,bobplugin_test.gofrom the diff.
- Checks I made on the re-read:
- The commit sizes add up to the diff: 1618 + 207 + 29 + 44 + 1 = 1899 gross, 1874 net after the fix commits' edits. No file outside the 10.
- The release sums file lists only the zip name, which matches what
install-bob.sh:45-52accepts. BootstrapTestandPackageTest: on Linux the darwin-onlyReleaseclass skips, andPackageTestskips withoutzip, soTestBobReleasePythonSuitepasses on the eval box even though the box has nozip. This matches the author's test runs.- Issue #972 exists and is open. The data-dependence row is in
main.
- No Go build or test was run. Live tests are not approved, and Go is not on this machine.
amiddavid
reviewed
Nov 9, 2026
amiddavid
left a comment
Collaborator
There was a problem hiding this comment.
| Reviewer | Kind | Started by | Context | Review | Round | Head | Verdict |
|---|---|---|---|---|---|---|---|
| Reviewer 2 (glm, user of @amiddavid) | GLM rits/zai-org/glm-5-3 via Claude Code 2.1.321 | offload-review skill, @amiddavid's session | fresh | 2 of 2 | 3 of 3 | c3774e1c216a |
approve |
Verdict: approve
Findings
None.
Status of earlier findings
- R1-1 / R2-1 (the temp folder is never removed, and its test cannot fail): still fixed. The fix lives in
7402a221now. Its patch is byte-identical to7ba54fef, which I verified in round 2 with bash 3.2 runs. - R1 non-blocking, release order: still fixed. The fix lives in
c5e54056. Patch byte-identical toa36a4fa9. - R1 non-blocking, reinstall message: still fixed. Same commit, same patch.
- R1 non-blocking, data-dependence row: fixed in
2bf2b267. That commit left this PR and merged to main through #968. Out of this PR's scope now. - R1/R2 non-blocking,
/expandandX-Task-Id: the author will open an issue. Accepted in round 2. No change in this PR. - R2 non-blocking, playground folder, and integrity vs. origin: author rejected with reasons I accepted in round 2. No change.
Non-blocking
test_release.py:559setsrun.stdin = Noneby hand. That is the standard way to keepcommunicate()off a closed pipe, and the comment says why. Note only.
What I checked
- Last review: round 2, a36a4fa, 2026-11-09T09:32:51Z.
- New commits read: 1 new commit, plus a rebase check of all 5 commits on the branch.
c3774e1ctest(bob): fix the interrupt test on Python 3.13 — new, reviewed in full.6d6dc454,f2ff9826,7402a221,c5e54056— rebased copies of4a45bab8,d4b298d8,7ba54fef,a36a4fa9. I fetched the old SHAs from GitHub and compared each commit's own patch (git diff <sha>^ <sha>) by hash. All 4 patches are byte-identical to what I reviewed and approved in rounds 1 and 2.- The branch base moved to
10329879(the squash of #968). The proxy and bob-plugin commits left the PR through #967/#968. The PR now touches 10 files, all installer and release files. - File check: 9 of the 10 changed files are byte-identical between
a36a4fa9andc3774e1c. The 10th (test_release.py) differs by exactly the 1 new line. So the whole content change since my approval is that line.
- Read in full: 4 reviews, 3 comments, 0 inline comments (from the three files).
- New items since my last review:
- Author comment at 16:22:39Z: rebase onto #968, plus the Python 3.13 test fix. I reviewed that fix (below).
- Author comment at 16:47:26Z: rebase report. Nothing to check beyond the final state.
- Author comment at 21:53:54Z: final rebase onto main. Reports all suites pass, CI and CodeQL green, one known dashboard flake that passed on rerun. Nothing asks me to do anything.
- The new commit, checked:
- On Python 3.13.5 (this laptop) I ran a 6-line script in
/tmpwith the test's exact shape:Popenwithstdin=PIPE, write"y\n",stdin.close(), thencommunicate(). It fails withValueError: I/O operation on closed file. So the test really broke on 3.13. - With
run.stdin = Noneadded beforecommunicate(), the same shape returns normally and the child received the"y\n". The fix works. - The child still sees EOF:
stdin.close()happened before the assignment. Nothing after line 559 readsrun.stdin.Popencleanup does not try to close it again. - On older Pythons,
communicate()withstdin=Noneand no input never touches stdin. The fix is safe there too. No other test in the file has this pattern (grep: onestdin.close(), onecommunicate). bobplugin_test.goruns this suite from CI (TestBobReleasePythonSuite), so the fix matters there, not only locally.
- On Python 3.13.5 (this laptop) I ran a 6-line script in
- The base move: I diffed
a36a4fa9..c3774e1coutside the PR's 10 files. All differences come from main (#967, #968 and later). None of them touches the installer or release files this PR owns. - No Go build or test was run. The only runs were the two Python checks above, in
/tmp, with no project code.
This was referenced Nov 10, 2026
amiddavid
added a commit
that referenced
this pull request
Nov 10, 2026
…1014) TestDashboardAddsNoRequestLatencyWithContentCapture failed on loaded CI runners (on #930, #971, #996, #1010) because one pass of 40 paired samples was too noisy for the 45 ms budget. It now measures the guard in up to 3 rounds, and passes as soon as one round is in budget; a real slowdown fails all 3. Closes #1013. Behavior change: none. Test only (proxy/dash_test.go). Data dependence: none. Known limit (older than this PR): under heavy load, a 50 ms delay in capture.finish does not fail the test; filed as its own issue. Reviews: 2 offload reviews (GLM), round 2, both approve at 2fbb429. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: DAVID AMID <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an installer for context-guru on IBM Bob (macOS). There are 2 ways to run it. Both run the same installer.
1. One Terminal command (recommended). macOS does not block it, so the files need no signing:
2. Double-click. The user downloads the zip, double-clicks
Install context-guru for Bob.commandand typesy. macOS asks the user to allow the unsigned file once.What changed
Installer (
bob-plugin/release/)Install
SHA256SUMS. An unlisted file or a link is refused.osascript. It never kills Bob. If Bob does not quit in 30 s, the installer stops.setup. It uses its own copy of the binary, never another one on PATH.~/.bob/playgroundif it is missing./healthz, doctor, status, the status bar. It shows a ✓/✗ table.Uninstall
result=removed. Otherwise it keeps the record and says "run this file again".~/.bob/plugins/context-gurufolder only when that folder is ours.~/.bob/playground, because that folder belongs to Bob.Log:
~/Library/Logs/context-guru-bob-install.log, mode 0600. It holds the step names and results only. It never holds prompts, answers, tokens or file contents.One-command install (
bob-plugin/release/install-bob.sh)context-guru-bob-SHA256SUMS, then the zip that file names, and checks the zip.install.sh.curlgives the file no quarantine mark, so Gatekeeper does not block the unsigned installer./dev/tty), not from the pipe that carries the script.Build and release
make bob-release:CGO_ENABLED=0) and the status bar.vsix;package.sh, which writesdist/context-guru-bob-<version>.zip(about 25 MB)..github/workflows/release.yaml: after GoReleaser, it builds the zip. On tags only, it runsgh release uploadfor the zip,context-guru-bob-SHA256SUMSandinstall-bob.sh. A manual run adds all 3 to the snapshot artifacts.install-bob.shhas a fixed name, soreleases/latest/download/install-bob.shalways works.bob-plugin/bobplugin_test.go:TestBobReleasePythonSuiteruns the release tests.Data dependence
None. The installer changes local files only, and it sends nothing.
How it was tested
go test ./bob-plugin/: OK.bash, ascurl | bashdoes. A local HTTP server serves a real zip built bypackage.sh.launchctl,bobide,pgrepandosascript.golang:1.26.4container,make bob-releasebuilt the zip (both Mac binaries are inside). The release tests ran too: 45 macOS tests skip and 2 packager tests pass.make bob-releaseon macOS: OK.CG ✓in the status bar → uninstall → all ✓..bash_profile,.zshrc,.bashrc,.profileand Bob'ssettings.jsonmatched their SHA-256 from before.Known limits
.commandfile is blocked once, and the user allows it in System Settings → Privacy & Security → Open Anyway. The README says how.playgroundPathis not read. The README says to create that folder by hand.Open questions