Skip to content

Plan: vscode becomes an editor verb, and git becomes just git - #227

Merged
gilesknap merged 5 commits into
mainfrom
plan/editor-first-and-ordinary-git
Aug 24, 2026
Merged

gilesknap merged 5 commits into
mainfrom
plan/editor-first-and-ordinary-git

Conversation

@gilesknap

@gilesknap gilesknap commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

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 vscode is named for the editor and behaves like a debugger. Before the
window 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-socket and pptty and none for fastcs-example. That is
vscode.py:1874, provision=provision and primary — the primary is the only
candidate 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

today after
vscode provisions and writes launch.json at window-open vscode opens a window and writes nothing
debugging is automatic and guessed podbench debug-config --provision — a step, on a pid you name
hotfix apply = commit + relaunch, -m required hotfix restart relaunches; git commit is git's job
hotfix consolidate = push + a manifest field ordinary git push
status reads records that hand-git invalidates status measures

hotfix goes 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 why
podbench 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. init clones, so local git
    already answers everything consolidated_branch recorded — 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's
    remote is ssh and the seat has no key or known_hosts. This also suggests
    consolidate may not work on the pod it was built for — flagged as suggestive,
    not proven.
  • podbench writes neither ForwardAgent nor AllowAgentForwarding; the client
    default is no and the server default is yes, so the seat is already willing
    and the stanza never asks.
  • Restarting moved fastcs-example through pids 12 → 2446 → 13, which is why
    anything 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.

  • Agent forwarding is an opt-in flag, and only the git keys are forwarded —
    point SSH_AUTH_SOCK at a second agent holding just that key; podbench
    launches code, so it owns that child's environment. What decided it: a
    forwarded agent writes nothing to disk and lives only in the ssh session's
    environment, so a colleague's kubectl exec cannot stumble into it and nothing
    survives the session. A cached gh token on a shared path is the opposite on
    every count.
  • Host trust is seeded from your own known_hosts, only when the flag is on.
  • The status question dissolved. Once it measures instead of recording,
    there is no stale field to be honest about.

status stays, and the split is the interesting bit

Dropping 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
.

row needs availability
dirty, and which files nothing always
commits ahead of base_commit nothing always
on a remote branch as of the clone nothing always
is that still true now network + auth best-effort, from the laptop

All 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, status could not use a forwarded
agent — and routing it through ssh would fail on exactly the pods status is
most 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
consolidate gone nothing in podbench pushes. Kept in the plan with its
reasoning, because slice 5 reuses the insight.

Also recorded

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
@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: b32e02e1-ae6b-48a6-92fb-8fc95a219513

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

gilesknap and others added 4 commits August 24, 2026 17:36
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
@gilesknap
gilesknap merged commit 00ef8e5 into main Aug 24, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant