Repository navigation
[1.0-beta] feat: back workspaces with private sources - #13347
Merged
Merged
Conversation
grouville
force-pushed
the
codex/synthetic-workspace-tests
branch
from
June 17, 2026 22:34
7c9dedd to
e89202f
Compare
Describe the private source model for local, directory, Git ref, and overlay workspaces without exposing backend details in GraphQL. Co-authored-by: Solomon Hykes <[email protected]> Signed-off-by: Tibor Vass <[email protected]>
tiborvass
force-pushed
the
codex/synthetic-workspace-tests
branch
2 times, most recently
from
June 21, 2026 01:47
b42e5ef to
3cd2344
Compare
tiborvass
approved these changes
Jun 21, 2026
tiborvass
force-pushed
the
codex/synthetic-workspace-tests
branch
3 times, most recently
from
June 22, 2026 02:55
24df415 to
c199cfc
Compare
Store the backing source as an internal Workspace detail and use it for filesystem, git, persistence, and dependency attachment semantics. Add GitRef.asWorkspace, make GitRepository.asWorkspace resolve head, keep remote -W tied to its Git ref, and model functional writes as overlays. Co-authored-by: Solomon Hykes <[email protected]> Co-authored-by: Guillaume de Rouville <[email protected]> Signed-off-by: Tibor Vass <[email protected]>
Workspace.ClientID is now internal state used to route workspace host filesystem operations to the owning client. It is intentionally not a GraphQL field in the private-source workspace model. base_schema.json is the golden schema for the oldest supported module view, so it also needs to drop Workspace.clientId. Keeping it there makes the base schema allowlist claim that older clients can select a field the engine no longer exposes. Signed-off-by: Tibor Vass <[email protected]>
Update generated schema, SDK bindings, and reference output for GitRef.asWorkspace and Workspace overlay methods. Co-authored-by: Solomon Hykes <[email protected]> Co-authored-by: Guillaume de Rouville <[email protected]> Signed-off-by: Tibor Vass <[email protected]>
Assert the public behavior for directory and GitRef-backed workspaces, overlay writes, remote -W rootfs shape, local-only mutation errors, and private source fields. Co-authored-by: Solomon Hykes <[email protected]> Co-authored-by: Guillaume de Rouville <[email protected]> Signed-off-by: Tibor Vass <[email protected]>
tiborvass
force-pushed
the
codex/synthetic-workspace-tests
branch
from
June 22, 2026 03:34
c199cfc to
acadf4b
Compare
TestInstallK3S was treating the k3s service port and kubeconfig as enough readiness before running kubectl. In CI, the API server can accept connections before discovery and node readiness are available, causing kubectl to fail with ServiceUnavailable. Replace the one-shot kubectl probe with a bounded readiness loop that waits for node listing and the Ready condition, and dumps cluster state on timeout. Signed-off-by: Tibor Vass <[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.
Requested by solomon (<@488409085998530571>, Discord user ID 488409085998530571).
Why
Synthetic workspaces should behave like workspaces, not like leaked storage details.
This matters because file reads, Git state, and future write methods all need one clear source of truth.
What changed
Directory.asWorkspace(cwd:)GitRef.asWorkspace(cwd:)GitRepository.asWorkspace(cwd:)still works by usinghead-Wkeeps its Git ref internallyworkspace.git()reads Git state from that refTests
Passed:
git diff --check HEAD~1..HEADgo test ./core ./core/schema ./engine/server ./core/integration -run '^$' -count=0go test ./core/schema ./engine/servergo test ./core/schema -run TestWorkspacePrivateSourceFieldsAreNotGraphQLFields -count=1The focused runtime tests still stop early in this VM because its active engine schema does not include the new workspace fields yet.