Repository navigation
GEN-2136: Establish provider-neutral live trace stream artifacts - #189
Merged
Merged
Conversation
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.
Live traces currently tail native sessions, and terminal session uploads replace the projection. This change adds a documented primary trace-source contract, tails declared execution streams with the existing offset/hash-chain protections, and reconciles completed runs from a separate immutable, content-addressed stream artifact. Native sessions remain separate audit artifacts; existing native-only runs retain their parser and collection behavior.
Source declarations are persisted at launch and exposed in run detail/diagnostics. Artifact metadata retains provider, source path/media type, and format/CLI/harness versions when supplied. The supervisor keeps stdout/stderr separate and creates declared stream files without truncating them. The common JSONL v1 contract is documented in
docs/execution-trace-stream.md; provider producers remain scoped to GEN-2137/2138/2139. Apply migration0010_trace_sourcesbefore deploying.Validation:
npm run check: passed across the workspace, including 262 tests, API boundaries, TypeScript, and Worker dry-run builds (trace, auth, and queue PostgreSQL suites enabled).git diff --check: passed.An expanded run enabling TEST_DATABASE_URL exposed an existing job-edit test failure (
queue_full). It reproduces unchanged on origin/main (1e4cf60). The normal workspace check passed with those five optional job-edit database tests skipped.Linear: https://linear.app/generation/issue/GEN-2136/establish-provider-neutral-live-trace-stream-artifacts