Repository navigation
Plan: vscode becomes an editor verb, and git becomes just git - #227
Merged
Merged
Conversation
podbench vscode is named for the editor and behaves like a debugger: it ptraces the workload, installs 15 MB, burns debugpy's one shot on a guessed pid and writes a file into the user's committed checkout, all before the window opens. The workflow most people want - edit, restart, look again - pays that bill and uses none of it. The live p47 run made the cost concrete in the worst way. The gate 0.9.0 added withholds the primary candidate's configuration when its injection fails, while the non-primary candidates are never provisioned and so are emitted unprobed. The user gets entries for stdio-socket and pptty and none for the application. This plan deletes the interaction rather than patching it: nothing is authored at window-open at all. The other half is only possible because of what 0.9.0 shipped. git in the claim used to die with dubious ownership, which is why podbench wrapped the commit; that reason is gone, so hotfix apply and consolidate can go with it and status can measure what it used to record. A hand-push makes a recorded field a lie, and telling people to use normal git is an invitation to hand-push. Three questions are left open rather than guessed, all in the slice that would give the seat a real forge connection: whether agent forwarding is a flag or a default, where host trust comes from, and what status says about an axis it may not be able to refresh. None of them blocks the shape. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
|
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 |
Giles asked whether consolidate pulled the changes down so they could be pushed with his own auth. It did not - HotfixStore sends every git invocation through kubectl exec, so the push ran inside a container with no credentials, which is why the fetch measured today failed on host verification. But the question describes a better design than either consolidate or slice 6. Bringing the commits out to the laptop - by bundle, or by using kubectl exec as a git transport the way the ssh transport already does - means the seat never needs a credential, which removes the agent forwarding exposure and the host trust question outright. It does not replace slice 6 for the human typing git in the window, so the two serve different callers; recorded with that distinction rather than as a straight substitution, because deciding whether git-in-the-seat is wanted at all is upstream of both. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
The plan said a forwarded agent exposes "your personal git identity". That is too narrow: an agent forwards keys rather than a destination, so whoever reaches the socket can authenticate as you to any host that trusts your key. Bounded in time to the session, unbounded in reach within it. Record the argument that nevertheless makes it the least-bad credential to put in a seat, because it is the one that decides the open question: nothing is written to disk and SSH_AUTH_SOCK is set only in the ssh session's environment, so a colleague's exec session cannot stumble into it. A cached gh token on a shared path is the opposite on every count, and outlives everyone's session. The private key never enters the pod. Note ssh-add -c and destination-constrained keys as the two mitigations worth documenting rather than building, and the caution that a facility RBAC group may contain service accounts as well as colleagues. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
Second sitting with Giles. All three questions the first left open are answered, so nothing in the plan now waits on a decision. Agent forwarding is an opt-in flag, and what decided it was the argument about what else could be put in a seat: a forwarded agent writes nothing to disk and sets SSH_AUTH_SOCK only in the ssh session's own environment, so a colleague's exec session cannot stumble into it, and it leaves nothing behind when the session ends. A cached gh token on a shared path is the opposite on every count. Only the git keys are forwarded, by pointing SSH_AUTH_SOCK at a second agent holding just that key - podbench launches code, so it owns that child's environment. Host trust is seeded from the user's own known_hosts, and only when the flag is on. The status question dissolved rather than being answered. Keeping the verb but making it measure means there is no stale field to be honest about: the local rows - dirty, ahead of base, on a remote branch as of the clone - need no credential, no agent and no egress, measured in a seat whose network was demonstrably broken at the time. Only freshness needs the network, and that is done from the laptop, because an exec session has no SSH_AUTH_SOCK and routing it through ssh would fail on exactly the pods status is most useful for. Dropping status outright was considered and rejected: it does two jobs, and only the repo-state half is the one this plan objects to. The other - which pods are hotfixed, and whether the image moved under the mount - is cluster state nothing else can answer. 6b is declined with its reasoning kept, since slice 5 reuses its insight. The two defects found during the live run are filed as #228 and #229. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
Confirmed with Giles: retire is kept. It is a report of where a pod is in its retirement rather than a git wrapper, and the only action it takes is deleting a claim nothing mounts. He asked whether turning off the claim subchart's enabled flag does the same thing. It does not, and p47-services records it being tried at 94b74d2 and leaving the pod still hotfix-wired: the wiring lives in the application's own ioc-instance values, not in the flag. Removing the PVC while the pod still declares the volume is worse than doing nothing - an unbound claim and a Pending pod, which is the state retirement()'s docstring calls the shape that matters most. The gap this exposes is that retire's branch row reads consolidated_branch, the field slice 4 deletes with consolidate. So removing that verb leaves retire with a row it cannot answer. Both options are stated and neither is chosen, with a note to settle it before slice 4 is written - it is the one place removing a verb reaches outside its own surface. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WAGABUogwWJ68k1Dh28ZBS
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.
Plan only — no code. For review when you come back to this; the plan itself is
.claude/plans/editor-first-and-ordinary-git.md.The turn
podbench vscodeis named for the editor and behaves like a debugger. Before thewindow opens it ptraces the workload, installs ~15 MB, burns debugpy's one-shot
injection on a guessed pid, and writes a file into your committed checkout. The
workflow you described wanting — edit, restart, look again — pays all of that and
uses none of it.
The live p47 run made it concrete in the worst possible way: you got debug entries
for
stdio-socketandppttyand none forfastcs-example. That isvscode.py:1874,provision=provision and primary— the primary is the onlycandidate provisioned, so 0.9.0's gate withholds its entry when the injection
fails, while the non-primary candidates are never provisioned and so are emitted
unprobed with ports nothing serves. The plan deletes the interaction rather than
patching it.
What it proposes
vscodeprovisions and writeslaunch.jsonat window-openvscodeopens a window and writes nothingpodbench debug-config --provision— a step, on a pid you namehotfix apply= commit + relaunch,-mrequiredhotfix restartrelaunches;git commitis git's jobhotfix consolidate= push + a manifest fieldgit pushstatusreads records that hand-git invalidatesstatusmeasureshotfixgoes from seven verbs to six.The second half is only possible because of what 0.9.0 shipped last week: git
in the claim used to die with
fatal: detected dubious ownership, which is whypodbench wrapped the commit. That reason is gone.
Measurements it rests on
Taken today, in a seat, and cited in the plan:
git branch -r --contains HEAD→origin/main.initclones, so local gitalready answers everything
consolidated_branchrecorded — and more truthfully,since a hand-push updates the tracking ref and the manifest field would not.
git fetch --dry-run origin→Host key verification failed. The claim'sremote is ssh and the seat has no key or
known_hosts. This also suggestsconsolidatemay not work on the pod it was built for — flagged as suggestive,not proven.
ForwardAgentnorAllowAgentForwarding; the clientdefault is
noand the server default isyes, so the seat is already willingand the stanza never asks.
fastcs-examplethrough pids 12 → 2446 → 13, which is whyanything authored at window-open goes stale in the normal loop.
All three questions are now settled
A second sitting closed them, so nothing in the plan waits on a decision.
point
SSH_AUTH_SOCKat a second agent holding just that key; podbenchlaunches
code, so it owns that child's environment. What decided it: aforwarded agent writes nothing to disk and lives only in the ssh session's
environment, so a colleague's
kubectl execcannot stumble into it and nothingsurvives the session. A cached
ghtoken on a shared path is the opposite onevery count.
known_hosts, only when the flag is on.statusquestion dissolved. Once it measures instead of recording,there is no stale field to be honest about.
statusstays, and the split is the interesting bitDropping it outright was considered and rejected: it does two jobs, and only
the repo-state half is the one this plan objects to. The other is cluster state
nothing else can answer — which pods here are hotfixed, and whether the image
moved under the mount.
base_commitAll three free rows were measured in a seat whose network was demonstrably broken
at the time. The freshness row runs on the laptop because an exec session has
no
SSH_AUTH_SOCK— so even after slice 6,statuscould not use a forwardedagent — and routing it through ssh would fail on exactly the pods
statusismost useful for: a colleague's hotfix, whose seat does not carry your key.
6b is declined — it existed to let podbench's tooling push, and with
consolidategone nothing in podbench pushes. Kept in the plan with itsreasoning, because slice 5 reuses the insight.
Also recorded
ephemeral container's spec is immutable, so a running seat can never gain a
second key.
reconnect_seat's owner stamp (Multi-user attach: seats are anonymous, so "reuse an existing seat" cannot tell yours from someone else's #113) and 0.9.0's key refusal (the reconnect ssh-key warning is a guess podbench could measure, and vscode runs on anyway #204)already compose to find your seat, but every colleague still spends a permanent
container name. The declared-sidecar-plus-ConfigMap in seat as a declared sidecar: a warm home, a stable ssh identity, and the identity ConfigMap finally used #70 is the actual fix.
podbench pidsbreaks its table on amulti-line cmdline (pid 1 is the supervisor loop), and the wrong-subset behaviour
above, which is live in 0.9.1 even though this plan removes it.
{"request": "attach", "processId": N}.Choosing the explicit step removed the need for that measurement rather than
answering it — noted as the way back if two commands ever becomes intolerable.