Repository navigation
Conversation
Accept streamed file bodies with storage backpressure. Node stages on the target filesystem and publishes by rename; reserved staging paths support exact-key cleanup after killed writers. R2 uses bounded multipart parts for generated unknown-length bodies and retains the prior object on failure. Restores the reviewed streaming foundation from its preserved archive. Verified 20 file-store tests, platform and deployment typechecks, and scoped lint; checked current Cloudflare API references. Preserve original errors and cleanup chains.
Stream one ordered NDJSON artifact to durable storage and transient position-addressed readers. Keep metadata publication behind complete file writes, renew active leases, and preserve durable recording when live appends fail. Expose authenticated attach-only byte reads without active-run UI changes. Abort failed durable readers, stop heartbeat races, and wait for artifact publication before clean live EOF; cover lifecycle, backpressure, ownership, retries and retention with focused tests.
# Conflicts: # packages/gateway/src/dump/types.ts
Empty heartbeats use the last acknowledged offset independently of the ordered data writer. This keeps a live run from expiring while durable reads or append acknowledgements are pending, without changing bytes or data offsets. Verify long native-reader gates and concurrent heartbeat positions; stream end still awaits the in-flight heartbeat.
…eline-live-recording
This was referenced Oct 1, 2026
# Conflicts: # README.md # packages/gateway/__tests__/control-plane/dump_test.ts # packages/gateway/__tests__/dump/run-sink_test.ts # packages/gateway/__tests__/repo/dump-store_test.ts # packages/gateway/__tests__/scheduled_test.ts # packages/gateway/__tests__/vitest.setup.ts # packages/gateway/src/control-plane/dump.ts # packages/gateway/src/dump/run-sink.ts # packages/gateway/src/dump/store-contract.ts # packages/gateway/src/dump/types.ts # packages/gateway/src/repo/dump-store.ts
Carry current chat/provider pipelines into streamed recording, retain atomic file publication and live leases, and redact upstream credentials before object-space encoding so durable and live bytes agree. Validation: all 106 tests across 10 named files passed, 28 named lint targets passed, and dump, gateway, platform, Node, Cloudflare and Web typechecks passed.
Carry the completed migration, package inventory and verification fixes through the recording stack. Validation: 170 named files and 2410 tests passed, including the live/durable recording and credential-redaction regressions. Owning protocol, dump, gateway, Web and script typechecks passed.
Synchronize the resolved-form test driver so mounted and settled dialog states are verified separately across the stack. Validation: all 12 dialog tests, Web typecheck and named lint passed; the combined recording/chat regression remains 170 files and 2410 passing tests.
Synchronize ChatGPT provider pipelines and migration ordering through live recording while preserving identical redacted live/durable bytes. Validation: 171 named files and 2411 tests passed, including recording, storage, migration, protocol and provider regressions. Owning provider/dump/gateway/Web/platform/script typechecks passed.
Synchronize ChatGPT diagnostic pipeline scope names. Provider and run-recording regressions and named lint pass.
Keep streamed publication and staging coverage while adopting the mainline FileStore test pruning.
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.
Stacked on #476; remains draft until that dependency lands.
Streams encoded pipeline diagnostics into durable storage and the same bytes into a temporary LogStream. The portable createRunRecorder factory owns ordered batches and backpressure. Gateway binds storage, publication, live and background ports while retaining admission, IDs, attribution, drain, byte measurement, SQL adapters and authenticated routes.
Upstream request/response/exchange credentials are redacted before object-space encoding. Cached rewritten paths preserve shared identities, and both durable and live bytes contain the same redacted events without changing pipeline facts. Same-offset retries tolerate lost acknowledgements; persistent live-service failure leaves durable recording active. Independent heartbeats renew the stream during quiet upstream periods or blocked durable writes.
Node and R2 streamed writes publish complete files atomically. Staged-file leases remain active until storage completes. The durable artifact and metadata publication precede clean live EOF; encoding, storage, metadata and publication errors retain their original error chains. The authenticated live route attaches to an existing per-key stream with byte offsets and framed completion. Active-request discovery and dashboard live interactions remain outside this change.
Read FileStore contracts/implementations, dump/src/recorder.ts and redact.ts, gateway's run-sink and SQL storage, then the authenticated route.
Merged main at
74643220fthrough #476. The recorder, credential redaction, durable stores and gateway publication code match the previous live-recording head. The workspace, Web and script typechecks and named lint passed. The final live recording and transcription scope passed 108 tests in 13 named files. The current head is35f63322d. Verify run.