Examples: run OneShot on a supervisor-owned tmux server - #17
Open
tony wants to merge 1 commit into
Open
Conversation
why: Exercise the arena-owned server without ambient selection while keeping published example code executable. what: - Add descriptor-gated execution and JSON evidence. - Compose compiled snippet regions for the public example. - Cover the arena, README, and synchronizer contracts.
|
|
||
| public static async Task<BorrowedArena> StartAsync(CancellationToken cancellationToken) | ||
| { | ||
| string socketPath = Path.Combine(Path.GetTempPath(), $"lta-{Guid.NewGuid():N}.sock"); |
Comment on lines
+182
to
+184
| string executableProbeDirectory = Path.Combine( | ||
| Path.GetTempPath(), | ||
| $"lta-bin-{Guid.NewGuid():N}"); |
Comment on lines
+206
to
+208
| string invocationMarkerPath = Path.Combine( | ||
| executableProbeDirectory, | ||
| "invocations"); |
| string invocationMarkerPath = Path.Combine( | ||
| executableProbeDirectory, | ||
| "invocations"); | ||
| string tmuxBinaryPath = Path.Combine(executableProbeDirectory, "tmux-arena-probe"); |
Comment on lines
+284
to
+293
| foreach (string directory in (path ?? string.Empty).Split(Path.PathSeparator)) | ||
| { | ||
| string candidate = Path.Combine( | ||
| string.IsNullOrEmpty(directory) ? System.Environment.CurrentDirectory : directory, | ||
| configured); | ||
| if (File.Exists(candidate)) | ||
| { | ||
| return Path.GetFullPath(candidate); | ||
| } | ||
| } |
Comment on lines
+286
to
+288
| string candidate = Path.Combine( | ||
| string.IsNullOrEmpty(directory) ? System.Environment.CurrentDirectory : directory, | ||
| configured); |
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