test: prove safe prepared-workspace claiming - #83
Merged
Conversation
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
git worktree repairagainst an immutable backing path exposed through a named symlinkResult
GO for #78 with a stable immutable backing path and named workspace symlink.
Relocating prepared roots is a no-go: Git can be repaired, and relative Bun-style links survive, but absolute Python virtualenv launchers do not. A stable backing path preserved both toolchains in committed POSIX probes and in an ignored local multi-language monorepo test using its real Bun and Python package managers.
This PR intentionally adds no public command, Oven pool, production state schema, scheduler, generic transaction framework, or cache.
Safety evidence
The spike covers:
Service.Status --jsonassertions through the healthy aliasHard process termination, partial discard, and same-user filesystem races are explicitly documented as #78 quarantine/reconciliation requirements.
Verification
PATH="$(go env GOPATH)/bin:$PATH" just checkgo test -race ./internal/workspace -run PreparedClaimSpike -count=1just e2e— 128/128 passedgit diff --checkCloses #77