Repository navigation
GEN-2140: Add trace rollout gates, reconciliation diagnostics, and authorized backfill - #197
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.
Run traces need explicit provenance and terminal completeness evidence before production rollout, and historical Codex tool calls can only be recovered from retained native artifacts. This adds tenant canary/native-primary deployment gates, durable projection and reconciliation receipts, warning/unknown/retry/failure counters, and source-aware browser refresh. Terminal uploads bind to the observed live generation; checksum-addressed immutable native snapshots and terminal receipts prevent retries from overwriting another generation or undoing rollback.
The owner-session-only
POST /api/v1/runs/{runId}/trace/replayverifies tenant/run ownership and retained object size/checksum, atomically commits projection plus idempotent outcome, limits attempts to 10 per tenant/minute, and reports active, missing, unsupported, ambiguous, or expired artifacts accurately. Historical native sessions use the corrected custom_tool_call parser. Native rollback retains both artifacts and can be reversed with primary replay. API/OpenAPI and user-facing docs are updated.Validation: Node 24; CSS build; full workspace
npm run checkwith local PostgreSQL enabled (298 tests passed, 8 unrelated opt-in tests skipped), including contract/authorization/isolation, Codex/Claude terminal reconciliation, Pi native finalization, stale/retried uploads, native rollback, historical backfill, checksum/ownership rejection, rate limiting, failed-transaction resumption, and browser tests. Worker dry runs, all workspace TypeScript checks, docs validation, and git diff --check passed.Apply additive migration
0011_trace_rollout.sqlbefore deployment. The rollout/retention/incident runbook isdocs/trace-rollout-runbook.md. Production canary evidence remains pending: the attached Factorize integration returns sign-in, and this revision has not been deployed. Merge/deploy, select approved canary tenants, and record live tool visibility and matched reconciliation for Codex/Claude plus Pi native retention before closing GEN-2140 or widening rollout.Linear: https://linear.app/generation/issue/GEN-2140/roll-out-trace-source-migration-reconciliation-and-native-artifact