Skip to content

Examples: run OneShot on a supervisor-owned tmux server - #17

Open
tony wants to merge 1 commit into
masterfrom
tmux-arena
Open

Examples: run OneShot on a supervisor-owned tmux server#17
tony wants to merge 1 commit into
masterfrom
tmux-arena

Conversation

@tony

@tony tony commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

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);
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.

2 participants