Skip to content

feat(circus): expose command run output as workspace resource - #1108

Open
ferrislucas wants to merge 14 commits into
mainfrom
circus-chief/7f1f-need-api-call-exposes
Open

feat(circus): expose command run output as workspace resource#1108
ferrislucas wants to merge 14 commits into
mainfrom
circus-chief/7f1f-need-api-call-exposes

Conversation

@ferrislucas

@ferrislucas ferrislucas commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the FRD for agent-readable Circus Command output.

  • Adds GET /api/sessions/:sessionId/circus-commands/runs/:runId/output-resource, returning a compact descriptor with a workspace-relative .circus/runs/<runId>/output.log path instead of inline transcript content.
  • Materializes retained chunk-backed output safely and incrementally; supports a stable, growing artifact while a command is still running.
  • Preserves raw stdout/stderr output order and bytes, bounds reconstruction memory, and keeps artifacts independent of repository metadata.
  • Enforces session-scoped authorization, validates managed paths, and cleans up artifacts with command-run retention/deletion (including bounded cleanup retries).
  • Documents the agent diagnostic workflow and adds API, lifecycle, migration, cleanup, runner, and contract coverage.

Validation

  • Added focused automated coverage for output-resource responses, cross-session isolation, transcript ordering, live output, deletion/cleanup, large output, and migrations.

ferrislucas and others added 13 commits August 31, 2026 21:16
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
…into circus-chief/7f1f-need-api-call-exposes
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
…d-api-call-exposes

Co-authored-by: Codex <noreply@openai.com>

# Conflicts:
#	packages/server/src/services/gitService.js
@ferrislucas ferrislucas changed the title circus chief/7f1f need api call exposes feat(circus): expose command run output as workspace resource Sep 6, 2026
Co-authored-by: Codex <noreply@openai.com>
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.

1 participant