GeezerVison is showing github.com — Upstream integration cycle: checkpoint reliability and provider payload bounds · Issue #650 · pylon-code/pylon
Upstream integration cycle: checkpoint reliability and provider payload bounds #650DescriptionBound
- Upstream bound (frozen):
93e04160a0c0dece8a258384d2118a660415a53d (t3code-upstream/main, 2026-09-18 12:55 -0700)
- Pylon head at open:
36bfbf48c65b2f910a5899a0e6b2d38c442419f8 (origin/pylon)
- Review cursor unchanged:
bbedad0278bbf753503184c00e0c09a0eab6679c
The previous cycle (#625) closed with 133 carried unclassified sources. Fetching the new bound added 88 non-merge commits past the prior frozen bound 6d1d5494. This cycle classifies 7 of them; everything else stays unclassified and belongs to later bounded cycles. The cursor does not move in this cycle.
Selected sources
Group A — checkpoint capture and rewind reliability (5)
| SHA |
Upstream |
869347bc26051bba7c3c0274a7dfcae7770d3e3a |
#11665 retry transient git failures during checkpoint capture |
1455cb5c35e50211145073be6ca155d56684f0f4 |
#12181 checkpoint workspaces with empty nested repositories |
67993623afb14c017bb0b959478dc892f9c427da |
#12307 capture checkpoints when baseline lookup fails |
b4620d595554654c259ec7c0afb3d3d5532959a8 |
#12306 reject file rewind in shared workspaces |
d17f46d7631b178b6834596264f0f44f210d584b |
#12308 refresh file search outside checkpoint processing |
Touches apps/server/src/vcs/{GitVcsDriver,VcsProcess}.ts, packages/contracts/src/vcs.ts, apps/server/src/orchestration/Layers/CheckpointReactor.ts, plus a rewind-affordance change in apps/web/src/components/ChatView.tsx and docs/user/composer.md.
Group B — provider payload bounds (2)
| SHA |
Upstream |
b17cc2ab5d5029f898121798ca19db3288cba616 |
#12305 bound provider event log records before serialization |
3fd21df62da3191f1abf12a0cd74df6de9ed30a2 |
#11050 pass Codex image attachments by path to avoid oversized requests |
Touches apps/server/src/provider/Layers/{EventNdjsonLogger,CodexAdapter,CodexSessionRuntime}.ts.
The two groups share no files and land as two independent PRs.
Known divergence (measured against the bound)
CheckpointReactor.ts (239+/237-), EventNdjsonLogger.ts (167+/67-), CodexAdapter.ts (75+/368-), CodexSessionRuntime.ts (45+/398-) and ChatView.tsx (1461+/2072-) are substantially diverged. These are manual ports of the final behavior, not cherry-picks. GitVcsDriver.ts, VcsProcess.ts and contracts/src/vcs.ts are close enough that cherry-pick -x may apply, but semantic review is still required.
Boundaries to preserve
Prime admission/restart rules, provider ownership and Stop/cancel fences, typed receipts, Pylon checkpoint and rollback ownership, Pylon's rollback revert action, contract/migration numbering and version-skew behavior, and Pylon's Codex adapter divergence (thread instructions, attachment handling). Shared-workspace rewind rejection must not weaken Pylon's existing rewind affordances beyond the upstream intent.
Trigger audit at open
- WATCH-1 (#8097 upstream): still OPEN and unmerged. Unchanged.
- WATCH-2, WATCH-3: earliest revisit 2026-11-01, not due. Upstream touched
apps/server/src/mcp/toolkits/ (Effect upgrade, Node resolution for helper scripts, Forgejo/Gitea) and TaskFireReactor.ts (storage cleanup), but none is a replacement implementation for the abandoned efforts.
- Deferred register: no open functional deferrals. DEF-7 and DEF-16 remain closed.
- refactor(web): share one setup wizard and finish Antigravity setup from model pickers #479's mobile Antigravity catalog/marker exception unchanged.
Verification plan
Focused server regression coverage for both groups (vcs driver/process, CheckpointReactor, EventNdjsonLogger, Codex adapter/runtime), affected package typechecks (t3, contracts, and web for the ChatView change), scoped lint/format, and green CI on each final PR head. Backend-only changes do not require browser evidence; the ChatView rewind affordance gets web evidence in its PR.
Not in scope
The remaining ~214 unclassified sources (133 carried + 81 new), including the mobile header/platform-split refactor series, the dependency and Effect rc.115 upgrades, the PR-preview request-efficiency continuation, and all new feature work. Release and installation are not authorized by this cycle. Activityrynfar commented on Sep 18, 2026 CollaboratorAuthor More actions Maintainer decision — #12306 rewind scope
b4620d595554654c259ec7c0afb3d3d5532959a8 removes the "Revert files too" affordance for threads that are not in an isolated worktree. That is a capability removal and therefore outside standing catch-up approval, so it was raised explicitly.
Decision: adopt as upstream wrote it. The server rejects file restore unless the thread's cwd is an isolated worktree with no other thread or live provider session inside or above it, and reports the refusal through a revert-failure activity. The web dialog hides the destructive button for shared directories and explains that files stay as they are. Conversation-only rewind is unaffected everywhere.
No override path is added. The remaining four Group A sources stay within standing approval. rynfar commented on Sep 18, 2026 CollaboratorAuthor More actions Review watch — #12305 raw ACP frames
b17cc2ab5d5029f898121798ca19db3288cba616 does two things: it bounds record traversal before serialization (the titled fix), and it also stops persisting native frames whose envelope has stage: "raw", plus turn/diff/updated and Anthropic content_block_delta stream events.
Pylon emits raw/decoded staged frames from apps/server/src/provider/acp/AcpNativeLogging.ts, and those raw frames are the diagnostic surface Pylon used for the Antigravity ACP session/prompt hang (PR #609). Upstream's rationale — "decoded frames carry the same information as raw frames" — holds only when decoding succeeds; a protocol-level hang or a frame that never decodes is precisely where the raw copy matters.
Disposition at review: adopt the bounding logic in full, and evaluate the raw-frame suppression separately against Pylon's ACP diagnostics rather than taking it as part of the same fix. Partial adoption here must name the excluded behavior in the ledger entry. rynfar commented on Sep 18, 2026 CollaboratorAuthor More actions Group B review — #12305 partially adopted
Resolves the raw-frame watch above. Verified in Pylon rather than assumed:
apps/server/src/provider/acp/AcpNativeLogging.ts writes protocol records as { observedAt, event: { …, payload: { direction, stage, payload } } }. Upstream's guard reads envelope.stage, one level above where Pylon's stage actually sits, so the branch never fires here. GrokSkills.ts is the only other stage emitter and its values are spawn/timeout/exit/decode, not raw/decoded.
- Upstream's rationale — raw frames duplicate every token delta — does not hold for Pylon.
formatProtocolLogPayload already reduces the payload through summarizePayload to { valueType, byteLength }, and protocol logging is only attached under verboseProtocolLogging. Those records are the evidence that survives a decode failure or a response that never arrives, which is the Antigravity ACP session/prompt hang signature behind PR feat: add ACP prompt liveness and truthful forced stops #609.
Disposition: b17cc2ab5d5029f898121798ca19db3288cba616 partially adopted. Adopted: record bounding (MAX_RECORD_CHARACTERS/FIELDS/DEPTH), cycle-safe traversal, summarizeProviderEvent fallback, post-serialization byte-length fallback, the shouldPersistProviderEvent rename, and the new transient suppressions (turn/diff/updated, stream_event/content_block_delta). Excluded: the stage === "raw" suppression and the stage === "decoded" payload unwrap. Revisit trigger: Pylon moves stage to the envelope level in AcpNativeLogging.ts, or ACP raw frames start carrying unsummarized payloads.
3fd21df62da3191f1abf12a0cd74df6de9ed30a2 adopted in full. localImage is a real content type in packages/effect-codex-app-server/src/_generated/schema.gen.ts, so the path-passing form is protocol-valid; Pylon's attachment-id validation against attachmentsDir is retained.
Note: origin/pylon advanced to 933d6f716225690d6f3462490b0c925b74b95ac7 during the cycle. Group B is based on it. Group A started from 36bfbf48 and will need a rebase before its PR. rynfar commented on Sep 18, 2026 CollaboratorAuthor More actions Group B landed as a PR: #653 (head 2a3bfa07bcdb0096c3f2daa96ed928098bb8bbd6, based on 933d6f71). Correction applied and re-verified independently — 133 focused tests, vp run -F t3 typecheck exit 0, scoped format/lint clean. Awaiting CI before merge. Group A still in progress. rynfar commented on Sep 18, 2026 CollaboratorAuthor More actions Group B merged
PR #653 merged as 4be539f4d48af6ffbe545e015ec246fbb271c92e. All CI green on final head 2a3bfa07bcdb0096c3f2daa96ed928098bb8bbd6 (Check, Test, Test Server 1–3, Rust, Release Smoke, Prime Background Platform, Linux + Windows desktop smoke). No bot findings; thread-transfer impact within every ceiling. Branch deleted.
Dispositions: b17cc2ab5d… partially adopted (raw-frame suppression and decoded unwrap excluded, trigger recorded above); 3fd21df62d… adopted.
Merge policy for this cycle confirmed by the maintainer: merge both groups once reviewed and green. Not released or installed — release needs its own authorization. rynfar commented on Sep 19, 2026 CollaboratorAuthor More actions Group A up for review
PR #665, head 361185f7ed2e392a3d8a4b901e0f6ca7be701dcb, rebased cleanly onto origin/pylon after #653 merged.
Correction applied and re-verified independently: the child had added a blanket if (event.payload.restoreFiles === false) return; at the top of handleRevertRequested, which is not in upstream. In Pylon that path is the failure-explanation path, and both rollbackRepository and rollbackRunner come from Effect.serviceOption, so the guard would have made a conversation-only rewind return silently with no activity whenever the saga did not admit it. It is now scoped to the isolation check via event.payload.restoreFiles !== false, with three regression tests added where none existed.
Verification on the final head: 122 focused tests passed; t3, @t3tools/contracts and @t3tools/web typechecks exit 0; scoped vp check 0 errors (23 pre-existing ChatView.tsx React-compiler warnings between lines 1793 and 2989, none near the changed region).
Awaiting CI. Merge authorized after green per the maintainer's confirmed policy for this cycle. rynfar commented on Sep 19, 2026 CollaboratorAuthor More actions Cycle complete
PR #665 merged as 620c386b9257870e97b62577c91c6d695a694a36. Every check run on the exact final head 3c0ca7200dc633c7d1f259235cf1b51b4717139a completed successfully — Check, Test, Test Server 1–3, Rust, Release Smoke, Prime Background Platform, Linux and Windows desktop smoke. No bot findings; thread transfer within every ceiling. Branch deleted.
All seven authorized sources now have a disposition:
| Source |
Upstream |
Outcome |
PR |
869347bc26051bba7c3c0274a7dfcae7770d3e3a |
#11665 |
Adopted |
#665 |
1455cb5c35e50211145073be6ca155d56684f0f4 |
#12181 |
Adopted |
#665 |
67993623afb14c017bb0b959478dc892f9c427da |
#12307 |
Adopted |
#665 |
b4620d595554654c259ec7c0afb3d3d5532959a8 |
#12306 |
Adopted (capability removal, maintainer-approved) |
#665 |
d17f46d7631b178b6834596264f0f44f210d584b |
#12308 |
Adopted |
#665 |
b17cc2ab5d5029f898121798ca19db3288cba616 |
#12305 |
Partially adopted — EXC-1 records the excluded raw-frame suppression |
#653 |
3fd21df62da3191f1abf12a0cd74df6de9ed30a2 |
#11050 |
Adopted |
#653 |
Ledger updated in #665: active cycle repointed here, two batch rows added, EXC-1 opened with its revisit trigger. reviewed-through deliberately unchanged at bbedad0278bbf753503184c00e0c09a0eab6679c — this cycle classified 7 of the 88 sources past 6d1d5494, so roughly 214 remain unclassified and the cursor stays behind them. Cursor advancement was never in scope here.
Trigger audit at close matches the audit at open: WATCH-1 (#8097) still open and unmerged; WATCH-2 and WATCH-3 not due before 2026-11-01; no open functional deferrals; #479's mobile Antigravity exception unchanged.
Not released and not installed — release needs its own authorization. The Vercel marketing preview deployment failed on both PRs in this cycle, but neither touches apps/marketing and it is failing independently of this work; it is a deployment status, not a required check. Worth a separate look.
Next action: select the next bounded group from the remaining inventory. Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|