Skip to content

GEN-2140: Add trace rollout gates, reconciliation diagnostics, and authorized backfill - #197

Merged
exe-dev-github-integration[bot] merged 2 commits into
mainfrom
gen-2140-trace-rollout
Oct 9, 2026
Merged

exe-dev-github-integration[bot] merged 2 commits into
mainfrom
gen-2140-trace-rollout

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

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/replay verifies 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 check with 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.sql before deployment. The rollout/retention/incident runbook is docs/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

@linear

linear Bot commented Oct 9, 2026

Copy link
Copy Markdown

GEN-2140

@exe-dev-github-integration
exe-dev-github-integration Bot added this pull request to the merge queue Oct 9, 2026
Merged via the queue into main with commit 81d42e1 Oct 9, 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.

1 participant