Skip to content

Commit fa60d62

Browse files
ggallenclaude
andcommitted
feat(#6788): add dummy-playback runtime for replaying canned results
Add DummyPlaybackRuntime that replays pre-recorded agent results from an ordered playlist without LLM inference, enabling fast deterministic e2e tests of the full dispatch pipeline. Each invocation reads the current playlist entry's result.json, writes it to the sandbox output, copies companion files, creates feature branches or commits fixes, and advances the playlist index. Includes security hardening: shell-quoted entry names in git commands, path-traversal validation on playlist entries, CLI allowlist (gh/glab) for comment tracking, and guarded SHA truncation. Closes #6788 Signed-off-by: Greg Allen <gallen@redhat.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
1 parent b000423 commit fa60d62

6 files changed

Lines changed: 1119 additions & 1 deletion

File tree

internal/cli/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,7 @@ func runAgent(ctx context.Context, agentName, fullsendDir, outputBase, targetRep
19721972
Timeout: timeout,
19731973
OutputPath: filepath.Join(iterDir, "output.jsonl"),
19741974
Prompt: agentPrompt,
1975+
Forge: forgePlatform,
19751976
OnEvent: contentEventHandler(agentruntime.NewEventRenderer(printer).Handle, collector),
19761977
}, printer, agentStart, &metrics)
19771978
close(heartbeatDone)

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func ValidProviders() []string {
299299
// ValidRuntimes returns the set of recognized agent runtimes. "pi" is
300300
// opt-in per org/repo (#6464); "dummy" is for behaviour test orgs only.
301301
func ValidRuntimes() []string {
302-
return []string{"claude", "pi", "dummy"}
302+
return []string{"claude", "pi", "dummy", "dummy-playback"}
303303
}
304304

305305
// validModelRef matches a provider-qualified model reference: one or more

0 commit comments

Comments
 (0)