Skip to content

GEN-2120: Persist harness stderr and exit diagnostics - #179

Merged
exe-dev-github-integration[bot] merged 2 commits into
mainfrom
gen-2120-harness-diagnostics
Sep 18, 2026
Merged

exe-dev-github-integration[bot] merged 2 commits into
mainfrom
gen-2120-harness-diagnostics

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

When an exe.dev harness exits nonzero, finalization now saves its first terminal observation and a separate stderr artifact before deleting the VM. Native-session uploads, collection retries, and cleanup failures cannot replace that execution result.

  • Capture Codex, Claude, and Pi stderr separately; retain and redact at most the first 64 KiB as a terminal_log artifact, with a combined-log fallback for existing VMs.
  • Persist systemd Result, ExecMainCode, ExecMainStatus, load/active/sub states, and safe backend detail. Retry from the persisted observation, skip stored artifacts, and bound collection retries before cleanup.
  • Expose execution diagnostics and harness artifact metadata/location through the existing /api/v1 run and diagnostics endpoints; document their schemas in OpenAPI.
  • Add forward migration 0007_harness_diagnostics.sql and the corresponding Drizzle field. Apply the migration before deploying the Worker.

Validation: npm run build:css and npm run check passed (175 tests, TypeScript, API boundary checks, app and relay Worker dry-run builds). Tests cover nonzero exits, signals, missing supervisors, transient inspection failures, upload and cleanup failures, redaction, bounds, tenant isolation, and API contracts. A local real-systemd smoke test confirmed separate stderr and Result=exit-code / ExecMainCode=1 / ExecMainStatus=42.

Linear: https://linear.app/generation/issue/GEN-2120/persist-harness-stderr-and-exit-diagnostics-for-failed-runs

@linear

linear Bot commented Sep 18, 2026

Copy link
Copy Markdown

GEN-2120

@github-actions
github-actions Bot enabled auto-merge September 18, 2026 22:09
@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 10628ad Sep 18, 2026
2 checks passed
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