Repository navigation
GEN-2138: Ingest Claude Code stream-json as the primary job trace - #192
Merged
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 9, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 9, 2026
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.
Claude jobs now use print-mode stream-json stdout as their primary live and terminal trace. A Python 3 stdlib supervisor normalizes assistant text/thinking, all tool calls/results (preserving IDs, names and error flags), lifecycle/error records and usage into the existing Factorize JSONL contract, while stderr remains separate.
Subagent text forwarding and partial-message forwarding stay disabled to prevent duplicate root activity; emitted parent IDs are retained. Native transcripts remain audit/recovery artifacts, and historical runs retain native discovery. Unknown/malformed/partial/oversized records are bounded and diagnosable; signals and child exit status are preserved. No final-answer json-schema option is used.
Validation:
npm run checkpassed across all workspaces (API boundaries, TypeScript, app tests, Worker dry-run builds); PostgreSQL-backed trace reconciliation plus Claude boundary and finalization tests passed (20 tests). Version-pinned synthetic Claude Code 2.1.293 fixtures cover tools, Agent activity and native fallback. Guest runtime requires Python 3.Closes GEN-2138.