Repository navigation
Plan: podbench vscode is slick - #220
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
gilesknap
force-pushed
the
plan/vscode-attach-is-slick
branch
from
August 24, 2026 11:11
d5ace39 to
448cef3
Compare
`vscode-actually-debugs.md` ended by proving a breakpoint binds and is hit in a beamline application from a window podbench opened. It works. What is left is what a user still has to notice, tolerate or repair on the way there. There is a spine, and it is not the last plan's: every one of the five is podbench measuring something and then not using the measurement - in two cases the fact is printed one line earlier than the code that ignores it. But they are not causally chained, so this plan deliberately draws no cascade diagram. Each is independently reachable on a run where the other four are fine, and fixing one makes none of the others easier. What they share is a discipline, not a dependency, which is why they can land together and why the ordering is chronological in the user's run rather than causal in the code. Two of the five were found by the live run that closed the last plan and filed the same day (#218, #219); one is the defect that made that run need a second invocation (#136); one is what breaks the first thing a user does in the tree the verb opens (#217); one is a measurement that landed without the control flow that would use it (#204). Five decisions were taken rather than left open, each recorded with its reasoning and its cost, because each writes outside podbench's own scratch space or changes what an existing verb prints. Two of them moved the plan's shape: - Config moves to the seat's machine settings, and podbench stops writing settings.json and extensions.json into the claim at all. The motivation is first-hand - driving hotfix mode dirtied the application's own .vscode folder with podbench's writes, and the claim is a committed checkout on an NFS PVC. launch.json stays, because a global `launch` object at machine scope on a remote is unverified and F5 is the deliverable; measuring it is left as a future slice. - #217 and #216 collapse into one mechanism: an /etc/gitconfig carrying safe.directory for the claim and core.excludesFile for the provision directory. Nothing whatever is written into the user's repository - no .gitignore, no .git/info/exclude, no metadata - which is better than either option #216 was filed with. Checking those against the code corrected two claims that were made in taking them, and the corrections are in the plan rather than left to be discovered: a degraded seat cannot write /etc at all, which is the same failure as the /opt provisioning this project just fixed, so the file is baked with an include.path the agent can write; and nothing on the vscode path writes the machine settings today, so the mitigation that made machine-only acceptable has to be built by the slice that relies on it. #127 is out of scope for a stated reason: it is measurement-absent rather than measurement-ignored, so it does not belong to this spine. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
gilesknap
force-pushed
the
plan/vscode-attach-is-slick
branch
from
August 24, 2026 11:13
448cef3 to
4005bad
Compare
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.
Successor to #214, which ended by proving that a breakpoint in a beamline
application binds and is hit from a window podbench opened. It works. This is
about what a user still has to notice, tolerate or repair on the way there.
Definition of slick, from the ask: one command, a window, F5. Nothing along
the way makes the user stop, re-run, read 300 words, hand-fix a file, or wonder
whether something went wrong.
The plan is
.claude/plans/vscode-attach-is-slick.md. This PR is the planonly — no code yet. It exists so the work has somewhere to land and so the
five decisions below can be settled before anyone starts.
The shape
There is a spine, and it is not #214's:
launch.jsonnaming a port nothing servespython.defaultInterpreterPath, so the window pops "no Python found"git statusfatalThese are not causally chained, and the plan deliberately draws no cascade
diagram. #214 earned one because slice 2 made slice 3 reachable and slice 3
made slice 5 reachable. Nothing of the sort is true here: each is independently
reachable on a run where the other four are fine. What they share is a
discipline, not a dependency — which is why they can land together, and why the
ordering is chronological in the user's run rather than causal in the code.
Slices
inside
add_ephemeral_container, not in the ladder (which burns a containername per attempt), and
try_resize's outcome printed on the path that madethe mutation. This is the defect that made podbench vscode actually debugs #214's live run need a second
invocation, and podbench vscode actually debugs #214's flat 6Gi makes it more reachable.
of the target rather than by port, and gate the config write on the DAP
handshake
_injectalready computes and discards. 2b: podbench's ownadapter stops being offered as a debug candidate.
vscodeopens — git in a seat refuses the claim: 'dubious ownership in repository at /podbench/app' #217, withhotfix.git_argvasthe in-repo precedent. 4b: a provisioned debugpy on the claim shows up as untracked in the user's own checkout #216.
measurement landed, the control flow did not.
warm one:
vscode-in-a-seatsays a warm seat proves nothing about theinstall path, and recreation restores the 256Mi that is the only state
slice 1 is reproducible in.
Decisions taken (Giles, 2026-08-24)
All five are settled and folded into the plan, with their reasoning and their
cost kept. Two of them moved the plan's shape.
python.defaultInterpreterPath→ the seat's machine settingssettings.jsonandextensions.jsonto the claim at all/etc/gitconfigcarryingsafe.directoryandcore.excludesFile--newtry_resize's outcome to the point of mutationD1b's motivation is first-hand: driving hotfix mode on 2026-08-24 dirtied
the application's own
.vscodefolder with podbench's writes. The claim is acommitted checkout on an NFS PVC, so a folder write is a permanent line in the
user's git diff rather than a scratch file.
extensions.jsonis recommendationsonly and podbench installs and verifies the extensions itself, so dropping it
costs nothing.
launch.jsonstays on the claim: VS Code does support aglobal
launchobject insettings.json, but whether it is honoured atmachine scope on a remote is unverified, and F5 is the deliverable — so
it is neither asserted nor guessed at. Measuring it is listed as a future slice.
D2+D3 is the nicest outcome of the discussion. Nothing whatever is written
into the user's repository — no
.gitignore, no.git/info/exclude, nometadata of any kind — which is better than either option #216 was filed with.
The
core.excludesFileidea was Giles'.Two claims that did not survive contact with the code
Both corrections are in the plan rather than left to be discovered live:
/etcat all — a non-root uid with an emptyeffective set against a root-owned directory, which is the same failure as
the
/optprovisioning defect podbench vscode actually debugs #214 just fixed. So/etc/gitconfigis bakedinto the image with
core.excludesFileplus aninclude.pathunder/tmp,and the agent writes only the include. The claim's mountPath is the
application's choice and discovered at runtime, which is exactly what makes
core.excludesFilebakeable andsafe.directorynot.vscodepath writes the machine settings today —merge_machine_settingshas one caller, the agent at seat start-up. So "are-run restores them" was false as the code stands, and slice 3 has to build a
launcher-side writer before the mitigation that makes machine-only acceptable
is real.
One consequence worth having in writing
podbench.jsoncfrom #214 is not retired.launch.jsonstill goes to theclaim, so
merge_launch_configsstays on the critical path — nobody shoulddelete the JSONC handling as dead code.
Deliberately not in scope
#203 (half already landed; a prose pass, not a wiring pass), #204's colour tier
(blocked on #203), #127 (measurement-absent rather than
measurement-ignored, so it does not belong to this spine), #124 (reserves memory
on a beamline node — not an agent's call), #142 (a chart change, no runtime
fix), #161 (every verb, not this path), #155/#160/#202/#69/#70/#212 (features),
and the bridge's
dap.*blind spot (tooling — it changes slice 6's checklistrather than any code).
🤖 Generated with Claude Code
https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS